@antv/x6-vue-shape
Version:
X6 shape for rendering vue components.
1 lines • 675 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).X6VueShape={})}(this,function(t){"use strict";function e(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(t);s<i.length;s++)e.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(t,i[s])&&(n[i[s]]=t[i[s]])}return n}function n(t,e,n,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,n,r):s(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r}function i(t,e,n,i){return new(n||(n=Promise))(function(s,o){function r(t){try{l(i.next(t))}catch(t){o(t)}}function a(t){try{l(i.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(r,a)}l((i=i.apply(t,e||[])).next())})}"function"==typeof SuppressedError&&SuppressedError,"object"==typeof window&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),"undefined"!=typeof window&&[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(t=>{Object.hasOwn(t,"append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value(...t){const e=document.createDocumentFragment();t.forEach(t=>{const n=t instanceof Node;e.appendChild(n?t:document.createTextNode(String(t)))}),this.appendChild(e)}})});var s="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,r=s||o||Function("return this")(),a=r.Symbol,l=Object.prototype,c=l.hasOwnProperty,h=l.toString,u=a?a.toStringTag:void 0;var d=Object.prototype.toString;var p=a?a.toStringTag:void 0;function g(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":p&&p in Object(t)?function(t){var e=c.call(t,u),n=t[u];try{t[u]=void 0;var i=!0}catch(t){}var s=h.call(t);return i&&(e?t[u]=n:delete t[u]),s}(t):function(t){return d.call(t)}(t)}function f(t){return null!=t&&"object"==typeof t}function m(t){return"symbol"==typeof t||f(t)&&"[object Symbol]"==g(t)}function y(t,e){for(var n=-1,i=null==t?0:t.length,s=Array(i);++n<i;)s[n]=e(t[n],n,t);return s}var b=Array.isArray,v=a?a.prototype:void 0,x=v?v.toString:void 0;function w(t){if("string"==typeof t)return t;if(b(t))return y(t,w)+"";if(m(t))return x?x.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var E=/\s/;var C=/^\s+/;function P(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&E.test(t.charAt(e)););return e}(t)+1).replace(C,""):t}function S(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var O=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,N=/^0o[0-7]+$/i,A=parseInt;function T(t){if("number"==typeof t)return t;if(m(t))return NaN;if(S(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=S(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=P(t);var n=M.test(t);return n||N.test(t)?A(t.slice(2),n?2:8):O.test(t)?NaN:+t}function _(t){return t}function k(t){if(!S(t))return!1;var e=g(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var D=r["__core-js_shared__"],j=function(){var t=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var V=Function.prototype.toString;function L(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var I=/^\[object .+?Constructor\]$/,R=Function.prototype,B=Object.prototype,z=R.toString,$=B.hasOwnProperty,F=RegExp("^"+z.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G(t){return!(!S(t)||(e=t,j&&j in e))&&(k(t)?F:I).test(L(t));var e}function U(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return G(n)?n:void 0}var H=U(r,"WeakMap"),W=Object.create,q=function(){function t(){}return function(e){if(!S(e))return{};if(W)return W(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),X=q;function Y(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function J(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var K=Date.now;var Z,Q,tt,et=function(){try{var t=U(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),nt=et,it=nt?function(t,e){return nt(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:_,st=(Z=it,Q=0,tt=0,function(){var t=K(),e=16-(t-tt);if(tt=t,e>0){if(++Q>=800)return arguments[0]}else Q=0;return Z.apply(void 0,arguments)}),ot=st;function rt(t){return t!=t}function at(t,e){return!!(null==t?0:t.length)&&function(t,e,n){return e==e?function(t,e,n){for(var i=n-1,s=t.length;++i<s;)if(t[i]===e)return i;return-1}(t,e,n):function(t,e,n,i){for(var s=t.length,o=n+(i?1:-1);i?o--:++o<s;)if(e(t[o],o,t))return o;return-1}(t,rt,n)}(t,e,0)>-1}var lt=/^(?:0|[1-9]\d*)$/;function ct(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&<.test(t))&&t>-1&&t%1==0&&t<e}function ht(t,e,n){"__proto__"==e&&nt?nt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ut(t,e){return t===e||t!=t&&e!=e}var dt=Object.prototype.hasOwnProperty;function pt(t,e,n){var i=t[e];dt.call(t,e)&&ut(i,n)&&(void 0!==n||e in t)||ht(t,e,n)}function gt(t,e,n,i){var s=!n;n||(n={});for(var o=-1,r=e.length;++o<r;){var a=e[o],l=i?i(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),s?ht(n,a,l):pt(n,a,l)}return n}var ft=Math.max;function mt(t,e,n){return e=ft(void 0===e?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=ft(i.length-e,0),r=Array(o);++s<o;)r[s]=i[e+s];s=-1;for(var a=Array(e+1);++s<e;)a[s]=i[s];return a[e]=n(r),Y(t,this,a)}}function yt(t,e){return ot(mt(t,e,_),t+"")}function bt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function vt(t){return null!=t&&bt(t.length)&&!k(t)}function xt(t,e,n){if(!S(n))return!1;var i=typeof e;return!!("number"==i?vt(n)&&ct(e,n.length):"string"==i&&e in n)&&ut(n[e],t)}function wt(t){return yt(function(e,n){var i=-1,s=n.length,o=s>1?n[s-1]:void 0,r=s>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(s--,o):void 0,r&&xt(n[0],n[1],r)&&(o=s<3?void 0:o,s=1),e=Object(e);++i<s;){var a=n[i];a&&t(e,a,i,o)}return e})}var Et=Object.prototype;function Ct(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Et)}function Pt(t){return f(t)&&"[object Arguments]"==g(t)}var St=Object.prototype,Ot=St.hasOwnProperty,Mt=St.propertyIsEnumerable,Nt=Pt(function(){return arguments}())?Pt:function(t){return f(t)&&Ot.call(t,"callee")&&!Mt.call(t,"callee")},At=Nt;var Tt="object"==typeof t&&t&&!t.nodeType&&t,_t=Tt&&"object"==typeof module&&module&&!module.nodeType&&module,kt=_t&&_t.exports===Tt?r.Buffer:void 0,Dt=(kt?kt.isBuffer:void 0)||function(){return!1},jt={};function Vt(t){return function(e){return t(e)}}jt["[object Float32Array]"]=jt["[object Float64Array]"]=jt["[object Int8Array]"]=jt["[object Int16Array]"]=jt["[object Int32Array]"]=jt["[object Uint8Array]"]=jt["[object Uint8ClampedArray]"]=jt["[object Uint16Array]"]=jt["[object Uint32Array]"]=!0,jt["[object Arguments]"]=jt["[object Array]"]=jt["[object ArrayBuffer]"]=jt["[object Boolean]"]=jt["[object DataView]"]=jt["[object Date]"]=jt["[object Error]"]=jt["[object Function]"]=jt["[object Map]"]=jt["[object Number]"]=jt["[object Object]"]=jt["[object RegExp]"]=jt["[object Set]"]=jt["[object String]"]=jt["[object WeakMap]"]=!1;var Lt="object"==typeof t&&t&&!t.nodeType&&t,It=Lt&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=It&&It.exports===Lt&&s.process,Bt=function(){try{var t=It&&It.require&&It.require("util").types;return t||Rt&&Rt.binding&&Rt.binding("util")}catch(t){}}(),zt=Bt&&Bt.isTypedArray,$t=zt?Vt(zt):function(t){return f(t)&&bt(t.length)&&!!jt[g(t)]},Ft=Object.prototype.hasOwnProperty;function Gt(t,e){var n=b(t),i=!n&&At(t),s=!n&&!i&&Dt(t),o=!n&&!i&&!s&&$t(t),r=n||i||s||o,a=r?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],l=a.length;for(var c in t)!e&&!Ft.call(t,c)||r&&("length"==c||s&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ct(c,l))||a.push(c);return a}function Ut(t,e){return function(n){return t(e(n))}}var Ht=Ut(Object.keys,Object),Wt=Object.prototype.hasOwnProperty;function qt(t){if(!Ct(t))return Ht(t);var e=[];for(var n in Object(t))Wt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Xt(t){return vt(t)?Gt(t):qt(t)}var Yt=Object.prototype.hasOwnProperty;function Jt(t){if(!S(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Ct(t),n=[];for(var i in t)("constructor"!=i||!e&&Yt.call(t,i))&&n.push(i);return n}function Kt(t){return vt(t)?Gt(t,!0):Jt(t)}var Zt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qt=/^\w*$/;function te(t,e){if(b(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!m(t))||(Qt.test(t)||!Zt.test(t)||null!=e&&t in Object(e))}var ee=U(Object,"create");var ne=Object.prototype.hasOwnProperty;var ie=Object.prototype.hasOwnProperty;function se(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function oe(t,e){for(var n=t.length;n--;)if(ut(t[n][0],e))return n;return-1}se.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},se.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},se.prototype.get=function(t){var e=this.__data__;if(ee){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ne.call(e,t)?e[t]:void 0},se.prototype.has=function(t){var e=this.__data__;return ee?void 0!==e[t]:ie.call(e,t)},se.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ee&&void 0===e?"__lodash_hash_undefined__":e,this};var re=Array.prototype.splice;function ae(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}ae.prototype.clear=function(){this.__data__=[],this.size=0},ae.prototype.delete=function(t){var e=this.__data__,n=oe(e,t);return!(n<0)&&(n==e.length-1?e.pop():re.call(e,n,1),--this.size,!0)},ae.prototype.get=function(t){var e=this.__data__,n=oe(e,t);return n<0?void 0:e[n][1]},ae.prototype.has=function(t){return oe(this.__data__,t)>-1},ae.prototype.set=function(t,e){var n=this.__data__,i=oe(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};var le=U(r,"Map");function ce(t,e){var n,i,s=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?s["string"==typeof e?"string":"hash"]:s.map}function he(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}he.prototype.clear=function(){this.size=0,this.__data__={hash:new se,map:new(le||ae),string:new se}},he.prototype.delete=function(t){var e=ce(this,t).delete(t);return this.size-=e?1:0,e},he.prototype.get=function(t){return ce(this,t).get(t)},he.prototype.has=function(t){return ce(this,t).has(t)},he.prototype.set=function(t,e){var n=ce(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function ue(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,s=e?e.apply(this,i):i[0],o=n.cache;if(o.has(s))return o.get(s);var r=t.apply(this,i);return n.cache=o.set(s,r)||o,r};return n.cache=new(ue.Cache||he),n}ue.Cache=he;var de=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pe=/\\(\\)?/g,ge=function(t){var e=ue(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(de,function(t,n,i,s){e.push(i?s.replace(pe,"$1"):n||t)}),e}),fe=ge;function me(t){return null==t?"":w(t)}function ye(t,e){return b(t)?t:te(t,e)?[t]:fe(me(t))}function be(t){if("string"==typeof t||m(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ve(t,e){for(var n=0,i=(e=ye(e,t)).length;null!=t&&n<i;)t=t[be(e[n++])];return n&&n==i?t:void 0}function xe(t,e){for(var n=-1,i=e.length,s=t.length;++n<i;)t[s+n]=e[n];return t}var we=a?a.isConcatSpreadable:void 0;function Ee(t){return b(t)||At(t)||!!(we&&t&&t[we])}function Ce(t,e,n,i,s){var o=-1,r=t.length;for(n||(n=Ee),s||(s=[]);++o<r;){var a=t[o];e>0&&n(a)?e>1?Ce(a,e-1,n,i,s):xe(s,a):i||(s[s.length]=a)}return s}function Pe(t){return(null==t?0:t.length)?Ce(t,1):[]}var Se=Ut(Object.getPrototypeOf,Object),Oe=Function.prototype,Me=Object.prototype,Ne=Oe.toString,Ae=Me.hasOwnProperty,Te=Ne.call(Object);function _e(t){if(!f(t)||"[object Object]"!=g(t))return!1;var e=Se(t);if(null===e)return!0;var n=Ae.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Te}function ke(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:function(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(s);++i<s;)o[i]=t[i+e];return o}(t,e,n)}var De=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function je(t){return De.test(t)}var Ve="\\ud800-\\udfff",Le="["+Ve+"]",Ie="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Re="\\ud83c[\\udffb-\\udfff]",Be="[^"+Ve+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="(?:"+Ie+"|"+Re+")"+"?",Ge="[\\ufe0e\\ufe0f]?",Ue=Ge+Fe+("(?:\\u200d(?:"+[Be,ze,$e].join("|")+")"+Ge+Fe+")*"),He="(?:"+[Be+Ie+"?",Ie,ze,$e,Le].join("|")+")",We=RegExp(Re+"(?="+Re+")|"+He+Ue,"g");function qe(t){return je(t)?function(t){return t.match(We)||[]}(t):function(t){return t.split("")}(t)}function Xe(t){return function(e){var n=je(e=me(e))?qe(e):void 0,i=n?n[0]:e.charAt(0),s=n?ke(n,1).join(""):e.slice(1);return i[t]()+s}}var Ye=Xe("toUpperCase");var Je,Ke=(Je={"À":"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","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},function(t){return null==Je?void 0:Je[t]}),Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Qe=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var tn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var en=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var nn="\\ud800-\\udfff",sn="\\u2700-\\u27bf",on="a-z\\xdf-\\xf6\\xf8-\\xff",rn="A-Z\\xc0-\\xd6\\xd8-\\xde",an="\\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",ln="["+an+"]",cn="\\d+",hn="["+sn+"]",un="["+on+"]",dn="[^"+nn+an+cn+sn+on+rn+"]",pn="(?:\\ud83c[\\udde6-\\uddff]){2}",gn="[\\ud800-\\udbff][\\udc00-\\udfff]",fn="["+rn+"]",mn="(?:"+un+"|"+dn+")",yn="(?:"+fn+"|"+dn+")",bn="(?:['’](?:d|ll|m|re|s|t|ve))?",vn="(?:['’](?:D|LL|M|RE|S|T|VE))?",xn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",wn="[\\ufe0e\\ufe0f]?",En=wn+xn+("(?:\\u200d(?:"+["[^"+nn+"]",pn,gn].join("|")+")"+wn+xn+")*"),Cn="(?:"+[hn,pn,gn].join("|")+")"+En,Pn=RegExp([fn+"?"+un+"+"+bn+"(?="+[ln,fn,"$"].join("|")+")",yn+"+"+vn+"(?="+[ln,fn+mn,"$"].join("|")+")",fn+"?"+mn+"+"+bn,fn+"+"+vn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cn,Cn].join("|"),"g");function Sn(t,e,n){return t=me(t),void 0===(e=n?void 0:e)?function(t){return en.test(t)}(t)?function(t){return t.match(Pn)||[]}(t):function(t){return t.match(tn)||[]}(t):t.match(e)||[]}var On=RegExp("['’]","g");function Mn(t){return function(e){return function(t,e,n,i){var s=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++s]);++s<o;)n=e(n,t[s],s,t);return n}(Sn(function(t){return(t=me(t))&&t.replace(Ze,Ke).replace(Qe,"")}(e).replace(On,"")),t,"")}}var Nn=Mn(function(t,e,n){return e=e.toLowerCase(),t+(n?Ye(me(e).toLowerCase()):e)}),An=Nn;function Tn(){if(!arguments.length)return[];var t=arguments[0];return b(t)?t:[t]}function _n(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=T(n))==n?n:0),void 0!==e&&(e=(e=T(e))==e?e:0),function(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}(T(t),e,n)}function kn(t){var e=this.__data__=new ae(t);this.size=e.size}kn.prototype.clear=function(){this.__data__=new ae,this.size=0},kn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},kn.prototype.get=function(t){return this.__data__.get(t)},kn.prototype.has=function(t){return this.__data__.has(t)},kn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof ae){var i=n.__data__;if(!le||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new he(i)}return n.set(t,e),this.size=n.size,this};var Dn="object"==typeof t&&t&&!t.nodeType&&t,jn=Dn&&"object"==typeof module&&module&&!module.nodeType&&module,Vn=jn&&jn.exports===Dn?r.Buffer:void 0,Ln=Vn?Vn.allocUnsafe:void 0;function In(t,e){if(e)return t.slice();var n=t.length,i=Ln?Ln(n):new t.constructor(n);return t.copy(i),i}function Rn(){return[]}var Bn=Object.prototype.propertyIsEnumerable,zn=Object.getOwnPropertySymbols,$n=zn?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,i=null==t?0:t.length,s=0,o=[];++n<i;){var r=t[n];e(r,n,t)&&(o[s++]=r)}return o}(zn(t),function(e){return Bn.call(t,e)}))}:Rn,Fn=$n;var Gn=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)xe(e,Fn(t)),t=Se(t);return e}:Rn,Un=Gn;function Hn(t,e,n){var i=e(t);return b(t)?i:xe(i,n(t))}function Wn(t){return Hn(t,Xt,Fn)}function qn(t){return Hn(t,Kt,Un)}var Xn=U(r,"DataView"),Yn=U(r,"Promise"),Jn=U(r,"Set"),Kn="[object Map]",Zn="[object Promise]",Qn="[object Set]",ti="[object WeakMap]",ei="[object DataView]",ni=L(Xn),ii=L(le),si=L(Yn),oi=L(Jn),ri=L(H),ai=g;(Xn&&ai(new Xn(new ArrayBuffer(1)))!=ei||le&&ai(new le)!=Kn||Yn&&ai(Yn.resolve())!=Zn||Jn&&ai(new Jn)!=Qn||H&&ai(new H)!=ti)&&(ai=function(t){var e=g(t),n="[object Object]"==e?t.constructor:void 0,i=n?L(n):"";if(i)switch(i){case ni:return ei;case ii:return Kn;case si:return Zn;case oi:return Qn;case ri:return ti}return e});var li=ai,ci=Object.prototype.hasOwnProperty;var hi=r.Uint8Array;function ui(t){var e=new t.constructor(t.byteLength);return new hi(e).set(new hi(t)),e}var di=/\w*$/;var pi=a?a.prototype:void 0,gi=pi?pi.valueOf:void 0;function fi(t,e){var n=e?ui(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function mi(t,e,n){var i,s,o,r=t.constructor;switch(e){case"[object ArrayBuffer]":return ui(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return function(t,e){var n=e?ui(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,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 fi(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return(o=new(s=t).constructor(s.source,di.exec(s))).lastIndex=s.lastIndex,o;case"[object Symbol]":return i=t,gi?Object(gi.call(i)):{}}}function yi(t){return"function"!=typeof t.constructor||Ct(t)?{}:X(Se(t))}var bi=Bt&&Bt.isMap,vi=bi?Vt(bi):function(t){return f(t)&&"[object Map]"==li(t)};var xi=Bt&&Bt.isSet,wi=xi?Vt(xi):function(t){return f(t)&&"[object Set]"==li(t)},Ei="[object Arguments]",Ci="[object Function]",Pi="[object Object]",Si={};function Oi(t,e,n,i,s,o){var r,a=1&e,l=2&e,c=4&e;if(n&&(r=s?n(t,i,s,o):n(t)),void 0!==r)return r;if(!S(t))return t;var h=b(t);if(h){if(r=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ci.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!a)return J(t,r)}else{var u=li(t),d=u==Ci||"[object GeneratorFunction]"==u;if(Dt(t))return In(t,a);if(u==Pi||u==Ei||d&&!s){if(r=l||d?{}:yi(t),!a)return l?function(t,e){return gt(t,Un(t),e)}(t,function(t,e){return t&>(e,Kt(e),t)}(r,t)):function(t,e){return gt(t,Fn(t),e)}(t,function(t,e){return t&>(e,Xt(e),t)}(r,t))}else{if(!Si[u])return s?t:{};r=mi(t,u,a)}}o||(o=new kn);var p=o.get(t);if(p)return p;o.set(t,r),wi(t)?t.forEach(function(i){r.add(Oi(i,e,n,i,t,o))}):vi(t)&&t.forEach(function(i,s){r.set(s,Oi(i,e,n,s,t,o))});var g=h?void 0:(c?l?qn:Wn:l?Kt:Xt)(t);return function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););}(g||t,function(i,s){g&&(i=t[s=i]),pt(r,s,Oi(i,e,n,s,t,o))}),r}Si[Ei]=Si["[object Array]"]=Si["[object ArrayBuffer]"]=Si["[object DataView]"]=Si["[object Boolean]"]=Si["[object Date]"]=Si["[object Float32Array]"]=Si["[object Float64Array]"]=Si["[object Int8Array]"]=Si["[object Int16Array]"]=Si["[object Int32Array]"]=Si["[object Map]"]=Si["[object Number]"]=Si[Pi]=Si["[object RegExp]"]=Si["[object Set]"]=Si["[object String]"]=Si["[object Symbol]"]=Si["[object Uint8Array]"]=Si["[object Uint8ClampedArray]"]=Si["[object Uint16Array]"]=Si["[object Uint32Array]"]=!0,Si["[object Error]"]=Si[Ci]=Si["[object WeakMap]"]=!1;function Mi(t){return Oi(t,4)}function Ni(t){return Oi(t,5)}function Ai(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new he;++e<n;)this.add(t[e])}function Ti(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function _i(t,e){return t.has(e)}Ai.prototype.add=Ai.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ai.prototype.has=function(t){return this.__data__.has(t)};function ki(t,e,n,i,s,o){var r=1&n,a=t.length,l=e.length;if(a!=l&&!(r&&l>a))return!1;var c=o.get(t),h=o.get(e);if(c&&h)return c==e&&h==t;var u=-1,d=!0,p=2&n?new Ai:void 0;for(o.set(t,e),o.set(e,t);++u<a;){var g=t[u],f=e[u];if(i)var m=r?i(f,g,u,e,t,o):i(g,f,u,t,e,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!Ti(e,function(t,e){if(!_i(p,e)&&(g===t||s(g,t,n,i,o)))return p.push(e)})){d=!1;break}}else if(g!==f&&!s(g,f,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Di(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function ji(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}var Vi=a?a.prototype:void 0,Li=Vi?Vi.valueOf:void 0;var Ii=Object.prototype.hasOwnProperty;var Ri="[object Arguments]",Bi="[object Array]",zi="[object Object]",$i=Object.prototype.hasOwnProperty;function Fi(t,e,n,i,s,o){var r=b(t),a=b(e),l=r?Bi:li(t),c=a?Bi:li(e),h=(l=l==Ri?zi:l)==zi,u=(c=c==Ri?zi:c)==zi,d=l==c;if(d&&Dt(t)){if(!Dt(e))return!1;r=!0,h=!1}if(d&&!h)return o||(o=new kn),r||$t(t)?ki(t,e,n,i,s,o):function(t,e,n,i,s,o,r){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new hi(t),new hi(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ut(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=Di;case"[object Set]":var l=1&i;if(a||(a=ji),t.size!=e.size&&!l)return!1;var c=r.get(t);if(c)return c==e;i|=2,r.set(t,e);var h=ki(a(t),a(e),i,s,o,r);return r.delete(t),h;case"[object Symbol]":if(Li)return Li.call(t)==Li.call(e)}return!1}(t,e,l,n,i,s,o);if(!(1&n)){var p=h&&$i.call(t,"__wrapped__"),g=u&&$i.call(e,"__wrapped__");if(p||g){var f=p?t.value():t,m=g?e.value():e;return o||(o=new kn),s(f,m,n,i,o)}}return!!d&&(o||(o=new kn),function(t,e,n,i,s,o){var r=1&n,a=Wn(t),l=a.length;if(l!=Wn(e).length&&!r)return!1;for(var c=l;c--;){var h=a[c];if(!(r?h in e:Ii.call(e,h)))return!1}var u=o.get(t),d=o.get(e);if(u&&d)return u==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);for(var g=r;++c<l;){var f=t[h=a[c]],m=e[h];if(i)var y=r?i(m,f,h,e,t,o):i(f,m,h,t,e,o);if(!(void 0===y?f===m||s(f,m,n,i,o):y)){p=!1;break}g||(g="constructor"==h)}if(p&&!g){var b=t.constructor,v=e.constructor;b==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,i,s,o))}function Gi(t,e,n,i,s){return t===e||(null==t||null==e||!f(t)&&!f(e)?t!=t&&e!=e:Fi(t,e,n,i,Gi,s))}function Ui(t){return t==t&&!S(t)}function Hi(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}function Wi(t){var e=function(t){for(var e=Xt(t),n=e.length;n--;){var i=e[n],s=t[i];e[n]=[i,s,Ui(s)]}return e}(t);return 1==e.length&&e[0][2]?Hi(e[0][0],e[0][1]):function(n){return n===t||function(t,e,n,i){var s=n.length,o=s,r=!i;if(null==t)return!o;for(t=Object(t);s--;){var a=n[s];if(r&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++s<o;){var l=(a=n[s])[0],c=t[l],h=a[1];if(r&&a[2]){if(void 0===c&&!(l in t))return!1}else{var u=new kn;if(i)var d=i(c,h,l,t,e,u);if(!(void 0===d?Gi(h,c,3,i,u):d))return!1}}return!0}(n,t,e)}}function qi(t,e){return null!=t&&e in Object(t)}function Xi(t,e,n){for(var i=-1,s=(e=ye(e,t)).length,o=!1;++i<s;){var r=be(e[i]);if(!(o=null!=t&&n(t,r)))break;t=t[r]}return o||++i!=s?o:!!(s=null==t?0:t.length)&&bt(s)&&ct(r,s)&&(b(t)||At(t))}function Yi(t,e){return null!=t&&Xi(t,e,qi)}function Ji(t,e){return te(t)&&Ui(e)?Hi(be(t),e):function(n){var i=function(t,e,n){var i=null==t?void 0:ve(t,e);return void 0===i?n:i}(n,t);return void 0===i&&i===e?Yi(n,t):Gi(e,i,3)}}function Ki(t){return te(t)?(e=be(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return ve(e,t)}}(t);var e}function Zi(t){return"function"==typeof t?t:null==t?_:"object"==typeof t?b(t)?Ji(t[0],t[1]):Wi(t):Ki(t)}function Qi(t,e,n,i){for(var s=-1,o=null==t?0:t.length;++s<o;){var r=t[s];e(i,r,n(r),t)}return i}var ts,es=function(t,e,n){for(var i=-1,s=Object(t),o=n(t),r=o.length;r--;){var a=o[ts?r:++i];if(!1===e(s[a],a,s))break}return t},ns=es;var is=function(t,e){return function(n,i){if(null==n)return n;if(!vt(n))return t(n,i);for(var s=n.length,o=e?s:-1,r=Object(n);(e?o--:++o<s)&&!1!==i(r[o],o,r););return n}}(function(t,e){return t&&ns(t,e,Xt)}),ss=is;function os(t,e,n,i){return ss(t,function(t,s,o){e(i,t,n(t),o)}),i}var rs=function(){return r.Date.now()},as=Math.max,ls=Math.min;function cs(t,e,n){var i,s,o,r,a,l,c=0,h=!1,u=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=i,o=s;return i=s=void 0,c=e,r=t.apply(o,n)}function g(t){var n=t-l;return void 0===l||n>=e||n<0||u&&t-c>=o}function f(){var t=rs();if(g(t))return m(t);a=setTimeout(f,function(t){var n=e-(t-l);return u?ls(n,o-(t-c)):n}(t))}function m(t){return a=void 0,d&&i?p(t):(i=s=void 0,r)}function y(){var t=rs(),n=g(t);if(i=arguments,s=this,l=t,n){if(void 0===a)return function(t){return c=t,a=setTimeout(f,e),h?p(t):r}(l);if(u)return clearTimeout(a),a=setTimeout(f,e),p(l)}return void 0===a&&(a=setTimeout(f,e)),r}return e=T(e)||0,S(n)&&(h=!!n.leading,o=(u="maxWait"in n)?as(T(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==a&&clearTimeout(a),c=0,i=l=s=a=void 0},y.flush=function(){return void 0===a?r:m(rs())},y}var hs=Object.prototype,us=hs.hasOwnProperty,ds=yt(function(t,e){t=Object(t);var n=-1,i=e.length,s=i>2?e[2]:void 0;for(s&&xt(e[0],e[1],s)&&(i=1);++n<i;)for(var o=e[n],r=Kt(o),a=-1,l=r.length;++a<l;){var c=r[a],h=t[c];(void 0===h||ut(h,hs[c])&&!us.call(t,c))&&(t[c]=o[c])}return t}),ps=ds;function gs(t,e,n){(void 0!==n&&!ut(t[e],n)||void 0===n&&!(e in t))&&ht(t,e,n)}function fs(t){return f(t)&&vt(t)}function ms(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function ys(t,e,n,i,s,o,r){var a=ms(t,n),l=ms(e,n),c=r.get(l);if(c)gs(t,n,c);else{var h,u=o?o(a,l,n+"",t,e,r):void 0,d=void 0===u;if(d){var p=b(l),g=!p&&Dt(l),f=!p&&!g&&$t(l);u=l,p||g||f?b(a)?u=a:fs(a)?u=J(a):g?(d=!1,u=In(l,!0)):f?(d=!1,u=fi(l,!0)):u=[]:_e(l)||At(l)?(u=a,At(a)?u=gt(h=a,Kt(h)):S(a)&&!k(a)||(u=yi(l))):d=!1}d&&(r.set(l,u),s(u,l,i,o,r),r.delete(l)),gs(t,n,u)}}function bs(t,e,n,i,s){t!==e&&ns(e,function(o,r){if(s||(s=new kn),S(o))ys(t,e,r,n,bs,i,s);else{var a=i?i(ms(t,r),o,r+"",t,e,s):void 0;void 0===a&&(a=o),gs(t,r,a)}},Kt)}function vs(t,e,n,i,s,o){return S(t)&&S(e)&&(o.set(e,t),bs(t,e,void 0,vs,o),o.delete(e)),t}var xs=wt(function(t,e,n,i){bs(t,e,n,i)}),ws=xs,Es=yt(function(t){return t.push(void 0,vs),Y(ws,void 0,t)});function Cs(t,e,n){for(var i=-1,s=null==t?0:t.length;++i<s;)if(n(e,t[i]))return!0;return!1}var Ps=yt(function(t,e){return fs(t)?function(t,e,n,i){var s=-1,o=at,r=!0,a=t.length,l=[],c=e.length;if(!a)return l;n&&(e=y(e,Vt(n))),i?(o=Cs,r=!1):e.length>=200&&(o=_i,r=!1,e=new Ai(e));t:for(;++s<a;){var h=t[s],u=null==n?h:n(h);if(h=i||0!==h?h:0,r&&u==u){for(var d=c;d--;)if(e[d]===u)continue t;l.push(h)}else o(e,u,i)||l.push(h)}return l}(t,Ce(e,1,fs,!0)):[]}),Ss=Ps;var Os,Ms,Ns=Object.prototype.hasOwnProperty,As=(Os=function(t,e,n){Ns.call(t,n)?t[n].push(e):ht(t,n,[e])},function(t,e){var n=b(t)?Qi:os,i=Ms?Ms():{};return n(t,Os,Zi(e),i)}),Ts=As;function _s(t,e){return t>e}var ks=Object.prototype.hasOwnProperty;function Ds(t,e){return null!=t&&ks.call(t,e)}function js(t,e){return null!=t&&Xi(t,e,Ds)}var Vs=Object.prototype.hasOwnProperty;function Ls(t){if(null==t)return!0;if(vt(t)&&(b(t)||"string"==typeof t||"function"==typeof t.splice||Dt(t)||$t(t)||At(t)))return!t.length;var e=li(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(Ct(t))return!qt(t).length;for(var n in t)if(Vs.call(t,n))return!1;return!0}function Is(t,e){return Gi(t,e)}function Rs(t){return"number"==typeof t||f(t)&&"[object Number]"==g(t)}var Bs=Xe("toLowerCase");function zs(t){return t&&t.length?function(t,e,n){for(var i=-1,s=t.length;++i<s;){var o=t[i],r=e(o);if(null!=r&&(void 0===a?r==r&&!m(r):n(r,a)))var a=r,l=o}return l}(t,_,_s):void 0}var $s=wt(function(t,e,n){bs(t,e,n)}),Fs=$s;function Gs(t,e,n,i){if(!S(t))return t;for(var s=-1,o=(e=ye(e,t)).length,r=o-1,a=t;null!=a&&++s<o;){var l=be(e[s]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(s!=r){var h=a[l];void 0===(c=i?i(h,l,a):void 0)&&(c=S(h)?h:ct(e[s+1])?[]:{})}pt(a,l,c),a=a[l]}return t}function Us(t,e){if(t!==e){var n=void 0!==t,i=null===t,s=t==t,o=m(t),r=void 0!==e,a=null===e,l=e==e,c=m(e);if(!a&&!c&&!o&&t>e||o&&r&&l&&!a&&!c||i&&r&&l||!n&&l||!s)return 1;if(!i&&!o&&!c&&t<e||c&&n&&s&&!i&&!o||a&&n&&s||!r&&s||!l)return-1}return 0}function Hs(t,e,n){e=e.length?y(e,function(t){return b(t)?function(e){return ve(e,1===t.length?t[0]:t)}:t}):[_];var i=-1;e=y(e,Vt(Zi));var s=function(t,e){var n=-1,i=vt(t)?Array(t.length):[];return ss(t,function(t,s,o){i[++n]=e(t,s,o)}),i}(t,function(t,n,s){return{criteria:y(e,function(e){return e(t)}),index:++i,value:t}});return function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(s,function(t,e){return function(t,e,n){for(var i=-1,s=t.criteria,o=e.criteria,r=s.length,a=n.length;++i<r;){var l=Us(s[i],o[i]);if(l)return i>=a?l:l*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)})}function Ws(t,e){return function(t,e,n){for(var i=-1,s=e.length,o={};++i<s;){var r=e[i],a=ve(t,r);n(a,r)&&Gs(o,ye(r,t),a)}return o}(t,e,function(e,n){return Yi(t,n)})}var qs=function(t){return ot(mt(t,void 0,Pe),t+"")}(function(t,e){return null==t?{}:Ws(t,e)}),Xs=qs,Ys=yt(function(t,e){if(null==t)return[];var n=e.length;return n>1&&xt(t,e[0],e[1])?e=[]:n>2&&xt(e[0],e[1],e[2])&&(e=[e[0]]),Hs(t,Ce(e,1),[])}),Js=Ys,Ks=Math.floor,Zs=Math.min;function Qs(t,e,n,i){var s=0,o=null==t?0:t.length;if(0===o)return 0;for(var r=(e=n(e))!=e,a=null===e,l=m(e),c=void 0===e;s<o;){var h=Ks((s+o)/2),u=n(t[h]),d=void 0!==u,p=null===u,g=u==u,f=m(u);if(r)var y=i||g;else y=c?g&&(i||d):a?g&&d&&(i||!p):l?g&&d&&!p&&(i||!f):!p&&!f&&(i?u<=e:u<e);y?s=h+1:o=h}return Zs(o,4294967294)}function to(t,e){return function(t,e,n){var i=0,s=null==t?i:t.length;if("number"==typeof e&&e==e&&s<=2147483647){for(;i<s;){var o=i+s>>>1,r=t[o];null!==r&&!m(r)&&(n?r<=e:r<e)?i=o+1:s=o}return s}return Qs(t,e,_,n)}(t,e)}var eo=Mn(function(t,e,n){return t+(n?" ":"")+Ye(e)}),no=eo;var io=Jn&&1/ji(new Jn([,-0]))[1]==1/0?function(t){return new Jn(t)}:function(){};function so(t,e,n){var i=-1,s=at,o=t.length,r=!0,a=[],l=a;if(n)r=!1,s=Cs;else if(o>=200){var c=e?null:io(t);if(c)return ji(c);r=!1,s=_i,l=new Ai}else l=e?[]:a;t:for(;++i<o;){var h=t[i],u=e?e(h):h;if(h=n||0!==h?h:0,r&&u==u){for(var d=l.length;d--;)if(l[d]===u)continue t;e&&l.push(u),a.push(h)}else s(l,u,n)||(l!==a&&l.push(u),a.push(h))}return a}var oo=yt(function(t){return so(Ce(t,1,fs,!0))});function ro(t){return t&&t.length?so(t):[]}var ao=0;function lo(t){return"string"==typeof t&&"%"===t.slice(-1)}function co(t,e){if(null==t)return 0;let n;if("string"==typeof t){if(n=parseFloat(t),lo(t)&&(n/=100,Number.isFinite(n)))return n*e}else n=t;return Number.isFinite(n)?n>0&&n<1?n*e:n:0}function ho(t){if("object"==typeof t){let e=0,n=0,i=0,s=0;return null!=t.vertical&&Number.isFinite(t.vertical)&&(n=s=t.vertical),null!=t.horizontal&&Number.isFinite(t.horizontal)&&(i=e=t.horizontal),null!=t.left&&Number.isFinite(t.left)&&(e=t.left),null!=t.top&&Number.isFinite(t.top)&&(n=t.top),null!=t.right&&Number.isFinite(t.right)&&(i=t.right),null!=t.bottom&&Number.isFinite(t.bottom)&&(s=t.bottom),{top:n,right:i,bottom:s,left:e}}let e=0;return null!=t&&Number.isFinite(t)&&(e=t),{top:e,right:e,bottom:e,left:e}}let uo=!1,po=!1,go=!1,fo=!1,mo=!1;if("object"==typeof navigator){const t=navigator.userAgent;t.indexOf("Macintosh"),t.match(/(iPad|iPhone|iPod)/g),t.indexOf("Windows"),uo=t.indexOf("MSIE")>=0,t.match(/Trident\/7\./),po=!!t.match(/Edge\//),t.indexOf("Mozilla/")>=0&&t.indexOf("MSIE")<0&&t.indexOf("Edge/"),t.indexOf("Chrome/")>=0&&t.indexOf("Edge/"),t.indexOf("Opera/")>=0||t.indexOf("OPR/"),t.indexOf("Firefox/"),go=t.indexOf("AppleWebKit/")>=0&&t.indexOf("Chrome/")<0&&t.indexOf("Edge/")<0,"object"==typeof document&&(mo=!document.createElementNS||"[object SVGForeignObjectElement]"!=`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`||t.indexOf("Opera/")>=0)}if("object"==typeof window&&null!=window.chrome&&null!=window.chrome.app&&window.chrome.app.runtime,"object"==typeof document)try{const t=Object.defineProperty({},"passive",{get(){fo=!0}}),e=document.createElement("div");e.addEventListener&&e.addEventListener("click",()=>{},t)}catch(t){}const yo=uo,bo=po,vo=go,xo=!mo;function wo(){return"apply"===function(){const t=window.module;return null!=t&&null!=t.hot&&null!=t.hot.status?t.hot.status():"unkonwn"}()}const Eo={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};const Co=[];function Po(t,e){const n=Co.find(e=>e.name===t);if(!(n&&(n.loadTimes+=1,n.loadTimes>1)||wo())){const n=document.createElement("style");n.setAttribute("type","text/css"),n.textContent=e;const i=document.querySelector("head");i&&i.insertBefore(n,i.firstChild),Co.push({name:t,loadTimes:1,styleElement:n})}}function So(t){const e=Co.findIndex(e=>e.name===t);if(e>-1){const t=Co[e];if(t.loadTimes-=1,t.loadTimes>0)return;let n=t.styleElement;n&&n.parentNode&&n.parentNode.removeChild(n),n=null,Co.splice(e,1)}}function Oo(t){const e=parseFloat(t);return Number.isNaN(e)?null:e}function Mo(t,e){if(!t||function(t){const e="data:";return t.substr(0,5)===e}(t))return void setTimeout(()=>e(null,t));const n=()=>{e(new Error(`Failed to load image: ${t}`))},i=window.FileReader?t=>{if(200===t.status){const i=new FileReader;i.onload=t=>{const n=t.target.result;e(null,n)},i.onerror=n,i.readAsDataURL(t.response)}else n()}:i=>{if(200===i.status){let n=t.split(".").pop()||"png";"svg"===n&&(n="svg+xml");const s=`data:image/${n};base64,`,o=new Uint8Array(i.response),r=s+btoa((t=>{const e=[];for(let n=0;n<t.length;n+=32768)e.push(String.fromCharCode.apply(null,t.subarray(n,n+32768)));return e.join("")})(o));e(null,r)}else n()},s=new XMLHttpRequest;s.responseType=window.FileReader?"blob":"arraybuffer",s.open("GET",t,!0),s.addEventListener("error",n),s.addEventListener("load",()=>i(s)),s.send()}function No(t,e){const n=function(t){let e=t.replace(/\s/g,"");e=decodeURIComponent(e);const n=e.indexOf(","),i=e.slice(0,n),s=i.split(":")[1].split(";")[0],o=e.slice(n+1);let r;r=i.indexOf("base64")>=0?atob(o):unescape(encodeURIComponent(o));const a=new Uint8Array(r.length);for(let t=0;t<r.length;t+=1)a[t]=r.charCodeAt(t);return new Blob([a],{type:s})}(t);!function(t,e){const n=window.navigator.msSaveBlob;if(n)n(t,e);else{const n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}}(n,e)}function Ao(t){return null!=t&&(t instanceof Promise||function(t){return"object"==typeof t&&t.then&&"function"==typeof t.then}(t))}function To(...t){const e=[];t.forEach(t=>{Array.isArray(t)?e.push(...t):e.push(t)});if(e.some(t=>Ao(t))){const t=e.map(t=>Ao(t)?t:Promise.resolve(!1!==t));return Promise.all(t).then(t=>t.reduce((t,e)=>!1!==e&&t,!0))}return e.every(t=>!1!==t)}function _o(t,e,n){if(n)switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2]);case 4:return t.call(e,n[0],n[1],n[2],n[3]);case 5:return t.call(e,n[0],n[1],n[2],n[3],n[4]);case 6:return t.call(e,n[0],n[1],n[2],n[3],n[4],n[5]);default:return t.apply(e,n)}return t.call(e)}function ko(t,e,...n){return _o(t,e,n)}function Do(t){return 180*t/Math.PI%360}const jo=function(t,e=!1){return(e?t:t%360)*Math.PI/180};function Vo(t){return t%360+(t<0?360:0)}function Lo(t,e=0){return Number.isInteger(t)?t:+t.toFixed(e)}function Io(t,e){let n,i;if(null==e?(i=null==t?1:t,n=0):(i=e,n=null==t?0:t),i<n){const t=n;n=i,i=t}return Math.floor(Math.random()*(i-n+1)+n)}function Ro(t,e,n){return Number.isNaN(t)?NaN:Number.isNaN(e)||Number.isNaN(n)?0:e<n?t<e?e:t>n?n:t:t<n?n:t>e?e:t}function Bo(t,e){return e*Math.round(t/e)}function zo(t,e){return null!=e&&null!=t&&e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height}function $o(t,e){const n=t.x-e.x,i=t.y-e.y;return n*n+i*i}class Fo{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class Go extends Fo{static create(t,e){return null==t||"number"==typeof t?new Go(t,e):Go.clone(t)}static clone(t){return Go.isPoint(t)?new Go(t.x,t.y):Array.isArray(t)?new Go(t[0],t[1]):new Go(t.x,t.y)}static equals(t,e){return t===e||null!=t&&null!=e&&(t.x===e.x&&t.y===e.y)}static rotateEx(t,e,n,i=new Go){const s=Go.clone(t),o=Go.clone(i),r=s.x-o.x,a=s.y-o.y,l=a*e+r*n;return new Go(r*e-a*n+o.x,l+o.y)}static toJSON(t){return Go.isPoint(t)?{x:t.x,y:t.y}:Array.isArray(t)?{x:t[0],y:t[1]}:{x:t.x,y:t.y}}static fromPolar(t,e,n=new Go){let i=Math.abs(t*Math.cos(e)),s=Math.abs(t*Math.sin(e));const o=Go.clone(n),r=Vo(Do(e));return r<90?s=-s:r<180?(i=-i,s=-s):r<270&&(i=-i),new Go(o.x+i,o.y+s)}static toPolar(t,e=new Go){const n=Go.clone(t),i=Go.clone(e),s=n.x-i.x,o=n.y-i.y;return new Go(Math.sqrt(s*s+o*o),jo(i.theta(n)))}static equalPoints(t,e){if(null==t&&null!=e||null!=t&&null==e||null!=t&&null!=e&&t.length!==e.length)return!1;if(null!=t&&null!=e)for(let n=0,i=t.length;n<i;n+=1)if(!Go.equals(t[n],e[n]))return!1;return!0}static random(t,e,n,i){return new Go(Io(t,e),Io(n,i))}static rotate(t,e,n){const i=jo(Vo(-e)),s=Math.sin(i),o=Math.cos(i);return Go.rotateEx(t,o,s,n)}static isPoint(t){return null!=t&&t instanceof Go}static isPointLike(t){return null!=t&&"object"==typeof t&&"number"==typeof t.x&&"number"==typeof t.y}static isPointData(t){return null!=t&&Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}constructor(t,e){super(),this.x=null==t?0:t,this.y=null==e?0:e}round(t=0){return this.x=Lo(this.x,t),this.y=Lo(this.y,t),this}add(t,e){const n=Go.create(t,e);return this.x+=n.x,this.y+=n.y,this}update(t,e){const n=Go.create(t,e);return this.x=n.x,this.y=n.y,this}translate(t,e){const n=Go.create(t,e);return this.x+=n.x,this.y+=n.y,this}rotate(t,e){const n=Go.rotate(this,t,e);return this.x=n.x,this.y=n.y,this}scale(t,e,n=new Go){const i=Go.create(n);return this.x=i.x+t*(this.x-i.x),this.y=i.y+e*(this.y-i.y),this}closest(t){if(1===t.length)return Go.create(t[0]);let e=null,n=1/0;return t.forEach(t=>{const i=this.squaredDistance(t);i<n&&(e=t,n=i)}),e?Go.create(e):null}distance(t){return Math.sqrt(this.squaredDistance(t))}squaredDistance(t){const e=Go.create(t),n=this.x-e.x,i=this.y-e.y;return n*n+i*i}manhattanDistance(t){const e=Go.create(t);return Math.abs(e.x-this.x)+Math.abs(e.y-this.y)}magnitude(){return Math.sqrt(this.x*this.x+this.y*this.y)||.01}theta(t=new Go){const e=Go.create(t),n=-(e.y-this.y),i=e.x-this.x;let s=Math.atan2(n,i);return s<0&&(s=2*Math.PI+s),180*s/Math.PI}angleBetween(t,e){if(this.equals(t)||this.equals(e))return NaN;let n=this.theta(e)-this.theta(t);return n<0&&(n+=360),n}vectorAngle(t){return new Go(0,0).angleBetween(this,t)}toPolar(t){return this.update(Go.toPolar(this,t)),this}changeInAngle(t,e,n=new Go){return this.clone().translate(-t,-e).theta(n)-this.theta(n)}adhereToRect(t){return zo(t,this)||(this.x=Math.min(Math.max(this.x,t.x),t.x+t.width),this.y=Math.min(Math.max(this.y,t.y),t.y+t.height)),this}bearing(t){const e=Go.create(t),n=jo(this.y),i=jo(e.y),s=this.x,o=e.x,r=jo(o-s),a=Math.sin(r)*Math.cos(i),l=Math.cos(n)*Math.sin(i)-Math.sin(n)*Math.cos(i)*Math.cos(r);let c=Do(Math.atan2(a,l))-22.5;return c<0&&(c+=360),c=parseInt(c/45,10),["NE","E","SE","S","SW","W","NW","N"][c]}cross(t,e){if(null!=t&&null!=e){const n=Go.create(t),i=Go.create(e);return(i.x-this.x)*(n.y-this.y)-(i.y-this.y)*(n.x-this.x)}return NaN}dot(t){const e=Go.create(t);return this.x*e.x+this.y*e.y}diff(t,e){if("number"==typeof t)return new Go(this.x-t,this.y-e);const n=Go.create(t);return new Go(this.x-n.x,this.y-n.y)}lerp(t,e){const n=Go.create(t);return new Go((1-e)*this.x+e*n.x,(1-e)*this.y+e*n.y)}normalize(t=1){const e=t/this.magnitude();return this.scale(e,e)}move(t,e){const n=Go.create(t),i=jo(n.theta(this));return this.translate(Math.cos(i)*e,-Math.sin(i)*e)}reflection(t){return Go.create(t).move(this,this.distance(t))}snapToGrid(t,e){return this.x=Bo(this.x,t),this.y=Bo(this.y,null==e?t:e),this}equals(t){const e=Go.create(t);return null!=e&&e.x===this.x&&e.y===this.y}clone(){return Go.clone(this)}toJSON(){return Go.toJSON(this)}serialize(){return`${this.x} ${this.y}`}}class Uo extends Fo{static isRectangle(t){return null!=t&&t instanceof Uo}static isRectangleLike(t){return null!=t&&"object"==typeof t&&"number"==typeof t.x&&"number"==typeof t.y&&"number"==typeof t.width&&"number"==typeof t.height}static create(t,e,n,i){return null==t||"number"==typeof t?new Uo(t,e,n,i):Uo.clone(t)}static clone(t){return Uo.isRectangle(t)?t.clone():Array.isArray(t)?new Uo(t[0],t[1],t[2],t[3]):new Uo(t.x,t.y,t.width,t.height)}static fromEllipse(t){return new Uo(t.x-t.a,t.y-t.b,2*t.a,2*t.b)}static fromSize(t){return new Uo(0,0,t.width,t.height)}static fromPositionAndSize(t,e){return new Uo(t.x,t.y,e.width,e.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 Go(this.x,this.y)}get topLeft(){return new Go(this.x,this.y)}get topCenter(){return new Go(this.x+this.width/2,this.y)}get topRight(){return new Go(this.x+this.width,this.y)}get center(){return new Go(this.x+this.width/2,this.y+this.height/2)}get bottomLeft(){return new Go(this.x,this.y+this.height)}get bottomCenter(){return new Go(this.x+this.width/2,this.y+this.height)}get bottomRight(){return new Go(this.x+this.width,this.y+this.height)}get corner(){return new Go(this.x+this.width,this.y+this.height)}get rightMiddle(){return new Go(this.x+this.width,this.y+this.height/2)}get leftMiddle(){return new Go(this.x,this.y+this.height/2)}get topLine(){return new Ho(this.topLeft,this.topRight)}get rightLine(){return new Ho(this.topRight,this.bottomRight)}get bottomLine(){return new Ho(this.bottomLeft,this.bottomRight)}get leftLine(){return new Ho(this.topLeft,this.bottomLeft)}constructor(t,e,n,i){super(),this.x=null==t?0:t,this.y=null==e?0:e,this.width=null==n?0:n,this.height=null==i?0:i}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}bbox(t){if(!t)return this.clone();const e=jo(t),n=Math.abs(Math.sin(e)),i=Math.abs(Math.cos(e)),s=this.width*i+this.height*n,o=this.width*n+this.height*i;return new Uo(this.x+(this.width-s)/2,this.y+(this.height-o)/2,s,o)}round(t=0){return this.x=Lo(this.x,t),this.y=Lo(this.y,t),this.width=Lo(this.width,t),this.height=Lo(this.height,t),this}add(t,e,n,i){const s=Uo.create(t,e,n,i),o=Math.min(this.x,s.x),r=Math.min(this.y,s.y),a=Math.max(this.x+this.width,s.x+s.width),l=Math.max(this.y+this.height,s.y+s.height);return this.x=o,this.y=r,this.width=a-o,this.height=l-r,this}update(t,e,n,i){const s=Uo.create(t,e,n,i);return this.x=s.x,this.y=s.y,this.width=s.width,this.height=s.height,this}inflate(t,e){const n=t,i=null!=e?e:t;return this.x-=n,this.y-=i,this.width+=2*n,this.height+=2*i,this}snapToGrid(t,e){const n=this.origin.snapToGrid(t,e),i=this.corner.snapToGrid(t,e);return this.x=n.x,this.y=n.y,this.width=i.x-n.x,this.height=i.y-n.y,this}translate(t,e){const n=Go.create(t,e);return this.x+=n.x,this.y+=n.y,this}scale(t,e,n=new Go){const i=this.origin.scale(t,e,n);return this.x=i.x,this.y=i.y,this.width*=t,this.height*=e,this}rotate(t,e=this.getCenter()){if(0!==t){const n=jo(t),i=Math.cos(n),s=Math.sin(n);let o=this.getOrigin(),r=this.getTopRight(),a=this.getBottomRight(),l=this.getBottomLeft();o=Go.rotateEx(o,i,s,e),r=Go.rotateEx(r,i,s,e),a=Go.rotateEx(a,i,s,e),l=Go.rotateEx(l,i,s,e);const c=new Uo(o.x,o.y,0,0);c.add(r.x,r.y,0,0),c.add(a.x,a.y,0,0),c.add(l.x,l.y,0,0),this.update(c)}return this}rotate90(){const t=(this.width-this.height)/2;this.x+=t,this.y-=t;const e=this.width;return this.width=this.height,this.height=e,this}moveAndExpand(t){const e=Uo.clone(t);return this.x+=e.x||0,this.y+=e.y||0,this.width+=e.width||0,this.height+=e.height||0,this}getMaxScaleToFit(t,e=this.center){const n=Uo.clone(t),i=e.x,s=e.y;let o=1/0,r=1/0,a=1/0,l=1/0,c=1/0,h=1/0,u=1/0,d=1/0;const p=n.topLeft;p.x<i&&(o=(this.x-i)/(p.x-i)),p.y<s&&(c=(this.y-s)/(p.y-s));const g=n.bottomRight;g.x>i&&(r=(this.x+this.width-i)/(g.x-i)),g.y>s&&(h=(this.y+this.height-s)/(g.y-s));const f=n.topRight;f.x>i&&(a=(this.x+this.width-i)/(f.x-i)),f.y<s&&(u=(this.y-s)/(f.y-s));const m=n.bottomLeft;return m.x<i&&(l=(this.x-i)/(m.x-i)),m.y>s&&(d=(this.y+this.height-s)/(m.y-s)),{sx:Math.min(o,r,a,l),sy:Math.min(c,h,u,d)}}getMaxUniformScaleToFit(t,e=this.center){const n=this.getMaxScaleToFit(t,e);return Math.min(n.sx,n.sy)}containsPoint(t,e){return zo(this,Go.create(t,e))}containsRect(t,e,n,i){const s=Uo.create(t,e,n,i),o=this.x,r=this.y,a=this.width,l=this.height,c=s.x,h=s.y,u=s.width,d=s.height;return 0!==a&&0!==l&&0!==u&&0!==d&&(c>=o&&h>=r&&c+u<=o+a&&h+d<=r+l)}intersectsWithLine(t){const e=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],n=[],i=[];return e.forEach(e=>{const s=t.intersectsWithLine(e);null!==s&&i.indexOf(s.toString())<0&&(n.push(s),i.push(s.toString()))}),n.length>0?n:null}intersectsWithLineFromCenterToPoint(t,e){const n=Go.clone(t),i=this.center;let s=null;null!=e&&0!==e&&n.rotate(e,i);const o=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],r=new Ho(i,n);for(let t=o.length-1;t>=0;t-=1){const e=o[t].intersectsWithLine(r);if(null!==e){s=e;break}}return s&&null!=e&&0!==e&&s.rotate(-e,i),s}intersectsWithRect(t,e,n,i){const s=Uo.create(t,e,n,i);if(!this.isIntersectWithRect(s))return null;const o=this.origin,r=this.corner,a=s.origin,l=s.corner,c=Math.max(o.x,a.x),h=Math.max(o.y,a.y);return new Uo(c,h,Math.min(r.x,l.x)-c,Math.min(r.y,l.y)-h)}isIntersectWithRect(t,e,n,i){const s=Uo.create(t,e,n,i),o=this.origin,r=this.corner,a=s.origin,l=s.corner;return!(l.x<=o.x||l.y<=o.y||a.x>=r.x||a.y>=r.y)}normalize(){let t=this.x,e=this.y,n=this.width,i=t