2 lines
3.4 MiB
2 lines
3.4 MiB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SQLFlow=t():e.SQLFlow=t()}(self,(function(){return function(){var __webpack_modules__={68400:function(e,t,n){"use strict";var r=n(81474),i=n(26401),o=n(55299);function a(e,t){switch(i(e)){case"object":return function(e,t){if("function"==typeof t)return t(e);if(t||o(e)){var n=new e.constructor;for(var r in e)n[r]=a(e[r],t);return n}return e}(e,t);case"array":return function(e,t){for(var n=new e.constructor(e.length),r=0;r<e.length;r++)n[r]=a(e[r],t);return n}(e,t);default:return r(e)}}e.exports=a},83296:function(e,t,n){var r=n(50008),i=function(e){return void 0===e},o=function(e){return Array.isArray(e)},a=function(e){return e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.slice};e.exports={serialize:function e(t,n,s,l){return(n=n||{}).indices=!i(n.indices)&&n.indices,n.nullsAsUndefineds=!i(n.nullsAsUndefineds)&&n.nullsAsUndefineds,n.booleansAsIntegers=!i(n.booleansAsIntegers)&&n.booleansAsIntegers,n.allowEmptyArrays=!i(n.allowEmptyArrays)&&n.allowEmptyArrays,s=s||new FormData,i(t)||(null===t?n.nullsAsUndefineds||s.append(l,""):!function(e){return"boolean"==typeof e}(t)?o(t)?t.length?t.forEach((function(t,r){var i=l+"["+(n.indices?r:"")+"]";e(t,n,s,i)})):n.allowEmptyArrays&&s.append(l+"[]",""):!function(e){return e instanceof Date}(t)?!function(e){return e===Object(e)}(t)||function(e){return a(e)&&"string"==typeof e.name&&("object"===r(e.lastModifiedDate)||"number"==typeof e.lastModified)}(t)||a(t)?s.append(l,t):Object.keys(t).forEach((function(r){var i=t[r];if(o(i))for(;r.length>2&&r.lastIndexOf("[]")===r.length-2;)r=r.substring(0,r.length-2);e(i,n,s,l?l+"["+r+"]":r)})):s.append(l,t.toISOString()):n.booleansAsIntegers?s.append(l,t?1:0):s.append(l,t)),s}}},81474:function(e,t,n){"use strict";var r=Symbol.prototype.valueOf,i=n(26401);e.exports=function(e,t){switch(i(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return function(e){var t=e.length,n=Buffer.allocUnsafe?Buffer.allocUnsafe(t):Buffer.from(t);return e.copy(n),n}(e);case"symbol":return function(e){return r?Object(r.call(e)):{}}(e);case"arraybuffer":return function(e){var t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}(e);case"regexp":return function(e){var t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,n=new e.constructor(e.source,t);return n.lastIndex=e.lastIndex,n}(e);case"error":return Object.create(e);default:return e}}},67228:function(e){e.exports=function(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}},22858:function(e){e.exports=function(e){if(Array.isArray(e))return e}},23646:function(e,t,n){var r=n(67228);e.exports=function(e){if(Array.isArray(e))return r(e)}},81506:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},48926:function(e){function t(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=e.apply(n,r);function s(e){t(a,i,o,s,l,"next",e)}function l(e){t(a,i,o,s,l,"throw",e)}s(void 0)}))}}},34575:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},69100:function(e,t,n){var r=n(99489),i=n(4043);function o(t,n,a){return i()?e.exports=o=Reflect.construct:e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}e.exports=o},93913:function(e){function t(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)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},59713:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},67154:function(e){function t(){return e.exports=t=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},t.apply(this,arguments)}e.exports=t},29754:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},2205:function(e,t,n){var r=n(99489);e.exports=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&&r(e,t)}},70430:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},4043:function(e){e.exports=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}}},46860:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},13884:function(e){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},80521:function(e){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.")}},98206:function(e){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.")}},6479:function(e,t,n){var r=n(37316);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},37316:function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},78585:function(e,t,n){var r=n(50008),i=n(81506);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},99489:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},63038:function(e,t,n){var r=n(22858),i=n(13884),o=n(60379),a=n(80521);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},28655:function(e){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},319:function(e,t,n){var r=n(23646),i=n(46860),o=n(60379),a=n(98206);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},50008:function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},60379:function(e,t,n){var r=n(67228);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},65957:function(e,t,n){var r=n(29754),i=n(99489),o=n(70430),a=n(69100);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},s(t)}e.exports=s},87757:function(e,t,n){e.exports=n(35666)},62844:function(e,t,n){"use strict";n.d(t,{Cf:function(){return s},DM:function(){return a},Rf:function(){return o}});var r=n(61422),i={};function o(){return(0,r.KV)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(){var e=o(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){var t=o();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}},61422:function(e,t,n){"use strict";function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}n.d(t,{KV:function(){return r},l$:function(){return i}}),e=n.hmd(e)},21170:function(e,t,n){"use strict";n.d(t,{ph:function(){return c},yW:function(){return l}});var r=n(62844),i=n(61422);e=n.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}};var a=(0,i.KV)()?function(){try{return(0,i.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.Rf)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},l=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s);!function(){var e=(0,r.Rf)().performance;if(e&&e.now){var t=36e5,n=e.now(),i=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-i):t,a=o<t,s=e.timing&&e.timing.navigationStart,l="number"==typeof s?Math.abs(s+n-i):t;return a||l<t?o<=l?("timeOrigin",e.timeOrigin):("navigationStart",s):("dateNow",i)}"none"}()},65556:function(e,t,n){var r=n(22487)(n(49579),"DataView");e.exports=r},39973:function(e,t,n){var r=n(2112),i=n(20073),o=n(67720),a=n(32378),s=n(12971);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},98133:function(e,t,n){var r=n(19096),i=n(57235),o=n(95879),a=n(31347),s=n(26500);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},56748:function(e,t,n){var r=n(22487)(n(49579),"Map");e.exports=r},55663:function(e,t,n){var r=n(41265),i=n(63170),o=n(68240),a=n(9117),s=n(72905);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},90542:function(e,t,n){var r=n(22487)(n(49579),"Promise");e.exports=r},9297:function(e,t,n){var r=n(22487)(n(49579),"Set");e.exports=r},13425:function(e,t,n){var r=n(55663),i=n(13692),o=n(9828);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},47101:function(e,t,n){var r=n(98133),i=n(76153),o=n(81734),a=n(48829),s=n(76257),l=n(64045);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},85223:function(e,t,n){var r=n(49579).Symbol;e.exports=r},2536:function(e,t,n){var r=n(49579).Uint8Array;e.exports=r},17069:function(e,t,n){var r=n(22487)(n(49579),"WeakMap");e.exports=r},85430:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},68902:function(e,t,n){var r=n(47091),i=n(49110),o=n(82444),a=n(91942),s=n(44986),l=n(35968),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),f=n||u||d||h,p=f?r(e.length,String):[],g=p.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},96358:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},7231:function(e){e.exports=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}},51367:function(e,t,n){var r=n(64241);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},31788:function(e,t,n){var r=n(96358),i=n(82444);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},26052:function(e,t,n){var r=n(85223),i=n(95963),o=n(2617),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},59961:function(e,t,n){var r=n(26052),i=n(84432);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},636:function(e,t,n){var r=n(13650),i=n(84432);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},13650:function(e,t,n){var r=n(47101),i=n(17716),o=n(91790),a=n(81676),s=n(98488),l=n(82444),c=n(91942),u=n(35968),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),w=y?h:s(e),_=b?h:s(t),x=(w=w==d?f:w)==f,E=(_=_==d?f:_)==f,C=w==_;if(C&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(C&&!x)return v||(v=new r),y||u(e)?i(e,t,n,g,m,v):o(e,t,w,n,g,m,v);if(!(1&n)){var k=x&&p.call(e,"__wrapped__"),S=E&&p.call(t,"__wrapped__");if(k||S){var T=k?e.value():e,M=S?t.value():t;return v||(v=new r),m(T,M,n,g,v)}}return!!C&&(v||(v=new r),a(e,t,n,g,m,v))}},29074:function(e,t,n){var r=n(4310),i=n(18741),o=n(75648),a=n(33074),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},62680:function(e,t,n){var r=n(26052),i=n(99645),o=n(84432),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},85368:function(e,t,n){var r=n(46392),i=n(34186),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},47091:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},81021:function(e,t,n){var r=n(10471),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},85593:function(e){e.exports=function(e){return function(t){return e(t)}}},73671:function(e){e.exports=function(e,t){return e.has(t)}},23500:function(e,t,n){var r=n(49579)["__core-js_shared__"];e.exports=r},17716:function(e,t,n){var r=n(13425),i=n(7231),o=n(73671);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var v=e[p],y=t[p];if(a)var b=c?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},91790:function(e,t,n){var r=n(85223),i=n(2536),o=n(64241),a=n(17716),s=n(99770),l=n(9333),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,h){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||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&r;if(f||(f=l),e.size!=t.size&&!p)return!1;var g=h.get(e);if(g)return g==t;r|=2,h.set(e,t);var m=a(f(e),f(t),r,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},81676:function(e,t,n){var r=n(51439),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[h=c[d]],y=t[h];if(o)var b=l?o(y,v,h,t,e,s):o(v,y,h,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}},32953:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},51439:function(e,t,n){var r=n(31788),i=n(34640),o=n(33335);e.exports=function(e){return r(e,o,i)}},60054:function(e,t,n){var r=n(77793);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},22487:function(e,t,n){var r=n(29074),i=n(99494);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},95963:function(e,t,n){var r=n(85223),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},34640:function(e,t,n){var r=n(85430),i=n(28489),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},98488:function(e,t,n){var r=n(65556),i=n(56748),o=n(90542),a=n(9297),s=n(17069),l=n(26052),c=n(33074),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(r),m=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return p;case m:return u;case v:return d;case y:return h;case b:return f}return t}),e.exports=w},99494:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2112:function(e,t,n){var r=n(77760);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},20073:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},67720:function(e,t,n){var r=n(77760),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}},32378:function(e,t,n){var r=n(77760),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},12971:function(e,t,n){var r=n(77760);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}},44986:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},77793:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},18741:function(e,t,n){var r,i=n(23500),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},46392:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},19096:function(e){e.exports=function(){this.__data__=[],this.size=0}},57235:function(e,t,n){var r=n(51367),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)}},95879:function(e,t,n){var r=n(51367);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},31347:function(e,t,n){var r=n(51367);e.exports=function(e){return r(this.__data__,e)>-1}},26500:function(e,t,n){var r=n(51367);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}},41265:function(e,t,n){var r=n(39973),i=n(98133),o=n(56748);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},63170:function(e,t,n){var r=n(60054);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},68240:function(e,t,n){var r=n(60054);e.exports=function(e){return r(this,e).get(e)}},9117:function(e,t,n){var r=n(60054);e.exports=function(e){return r(this,e).has(e)}},72905:function(e,t,n){var r=n(60054);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}},99770:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},77760:function(e,t,n){var r=n(22487)(Object,"create");e.exports=r},34186:function(e,t,n){var r=n(42280)(Object.keys,Object);e.exports=r},33484:function(e,t,n){e=n.nmd(e);var r=n(32953),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2617:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},42280:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},49579:function(e,t,n){var r=n(32953),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},13692:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},9828:function(e){e.exports=function(e){return this.__data__.has(e)}},9333:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},76153:function(e,t,n){var r=n(98133);e.exports=function(){this.__data__=new r,this.size=0}},81734:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},48829:function(e){e.exports=function(e){return this.__data__.get(e)}},76257:function(e){e.exports=function(e){return this.__data__.has(e)}},64045:function(e,t,n){var r=n(98133),i=n(56748),o=n(55663);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},33074:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},10471:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},66279:function(e,t,n){var r=n(75648),i=n(32951),o=n(41421),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=c;return l=c=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-f;return void 0===f||n>=t||n<0||m&&e-p>=u}function w(){var e=i();if(b(e))return _(e);h=setTimeout(w,function(e){var n=t-(e-f);return m?s(n,u-(e-p)):n}(e))}function _(e){return h=void 0,v&&l?y(e):(l=c=void 0,d)}function x(){var e=i(),n=b(e);if(l=arguments,c=this,f=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(w,t),g?y(e):d}(f);if(m)return clearTimeout(h),h=setTimeout(w,t),y(f)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?a(o(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),x.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=c=h=void 0},x.flush=function(){return void 0===h?d:_(i())},x}},64241:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},49110:function(e,t,n){var r=n(59961),i=n(84432),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},82444:function(e){var t=Array.isArray;e.exports=t},77247:function(e,t,n){var r=n(4310),i=n(99645);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},91942:function(e,t,n){e=n.nmd(e);var r=n(49579),i=n(86965),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},81818:function(e,t,n){var r=n(636);e.exports=function(e,t){return r(e,t)}},4310:function(e,t,n){var r=n(26052),i=n(75648);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}},99645:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},75648:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},84432:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},81244:function(e,t,n){var r=n(26052),i=n(84432);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},35968:function(e,t,n){var r=n(62680),i=n(85593),o=n(33484),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},33335:function(e,t,n){var r=n(68902),i=n(85368),o=n(77247);e.exports=function(e){return o(e)?r(e):i(e)}},32951:function(e,t,n){var r=n(49579);e.exports=function(){return r.Date.now()}},28489:function(e){e.exports=function(){return[]}},86965:function(e){e.exports=function(){return!1}},41421:function(e,t,n){var r=n(81021),i=n(75648),o=n(81244),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(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||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},47011:function(e,t,n){var r;e.exports=(r=n(40989),n(80029),n(89429),n(31452),n(60548),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var g=e[n],m=e[g],v=e[m],y=257*e[p]^16843008*p;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*m^257*g^16843008*n,u[p]=y<<24|y>>>8,d[p]=y<<16|y>>>16,h[p]=y<<8|y>>>24,f[p]=y,n?(n=g^e[e[e[v^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=t[a]:(c=o[a-1],a%n?n>6&&a%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:u[i[c>>>24]]^d[i[c>>>16&255]]^h[i[c>>>8&255]]^f[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,f,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],f=4,p=1;p<l;p++){var g=r[c>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[f++],m=r[u>>>24]^i[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[f++],v=r[d>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[f++],y=r[h>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[f++];c=g,u=m,d=v,h=y}g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[f++],m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],y=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(g)}(),r.AES)},60548:function(e,t,n){var r;e.exports=(r=n(40989),n(31452),void(r.lib.Cipher||function(e){var t=r,n=t.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=t.enc,l=(s.Utf8,s.Base64),c=t.algo.EvpKDF,u=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),d=(n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),h=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var t=h.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),t}(),p=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var l=o.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},g=(n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},v=n.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return g.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var i=c.create({keySize:t+n}).compute(e,r),a=o.create(i.words.slice(t),4*n);return i.sigBytes=4*t,g.create({key:i,iv:a,salt:r})}},b=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=v.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,v.decrypt.call(this,e,t,i.key,r)}})}()))},40989:function(e,t,n){var r;e.exports=(r=r||function(e,t){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&void 0!==n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(96771)}catch(e){}var i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(i,d);n=i.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(s.Hasher=p.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),a.algo={});return a}(Math),r)},80029:function(e,t,n){var r;e.exports=(r=n(40989),function(){var e=r,t=e.lib.WordArray;function n(e,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)},15030:function(e,t,n){var r;e.exports=(r=n(40989),function(){var e=r,t=e.lib.WordArray;function n(e,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64url={stringify:function(e,t=!0){var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)o.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,t=!0){var r=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(r=l)}return n(e,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),r.enc.Base64url)},99237:function(e,t,n){var r;e.exports=(r=n(40989),function(){var e=r,t=e.lib.WordArray,n=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i<n;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o<n;o++)r[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(r,2*n)}}}(),r.enc.Utf16)},31452:function(e,t,n){var r,i,o,a,s,l,c,u;e.exports=(u=n(40989),n(72282),n(6615),i=(r=u).lib,o=i.Base,a=i.WordArray,s=r.algo,l=s.MD5,c=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,i=r.hasher.create(),o=a.create(),s=o.words,l=r.keySize,c=r.iterations;s.length<l;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<c;u++)n=i.finalize(n),i.reset();o.concat(n)}return o.sigBytes=4*l,o}}),r.EvpKDF=function(e,t,n){return c.create(n).compute(e,t)},u.EvpKDF)},6404:function(e,t,n){var r,i,o,a;e.exports=(a=n(40989),n(60548),i=(r=a).lib.CipherParams,o=r.enc.Hex,r.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}},a.format.Hex)},6615:function(e,t,n){var r,i,o,a;e.exports=(r=n(40989),o=(i=r).lib.Base,a=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,l=o.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;i.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},69472:function(e,t,n){var r;e.exports=(r=n(40989),n(49930),n(24216),n(99237),n(80029),n(15030),n(89429),n(72282),n(46524),n(76244),n(16172),n(58316),n(33904),n(10336),n(6615),n(74426),n(31452),n(60548),n(30431),n(66173),n(55129),n(2790),n(62733),n(33635),n(44452),n(9460),n(64506),n(16634),n(6404),n(47011),n(81204),n(81931),n(95542),n(92187),r)},24216:function(e,t,n){var r;e.exports=(r=n(40989),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),r.lib.WordArray)},89429:function(e,t,n){var r;e.exports=(r=n(40989),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],_=e[t+10],x=e[t+11],E=e[t+12],C=e[t+13],k=e[t+14],S=e[t+15],T=o[0],M=o[1],O=o[2],L=o[3];T=c(T,M,O,L,a,7,s[0]),L=c(L,T,M,O,l,12,s[1]),O=c(O,L,T,M,f,17,s[2]),M=c(M,O,L,T,p,22,s[3]),T=c(T,M,O,L,g,7,s[4]),L=c(L,T,M,O,m,12,s[5]),O=c(O,L,T,M,v,17,s[6]),M=c(M,O,L,T,y,22,s[7]),T=c(T,M,O,L,b,7,s[8]),L=c(L,T,M,O,w,12,s[9]),O=c(O,L,T,M,_,17,s[10]),M=c(M,O,L,T,x,22,s[11]),T=c(T,M,O,L,E,7,s[12]),L=c(L,T,M,O,C,12,s[13]),O=c(O,L,T,M,k,17,s[14]),T=u(T,M=c(M,O,L,T,S,22,s[15]),O,L,l,5,s[16]),L=u(L,T,M,O,v,9,s[17]),O=u(O,L,T,M,x,14,s[18]),M=u(M,O,L,T,a,20,s[19]),T=u(T,M,O,L,m,5,s[20]),L=u(L,T,M,O,_,9,s[21]),O=u(O,L,T,M,S,14,s[22]),M=u(M,O,L,T,g,20,s[23]),T=u(T,M,O,L,w,5,s[24]),L=u(L,T,M,O,k,9,s[25]),O=u(O,L,T,M,p,14,s[26]),M=u(M,O,L,T,b,20,s[27]),T=u(T,M,O,L,C,5,s[28]),L=u(L,T,M,O,f,9,s[29]),O=u(O,L,T,M,y,14,s[30]),T=d(T,M=u(M,O,L,T,E,20,s[31]),O,L,m,4,s[32]),L=d(L,T,M,O,b,11,s[33]),O=d(O,L,T,M,x,16,s[34]),M=d(M,O,L,T,k,23,s[35]),T=d(T,M,O,L,l,4,s[36]),L=d(L,T,M,O,g,11,s[37]),O=d(O,L,T,M,y,16,s[38]),M=d(M,O,L,T,_,23,s[39]),T=d(T,M,O,L,C,4,s[40]),L=d(L,T,M,O,a,11,s[41]),O=d(O,L,T,M,p,16,s[42]),M=d(M,O,L,T,v,23,s[43]),T=d(T,M,O,L,w,4,s[44]),L=d(L,T,M,O,E,11,s[45]),O=d(O,L,T,M,S,16,s[46]),T=h(T,M=d(M,O,L,T,f,23,s[47]),O,L,a,6,s[48]),L=h(L,T,M,O,y,10,s[49]),O=h(O,L,T,M,k,15,s[50]),M=h(M,O,L,T,m,21,s[51]),T=h(T,M,O,L,E,6,s[52]),L=h(L,T,M,O,p,10,s[53]),O=h(O,L,T,M,_,15,s[54]),M=h(M,O,L,T,l,21,s[55]),T=h(T,M,O,L,b,6,s[56]),L=h(L,T,M,O,S,10,s[57]),O=h(O,L,T,M,v,15,s[58]),M=h(M,O,L,T,C,21,s[59]),T=h(T,M,O,L,g,6,s[60]),L=h(L,T,M,O,x,10,s[61]),O=h(O,L,T,M,f,15,s[62]),M=h(M,O,L,T,w,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+M|0,o[2]=o[2]+O|0,o[3]=o[3]+L|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),r.MD5)},30431:function(e,t,n){var r;e.exports=(r=n(40989),n(60548),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize;t.call(this,e,n,i,r),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);t.call(this,e,n,i,r),this._prevBlock=o}}),e}(),r.mode.CFB)},55129:function(e,t,n){var r;e.exports=(r=n(40989),n(60548),r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var i=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var l=0;l<i;l++)e[t+l]^=s[l]}});return e.Decryptor=i,e}(),r.mode.CTRGladman)},66173:function(e,t,n){var r,i,o;e.exports=(o=n(40989),n(60548),o.mode.CTR=(r=o.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}}),r.Decryptor=i,r),o.mode.CTR)},62733:function(e,t,n){var r,i;e.exports=(i=n(40989),n(60548),i.mode.ECB=((r=i.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),r.Decryptor=r.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),r),i.mode.ECB)},2790:function(e,t,n){var r,i,o;e.exports=(o=n(40989),n(60548),o.mode.OFB=(r=o.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}}),r.Decryptor=i,r),o.mode.OFB)},33635:function(e,t,n){var r;e.exports=(r=n(40989),n(60548),r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)},44452:function(e,t,n){var r;e.exports=(r=n(40989),n(60548),r.pad.Iso10126={pad:function(e,t){var n=4*t,i=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)},9460:function(e,t,n){var r;e.exports=(r=n(40989),n(60548),r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},16634:function(e,t,n){var r;e.exports=(r=n(40989),n(60548),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},64506:function(e,t,n){var r;e.exports=(r=n(40989),n(60548),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},r.pad.ZeroPadding)},74426:function(e,t,n){var r,i,o,a,s,l,c,u,d;e.exports=(d=n(40989),n(72282),n(6615),i=(r=d).lib,o=i.Base,a=i.WordArray,s=r.algo,l=s.SHA1,c=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=c.create(n.hasher,e),i=a.create(),o=a.create([1]),s=i.words,l=o.words,u=n.keySize,d=n.iterations;s.length<u;){var h=r.update(t).finalize(o);r.reset();for(var f=h.words,p=f.length,g=h,m=1;m<d;m++){g=r.finalize(g),r.reset();for(var v=g.words,y=0;y<p;y++)f[y]^=v[y]}i.concat(h),l[0]++}return i.sigBytes=4*u,i}}),r.PBKDF2=function(e,t,n){return u.create(n).compute(e,t)},d.PBKDF2)},92187:function(e,t,n){var r;e.exports=(r=n(40989),n(80029),n(89429),n(31452),n(60548),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=h,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),r.RabbitLegacy)},95542:function(e,t,n){var r;e.exports=(r=n(40989),n(80029),n(89429),n(31452),n(60548),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),r.Rabbit)},81931:function(e,t,n){var r;e.exports=(r=n(40989),n(80029),n(89429),n(31452),n(60548),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}e.RC4=t._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),r.RC4)},10336:function(e,t,n){var r;e.exports=(r=n(40989),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=i.create([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]),l=i.create([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]),c=i.create([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=i.create([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]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,f,w,_,x,E,C,k,S,T,M=this._hash.words,O=d.words,L=h.words,A=s.words,D=l.words,N=c.words,P=u.words;for(x=o=M[0],E=a=M[1],C=f=M[2],k=w=M[3],S=_=M[4],n=0;n<80;n+=1)T=o+e[t+A[n]]|0,T+=n<16?p(a,f,w)+O[0]:n<32?g(a,f,w)+O[1]:n<48?m(a,f,w)+O[2]:n<64?v(a,f,w)+O[3]:y(a,f,w)+O[4],T=(T=b(T|=0,N[n]))+_|0,o=_,_=w,w=b(f,10),f=a,a=T,T=x+e[t+D[n]]|0,T+=n<16?y(E,C,k)+L[0]:n<32?v(E,C,k)+L[1]:n<48?m(E,C,k)+L[2]:n<64?g(E,C,k)+L[3]:p(E,C,k)+L[4],T=(T=b(T|=0,P[n]))+S|0,x=S,S=k,k=b(C,10),C=E,E=T;T=M[1]+f+k|0,M[1]=M[2]+w+S|0,M[2]=M[3]+_+x|0,M[3]=M[4]+o+E|0,M[4]=M[0]+a+C|0,M[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function g(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(f),t.HmacRIPEMD160=o._createHmacHelper(f)}(Math),r.RIPEMD160)},72282:function(e,t,n){var r,i,o,a,s,l,c,u;e.exports=(u=n(40989),i=(r=u).lib,o=i.WordArray,a=i.Hasher,s=r.algo,l=[],c=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var u=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+s+l[c];d+=c<20?1518500249+(i&o|~i&a):c<40?1859775393+(i^o^a):c<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=a._createHelper(c),r.HmacSHA1=a._createHmacHelper(c),u.SHA1)},76244:function(e,t,n){var r,i,o,a,s,l;e.exports=(l=n(40989),n(46524),i=(r=l).lib.WordArray,o=r.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),r.SHA224=a._createHelper(s),r.HmacSHA224=a._createHmacHelper(s),l.SHA224)},46524:function(e,t,n){var r;e.exports=(r=n(40989),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[f]=g+c[f-7]+v+c[f-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[f]+c[f];h=d,d=u,u=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),r.SHA256)},33904:function(e,t,n){var r;e.exports=(r=n(40989),n(49930),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.x64.Word,s=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,d=0,h=0;h<7;h++){if(1&i){var f=(1<<h)-1;f<32?d^=1<<f:s^=1<<f-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(M=n[i]).high^=a,M.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var f=0,p=0,g=0;g<5;g++)f^=(M=n[h+5*g]).high,p^=M.low;var m=d[h];m.high=f,m.low=p}for(h=0;h<5;h++){var v=d[(h+4)%5],y=d[(h+1)%5],b=y.high,w=y.low;for(f=v.high^(b<<1|w>>>31),p=v.low^(w<<1|b>>>31),g=0;g<5;g++)(M=n[h+5*g]).high^=f,M.low^=p}for(var _=1;_<25;_++){var x=(M=n[_]).high,E=M.low,C=l[_];C<32?(f=x<<C|E>>>32-C,p=E<<C|x>>>32-C):(f=E<<C-32|x>>>64-C,p=x<<C-32|E>>>64-C);var k=d[c[_]];k.high=f,k.low=p}var S=d[0],T=n[0];for(S.high=T.high,S.low=T.low,h=0;h<5;h++)for(g=0;g<5;g++){var M=n[_=h+5*g],O=d[_],L=d[(h+1)%5+5*g],A=d[(h+2)%5+5*g];M.high=O.high^~L.high&A.high,M.low=O.low^~L.low&A.low}M=n[0];var D=u[s];M.high^=D.high,M.low^=D.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,f=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(h)}return new i.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(h),t.HmacSHA3=o._createHmacHelper(h)}(Math),r.SHA3)},58316:function(e,t,n){var r,i,o,a,s,l,c,u;e.exports=(u=n(40989),n(49930),n(16172),i=(r=u).x64,o=i.Word,a=i.WordArray,s=r.algo,l=s.SHA512,c=s.SHA384=l.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),r.SHA384=l._createHelper(c),r.HmacSHA384=l._createHmacHelper(c),u.SHA384)},16172:function(e,t,n){var r;e.exports=(r=n(40989),n(49930),function(){var e=r,t=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=r.high,p=r.low,g=i.high,m=i.low,v=o.high,y=o.low,b=a.high,w=a.low,_=s.high,x=s.low,E=u.high,C=u.low,k=d.high,S=d.low,T=h.high,M=h.low,O=f,L=p,A=g,D=m,N=v,P=y,I=b,j=w,R=_,F=x,z=E,Y=C,B=k,H=S,q=T,U=M,V=0;V<80;V++){var W,G,$=c[V];if(V<16)G=$.high=0|e[t+2*V],W=$.low=0|e[t+2*V+1];else{var K=c[V-15],J=K.high,X=K.low,Z=(J>>>1|X<<31)^(J>>>8|X<<24)^J>>>7,Q=(X>>>1|J<<31)^(X>>>8|J<<24)^(X>>>7|J<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[V-7],ae=oe.high,se=oe.low,le=c[V-16],ce=le.high,ue=le.low;G=(G=(G=Z+ae+((W=Q+se)>>>0<Q>>>0?1:0))+re+((W+=ie)>>>0<ie>>>0?1:0))+ce+((W+=ue)>>>0<ue>>>0?1:0),$.high=G,$.low=W}var de,he=R&z^~R&B,fe=F&Y^~F&H,pe=O&A^O&N^A&N,ge=L&D^L&P^D&P,me=(O>>>28|L<<4)^(O<<30|L>>>2)^(O<<25|L>>>7),ve=(L>>>28|O<<4)^(L<<30|O>>>2)^(L<<25|O>>>7),ye=(R>>>14|F<<18)^(R>>>18|F<<14)^(R<<23|F>>>9),be=(F>>>14|R<<18)^(F>>>18|R<<14)^(F<<23|R>>>9),we=l[V],_e=we.high,xe=we.low,Ee=q+ye+((de=U+be)>>>0<U>>>0?1:0),Ce=ve+ge;q=B,U=H,B=z,H=Y,z=R,Y=F,R=I+(Ee=(Ee=(Ee=Ee+he+((de+=fe)>>>0<fe>>>0?1:0))+_e+((de+=xe)>>>0<xe>>>0?1:0))+G+((de+=W)>>>0<W>>>0?1:0))+((F=j+de|0)>>>0<j>>>0?1:0)|0,I=N,j=P,N=A,P=D,A=O,D=L,O=Ee+(me+pe+(Ce>>>0<ve>>>0?1:0))+((L=de+Ce|0)>>>0<de>>>0?1:0)|0}p=r.low=p+L,r.high=f+O+(p>>>0<L>>>0?1:0),m=i.low=m+D,i.high=g+A+(m>>>0<D>>>0?1:0),y=o.low=y+P,o.high=v+N+(y>>>0<P>>>0?1:0),w=a.low=w+j,a.high=b+I+(w>>>0<j>>>0?1:0),x=s.low=x+F,s.high=_+R+(x>>>0<F>>>0?1:0),C=u.low=C+Y,u.high=E+z+(C>>>0<Y>>>0?1:0),S=d.low=S+H,d.high=k+B+(S>>>0<H>>>0?1:0),M=h.low=M+U,h.high=T+q+(M>>>0<U>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),r.SHA512)},81204:function(e,t,n){var r;e.exports=(r=n(40989),n(80029),n(89429),n(31452),n(60548),function(){var e=r,t=e.lib,n=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],u=l[o];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=i._createHelper(d);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(r)),this._des3=d.createEncryptor(n.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),r.TripleDES)},49930:function(e,t,n){var r;e.exports=(r=n(40989),function(e){var t=r,n=t.lib,i=n.Base,o=n.WordArray,a=t.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),r)},9669:function(e,t,n){e.exports=n(51609)},55448:function(e,t,n){"use strict";var r=n(64867),i=n(36026),o=n(4372),a=n(15327),s=n(94097),l=n(84109),c=n(67985),u=n(85061),d=n(77874),h=n(65263);e.exports=function(e){return new Promise((function(t,n){var f,p=e.data,g=e.headers,m=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(p)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+w)}var _=s(e.baseURL,e.url);function x(){if(y){var r="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,o={data:m&&"text"!==m&&"json"!==m?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),v()}),(function(e){n(e),v()}),o),y=null}}if(y.open(e.method.toUpperCase(),a(_,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(x)},y.onabort=function(){y&&(n(u("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(u("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||c(_))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;E&&(g[e.xsrfHeaderName]=E)}"setRequestHeader"in y&&r.forEach(g,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){y&&(n(!e||e&&e.type?new h("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),p||(p=null),y.send(p)}))}},51609:function(e,t,n){"use strict";var r=n(64867),i=n(91849),o=n(30321),a=n(47185);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(45546));s.Axios=o,s.Cancel=n(65263),s.CancelToken=n(14972),s.isCancel=n(26502),s.VERSION=n(97288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},65263:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:function(e,t,n){"use strict";var r=n(65263);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;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},26502:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:function(e,t,n){"use strict";var r=n(64867),i=n(15327),o=n(80782),a=n(13572),s=n(47185),l=n(54875),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!i){var d=[a,void 0];for(Array.prototype.unshift.apply(d,r),d=d.concat(u),o=Promise.resolve(t);d.length;)o=o.then(d.shift(),d.shift());return o}for(var h=t;r.length;){var f=r.shift(),p=r.shift();try{h=f(h)}catch(e){p(e);break}}try{o=a(h)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=u},80782:function(e,t,n){"use strict";var r=n(64867);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},94097:function(e,t,n){"use strict";var r=n(91793),i=n(7303);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},85061:function(e,t,n){"use strict";var r=n(80481);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},13572:function(e,t,n){"use strict";var r=n(64867),i=n(18527),o=n(26502),a=n(45546),s=n(65263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),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||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:function(e){"use strict";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{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},47185:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)})),n}},36026:function(e,t,n){"use strict";var r=n(85061);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:function(e,t,n){"use strict";var r=n(64867),i=n(45546);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},45546:function(e,t,n){"use strict";var r=n(64867),i=n(16016),o=n(80481),a=n(77874),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(55448)),c),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)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(s)})),e.exports=u},77874:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},97288:function(e){e.exports={version:"0.26.1"}},91849:function(e){"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)}}},15327:function(e,t,n){"use strict";var r=n(64867);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];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)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){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(o)&&s.push("domain="+o),!0===a&&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(){}}},91793:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},16268:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},67985:function(e,t,n){"use strict";var r=n(64867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(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}}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}},16016:function(e,t,n){"use strict";var r=n(64867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},84109:function(e,t,n){"use strict";var r=n(64867),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"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:function(e,t,n){"use strict";var r=n(97288).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},64867:function(e,t,n){"use strict";var r=n(91849),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===i.call(e)}function l(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:s,isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===i.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&s(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===i.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:d,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)d(arguments[r],n);return t},extend:function(e,t,n){return d(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},21924:function(e,t,n){"use strict";var r=n(40210),i=n(55559),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},55559:function(e,t,n){"use strict";var r=n(58612),i=n(40210),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),l=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(r,a,arguments);l&&c&&(l(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var d=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},94184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},21994:function(e,t,n){!function(e){"use strict";function t(t,r){function i(){t.display.wrapper.offsetHeight?(n(t,r),t.display.lastWrapHeight!=t.display.wrapper.clientHeight&&t.refresh()):r.timeout=setTimeout(i,r.delay)}r.timeout=setTimeout(i,r.delay),r.hurry=function(){clearTimeout(r.timeout),r.timeout=setTimeout(i,50)},e.on(window,"mouseup",r.hurry),e.on(window,"keyup",r.hurry)}function n(t,n){clearTimeout(n.timeout),e.off(window,"mouseup",n.hurry),e.off(window,"keyup",n.hurry)}e.defineOption("autoRefresh",!1,(function(e,r){e.state.autoRefresh&&(n(e,e.state.autoRefresh),e.state.autoRefresh=null),r&&0==e.display.wrapper.offsetHeight&&t(e,e.state.autoRefresh={delay:r.delay||250})}))}(n(4631))},20017:function(e,t,n){!function(e){"use strict";var t="CodeMirror-activeline",n="CodeMirror-activeline-background",r="CodeMirror-activeline-gutter";function i(e){for(var i=0;i<e.state.activeLines.length;i++)e.removeLineClass(e.state.activeLines[i],"wrap",t),e.removeLineClass(e.state.activeLines[i],"background",n),e.removeLineClass(e.state.activeLines[i],"gutter",r)}function o(e,t){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 a(e,a){for(var s=[],l=0;l<a.length;l++){var c=a[l],u=e.getOption("styleActiveLine");if("object"==typeof u&&u.nonEmpty?c.anchor.line==c.head.line:c.empty()){var d=e.getLineHandleVisualStart(c.head.line);s[s.length-1]!=d&&s.push(d)}}o(e.state.activeLines,s)||e.operation((function(){i(e);for(var o=0;o<s.length;o++)e.addLineClass(s[o],"wrap",t),e.addLineClass(s[o],"background",n),e.addLineClass(s[o],"gutter",r);e.state.activeLines=s}))}function s(e,t){a(e,t.ranges)}e.defineOption("styleActiveLine",!1,(function(t,n,r){var o=r!=e.Init&&r;n!=o&&(o&&(t.off("beforeSelectionChange",s),i(t),delete t.state.activeLines),n&&(t.state.activeLines=[],a(t,t.listSelections()),t.on("beforeSelectionChange",s)))}))}(n(4631))},4631:function(e){e.exports=function(){"use strict";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),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],h=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),w=/\bCrOS\b/.test(e),_=/win/i.test(t),x=h&&e.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(h=!1,l=!0);var E=b&&(c||h&&(null==x||x<12.11)),C=n||a&&s>=9;function k(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,T=function(e,t){var n=e.className,r=k(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 M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return M(e).appendChild(t)}function L(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 o=0;o<t.length;++o)i.appendChild(t[o]);return i}function A(e,t,n,r){var i=L(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(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 N(e){var t;try{t=e.activeElement}catch(n){t=e.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function P(e,t){var n=e.className;k(t).test(n)||(e.className+=(n?" ":"")+t)}function I(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!k(n[r]).test(t)&&(t+=" "+n[r]);return t}S=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 j=function(e){e.select()};function R(e){return e.display.wrapper.ownerDocument}function F(e){return R(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function Y(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function B(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?j=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(j=function(e){try{e.select()}catch(e){}});var H=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function q(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}H.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},H.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var U=50,V={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},G={origin:"*mouse"},$={origin:"+move"};function K(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var J=[""];function X(e){for(;J.length<=e;)J.push(Z(J)+" ");return J[e]}function Z(e){return e[e.length-1]}function Q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&Y(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\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 le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ce(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ue(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function de(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var he=null;function fe(e,t,n){var r;he=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:he=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:he=i)}return null!=r?r:he}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";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]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],h=0;h<u;++h)d.push(n(e.charCodeAt(h)));for(var f=0,p=c;f<u;++f){var g=d[f];"m"==g?d[f]=p:p=g}for(var m=0,v=c;m<u;++m){var y=d[m];"1"==y&&"r"==v?d[m]="n":o.test(y)&&(v=y,"r"==y&&(d[m]="R"))}for(var b=1,w=d[0];b<u-1;++b){var _=d[b];"+"==_&&"1"==w&&"1"==d[b+1]?d[b]="1":","!=_||w!=d[b+1]||"1"!=w&&"n"!=w||(d[b]=w),w=_}for(var x=0;x<u;++x){var E=d[x];if(","==E)d[x]="N";else if("%"==E){var C=void 0;for(C=x+1;C<u&&"%"==d[C];++C);for(var k=x&&"!"==d[x-1]||C<u&&"1"==d[C]?"1":"N",S=x;S<C;++S)d[S]=k;x=C-1}}for(var T=0,M=c;T<u;++T){var O=d[T];"L"==M&&"1"==O?d[T]="L":o.test(O)&&(M=O)}for(var L=0;L<u;++L)if(i.test(d[L])){var A=void 0;for(A=L+1;A<u&&i.test(d[A]);++A);for(var D="L"==(L?d[L-1]:c),N=D==("L"==(A<u?d[A]:c))?D?"L":"R":c,P=L;P<A;++P)d[P]=N;L=A-1}for(var I,j=[],R=0;R<u;)if(a.test(d[R])){var F=R;for(++R;R<u&&a.test(d[R]);++R);j.push(new l(0,F,R))}else{var z=R,Y=j.length,B="rtl"==t?1:0;for(++R;R<u&&"L"!=d[R];++R);for(var H=z;H<R;)if(s.test(d[H])){z<H&&(j.splice(Y,0,new l(1,z,H)),Y+=B);var q=H;for(++H;H<R&&s.test(d[H]);++H);j.splice(Y,0,new l(2,q,H)),Y+=B,z=H}else++H;z<R&&j.splice(Y,0,new l(1,z,R))}return"ltr"==t&&(1==j[0].level&&(I=e.match(/^\s+/))&&(j[0].from=I[0].length,j.unshift(new l(0,0,I[0].length))),1==Z(j).level&&(I=e.match(/\s+$/))&&(Z(j).to-=I[0].length,j.push(new l(0,u-I[0].length,u)))),"rtl"==t?j.reverse():j}}();function ge(e,t){var n=e.order;return null==n&&(n=e.order=pe(e.text,t)),n}var me=[],ve=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]||me).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||me}function be(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 o=q(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function we(e,t){var n=ye(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)}function _e(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),we(e,n||t.type,e,t),Te(t)||t.codemirrorIgnore}function xe(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==q(n,t[r])&&n.push(t[r])}function Ee(e,t){return ye(e,t).length>0}function Ce(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Me(e){ke(e),Se(e)}function Oe(e){return e.target||e.srcElement}function Le(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Ae,De,Ne=function(){if(a&&s<9)return!1;var e=L("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==Ae){var t=L("span","");O(e,L("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ae=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ae?L("span",""):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=De)return De;var t=O(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return M(e),!(!n||n.left==n.right)&&(De=r.right-n.right<3)}var je,Re=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 o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=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)},ze="oncopy"in(je=L("div"))||(je.setAttribute("oncopy","return;"),"function"==typeof je.oncopy),Ye=null;function Be(e){if(null!=Ye)return Ye;var t=O(e,L("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Ye=Math.abs(n.left-r.left)>1}var He={},qe={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),He[e]=t}function Ve(e,t){qe[e]=t}function We(e){if("string"==typeof e&&qe.hasOwnProperty(e))e=qe[e];else if(e&&"string"==typeof e.name&&qe.hasOwnProperty(e.name)){var t=qe[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return We("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return We("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ge(e,t){t=We(t);var n=He[t.name];if(!n)return Ge(e,"text/plain");var r=n(e,t);if($e.hasOwnProperty(t.name)){var i=$e[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var $e={};function Ke(e,t){Y(t,$e.hasOwnProperty(e)?$e[e]:$e[e]={})}function Je(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}function Xe(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 Ze(e,t,n){return!e.startState||e.startState(t,n)}var Qe=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};function et(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],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function tt(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function nt(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function rt(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function it(e){if(null==e.parent)return null;for(var t=e.parent,n=q(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}function ot(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function at(e,t){return t>=e.first&&t<e.first+e.size}function st(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function lt(e,t,n){if(void 0===n&&(n=null),!(this instanceof lt))return new lt(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ct(e,t){return e.line-t.line||e.ch-t.ch}function ut(e,t){return e.sticky==t.sticky&&0==ct(e,t)}function dt(e){return lt(e.line,e.ch)}function ht(e,t){return ct(e,t)<0?t:e}function ft(e,t){return ct(e,t)<0?e:t}function pt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function gt(e,t){if(t.line<e.first)return lt(e.first,0);var n=e.first+e.size-1;return t.line>n?lt(n,et(e,n).text.length):mt(t,et(e,t.line).text.length)}function mt(e,t){var n=e.ch;return null==n||n>t?lt(e.line,t):n<0?lt(e.line,0):e}function vt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=gt(e,t[r]);return n}Qe.prototype.eol=function(){return this.pos>=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qe.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},Qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=B(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.indentation=function(){return B(this.string,null,this.tabSize)-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Qe.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},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var yt=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function wt(e,t,n,r){var i=[e.state.modeGen],o={};Ot(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Ot(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function _t(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=xt(e,it(t)),i=t.text.length>e.options.maxHighlightLength&&Je(e.doc.mode,r.state),o=wt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.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 xt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new bt(r,!0,t);var o=Lt(e,t,n),a=o>r.first&&et(r,o-1).stateAfter,s=a?bt.fromSaved(r,a,o):new bt(r,Ze(r.mode),o);return r.iter(o,t,(function(n){Et(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}function Et(e,t,n,r){var i=e.doc.mode,o=new Qe(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&Ct(i,n.state);!o.eol();)kt(i,o,n.state),o.start=o.pos}function Ct(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Xe(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function kt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Xe(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof yt?new bt(e,Je(e.mode,t.state),n,t.lookAhead):new bt(e,Je(e.mode,t),n)},bt.prototype.save=function(e){var t=!1!==e?Je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new yt(t,this.maxLookAhead):t};var St=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Tt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=et(a,(t=gt(a,t)).line),c=xt(e,t.line,n),u=new Qe(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=kt(s,u,c.state),r&&o.push(new St(u,i,Je(a.mode,c.state)));return r?o:new St(u,i,c.state)}function Mt(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}function Ot(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new Qe(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&Mt(Ct(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Et(e,t,r,d.pos),d.pos=t.length,l=null):l=Mt(kt(n,d,r.state,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function Lt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=et(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof yt?c.lookAhead:0)<=o.modeFrontier))return s;var u=B(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function At(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=et(e,r).stateAfter;if(i&&(!(i instanceof yt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Dt=!1,Nt=!1;function Pt(){Dt=!0}function It(){Nt=!0}function jt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ft(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function zt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Yt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new jt(a,o.from,s?null:o.to))}}return r}function Bt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new jt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Ht(e,t){if(t.full)return null;var n=at(e,t.from.line)&&et(e,t.from.line).markedSpans,r=at(e,t.to.line)&&et(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ct(t.from,t.to),s=Yt(n,i,a),l=Bt(r,o,a),c=1==t.text.length,u=Z(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var h=s[d];if(null==h.to){var f=Rt(l,h.marker);f?c&&(h.to=null==f.to?null:f.to+u):h.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];null!=g.to&&(g.to+=u),null==g.from?Rt(s,g.marker)||(g.from=u,c&&(s||(s=[])).push(g)):(g.from+=u,c&&(s||(s=[])).push(g))}s&&(s=qt(s)),l&&l!=s&&(l=qt(l));var m=[s];if(!c){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new jt(s[b].marker,null,null));for(var w=0;w<y;++w)m.push(v);m.push(l)}return m}function qt(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}function Ut(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!=q(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(ct(c.to,s.from)<0||ct(c.from,s.to)>0)){var u=[l,1],d=ct(c.from,s.from),h=ct(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Vt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Wt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Gt(e){return e.inclusiveLeft?-1:0}function $t(e){return e.inclusiveRight?1:0}function Kt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ct(r.from,i.from)||Gt(e)-Gt(t);if(o)return-o;var a=ct(r.to,i.to)||$t(e)-$t(t);return a||t.id-e.id}function Jt(e,t){var n,r=Nt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Kt(n,i.marker)<0)&&(n=i.marker);return n}function Xt(e){return Jt(e,!0)}function Zt(e){return Jt(e,!1)}function Qt(e,t){var n,r=Nt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Kt(n,o.marker)<0)&&(n=o.marker)}return n}function en(e,t,n,r,i){var o=et(e,t),a=Nt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ct(c.from,n)||Gt(l.marker)-Gt(i),d=ct(c.to,r)||$t(l.marker)-$t(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(c.to,n)>=0:ct(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(c.from,r)<=0:ct(c.from,r)<0)))return!0}}}function tn(e){for(var t;t=Xt(e);)e=t.find(-1,!0).line;return e}function nn(e){for(var t;t=Zt(e);)e=t.find(1,!0).line;return e}function rn(e){for(var t,n;t=Zt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function on(e,t){var n=et(e,t),r=tn(n);return n==r?t:it(r)}function an(e,t){if(t>e.lastLine())return t;var n,r=et(e,t);if(!sn(e,r))return t;for(;n=Zt(r);)r=n.find(1,!0).line;return it(r)+1}function sn(e,t){var n=Nt&&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&&ln(e,t,r))return!0}}function ln(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return ln(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ln(e,t,i))return!0}function cn(e){for(var t=0,n=(e=tn(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function un(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Xt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Zt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function dn(e){var t=e.display,n=e.doc;t.maxLine=et(n,n.first),t.maxLineLength=un(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=un(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var hn=function(e,t,n){this.text=e,Wt(this,t),this.height=n?n(this):1};function fn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Vt(e),Wt(e,n);var i=r?r(e):1;i!=e.height&&rt(e,i)}function pn(e){e.parent=null,Vt(e)}hn.prototype.lineNo=function(){return it(this)},Ce(hn);var gn={},mn={};function vn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?mn:gn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function yn(e,t){var n=A("span",null,null,l?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=wn,Ie(e.display.measure)&&(a=ge(o,e.doc.direction))&&(r.addToken=xn(r.addToken,a)),r.map=[],Cn(o,r,_t(e,o,t!=e.display.externalMeasured&&it(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=I(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=I(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pe(e.display.measure))),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({}))}if(l){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 we(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function bn(e){var t=L("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function wn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?_n(t,e.trailingSpace):t,d=e.cm.state.specialChars,h=!1;if(d.test(t)){c=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var p=d.exec(t),g=p?p.index-f:t.length-f;if(g){var m=document.createTextNode(u.slice(f,f+g));a&&s<9?c.appendChild(L("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!p)break;f+=g+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(L("span",X(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((v=c.appendChild(L("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]),a&&s<9?c.appendChild(L("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||o||l){var w=n||"";r&&(w+=r),i&&(w+=i);var _=L("span",[c],w,o);if(l)for(var x in l)l.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&_.setAttribute(x,l[x]);return e.content.appendChild(_)}e.content.appendChild(c)}}function _n(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function xn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,h=0;h<t.length&&!((d=t[h]).to>c&&d.from<=c);h++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function En(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}function Cn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,h,f=i.length,p=0,g=1,m="",v=0;;){if(v==p){l=c=u=s="",h=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var _=r[w],x=_.marker;if("bookmark"==x.type&&_.from==p&&x.widgetNode)y.push(x);else if(_.from<=p&&(null==_.to||_.to>p||x.collapsed&&_.to==p&&_.from==p)){if(null!=_.to&&_.to!=p&&v>_.to&&(v=_.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&_.from==p&&(u+=" "+x.startStyle),x.endStyle&&_.to==v&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((h||(h={})).title=x.title),x.attributes)for(var E in x.attributes)(h||(h={}))[E]=x.attributes[E];x.collapsed&&(!d||Kt(d.marker,x)<0)&&(d=_)}else _.from>p&&v>_.from&&(v=_.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(c+=" "+b[C]);if(!d||d.from==p)for(var k=0;k<y.length;++k)En(t,0,y[k]);if(d&&(d.from||0)==p){if(En(t,(null==d.to?f+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=f)break;for(var S=Math.min(f,v);;){if(m){var T=p+m.length;if(!d){var M=T>S?m.slice(0,S-p):m;t.addToken(t,M,a?a+l:l,u,p+M.length==v?c:"",s,h)}if(T>=S){m=m.slice(S-p),p=S;break}p=T,u=""}m=i.slice(o,o=n[g++]),a=vn(n[g++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),vn(n[O+1],t.cm.options))}function kn(e,t,n){this.line=t,this.rest=rn(t),this.size=this.rest?it(Z(this.rest))-n+1:1,this.node=this.text=null,this.hidden=sn(e,t)}function Sn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new kn(e.doc,et(e.doc,o),o);r=o+a.size,i.push(a)}return i}var Tn=null;function Mn(e){Tn?Tn.ops.push(e):e.ownsGroup=Tn={ops:[e],delayedCallbacks:[]}}function On(e){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 Ln(e,t){var n=e.ownsGroup;if(n)try{On(n)}finally{Tn=null,t(n)}}var An=null;function Dn(e,t){var n=ye(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Tn?r=Tn.delayedCallbacks:An?r=An:(r=An=[],setTimeout(Nn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function Nn(){var e=An;An=null;for(var t=0;t<e.length;++t)e[t]()}function Pn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Fn(e,t):"gutter"==o?Yn(e,t,n,r):"class"==o?zn(e,t):"widget"==o&&Bn(e,t,r)}t.changes=null}function In(e){return e.node==e.text&&(e.node=L("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function jn(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=In(t);t.background=r.insertBefore(L("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Rn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):yn(e,t)}function Fn(e,t){var n=t.text.className,r=Rn(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,zn(e,t)):n&&(t.text.className=n)}function zn(e,t){jn(e,t),t.line.wrapClass?In(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 Yn(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=In(t);t.gutterBackground=L("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 o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=In(t),s=t.gutter=L("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(L("div",st(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(L("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Bn(e,t,n){t.alignable&&(t.alignable=null);for(var r=k("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);qn(e,t,n)}function Hn(e,t,n,r){var i=Rn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),zn(e,t),Yn(e,t,n,r),qn(e,t,r),t.node}function qn(e,t,n){if(Un(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Un(e,t.rest[r],t,n,!1)}function Un(e,t,n,r,i){if(t.widgets)for(var o=In(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=L("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Vn(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),Dn(l,"redraw")}}function Vn(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 Wn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(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;"),O(t.display.measure,L("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Gn(e,t){for(var n=Oe(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}function $n(e){return e.lineSpace.offsetTop}function Kn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Jn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,L("pre","x","CodeMirror-line-like")),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 Xn(e){return U-e.display.nativeBarWidth}function Zn(e){return e.display.scroller.clientWidth-Xn(e)-e.display.barWidth}function Qn(e){return e.display.scroller.clientHeight-Xn(e)-e.display.barHeight}function er(e,t,n){var r=e.options.lineWrapping,i=r&&Zn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function tr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){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(it(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function nr(e,t){var n=it(t=tn(t)),r=e.display.externalMeasured=new kn(e.doc,t,n);r.lineN=n;var i=r.built=yn(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}function rr(e,t,n,r){return ar(e,or(e,t),n,r)}function ir(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[zr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function or(e,t){var n=it(t),r=ir(e,n);r&&!r.text?r=null:r&&r.changes&&(Pn(e,r,n,Pr(e)),e.curOp.forceUpdate=!0),r||(r=nr(e,t));var i=tr(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function ar(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(er(e,t.view,t.rect),t.hasHeights=!0),(o=dr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var sr,lr={left:0,right:0,top:0,bottom:0};function cr(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function ur(e,t){var n=lr;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 dr(e,t,n,r){var i,o=cr(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;c&&le(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&le(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():ur(S(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=hr(e.display.measure,i))}else{var f;c>0&&(d=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Nr(e.display),top:p.top,bottom:p.bottom}:lr}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var w=b?y[b-1]:0,_=y[b],x={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:w,bottom:_};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=g,x.rbottom=m),x}function hr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Be(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 fr(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 pr(e){e.display.externalMeasure=null,M(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)fr(e.display.view[t])}function gr(e){pr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function mr(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function vr(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function yr(e){var t=tn(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Wn(t[r]));return n}function br(e,t,n,r,i){if(!i){var o=yr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=cn(t);if("local"==r?a+=$n(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:vr(R(e)));var l=s.left+("window"==r?0:mr(R(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function wr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=mr(R(e)),i-=vr(R(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function _r(e,t,n,r,i){return r||(r=et(e.doc,t.line)),br(e,r,rr(e,r,t.ch,i),n)}function xr(e,t,n,r,i,o){function a(t,a){var s=ar(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,br(e,r,s,n)}r=r||et(e.doc,t.line),i||(i=or(e,r));var s=ge(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=fe(s,l,c),h=he,f=u(l,d,"before"==c);return null!=h&&(f.other=u(l,h,"before"!=c)),f}function Er(e,t){var n=0;t=gt(e.doc,t),e.options.lineWrapping||(n=Nr(e.display)*t.ch);var r=et(e.doc,t.line),i=cn(r)+$n(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Cr(e,t,n,r,i){var o=lt(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function kr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Cr(r.first,0,null,-1,-1);var i=ot(r,n),o=r.first+r.size-1;if(i>o)return Cr(r.first+r.size-1,et(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=et(r,i);;){var s=Or(e,a,i,t,n),l=Qt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=et(r,i=c.line)}}function Sr(e,t,n,r){r-=yr(t);var i=t.text.length,o=ue((function(t){return ar(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ue((function(t){return ar(e,n,t).top>r}),o,i)}}function Tr(e,t,n,r){return n||(n=or(e,t)),Sr(e,t,n,br(e,t,ar(e,n,r),"line").top)}function Mr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Or(e,t,n,r,i){i-=cn(t);var o=or(e,t),a=yr(t),s=0,l=t.text.length,c=!0,u=ge(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Ar:Lr)(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var h,f,p=null,g=null,m=ue((function(t){var n=ar(e,o,t);return n.top+=a,n.bottom+=a,!!Mr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)}),s,l),v=!1;if(g){var y=r-g.left<g.right-r,b=y==c;m=p+(b?0:1),f=b?"after":"before",h=y?g.left:g.right}else{c||m!=l&&m!=s||m++,f=0==m?"after":m==t.text.length?"before":ar(e,o,m-(c?1:0)).bottom+a<=i==c?"after":"before";var w=xr(e,lt(n,m,f),"line",t,o);h=w.left,v=i<w.top?-1:i>=w.bottom?1:0}return Cr(n,m=ce(t.text,m,1),f,v,r-h)}function Lr(e,t,n,r,i,o,a){var s=ue((function(s){var l=i[s],c=1!=l.level;return Mr(xr(e,lt(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=xr(e,lt(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Mr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Ar(e,t,n,r,i,o,a){var s=Sr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h<i.length;h++){var f=i[h];if(!(f.from>=c||f.to<=l)){var p=ar(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,g=p<o?o-p+1e9:p-o;(!u||d>g)&&(u=f,d=g)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Dr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==sr){sr=L("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)sr.appendChild(document.createTextNode("x")),sr.appendChild(L("br"));sr.appendChild(document.createTextNode("x"))}O(e.measure,sr);var n=sr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),M(e.measure),n||1}function Nr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=L("span","xxxxxxxxxx"),n=L("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Pr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Ir(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ir(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function jr(e){var t=Dr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Nr(e.display)-3);return function(i){if(sn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Rr(e){var t=e.doc,n=jr(e);t.iter((function(e){var t=n(e);t!=e.height&&rt(e,t)}))}function Fr(e,t,n,r){var i=e.display;if(!n&&"true"==Oe(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=kr(e,o,a);if(r&&c.xRel>0&&(l=et(e.doc,c.line).text).length==c.ch){var u=B(l,l.length,e.options.tabSize)-l.length;c=lt(c.line,Math.max(0,Math.round((o-Jn(e.display).left)/Nr(e.display))-u))}return c}function zr(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}function Yr(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)Nt&&on(e.doc,t)<i.viewTo&&Hr(e);else if(n<=i.viewFrom)Nt&&an(e.doc,n+r)>i.viewFrom?Hr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Hr(e);else if(t<=i.viewFrom){var o=qr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Hr(e)}else if(n>=i.viewTo){var a=qr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Hr(e)}else{var s=qr(e,t,t,-1),l=qr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Sn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Hr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function Br(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 o=r.view[zr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==q(a,n)&&a.push(n)}}}function Hr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function qr(e,t,n,r){var i,o=zr(e,t),a=e.display.view;if(!Nt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;on(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Ur(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Sn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Sn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(zr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Sn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,zr(e,n)))),r.viewTo=n}function Vr(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 Wr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Gr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&$r(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&$r(e,l.head,i);c||Jr(e,l,o)}}return r}function $r(e,t,n){var r=xr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(L("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",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=_r(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(L("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Kr(e,t){return e.top-t.top||e.left-t.left}function Jr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Jn(e.display),s=a.left,l=Math.max(r.sizerWidth,Zn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=et(i,t),h=d.text.length;function f(n,r){return _r(e,lt(t,n),"div",d,r)}function p(t,n,r){var i=Tr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var g=ge(d,i.direction);return de(g,n||0,null==r?h:r,(function(e,t,i,d){var m="ltr"==i,v=f(e,m?"left":"right"),y=f(t-1,m?"right":"left"),b=null==n&&0==e,w=null==r&&t==h,_=0==d,x=!g||d==g.length-1;if(y.top-v.top<=3){var E=(c?w:b)&&x,C=(c?b:w)&&_?s:(m?v:y).left,k=E?l:(m?y:v).right;u(C,v.top,k-C,v.bottom)}else{var S,T,M,O;m?(S=c&&b&&_?s:v.left,T=c?l:p(e,i,"before"),M=c?s:p(t,i,"after"),O=c&&w&&x?l:y.right):(S=c?p(e,i,"before"):s,T=!c&&b&&_?l:v.right,M=!c&&w&&x?s:y.left,O=c?p(t,i,"after"):l),u(S,v.top,T-S,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(M,y.top,O-M,y.bottom)}(!o||Kr(v,o)<0)&&(o=v),Kr(y,o)<0&&(o=y),(!a||Kr(v,a)<0)&&(a=v),Kr(y,a)<0&&(a=y)})),{start:o,end:a}}var h=t.from(),f=t.to();if(h.line==f.line)d(h.line,h.ch,f.ch);else{var p=et(i,h.line),g=et(i,f.line),m=tn(p)==tn(g),v=d(h.line,h.ch,m?p.text.length+1:null).end,y=d(f.line,m?0:null,f.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(o)}function Xr(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(){e.hasFocus()||ti(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Zr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ei(e))}function Qr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ti(e))}),100)}function ei(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,P(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Xr(e))}function ti(e,t){e.state.delayingBlurEvent||(e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ni(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,h=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var f=c.node.offsetTop+c.node.offsetHeight;d=f-n,n=f}else{var p=c.node.getBoundingClientRect();d=p.bottom-p.top,!u&&c.text.firstChild&&(h=c.text.firstChild.getBoundingClientRect().right-p.left-1)}var g=c.line.height-d;if((g>.005||g<-.005)&&(i<r&&(o-=g),rt(c.line,d),ri(c.line),c.rest))for(var m=0;m<c.rest.length;m++)ri(c.rest[m]);if(h>e.display.sizerWidth){var v=Math.ceil(h/Nr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ri(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)}}function ii(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-$n(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=ot(t,r),a=ot(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=ot(t,cn(et(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=ot(t,cn(et(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function oi(e,t){if(!_e(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var a=L("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-$n(e.display))+"px;\n height: "+(t.bottom-t.top+Xn(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)}}}function ai(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?lt(t.line,t.ch+1,"before"):t,t=t.ch?lt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=xr(e,t),l=n&&n!=t?xr(e,n):s,c=li(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(gi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(vi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function si(e,t){var n=li(e,t);null!=n.scrollTop&&gi(e,n.scrollTop),null!=n.scrollLeft&&vi(e,n.scrollLeft)}function li(e,t){var n=e.display,r=Dr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Kn(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Zn(e)-n.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<h?a.scrollLeft=Math.max(0,t.left+d-(p?0:10)):t.right>f+h-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function ci(e,t){null!=t&&(fi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ui(e){fi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function di(e,t,n){null==t&&null==n||fi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function hi(e,t){fi(e),e.curOp.scrollToPos=t}function fi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,pi(e,Er(e,t.from),Er(e,t.to),t.margin))}function pi(e,t,n,r){var i=li(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});di(e,i.scrollLeft,i.scrollTop)}function gi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Wi(e,{top:t}),mi(e,t,!0),n&&Wi(e),Fi(e,100))}function mi(e,t,n){t=Math.max(0,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))}function vi(e,t,n,r){t=Math.max(0,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,Ji(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Kn(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+Xn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var bi=function(e,t,n){this.cm=n;var r=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ve(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),ve(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bi.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);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,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 o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"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}},bi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new H,this.disableVert=new H},bi.prototype.enableZeroWidthBar=function(e,t,n){function r(){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.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},bi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wi=function(){};function _i(e,t){t||(t=yi(e));var n=e.display.barWidth,r=e.display.barHeight;xi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ni(e),xi(e,yi(e)),n=e.display.barWidth,r=e.display.barHeight}function xi(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=""}wi.prototype.update=function(){return{bottom:0,right:0}},wi.prototype.setScrollLeft=function(){},wi.prototype.setScrollTop=function(){},wi.prototype.clear=function(){};var Ei={native:bi,null:wi};function Ci(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ei[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(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?vi(e,t):gi(e,t)}),e),e.display.scrollbars.addClass&&P(e.display.wrapper,e.display.scrollbars.addClass)}var ki=0;function Si(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ki,markArrays:null},Mn(e.curOp)}function Ti(e){var t=e.curOp;t&&Ln(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Mi(e)}))}function Mi(e){for(var t=e.ops,n=0;n<t.length;n++)Oi(t[n]);for(var r=0;r<t.length;r++)Li(t[r]);for(var i=0;i<t.length;i++)Ai(t[i]);for(var o=0;o<t.length;o++)Di(t[o]);for(var a=0;a<t.length;a++)Ni(t[a])}function Oi(e){var t=e.cm,n=t.display;Bi(t),e.updateMaxLine&&dn(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 Yi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Li(e){e.updatedDisplay=e.mustUpdate&&Ui(e.cm,e.update)}function Ai(e){var t=e.cm,n=t.display;e.updatedDisplay&&ni(t),e.barMeasure=yi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=rr(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+Xn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Zn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Di(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&vi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==N(R(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&_i(t,e.barMeasure),e.updatedDisplay&&Ki(t,e.barMeasure),e.selectionChanged&&Xr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Zr(e.cm)}function Ni(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Vi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&mi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&vi(t,e.scrollLeft,!0,!0),e.scrollToPos&&oi(t,ai(t,gt(r,e.scrollToPos.from),gt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||we(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&we(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&we(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Pi(e,t){if(e.curOp)return t();Si(e);try{return t()}finally{Ti(e)}}function Ii(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Si(e);try{return t.apply(e,arguments)}finally{Ti(e)}}}function ji(e){return function(){if(this.curOp)return e.apply(this,arguments);Si(this);try{return e.apply(this,arguments)}finally{Ti(this)}}}function Ri(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Si(t);try{return e.apply(this,arguments)}finally{Ti(t)}}}function Fi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,z(zi,e))}function zi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=xt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Je(t.mode,r.state):null,l=wt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&h<a.length;++h)d=a[h]!=o.styles[h];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Et(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Fi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Pi(e,(function(){for(var t=0;t<i.length;t++)Br(e,i[t],"text")}))}}var Yi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ii(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Zn(e),this.force=n,this.dims=Pr(e),this.events=[]};function Bi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Xn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Xn(e)+"px",t.scrollbarsClipped=!0)}function Hi(e){if(e.hasFocus())return null;var t=N(R(e));if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=F(e).getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function qi(e){if(e&&e.activeElt&&e.activeElt!=N(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function Ui(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Hr(e),!1;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==Vr(e))return!1;Xi(e)&&(Hr(e),t.dims=Pr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Nt&&(o=on(e.doc,o),a=an(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ur(e,o,a),n.viewOffset=cn(et(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Vr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Hi(e);return l>4&&(n.lineDiv.style.display="none"),Gi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,qi(c),M(n.cursorDiv),M(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Fi(e,400)),n.updateLineNumbers=null,!0}function Vi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Zn(e))r&&(t.visible=ii(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Kn(e.display)-Qn(e),n.top)}),t.visible=ii(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ui(e,t))break;ni(e);var i=yi(e);Wr(e),_i(e,i),Ki(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 Wi(e,t){var n=new Yi(e,t);if(Ui(e,n)){ni(e),Vi(e,n);var r=yi(e);Wr(e),_i(e,r),Ki(e,r),n.finish()}}function Gi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var h=c[d];if(h.hidden);else if(h.node&&h.node.parentNode==o){for(;a!=h.node;)a=s(a);var f=i&&null!=t&&t<=u&&h.lineNumber;h.changes&&(q(h.changes,"gutter")>-1&&(f=!1),Pn(e,h,u,n)),f&&(M(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(st(e.options,u)))),a=h.node.nextSibling}else{var p=Hn(e,h,u,n);o.insertBefore(p,a)}u+=h.size}for(;a;)a=s(a)}function $i(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Dn(e,"gutterChanged",e)}function Ki(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+Xn(e)+"px"}function Ji(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Ir(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Xi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=st(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(L("div",[L("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",$i(e.display),!0}return!1}function Zi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Qi(e){var t=e.gutters,n=e.gutterSpecs;M(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(L("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",$i(e)}function eo(e){Qi(e.display),Yr(e),Ji(e)}function to(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=L("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=L("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=A("div",null,"CodeMirror-code"),o.selectionDiv=L("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=L("div",null,"CodeMirror-cursors"),o.measure=L("div",null,"CodeMirror-measure"),o.lineMeasure=L("div",null,"CodeMirror-measure"),o.lineSpace=A("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=L("div",[c],null,"position: relative"),o.sizer=L("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=L("div",null,null,"position: absolute; height: "+U+"px; width: 1px;"),o.gutters=L("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=L("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=L("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&d>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Zi(i.gutters,i.lineNumbers),Qi(o),r.init(o)}Yi.prototype.signal=function(e,t){Ee(e,t)&&this.events.push(arguments)},Yi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)we.apply(null,this.events[e])};var no=0,ro=null;function io(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 oo(e){var t=io(e);return t.x*=ro,t.y*=ro,t}function ao(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=io(t),i=r.x,o=r.y,a=ro;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,f=c.scrollWidth>c.clientWidth,p=c.scrollHeight>c.clientHeight;if(i&&f||o&&p){if(o&&b&&l)e:for(var g=t.target,m=s.view;g!=c;g=g.parentNode)for(var v=0;v<m.length;v++)if(m[v].node==g){e.display.currentWheelTarget=g;break e}if(i&&!n&&!h&&null!=a)return o&&p&&gi(e,Math.max(0,c.scrollTop+o*a)),vi(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&p)&&ke(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,w=e.doc.scrollTop,_=w+s.wrapper.clientHeight;y<0?w=Math.max(0,w+y-50):_=Math.min(e.doc.height,_+y+50),Wi(e,{top:w,bottom:_})}no<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(ro=(ro*no+n)/(no+1),++no)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?ro=-.53:n?ro=15:u?ro=-.7:f&&(ro=-1/3);var so=function(e,t){this.ranges=e,this.primIndex=t};so.prototype.primary=function(){return this.ranges[this.primIndex]},so.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ut(n.anchor,r.anchor)||!ut(n.head,r.head))return!1}return!0},so.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new lo(dt(this.ranges[t].anchor),dt(this.ranges[t].head));return new so(e,this.primIndex)},so.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},so.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ct(t,r.from())>=0&&ct(e,r.to())<=0)return n}return-1};var lo=function(e,t){this.anchor=e,this.head=t};function co(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ct(e.from(),t.from())})),n=q(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ct(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ft(s.from(),a.from()),u=ht(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new lo(d?u:c,d?c:u))}}return new so(t,n)}function uo(e,t){return new so([new lo(e,t||e)],0)}function ho(e){return e.text?lt(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function fo(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return ho(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+=ho(t).ch-t.to.ch),lt(n,r)}function po(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new lo(fo(i.anchor,t),fo(i.head,t)))}return co(e.cm,n,e.sel.primIndex)}function go(e,t,n){return e.line==t.line?lt(n.line,e.ch-t.ch+n.ch):lt(n.line+(e.line-t.line),e.ch)}function mo(e,t,n){for(var r=[],i=lt(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=go(s.from,i,o),c=go(ho(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=ct(u.head,u.anchor)<0;r[a]=new lo(d?c:l,d?l:c)}else r[a]=new lo(l,l)}return new so(r,e.sel.primIndex)}function vo(e){e.doc.mode=Ge(e.options,e.doc.modeOption),yo(e)}function yo(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,Fi(e,100),e.state.modeGen++,e.curOp&&Yr(e)}function bo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Z(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function wo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){fn(e,n,i,r),Dn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new hn(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=et(e,s.line),d=et(e,l.line),h=Z(c),f=i(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(bo(e,t)){var g=a(0,c.length-1);o(d,d.text,f),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+h+u.text.slice(l.ch),f);else{var m=a(1,c.length-1);m.push(new hn(h+u.text.slice(l.ch),f,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,m)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,h+d.text.slice(l.ch),f);var v=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}Dn(e,"change",e,t)}function _o(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function xo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Rr(e),vo(e),Eo(e),e.options.direction=t.direction,e.options.lineWrapping||dn(e),e.options.mode=t.modeOption,Yr(e)}function Eo(e){("rtl"==e.doc.direction?P:T)(e.display.lineDiv,"CodeMirror-rtl")}function Co(e){Pi(e,(function(){Eo(e),Yr(e)}))}function ko(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function So(e,t){var n={from:dt(t.from),to:ho(t),text:tt(e,t.from,t.to)};return No(e,n,t.from.line,t.to.line+1),_o(e,(function(e){return No(e,n,t.from.line,t.to.line+1)}),!0),n}function To(e){for(;e.length&&Z(e).ranges;)e.pop()}function Mo(e,t){return t?(To(e.done),Z(e.done)):e.done.length&&!Z(e.done).ranges?Z(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}function Oo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,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)))&&(o=Mo(i,i.lastOp==r)))a=Z(o.changes),0==ct(t.from,t.to)&&0==ct(t.from,a.to)?a.to=ho(t):o.changes.push(So(e,t));else{var l=Z(i.done);for(l&&l.ranges||Do(e.sel,i.done),o={changes:[So(e,t)],generation:i.generation},i.done.push(o);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,a||we(e,"historyAdded")}function Lo(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)}function Ao(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Lo(e,o,Z(i.done),t))?i.done[i.done.length-1]=t:Do(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&To(i.undone)}function Do(e,t){var n=Z(t);n&&n.ranges&&n.equals(e)||t.push(e)}function No(e,t,n,r){var i=t["spans_"+e.id],o=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]={}))[o]=n.markedSpans),++o}))}function Po(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}function Io(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Po(n[i]));return r}function jo(e,t){var n=Io(e,t),r=Ht(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Ro(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?so.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&q(t,Number(u[1]))>-1&&(Z(s)[d]=c[d],delete c[d])}}}return r}function Fo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ct(t,i)<0;o!=ct(n,i)<0?(i=t,t=n):o!=ct(t,n)<0&&(t=n)}return new lo(i,t)}return new lo(n||t,t)}function zo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Vo(e,new so([Fo(e.sel.primary(),t,n,i)],0),r)}function Yo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Fo(e.sel.ranges[o],t[o],null,i);Vo(e,co(e.cm,r,e.sel.primIndex),n)}function Bo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Vo(e,co(e.cm,i,e.sel.primIndex),r)}function Ho(e,t,n,r){Vo(e,uo(t,n),r)}function qo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new lo(gt(e,t[n].anchor),gt(e,t[n].head))},origin:n&&n.origin};return we(e,"beforeSelectionChange",e,r),e.cm&&we(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?co(e.cm,r.ranges,r.ranges.length-1):t}function Uo(e,t,n){var r=e.history.done,i=Z(r);i&&i.ranges?(r[r.length-1]=t,Wo(e,t,n)):Vo(e,t,n)}function Vo(e,t,n){Wo(e,t,n),Ao(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Wo(e,t,n){(Ee(e,"beforeSelectionChange")||e.cm&&Ee(e.cm,"beforeSelectionChange"))&&(t=qo(e,t,n));var r=n&&n.bias||(ct(t.primary().head,e.sel.primary().head)<0?-1:1);Go(e,Ko(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||ui(e.cm)}function Go(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,xe(e.cm)),Dn(e,"cursorActivity",e))}function $o(e){Go(e,Ko(e,e.sel,null,!1))}function Ko(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Xo(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:Xo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new lo(l,c))}return i?co(e.cm,i,t.primIndex):t}function Jo(e,t,n,r,i){var o=et(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(we(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),h=void 0;if((r<0?u:c)&&(d=Zo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(h=ct(d,n))&&(r<0?h<0:h>0))return Jo(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=Zo(e,f,r,f.line==t.line?o:null)),f?Jo(e,f,t,r,i):null}}return t}function Xo(e,t,n,r,i){var o=r||1,a=Jo(e,t,n,o,i)||!i&&Jo(e,t,n,o,!0)||Jo(e,t,n,-o,i)||!i&&Jo(e,t,n,-o,!0);return a||(e.cantEdit=!0,lt(e.first,0))}function Zo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?gt(e,lt(t.line-1)):null:n>0&&t.ch==(r||et(e,t.line)).text.length?t.line<e.first+e.size-1?lt(t.line+1,0):null:new lt(t.line,t.ch+n)}function Qo(e){e.setSelection(lt(e.firstLine(),0),lt(e.lastLine()),W)}function ea(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,o){t&&(r.from=gt(e,t)),n&&(r.to=gt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),we(e,"beforeChange",e,r),e.cm&&we(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}}function ta(e,t,n){if(e.cm){if(!e.cm.curOp)return Ii(e.cm,ta)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"))||(t=ea(e,t,!0))){var r=Dt&&!n&&Ut(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)na(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else na(e,t)}}function na(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var n=po(e,t);Oo(e,t,n,e.cm?e.cm.curOp.id:NaN),oa(e,t,n,Ht(e,t));var r=[];_o(e,(function(e,n){n||-1!=q(r,e.history)||(ua(e.history,t),r.push(e.history)),oa(e,t,null,Ht(e,t))}))}}function ra(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Do(i,l),n&&!i.equals(e.sel))return void Vo(e,i,{clearRedo:!1});a=i}var u=[];Do(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=t,d&&!ea(e,r,!1))return s.length=0,{};u.push(So(e,r));var o=n?po(e,r):Z(s);oa(e,r,o,jo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:ho(r)});var a=[];_o(e,(function(e,t){t||-1!=q(a,e.history)||(ua(e.history,r),a.push(e.history)),oa(e,r,null,jo(e,r))}))},f=i.changes.length-1;f>=0;--f){var p=h(f);if(p)return p.v}}}}function ia(e,t){if(0!=t&&(e.first+=t,e.sel=new so(Q(e.sel.ranges,(function(e){return new lo(lt(e.anchor.line+t,e.anchor.ch),lt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Yr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Br(e.cm,r,"gutter")}}function oa(e,t,n,r){if(e.cm&&!e.cm.curOp)return Ii(e.cm,oa)(e,t,n,r);if(t.to.line<e.first)ia(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ia(e,i),t={from:lt(e.first,0),to:lt(t.to.line+i,t.to.ch),text:[Z(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:lt(o,et(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=tt(e,t.from,t.to),n||(n=po(e,t)),e.cm?aa(e.cm,t,r):wo(e,t,r),Wo(e,n,W),e.cantEdit&&Xo(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}}function aa(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=it(tn(et(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&xe(e),wo(r,t,n,jr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=un(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),At(r,o.line),Fi(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Yr(e):o.line!=a.line||1!=t.text.length||bo(e.doc,t)?Yr(e,o.line,a.line+1,c):Br(e,o.line,"text");var u=Ee(e,"changes"),d=Ee(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Dn(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function sa(e,t,n,r,i){var o;r||(r=n),ct(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ta(e,{from:n,to:r,text:t,origin:i})}function la(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ca(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)la(o.ranges[s].anchor,t,n,r),la(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=lt(c.from.line+r,c.from.ch),c.to=lt(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ua(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ca(e.done,n,r,i),ca(e.undone,n,r,i)}function da(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=et(e,pt(e,t)):i=it(t),null==i?null:(r(o,i)&&e.cm&&Br(e.cm,i,n),o)}function ha(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function fa(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}lo.prototype.from=function(){return ft(this.anchor,this.head)},lo.prototype.to=function(){return ht(this.anchor,this.head)},lo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ha.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,pn(i),Dn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},fa.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ha))){var s=[];this.collapse(s),this.children=[new ha(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new ha(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new fa(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=q(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new fa(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=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var pa=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ga(e,t,n){cn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ci(e,n)}function ma(e,t,n,r){var i=new pa(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),da(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!sn(e,t)){var r=cn(t)<e.scrollTop;rt(t,t.height+Wn(i)),r&&ci(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&Dn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:it(t)),i}pa.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=it(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Wn(this);rt(n,Math.max(0,n.height-o)),e&&(Pi(e,(function(){ga(e,n,-o),Br(e,r,"widget")})),Dn(e,"lineWidgetCleared",e,this,r))}},pa.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Wn(this)-t;i&&(sn(this.doc,r)||rt(r,r.height+i),n&&Pi(n,(function(){n.curOp.forceUpdate=!0,ga(n,r,i),Dn(n,"lineWidgetChanged",n,e,it(r))})))},Ce(pa);var va=0,ya=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++va};function ba(e,t,n,r,i){if(r&&r.shared)return _a(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Ii(e.cm,ba)(e,t,n,r,i);var o=new ya(e,i),a=ct(t,n);if(r&&Y(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(en(e,t.line,t,n,o)||t.line!=n.line&&en(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");It()}o.addToHistory&&Oo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&tn(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&rt(r,0),zt(r,new jt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){sn(e,t)&&rt(t,0)})),o.clearOnEnter&&ve(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Pt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++va,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Yr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Br(c,u,"text");o.atomic&&$o(c.doc),Dn(c,"markerAdded",c,o)}return o}ya.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Si(e),Ee(this,"clear")){var n=this.find();n&&Dn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Rt(a.markedSpans,this);e&&!this.collapsed?Br(e,it(a),"text"):e&&(null!=s.to&&(i=it(a)),null!=s.from&&(r=it(a))),a.markedSpans=Ft(a.markedSpans,s),null==s.from&&this.collapsed&&!sn(this.doc,a)&&e&&rt(a,Dr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=tn(this.lines[l]),u=un(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Yr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&$o(e.doc)),e&&Dn(e,"markerCleared",e,this,r,i),t&&Ti(e),this.parent&&this.parent.clear()}},ya.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Rt(o.markedSpans,this);if(null!=a.from&&(n=lt(t?o:it(o),a.from),-1==e))return n;if(null!=a.to&&(r=lt(t?o:it(o),a.to),1==e))return r}return n&&{from:n,to:r}},ya.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Pi(r,(function(){var i=t.line,o=it(t.line),a=ir(r,o);if(a&&(fr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!sn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Wn(n)-s;l&&rt(i,i.height+l)}Dn(r,"markerChanged",r,e)}))},ya.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=q(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ya.prototype.detachLine=function(e){if(this.lines.splice(q(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ce(ya);var wa=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function _a(e,t,n,r,i){(r=Y(r)).shared=!1;var o=[ba(e,t,n,r,i)],a=o[0],s=r.widgetNode;return _o(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ba(e,gt(e,t),gt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Z(o)})),new wa(o,a)}function xa(e){return e.findMarks(lt(e.first,0),e.clipPos(lt(e.lastLine())),(function(e){return e.parent}))}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ct(o,a)){var s=ba(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Ca(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];_o(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==q(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}wa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Dn(this,"clear")}},wa.prototype.find=function(e,t){return this.primary.find(e,t)},Ce(wa);var ka=0,Sa=function(e,t,n,r,i){if(!(this instanceof Sa))return new Sa(e,t,n,r,i);null==n&&(n=0),fa.call(this,[new ha([new hn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=lt(n,0);this.sel=uo(o),this.history=new ko(null),this.id=++ka,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),wo(this,{from:o,to:o,text:e}),Vo(this,uo(o),W)};Sa.prototype=ne(fa.prototype,{constructor:Sa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},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)},getValue:function(e){var t=nt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Ri((function(e){var t=lt(this.first,0),n=this.first+this.size-1;ta(this,{from:t,to:lt(n,et(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&di(this.cm,0,0),Vo(this,uo(t),W)})),replaceRange:function(e,t,n,r){sa(this,e,t=gt(this,t),n=n?gt(this,n):t,r)},getRange:function(e,t,n){var r=tt(this,gt(this,e),gt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(at(this,e))return et(this,e)},getLineNumber:function(e){return it(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=et(this,e)),tn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return gt(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:Ri((function(e,t,n){Ho(this,gt(this,"number"==typeof e?lt(e,t||0):e),null,n)})),setSelection:Ri((function(e,t,n){Ho(this,gt(this,e),gt(this,t||e),n)})),extendSelection:Ri((function(e,t,n){zo(this,gt(this,e),t&>(this,t),n)})),extendSelections:Ri((function(e,t){Yo(this,vt(this,e),t)})),extendSelectionsBy:Ri((function(e,t){Yo(this,vt(this,Q(this.sel.ranges,e)),t)})),setSelections:Ri((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new lo(gt(this,e[i].anchor),gt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Vo(this,co(this.cm,r,t),n)}})),addSelection:Ri((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new lo(gt(this,e),gt(this,t||e))),Vo(this,co(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=tt(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=tt(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},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:Ri((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&mo(this,r,t),l=r.length-1;l>=0;l--)ta(this,r[l]);s?Uo(this,s):this.cm&&ui(this.cm)})),undo:Ri((function(){ra(this,"undo")})),redo:Ri((function(){ra(this,"redo")})),undoSelection:Ri((function(){ra(this,"undo",!0)})),redoSelection:Ri((function(){ra(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(){var e=this;this.history=new ko(this.history),_o(this,(function(t){return t.history=e.history}),!0)},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:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(e){var t=this.history=new ko(this.history);t.done=Ro(e.done.slice(0),null,!0),t.undone=Ro(e.undone.slice(0),null,!0)},setGutterMarker:Ri((function(e,t,n){return da(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Ri((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&da(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!at(this,e))return null;if(t=e,!(e=et(this,e)))return null}else if(null==(t=it(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:Ri((function(e,t,n){return da(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(k(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Ri((function(e,t,n){return da(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 o=i.match(k(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:Ri((function(e,t,n){return ma(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ba(this,gt(this,e),gt(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 ba(this,e=gt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=et(this,(e=gt(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=gt(this,e),t=gt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.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 o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),gt(this,lt(n,t))},indexFromPos:function(e){var t=(e=gt(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){t+=e.text.length+n})),t},copy:function(e){var t=new Sa(nt(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 Sa(nt(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}],Ea(r,xa(this)),r},unlinkDoc:function(e){if(e instanceof Ys&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Ca(xa(this));break}if(e.history==this.history){var n=[e.id];_o(e,(function(e){return n.push(e.id)}),!0),e.history=new ko(null),e.history.done=Ro(this.history.done,n),e.history.undone=Ro(this.history.undone,n)}},iterLinkedDocs:function(e){_o(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Ri((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Co(this.cm))}))}),Sa.prototype.eachLine=Sa.prototype.iter;var Ta=0;function Ma(e){var t=this;if(Aa(t),!_e(t,e)&&!Gn(t.display,e)){ke(e),a&&(Ta=+new Date);var n=Fr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&Ii(t,(function(){var e={from:n=gt(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ta(t.doc,e),Uo(t.doc,uo(gt(t.doc,n),gt(t.doc,ho(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==q(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Wo(t.doc,uo(n,n)),h)for(var f=0;f<h.length;++f)sa(t.doc,"",h[f].anchor,h[f].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Oa(e,t){if(a&&(!e.state.draggingText||+new Date-Ta<100))Me(t);else if(!_e(e,t)&&!Gn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=L("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),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}function La(e,t){var n=Fr(e,t);if(n){var r=document.createDocumentFragment();$r(e,n,r),e.display.dragCursor||(e.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}function Aa(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Da(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 Na=!1;function Pa(){Na||(Ia(),Na=!0)}function Ia(){var e;ve(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Da(ja)}),100))})),ve(window,"blur",(function(){return Da(ti)}))}function ja(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ra={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:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fa=0;Fa<10;Fa++)Ra[Fa+48]=Ra[Fa+96]=String(Fa);for(var za=65;za<=90;za++)Ra[za]=String.fromCharCode(za);for(var Ya=1;Ya<=12;Ya++)Ra[Ya+111]=Ra[Ya+63235]="F"+Ya;var Ba={};function Ha(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];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}function qa(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=Q(n.split(" "),Ha),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Ua(e,t,n,r){var i=(t=$a(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 Ua(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ua(e,t.fallthrough[o],n,r);if(a)return a}}}function Va(e){var t="string"==typeof e?e:Ra[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Wa(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(E?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(E?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ga(e,t){if(h&&34==e.keyCode&&e.char)return!1;var n=Ra[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Wa(n,e,t))}function $a(e){return"string"==typeof e?Ba[e]:e}function Ka(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ct(o.from,Z(r).to)<=0;){var a=r.pop();if(ct(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Pi(e,(function(){for(var t=r.length-1;t>=0;t--)sa(e.doc,"",r[t].from,r[t].to,"+delete");ui(e)}))}function Ja(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Xa(e,t,n){var r=Ja(e,t.ch,n);return null==r?null:new lt(t.line,r,n<0?"after":"before")}function Za(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ge(n,t.doc.direction);if(o){var a,s=i<0?Z(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=or(t,n);a=i<0?n.text.length-1:0;var u=ar(t,c,a).top;a=ue((function(e){return ar(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ja(n,a,1))}else a=i<0?s.to:s.from;return new lt(r,a,l)}}return new lt(r,i<0?n.text.length:0,i<0?"before":"after")}function Qa(e,t,n,r){var i=ge(t,e.doc.direction);if(!i)return Xa(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 o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Xa(t,n,r);var s,l=function(e,n){return Ja(t,e instanceof lt?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||or(e,t),Tr(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,h=l(n,d?1:-1);if(null!=h&&(d?h<=a.to&&h<=u.end:h>=a.from&&h>=u.begin)){var f=d?"before":"after";return new lt(n.line,h,f)}}var p=function(e,t,r){for(var o=function(e,t){return t?new lt(n.line,l(e,1),"before"):new lt(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},g=p(o+r,r,u);if(g)return g;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==t.text.length||!(g=p(r>0?0:i.length-1,r,c(m)))?null:g}Ba.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"},Ba.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"},Ba.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ba.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"]},Ba.default=b?Ba.macDefault:Ba.pcDefault;var es={selectAll:Qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return Ka(e,(function(t){if(t.empty()){var n=et(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:lt(t.head.line+1,0)}:{from:t.head,to:lt(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ka(e,(function(t){return{from:lt(t.from().line,0),to:gt(e.doc,lt(t.to().line+1,0))}}))},delLineLeft:function(e){return Ka(e,(function(e){return{from:lt(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ka(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 Ka(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(lt(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(lt(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return ts(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return rs(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return ns(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")}),$)},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")}),$)},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/)?rs(e,t.head):r}),$)},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,"codepoint")},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 o=n[i].from(),a=B(e.getLine(o.line),o.ch,r);t.push(X(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Pi(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=et(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new lt(i.line,i.ch-1)),i.ch>0)i=new lt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),lt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=et(e.doc,i.line-1).text;a&&(i=new lt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),lt(i.line-1,a.length-1),i,"+transpose"))}n.push(new lo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Pi(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);ui(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ts(e,t){var n=et(e.doc,t),r=tn(n);return r!=n&&(t=it(r)),Za(!0,e,r,t,1)}function ns(e,t){var n=et(e.doc,t),r=nn(n);return r!=n&&(t=it(r)),Za(!0,e,n,t,-1)}function rs(e,t){var n=ts(e,t.line),r=et(e.doc,n.line),i=ge(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return lt(n.line,a?0:o,n.sticky)}return n}function is(e,t,n){if("string"==typeof t&&!(t=es[t]))return!1;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)!=V}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function os(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ua(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ua(t,e.options.extraKeys,n,e)||Ua(t,e.options.keyMap,n,e)}var as=new H;function ss(e,t,n,r){var i=e.state.keySeq;if(i){if(Va(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:as.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ls(e,i+" "+t,n,r))return!0}return ls(e,t,n,r)}function ls(e,t,n,r){var i=os(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Dn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ke(n),Xr(e)),!!i}function cs(e,t){var n=Ga(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ss(e,"Shift-"+n,t,(function(t){return is(e,t,!0)}))||ss(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return is(e,t)})):ss(e,n,t,(function(t){return is(e,t)})))}function us(e,t,n){return ss(e,"'"+n+"'",t,(function(t){return is(e,t,!0)}))}var ds=null;function hs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=N(R(t)),_e(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=cs(t,e);h&&(ds=i?r:null,i||88!=r||ze||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||fs(t)}}function fs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(T(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n))}P(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n)}function ps(e){16==e.keyCode&&(this.doc.sel.shift=!1),_e(this,e)}function gs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Gn(t.display,e)||_e(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(h&&n==ds)return ds=null,void ke(e);if(!h||e.which&&!(e.which<10)||!cs(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(us(t,e,i)||t.display.input.onKeyPress(e))}}}var ms,vs,ys=400,bs=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ws(e,t){var n=+new Date;return vs&&vs.compare(n,e,t)?(ms=vs=null,"triple"):ms&&ms.compare(n,e,t)?(vs=new bs(n,e,t),ms=null,"double"):(ms=new bs(n,e,t),vs=null,"single")}function _s(e){var t=this,n=t.display;if(!(_e(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Gn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ls(t,e)){var r=Fr(t,e),i=Le(e),o=r?ws(r,i):"single";F(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&xs(t,i,r,o,e)||(1==i?r?Cs(t,r,o,e):Oe(e)==n.scroller&&ke(e):2==i?(r&&zo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(C?t.display.input.onContextMenu(e):Qr(t)))}}function xs(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),ss(e,Wa(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=es[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=V}finally{e.state.suppressEdits=!1}return r}))}function Es(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=w?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"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=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function Cs(e,t,n,r){a?setTimeout(z(Zr,e),0):e.curOp.focus=N(R(e));var i,o=Es(e,n,r),s=e.doc.sel;e.options.dragDrop&&Ne&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ct((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ct(i.to(),t)>0||t.xRel<0)?ks(e,r,t,o):Ts(e,r,t,o)}function ks(e,t,n,r){var i=e.display,o=!1,c=Ii(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Qr(e)),be(i.wrapper.ownerDocument,"mouseup",c),be(i.wrapper.ownerDocument,"mousemove",u),be(i.scroller,"dragstart",d),be(i.scroller,"drop",c),o||(ke(t),r.addNew||zo(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,ve(i.wrapper.ownerDocument,"mouseup",c),ve(i.wrapper.ownerDocument,"mousemove",u),ve(i.scroller,"dragstart",d),ve(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ss(e,t,n){if("char"==n)return new lo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new lo(lt(t.line,0),gt(e.doc,lt(t.line+1,0)));var r=n(e,t);return new lo(r.from,r.to)}function Ts(e,t,n,r){a&&Qr(e);var i=e.display,o=e.doc;ke(t);var s,l,c=o.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new lo(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new lo(n,n)),n=Fr(e,t,!0,!0),l=-1;else{var d=Ss(e,n,r.unit);s=r.extend?Fo(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,Vo(o,co(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Vo(o,co(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Bo(o,l,s,G):(l=0,Vo(o,new so([s],0),G),c=o.sel);var h=n;function f(t){if(0!=ct(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=B(et(o,n.line).text,n.ch,a),d=B(et(o,t.line).text,t.ch,a),f=Math.min(u,d),p=Math.max(u,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=et(o,g).text,y=K(v,f,a);f==p?i.push(new lo(lt(g,y),lt(g,y))):v.length>y&&i.push(new lo(lt(g,y),lt(g,K(v,p,a))))}i.length||i.push(new lo(n,n)),Vo(o,co(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,_=Ss(e,t,r.unit),x=w.anchor;ct(_.anchor,x)>0?(b=_.head,x=ft(w.from(),_.anchor)):(b=_.anchor,x=ht(w.to(),_.head));var E=c.ranges.slice(0);E[l]=Ms(e,new lo(gt(o,x),b)),Vo(o,co(e,E,l),G)}}var p=i.wrapper.getBoundingClientRect(),g=0;function m(t){var n=++g,a=Fr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ct(a,h)){e.curOp.focus=N(R(e)),f(a);var s=ii(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Ii(e,(function(){g==n&&m(t)})),150)}else{var l=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;l&&setTimeout(Ii(e,(function(){g==n&&(i.scroller.scrollTop+=l,m(t))})),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(ke(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Ii(e,(function(e){0!==e.buttons&&Le(e)?m(e):v(e)})),b=Ii(e,v);e.state.selectingText=b,ve(i.wrapper.ownerDocument,"mousemove",y),ve(i.wrapper.ownerDocument,"mouseup",b)}function Ms(e,t){var n=t.anchor,r=t.head,i=et(e.doc,n.line);if(0==ct(n,r)&&n.sticky==r.sticky)return t;var o=ge(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=fe(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],f=l==(1==h.level),p=f?h.from:h.to,g=f?"after":"before";return n.ch==p&&n.sticky==g?t:new lo(new lt(n.line,p,g),r)}function Os(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ke(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ee(e,n))return Te(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return we(e,n,e,ot(e.doc,o),e.display.gutterSpecs[l].className,t),Te(t)}}function Ls(e,t){return Os(e,t,"gutterClick",!0)}function As(e,t){Gn(e.display,t)||Ds(e,t)||_e(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Ds(e,t){return!!Ee(e,"gutterContextMenu")&&Os(e,t,"gutterContextMenu",!1)}function Ns(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gr(e)}bs.prototype.compare=function(e,t,n){return this.time+ys>e&&0==ct(t,this.pos)&&n==this.button};var Ps={toString:function(){return"CodeMirror.Init"}},Is={},js={};function Rs(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ps&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ps,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,vo(e)}),!0),n("indentUnit",2,vo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){yo(e),gr(e),Yr(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 o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(lt(r,o))}r++}));for(var i=n.length-1;i>=0;i--)sa(e.doc,t,n[i],lt(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ps&&e.refresh()})),n("specialCharPlaceholder",bn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!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",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ns(e),eo(e)}),!0),n("keyMap","default",(function(e,t,n){var r=$a(t),i=n!=Ps&&$a(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,zs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Zi(t,e.options.lineNumbers),eo(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Ir(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return _i(e)}),!0),n("scrollbarStyle","native",(function(e){Ci(e),_i(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=Zi(e.options.gutters,t),eo(e)}),!0),n("firstLineNumber",1,eo,!0),n("lineNumberFormatter",(function(e){return e}),eo,!0),n("showCursorWhenSelecting",!1,Wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ti(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Fs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Wr,!0),n("singleCursorHeightPerLine",!0,Wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,yo,!0),n("addModeClass",!1,yo,!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,yo,!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 Fs(e,t,n){if(!t!=!(n&&n!=Ps)){var r=e.display.dragFunctions,i=t?ve:be;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 zs(e){e.options.lineWrapping?(P(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),dn(e)),Rr(e),Yr(e),gr(e),setTimeout((function(){return _i(e)}),100)}function Ys(e,t){var n=this;if(!(this instanceof Ys))return new Ys(e,t);this.options=t=t?Y(t):{},Y(Is,t,!1);var r=t.value;"string"==typeof r?r=new Sa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ys.inputStyles[t.inputStyle](this),o=this.display=new to(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Ns(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ci(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new H,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Bs(this),Pa(),Si(this),this.curOp.forceUpdate=!0,xo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&ei(n)}),20):ti(this),js)js.hasOwnProperty(c)&&js[c](this,t[c],Ps);Xi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Hs.length;++u)Hs[u](this);Ti(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Bs(e){var t=e.display;ve(t.scroller,"mousedown",Ii(e,_s)),ve(t.scroller,"dblclick",a&&s<11?Ii(e,(function(t){if(!_e(e,t)){var n=Fr(e,t);if(n&&!Ls(e,t)&&!Gn(e.display,t)){ke(t);var r=e.findWordAt(n);zo(e.doc,r.anchor,r.head)}}})):function(t){return _e(e,t)||ke(t)}),ve(t.scroller,"contextmenu",(function(t){return As(e,t)})),ve(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||As(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(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}ve(t.scroller,"touchstart",(function(i){if(!_e(e,i)&&!o(i)&&!Ls(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(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 o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new lo(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new lo(lt(a.line,0),gt(e.doc,lt(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ke(n)}i()})),ve(t.scroller,"touchcancel",i),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(gi(e,t.scroller.scrollTop),vi(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return ao(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return ao(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){_e(e,t)||Me(t)},over:function(t){_e(e,t)||(La(e,t),Me(t))},start:function(t){return Oa(e,t)},drop:Ii(e,Ma),leave:function(t){_e(e,t)||Aa(e)}};var c=t.input.getField();ve(c,"keyup",(function(t){return ps.call(e,t)})),ve(c,"keydown",Ii(e,hs)),ve(c,"keypress",Ii(e,gs)),ve(c,"focus",(function(t){return ei(e,t)})),ve(c,"blur",(function(t){return ti(e,t)}))}Ys.defaults=Is,Ys.optionHandlers=js;var Hs=[];function qs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=xt(e,t).state:n="prev");var a=e.options.tabSize,s=et(o,t),l=B(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==V||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?B(et(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)h+=a,d+="\t";if(h<c&&(d+=X(c-h)),d!=u)return sa(o,d,lt(t,0),lt(t,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<u.length){var m=lt(t,u.length);Bo(o,p,new lo(m,m));break}}}Ys.defineInitHook=function(e){return Hs.push(e)};var Us=null;function Vs(e){Us=e}function Ws(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Re(t),c=null;if(s&&r.ranges.length>1)if(Us&&Us.text.join("\n")==t){if(r.ranges.length%Us.text.length==0){c=[];for(var u=0;u<Us.text.length;u++)c.push(o.splitLines(Us.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Q(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var f=r.ranges[h],p=f.from(),g=f.to();f.empty()&&(n&&n>0?p=lt(p.line,p.ch-n):e.state.overwrite&&!s?g=lt(g.line,Math.min(et(o,g.line).text.length,g.ch+Z(l).length)):s&&Us&&Us.lineWise&&Us.text.join("\n")==l.join("\n")&&(p=g=lt(p.line,0)));var m={from:p,to:g,text:c?c[h%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ta(e.doc,m),Dn(e,"inputRead",e,m)}t&&!s&&$s(e,t),ui(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),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||!t.hasFocus()||Pi(t,(function(){return Ws(t,n,0,null,"paste")})),!0}function $s(e,t){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 o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=qs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(et(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=qs(e,i.head.line,"smart"));a&&Dn(e,"electricInput",e,i.head.line)}}}function Ks(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:lt(i,0),head:lt(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Js(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Xs(){var e=L("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=L("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),t}function Zs(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){F(this).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)&&Ii(this,t[e])(this,n,i),we(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"]($a(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:ji((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");ee(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Yr(this)})),removeOverlay:ji((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Yr(this)}})),indentLine:ji((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),at(this.doc,e)&&qs(this,e,t,n)})),indentSelection:ji((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(qs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&ui(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)qs(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Bo(this.doc,r,new lo(o,c[r].to()),W)}}})),getTokenAt:function(e,t){return Tt(this,e,t)},getLineTokens:function(e,t){return Tt(this,lt(e),t,!0)},getTokenTypeAt:function(e){e=gt(this.doc,e);var t,n=_t(this,et(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+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=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==q(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return xt(this,(e=pt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return xr(this,null==e?n.head:"object"==typeof e?gt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return _r(this,gt(this.doc,e),t||"page")},coordsChar:function(e,t){return kr(this,(e=wr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=wr(this,{top:e,left:0},t||"page").top,ot(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=et(this.doc,e)}else r=e;return br(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-cn(r):0)},defaultTextHeight:function(){return Dr(this.display)},defaultCharWidth:function(){return Nr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=xr(this,gt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&si(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:ji(hs),triggerOnKeyPress:ji(gs),triggerOnKeyUp:ps,triggerOnMouseDown:ji(_s),execCommand:function(e){if(es.hasOwnProperty(e))return es[e].call(null,this)},triggerElectric:ji((function(e){$s(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=gt(this.doc,e),a=0;a<t&&!(o=Qs(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ji((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Qs(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),$)})),deleteH:ji((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ka(this,(function(n){var i=Qs(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=1,o=r;t<0&&(i=-1,t=-t);for(var a=gt(this.doc,e),s=0;s<t;++s){var l=xr(this,a,"div");if(null==o?o=l.left:l.left=o,(a=el(this,l,i,n)).hitSide)break}return a},moveV:ji((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=xr(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=el(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ci(n,_r(n,l,"div").top-s.top),l}),$),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=et(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 o=t.charAt(n),a=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new lo(lt(e.line,n),lt(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?P(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),we(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==N(R(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ji((function(e,t){di(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Xn(this)-this.display.barHeight,width:e.scrollWidth-Xn(this)-this.display.barWidth,clientHeight:Qn(this),clientWidth:Zn(this)}},scrollIntoView:ji((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:lt(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?hi(this,e):pi(this,e.from,e.to,e.margin)})),setSize:ji((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&&pr(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){Br(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,we(this,"refresh",this)})),operation:function(e){return Pi(this,e)},startOperation:function(){return Si(this)},endOperation:function(){return Ti(this)},refresh:ji((function(){var e=this.display.cachedTextHeight;Yr(this),this.curOp.forceUpdate=!0,gr(this),di(this,this.doc.scrollLeft,this.doc.scrollTop),$i(this.display),(null==e||Math.abs(e-Dr(this.display))>.5||this.options.lineWrapping)&&Rr(this),we(this,"refresh",this)})),swapDoc:ji((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xo(this,e),gr(this),this.display.input.reset(),di(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Dn(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}},Ce(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,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Qs(e,t,n,r,i){var o=t,a=n,s=et(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new lt(n,t.ch,t.sticky),s=et(e,n))}function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new lt(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?Qa(e.cm,s,t,n):Xa(s,t,n);if(null==a){if(o||!c())return!1;t=Za(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,h="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var g=s.text.charAt(t.ch)||"\n",m=oe(g,f)?"w":h&&"\n"==g?"n":!h||/\s/.test(g)?null:"p";if(!h||p||m||(m="s"),d&&d!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(d=m),n>0&&!u(!p))break}var v=Xo(e,t,o,a,!0);return ut(o,v)&&(v.hitSide=!0),v}function el(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,F(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*Dr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=kr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var tl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function nl(e,t){var n=ir(e,t.line);if(!n||n.hidden)return null;var r=et(e.doc,t.line),i=tr(n,r,t.line),o=ge(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var s=cr(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function rl(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function il(e,t){return t&&(e.bad=!0),e}function ol(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(lt(r,0),lt(i+1,0),c(+f));return void(p.length&&(o=p[0].find(0))&&d(tt(e.doc,o.from,o.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++)h(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),g&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;h(t),t!=n;)t=t.nextSibling,l=!1;return o}function al(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return il(e.clipPos(lt(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 o=e.display.view[i];if(o.node==r)return sl(o,t,n)}}function sl(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return il(lt(it(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Z(e.rest):e.line;return il(lt(it(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=it(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),lt(u,d)}}}var d=u(a,s,n);if(d)return il(d,i);for(var h=s.nextSibling,f=a?a.nodeValue.length-n:0;h;h=h.nextSibling){if(d=u(h,h.firstChild,0))return il(lt(d.line,d.ch-f),i);f+=h.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1))return il(lt(d.line,d.ch+g),i);g+=p.textContent.length}}tl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!_e(r,e)){if(r.somethingSelected())Vs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ks(r);Vs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,W),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Us.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Xs(),l=s.firstChild;Js(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Us.text.join("\n");var c=N(i.ownerDocument);j(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Js(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ve(i,"paste",(function(e){!o(e)||_e(r,e)||Gs(e,r)||s<=11&&setTimeout(Ii(r,(function(){return t.updateFromDOM()})),20)})),ve(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),ve(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),ve(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),ve(i,"touchstart",(function(){return n.forceCompositionEnd()})),ve(i,"input",(function(){t.composing||t.readFromDOMSoon()})),ve(i,"copy",a),ve(i,"cut",a)},tl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},tl.prototype.prepareSelection=function(){var e=Gr(this.cm,!1);return e.focus=N(this.div.ownerDocument)==this.div,e},tl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=al(t,e.anchorNode,e.anchorOffset),s=al(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ct(ft(a,s),i)||0!=ct(ht(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&nl(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&nl(t,o);if(!u){var d=l[l.length-1].measure,h=d.maps?d.maps[d.maps.length-1]:d.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(c&&u){var f,p=e.rangeCount&&e.getRangeAt(0);try{f=S(c.node,c.offset,u.offset,u.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},tl.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)},tl.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},tl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},tl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&N(this.div.ownerDocument)==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},tl.prototype.blur=function(){this.div.blur()},tl.prototype.getField=function(){return this.div},tl.prototype.supportsTouch=function(){return!0},tl.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Pi(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},tl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&rl(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=al(t,e.anchorNode,e.anchorOffset),r=al(t,e.focusNode,e.focusOffset);n&&r&&Pi(t,(function(){Vo(t.doc,uo(n,r),W),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},tl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=lt(a.line-1,et(r.doc,a.line-1).length)),s.ch==et(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=lt(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=zr(r,a.line))?(t=it(i.view[0].line),n=i.view[0].node):(t=it(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=zr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=it(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(ol(r,n,c,t,l)),h=tt(r.doc,lt(t,0),lt(l,et(r.doc,l).text.length));d.length>1&&h.length>1;)if(Z(d)==Z(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),t++}for(var f=0,p=0,g=d[0],m=h[0],v=Math.min(g.length,m.length);f<v&&g.charCodeAt(f)==m.charCodeAt(f);)++f;for(var y=Z(d),b=Z(h),w=Math.min(y.length-(1==d.length?f:0),b.length-(1==h.length?f:0));p<w&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==d.length&&1==h.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)f--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var _=lt(t,f),x=lt(l,h.length?Z(h).length-p:0);return d.length>1||d[0]||ct(_,x)?(sa(r.doc,d,_,x,"+input"),!0):void 0},tl.prototype.ensurePolled=function(){this.forceCompositionEnd()},tl.prototype.reset=function(){this.forceCompositionEnd()},tl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tl.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))},tl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Pi(this.cm,(function(){return Yr(e.cm)}))},tl.prototype.setUneditable=function(e){e.contentEditable="false"},tl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ii(this.cm,Ws)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},tl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},tl.prototype.onContextMenu=function(){},tl.prototype.resetPosition=function(){},tl.prototype.needsContentAttribute=!0;var ll=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null,this.resetting=!1};function cl(e,t){if((t=t?Y(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=N(e.ownerDocument);t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ve(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ys((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function ul(e){e.off=be,e.on=ve,e.wheelEventPixels=oo,e.Doc=Sa,e.splitLines=Re,e.countColumn=B,e.findColumn=K,e.isWordChar=ie,e.Pass=V,e.signal=we,e.Line=hn,e.changeEnd=ho,e.scrollbarModel=Ei,e.Pos=lt,e.cmpPos=ct,e.modes=He,e.mimeModes=qe,e.resolveMode=We,e.getMode=Ge,e.modeExtensions=$e,e.extendMode=Ke,e.copyState=Je,e.startState=Ze,e.innerMode=Xe,e.commands=es,e.keyMap=Ba,e.keyName=Ga,e.isModifierKey=Va,e.lookupKey=Ua,e.normalizeKeyMap=qa,e.StringStream=Qe,e.SharedTextMarker=wa,e.TextMarker=ya,e.LineWidget=pa,e.e_preventDefault=ke,e.e_stopPropagation=Se,e.e_stop=Me,e.addClass=P,e.contains=D,e.rmClass=T,e.keyNames=Ra}ll.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!_e(r,e)){if(r.somethingSelected())Vs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ks(r);Vs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,W):(n.prevInput="",i.value=t.text.join("\n"),j(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),ve(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),ve(i,"paste",(function(e){_e(r,e)||Gs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ve(i,"cut",o),ve(i,"copy",o),ve(e.scroller,"paste",(function(t){if(!Gn(e,t)&&!_e(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),ve(e.lineSpace,"selectstart",(function(t){Gn(e,t)||ke(t)})),ve(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"})}})),ve(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ll.prototype.createField=function(e){this.wrapper=Xs(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Js(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},ll.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ll.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Gr(e);if(e.options.moveInputWithCursor){var i=xr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ll.prototype.showSelection=function(e){var t=this.cm.display;O(t.cursorDiv,e.cursors),O(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ll.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&j(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},ll.prototype.getField=function(){return this.textarea},ll.prototype.supportsTouch=function(){return!1},ll.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||N(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(e){}},ll.prototype.blur=function(){this.textarea.blur()},ll.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ll.prototype.receivedFocus=function(){this.slowPoll()},ll.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ll.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)},ll.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Pi(t,(function(){Ws(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),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},ll.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ll.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ll.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Fr(n,e),c=r.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Ii(n,Vo)(n.doc,uo(o),W);var u,d=i.style.cssText,f=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: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),C){Me(e);var g=function(){be(window,"mouseup",g),setTimeout(v,20)};ve(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&m();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?Ii(n,Qo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},ll.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ll.prototype.setUneditable=function(){},ll.prototype.needsContentAttribute=!1,Rs(Ys),Zs(Ys);var dl="iter insert remove copy getEditor constructor".split(" ");for(var hl in Sa.prototype)Sa.prototype.hasOwnProperty(hl)&&q(dl,hl)<0&&(Ys.prototype[hl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Sa.prototype[hl]));return Ce(Sa),Ys.inputStyles={textarea:ll,contenteditable:tl},Ys.defineMode=function(e){Ys.defaults.mode||"null"==e||(Ys.defaults.mode=e),Ue.apply(this,arguments)},Ys.defineMIME=Ve,Ys.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ys.defineMIME("text/plain","null"),Ys.defineExtension=function(e,t){Ys.prototype[e]=t},Ys.defineDocExtension=function(e,t){Sa.prototype[e]=t},Ys.fromTextArea=cl,ul(Ys),Ys.version="5.65.15",Ys}()},54086:function(e,t,n){!function(e){"use strict";function t(e){for(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}function n(e){for(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}function r(e){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}function i(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},i=n.atoms||{false:!0,true:!0,null:!0},l=n.builtin||a(s),c=n.keywords||a(o),u=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,d=n.support||{},h=n.hooks||{},f=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();if(h[n]){var o=h[n](e,t);if(!1!==o)return o}if(d.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]*'/)))return"number";if(d.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]*'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),d.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&d.doubleQuote)return t.tokenize=y(n),t.tokenize(e,t);if((d.nCharCast&&("n"==n||"N"==n)||d.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(d.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&d.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=y(e.next(),!0))(e,t)},"keyword";if(d.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(d.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!d.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=b(1),t.tokenize(e,t);if("."!=n){if(u.test(n))return e.eatWhile(u),"operator";if(g.test(n))return"bracket";if(m.test(n))return e.eatWhile(m),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var a=e.current().toLowerCase();return f.hasOwnProperty(a)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":i.hasOwnProperty(a)?"atom":l.hasOwnProperty(a)?"type":c.hasOwnProperty(a)?"keyword":r.hasOwnProperty(a)?"builtin":null}return d.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:e.match(/^[\w\d_$#]+/)?"variable-2":void 0}function y(e,t){return function(n,r){for(var i,o=!1;null!=(i=n.next());){if(i==e&&!o){r.tokenize=v;break}o=(p||t)&&!o&&"\\"==i}return"string"}}function b(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=b(e+1):n.tokenize=e>1?b(e-1):v:t.skipToEnd(),"comment"}}function w(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}function _(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?w(e,t,")"):"["==r?w(e,t,"]"):t.context&&t.context.type==r&&_(t),n},indent:function(n,r){var i=n.context;if(!i)return e.Pass;var o=r.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:d.commentSlashSlash?"//":d.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``",config:n}}));var 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 ";function a(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";e.defineMIME("text/x-sql",{name:"sql",keywords:a(o+"begin"),builtin:a(s),atoms:a("false true null unknown"),dateSQL:a("date time timestamp"),support:a("doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:a("$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:a(o+"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:a("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:a("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:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":r}}),e.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"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:a("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:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(o+"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 group_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:a("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:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":i}}),e.defineMIME("text/x-sqlite",{name:"sql",client:a("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"),keywords:a(o+"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"),builtin:a("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"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":r,":":r,"?":r,$:r,'"':n,"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("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:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:a("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:a("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:a("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:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:a("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:a("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:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(o+"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"),builtin:a("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 zone timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:a("date time timestamp"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("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:a("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:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:a("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 data 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:a("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:a("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords: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 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:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-trino",{name:"sql",keywords:a("abs absent acos add admin after all all_match alter analyze and any any_match approx_distinct approx_most_frequent approx_percentile approx_set arbitrary array_agg array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_sort array_union arrays_overlap as asc asin at at_timezone atan atan2 authorization avg bar bernoulli beta_cdf between bing_tile bing_tile_at bing_tile_coordinates bing_tile_polygon bing_tile_quadkey bing_tile_zoom_level bing_tiles_around bit_count bitwise_and bitwise_and_agg bitwise_left_shift bitwise_not bitwise_or bitwise_or_agg bitwise_right_shift bitwise_right_shift_arithmetic bitwise_xor bool_and bool_or both by call cardinality cascade case cast catalogs cbrt ceil ceiling char2hexint checksum chr classify coalesce codepoint column columns combinations comment commit committed concat concat_ws conditional constraint contains contains_sequence convex_hull_agg copartition corr cos cosh cosine_similarity count count_if covar_pop covar_samp crc32 create cross cube cume_dist current current_catalog current_date current_groups current_path current_role current_schema current_time current_timestamp current_timezone current_user data date_add date_diff date_format date_parse date_trunc day day_of_month day_of_week day_of_year deallocate default define definer degrees delete dense_rank deny desc describe descriptor distinct distributed dow doy drop e element_at else empty empty_approx_set encoding end error escape evaluate_classifier_predictions every except excluding execute exists exp explain extract false features fetch filter final first first_value flatten floor following for format format_datetime format_number from from_base from_base32 from_base64 from_base64url from_big_endian_32 from_big_endian_64 from_encoded_polyline from_geojson_geometry from_hex from_ieee754_32 from_ieee754_64 from_iso8601_date from_iso8601_timestamp from_iso8601_timestamp_nanos from_unixtime from_unixtime_nanos from_utf8 full functions geometric_mean geometry_from_hadoop_shape geometry_invalid_reason geometry_nearest_points geometry_to_bing_tiles geometry_union geometry_union_agg grant granted grants graphviz great_circle_distance greatest group grouping groups hamming_distance hash_counts having histogram hmac_md5 hmac_sha1 hmac_sha256 hmac_sha512 hour human_readable_seconds if ignore in including index infinity initial inner input insert intersect intersection_cardinality into inverse_beta_cdf inverse_normal_cdf invoker io is is_finite is_infinite is_json_scalar is_nan isolation jaccard_index join json_array json_array_contains json_array_get json_array_length json_exists json_extract json_extract_scalar json_format json_object json_parse json_query json_size json_value keep key keys kurtosis lag last last_day_of_month last_value lateral lead leading learn_classifier learn_libsvm_classifier learn_libsvm_regressor learn_regressor least left length level levenshtein_distance like limit line_interpolate_point line_interpolate_points line_locate_point listagg ln local localtime localtimestamp log log10 log2 logical lower lpad ltrim luhn_check make_set_digest map_agg map_concat map_entries map_filter map_from_entries map_keys map_union map_values map_zip_with match match_recognize matched matches materialized max max_by md5 measures merge merge_set_digest millisecond min min_by minute mod month multimap_agg multimap_from_entries murmur3 nan natural next nfc nfd nfkc nfkd ngrams no none none_match normal_cdf normalize not now nth_value ntile null nullif nulls numeric_histogram object objectid_timestamp of offset omit on one only option or order ordinality outer output over overflow parse_data_size parse_datetime parse_duration partition partitions passing past path pattern per percent_rank permute pi position pow power preceding prepare privileges properties prune qdigest_agg quarter quotes radians rand random range rank read recursive reduce reduce_agg refresh regexp_count regexp_extract regexp_extract_all regexp_like regexp_position regexp_replace regexp_split regr_intercept regr_slope regress rename render repeat repeatable replace reset respect restrict returning reverse revoke rgb right role roles rollback rollup round row_number rows rpad rtrim running scalar schema schemas second security seek select sequence serializable session set sets sha1 sha256 sha512 show shuffle sign simplify_geometry sin skewness skip slice some soundex spatial_partitioning spatial_partitions split split_part split_to_map split_to_multimap spooky_hash_v2_32 spooky_hash_v2_64 sqrt st_area st_asbinary st_astext st_boundary st_buffer st_centroid st_contains st_convexhull st_coorddim st_crosses st_difference st_dimension st_disjoint st_distance st_endpoint st_envelope st_envelopeaspts st_equals st_exteriorring st_geometries st_geometryfromtext st_geometryn st_geometrytype st_geomfrombinary st_interiorringn st_interiorrings st_intersection st_intersects st_isclosed st_isempty st_isring st_issimple st_isvalid st_length st_linefromtext st_linestring st_multipoint st_numgeometries st_numinteriorring st_numpoints st_overlaps st_point st_pointn st_points st_polygon st_relate st_startpoint st_symdifference st_touches st_union st_within st_x st_xmax st_xmin st_y st_ymax st_ymin start starts_with stats stddev stddev_pop stddev_samp string strpos subset substr substring sum system table tables tablesample tan tanh tdigest_agg text then ties timestamp_objectid timezone_hour timezone_minute to to_base to_base32 to_base64 to_base64url to_big_endian_32 to_big_endian_64 to_char to_date to_encoded_polyline to_geojson_geometry to_geometry to_hex to_ieee754_32 to_ieee754_64 to_iso8601 to_milliseconds to_spherical_geography to_timestamp to_unixtime to_utf8 trailing transaction transform transform_keys transform_values translate trim trim_array true truncate try try_cast type typeof uescape unbounded uncommitted unconditional union unique unknown unmatched unnest update upper url_decode url_encode url_extract_fragment url_extract_host url_extract_parameter url_extract_path url_extract_port url_extract_protocol url_extract_query use user using utf16 utf32 utf8 validate value value_at_quantile values values_at_quantiles var_pop var_samp variance verbose version view week week_of_year when where width_bucket wilson_interval_lower wilson_interval_upper window with with_timezone within without word_stem work wrapper write xxhash64 year year_of_week yow zip zip_with"),builtin:a("array bigint bingtile boolean char codepoints color date decimal double function geometry hyperloglog int integer interval ipaddress joniregexp json json2016 jsonpath kdbtree likepattern map model objectid p4hyperloglog precision qdigest re2jregexp real regressor row setdigest smallint sphericalgeography tdigest time timestamp tinyint uuid varbinary varchar zone"),atoms:a("false true null unknown"),operatorChars:/^[[\]|<>=!\-+*/%]/,dateSQL:a("date time timestamp zone"),support:a("decimallessFloat zerolessFloat hexNumber")})}(n(4631))},20640:function(e,t,n){"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},70717:function(e,t,n){n(82526),n(41817),n(72443),n(92401),n(8722),n(32165),n(69007),n(16066),n(83510),n(41840),n(6982),n(32159),n(96649),n(39341),n(60543),n(9170),n(92222),n(50545),n(26541),n(43290),n(57327),n(69826),n(34553),n(84944),n(86535),n(89554),n(91038),n(26699),n(82772),n(79753),n(66992),n(69600),n(94986),n(21249),n(26572),n(85827),n(96644),n(65069),n(47042),n(5212),n(2707),n(38706),n(40561),n(33792),n(99244),n(18264),n(76938),n(39575),n(16716),n(43016),n(3843),n(81801),n(9550),n(28733),n(5735),n(96078),n(83710),n(62130),n(24812),n(4855),n(68309),n(35837),n(38862),n(73706),n(51532),n(99752),n(82376),n(73181),n(23484),n(2388),n(88621),n(60403),n(84755),n(25438),n(90332),n(40658),n(40197),n(44914),n(52420),n(60160),n(60970),n(10408),n(73689),n(9653),n(93299),n(35192),n(33161),n(44048),n(78285),n(44363),n(55994),n(61874),n(9494),n(56977),n(55147),n(19601),n(78011),n(59595),n(33321),n(69070),n(35500),n(69720),n(43371),n(38559),n(38880),n(49337),n(36210),n(30489),n(43304),n(41825),n(98410),n(72200),n(47941),n(94869),n(33952),n(57227),n(60514),n(68304),n(41539),n(26833),n(54678),n(91058),n(88674),n(17922),n(34668),n(17727),n(36535),n(12419),n(69596),n(52586),n(74819),n(95683),n(39361),n(51037),n(5898),n(67556),n(14361),n(83593),n(39532),n(81299),n(24603),n(28450),n(74916),n(92087),n(88386),n(77601),n(39714),n(70189),n(79841),n(27852),n(94953),n(32023),n(78783),n(4723),n(76373),n(66528),n(83112),n(38992),n(82481),n(15306),n(68757),n(64765),n(23123),n(23157),n(83650),n(73210),n(48702),n(55674),n(15218),n(74475),n(57929),n(50915),n(29253),n(42125),n(78830),n(58734),n(29254),n(37268),n(7397),n(60086),n(80623),n(44197),n(76495),n(87145),n(35109),n(65125),n(82472),n(49743),n(8255),n(29135),n(92990),n(18927),n(33105),n(35035),n(74345),n(7174),n(32846),n(98145),n(44731),n(77209),n(96319),n(58867),n(37789),n(33739),n(95206),n(29368),n(14483),n(12056),n(3462),n(30678),n(27462),n(33824),n(55021),n(12974),n(15016),n(78221),n(4129),n(38478),n(8628),n(69810),n(84811),n(34286),n(3048),n(77461),n(1999),n(8e4),n(83475),n(46273),n(3087),n(66342),n(40787),n(23647),n(68216),n(88449),n(31672),n(74326),n(15581),n(78631),n(57640),n(25387),n(64211),n(12771),n(62962),n(71790),n(51568),n(26349),n(65743),n(2490),n(85567),n(5332),n(79433),n(59849),n(59461),n(82499),n(34514),n(26877),n(9924),n(72608),n(41874),n(66043),n(23748),n(10072),n(23042),n(99137),n(71957),n(96306),n(103),n(8582),n(90618),n(74592),n(88440),n(58276),n(35082),n(12813),n(18222),n(24838),n(38563),n(50336),n(7512),n(74442),n(87713),n(46603),n(70100),n(10490),n(13187),n(60092),n(19041),n(30666),n(51638),n(62975),n(15728),n(46056),n(44299),n(5162),n(50292),n(29427),n(96936),n(99964),n(75238),n(4987),n(1025),n(97314),n(96290),n(77479),n(34582),n(47896),n(12647),n(98558),n(84018),n(97507),n(61605),n(49076),n(34999),n(88921),n(96248),n(13599),n(11477),n(64362),n(15389),n(46006),n(90401),n(45164),n(91238),n(54837),n(87485),n(56767),n(69916),n(76651),n(61437),n(35285),n(39865),n(86035),n(67501),n(13728),n(27207),n(609),n(21568),n(54534),n(95090),n(48824),n(44130),n(35954),n(38012),n(26182),n(8922),n(37380),n(1118),n(5835),n(84444),n(78206),n(76478),n(79715),n(12714),n(5964),n(43561),n(32049),n(86020),n(56585),n(54747),n(33948),n(84633),n(85844),n(32564),n(60285),n(83753),n(41637),n(40857)},81486:function(e,t,n){n(70717)},13099:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},96077:function(e,t,n){var r=n(70111);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},51223:function(e,t,n){var r=n(5112),i=n(70030),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},31530:function(e,t,n){"use strict";var r=n(28710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},25787:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},19670:function(e,t,n){var r=n(70111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},24019:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},90260:function(e,t,n){"use strict";var r,i,o,a=n(24019),s=n(19781),l=n(17854),c=n(70111),u=n(86656),d=n(70648),h=n(68880),f=n(31320),p=n(3070).f,g=n(79518),m=n(27674),v=n(5112),y=n(69711),b=l.Int8Array,w=b&&b.prototype,_=l.Uint8ClampedArray,x=_&&_.prototype,E=b&&g(b),C=w&&g(w),k=Object.prototype,S=k.isPrototypeOf,T=v("toStringTag"),M=y("TYPED_ARRAY_TAG"),O=y("TYPED_ARRAY_CONSTRUCTOR"),L=a&&!!m&&"Opera"!==d(l.opera),A=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},P=function(e){if(!c(e))return!1;var t=d(e);return u(D,t)||u(N,t)};for(r in D)(o=(i=l[r])&&i.prototype)?h(o,O,i):L=!1;for(r in N)(o=(i=l[r])&&i.prototype)&&h(o,O,i);if((!L||"function"!=typeof E||E===Function.prototype)&&(E=function(){throw TypeError("Incorrect invocation")},L))for(r in D)l[r]&&m(l[r],E);if((!L||!C||C===k)&&(C=E.prototype,L))for(r in D)l[r]&&m(l[r].prototype,C);if(L&&g(x)!==C&&m(x,C),s&&!u(C,T))for(r in A=!0,p(C,T,{get:function(){return c(this)?this[M]:void 0}}),D)l[r]&&h(l[r],M,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_CONSTRUCTOR:O,TYPED_ARRAY_TAG:A&&M,aTypedArray:function(e){if(P(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(m&&!S.call(E,e))throw TypeError("Target is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,n){if(s){if(n)for(var r in D){var i=l[r];if(i&&u(i.prototype,e))try{delete i.prototype[e]}catch(e){}}C[e]&&!n||f(C,e,n?t:L&&w[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(m){if(n)for(r in D)if((i=l[r])&&u(i,e))try{delete i[e]}catch(e){}if(E[e]&&!n)return;try{return f(E,e,n?t:L&&E[e]||t)}catch(e){}}for(r in D)!(i=l[r])||i[e]&&!n||f(i,e,t)}},isView:function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||u(D,t)||u(N,t)},isTypedArray:P,TypedArray:E,TypedArrayPrototype:C}},13331:function(e,t,n){"use strict";var r=n(17854),i=n(19781),o=n(24019),a=n(68880),s=n(12248),l=n(47293),c=n(25787),u=n(99958),d=n(17466),h=n(57067),f=n(11179),p=n(79518),g=n(27674),m=n(8006).f,v=n(3070).f,y=n(21285),b=n(58003),w=n(29909),_=w.get,x=w.set,E="ArrayBuffer",C="DataView",k="prototype",S="Wrong index",T=r[E],M=T,O=r[C],L=O&&O[k],A=Object.prototype,D=r.RangeError,N=f.pack,P=f.unpack,I=function(e){return[255&e]},j=function(e){return[255&e,e>>8&255]},R=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},F=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},z=function(e){return N(e,23,4)},Y=function(e){return N(e,52,8)},B=function(e,t){v(e[k],t,{get:function(){return _(this)[t]}})},H=function(e,t,n,r){var i=h(n),o=_(e);if(i+t>o.byteLength)throw D(S);var a=_(o.buffer).bytes,s=i+o.byteOffset,l=a.slice(s,s+t);return r?l:l.reverse()},q=function(e,t,n,r,i,o){var a=h(n),s=_(e);if(a+t>s.byteLength)throw D(S);for(var l=_(s.buffer).bytes,c=a+s.byteOffset,u=r(+i),d=0;d<t;d++)l[c+d]=u[o?d:t-d-1]};if(o){if(!l((function(){T(1)}))||!l((function(){new T(-1)}))||l((function(){return new T,new T(1.5),new T(NaN),T.name!=E}))){for(var U,V=(M=function(e){return c(this,M),new T(h(e))})[k]=T[k],W=m(T),G=0;W.length>G;)(U=W[G++])in M||a(M,U,T[U]);V.constructor=M}g&&p(L)!==A&&g(L,A);var $=new O(new M(2)),K=L.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||s(L,{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},{unsafe:!0})}else M=function(e){c(this,M,E);var t=h(e);x(this,{bytes:y.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},O=function(e,t,n){c(this,O,C),c(e,M,C);var r=_(e).byteLength,o=u(t);if(o<0||o>r)throw D("Wrong offset");if(o+(n=void 0===n?r-o:d(n))>r)throw D("Wrong length");x(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},i&&(B(M,"byteLength"),B(O,"buffer"),B(O,"byteLength"),B(O,"byteOffset")),s(O[k],{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return F(H(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return F(H(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return P(H(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return P(H(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){q(this,1,e,I,t)},setUint8:function(e,t){q(this,1,e,I,t)},setInt16:function(e,t){q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){q(this,2,e,j,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){q(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){q(this,4,e,R,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){q(this,4,e,z,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){q(this,8,e,Y,t,arguments.length>2?arguments[2]:void 0)}});b(M,E),b(O,C),e.exports={ArrayBuffer:M,DataView:O}},1048:function(e,t,n){"use strict";var r=n(47908),i=n(51400),o=n(17466),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n.length),l=i(e,s),c=i(t,s),u=arguments.length>2?arguments[2]:void 0,d=a((void 0===u?s:i(u,s))-c,s-l),h=1;for(c<l&&l<c+d&&(h=-1,c+=d-1,l+=d-1);d-- >0;)c in n?n[l]=n[c]:delete n[l],l+=h,c+=h;return n}},21285:function(e,t,n){"use strict";var r=n(47908),i=n(51400),o=n(17466);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)t[s++]=e;return t}},18533:function(e,t,n){"use strict";var r=n(42092).forEach,i=n(9341)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},97745:function(e){e.exports=function(e,t){for(var n=0,r=t.length,i=new e(r);r>n;)i[n]=t[n++];return i}},48457:function(e,t,n){"use strict";var r=n(49974),i=n(47908),o=n(53411),a=n(97659),s=n(17466),l=n(86135),c=n(71246);e.exports=function(e){var t,n,u,d,h,f,p=i(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,y=void 0!==v,b=c(p),w=0;if(y&&(v=r(v,m>2?arguments[2]:void 0,2)),null==b||g==Array&&a(b))for(n=new g(t=s(p.length));t>w;w++)f=y?v(p[w],w):p[w],l(n,w,f);else for(h=(d=b.call(p)).next,n=new g;!(u=h.call(d)).done;w++)f=y?o(d,v,[u.value,w],!0):u.value,l(n,w,f);return n.length=w,n}},61386:function(e,t,n){var r=n(49974),i=n(68361),o=n(47908),a=n(17466),s=n(34948),l=n(70030),c=n(97745),u=[].push;e.exports=function(e,t,n,d){for(var h,f,p,g=o(e),m=i(g),v=r(t,n,3),y=l(null),b=a(m.length),w=0;b>w;w++)p=m[w],(f=s(v(p,w,g)))in y?u.call(y[f],p):y[f]=[p];if(d&&(h=d(g))!==Array)for(f in y)y[f]=c(h,y[f]);return y}},41318:function(e,t,n){var r=n(45656),i=n(17466),o=n(51400),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9671:function(e,t,n){var r=n(49974),i=n(68361),o=n(47908),a=n(17466),s=function(e){var t=1==e;return function(n,s,l){for(var c,u=o(n),d=i(u),h=r(s,l,3),f=a(d.length);f-- >0;)if(h(c=d[f],f,u))switch(e){case 0:return c;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},42092:function(e,t,n){var r=n(49974),i=n(68361),o=n(47908),a=n(17466),s=n(65417),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,g,m,v){for(var y,b,w=o(p),_=i(w),x=r(g,m,3),E=a(_.length),C=0,k=v||s,S=t?k(p,E):n||h?k(p,0):void 0;E>C;C++)if((f||C in _)&&(b=x(y=_[C],C,w),e))if(t)S[C]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return C;case 2:l.call(S,y)}else switch(e){case 4:return!1;case 7:l.call(S,y)}return d?-1:c||u?u:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},86583:function(e,t,n){"use strict";var r=n(45656),i=n(99958),o=n(17466),a=n(9341),s=Math.min,l=[].lastIndexOf,c=!!l&&1/[1].lastIndexOf(1,-0)<0,u=a("lastIndexOf"),d=c||!u;e.exports=d?function(e){if(c)return l.apply(this,arguments)||0;var t=r(this),n=o(t.length),a=n-1;for(arguments.length>1&&(a=s(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:l},81194:function(e,t,n){var r=n(47293),i=n(5112),o=n(7392),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},9341:function(e,t,n){"use strict";var r=n(47293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},53671:function(e,t,n){var r=n(13099),i=n(47908),o=n(68361),a=n(17466),s=function(e){return function(t,n,s,l){r(n);var c=i(t),u=o(c),d=a(c.length),h=e?d-1:0,f=e?-1:1;if(s<2)for(;;){if(h in u){l=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(l=n(l,u[h],h,c));return l}};e.exports={left:s(!1),right:s(!0)}},94362:function(e){var t=Math.floor,n=function(e,o){var a=e.length,s=t(a/2);return a<8?r(e,o):i(n(e.slice(0,s),o),n(e.slice(s),o),o)},r=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},i=function(e,t,n){for(var r=e.length,i=t.length,o=0,a=0,s=[];o<r||a<i;)o<r&&a<i?s.push(n(e[o],t[a])<=0?e[o++]:t[a++]):s.push(o<r?e[o++]:t[a++]);return s};e.exports=n},77475:function(e,t,n){var r=n(70111),i=n(43157),o=n(5112)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)?r(t)&&null===(t=t[o])&&(t=void 0):t=void 0),void 0===t?Array:t}},65417:function(e,t,n){var r=n(77475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},60956:function(e,t,n){"use strict";var r=n(17466),i=n(47908),o=n(35005),a=n(65417),s=[].push;e.exports=function(e){var t,n,l,c,u=i(this),d=r(u.length),h=a(u,0),f=new(o("Map"));if("function"==typeof e)t=e;else{if(null!=e)throw new TypeError("Incorrect resolver!");t=function(e){return e}}for(n=0;n<d;n++)c=t(l=u[n]),f.has(c)||f.set(c,l);return f.forEach((function(e){s.call(h,e)})),h}},45348:function(e,t,n){"use strict";var r=n(40857),i=n(13099),o=n(19670),a=n(70030),s=n(68880),l=n(12248),c=n(5112),u=n(29909),d=n(35005)("Promise"),h=u.set,f=u.get,p=c("toStringTag"),g=function(e){var t=f(this).iterator,n=t.return;return void 0===n?d.resolve({done:!0,value:e}):o(n.call(t,e))},m=function(e){var t=f(this).iterator,n=t.throw;return void 0===n?d.reject(e):n.call(t,e)};e.exports=function(e,t){var n=function(e){e.next=i(e.iterator.next),e.done=!1,h(this,e)};return n.prototype=l(a(r.AsyncIterator.prototype),{next:function(t){var n=f(this);if(n.done)return d.resolve({done:!0,value:void 0});try{return d.resolve(o(e.call(n,t,d)))}catch(e){return d.reject(e)}},return:g,throw:m}),t||s(n.prototype,p,"Generator"),n}},12269:function(e,t,n){"use strict";var r=n(13099),i=n(19670),o=n(35005)("Promise"),a=[].push,s=function(e){var t=0==e,n=1==e,s=2==e,l=3==e;return function(e,c){i(e);var u=r(e.next),d=t?[]:void 0;return t||r(c),new o((function(r,h){var f=function(t,n){try{var r=e.return;if(void 0!==r)return o.resolve(r.call(e)).then((function(){t(n)}),(function(e){h(e)}))}catch(e){return h(e)}t(n)},p=function(e){f(h,e)},g=function(){try{o.resolve(i(u.call(e))).then((function(e){try{if(i(e).done)r(t?d:!l&&(s||void 0));else{var u=e.value;t?(a.call(d,u),g()):o.resolve(c(u)).then((function(e){n?g():s?e?g():f(r,!1):e?f(r,l||u):g()}),p)}}catch(e){p(e)}}),p)}catch(e){p(e)}};g()}))}};e.exports={toArray:s(0),forEach:s(1),every:s(2),some:s(3),find:s(4)}},66462:function(e,t,n){var r,i,o=n(17854),a=n(5465),s=n(79518),l=n(86656),c=n(68880),u=n(5112),d=n(31913),h="USE_FUNCTION_CONSTRUCTOR",f=u("asyncIterator"),p=o.AsyncIterator,g=a.AsyncIteratorPrototype;if(!d)if(g)r=g;else if("function"==typeof p)r=p.prototype;else if(a[h]||o[h])try{i=s(s(s(Function("return async function*(){}()")()))),s(i)===Object.prototype&&(r=i)}catch(e){}r||(r={}),l(r,f)||c(r,f,(function(){return this})),e.exports=r},53411:function(e,t,n){var r=n(19670),i=n(99212);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){throw i(e),t}}},17072:function(e,t,n){var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},84326:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},70648:function(e,t,n){var r=n(51694),i=n(84326),o=n(5112)("toStringTag"),a="Arguments"==i(function(){return arguments}());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){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},31501:function(e,t,n){"use strict";var r=n(19670),i=n(13099);e.exports=function(){for(var e=r(this),t=i(e.add),n=0,o=arguments.length;n<o;n++)t.call(e,arguments[n]);return e}},34092:function(e,t,n){"use strict";var r=n(19670),i=n(13099);e.exports=function(){for(var e,t=r(this),n=i(t.delete),o=!0,a=0,s=arguments.length;a<s;a++)e=n.call(t,arguments[a]),o=o&&e;return!!o}},27296:function(e,t,n){"use strict";var r=n(13099),i=n(49974),o=n(20408);e.exports=function(e){var t,n,a,s,l=arguments.length,c=l>1?arguments[1]:void 0;return r(this),(t=void 0!==c)&&r(c),null==e?new this:(n=[],t?(a=0,s=i(c,l>2?arguments[2]:void 0,2),o(e,(function(e){n.push(s(e,a++))}))):o(e,n.push,{that:n}),new this(n))}},82044:function(e){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}},95631:function(e,t,n){"use strict";var r=n(3070).f,i=n(70030),o=n(12248),a=n(49974),s=n(25787),l=n(20408),c=n(70654),u=n(96340),d=n(19781),h=n(62423).fastKey,f=n(29909),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,r){s(e,u,t),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&l(r,e[c],{that:e,AS_ENTRIES:n})})),f=g(t),m=function(e,t,n){var r,i,o=f(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=h(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=f(e),i=h(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,n=f(t),r=v(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=f(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);c(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},29320:function(e,t,n){"use strict";var r=n(12248),i=n(62423).getWeakData,o=n(19670),a=n(70111),s=n(25787),l=n(20408),c=n(42092),u=n(86656),d=n(29909),h=d.set,f=d.getterFor,p=c.find,g=c.findIndex,m=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var d=e((function(e,r){s(e,d,t),h(e,{type:t,id:m++,frozen:void 0}),null!=r&&l(r,e[c],{that:e,AS_ENTRIES:n})})),p=f(t),g=function(e,t,n){var r=p(e),a=i(o(t),!0);return!0===a?v(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?v(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=i(e);return!0===n?v(t).has(e):n&&u(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=i(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},77710:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(54705),a=n(31320),s=n(62423),l=n(20408),c=n(25787),u=n(70111),d=n(47293),h=n(17072),f=n(58003),p=n(79587);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",y=i[e],b=y&&y.prototype,w=y,_={},x=function(e){var t=b[e];a(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof y||!(m||b.forEach&&!d((function(){(new y).entries().next()})))))w=n.getConstructor(t,e,g,v),s.enable();else if(o(e,!0)){var E=new w,C=E[v](m?{}:-0,1)!=E,k=d((function(){E.has(1)})),S=h((function(e){new y(e)})),T=!m&&d((function(){for(var e=new y,t=5;t--;)e[v](t,t);return!e.has(-0)}));S||((w=t((function(t,n){c(t,w,e);var r=p(new y,t,w);return null!=n&&l(n,r[v],{that:r,AS_ENTRIES:g}),r}))).prototype=b,b.constructor=w),(k||T)&&(x("delete"),x("has"),g&&x("get")),(T||C)&&x(v),m&&b.clear&&delete b.clear}return _[e]=w,r({global:!0,forced:w!=y},_),f(w,e),m||n.setStrong(w,e,g),w}},10313:function(e,t,n){var r=n(51532),i=n(4129),o=n(70030),a=n(70111),s=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=o(null)};s.prototype.get=function(e,t){return this[e]||(this[e]=t())},s.prototype.next=function(e,t,n){var o=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new i):this.primitives||(this.primitives=new r),a=o.get(t);return a||o.set(t,a=new s),a};var l=new s;e.exports=function(){var e,t,n=l,r=arguments.length;for(e=0;e<r;e++)a(t=arguments[e])&&(n=n.next(e,t,!0));if(this===Object&&n===l)throw TypeError("Composite keys must contain a non-primitive component");for(e=0;e<r;e++)a(t=arguments[e])||(n=n.next(e,t,!1));return n}},99920:function(e,t,n){var r=n(86656),i=n(53887),o=n(31236),a=n(3070);e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},84964:function(e,t,n){var r=n(5112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},49920:function(e,t,n){var r=n(47293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},14230:function(e,t,n){var r=n(84488),i=n(41340),o=/"/g;e.exports=function(e,t,n,a){var s=i(r(e)),l="<"+t;return""!==n&&(l+=" "+n+'="'+i(a).replace(o,""")+'"'),l+">"+s+"</"+t+">"}},24994:function(e,t,n){"use strict";var r=n(13383).IteratorPrototype,i=n(70030),o=n(79114),a=n(58003),s=n(97497),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},68880:function(e,t,n){var r=n(19781),i=n(3070),o=n(79114);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},79114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},86135:function(e,t,n){"use strict";var r=n(34948),i=n(3070),o=n(79114);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},85573:function(e,t,n){"use strict";var r=n(47293),i=n(76650).start,o=Math.abs,a=Date.prototype,s=a.getTime,l=a.toISOString;e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!r((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+i(o(t),r?6:4,0)+"-"+i(e.getUTCMonth()+1,2,0)+"-"+i(e.getUTCDate(),2,0)+"T"+i(e.getUTCHours(),2,0)+":"+i(e.getUTCMinutes(),2,0)+":"+i(e.getUTCSeconds(),2,0)+"."+i(n,3,0)+"Z"}:l},38709:function(e,t,n){"use strict";var r=n(19670),i=n(92140);e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw TypeError("Incorrect hint");return i(this,e)}},70654:function(e,t,n){"use strict";var r=n(82109),i=n(24994),o=n(79518),a=n(27674),s=n(58003),l=n(68880),c=n(31320),u=n(5112),d=n(31913),h=n(97497),f=n(13383),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",y="values",b="entries",w=function(){return this};e.exports=function(e,t,n,u,f,_,x){i(n,t,u);var E,C,k,S=function(e){if(e===f&&A)return A;if(!g&&e in O)return O[e];switch(e){case v:case y:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",M=!1,O=e.prototype,L=O[m]||O["@@iterator"]||f&&O[f],A=!g&&L||S(f),D="Array"==t&&O.entries||L;if(D&&(E=o(D.call(new e)),p!==Object.prototype&&E.next&&(d||o(E)===p||(a?a(E,p):"function"!=typeof E[m]&&l(E,m,w)),s(E,T,!0,!0),d&&(h[T]=w))),f==y&&L&&L.name!==y&&(M=!0,A=function(){return L.call(this)}),d&&!x||O[m]===A||l(O,m,A),h[t]=A,f)if(C={values:S(y),keys:_?A:S(v),entries:S(b)},x)for(k in C)(g||M||!(k in O))&&c(O,k,C[k]);else r({target:t,proto:!0,forced:g||M},C);return C}},97235:function(e,t,n){var r=n(40857),i=n(86656),o=n(6061),a=n(3070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},19781:function(e,t,n){var r=n(47293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},80317:function(e,t,n){var r=n(17854),i=n(70111),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},48324: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}},68886:function(e,t,n){var r=n(88113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},7871:function(e){e.exports="object"==typeof window},30256:function(e,t,n){var r=n(88113);e.exports=/MSIE|Trident/.test(r)},71528:function(e,t,n){var r=n(88113),i=n(17854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},6833:function(e,t,n){var r=n(88113);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},35268:function(e,t,n){var r=n(84326),i=n(17854);e.exports="process"==r(i.process)},71036:function(e,t,n){var r=n(88113);e.exports=/web0s(?!.*chrome)/i.test(r)},88113:function(e,t,n){var r=n(35005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,i,o=n(17854),a=n(88113),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u?i=(r=u.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},98008:function(e,t,n){var r=n(88113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},80748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82109:function(e,t,n){var r=n(17854),i=n(31236).f,o=n(68880),a=n(31320),s=n(83505),l=n(99920),c=n(54705);e.exports=function(e,t){var n,u,d,h,f,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(h=t[u],d=e.noTargetGet?(f=i(n,u))&&f.value:n[u],!c(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),a(n,u,h,e)}}},47293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},27007:function(e,t,n){"use strict";n(74916);var r=n(31320),i=n(22261),o=n(47293),a=n(5112),s=n(68880),l=a("species"),c=RegExp.prototype;e.exports=function(e,t,n,u){var d=a(e),h=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),f=h&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[l]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!h||!f||n){var p=/./[d],g=t(d,""[e],(function(e,t,n,r,o){var a=t.exec;return a===i||a===c.exec?h&&!o?{done:!0,value:p.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));r(String.prototype,e,g[0]),r(c,d,g[1])}u&&s(c[d],"sham",!0)}},6790:function(e,t,n){"use strict";var r=n(43157),i=n(17466),o=n(49974),a=function(e,t,n,s,l,c,u,d){for(var h,f=l,p=0,g=!!u&&o(u,d,3);p<s;){if(p in n){if(h=g?g(n[p],p,t):n[p],c>0&&r(h))f=a(e,t,h,i(h.length),f,c-1)-1;else{if(f>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[f]=h}f++}p++}return f};e.exports=a},76677:function(e,t,n){var r=n(47293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},49974:function(e,t,n){var r=n(13099);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)}}},27065:function(e,t,n){"use strict";var r=n(13099),i=n(70111),o=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(s.prototype=t.prototype),s}},28523:function(e,t,n){var r=n(71246),i=n(5112)("asyncIterator");e.exports=function(e){var t=e[i];return void 0===t?r(e):t}},35005:function(e,t,n){var r=n(17854);e.exports=function(e,t){return arguments.length<2?"function"==typeof(n=r[e])?n:void 0:r[e]&&r[e][t];var n}},71246:function(e,t,n){var r=n(70648),i=n(97497),o=n(5112)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},18554:function(e,t,n){var r=n(19670),i=n(71246);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},54647:function(e){e.exports=function(e){return Map.prototype.entries.call(e)}},96767:function(e){e.exports=function(e){return Set.prototype.values.call(e)}},10647:function(e,t,n){var r=n(47908),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,l,c,u){var d=n+e.length,h=l.length,f=s;return void 0!==c&&(c=r(c),f=a),o.call(u,f,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(d);case"<":a=c[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>h){var u=i(s/10);return 0===u?r:u<=h?void 0===l[u-1]?o.charAt(1):l[u-1]+o.charAt(1):r}a=l[s-1]}return void 0===a?"":a}))}},17854: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)||function(){return this}()||Function("return this")()},86656:function(e,t,n){var r=n(47908),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},3501:function(e){e.exports={}},842:function(e,t,n){var r=n(17854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},60490:function(e,t,n){var r=n(35005);e.exports=r("document","documentElement")},64664:function(e,t,n){var r=n(19781),i=n(47293),o=n(80317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},11179:function(e){var t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,o=Math.LN2;e.exports={pack:function(e,a,s){var l,c,u,d=new Array(s),h=8*s-a-1,f=(1<<h)-1,p=f>>1,g=23===a?n(2,-24)-n(2,-77):0,m=e<0||0===e&&1/e<0?1:0,v=0;for((e=t(e))!=e||e===1/0?(c=e!=e?1:0,l=f):(l=r(i(e)/o),e*(u=n(2,-l))<1&&(l--,u*=2),(e+=l+p>=1?g/u:g*n(2,1-p))*u>=2&&(l++,u/=2),l+p>=f?(c=0,l=f):l+p>=1?(c=(e*u-1)*n(2,a),l+=p):(c=e*n(2,p-1)*n(2,a),l=0));a>=8;d[v++]=255&c,c/=256,a-=8);for(l=l<<a|c,h+=a;h>0;d[v++]=255&l,l/=256,h-=8);return d[--v]|=128*m,d},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,a=(1<<o)-1,s=a>>1,l=o-7,c=i-1,u=e[c--],d=127&u;for(u>>=7;l>0;d=256*d+e[c],c--,l-=8);for(r=d&(1<<-l)-1,d>>=-l,l+=t;l>0;r=256*r+e[c],c--,l-=8);if(0===d)d=1-s;else{if(d===a)return r?NaN:u?-1/0:1/0;r+=n(2,t),d-=s}return(u?-1:1)*r*n(2,d-t)}}},68361:function(e,t,n){var r=n(47293),i=n(84326),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},79587:function(e,t,n){var r=n(70111),i=n(27674);e.exports=function(e,t,n){var o,a;return i&&"function"==typeof(o=t.constructor)&&o!==n&&r(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},42788:function(e,t,n){var r=n(5465),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},62423:function(e,t,n){var r=n(82109),i=n(3501),o=n(70111),a=n(86656),s=n(3070).f,l=n(8006),c=n(1156),u=n(69711),d=n(76677),h=!1,f=u("meta"),p=0,g=Object.isExtensible||function(){return!0},m=function(e){s(e,f,{value:{objectID:"O"+p++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=l.f,t=[].splice,n={};n[f]=1,e(n).length&&(l.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===f){t.call(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,f)){if(!g(e))return"F";if(!t)return"E";m(e)}return e[f].objectID},getWeakData:function(e,t){if(!a(e,f)){if(!g(e))return!0;if(!t)return!1;m(e)}return e[f].weakData},onFreeze:function(e){return d&&h&&g(e)&&!a(e,f)&&m(e),e}};i[f]=!0},29909:function(e,t,n){var r,i,o,a=n(68536),s=n(17854),l=n(70111),c=n(68880),u=n(86656),d=n(5465),h=n(6200),f=n(3501),p="Object already initialized",g=s.WeakMap;if(a||d.state){var m=d.state||(d.state=new g),v=m.get,y=m.has,b=m.set;r=function(e,t){if(y.call(m,e))throw new TypeError(p);return t.facade=e,b.call(m,e,t),t},i=function(e){return v.call(m,e)||{}},o=function(e){return y.call(m,e)}}else{var w=h("state");f[w]=!0,r=function(e,t){if(u(e,w))throw new TypeError(p);return t.facade=e,c(e,w,t),t},i=function(e){return u(e,w)?e[w]:{}},o=function(e){return u(e,w)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},97659:function(e,t,n){var r=n(5112),i=n(97497),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},43157:function(e,t,n){var r=n(84326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},54705:function(e,t,n){var r=n(47293),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},18730:function(e,t,n){var r=n(70111),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},70111:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},31913:function(e){e.exports=!1},47850:function(e,t,n){var r=n(70111),i=n(84326),o=n(5112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},52190:function(e,t,n){var r=n(35005),i=n(43307);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return"function"==typeof t&&Object(e)instanceof t}},20408:function(e,t,n){var r=n(19670),i=n(97659),o=n(17466),a=n(49974),s=n(71246),l=n(99212),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,h,f,p,g,m,v=n&&n.that,y=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),w=!(!n||!n.INTERRUPTED),_=a(t,v,1+y+w),x=function(e){return u&&l(u),new c(!0,e)},E=function(e){return y?(r(e),w?_(e[0],e[1],x):_(e[0],e[1])):w?_(e,x):_(e)};if(b)u=e;else{if("function"!=typeof(d=s(e)))throw TypeError("Target is not iterable");if(i(d)){for(h=0,f=o(e.length);f>h;h++)if((p=E(e[h]))&&p instanceof c)return p;return new c(!1)}u=d.call(e)}for(g=u.next;!(m=g.call(u)).done;){try{p=E(m.value)}catch(e){throw l(u),e}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},99212:function(e,t,n){var r=n(19670);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},54956:function(e,t,n){"use strict";var r=n(40857),i=n(13099),o=n(19670),a=n(70030),s=n(68880),l=n(12248),c=n(5112),u=n(29909),d=u.set,h=u.get,f=c("toStringTag"),p=function(e){var t=h(this).iterator,n=t.return;return void 0===n?{done:!0,value:e}:o(n.call(t,e))},g=function(e){var t=h(this).iterator,n=t.throw;if(void 0===n)throw e;return n.call(t,e)};e.exports=function(e,t){var n=function(e){e.next=i(e.iterator.next),e.done=!1,d(this,e)};return n.prototype=l(a(r.Iterator.prototype),{next:function(){var t=h(this),n=t.done?void 0:e.apply(t,arguments);return{done:t.done,value:n}},return:p,throw:g}),t||s(n.prototype,f,"Generator"),n}},13383:function(e,t,n){"use strict";var r,i,o,a=n(47293),s=n(79518),l=n(68880),c=n(86656),u=n(5112),d=n(31913),h=u("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):f=!0);var p=null==r||a((function(){var e={};return r[h].call(e)!==e}));p&&(r={}),d&&!p||c(r,h)||l(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},97497:function(e){e.exports={}},37502:function(e,t,n){"use strict";var r=n(19670);e.exports=function(e,t){var n=r(this),i=n.has(e)&&"update"in t?t.update(n.get(e),e,n):t.insert(e,n);return n.set(e,i),i}},8154:function(e,t,n){"use strict";var r=n(19670);e.exports=function(e,t){var n,i=r(this),o=arguments.length>2?arguments[2]:void 0;if("function"!=typeof t&&"function"!=typeof o)throw TypeError("At least one callback required");return i.has(e)?(n=i.get(e),"function"==typeof t&&(n=t(n),i.set(e,n))):"function"==typeof o&&(n=o(),i.set(e,n)),n}},66736:function(e){var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:t},26130:function(e,t,n){var r=n(64310),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),l=o(2,127)*(2-s),c=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=i(e),u=r(e);return o<c?u*function(e){return e+1/a-1/a}(o/c/s)*c*s:(n=(t=(1+s/a)*o)-(t-o))>l||n!=n?u*(1/0):u*n}},26513:function(e){var t=Math.log;e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:t(1+e)}},47103:function(e){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}},64310:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},95948:function(e,t,n){var r,i,o,a,s,l,c,u,d=n(17854),h=n(31236).f,f=n(20261).set,p=n(6833),g=n(71528),m=n(71036),v=n(35268),y=d.MutationObserver||d.WebKitMutationObserver,b=d.document,w=d.process,_=d.Promise,x=h(d,"queueMicrotask"),E=x&&x.value;E||(r=function(){var e,t;for(v&&(e=w.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},p||v||m||!y||!b?!g&&_&&_.resolve?((c=_.resolve(void 0)).constructor=_,u=c.then,a=function(){u.call(c,r)}):a=v?function(){w.nextTick(r)}:function(){f.call(d,r)}:(s=!0,l=b.createTextNode(""),new y(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=E||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},13366:function(e,t,n){var r=n(17854);e.exports=r.Promise},30133:function(e,t,n){var r=n(7392),i=n(47293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},590:function(e,t,n){var r=n(47293),i=n(5112),o=n(31913),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},68536:function(e,t,n){var r=n(17854),i=n(42788),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},78523:function(e,t,n){"use strict";var r=n(13099),i=function(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)}},3929:function(e,t,n){var r=n(47850);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},77023:function(e,t,n){var r=n(17854).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},2814:function(e,t,n){var r=n(17854),i=n(41340),o=n(53111).trim,a=n(81361),s=r.parseFloat,l=1/s(a+"-0")!=-1/0;e.exports=l?function(e){var t=o(i(e)),n=s(t);return 0===n&&"-"==t.charAt(0)?-0:n}:s},83009:function(e,t,n){var r=n(17854),i=n(41340),o=n(53111).trim,a=n(81361),s=r.parseInt,l=/^[+-]?0[Xx]/,c=8!==s(a+"08")||22!==s(a+"0x16");e.exports=c?function(e,t){var n=o(i(e));return s(n,t>>>0||(l.test(n)?16:10))}:s},80430:function(e,t,n){"use strict";var r=n(29909),i=n(24994),o=n(70111),a=n(36048),s=n(19781),l="Incorrect Number.range arguments",c="NumericRangeIterator",u=r.set,d=r.getterFor(c),h=i((function(e,t,n,r,i,a){if(typeof e!=r||t!==1/0&&t!==-1/0&&typeof t!=r)throw new TypeError(l);if(e===1/0||e===-1/0)throw new RangeError(l);var d,h=t>e,f=!1;if(void 0===n)d=void 0;else if(o(n))d=n.step,f=!!n.inclusive;else{if(typeof n!=r)throw new TypeError(l);d=n}if(null==d&&(d=h?a:-a),typeof d!=r)throw new TypeError(l);if(d===1/0||d===-1/0||d===i&&e!==t)throw new RangeError(l);u(this,{type:c,start:e,end:t,step:d,inclusiveEnd:f,hitsEnd:e!=e||t!=t||d!=d||t>e!=d>i,currentCount:i,zero:i}),s||(this.start=e,this.end=t,this.step=d,this.inclusive=f)}),c,(function(){var e=d(this);if(e.hitsEnd)return{value:void 0,done:!0};var t=e.start,n=e.end,r=t+e.step*e.currentCount++;r===n&&(e.hitsEnd=!0);var i=e.inclusiveEnd;return(n>t?i?r>n:r>=n:i?n>r:n>=r)?{value:void 0,done:e.hitsEnd=!0}:{value:r,done:!1}})),f=function(e){return{get:e,set:function(){},configurable:!0,enumerable:!1}};s&&a(h.prototype,{start:f((function(){return d(this).start})),end:f((function(){return d(this).end})),inclusive:f((function(){return d(this).inclusiveEnd})),step:f((function(){return d(this).step}))}),e.exports=h},21574:function(e,t,n){"use strict";var r=n(19781),i=n(47293),o=n(81956),a=n(25181),s=n(55296),l=n(47908),c=n(68361),u=Object.assign,d=Object.defineProperty;e.exports=!u||i((function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=i}))?function(e,t){for(var n=l(e),i=arguments.length,u=1,d=a.f,h=s.f;i>u;)for(var f,p=c(arguments[u++]),g=d?o(p).concat(d(p)):o(p),m=g.length,v=0;m>v;)f=g[v++],r&&!h.call(p,f)||(n[f]=p[f]);return n}:u},70030:function(e,t,n){var r,i=n(19670),o=n(36048),a=n(80748),s=n(3501),l=n(60490),c=n(80317),u=n(6200),d="prototype",h="script",f=u("IE_PROTO"),p=function(){},g=function(e){return"<"+h+">"+e+"</"+h+">"},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=c("iframe"),n="java"+h+":",t.style.display="none",l.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=a.length;i--;)delete v[d][a[i]];return v()};s[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[d]=i(e),n=new p,p[d]=null,n[f]=e):n=v(),void 0===t?n:o(n,t)}},36048:function(e,t,n){var r=n(19781),i=n(3070),o=n(19670),a=n(81956);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},3070:function(e,t,n){var r=n(19781),i=n(64664),o=n(19670),a=n(34948),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},31236:function(e,t,n){var r=n(19781),i=n(55296),o=n(79114),a=n(45656),s=n(34948),l=n(86656),c=n(64664),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},1156:function(e,t,n){var r=n(45656),i=n(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},8006:function(e,t,n){var r=n(16324),i=n(80748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},25181:function(e,t){t.f=Object.getOwnPropertySymbols},79518:function(e,t,n){var r=n(86656),i=n(47908),o=n(6200),a=n(49920),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?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?l:null}},60996:function(e,t,n){"use strict";var r=n(29909),i=n(24994),o=n(86656),a=n(81956),s=n(47908),l="Object Iterator",c=r.set,u=r.getterFor(l);e.exports=i((function(e,t){var n=s(e);c(this,{type:l,mode:t,object:n,keys:a(n),index:0})}),"Object",(function(){for(var e=u(this),t=e.keys;;){if(null===t||e.index>=t.length)return e.object=e.keys=null,{value:void 0,done:!0};var n=t[e.index++],r=e.object;if(o(r,n)){switch(e.mode){case"keys":return{value:n,done:!1};case"values":return{value:r[n],done:!1}}return{value:[n,r[n]],done:!1}}}}))},16324:function(e,t,n){var r=n(86656),i=n(45656),o=n(41318).indexOf,a=n(3501);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},81956:function(e,t,n){var r=n(16324),i=n(80748);e.exports=Object.keys||function(e){return r(e,i)}},55296:function(e,t){"use strict";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},69026:function(e,t,n){"use strict";var r=n(31913),i=n(17854),o=n(47293),a=n(98008);e.exports=r||!o((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},27674:function(e,t,n){var r=n(19670),i=n(96077);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){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},44699:function(e,t,n){var r=n(19781),i=n(81956),o=n(45656),a=n(55296).f,s=function(e){return function(t){for(var n,s=o(t),l=i(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},90288:function(e,t,n){"use strict";var r=n(51694),i=n(70648);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},92140:function(e,t,n){var r=n(70111);e.exports=function(e,t){var n,i;if("string"===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("string"!==t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},53887:function(e,t,n){var r=n(35005),i=n(8006),o=n(25181),a=n(19670);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},40857:function(e,t,n){var r=n(17854);e.exports=r},12534:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},69478:function(e,t,n){var r=n(19670),i=n(70111),o=n(78523);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},12248:function(e,t,n){var r=n(31320);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},31320:function(e,t,n){var r=n(17854),i=n(68880),o=n(86656),a=n(83505),s=n(42788),l=n(29909),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:i(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},38845:function(e,t,n){var r=n(51532),i=n(4129),o=n(72309)("metadata"),a=o.store||(o.store=new i),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.set(e,i=new r)}var o=i.get(t);if(!o){if(!n)return;i.set(t,o=new r)}return o};e.exports={store:a,getMap: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},toKey:function(e){return void 0===e||"symbol"==typeof e?e:String(e)}}},97651:function(e,t,n){var r=n(84326),i=n(22261);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},22261:function(e,t,n){"use strict";var r,i,o=n(41340),a=n(67066),s=n(52999),l=n(72309),c=n(70030),u=n(29909).get,d=n(9441),h=n(38173),f=RegExp.prototype.exec,p=l("native-string-replace",String.prototype.replace),g=f,m=(r=/a/,i=/b*/g,f.call(r,"a"),f.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),v=s.UNSUPPORTED_Y||s.BROKEN_CARET,y=void 0!==/()??/.exec("")[1];(m||y||v||d||h)&&(g=function(e){var t,n,r,i,s,l,d,h=this,b=u(h),w=o(e),_=b.raw;if(_)return _.lastIndex=h.lastIndex,t=g.call(_,w),h.lastIndex=_.lastIndex,t;var x=b.groups,E=v&&h.sticky,C=a.call(h),k=h.source,S=0,T=w;if(E&&(-1===(C=C.replace("y","")).indexOf("g")&&(C+="g"),T=w.slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==w.charAt(h.lastIndex-1))&&(k="(?: "+k+")",T=" "+T,S++),n=new RegExp("^(?:"+k+")",C)),y&&(n=new RegExp("^"+k+"$(?!\\s)",C)),m&&(r=h.lastIndex),i=f.call(E?n:h,T),E?i?(i.input=i.input.slice(S),i[0]=i[0].slice(S),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:m&&i&&(h.lastIndex=h.global?i.index+i[0].length:r),y&&i&&i.length>1&&p.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&x)for(i.groups=l=c(null),s=0;s<x.length;s++)l[(d=x[s])[0]]=i[d[1]];return i}),e.exports=g},67066:function(e,t,n){"use strict";var r=n(19670);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}},52999:function(e,t,n){var r=n(47293),i=n(17854).RegExp;t.UNSUPPORTED_Y=r((function(){var e=i("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=i("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},9441:function(e,t,n){var r=n(47293),i=n(17854).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},38173:function(e,t,n){var r=n(47293),i=n(17854).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},84488:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},46465:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},81150:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},83505:function(e,t,n){var r=n(17854);e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},96340:function(e,t,n){"use strict";var r=n(35005),i=n(3070),o=n(5112),a=n(19781),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},58003:function(e,t,n){var r=n(3070).f,i=n(86656),o=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},6200:function(e,t,n){var r=n(72309),i=n(69711),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},5465:function(e,t,n){var r=n(17854),i=n(83505),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},72309:function(e,t,n){var r=n(31913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.16.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},36707:function(e,t,n){var r=n(19670),i=n(13099),o=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},43429:function(e,t,n){var r=n(47293);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},28710:function(e,t,n){var r=n(99958),i=n(41340),o=n(84488),a=function(e){return function(t,n){var a,s,l=i(o(t)),c=r(n),u=l.length;return c<0||c>=u?e?"":void 0:(a=l.charCodeAt(c))<55296||a>56319||c+1===u||(s=l.charCodeAt(c+1))<56320||s>57343?e?l.charAt(c):a:e?l.slice(c,c+2):s-56320+(a-55296<<10)+65536}};e.exports={codeAt:a(!1),charAt:a(!0)}},54986:function(e,t,n){var r=n(88113);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},76650:function(e,t,n){var r=n(17466),i=n(41340),o=n(38415),a=n(84488),s=Math.ceil,l=function(e){return function(t,n,l){var c,u,d=i(a(t)),h=d.length,f=void 0===l?" ":i(l),p=r(n);return p<=h||""==f?d:(c=p-h,(u=o.call(f,s(c/f.length))).length>c&&(u=u.slice(0,c)),e?d+u:u+d)}};e.exports={start:l(!1),end:l(!0)}},33197:function(e){"use strict";var t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=Math.floor,a=String.fromCharCode,s=function(e){return e+22+75*(e<26)},l=function(e,t,n){var r=0;for(e=n?o(e/700):e>>1,e+=o(e/t);e>455;r+=36)e=o(e/35);return o(r+36*e/(e+38))},c=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);var r,c,u=e.length,d=128,h=0,f=72;for(r=0;r<e.length;r++)(c=e[r])<128&&n.push(a(c));var p=n.length,g=p;for(p&&n.push("-");g<u;){var m=t;for(r=0;r<e.length;r++)(c=e[r])>=d&&c<m&&(m=c);var v=g+1;if(m-d>o((t-h)/v))throw RangeError(i);for(h+=(m-d)*v,d=m,r=0;r<e.length;r++){if((c=e[r])<d&&++h>t)throw RangeError(i);if(c==d){for(var y=h,b=36;;b+=36){var w=b<=f?1:b>=f+26?26:b-f;if(y<w)break;var _=y-w,x=36-w;n.push(a(s(w+_%x))),y=o(_/x)}n.push(a(s(y))),f=l(h,v,g==p),h=0,++g}}++h,++d}return n.join("")};e.exports=function(e){var t,i,o=[],a=e.toLowerCase().replace(r,".").split(".");for(t=0;t<a.length;t++)i=a[t],o.push(n.test(i)?"xn--"+c(i):i);return o.join(".")}},38415:function(e,t,n){"use strict";var r=n(99958),i=n(41340),o=n(84488);e.exports=function(e){var t=i(o(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},76091:function(e,t,n){var r=n(47293),i=n(81361);e.exports=function(e){return r((function(){return!!i[e]()||"
"!="
"[e]()||i[e].name!==e}))}},53111:function(e,t,n){var r=n(84488),i=n(41340),o="["+n(81361)+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(e){return function(t){var n=i(r(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},20261:function(e,t,n){var r,i,o,a,s=n(17854),l=n(47293),c=n(49974),u=n(60490),d=n(80317),h=n(6833),f=n(35268),p=s.setImmediate,g=s.clearImmediate,m=s.process,v=s.MessageChannel,y=s.Dispatch,b=0,w={},_="onreadystatechange";try{r=s.location}catch(e){}var x=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},E=function(e){return function(){x(e)}},C=function(e){x(e.data)},k=function(e){s.postMessage(String(e),r.protocol+"//"+r.host)};p&&g||(p=function(e){for(var t=[],n=arguments.length,r=1;n>r;)t.push(arguments[r++]);return w[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(b),b},g=function(e){delete w[e]},f?i=function(e){m.nextTick(E(e))}:y&&y.now?i=function(e){y.now(E(e))}:v&&!h?(a=(o=new v).port2,o.port1.onmessage=C,i=c(a.postMessage,a,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&r&&"file:"!==r.protocol&&!l(k)?(i=k,s.addEventListener("message",C,!1)):i=_ in d("script")?function(e){u.appendChild(d("script"))[_]=function(){u.removeChild(this),x(e)}}:function(e){setTimeout(E(e),0)}),e.exports={set:p,clear:g}},50863:function(e,t,n){var r=n(84326);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},51400:function(e,t,n){var r=n(99958),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},57067:function(e,t,n){var r=n(99958),i=n(17466);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},45656:function(e,t,n){var r=n(68361),i=n(84488);e.exports=function(e){return r(i(e))}},99958:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},17466:function(e,t,n){var r=n(99958),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},47908:function(e,t,n){var r=n(84488);e.exports=function(e){return Object(r(e))}},84590:function(e,t,n){var r=n(73002);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},73002:function(e,t,n){var r=n(99958);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},57593:function(e,t,n){var r=n(70111),i=n(52190),o=n(92140),a=n(5112)("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,s=e[a];if(void 0!==s){if(void 0===t&&(t="default"),n=s.call(e,t),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},34948:function(e,t,n){var r=n(57593),i=n(52190);e.exports=function(e){var t=r(e,"string");return i(t)?t:String(t)}},51694:function(e,t,n){var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},41340:function(e,t,n){var r=n(52190);e.exports=function(e){if(r(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},19843:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(19781),a=n(63832),s=n(90260),l=n(13331),c=n(25787),u=n(79114),d=n(68880),h=n(18730),f=n(17466),p=n(57067),g=n(84590),m=n(34948),v=n(86656),y=n(70648),b=n(70111),w=n(52190),_=n(70030),x=n(27674),E=n(8006).f,C=n(97321),k=n(42092).forEach,S=n(96340),T=n(3070),M=n(31236),O=n(29909),L=n(79587),A=O.get,D=O.set,N=T.f,P=M.f,I=Math.round,j=i.RangeError,R=l.ArrayBuffer,F=l.DataView,z=s.NATIVE_ARRAY_BUFFER_VIEWS,Y=s.TYPED_ARRAY_CONSTRUCTOR,B=s.TYPED_ARRAY_TAG,H=s.TypedArray,q=s.TypedArrayPrototype,U=s.aTypedArrayConstructor,V=s.isTypedArray,W="BYTES_PER_ELEMENT",G="Wrong length",$=function(e,t){for(var n=0,r=t.length,i=new(U(e))(r);r>n;)i[n]=t[n++];return i},K=function(e,t){N(e,t,{get:function(){return A(this)[t]}})},J=function(e){var t;return e instanceof R||"ArrayBuffer"==(t=y(e))||"SharedArrayBuffer"==t},X=function(e,t){return V(e)&&!w(t)&&t in e&&h(+t)&&t>=0},Z=function(e,t){return t=m(t),X(e,t)?u(2,e[t]):P(e,t)},Q=function(e,t,n){return t=m(t),!(X(e,t)&&b(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};o?(z||(M.f=Z,T.f=Q,K(q,"buffer"),K(q,"byteOffset"),K(q,"byteLength"),K(q,"length")),r({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:Z,defineProperty:Q}),e.exports=function(e,t,n){var o=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",l="get"+e,u="set"+e,h=i[s],m=h,v=m&&m.prototype,y={},w=function(e,t){N(e,t,{get:function(){return function(e,t){var n=A(e);return n.view[l](t*o+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=A(e);n&&(r=(r=I(r))<0?0:r>255?255:255&r),i.view[u](t*o+i.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};z?a&&(m=t((function(e,t,n,r){return c(e,m,s),L(b(t)?J(t)?void 0!==r?new h(t,g(n,o),r):void 0!==n?new h(t,g(n,o)):new h(t):V(t)?$(m,t):C.call(m,t):new h(p(t)),e,m)})),x&&x(m,H),k(E(h),(function(e){e in m||d(m,e,h[e])})),m.prototype=v):(m=t((function(e,t,n,r){c(e,m,s);var i,a,l,u=0,d=0;if(b(t)){if(!J(t))return V(t)?$(m,t):C.call(m,t);i=t,d=g(n,o);var h=t.byteLength;if(void 0===r){if(h%o)throw j(G);if((a=h-d)<0)throw j(G)}else if((a=f(r)*o)+d>h)throw j(G);l=a/o}else l=p(t),i=new R(a=l*o);for(D(e,{buffer:i,byteOffset:d,byteLength:a,length:l,view:new F(i)});u<l;)w(e,u++)})),x&&x(m,H),v=m.prototype=_(q)),v.constructor!==m&&d(v,"constructor",m),d(v,Y,m),B&&d(v,B,s),y[s]=m,r({global:!0,forced:m!=h,sham:!z},y),W in m||d(m,W,o),W in v||d(v,W,o),S(s)}):e.exports=function(){}},63832:function(e,t,n){var r=n(17854),i=n(47293),o=n(17072),a=n(90260).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},43074:function(e,t,n){var r=n(97745),i=n(66304);e.exports=function(e,t){return r(i(e),t)}},97321:function(e,t,n){var r=n(47908),i=n(17466),o=n(71246),a=n(97659),s=n(49974),l=n(90260).aTypedArrayConstructor;e.exports=function(e){var t,n,c,u,d,h,f=r(e),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=o(f);if(null!=v&&!a(v))for(h=(d=v.call(f)).next,f=[];!(u=h.call(d)).done;)f.push(u.value);for(m&&p>2&&(g=s(g,arguments[2],2)),n=i(f.length),c=new(l(this))(n),t=0;n>t;t++)c[t]=m?g(f[t],t):f[t];return c}},66304:function(e,t,n){var r=n(90260),i=n(36707),o=r.TYPED_ARRAY_CONSTRUCTOR,a=r.aTypedArrayConstructor;e.exports=function(e){return a(i(e,e[o]))}},69711:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},43307:function(e,t,n){var r=n(30133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:function(e,t,n){var r=n(5112);t.f=r},5112:function(e,t,n){var r=n(17854),i=n(72309),o=n(86656),a=n(69711),s=n(30133),l=n(43307),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)&&(s||"string"==typeof c[e])||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},81361:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},9170:function(e,t,n){"use strict";var r=n(82109),i=n(79518),o=n(27674),a=n(70030),s=n(68880),l=n(79114),c=n(20408),u=n(41340),d=function(e,t){var n=this;if(!(n instanceof d))return new d(e,t);o&&(n=o(new Error(void 0),i(n))),void 0!==t&&s(n,"message",u(t));var r=[];return c(e,r.push,{that:r}),s(n,"errors",r),n};d.prototype=a(Error.prototype,{constructor:l(5,d),message:l(5,""),name:l(5,"AggregateError")}),r({global:!0},{AggregateError:d})},18264:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(13331),a=n(96340),s="ArrayBuffer",l=o[s];r({global:!0,forced:i[s]!==l},{ArrayBuffer:l}),a(s)},76938:function(e,t,n){var r=n(82109),i=n(90260);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},39575:function(e,t,n){"use strict";var r=n(82109),i=n(47293),o=n(13331),a=n(19670),s=n(51400),l=n(17466),c=n(36707),u=o.ArrayBuffer,d=o.DataView,h=u.prototype.slice;r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new u(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(void 0!==h&&void 0===t)return h.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(c(this,u))(l(i-r)),f=new d(this),p=new d(o),g=0;r<i;)p.setUint8(g++,f.getUint8(r++));return o}})},92222:function(e,t,n){"use strict";var r=n(82109),i=n(47293),o=n(43157),a=n(70111),s=n(47908),l=n(17466),c=n(86135),u=n(65417),d=n(81194),h=n(5112),f=n(7392),p=h("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=f>=51||!i((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=d("concat"),b=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!v||!y},{concat:function(e){var t,n,r,i,o,a=s(this),d=u(a,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(b(o=-1===t?a:arguments[t])){if(h+(i=l(o.length))>g)throw TypeError(m);for(n=0;n<i;n++,h++)n in o&&c(d,h,o[n])}else{if(h>=g)throw TypeError(m);c(d,h++,o)}return d.length=h,d}})},50545:function(e,t,n){var r=n(82109),i=n(1048),o=n(51223);r({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},26541:function(e,t,n){"use strict";var r=n(82109),i=n(42092).every;r({target:"Array",proto:!0,forced:!n(9341)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},43290:function(e,t,n){var r=n(82109),i=n(21285),o=n(51223);r({target:"Array",proto:!0},{fill:i}),o("fill")},57327:function(e,t,n){"use strict";var r=n(82109),i=n(42092).filter;r({target:"Array",proto:!0,forced:!n(81194)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},34553:function(e,t,n){"use strict";var r=n(82109),i=n(42092).findIndex,o=n(51223),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},69826:function(e,t,n){"use strict";var r=n(82109),i=n(42092).find,o=n(51223),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},86535:function(e,t,n){"use strict";var r=n(82109),i=n(6790),o=n(47908),a=n(17466),s=n(13099),l=n(65417);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=o(this),r=a(n.length);return s(e),(t=l(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},84944:function(e,t,n){"use strict";var r=n(82109),i=n(6790),o=n(47908),a=n(17466),s=n(99958),l=n(65417);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t.length),r=l(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},89554:function(e,t,n){"use strict";var r=n(82109),i=n(18533);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},91038:function(e,t,n){var r=n(82109),i=n(48457);r({target:"Array",stat:!0,forced:!n(17072)((function(e){Array.from(e)}))},{from:i})},26699:function(e,t,n){"use strict";var r=n(82109),i=n(41318).includes,o=n(51223);r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},82772:function(e,t,n){"use strict";var r=n(82109),i=n(41318).indexOf,o=n(9341),a=[].indexOf,s=!!a&&1/[1].indexOf(1,-0)<0,l=o("indexOf");r({target:"Array",proto:!0,forced:s||!l},{indexOf:function(e){return s?a.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},79753:function(e,t,n){n(82109)({target:"Array",stat:!0},{isArray:n(43157)})},66992:function(e,t,n){"use strict";var r=n(45656),i=n(51223),o=n(97497),a=n(29909),s=n(70654),l="Array Iterator",c=a.set,u=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:r(e),index:0,kind:t})}),(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"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},69600:function(e,t,n){"use strict";var r=n(82109),i=n(68361),o=n(45656),a=n(9341),s=[].join,l=i!=Object,c=a("join",",");r({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},94986:function(e,t,n){var r=n(82109),i=n(86583);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},21249:function(e,t,n){"use strict";var r=n(82109),i=n(42092).map;r({target:"Array",proto:!0,forced:!n(81194)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},26572:function(e,t,n){"use strict";var r=n(82109),i=n(47293),o=n(86135);r({target:"Array",stat:!0,forced:i((function(){function e(){}return!(Array.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},96644:function(e,t,n){"use strict";var r=n(82109),i=n(53671).right,o=n(9341),a=n(7392),s=n(35268);r({target:"Array",proto:!0,forced:!o("reduceRight")||!s&&a>79&&a<83},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},85827:function(e,t,n){"use strict";var r=n(82109),i=n(53671).left,o=n(9341),a=n(7392),s=n(35268);r({target:"Array",proto:!0,forced:!o("reduce")||!s&&a>79&&a<83},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},65069:function(e,t,n){"use strict";var r=n(82109),i=n(43157),o=[].reverse,a=[1,2];r({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},47042:function(e,t,n){"use strict";var r=n(82109),i=n(70111),o=n(43157),a=n(51400),s=n(17466),l=n(45656),c=n(86135),u=n(5112),d=n(81194)("slice"),h=u("species"),f=[].slice,p=Math.max;r({target:"Array",proto:!0,forced:!d},{slice:function(e,t){var n,r,u,d=l(this),g=s(d.length),m=a(e,g),v=a(void 0===t?g:t,g);if(o(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[h])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(d,m,v);for(r=new(void 0===n?Array:n)(p(v-m,0)),u=0;m<v;m++,u++)m in d&&c(r,u,d[m]);return r.length=u,r}})},5212:function(e,t,n){"use strict";var r=n(82109),i=n(42092).some;r({target:"Array",proto:!0,forced:!n(9341)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},2707:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(47908),a=n(17466),s=n(41340),l=n(47293),c=n(94362),u=n(9341),d=n(68886),h=n(30256),f=n(7392),p=n(98008),g=[],m=g.sort,v=l((function(){g.sort(void 0)})),y=l((function(){g.sort(null)})),b=u("sort"),w=!l((function(){if(f)return f<70;if(!(d&&d>3)){if(h)return!0;if(p)return p<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++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;r<g.length;r++)t=g[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:v||!y||!b||!w},{sort:function(e){void 0!==e&&i(e);var t=o(this);if(w)return void 0===e?m.call(t):m.call(t,e);var n,r,l=[],u=a(t.length);for(r=0;r<u;r++)r in t&&l.push(t[r]);for(l=c(l,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e)),n=l.length,r=0;r<n;)t[r]=l[r++];for(;r<u;)delete t[r++];return t}})},38706:function(e,t,n){n(96340)("Array")},40561:function(e,t,n){"use strict";var r=n(82109),i=n(51400),o=n(99958),a=n(17466),s=n(47908),l=n(65417),c=n(86135),u=n(81194)("splice"),d=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!u},{splice:function(e,t){var n,r,u,f,p,g,m=s(this),v=a(m.length),y=i(e,v),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=v-y):(n=b-2,r=h(d(o(t),0),v-y)),v+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(u=l(m,r),f=0;f<r;f++)(p=y+f)in m&&c(u,f,m[p]);if(u.length=r,n<r){for(f=y;f<v-r;f++)g=f+n,(p=f+r)in m?m[g]=m[p]:delete m[g];for(f=v;f>v-r+n;f--)delete m[f-1]}else if(n>r)for(f=v-r;f>y;f--)g=f+n-1,(p=f+r-1)in m?m[g]=m[p]:delete m[g];for(f=0;f<n;f++)m[f+y]=arguments[f+2];return m.length=v-r+n,u}})},99244:function(e,t,n){n(51223)("flatMap")},33792:function(e,t,n){n(51223)("flat")},16716:function(e,t,n){var r=n(82109),i=n(13331);r({global:!0,forced:!n(24019)},{DataView:i.DataView})},43016:function(e,t,n){"use strict";var r=n(82109),i=n(47293)((function(){return 120!==new Date(16e11).getYear()})),o=Date.prototype.getFullYear;r({target:"Date",proto:!0,forced:i},{getYear:function(){return o.call(this)-1900}})},3843:function(e,t,n){n(82109)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},81801:function(e,t,n){"use strict";var r=n(82109),i=n(99958),o=Date.prototype.getTime,a=Date.prototype.setFullYear;r({target:"Date",proto:!0},{setYear:function(e){o.call(this);var t=i(e),n=0<=t&&t<=99?t+1900:t;return a.call(this,n)}})},9550:function(e,t,n){n(82109)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},28733:function(e,t,n){var r=n(82109),i=n(85573);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},5735:function(e,t,n){"use strict";var r=n(82109),i=n(47293),o=n(47908),a=n(57593);r({target:"Date",proto:!0,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=o(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},96078:function(e,t,n){var r=n(68880),i=n(38709),o=n(5112)("toPrimitive"),a=Date.prototype;o in a||r(a,o,i)},83710:function(e,t,n){var r=n(31320),i=Date.prototype,o="Invalid Date",a="toString",s=i[a],l=i.getTime;String(new Date(NaN))!=o&&r(i,a,(function(){var e=l.call(this);return e==e?s.call(this):o}))},62130:function(e,t,n){"use strict";var r=n(82109),i=n(41340),o=/[\w*+\-./@]/,a=function(e,t){for(var n=e.toString(16);n.length<t;)n="0"+n;return n};r({global:!0},{escape:function(e){for(var t,n,r=i(e),s="",l=r.length,c=0;c<l;)t=r.charAt(c++),o.test(t)?s+=t:s+=(n=t.charCodeAt(0))<256?"%"+a(n,2):"%u"+a(n,4).toUpperCase();return s}})},24812:function(e,t,n){n(82109)({target:"Function",proto:!0},{bind:n(27065)})},4855:function(e,t,n){"use strict";var r=n(70111),i=n(3070),o=n(79518),a=n(5112)("hasInstance"),s=Function.prototype;a in s||i.f(s,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},68309:function(e,t,n){var r=n(19781),i=n(3070).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,l="name";r&&!(l in o)&&i(o,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},35837:function(e,t,n){n(82109)({global:!0},{globalThis:n(17854)})},38862:function(e,t,n){var r=n(82109),i=n(35005),o=n(47293),a=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,u=function(e,t,n){var r=n.charAt(t-1),i=n.charAt(t+1);return l.test(e)&&!c.test(i)||c.test(e)&&!l.test(r)?"\\u"+e.charCodeAt(0).toString(16):e},d=o((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&r({target:"JSON",stat:!0,forced:d},{stringify:function(e,t,n){var r=a.apply(null,arguments);return"string"==typeof r?r.replace(s,u):r}})},73706:function(e,t,n){var r=n(17854);n(58003)(r.JSON,"JSON",!0)},51532:function(e,t,n){"use strict";var r=n(77710),i=n(95631);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},99752:function(e,t,n){var r=n(82109),i=n(26513),o=Math.acosh,a=Math.log,s=Math.sqrt,l=Math.LN2;r({target:"Math",stat:!0,forced:!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?a(e)+l:i(e-1+s(e-1)*s(e+1))}})},82376:function(e,t,n){var r=n(82109),i=Math.asinh,o=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):o(t+a(t*t+1)):t}})},73181:function(e,t,n){var r=n(82109),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:o((1+e)/(1-e))/2}})},23484:function(e,t,n){var r=n(82109),i=n(64310),o=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return i(e=+e)*a(o(e),1/3)}})},2388:function(e,t,n){var r=n(82109),i=Math.floor,o=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-i(o(e+.5)*a):32}})},88621:function(e,t,n){var r=n(82109),i=n(66736),o=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=i(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},60403:function(e,t,n){var r=n(82109),i=n(66736);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},84755:function(e,t,n){n(82109)({target:"Math",stat:!0},{fround:n(26130)})},25438:function(e,t,n){var r=n(82109),i=Math.hypot,o=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,i=0,s=0,l=arguments.length,c=0;s<l;)c<(n=o(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*a(i)}})},90332:function(e,t,n){var r=n(82109),i=n(47293),o=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!=o(4294967295,5)||2!=o.length}))},{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},40658:function(e,t,n){var r=n(82109),i=Math.log,o=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return i(e)*o}})},40197:function(e,t,n){n(82109)({target:"Math",stat:!0},{log1p:n(26513)})},44914:function(e,t,n){var r=n(82109),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},52420:function(e,t,n){n(82109)({target:"Math",stat:!0},{sign:n(64310)})},60160:function(e,t,n){var r=n(82109),i=n(47293),o=n(66736),a=Math.abs,s=Math.exp,l=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){return a(e=+e)<1?(o(e)-o(-e))/2:(s(e-1)-s(-e-1))*(l/2)}})},60970:function(e,t,n){var r=n(82109),i=n(66736),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},10408:function(e,t,n){n(58003)(Math,"Math",!0)},73689:function(e,t,n){var r=n(82109),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?o:i)(e)}})},9653:function(e,t,n){"use strict";var r=n(19781),i=n(17854),o=n(54705),a=n(31320),s=n(86656),l=n(84326),c=n(79587),u=n(52190),d=n(57593),h=n(47293),f=n(70030),p=n(8006).f,g=n(31236).f,m=n(3070).f,v=n(53111).trim,y="Number",b=i[y],w=b.prototype,_=l(f(w))==y,x=function(e){if(u(e))throw TypeError("Cannot convert a Symbol value to a number");var t,n,r,i,o,a,s,l,c=d(e,"number");if("string"==typeof c&&c.length>2)if(43===(t=(c=v(c)).charCodeAt(0))||45===t){if(88===(n=c.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=c.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>i)return NaN;return parseInt(o,r)}return+c};if(o(y,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var E,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(_?h((function(){w.valueOf.call(n)})):l(n)!=y)?c(new b(x(t)),n,C):x(t)},k=r?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),S=0;k.length>S;S++)s(b,E=k[S])&&!s(C,E)&&m(C,E,g(b,E));C.prototype=w,w.constructor=C,a(i,y,C)}},93299:function(e,t,n){n(82109)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},35192:function(e,t,n){n(82109)({target:"Number",stat:!0},{isFinite:n(77023)})},33161:function(e,t,n){n(82109)({target:"Number",stat:!0},{isInteger:n(18730)})},44048:function(e,t,n){n(82109)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},78285:function(e,t,n){var r=n(82109),i=n(18730),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},44363:function(e,t,n){n(82109)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},55994:function(e,t,n){n(82109)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},61874:function(e,t,n){var r=n(82109),i=n(2814);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},9494:function(e,t,n){var r=n(82109),i=n(83009);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},56977:function(e,t,n){"use strict";var r=n(82109),i=n(99958),o=n(50863),a=n(38415),s=n(47293),l=1..toFixed,c=Math.floor,u=function(e,t,n){return 0===t?n:t%2==1?u(e,t-1,n*e):u(e*e,t/2,n)},d=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=c(i/1e7)},h=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=c(r/t),r=r%t*1e7},f=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+a.call("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}))},{toFixed:function(e){var t,n,r,s,l=o(this),c=i(e),p=[0,0,0,0,0,0],g="",m="0";if(c<0||c>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>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}(l*u(2,69,1))-69)<0?l*u(2,-t,1):l/u(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(p,0,n),r=c;r>=7;)d(p,1e7,0),r-=7;for(d(p,u(10,r,1),0),r=t-1;r>=23;)h(p,1<<23),r-=23;h(p,1<<r),d(p,1,1),h(p,2),m=f(p)}else d(p,0,n),d(p,1<<-t,0),m=f(p)+a.call("0",c);return m=c>0?g+((s=m.length)<=c?"0."+a.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):g+m}})},55147:function(e,t,n){"use strict";var r=n(82109),i=n(47293),o=n(50863),a=1..toPrecision;r({target:"Number",proto:!0,forced:i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))},{toPrecision:function(e){return void 0===e?a.call(o(this)):a.call(o(this),e)}})},19601:function(e,t,n){var r=n(82109),i=n(21574);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},78011:function(e,t,n){n(82109)({target:"Object",stat:!0,sham:!n(19781)},{create:n(70030)})},59595:function(e,t,n){"use strict";var r=n(82109),i=n(19781),o=n(69026),a=n(47908),s=n(13099),l=n(3070);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){l.f(a(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},33321:function(e,t,n){var r=n(82109),i=n(19781);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:n(36048)})},69070:function(e,t,n){var r=n(82109),i=n(19781);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(3070).f})},35500:function(e,t,n){"use strict";var r=n(82109),i=n(19781),o=n(69026),a=n(47908),s=n(13099),l=n(3070);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){l.f(a(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},69720:function(e,t,n){var r=n(82109),i=n(44699).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},43371:function(e,t,n){var r=n(82109),i=n(76677),o=n(47293),a=n(70111),s=n(62423).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){l(1)})),sham:!i},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},38559:function(e,t,n){var r=n(82109),i=n(20408),o=n(86135);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},38880:function(e,t,n){var r=n(82109),i=n(47293),o=n(45656),a=n(31236).f,s=n(19781),l=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},49337:function(e,t,n){var r=n(82109),i=n(19781),o=n(53887),a=n(45656),s=n(31236),l=n(86135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),u={},d=0;c.length>d;)void 0!==(n=i(r,t=c[d++]))&&l(u,t,n);return u}})},36210:function(e,t,n){var r=n(82109),i=n(47293),o=n(1156).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},30489:function(e,t,n){var r=n(82109),i=n(47293),o=n(47908),a=n(79518),s=n(49920);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},41825:function(e,t,n){var r=n(82109),i=n(47293),o=n(70111),a=Object.isExtensible;r({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isExtensible:function(e){return!!o(e)&&(!a||a(e))}})},98410:function(e,t,n){var r=n(82109),i=n(47293),o=n(70111),a=Object.isFrozen;r({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isFrozen:function(e){return!o(e)||!!a&&a(e)}})},72200:function(e,t,n){var r=n(82109),i=n(47293),o=n(70111),a=Object.isSealed;r({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isSealed:function(e){return!o(e)||!!a&&a(e)}})},43304:function(e,t,n){n(82109)({target:"Object",stat:!0},{is:n(81150)})},47941:function(e,t,n){var r=n(82109),i=n(47908),o=n(81956);r({target:"Object",stat:!0,forced:n(47293)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},94869:function(e,t,n){"use strict";var r=n(82109),i=n(19781),o=n(69026),a=n(47908),s=n(34948),l=n(79518),c=n(31236).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=a(this),r=s(e);do{if(t=c(n,r))return t.get}while(n=l(n))}})},33952:function(e,t,n){"use strict";var r=n(82109),i=n(19781),o=n(69026),a=n(47908),s=n(34948),l=n(79518),c=n(31236).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=a(this),r=s(e);do{if(t=c(n,r))return t.set}while(n=l(n))}})},57227:function(e,t,n){var r=n(82109),i=n(70111),o=n(62423).onFreeze,a=n(76677),s=n(47293),l=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{preventExtensions:function(e){return l&&i(e)?l(o(e)):e}})},60514:function(e,t,n){var r=n(82109),i=n(70111),o=n(62423).onFreeze,a=n(76677),s=n(47293),l=Object.seal;r({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{seal:function(e){return l&&i(e)?l(o(e)):e}})},68304:function(e,t,n){n(82109)({target:"Object",stat:!0},{setPrototypeOf:n(27674)})},41539:function(e,t,n){var r=n(51694),i=n(31320),o=n(90288);r||i(Object.prototype,"toString",o,{unsafe:!0})},26833:function(e,t,n){var r=n(82109),i=n(44699).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},54678:function(e,t,n){var r=n(82109),i=n(2814);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},91058:function(e,t,n){var r=n(82109),i=n(83009);r({global:!0,forced:parseInt!=i},{parseInt:i})},17922:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(78523),a=n(12534),s=n(20408);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,c=a((function(){var n=i(t.resolve),o=[],a=0,l=1;s(e,(function(e){var i=a++,s=!1;o.push(void 0),l++,n.call(t,e).then((function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--l||r(o))}),(function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--l||r(o))}))})),--l||r(o)}));return c.error&&l(c.value),n.promise}})},34668:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(35005),a=n(78523),s=n(12534),l=n(20408),c="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,d=s((function(){var n=i(t.resolve),a=[],s=0,d=1,h=!1;l(e,(function(e){var i=s++,l=!1;a.push(void 0),d++,n.call(t,e).then((function(e){l||h||(h=!0,r(e))}),(function(e){l||h||(l=!0,a[i]=e,--d||u(new(o("AggregateError"))(a,c)))}))})),--d||u(new(o("AggregateError"))(a,c))}));return d.error&&u(d.value),n.promise}})},17727:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(13366),a=n(47293),s=n(35005),l=n(36707),c=n(69478),u=n(31320);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!i&&"function"==typeof o){var d=s("Promise").prototype.finally;o.prototype.finally!==d&&u(o.prototype,"finally",d,{unsafe:!0})}},88674:function(e,t,n){"use strict";var r,i,o,a,s=n(82109),l=n(31913),c=n(17854),u=n(35005),d=n(13366),h=n(31320),f=n(12248),p=n(27674),g=n(58003),m=n(96340),v=n(70111),y=n(13099),b=n(25787),w=n(42788),_=n(20408),x=n(17072),E=n(36707),C=n(20261).set,k=n(95948),S=n(69478),T=n(842),M=n(78523),O=n(12534),L=n(29909),A=n(54705),D=n(5112),N=n(7871),P=n(35268),I=n(7392),j=D("species"),R="Promise",F=L.get,z=L.set,Y=L.getterFor(R),B=d&&d.prototype,H=d,q=B,U=c.TypeError,V=c.document,W=c.process,G=M.f,$=G,K=!!(V&&V.createEvent&&c.dispatchEvent),J="function"==typeof PromiseRejectionEvent,X="unhandledrejection",Z=!1,Q=A(R,(function(){var e=w(H),t=e!==String(H);if(!t&&66===I)return!0;if(l&&!q.finally)return!0;if(I>=51&&/native code/.test(e))return!1;var n=new H((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[j]=r,!(Z=n.then((function(){}))instanceof r)||!t&&N&&!J})),ee=Q||!x((function(e){H.all(e).catch((function(){}))})),te=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},ne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;k((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,l,c=n[o++],u=i?c.ok:c.fail,d=c.resolve,h=c.reject,f=c.domain;try{u?(i||(2===e.rejection&&ae(e),e.rejection=1),!0===u?a=r:(f&&f.enter(),a=u(r),f&&(f.exit(),l=!0)),a===c.promise?h(U("Promise-chain cycle")):(s=te(a))?s.call(a,d,h):d(a)):h(r)}catch(e){f&&!l&&f.exit(),h(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ie(e)}))}},re=function(e,t,n){var r,i;K?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!J&&(i=c["on"+e])?i(r):e===X&&T("Unhandled promise rejection",n)},ie=function(e){C.call(c,(function(){var t,n=e.facade,r=e.value;if(oe(e)&&(t=O((function(){P?W.emit("unhandledRejection",r,n):re(X,n,r)})),e.rejection=P||oe(e)?2:1,t.error))throw t.value}))},oe=function(e){return 1!==e.rejection&&!e.parent},ae=function(e){C.call(c,(function(){var t=e.facade;P?W.emit("rejectionHandled",t):re("rejectionhandled",t,e.value)}))},se=function(e,t,n){return function(r){e(t,r,n)}},le=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ne(e,!0))},ce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw U("Promise can't be resolved itself");var r=te(t);r?k((function(){var n={done:!1};try{r.call(t,se(ce,n,e),se(le,n,e))}catch(t){le(n,t,e)}})):(e.value=t,e.state=1,ne(e,!1))}catch(t){le({done:!1},t,e)}}};if(Q&&(q=(H=function(e){b(this,H,R),y(e),r.call(this);var t=F(this);try{e(se(ce,t),se(le,t))}catch(e){le(t,e)}}).prototype,(r=function(e){z(this,{type:R,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(q,{then:function(e,t){var n=Y(this),r=G(E(this,H));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=P?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&ne(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=F(e);this.promise=e,this.resolve=se(ce,t),this.reject=se(le,t)},M.f=G=function(e){return e===H||e===o?new i(e):$(e)},!l&&"function"==typeof d&&B!==Object.prototype)){a=B.then,Z||(h(B,"then",(function(e,t){var n=this;return new H((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),h(B,"catch",q.catch,{unsafe:!0}));try{delete B.constructor}catch(e){}p&&p(B,q)}s({global:!0,wrap:!0,forced:Q},{Promise:H}),g(H,R,!1,!0),m(R),o=u(R),s({target:R,stat:!0,forced:Q},{reject:function(e){var t=G(this);return t.reject.call(void 0,e),t.promise}}),s({target:R,stat:!0,forced:l||Q},{resolve:function(e){return S(l&&this===o?H:this,e)}}),s({target:R,stat:!0,forced:ee},{all:function(e){var t=this,n=G(t),r=n.resolve,i=n.reject,o=O((function(){var n=y(t.resolve),o=[],a=0,s=1;_(e,(function(e){var l=a++,c=!1;o.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,o[l]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=G(t),r=n.reject,i=O((function(){var i=y(t.resolve);_(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},36535:function(e,t,n){var r=n(82109),i=n(35005),o=n(13099),a=n(19670),s=n(47293),l=i("Reflect","apply"),c=Function.apply;r({target:"Reflect",stat:!0,forced:!s((function(){l((function(){}))}))},{apply:function(e,t,n){return o(e),a(n),l?l(e,t,n):c.call(e,t,n)}})},12419:function(e,t,n){var r=n(82109),i=n(35005),o=n(13099),a=n(19670),s=n(70111),l=n(70030),c=n(27065),u=n(47293),d=i("Reflect","construct"),h=u((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),f=!u((function(){d((function(){}))})),p=h||f;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(f&&!h)return d(e,t,n);if(e==n){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 r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var i=n.prototype,u=l(s(i)?i:Object.prototype),p=Function.apply.call(e,u,t);return s(p)?p:u}})},69596:function(e,t,n){var r=n(82109),i=n(19781),o=n(19670),a=n(34948),s=n(3070);r({target:"Reflect",stat:!0,forced:n(47293)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(e,t,n){o(e);var r=a(t);o(n);try{return s.f(e,r,n),!0}catch(e){return!1}}})},52586:function(e,t,n){var r=n(82109),i=n(19670),o=n(31236).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},95683:function(e,t,n){var r=n(82109),i=n(19781),o=n(19670),a=n(31236);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return a.f(o(e),t)}})},39361:function(e,t,n){var r=n(82109),i=n(19670),o=n(79518);r({target:"Reflect",stat:!0,sham:!n(49920)},{getPrototypeOf:function(e){return o(i(e))}})},74819:function(e,t,n){var r=n(82109),i=n(70111),o=n(19670),a=n(86656),s=n(31236),l=n(79518);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,u=arguments.length<3?t:arguments[2];return o(t)===u?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(u):i(c=l(t))?e(c,n,u):void 0}})},51037:function(e,t,n){n(82109)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},5898:function(e,t,n){var r=n(82109),i=n(19670),o=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),!o||o(e)}})},67556:function(e,t,n){n(82109)({target:"Reflect",stat:!0},{ownKeys:n(53887)})},14361:function(e,t,n){var r=n(82109),i=n(35005),o=n(19670);r({target:"Reflect",stat:!0,sham:!n(76677)},{preventExtensions:function(e){o(e);try{var t=i("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},39532:function(e,t,n){var r=n(82109),i=n(19670),o=n(96077),a=n(27674);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e),o(t);try{return a(e,t),!0}catch(e){return!1}}})},83593:function(e,t,n){var r=n(82109),i=n(19670),o=n(70111),a=n(86656),s=n(47293),l=n(3070),c=n(31236),u=n(79518),d=n(79114);r({target:"Reflect",stat:!0,forced:s((function(){var e=function(){},t=l.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var s,h,f=arguments.length<4?t:arguments[3],p=c.f(i(t),n);if(!p){if(o(h=u(t)))return e(h,n,r,f);p=d(0)}if(a(p,"value")){if(!1===p.writable||!o(f))return!1;if(s=c.f(f,n)){if(s.get||s.set||!1===s.writable)return!1;s.value=r,l.f(f,n,s)}else l.f(f,n,d(0,r));return!0}return void 0!==p.set&&(p.set.call(f,r),!0)}})},81299:function(e,t,n){var r=n(82109),i=n(17854),o=n(58003);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},24603:function(e,t,n){var r=n(19781),i=n(17854),o=n(54705),a=n(79587),s=n(68880),l=n(3070).f,c=n(8006).f,u=n(47850),d=n(41340),h=n(67066),f=n(52999),p=n(31320),g=n(47293),m=n(86656),v=n(29909).enforce,y=n(96340),b=n(5112),w=n(9441),_=n(38173),x=b("match"),E=i.RegExp,C=E.prototype,k=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,S=/a/g,T=/a/g,M=new E(S)!==S,O=f.UNSUPPORTED_Y,L=r&&(!M||O||w||_||g((function(){return T[x]=!1,E(S)!=S||E(T)==T||"/a/i"!=E(S,"i")})));if(o("RegExp",L)){for(var A=function(e,t){var n,r,i,o,l,c,f=this instanceof A,p=u(e),g=void 0===t,y=[],b=e;if(!f&&p&&g&&e.constructor===A)return e;if((p||e instanceof A)&&(e=e.source,g&&(t="flags"in b?b.flags:h.call(b))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),b=e,w&&"dotAll"in S&&(r=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,O&&"sticky"in S&&(i=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),_&&(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,l=!1,c=0,u="";r<=n;r++){if("\\"===(t=e.charAt(r)))t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:k.test(e.slice(r+1))&&(r+=2,l=!0),i+=t,c++;continue;case">"===t&&l:if(""===u||m(a,u))throw new SyntaxError("Invalid capture group name");a[u]=!0,o.push([u,c]),l=!1,u="";continue}l?u+=t:i+=t}return[i,o]}(e),e=o[0],y=o[1]),l=a(E(e,t),f?this:C,A),(r||i||y.length)&&(c=v(l),r&&(c.dotAll=!0,c.raw=A(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=e.charAt(r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++r);return i}(e),n)),i&&(c.sticky=!0),y.length&&(c.groups=y)),e!==b)try{s(l,"source",""===b?"(?:)":b)}catch(e){}return l},D=function(e){e in A||l(A,e,{configurable:!0,get:function(){return E[e]},set:function(t){E[e]=t}})},N=c(E),P=0;N.length>P;)D(N[P++]);C.constructor=A,A.prototype=C,p(i,"RegExp",A)}y("RegExp")},28450:function(e,t,n){var r=n(19781),i=n(9441),o=n(3070).f,a=n(29909).get,s=RegExp.prototype;r&&i&&o(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!a(this).dotAll;throw TypeError("Incompatible receiver, RegExp required")}}})},74916:function(e,t,n){"use strict";var r=n(82109),i=n(22261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},92087:function(e,t,n){var r=n(19781),i=n(3070),o=n(67066),a=n(47293);r&&a((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},88386:function(e,t,n){var r=n(19781),i=n(52999).UNSUPPORTED_Y,o=n(3070).f,a=n(29909).get,s=RegExp.prototype;r&&i&&o(s,"sticky",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},77601:function(e,t,n){"use strict";n(74916);var r,i,o=n(82109),a=n(70111),s=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),l=/./.test;o({target:"RegExp",proto:!0,forced:!s},{test:function(e){if("function"!=typeof this.exec)return l.call(this,e);var t=this.exec(e);if(null!==t&&!a(t))throw new Error("RegExp exec method returned something other than an Object or null");return!!t}})},39714:function(e,t,n){"use strict";var r=n(31320),i=n(19670),o=n(41340),a=n(47293),s=n(67066),l="toString",c=RegExp.prototype,u=c[l],d=a((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),h=u.name!=l;(d||h)&&r(RegExp.prototype,l,(function(){var e=i(this),t=o(e.source),n=e.flags;return"/"+t+"/"+o(void 0===n&&e instanceof RegExp&&!("flags"in c)?s.call(e):n)}),{unsafe:!0})},70189:function(e,t,n){"use strict";var r=n(77710),i=n(95631);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},15218:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},74475:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("big")},{big:function(){return i(this,"big","","")}})},57929:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("blink")},{blink:function(){return i(this,"blink","","")}})},50915:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("bold")},{bold:function(){return i(this,"b","","")}})},79841:function(e,t,n){"use strict";var r=n(82109),i=n(28710).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},27852:function(e,t,n){"use strict";var r,i=n(82109),o=n(31236).f,a=n(17466),s=n(41340),l=n(3929),c=n(84488),u=n(84964),d=n(31913),h="".endsWith,f=Math.min,p=u("endsWith");i({target:"String",proto:!0,forced:!!(d||p||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!p},{endsWith:function(e){var t=s(c(this));l(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:f(a(n),r),o=s(e);return h?h.call(t,o,i):t.slice(i-o.length,i)===o}})},29253:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("fixed")},{fixed:function(){return i(this,"tt","","")}})},42125:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("fontcolor")},{fontcolor:function(e){return i(this,"font","color",e)}})},78830:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},94953:function(e,t,n){var r=n(82109),i=n(51400),o=String.fromCharCode,a=String.fromCodePoint;r({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},32023:function(e,t,n){"use strict";var r=n(82109),i=n(3929),o=n(84488),a=n(41340);r({target:"String",proto:!0,forced:!n(84964)("includes")},{includes:function(e){return!!~a(o(this)).indexOf(a(i(e)),arguments.length>1?arguments[1]:void 0)}})},58734:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("italics")},{italics:function(){return i(this,"i","","")}})},78783:function(e,t,n){"use strict";var r=n(28710).charAt,i=n(41340),o=n(29909),a=n(70654),s="String Iterator",l=o.set,c=o.getterFor(s);a(String,"String",(function(e){l(this,{type:s,string:i(e),index:0})}),(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})}))},29254:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("link")},{link:function(e){return i(this,"a","href",e)}})},76373:function(e,t,n){"use strict";var r=n(82109),i=n(24994),o=n(84488),a=n(17466),s=n(41340),l=n(13099),c=n(19670),u=n(84326),d=n(47850),h=n(67066),f=n(68880),p=n(47293),g=n(5112),m=n(36707),v=n(31530),y=n(29909),b=n(31913),w=g("matchAll"),_="RegExp String",x=_+" Iterator",E=y.set,C=y.getterFor(x),k=RegExp.prototype,S=k.exec,T="".matchAll,M=!!T&&!p((function(){"a".matchAll(/./)})),O=i((function(e,t,n,r){E(this,{type:x,regexp:e,string:t,global:n,unicode:r,done:!1})}),_,(function(){var e=C(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=function(e,t){var n,r=e.exec;if("function"==typeof r){if("object"!=typeof(n=r.call(e,t)))throw TypeError("Incorrect exec result");return n}return S.call(e,t)}(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""===s(r[0])&&(t.lastIndex=v(n,a(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),L=function(e){var t,n,r,i,o,l,u=c(this),d=s(e);return t=m(u,RegExp),void 0===(n=u.flags)&&u instanceof RegExp&&!("flags"in k)&&(n=h.call(u)),r=void 0===n?"":s(n),i=new t(t===RegExp?u.source:u,r),o=!!~r.indexOf("g"),l=!!~r.indexOf("u"),i.lastIndex=a(u.lastIndex),new O(i,d,o,l)};r({target:"String",proto:!0,forced:M},{matchAll:function(e){var t,n,r,i=o(this);if(null!=e){if(d(e)&&!~s(o("flags"in k?e.flags:h.call(e))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(M)return T.apply(i,arguments);if(void 0===(n=e[w])&&b&&"RegExp"==u(e)&&(n=L),null!=n)return l(n).call(e,i)}else if(M)return T.apply(i,arguments);return t=s(i),r=new RegExp(e,"g"),b?L.call(r,t):r[w](t)}}),b||w in k||f(k,w,L)},4723:function(e,t,n){"use strict";var r=n(27007),i=n(19670),o=n(17466),a=n(41340),s=n(84488),l=n(31530),c=n(97651);r("match",(function(e,t,n){return[function(t){var n=s(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](a(n))},function(e){var r=i(this),s=a(e),u=n(t,r,s);if(u.done)return u.value;if(!r.global)return c(r,s);var d=r.unicode;r.lastIndex=0;for(var h,f=[],p=0;null!==(h=c(r,s));){var g=a(h[0]);f[p]=g,""===g&&(r.lastIndex=l(s,o(r.lastIndex),d)),p++}return 0===p?null:f}]}))},66528:function(e,t,n){"use strict";var r=n(82109),i=n(76650).end;r({target:"String",proto:!0,forced:n(54986)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},83112:function(e,t,n){"use strict";var r=n(82109),i=n(76650).start;r({target:"String",proto:!0,forced:n(54986)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},38992:function(e,t,n){var r=n(82109),i=n(45656),o=n(17466),a=n(41340);r({target:"String",stat:!0},{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,s=[],l=0;n>l;)s.push(a(t[l++])),l<r&&s.push(a(arguments[l]));return s.join("")}})},82481:function(e,t,n){n(82109)({target:"String",proto:!0},{repeat:n(38415)})},68757:function(e,t,n){"use strict";var r=n(82109),i=n(84488),o=n(47850),a=n(41340),s=n(67066),l=n(10647),c=n(5112),u=n(31913),d=c("replace"),h=RegExp.prototype,f=Math.max,p=function(e,t,n){return n>e.length?-1:""===t?n:e.indexOf(t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,c,g,m,v,y,b,w=i(this),_=0,x=0,E="";if(null!=e){if((n=o(e))&&!~a(i("flags"in h?e.flags:s.call(e))).indexOf("g"))throw TypeError("`.replaceAll` does not allow non-global regexes");if(void 0!==(r=e[d]))return r.call(e,w,t);if(u&&n)return a(w).replace(e,t)}for(c=a(w),g=a(e),(m="function"==typeof t)||(t=a(t)),v=g.length,y=f(1,v),_=p(c,g,0);-1!==_;)b=m?a(t(g,_,c)):l(g,c,_,[],void 0,t),E+=c.slice(x,_)+b,x=_+v,_=p(c,g,_+y);return x<c.length&&(E+=c.slice(x)),E}})},15306:function(e,t,n){"use strict";var r=n(27007),i=n(47293),o=n(19670),a=n(99958),s=n(17466),l=n(41340),c=n(84488),u=n(31530),d=n(10647),h=n(97651),f=n(5112)("replace"),p=Math.max,g=Math.min,m="$0"==="a".replace(/./,"$0"),v=!!/./[f]&&""===/./[f]("a","$0");r("replace",(function(e,t,n){var r=v?"$":"$0";return[function(e,n){var r=c(this),i=null==e?void 0:e[f];return void 0!==i?i.call(e,r,n):t.call(l(r),e,n)},function(e,i){var c=o(this),f=l(e);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var m=n(t,c,f,i);if(m.done)return m.value}var v="function"==typeof i;v||(i=l(i));var y=c.global;if(y){var b=c.unicode;c.lastIndex=0}for(var w=[];;){var _=h(c,f);if(null===_)break;if(w.push(_),!y)break;""===l(_[0])&&(c.lastIndex=u(f,s(c.lastIndex),b))}for(var x,E="",C=0,k=0;k<w.length;k++){_=w[k];for(var S=l(_[0]),T=p(g(a(_.index),f.length),0),M=[],O=1;O<_.length;O++)M.push(void 0===(x=_[O])?x:String(x));var L=_.groups;if(v){var A=[S].concat(M,T,f);void 0!==L&&A.push(L);var D=l(i.apply(void 0,A))}else D=d(S,f,T,M,L,i);T>=C&&(E+=f.slice(C,T)+D,C=T+S.length)}return E+f.slice(C)}]}),!!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!m||v)},64765:function(e,t,n){"use strict";var r=n(27007),i=n(19670),o=n(84488),a=n(81150),s=n(41340),l=n(97651);r("search",(function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](s(n))},function(e){var r=i(this),o=s(e),c=n(t,r,o);if(c.done)return c.value;var u=r.lastIndex;a(u,0)||(r.lastIndex=0);var d=l(r,o);return a(r.lastIndex,u)||(r.lastIndex=u),null===d?-1:d.index}]}))},37268:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("small")},{small:function(){return i(this,"small","","")}})},23123:function(e,t,n){"use strict";var r=n(27007),i=n(47850),o=n(19670),a=n(84488),s=n(36707),l=n(31530),c=n(17466),u=n(41340),d=n(97651),h=n(22261),f=n(52999),p=n(47293),g=f.UNSUPPORTED_Y,m=[].push,v=Math.min,y=4294967295,b=!p((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]}));r("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=u(a(this)),o=void 0===n?y:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!i(e))return t.call(r,e,o);for(var s,l,c,d=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=new RegExp(e.source,f+"g");(s=h.call(g,r))&&!((l=g.lastIndex)>p&&(d.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&m.apply(d,s.slice(1)),c=s[0].length,p=l,d.length>=o));)g.lastIndex===s.index&&g.lastIndex++;return p===r.length?!c&&g.test("")||d.push(""):d.push(r.slice(p)),d.length>o?d.slice(0,o):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var i=a(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(u(i),t,n)},function(e,i){var a=o(this),h=u(e),f=n(r,a,h,i,r!==t);if(f.done)return f.value;var p=s(a,RegExp),m=a.unicode,b=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(g?"g":"y"),w=new p(g?"^(?:"+a.source+")":a,b),_=void 0===i?y:i>>>0;if(0===_)return[];if(0===h.length)return null===d(w,h)?[h]:[];for(var x=0,E=0,C=[];E<h.length;){w.lastIndex=g?0:E;var k,S=d(w,g?h.slice(E):h);if(null===S||(k=v(c(w.lastIndex+(g?E:0)),h.length))===x)E=l(h,E,m);else{if(C.push(h.slice(x,E)),C.length===_)return C;for(var T=1;T<=S.length-1;T++)if(C.push(S[T]),C.length===_)return C;E=x=k}}return C.push(h.slice(x)),C}]}),!b,g)},23157:function(e,t,n){"use strict";var r,i=n(82109),o=n(31236).f,a=n(17466),s=n(41340),l=n(3929),c=n(84488),u=n(84964),d=n(31913),h="".startsWith,f=Math.min,p=u("startsWith");i({target:"String",proto:!0,forced:!!(d||p||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=s(c(this));l(e);var n=a(f(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return h?h.call(t,r,n):t.slice(n,n+r.length)===r}})},7397:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("strike")},{strike:function(){return i(this,"strike","","")}})},60086:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("sub")},{sub:function(){return i(this,"sub","","")}})},83650:function(e,t,n){"use strict";var r=n(82109),i=n(84488),o=n(99958),a=n(41340),s="".slice,l=Math.max,c=Math.min;r({target:"String",proto:!0},{substr:function(e,t){var n,r,u=a(i(this)),d=u.length,h=o(e);return h===1/0&&(h=0),h<0&&(h=l(d+h,0)),(n=void 0===t?d:o(t))<=0||n===1/0||h>=(r=c(h+n,d))?"":s.call(u,h,r)}})},80623:function(e,t,n){"use strict";var r=n(82109),i=n(14230);r({target:"String",proto:!0,forced:n(43429)("sup")},{sup:function(){return i(this,"sup","","")}})},48702:function(e,t,n){"use strict";var r=n(82109),i=n(53111).end,o=n(76091)("trimEnd"),a=o?function(){return i(this)}:"".trimEnd;r({target:"String",proto:!0,forced:o},{trimEnd:a,trimRight:a})},55674:function(e,t,n){"use strict";var r=n(82109),i=n(53111).start,o=n(76091)("trimStart"),a=o?function(){return i(this)}:"".trimStart;r({target:"String",proto:!0,forced:o},{trimStart:a,trimLeft:a})},73210:function(e,t,n){"use strict";var r=n(82109),i=n(53111).trim;r({target:"String",proto:!0,forced:n(76091)("trim")},{trim:function(){return i(this)}})},72443:function(e,t,n){n(97235)("asyncIterator")},41817:function(e,t,n){"use strict";var r=n(82109),i=n(19781),o=n(17854),a=n(86656),s=n(70111),l=n(3070).f,c=n(99920),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},92401:function(e,t,n){n(97235)("hasInstance")},8722:function(e,t,n){n(97235)("isConcatSpreadable")},32165:function(e,t,n){n(97235)("iterator")},82526:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(35005),a=n(31913),s=n(19781),l=n(30133),c=n(47293),u=n(86656),d=n(43157),h=n(70111),f=n(52190),p=n(19670),g=n(47908),m=n(45656),v=n(34948),y=n(41340),b=n(79114),w=n(70030),_=n(81956),x=n(8006),E=n(1156),C=n(25181),k=n(31236),S=n(3070),T=n(55296),M=n(68880),O=n(31320),L=n(72309),A=n(6200),D=n(3501),N=n(69711),P=n(5112),I=n(6061),j=n(97235),R=n(58003),F=n(29909),z=n(42092).forEach,Y=A("hidden"),B="Symbol",H="prototype",q=P("toPrimitive"),U=F.set,V=F.getterFor(B),W=Object[H],G=i.Symbol,$=o("JSON","stringify"),K=k.f,J=S.f,X=E.f,Z=T.f,Q=L("symbols"),ee=L("op-symbols"),te=L("string-to-symbol-registry"),ne=L("symbol-to-string-registry"),re=L("wks"),ie=i.QObject,oe=!ie||!ie[H]||!ie[H].findChild,ae=s&&c((function(){return 7!=w(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=K(W,t);r&&delete W[t],J(e,t,n),r&&e!==W&&J(W,t,r)}:J,se=function(e,t){var n=Q[e]=w(G[H]);return U(n,{type:B,tag:e,description:t}),s||(n.description=t),n},le=function(e,t,n){e===W&&le(ee,t,n),p(e);var r=v(t);return p(n),u(Q,r)?(n.enumerable?(u(e,Y)&&e[Y][r]&&(e[Y][r]=!1),n=w(n,{enumerable:b(0,!1)})):(u(e,Y)||J(e,Y,b(1,{})),e[Y][r]=!0),ae(e,r,n)):J(e,r,n)},ce=function(e,t){p(e);var n=m(t),r=_(n).concat(fe(n));return z(r,(function(t){s&&!ue.call(n,t)||le(e,t,n[t])})),e},ue=function(e){var t=v(e),n=Z.call(this,t);return!(this===W&&u(Q,t)&&!u(ee,t))&&(!(n||!u(this,t)||!u(Q,t)||u(this,Y)&&this[Y][t])||n)},de=function(e,t){var n=m(e),r=v(t);if(n!==W||!u(Q,r)||u(ee,r)){var i=K(n,r);return!i||!u(Q,r)||u(n,Y)&&n[Y][r]||(i.enumerable=!0),i}},he=function(e){var t=X(m(e)),n=[];return z(t,(function(e){u(Q,e)||u(D,e)||n.push(e)})),n},fe=function(e){var t=e===W,n=X(t?ee:m(e)),r=[];return z(n,(function(e){!u(Q,e)||t&&!u(W,e)||r.push(Q[e])})),r};(l||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=N(e),n=function(e){this===W&&n.call(ee,e),u(this,Y)&&u(this[Y],t)&&(this[Y][t]=!1),ae(this,t,b(1,e))};return s&&oe&&ae(W,t,{configurable:!0,set:n}),se(t,e)},O(G[H],"toString",(function(){return V(this).tag})),O(G,"withoutSetter",(function(e){return se(N(e),e)})),T.f=ue,S.f=le,k.f=de,x.f=E.f=he,C.f=fe,I.f=function(e){return se(P(e),e)},s&&(J(G[H],"description",{configurable:!0,get:function(){return V(this).description}}),a||O(W,"propertyIsEnumerable",ue,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:G}),z(_(re),(function(e){j(e)})),r({target:B,stat:!0,forced:!l},{for:function(e){var t=y(e);if(u(te,t))return te[t];var n=G(t);return te[t]=n,ne[n]=t,n},keyFor:function(e){if(!f(e))throw TypeError(e+" is not a symbol");if(u(ne,e))return ne[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?w(e):ce(w(e),t)},defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:de}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:he,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:c((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(g(e))}}),$)&&r({target:"JSON",stat:!0,forced:!l||c((function(){var e=G();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(h(t)||void 0!==e)&&!f(e))return d(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!f(t))return t}),i[1]=t,$.apply(null,i)}});G[H][q]||M(G[H],q,G[H].valueOf),R(G,B),D[Y]=!0},16066:function(e,t,n){n(97235)("matchAll")},69007:function(e,t,n){n(97235)("match")},83510:function(e,t,n){n(97235)("replace")},41840:function(e,t,n){n(97235)("search")},6982:function(e,t,n){n(97235)("species")},32159:function(e,t,n){n(97235)("split")},96649:function(e,t,n){n(97235)("toPrimitive")},39341:function(e,t,n){n(97235)("toStringTag")},60543:function(e,t,n){n(97235)("unscopables")},92990:function(e,t,n){"use strict";var r=n(90260),i=n(1048),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return i.call(o(this),e,t,arguments.length>2?arguments[2]:void 0)}))},18927:function(e,t,n){"use strict";var r=n(90260),i=n(42092).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},33105:function(e,t,n){"use strict";var r=n(90260),i=n(21285),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return i.apply(o(this),arguments)}))},35035:function(e,t,n){"use strict";var r=n(90260),i=n(42092).filter,o=n(43074),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},7174:function(e,t,n){"use strict";var r=n(90260),i=n(42092).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},74345:function(e,t,n){"use strict";var r=n(90260),i=n(42092).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},44197:function(e,t,n){n(19843)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},76495:function(e,t,n){n(19843)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},32846:function(e,t,n){"use strict";var r=n(90260),i=n(42092).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},98145:function(e,t,n){"use strict";var r=n(63832);(0,n(90260).exportTypedArrayStaticMethod)("from",n(97321),r)},44731:function(e,t,n){"use strict";var r=n(90260),i=n(41318).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},77209:function(e,t,n){"use strict";var r=n(90260),i=n(41318).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},35109:function(e,t,n){n(19843)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},65125:function(e,t,n){n(19843)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},87145:function(e,t,n){n(19843)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},96319:function(e,t,n){"use strict";var r=n(17854),i=n(90260),o=n(66992),a=n(5112)("iterator"),s=r.Uint8Array,l=o.values,c=o.keys,u=o.entries,d=i.aTypedArray,h=i.exportTypedArrayMethod,f=s&&s.prototype[a],p=!!f&&("values"==f.name||null==f.name),g=function(){return l.call(d(this))};h("entries",(function(){return u.call(d(this))})),h("keys",(function(){return c.call(d(this))})),h("values",g,!p),h(a,g,!p)},58867:function(e,t,n){"use strict";var r=n(90260),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=[].join;o("join",(function(e){return a.apply(i(this),arguments)}))},37789:function(e,t,n){"use strict";var r=n(90260),i=n(86583),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return i.apply(o(this),arguments)}))},33739:function(e,t,n){"use strict";var r=n(90260),i=n(42092).map,o=n(66304),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},95206:function(e,t,n){"use strict";var r=n(90260),i=n(63832),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),i)},14483:function(e,t,n){"use strict";var r=n(90260),i=n(53671).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return i(o(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},29368:function(e,t,n){"use strict";var r=n(90260),i=n(53671).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return i(o(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},12056:function(e,t,n){"use strict";var r=n(90260),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var e,t=this,n=i(t).length,r=a(n/2),o=0;o<r;)e=t[o],t[o++]=t[--n],t[n]=e;return t}))},3462:function(e,t,n){"use strict";var r=n(90260),i=n(17466),o=n(84590),a=n(47908),s=n(47293),l=r.aTypedArray;(0,r.exportTypedArrayMethod)("set",(function(e){l(this);var t=o(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=a(e),s=i(r.length),c=0;if(s+t>n)throw RangeError("Wrong length");for(;c<s;)this[t+c]=r[c++]}),s((function(){new Int8Array(1).set({})})))},30678:function(e,t,n){"use strict";var r=n(90260),i=n(66304),o=n(47293),a=r.aTypedArray,s=r.exportTypedArrayMethod,l=[].slice;s("slice",(function(e,t){for(var n=l.call(a(this),e,t),r=i(this),o=0,s=n.length,c=new r(s);s>o;)c[o]=n[o++];return c}),o((function(){new Int8Array(1).slice()})))},27462:function(e,t,n){"use strict";var r=n(90260),i=n(42092).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},33824:function(e,t,n){"use strict";var r=n(90260),i=n(17854),o=n(47293),a=n(13099),s=n(17466),l=n(94362),c=n(68886),u=n(30256),d=n(7392),h=n(98008),f=r.aTypedArray,p=r.exportTypedArrayMethod,g=i.Uint16Array,m=g&&g.prototype.sort,v=!!m&&!o((function(){var e=new g(2);e.sort(null),e.sort({})})),y=!!m&&!o((function(){if(d)return d<74;if(c)return c<67;if(u)return!0;if(h)return h<602;var e,t,n=new g(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(n.sort((function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));p("sort",(function(e){var t=this;if(void 0!==e&&a(e),y)return m.call(t,e);f(t);var n,r=s(t.length),i=Array(r);for(n=0;n<r;n++)i[n]=t[n];for(i=l(t,function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e)),n=0;n<r;n++)t[n]=i[n];return t}),!y||v)},55021:function(e,t,n){"use strict";var r=n(90260),i=n(17466),o=n(51400),a=n(66304),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,l=o(e,r);return new(a(n))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-l))}))},12974:function(e,t,n){"use strict";var r=n(17854),i=n(90260),o=n(47293),a=r.Int8Array,s=i.aTypedArray,l=i.exportTypedArrayMethod,c=[].toLocaleString,u=[].slice,d=!!a&&o((function(){c.call(new a(1))}));l("toLocaleString",(function(){return c.apply(d?u.call(s(this)):s(this),arguments)}),o((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!o((function(){a.prototype.toLocaleString.call([1,2])})))},15016:function(e,t,n){"use strict";var r=n(90260).exportTypedArrayMethod,i=n(47293),o=n(17854).Uint8Array,a=o&&o.prototype||{},s=[].toString,l=[].join;i((function(){s.call({})}))&&(s=function(){return l.call(this)});var c=a.toString!=s;r("toString",s,c)},8255:function(e,t,n){n(19843)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},29135:function(e,t,n){n(19843)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},82472:function(e,t,n){n(19843)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},49743:function(e,t,n){n(19843)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},78221:function(e,t,n){"use strict";var r=n(82109),i=n(41340),o=String.fromCharCode,a=/^[\da-f]{2}$/i,s=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(e){for(var t,n,r=i(e),l="",c=r.length,u=0;u<c;){if("%"===(t=r.charAt(u++)))if("u"===r.charAt(u)){if(n=r.slice(u+1,u+5),s.test(n)){l+=o(parseInt(n,16)),u+=5;continue}}else if(n=r.slice(u,u+2),a.test(n)){l+=o(parseInt(n,16)),u+=2;continue}l+=t}return l}})},4129:function(e,t,n){"use strict";var r,i=n(17854),o=n(12248),a=n(62423),s=n(77710),l=n(29320),c=n(70111),u=n(29909).enforce,d=n(68536),h=!i.ActiveXObject&&"ActiveXObject"in i,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,l);if(d&&h){r=l.getConstructor(p,"WeakMap",!0),a.enable();var m=g.prototype,v=m.delete,y=m.has,b=m.get,w=m.set;o(m,{delete:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen.delete(e)}return v.call(this,e)},has:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new r),y.call(this,e)||t.frozen.has(e)}return y.call(this,e)},get:function(e){if(c(e)&&!f(e)){var t=u(this);return t.frozen||(t.frozen=new r),y.call(this,e)?b.call(this,e):t.frozen.get(e)}return b.call(this,e)},set:function(e,t){if(c(e)&&!f(e)){var n=u(this);n.frozen||(n.frozen=new r),y.call(this,e)?w.call(this,e,t):n.frozen.set(e,t)}else w.call(this,e,t);return this}})}},38478:function(e,t,n){"use strict";n(77710)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(29320))},8628:function(e,t,n){n(9170)},69810:function(e,t,n){"use strict";var r=n(82109),i=n(47908),o=n(17466),a=n(99958),s=n(51223);r({target:"Array",proto:!0},{at:function(e){var t=i(this),n=o(t.length),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},84811:function(e,t,n){"use strict";var r=n(82109),i=n(42092).filterReject,o=n(51223);r({target:"Array",proto:!0},{filterOut:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterOut")},34286:function(e,t,n){"use strict";var r=n(82109),i=n(42092).filterReject,o=n(51223);r({target:"Array",proto:!0},{filterReject:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},77461:function(e,t,n){"use strict";var r=n(82109),i=n(9671).findLastIndex,o=n(51223);r({target:"Array",proto:!0},{findLastIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},3048:function(e,t,n){"use strict";var r=n(82109),i=n(9671).findLast,o=n(51223);r({target:"Array",proto:!0},{findLast:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},1999:function(e,t,n){"use strict";var r=n(82109),i=n(61386),o=n(77475),a=n(51223);r({target:"Array",proto:!0},{groupBy:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,o)}}),a("groupBy")},8e4:function(e,t,n){var r=n(82109),i=n(43157),o=Object.isFrozen,a=function(e,t){if(!o||!i(e)||!o(e))return!1;for(var n,r=0,a=e.length;r<a;)if(!("string"==typeof(n=e[r++])||t&&void 0===n))return!1;return 0!==a};r({target:"Array",stat:!0},{isTemplateObject:function(e){if(!a(e,!0))return!1;var t=e.raw;return!(t.length!==e.length||!a(t,!1))}})},83475:function(e,t,n){"use strict";var r=n(19781),i=n(51223),o=n(47908),a=n(17466),s=n(3070).f;r&&!("lastIndex"in[])&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=o(this),t=a(e.length);return 0==t?0:t-1}}),i("lastIndex"))},46273:function(e,t,n){"use strict";var r=n(19781),i=n(51223),o=n(47908),a=n(17466),s=n(3070).f;r&&!("lastItem"in[])&&(s(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=o(this),t=a(e.length);return 0==t?void 0:e[t-1]},set:function(e){var t=o(this),n=a(t.length);return t[0==n?0:n-1]=e}}),i("lastItem"))},3087:function(e,t,n){"use strict";var r=n(82109),i=n(51223);r({target:"Array",proto:!0},{uniqueBy:n(60956)}),i("uniqueBy")},40787:function(e,t,n){"use strict";var r=n(82109),i=n(19670),o=n(45348)((function(e,t){var n=this,r=n.iterator;return t.resolve(i(n.next.call(r,e))).then((function(e){return i(e).done?(n.done=!0,{done:!0,value:void 0}):{done:!1,value:[n.index++,e.value]}}))}));r({target:"AsyncIterator",proto:!0,real:!0},{asIndexedPairs:function(){return new o({iterator:i(this),index:0})}})},66342:function(e,t,n){"use strict";var r=n(82109),i=n(25787),o=n(68880),a=n(86656),s=n(5112),l=n(66462),c=n(31913),u=s("toStringTag"),d=function(){i(this,d)};d.prototype=l,a(l,u)||o(l,u,"AsyncIterator"),a(l,"constructor")&&l.constructor!==Object||o(l,"constructor",d),r({global:!0,forced:c},{AsyncIterator:d})},23647:function(e,t,n){"use strict";var r=n(82109),i=n(19670),o=n(73002),a=n(45348)((function(e,t){var n=this;return new t((function(r,o){var a=function(){try{t.resolve(i(n.next.call(n.iterator,n.remaining?void 0:e))).then((function(e){try{i(e).done?(n.done=!0,r({done:!0,value:void 0})):n.remaining?(n.remaining--,a()):r({done:!1,value:e.value})}catch(e){o(e)}}),o)}catch(e){o(e)}};a()}))}));r({target:"AsyncIterator",proto:!0,real:!0},{drop:function(e){return new a({iterator:i(this),remaining:o(e)})}})},68216:function(e,t,n){"use strict";var r=n(82109),i=n(12269).every;r({target:"AsyncIterator",proto:!0,real:!0},{every:function(e){return i(this,e)}})},88449:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(19670),a=n(45348)((function(e,t){var n=this,r=n.filterer;return new t((function(i,a){var s=function(){try{t.resolve(o(n.next.call(n.iterator,e))).then((function(e){try{if(o(e).done)n.done=!0,i({done:!0,value:void 0});else{var l=e.value;t.resolve(r(l)).then((function(e){e?i({done:!1,value:l}):s()}),a)}}catch(e){a(e)}}),a)}catch(e){a(e)}};s()}))}));r({target:"AsyncIterator",proto:!0,real:!0},{filter:function(e){return new a({iterator:o(this),filterer:i(e)})}})},31672:function(e,t,n){"use strict";var r=n(82109),i=n(12269).find;r({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return i(this,e)}})},74326:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(19670),a=n(45348),s=n(28523),l=a((function(e,t){var n,r,a=this,l=a.mapper;return new t((function(c,u){var d=function(){try{t.resolve(o(a.next.call(a.iterator,e))).then((function(e){try{o(e).done?(a.done=!0,c({done:!0,value:void 0})):t.resolve(l(e.value)).then((function(e){try{if(void 0!==(r=s(e)))return a.innerIterator=n=o(r.call(e)),a.innerNext=i(n.next),h();u(TypeError(".flatMap callback should return an iterable object"))}catch(e){u(e)}}),u)}catch(e){u(e)}}),u)}catch(e){u(e)}},h=function(){if(n=a.innerIterator)try{t.resolve(o(a.innerNext.call(n))).then((function(e){try{o(e).done?(a.innerIterator=a.innerNext=null,d()):c({done:!1,value:e.value})}catch(e){u(e)}}),u)}catch(e){u(e)}else d()};h()}))}));r({target:"AsyncIterator",proto:!0,real:!0},{flatMap:function(e){return new l({iterator:o(this),mapper:i(e),innerIterator:null,innerNext:null})}})},15581:function(e,t,n){"use strict";var r=n(82109),i=n(12269).forEach;r({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return i(this,e)}})},78631:function(e,t,n){var r=n(82109),i=n(40857),o=n(13099),a=n(19670),s=n(47908),l=n(45348),c=n(28523),u=i.AsyncIterator,d=l((function(e){return a(this.next.call(this.iterator,e))}),!0);r({target:"AsyncIterator",stat:!0},{from:function(e){var t,n=s(e),r=c(n);if(null!=r){if((t=o(r).call(n))instanceof u)return t}else t=n;return new d({iterator:t})}})},57640:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(19670),a=n(45348)((function(e,t){var n=this,r=n.mapper;return t.resolve(o(n.next.call(n.iterator,e))).then((function(e){return o(e).done?(n.done=!0,{done:!0,value:void 0}):t.resolve(r(e.value)).then((function(e){return{done:!1,value:e}}))}))}));r({target:"AsyncIterator",proto:!0,real:!0},{map:function(e){return new a({iterator:o(this),mapper:i(e)})}})},25387:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(19670),a=n(35005)("Promise");r({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){var t=o(this),n=i(t.next),r=arguments.length<2,s=r?void 0:arguments[1];return i(e),new a((function(i,l){var c=function(){try{a.resolve(o(n.call(t))).then((function(t){try{if(o(t).done)r?l(TypeError("Reduce of empty iterator with no initial value")):i(s);else{var n=t.value;r?(r=!1,s=n,c()):a.resolve(e(s,n)).then((function(e){s=e,c()}),l)}}catch(e){l(e)}}),l)}catch(e){l(e)}};c()}))}})},64211:function(e,t,n){"use strict";var r=n(82109),i=n(12269).some;r({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return i(this,e)}})},12771:function(e,t,n){"use strict";var r=n(82109),i=n(19670),o=n(73002),a=n(45348)((function(e,t){var n,r,i=this.iterator;return this.remaining--?this.next.call(i,e):(r={done:!0,value:void 0},this.done=!0,void 0!==(n=i.return)?t.resolve(n.call(i)).then((function(){return r})):r)}));r({target:"AsyncIterator",proto:!0,real:!0},{take:function(e){return new a({iterator:i(this),remaining:o(e)})}})},62962:function(e,t,n){"use strict";var r=n(82109),i=n(12269).toArray;r({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return i(this)}})},71790:function(e,t,n){"use strict";var r=n(82109),i=n(80430);"function"==typeof BigInt&&r({target:"BigInt",stat:!0},{range:function(e,t,n){return new i(e,t,n,"bigint",BigInt(0),BigInt(1))}})},51568:function(e,t,n){var r=n(82109),i=n(10313),o=n(35005),a=n(70030),s=function(){var e=o("Object","freeze");return e?e(a(null)):a(null)};r({global:!0},{compositeKey:function(){return i.apply(Object,arguments).get("object",s)}})},26349:function(e,t,n){var r=n(82109),i=n(10313),o=n(35005);r({global:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?o("Symbol").for(arguments[0]):i.apply(null,arguments).get("symbol",o("Symbol"))}})},65743:function(e,t,n){n(35837)},85567:function(e,t,n){"use strict";var r=n(82109),i=n(19670),o=n(54956)((function(e){var t=i(this.next.call(this.iterator,e));if(!(this.done=!!t.done))return[this.index++,t.value]}));r({target:"Iterator",proto:!0,real:!0},{asIndexedPairs:function(){return new o({iterator:i(this),index:0})}})},2490:function(e,t,n){"use strict";var r=n(82109),i=n(17854),o=n(25787),a=n(68880),s=n(47293),l=n(86656),c=n(5112),u=n(13383).IteratorPrototype,d=n(31913),h=c("iterator"),f=c("toStringTag"),p=i.Iterator,g=d||"function"!=typeof p||p.prototype!==u||!s((function(){p({})})),m=function(){o(this,m)};d&&a(u={},h,(function(){return this})),l(u,f)||a(u,f,"Iterator"),!g&&l(u,"constructor")&&u.constructor!==Object||a(u,"constructor",m),m.prototype=u,r({global:!0,forced:g},{Iterator:m})},5332:function(e,t,n){"use strict";var r=n(82109),i=n(19670),o=n(73002),a=n(54956)((function(e){for(var t,n=this.iterator,r=this.next;this.remaining;)if(this.remaining--,t=i(r.call(n)),this.done=!!t.done)return;if(t=i(r.call(n,e)),!(this.done=!!t.done))return t.value}));r({target:"Iterator",proto:!0,real:!0},{drop:function(e){return new a({iterator:i(this),remaining:o(e)})}})},79433:function(e,t,n){"use strict";var r=n(82109),i=n(20408),o=n(13099),a=n(19670);r({target:"Iterator",proto:!0,real:!0},{every:function(e){return a(this),o(e),!i(this,(function(t,n){if(!e(t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},59849:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(19670),a=n(54956),s=n(53411),l=a((function(e){for(var t,n,r=this.iterator,i=this.filterer,a=this.next;;){if(t=o(a.call(r,e)),this.done=!!t.done)return;if(n=t.value,s(r,i,n))return n}}));r({target:"Iterator",proto:!0,real:!0},{filter:function(e){return new l({iterator:o(this),filterer:i(e)})}})},59461:function(e,t,n){"use strict";var r=n(82109),i=n(20408),o=n(13099),a=n(19670);r({target:"Iterator",proto:!0,real:!0},{find:function(e){return a(this),o(e),i(this,(function(t,n){if(e(t))return n(t)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},82499:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(19670),a=n(71246),s=n(54956),l=n(99212),c=s((function(e){for(var t,n,r,s,c=this.iterator,u=this.mapper;;)try{if(s=this.innerIterator){if(!(t=o(this.innerNext.call(s))).done)return t.value;this.innerIterator=this.innerNext=null}if(t=o(this.next.call(c,e)),this.done=!!t.done)return;if(n=u(t.value),void 0===(r=a(n)))throw TypeError(".flatMap callback should return an iterable object");this.innerIterator=s=o(r.call(n)),this.innerNext=i(s.next)}catch(e){throw l(c),e}}));r({target:"Iterator",proto:!0,real:!0},{flatMap:function(e){return new c({iterator:o(this),mapper:i(e),innerIterator:null,innerNext:null})}})},34514:function(e,t,n){"use strict";var r=n(82109),i=n(20408),o=n(19670);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){i(o(this),e,{IS_ITERATOR:!0})}})},26877:function(e,t,n){var r=n(82109),i=n(40857),o=n(13099),a=n(19670),s=n(47908),l=n(54956),c=n(71246),u=i.Iterator,d=l((function(e){var t=a(this.next.call(this.iterator,e));if(!(this.done=!!t.done))return t.value}),!0);r({target:"Iterator",stat:!0},{from:function(e){var t,n=s(e),r=c(n);if(null!=r){if((t=o(r).call(n))instanceof u)return t}else t=n;return new d({iterator:t})}})},9924:function(e,t,n){"use strict";var r=n(82109),i=n(13099),o=n(19670),a=n(54956),s=n(53411),l=a((function(e){var t=this.iterator,n=o(this.next.call(t,e));if(!(this.done=!!n.done))return s(t,this.mapper,n.value)}));r({target:"Iterator",proto:!0,real:!0},{map:function(e){return new l({iterator:o(this),mapper:i(e)})}})},72608:function(e,t,n){"use strict";var r=n(82109),i=n(20408),o=n(13099),a=n(19670);r({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),o(e);var t=arguments.length<2,n=t?void 0:arguments[1];if(i(this,(function(r){t?(t=!1,n=r):n=e(n,r)}),{IS_ITERATOR:!0}),t)throw TypeError("Reduce of empty iterator with no initial value");return n}})},41874:function(e,t,n){"use strict";var r=n(82109),i=n(20408),o=n(13099),a=n(19670);r({target:"Iterator",proto:!0,real:!0},{some:function(e){return a(this),o(e),i(this,(function(t,n){if(e(t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},66043:function(e,t,n){"use strict";var r=n(82109),i=n(19670),o=n(73002),a=n(54956),s=n(99212),l=a((function(e){var t=this.iterator;if(!this.remaining--)return this.done=!0,s(t);var n=i(this.next.call(t,e));return(this.done=!!n.done)?void 0:n.value}));r({target:"Iterator",proto:!0,real:!0},{take:function(e){return new l({iterator:i(this),remaining:o(e)})}})},23748:function(e,t,n){"use strict";var r=n(82109),i=n(20408),o=n(19670),a=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return i(o(this),a,{that:e,IS_ITERATOR:!0}),e}})},10072:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(34092);r({target:"Map",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},23042:function(e,t,n){"use strict";n(82109)({target:"Map",proto:!0,real:!0,forced:n(31913)},{emplace:n(37502)})},99137:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(49974),s=n(54647),l=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{every:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e,n,i){if(!r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},71957:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(49974),c=n(36707),u=n(54647),d=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{filter:function(e){var t=a(this),n=u(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(c(t,o("Map"))),h=s(i.set);return d(n,(function(e,n){r(n,e,t)&&h.call(i,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},103:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(49974),s=n(54647),l=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{findKey:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n,i){if(r(n,e,t))return i(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},96306:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(49974),s=n(54647),l=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{find:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n,i){if(r(n,e,t))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},8582:function(e,t,n){n(82109)({target:"Map",stat:!0},{from:n(27296)})},90618:function(e,t,n){"use strict";var r=n(82109),i=n(20408),o=n(13099);r({target:"Map",stat:!0},{groupBy:function(e,t){var n=new this;o(t);var r=o(n.has),a=o(n.get),s=o(n.set);return i(e,(function(e){var i=t(e);r.call(n,i)?a.call(n,i).push(e):s.call(n,i,[e])})),n}})},74592:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(54647),s=n(46465),l=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{includes:function(e){return l(a(o(this)),(function(t,n,r){if(s(n,e))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},88440:function(e,t,n){"use strict";var r=n(82109),i=n(20408),o=n(13099);r({target:"Map",stat:!0},{keyBy:function(e,t){var n=new this;o(t);var r=o(n.set);return i(e,(function(e){r.call(n,t(e),e)})),n}})},58276:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(54647),s=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return s(a(o(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},35082:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(49974),c=n(36707),u=n(54647),d=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{mapKeys:function(e){var t=a(this),n=u(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(c(t,o("Map"))),h=s(i.set);return d(n,(function(e,n){h.call(i,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},12813:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(49974),c=n(36707),u=n(54647),d=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{mapValues:function(e){var t=a(this),n=u(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(c(t,o("Map"))),h=s(i.set);return d(n,(function(e,n){h.call(i,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},18222:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(13099),s=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{merge:function(e){for(var t=o(this),n=a(t.set),r=arguments.length,i=0;i<r;)s(arguments[i++],n,{that:t,AS_ENTRIES:!0});return t}})},24838:function(e,t,n){n(82109)({target:"Map",stat:!0},{of:n(82044)})},38563:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(13099),s=n(54647),l=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(e){var t=o(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(a(e),l(n,(function(n,o){r?(r=!1,i=o):i=e(i,o,n,t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw TypeError("Reduce of empty map with no initial value");return i}})},50336:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(49974),s=n(54647),l=n(20408);r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n,i){if(r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},74442:function(e,t,n){"use strict";n(82109)({target:"Map",proto:!0,real:!0,forced:n(31913)},{updateOrInsert:n(8154)})},7512:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(13099);r({target:"Map",proto:!0,real:!0,forced:i},{update:function(e,t){var n=o(this),r=arguments.length;a(t);var i=n.has(e);if(!i&&r<3)throw TypeError("Updating absent value");var s=i?n.get(e):a(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(s,e,n)),n}})},87713:function(e,t,n){"use strict";n(82109)({target:"Map",proto:!0,real:!0,forced:n(31913)},{upsert:n(8154)})},46603:function(e,t,n){var r=n(82109),i=Math.min,o=Math.max;r({target:"Math",stat:!0},{clamp:function(e,t,n){return i(n,o(t,e))}})},70100:function(e,t,n){n(82109)({target:"Math",stat:!0},{DEG_PER_RAD:Math.PI/180})},10490:function(e,t,n){var r=n(82109),i=180/Math.PI;r({target:"Math",stat:!0},{degrees:function(e){return e*i}})},13187:function(e,t,n){var r=n(82109),i=n(47103),o=n(26130);r({target:"Math",stat:!0},{fscale:function(e,t,n,r,a){return o(i(e,t,n,r,a))}})},60092:function(e,t,n){n(82109)({target:"Math",stat:!0},{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},19041:function(e,t,n){n(82109)({target:"Math",stat:!0},{imulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,a=i&n,s=r>>16,l=i>>16,c=(s*a>>>0)+(o*a>>>16);return s*l+(c>>16)+((o*l>>>0)+(c&n)>>16)}})},30666:function(e,t,n){n(82109)({target:"Math",stat:!0},{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},51638:function(e,t,n){n(82109)({target:"Math",stat:!0},{RAD_PER_DEG:180/Math.PI})},62975:function(e,t,n){var r=n(82109),i=Math.PI/180;r({target:"Math",stat:!0},{radians:function(e){return e*i}})},15728:function(e,t,n){n(82109)({target:"Math",stat:!0},{scale:n(47103)})},46056:function(e,t,n){var r=n(82109),i=n(19670),o=n(77023),a=n(24994),s=n(29909),l="Seeded Random",c=l+" Generator",u=s.set,d=s.getterFor(c),h=a((function(e){u(this,{type:c,seed:e%2147483647})}),l,(function(){var e=d(this);return{value:(1073741823&(e.seed=(1103515245*e.seed+12345)%2147483647))/1073741823,done:!1}}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=i(e).seed;if(!o(t))throw TypeError('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new h(t)}})},44299:function(e,t,n){n(82109)({target:"Math",stat:!0},{signbit:function(e){return(e=+e)==e&&0==e?1/e==-1/0:e<0}})},5162:function(e,t,n){n(82109)({target:"Math",stat:!0},{umulh:function(e,t){var n=65535,r=+e,i=+t,o=r&n,a=i&n,s=r>>>16,l=i>>>16,c=(s*a>>>0)+(o*a>>>16);return s*l+(c>>>16)+((o*l>>>0)+(c&n)>>>16)}})},50292:function(e,t,n){"use strict";var r=n(82109),i=n(99958),o=n(83009),a="Invalid number representation",s=/^[\da-z]+$/;r({target:"Number",stat:!0},{fromString:function(e,t){var n,r,l=1;if("string"!=typeof e)throw TypeError(a);if(!e.length)throw SyntaxError(a);if("-"==e.charAt(0)&&(l=-1,!(e=e.slice(1)).length))throw SyntaxError(a);if((n=void 0===t?10:i(t))<2||n>36)throw RangeError("Invalid radix");if(!s.test(e)||(r=o(e,n)).toString(n)!==e)throw SyntaxError(a);return l*r}})},29427:function(e,t,n){"use strict";var r=n(82109),i=n(80430);r({target:"Number",stat:!0},{range:function(e,t,n){return new i(e,t,n,"number",0,1)}})},96936:function(e,t,n){n(82109)({target:"Object",stat:!0},{hasOwn:n(86656)})},99964:function(e,t,n){"use strict";var r=n(82109),i=n(60996);r({target:"Object",stat:!0},{iterateEntries:function(e){return new i(e,"entries")}})},75238:function(e,t,n){"use strict";var r=n(82109),i=n(60996);r({target:"Object",stat:!0},{iterateKeys:function(e){return new i(e,"keys")}})},4987:function(e,t,n){"use strict";var r=n(82109),i=n(60996);r({target:"Object",stat:!0},{iterateValues:function(e){return new i(e,"values")}})},1025:function(e,t,n){"use strict";var r=n(82109),i=n(19781),o=n(96340),a=n(13099),s=n(19670),l=n(70111),c=n(25787),u=n(3070).f,d=n(68880),h=n(12248),f=n(18554),p=n(20408),g=n(842),m=n(5112),v=n(29909),y=m("observable"),b=v.get,w=v.set,_=function(e){return null==e?void 0:a(e)},x=function(e){var t=e.cleanup;if(t){e.cleanup=void 0;try{t()}catch(e){g(e)}}},E=function(e){return void 0===e.observer},C=function(e){var t=e.facade;if(!i){t.closed=!0;var n=e.subscriptionObserver;n&&(n.closed=!0)}e.observer=void 0},k=function(e,t){var n,r=w(this,{cleanup:void 0,observer:s(e),subscriptionObserver:void 0});i||(this.closed=!1);try{(n=_(e.start))&&n.call(e,this)}catch(e){g(e)}if(!E(r)){var o=r.subscriptionObserver=new S(this);try{var l=t(o),c=l;null!=l&&(r.cleanup="function"==typeof l.unsubscribe?function(){c.unsubscribe()}:a(l))}catch(e){return void o.error(e)}E(r)&&x(r)}};k.prototype=h({},{unsubscribe:function(){var e=b(this);E(e)||(C(e),x(e))}}),i&&u(k.prototype,"closed",{configurable:!0,get:function(){return E(b(this))}});var S=function(e){w(this,{subscription:e}),i||(this.closed=!1)};S.prototype=h({},{next:function(e){var t=b(b(this).subscription);if(!E(t)){var n=t.observer;try{var r=_(n.next);r&&r.call(n,e)}catch(e){g(e)}}},error:function(e){var t=b(b(this).subscription);if(!E(t)){var n=t.observer;C(t);try{var r=_(n.error);r?r.call(n,e):g(e)}catch(e){g(e)}x(t)}},complete:function(){var e=b(b(this).subscription);if(!E(e)){var t=e.observer;C(e);try{var n=_(t.complete);n&&n.call(t)}catch(e){g(e)}x(e)}}}),i&&u(S.prototype,"closed",{configurable:!0,get:function(){return E(b(b(this).subscription))}});var T=function(e){c(this,T,"Observable"),w(this,{subscriber:a(e)})};h(T.prototype,{subscribe:function(e){var t=arguments.length;return new k("function"==typeof e?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:l(e)?e:{},b(this).subscriber)}}),h(T,{from:function(e){var t="function"==typeof this?this:T,n=_(s(e)[y]);if(n){var r=s(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var i=f(e);return new t((function(e){p(i,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))},of:function(){for(var e="function"==typeof this?this:T,t=arguments.length,n=new Array(t),r=0;r<t;)n[r]=arguments[r++];return new e((function(e){for(var r=0;r<t;r++)if(e.next(n[r]),e.closed)return;e.complete()}))}}),d(T.prototype,y,(function(){return this})),r({global:!0},{Observable:T}),o("Observable")},97314:function(e,t,n){n(17922)},96290:function(e,t,n){n(34668)},77479:function(e,t,n){"use strict";var r=n(82109),i=n(78523),o=n(12534);r({target:"Promise",stat:!0},{try:function(e){var t=i.f(this),n=o(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},34582:function(e,t,n){var r=n(82109),i=n(38845),o=n(19670),a=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:a(arguments[3]);s(e,t,o(n),r)}})},47896:function(e,t,n){var r=n(82109),i=n(38845),o=n(19670),a=i.toKey,s=i.getMap,l=i.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),r=s(o(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var i=l.get(t);return i.delete(n),!!i.size||l.delete(t)}})},98558:function(e,t,n){var r=n(82109),i=n(70189),o=n(38845),a=n(19670),s=n(79518),l=n(20408),c=o.keys,u=o.toKey,d=function(e,t){var n=c(e,t),r=s(e);if(null===r)return n;var o,a,u=d(r,t);return u.length?n.length?(o=new i(n.concat(u)),l(o,(a=[]).push,{that:a}),a):u:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:u(arguments[1]);return d(a(e),t)}})},12647:function(e,t,n){var r=n(82109),i=n(38845),o=n(19670),a=n(79518),s=i.has,l=i.get,c=i.toKey,u=function(e,t,n){if(s(e,t,n))return l(e,t,n);var r=a(t);return null!==r?u(e,r,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return u(e,o(t),n)}})},97507:function(e,t,n){var r=n(82109),i=n(38845),o=n(19670),a=i.keys,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:s(arguments[1]);return a(o(e),t)}})},84018:function(e,t,n){var r=n(82109),i=n(38845),o=n(19670),a=i.get,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return a(e,o(t),n)}})},61605:function(e,t,n){var r=n(82109),i=n(38845),o=n(19670),a=n(79518),s=i.has,l=i.toKey,c=function(e,t,n){if(s(e,t,n))return!0;var r=a(t);return null!==r&&c(e,r,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:l(arguments[2]);return c(e,o(t),n)}})},49076:function(e,t,n){var r=n(82109),i=n(38845),o=n(19670),a=i.has,s=i.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return a(e,o(t),n)}})},34999:function(e,t,n){var r=n(82109),i=n(38845),o=n(19670),a=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){s(e,t,o(n),a(r))}}})},88921:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(31501);r({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return o.apply(this,arguments)}})},96248:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(34092);r({target:"Set",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},13599:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(36707),c=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=a(this),n=new(l(t,o("Set")))(t),r=s(n.delete);return c(e,(function(e){r.call(n,e)})),n}})},11477:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(49974),s=n(96767),l=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{every:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return!l(n,(function(e,n){if(!r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},64362:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(49974),c=n(36707),u=n(96767),d=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{filter:function(e){var t=a(this),n=u(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(c(t,o("Set"))),h=s(i.add);return d(n,(function(e){r(e,e,t)&&h.call(i,e)}),{IS_ITERATOR:!0}),i}})},15389:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(49974),s=n(96767),l=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{find:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(e,e,t))return n(e)}),{IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},46006:function(e,t,n){n(82109)({target:"Set",stat:!0},{from:n(27296)})},90401:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(36707),c=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=a(this),n=new(l(t,o("Set"))),r=s(t.has),i=s(n.add);return c(e,(function(e){r.call(t,e)&&i.call(n,e)})),n}})},45164:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(13099),s=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:function(e){var t=o(this),n=a(t.has);return!s(e,(function(e,r){if(!0===n.call(t,e))return r()}),{INTERRUPTED:!0}).stopped}})},91238:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(18554),c=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=l(this),n=a(e),r=n.has;return"function"!=typeof r&&(n=new(o("Set"))(e),r=s(n.has)),!c(t,(function(e,t){if(!1===r.call(n,e))return t()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},54837:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(13099),s=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:function(e){var t=o(this),n=a(t.has);return!s(e,(function(e,r){if(!1===n.call(t,e))return r()}),{INTERRUPTED:!0}).stopped}})},87485:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(96767),s=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=o(this),n=a(t),r=void 0===e?",":String(e),i=[];return s(n,i.push,{that:i,IS_ITERATOR:!0}),i.join(r)}})},56767:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(49974),c=n(36707),u=n(96767),d=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{map:function(e){var t=a(this),n=u(t),r=l(e,arguments.length>1?arguments[1]:void 0,3),i=new(c(t,o("Set"))),h=s(i.add);return d(n,(function(e){h.call(i,r(e,e,t))}),{IS_ITERATOR:!0}),i}})},69916:function(e,t,n){n(82109)({target:"Set",stat:!0},{of:n(82044)})},76651:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(13099),s=n(96767),l=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(e){var t=o(this),n=s(t),r=arguments.length<2,i=r?void 0:arguments[1];if(a(e),l(n,(function(n){r?(r=!1,i=n):i=e(i,n,n,t)}),{IS_ITERATOR:!0}),r)throw TypeError("Reduce of empty set with no initial value");return i}})},61437:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(19670),a=n(49974),s=n(96767),l=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{some:function(e){var t=o(this),n=s(t),r=a(e,arguments.length>1?arguments[1]:void 0,3);return l(n,(function(e,n){if(r(e,e,t))return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},35285:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(36707),c=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=a(this),n=new(l(t,o("Set")))(t),r=s(n.delete),i=s(n.add);return c(e,(function(e){r.call(n,e)||i.call(n,e)})),n}})},39865:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(35005),a=n(19670),s=n(13099),l=n(36707),c=n(20408);r({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=a(this),n=new(l(t,o("Set")))(t);return c(e,s(n.add),{that:n}),n}})},86035:function(e,t,n){"use strict";var r=n(82109),i=n(28710).charAt;r({target:"String",proto:!0,forced:n(47293)((function(){return"𠮷"!=="𠮷".at(0)}))},{at:function(e){return i(this,e)}})},67501:function(e,t,n){"use strict";var r=n(82109),i=n(24994),o=n(84488),a=n(41340),s=n(29909),l=n(28710),c=l.codeAt,u=l.charAt,d="String Iterator",h=s.set,f=s.getterFor(d),p=i((function(e){h(this,{type:d,string:e,index:0})}),"String",(function(){var e,t=f(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=u(n,r),t.index+=e.length,{value:{codePoint:c(e,0),position:r},done:!1})}));r({target:"String",proto:!0},{codePoints:function(){return new p(a(o(this)))}})},13728:function(e,t,n){n(76373)},27207:function(e,t,n){n(68757)},609:function(e,t,n){n(97235)("asyncDispose")},21568:function(e,t,n){n(97235)("dispose")},54534:function(e,t,n){n(97235)("matcher")},95090:function(e,t,n){n(97235)("metadata")},48824:function(e,t,n){n(97235)("observable")},44130:function(e,t,n){n(97235)("patternMatch")},35954:function(e,t,n){n(97235)("replaceAll")},38012:function(e,t,n){"use strict";var r=n(90260),i=n(17466),o=n(99958),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=i(t.length),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},26182:function(e,t,n){"use strict";var r=n(90260),i=n(42092).filterReject,o=n(43074),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filterOut",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},8922:function(e,t,n){"use strict";var r=n(90260),i=n(42092).filterReject,o=n(43074),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filterReject",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},1118:function(e,t,n){"use strict";var r=n(90260),i=n(9671).findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},37380:function(e,t,n){"use strict";var r=n(90260),i=n(9671).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},5835:function(e,t,n){"use strict";var r=n(90260),i=n(61386),o=n(66304),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return i(a(this),e,t,o)}))},84444:function(e,t,n){"use strict";var r=n(90260),i=n(60956),o=n(43074),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("uniqueBy",(function(e){return o(this,i.call(a(this),e))}))},78206:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(34092);r({target:"WeakMap",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},12714:function(e,t,n){"use strict";n(82109)({target:"WeakMap",proto:!0,real:!0,forced:n(31913)},{emplace:n(37502)})},76478:function(e,t,n){n(82109)({target:"WeakMap",stat:!0},{from:n(27296)})},79715:function(e,t,n){n(82109)({target:"WeakMap",stat:!0},{of:n(82044)})},5964:function(e,t,n){"use strict";n(82109)({target:"WeakMap",proto:!0,real:!0,forced:n(31913)},{upsert:n(8154)})},43561:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(31501);r({target:"WeakSet",proto:!0,real:!0,forced:i},{addAll:function(){return o.apply(this,arguments)}})},32049:function(e,t,n){"use strict";var r=n(82109),i=n(31913),o=n(34092);r({target:"WeakSet",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},86020:function(e,t,n){n(82109)({target:"WeakSet",stat:!0},{from:n(27296)})},56585:function(e,t,n){n(82109)({target:"WeakSet",stat:!0},{of:n(82044)})},54747:function(e,t,n){var r=n(17854),i=n(48324),o=n(18533),a=n(68880);for(var s in i){var l=r[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(e){c.forEach=o}}},33948:function(e,t,n){var r=n(17854),i=n(48324),o=n(66992),a=n(68880),s=n(5112),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var d in i){var h=r[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{a(f,l,u)}catch(e){f[l]=u}if(f[c]||a(f,c,d),i[d])for(var p in o)if(f[p]!==o[p])try{a(f,p,o[p])}catch(e){f[p]=o[p]}}}},84633:function(e,t,n){var r=n(82109),i=n(17854),o=n(20261);r({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:o.set,clearImmediate:o.clear})},85844:function(e,t,n){var r=n(82109),i=n(17854),o=n(95948),a=n(35268),s=i.process;r({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=a&&s.domain;o(t?t.bind(e):e)}})},32564:function(e,t,n){var r=n(82109),i=n(17854),o=n(88113),a=[].slice,s=function(e){return function(t,n){var r=arguments.length>2,i=r?a.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},41637:function(e,t,n){"use strict";n(66992);var r=n(82109),i=n(35005),o=n(590),a=n(31320),s=n(12248),l=n(58003),c=n(24994),u=n(29909),d=n(25787),h=n(86656),f=n(49974),p=n(70648),g=n(19670),m=n(70111),v=n(41340),y=n(70030),b=n(79114),w=n(18554),_=n(71246),x=n(5112),E=i("fetch"),C=i("Request"),k=C&&C.prototype,S=i("Headers"),T=x("iterator"),M="URLSearchParams",O=M+"Iterator",L=u.set,A=u.getterFor(M),D=u.getterFor(O),N=/\+/g,P=Array(4),I=function(e){return P[e-1]||(P[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},j=function(e){try{return decodeURIComponent(e)}catch(t){return e}},R=function(e){var t=e.replace(N," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(I(n--),j);return t}},F=/[!'()~]|%20/g,z={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Y=function(e){return z[e]},B=function(e){return encodeURIComponent(e).replace(F,Y)},H=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:R(r.shift()),value:R(r.join("="))}))},q=function(e){this.entries.length=0,H(this.entries,e)},U=function(e,t){if(e<t)throw TypeError("Not enough arguments")},V=c((function(e,t){L(this,{type:O,iterator:w(A(e).entries),kind:t})}),"Iterator",(function(){var e=D(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),W=function(){d(this,W,M);var e,t,n,r,i,o,a,s,l,c=arguments.length>0?arguments[0]:void 0,u=[];if(L(this,{type:M,entries:u,updateURL:function(){},updateSearchParams:q}),void 0!==c)if(m(c))if("function"==typeof(e=_(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(o=(i=w(g(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");u.push({key:v(a.value),value:v(s.value)})}else for(l in c)h(c,l)&&u.push({key:l,value:v(c[l])});else H(u,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:v(c))},G=W.prototype;if(s(G,{append:function(e,t){U(arguments.length,2);var n=A(this);n.entries.push({key:v(e),value:v(t)}),n.updateURL()},delete:function(e){U(arguments.length,1);for(var t=A(this),n=t.entries,r=v(e),i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){U(arguments.length,1);for(var t=A(this).entries,n=v(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){U(arguments.length,1);for(var t=A(this).entries,n=v(e),r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){U(arguments.length,1);for(var t=A(this).entries,n=v(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){U(arguments.length,1);for(var n,r=A(this),i=r.entries,o=!1,a=v(e),s=v(t),l=0;l<i.length;l++)(n=i[l]).key===a&&(o?i.splice(l--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=A(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=A(this).entries,r=f(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new V(this,"keys")},values:function(){return new V(this,"values")},entries:function(){return new V(this,"entries")}},{enumerable:!0}),a(G,T,G.entries),a(G,"toString",(function(){for(var e,t=A(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(B(e.key)+"="+B(e.value));return n.join("&")}),{enumerable:!0}),l(W,M),r({global:!0,forced:!o},{URLSearchParams:W}),!o&&"function"==typeof S){var $=function(e){if(m(e)){var t,n=e.body;if(p(n)===M)return(t=e.headers?new S(e.headers):new S).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),y(e,{body:b(0,String(n)),headers:b(0,t)})}return e};if("function"==typeof E&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(e,arguments.length>1?$(arguments[1]):{})}}),"function"==typeof C){var K=function(e){return d(this,K,"Request"),new C(e,arguments.length>1?$(arguments[1]):{})};k.constructor=K,K.prototype=k,r({global:!0,forced:!0},{Request:K})}}e.exports={URLSearchParams:W,getState:A}},60285:function(e,t,n){"use strict";n(78783);var r,i=n(82109),o=n(19781),a=n(590),s=n(17854),l=n(36048),c=n(31320),u=n(25787),d=n(86656),h=n(21574),f=n(48457),p=n(28710).codeAt,g=n(33197),m=n(41340),v=n(58003),y=n(41637),b=n(29909),w=s.URL,_=y.URLSearchParams,x=y.getState,E=b.set,C=b.getterFor("URL"),k=Math.floor,S=Math.pow,T="Invalid scheme",M="Invalid host",O="Invalid port",L=/[A-Za-z]/,A=/[\d+-.A-Za-z]/,D=/\d/,N=/^0x/i,P=/^[0-7]+$/,I=/^\d+$/,j=/^[\dA-Fa-f]+$/,R=/[\0\t\n\r #%/:<>?@[\\\]^|]/,F=/[\0\t\n\r #/:<>?@[\\\]^|]/,z=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Y=/[\t\n\r]/g,B=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return M;if(!(n=q(t.slice(1,-1))))return M;e.host=n}else if(X(e)){if(t=g(t),R.test(t))return M;if(null===(n=H(t)))return M;e.host=n}else{if(F.test(t))return M;for(n="",r=f(t),i=0;i<r.length;i++)n+=K(r[i],V);e.host=n}},H=function(e){var t,n,r,i,o,a,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=l[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=N.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?I:8==o?P:j).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=S(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*S(256,3-r);return s},q=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,u=++c}for(;h();){if(8==c)return;if(":"!=h()){for(t=n=0;n<4&&j.test(h());)t=16*t+parseInt(h(),16),d++,n++;if("."==h()){if(0==n)return;if(d-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;d++}if(!D.test(h()))return;for(;D.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;d++}l[c]=256*l[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l},U=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=k(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},V={},W=h({},V,{" ":1,'"':1,"<":1,">":1,"`":1}),G=h({},W,{"#":1,"?":1,"{":1,"}":1}),$=h({},G,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(e){return d(J,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},Q=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},ee=function(e,t){var n;return 2==e.length&&L.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},te=function(e){var t;return e.length>1&&ee(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ne=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&ee(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},ie={},oe={},ae={},se={},le={},ce={},ue={},de={},he={},fe={},pe={},ge={},me={},ve={},ye={},be={},we={},_e={},xe={},Ee={},Ce={},ke=function(e,t,n,i){var o,a,s,l,c,u=n||ie,h=0,p="",g=!1,m=!1,v=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(z,"")),t=t.replace(Y,""),o=f(t);h<=o.length;){switch(a=o[h],u){case ie:if(!a||!L.test(a)){if(n)return T;u=ae;continue}p+=a.toLowerCase(),u=oe;break;case oe:if(a&&(A.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return T;p="",u=ae,h=0;continue}if(n&&(X(e)!=d(J,p)||"file"==p&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(X(e)&&J[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?u=ve:X(e)&&i&&i.scheme==e.scheme?u=se:X(e)?u=de:"/"==o[h+1]?(u=le,h++):(e.cannotBeABaseURL=!0,e.path.push(""),u=xe)}break;case ae:if(!i||i.cannotBeABaseURL&&"#"!=a)return T;if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,u=Ce;break}u="file"==i.scheme?ve:ce;continue;case se:if("/"!=a||"/"!=o[h+1]){u=ce;continue}u=he,h++;break;case le:if("/"==a){u=fe;break}u=_e;continue;case ce:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&X(e))u=ue;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",u=Ee;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),u=_e;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Ce}break;case ue:if(!X(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,u=_e;continue}u=fe}else u=he;break;case de:if(u=he,"/"!=a||"/"!=p.charAt(h+1))continue;h++;break;case he:if("/"!=a&&"\\"!=a){u=fe;continue}break;case fe:if("@"==a){g&&(p="%40"+p),g=!0,s=f(p);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||v){var w=K(b,$);v?e.password+=w:e.username+=w}else v=!0}p=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&X(e)){if(g&&""==p)return"Invalid authority";h-=f(p).length+1,p="",u=pe}else p+=a;break;case pe:case ge:if(n&&"file"==e.scheme){u=be;continue}if(":"!=a||m){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&X(e)){if(X(e)&&""==p)return M;if(n&&""==p&&(Z(e)||null!==e.port))return;if(l=B(e,p))return l;if(p="",u=we,n)return;continue}"["==a?m=!0:"]"==a&&(m=!1),p+=a}else{if(""==p)return M;if(l=B(e,p))return l;if(p="",u=me,n==ge)return}break;case me:if(!D.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&X(e)||n){if(""!=p){var _=parseInt(p,10);if(_>65535)return O;e.port=X(e)&&_===J[e.scheme]?null:_,p=""}if(n)return;u=we;continue}return O}p+=a;break;case ve:if(e.scheme="file","/"==a||"\\"==a)u=ye;else{if(!i||"file"!=i.scheme){u=_e;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",u=Ee;else{if("#"!=a){te(o.slice(h).join(""))||(e.host=i.host,e.path=i.path.slice(),ne(e)),u=_e;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",u=Ce}}break;case ye:if("/"==a||"\\"==a){u=be;break}i&&"file"==i.scheme&&!te(o.slice(h).join(""))&&(ee(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),u=_e;continue;case be:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&ee(p))u=_e;else if(""==p){if(e.host="",n)return;u=we}else{if(l=B(e,p))return l;if("localhost"==e.host&&(e.host=""),n)return;p="",u=we}continue}p+=a;break;case we:if(X(e)){if(u=_e,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(u=_e,"/"!=a))continue}else e.fragment="",u=Ce;else e.query="",u=Ee;break;case _e:if(a==r||"/"==a||"\\"==a&&X(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=p).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(ne(e),"/"==a||"\\"==a&&X(e)||e.path.push("")):re(p)?"/"==a||"\\"==a&&X(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&ee(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",u=Ee):"#"==a&&(e.fragment="",u=Ce)}else p+=K(a,G);break;case xe:"?"==a?(e.query="",u=Ee):"#"==a?(e.fragment="",u=Ce):a!=r&&(e.path[0]+=K(a,V));break;case Ee:n||"#"!=a?a!=r&&("'"==a&&X(e)?e.query+="%27":e.query+="#"==a?"%23":K(a,V)):(e.fragment="",u=Ce);break;case Ce:a!=r&&(e.fragment+=K(a,W))}h++}},Se=function(e){var t,n,r=u(this,Se,"URL"),i=arguments.length>1?arguments[1]:void 0,a=m(e),s=E(r,{type:"URL"});if(void 0!==i)if(i instanceof Se)t=C(i);else if(n=ke(t={},m(i)))throw TypeError(n);if(n=ke(s,a,null,t))throw TypeError(n);var l=s.searchParams=new _,c=x(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},o||(r.href=Me.call(r),r.origin=Oe.call(r),r.protocol=Le.call(r),r.username=Ae.call(r),r.password=De.call(r),r.host=Ne.call(r),r.hostname=Pe.call(r),r.port=Ie.call(r),r.pathname=je.call(r),r.search=Re.call(r),r.searchParams=Fe.call(r),r.hash=ze.call(r))},Te=Se.prototype,Me=function(){var e=C(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",Z(e)&&(c+=n+(r?":"+r:"")+"@"),c+=U(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Oe=function(){var e=C(this),t=e.scheme,n=e.port;if("blob"==t)try{return new Se(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&X(e)?t+"://"+U(e.host)+(null!==n?":"+n:""):"null"},Le=function(){return C(this).scheme+":"},Ae=function(){return C(this).username},De=function(){return C(this).password},Ne=function(){var e=C(this),t=e.host,n=e.port;return null===t?"":null===n?U(t):U(t)+":"+n},Pe=function(){var e=C(this).host;return null===e?"":U(e)},Ie=function(){var e=C(this).port;return null===e?"":String(e)},je=function(){var e=C(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Re=function(){var e=C(this).query;return e?"?"+e:""},Fe=function(){return C(this).searchParams},ze=function(){var e=C(this).fragment;return e?"#"+e:""},Ye=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&l(Te,{href:Ye(Me,(function(e){var t=C(this),n=m(e),r=ke(t,n);if(r)throw TypeError(r);x(t.searchParams).updateSearchParams(t.query)})),origin:Ye(Oe),protocol:Ye(Le,(function(e){var t=C(this);ke(t,m(e)+":",ie)})),username:Ye(Ae,(function(e){var t=C(this),n=f(m(e));if(!Q(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=K(n[r],$)}})),password:Ye(De,(function(e){var t=C(this),n=f(m(e));if(!Q(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=K(n[r],$)}})),host:Ye(Ne,(function(e){var t=C(this);t.cannotBeABaseURL||ke(t,m(e),pe)})),hostname:Ye(Pe,(function(e){var t=C(this);t.cannotBeABaseURL||ke(t,m(e),ge)})),port:Ye(Ie,(function(e){var t=C(this);Q(t)||(""==(e=m(e))?t.port=null:ke(t,e,me))})),pathname:Ye(je,(function(e){var t=C(this);t.cannotBeABaseURL||(t.path=[],ke(t,m(e),we))})),search:Ye(Re,(function(e){var t=C(this);""==(e=m(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ke(t,e,Ee)),x(t.searchParams).updateSearchParams(t.query)})),searchParams:Ye(Fe),hash:Ye(ze,(function(e){var t=C(this);""!=(e=m(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ke(t,e,Ce)):t.fragment=null}))}),c(Te,"toJSON",(function(){return Me.call(this)}),{enumerable:!0}),c(Te,"toString",(function(){return Me.call(this)}),{enumerable:!0}),w){var Be=w.createObjectURL,He=w.revokeObjectURL;Be&&c(Se,"createObjectURL",(function(e){return Be.apply(w,arguments)})),He&&c(Se,"revokeObjectURL",(function(e){return He.apply(w,arguments)}))}v(Se,"URL"),i({global:!0,forced:!a,sham:!o},{URL:Se})},83753:function(e,t,n){"use strict";n(82109)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},70681:function(e,t,n){e.exports={graphlib:n(70574),layout:n(98123),debug:n(27570),util:{time:n(11138).time,notime:n(11138).notime},version:n(88177)}},92188:function(e,t,n){"use strict";var r=n(38436),i=n(74079);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?i(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},i={};function o(a){r.has(i,a)||(i[a]=!0,n[a]=!0,r.forEach(e.outEdges(a),(function(e){r.has(n,e.w)?t.push(e):o(e.w)})),delete n[a])}return r.forEach(e.nodes(),o),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},61133:function(e,t,n){var r=n(38436),i=n(11138);function o(e,t,n,r,o,a){var s={width:0,height:0,rank:a,borderType:t},l=o[t][a-1],c=i.addDummyNode(e,"border",s,n);o[t][a]=c,e.setParent(c,r),l&&e.setEdge(l,c,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var i=e.children(n),a=e.node(n);if(i.length&&r.forEach(i,t),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var s=a.minRank,l=a.maxRank+1;s<l;++s)o(e,"borderLeft","_bl",n,a,s),o(e,"borderRight","_br",n,a,s)}}))}},53258:function(e,t,n){"use strict";var r=n(38436);function i(e){r.forEach(e.nodes(),(function(t){o(e.node(t))})),r.forEach(e.edges(),(function(t){o(e.edge(t))}))}function o(e){var t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function s(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||i(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,s),r.has(n,"x")&&s(n)}))}(e),i(e))}}},77822:function(e){function t(){var e={};e._next=e._prev=e,this._sentinel=e}function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function r(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=t,t.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return n(t),t},t.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},t.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,r)),n=n._prev;return"["+e.join(", ")+"]"}},27570:function(e,t,n){var r=n(38436),i=n(11138),o=n(70574).Graph;e.exports={debugOrdering:function(e){var t=i.buildLayerMatrix(e),n=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var i="layer"+t;n.setNode(i,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},70574:function(e,t,n){var r;try{r=n(28282)}catch(e){}r||(r=window.graphlib),e.exports=r},74079:function(e,t,n){var r=n(38436),i=n(70574).Graph,o=n(77822);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new i,a=0,s=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,i=t(e),o=r+i;n.setEdge(e.v,e.w,o),s=Math.max(s,n.node(e.v).out+=i),a=Math.max(a,n.node(e.w).in+=i)}));var c=r.range(s+a+3).map((function(){return new o})),u=a+1;return r.forEach(n.nodes(),(function(e){l(c,u,n.node(e))})),{graph:n,buckets:c,zeroIdx:u}}(e,t||a),c=function(e,t,n){var r,i=[],o=t[t.length-1],a=t[0];for(;e.nodeCount();){for(;r=a.dequeue();)s(e,t,n,r);for(;r=o.dequeue();)s(e,t,n,r);if(e.nodeCount())for(var l=t.length-2;l>0;--l)if(r=t[l].dequeue()){i=i.concat(s(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(t){return e.outEdges(t.v,t.w)})),!0)};var a=r.constant(1);function s(e,t,n,i,o){var a=o?[]:void 0;return r.forEach(e.inEdges(i.v),(function(r){var i=e.edge(r),s=e.node(r.v);o&&a.push({v:r.v,w:r.w}),s.out-=i,l(t,n,s)})),r.forEach(e.outEdges(i.v),(function(r){var i=e.edge(r),o=r.w,a=e.node(o);a.in-=i,l(t,n,a)})),e.removeNode(i.v),a}function l(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},98123:function(e,t,n){"use strict";var r=n(38436),i=n(92188),o=n(45995),a=n(78093),s=n(11138).normalizeRanks,l=n(24219),c=n(11138).removeEmptyRanks,u=n(72981),d=n(61133),h=n(53258),f=n(53408),p=n(17873),g=n(11138),m=n(70574).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=S(e.graph());return t.setGraph(r.merge({},y,k(n,v),r.pick(n,b))),r.forEach(e.nodes(),(function(n){var i=S(e.node(n));t.setNode(n,r.defaults(k(i,w),_)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var i=S(e.edge(n));t.setEdge(n,r.merge({},E,k(i,x),r.pick(i,C)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){i.run(e)})),t(" nestingGraph.run",(function(){u.run(e)})),t(" rank",(function(){a(g.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};g.addDummyNode(e,"edge-proxy",i,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){c(e)})),t(" nestingGraph.cleanup",(function(){u.cleanup(e)})),t(" normalizeRanks",(function(){s(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var i=e.node(n);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=r.max(t,i.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){o.run(e)})),t(" parentDummyChains",(function(){l(e)})),t(" addBorderSegments",(function(){d(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,i){var o=e.node(t);o.order=i+n,r.forEach(o.selfEdges,(function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){p(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),o=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),s=e.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(o.y-i.y),n.x=a.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){o.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,a=e.graph(),s=a.marginx||0,l=a.marginy||0;function c(e){var r=e.x,a=e.y,s=e.width,l=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,a-l/2),o=Math.max(o,a+l/2)}r.forEach(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&c(n)})),t-=s,i-=l,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=i})),r.forEach(e.edges(),(function(n){var o=e.edge(n);r.forEach(o.points,(function(e){e.x-=t,e.y-=i})),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)})),a.width=n-t+s,a.height=o-i+l}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,i=e.edge(t),o=e.node(t.v),a=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(a,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){i.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(e.edges(),(function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var v=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},C=["labelpos"];function k(e,t){return r.mapValues(r.pick(e,t),Number)}function S(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},38436:function(e,t,n){var r;try{r={cloneDeep:n(50361),constant:n(75703),defaults:n(91747),each:n(66073),filter:n(63105),find:n(13311),flatten:n(85564),forEach:n(84486),forIn:n(62620),has:n(18721),isUndefined:n(52353),last:n(10928),map:n(35161),mapValues:n(66604),max:n(6162),merge:n(82492),min:n(53632),minBy:n(22762),now:n(7771),pick:n(78718),range:n(96026),reduce:n(54061),sortBy:n(89734),uniqueId:n(73955),values:n(52628),zipObject:n(7287)}}catch(e){}r||(r=window._),e.exports=r},72981:function(e,t,n){var r=n(38436),i=n(11138);function o(e,t,n,a,s,l,c){var u=e.children(c);if(u.length){var d=i.addBorderNode(e,"_bt"),h=i.addBorderNode(e,"_bb"),f=e.node(c);e.setParent(d,c),f.borderTop=d,e.setParent(h,c),f.borderBottom=h,r.forEach(u,(function(r){o(e,t,n,a,s,l,r);var i=e.node(r),u=i.borderTop?i.borderTop:r,f=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=u!==f?1:s-l[c]+1;e.setEdge(d,u,{weight:p,minlen:g,nestingEdge:!0}),e.setEdge(f,h,{weight:p,minlen:g,nestingEdge:!0})})),e.parent(c)||e.setEdge(t,d,{weight:0,minlen:s+l[c]})}else c!==t&&e.setEdge(t,c,{weight:0,minlen:n})}e.exports={run:function(e){var t=i.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};function n(i,o){var a=e.children(i);a&&a.length&&r.forEach(a,(function(e){n(e,o+1)})),t[i]=o}return r.forEach(e.children(),(function(e){n(e,1)})),t}(e),a=r.max(r.values(n))-1,s=2*a+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=s}));var l=function(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;r.forEach(e.children(),(function(r){o(e,t,s,l,a,n,r)})),e.graph().nodeRankFactor=s},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},45995:function(e,t,n){"use strict";var r=n(38436),i=n(11138);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,o,a=t.v,s=e.node(a).rank,l=t.w,c=e.node(l).rank,u=t.name,d=e.edge(t),h=d.labelRank;if(c===s+1)return;for(e.removeEdge(t),o=0,++s;s<c;++o,++s)d.points=[],r={width:0,height:0,edgeLabel:d,edgeObj:t,rank:s},n=i.addDummyNode(e,"edge",r,"_d"),s===h&&(r.width=d.width,r.height=d.height,r.dummy="edge-label",r.labelpos=d.labelpos),e.setEdge(a,n,{weight:d.weight},u),0===o&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,l,{weight:d.weight},u)}(e,t)}))},undo:function(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)}))}}},55093:function(e,t,n){var r=n(38436);e.exports=function(e,t,n){var i,o={};r.forEach(n,(function(n){for(var r,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=o[r],o[r]=s):(a=i,i=s),a&&a!==s)return void t.setEdge(a,s);s=r}}))}},35439:function(e,t,n){var r=n(38436);e.exports=function(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var i=r.reduce(n,(function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}return{v:t}}))}},23128:function(e,t,n){var r=n(38436),i=n(70574).Graph;e.exports=function(e,t,n){var o=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(i){var s=e.node(i),l=e.parent(i);(s.rank===t||s.minRank<=t&&t<=s.maxRank)&&(a.setNode(i),a.setParent(i,l||o),r.forEach(e[n](i),(function(t){var n=t.v===i?t.w:t.v,o=a.edge(n,i),s=r.isUndefined(o)?0:o.weight;a.setEdge(n,i,{weight:e.edge(t).weight+s})})),r.has(s,"minRank")&&a.setNode(i,{borderLeft:s.borderLeft[t],borderRight:s.borderRight[t]}))})),a}},56630:function(e,t,n){"use strict";var r=n(38436);function i(e,t,n){for(var i=r.zipObject(n,r.map(n,(function(e,t){return t}))),o=r.flatten(r.map(t,(function(t){return r.sortBy(r.map(e.outEdges(t),(function(t){return{pos:i[t.w],weight:e.edge(t).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var l=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(o.forEach((function(e){var t=e.pos+a;l[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=l[t+1]),l[t=t-1>>1]+=e.weight;c+=e.weight*n}))),c}e.exports=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=i(e,t[r-1],t[r]);return n}},53408:function(e,t,n){"use strict";var r=n(38436),i=n(2588),o=n(56630),a=n(61026),s=n(23128),l=n(55093),c=n(70574).Graph,u=n(11138);function d(e,t,n){return r.map(t,(function(t){return s(e,t,n)}))}function h(e,t){var n=new c;r.forEach(e,(function(e){var i=e.graph().root,o=a(e,i,n,t);r.forEach(o.vs,(function(t,n){e.node(t).order=n})),l(e,n,o.vs)}))}function f(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=u.maxRank(e),n=d(e,r.range(1,t+1),"inEdges"),a=d(e,r.range(t-1,-1,-1),"outEdges"),s=i(e);f(e,s);for(var l,c=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?n:a,p%4>=2),s=u.buildLayerMatrix(e);var m=o(e,s);m<c&&(g=0,l=r.cloneDeep(s),c=m)}f(e,l)}},2588:function(e,t,n){"use strict";var r=n(38436);e.exports=function(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),i=r.max(r.map(n,(function(t){return e.node(t).rank}))),o=r.map(r.range(i+1),(function(){return[]}));var a=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(a,(function n(i){if(r.has(t,i))return;t[i]=!0;var a=e.node(i);o[a.rank].push(i),r.forEach(e.successors(i),n)})),o}},83678:function(e,t,n){"use strict";var r=n(38436);e.exports=function(e,t){var n={};return r.forEach(e,(function(e,t){var i=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],i=n[e.w];r.isUndefined(t)||r.isUndefined(i)||(i.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function i(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},61026:function(e,t,n){var r=n(38436),i=n(35439),o=n(83678),a=n(87304);e.exports=function e(t,n,s,l){var c=t.children(n),u=t.node(n),d=u?u.borderLeft:void 0,h=u?u.borderRight:void 0,f={};d&&(c=r.filter(c,(function(e){return e!==d&&e!==h})));var p=i(t,c);r.forEach(p,(function(n){if(t.children(n.v).length){var i=e(t,n.v,s,l);f[n.v]=i,r.has(i,"barycenter")&&(o=n,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var g=o(p,s);!function(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(g,f);var m=a(g,l);if(d&&(m.vs=r.flatten([d,m.vs,h],!0),t.predecessors(d).length)){var v=t.node(t.predecessors(d)[0]),y=t.node(t.predecessors(h)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+y.order)/(m.weight+2),m.weight+=2}return m}},87304:function(e,t,n){var r=n(38436),i=n(11138);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n=i.partition(e,(function(e){return r.has(e,"barycenter")})),a=n.lhs,s=r.sortBy(n.rhs,(function(e){return-e.i})),l=[],c=0,u=0,d=0;a.sort((h=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:h?t.i-e.i:e.i-t.i})),d=o(l,s,d),r.forEach(a,(function(e){d+=e.vs.length,l.push(e.vs),c+=e.barycenter*e.weight,u+=e.weight,d=o(l,s,d)}));var h;var f={vs:r.flatten(l,!0)};u&&(f.barycenter=c/u,f.weight=u);return f}},24219:function(e,t,n){var r=n(38436);e.exports=function(e){var t=function(e){var t={},n=0;function i(o){var a=n;r.forEach(e.children(o),i),t[o]={low:a,lim:n++}}return r.forEach(e.children(),i),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){var i,o,a=[],s=[],l=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),a.push(i)}while(i&&(t[i].low>l||c>t[i].lim));o=i,i=r;for(;(i=e.parent(i))!==o;)s.push(i);return{path:a.concat(s.reverse()),lca:o}}(e,t,i.v,i.w),a=o.path,s=o.lca,l=0,c=a[l],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(c=a[l])!==s&&e.node(c).maxRank<r.rank;)l++;c===s&&(u=!1)}if(!u){for(;l<a.length-1&&e.node(c=a[l+1]).minRank<=r.rank;)l++;c=a[l]}e.setParent(n,c),n=e.successors(n)[0]}}))}},3573:function(e,t,n){"use strict";var r=n(38436),i=n(70574).Graph,o=n(11138);function a(e,t){var n={};return r.reduce(t,(function(t,i){var o=0,a=0,s=t.length,c=r.last(i);return r.forEach(i,(function(t,u){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=d?e.node(d).order:s;(d||t===c)&&(r.forEach(i.slice(a,u+1),(function(t){r.forEach(e.predecessors(t),(function(r){var i=e.node(r),a=i.order;!(a<o||h<a)||i.dummy&&e.node(t).dummy||l(n,r,t)}))})),a=u+1,o=h)})),i})),n}function s(e,t){var n={};function i(t,i,o,a,s){var c;r.forEach(r.range(i,o),(function(i){c=t[i],e.node(c).dummy&&r.forEach(e.predecessors(c),(function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&l(n,t,c)}))}))}return r.reduce(t,(function(t,n){var o,a=-1,s=0;return r.forEach(n,(function(r,l){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(o=e.node(c[0]).order,i(n,s,l,a,o),s=l,a=o)}i(n,s,n.length,o,t.length)})),n})),n}function l(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function c(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function u(e,t,n,i){var o={},a={},s={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){o[e]=e,a[e]=e,s[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var l=i(e);if(l.length){l=r.sortBy(l,(function(e){return s[e]}));for(var u=(l.length-1)/2,d=Math.floor(u),h=Math.ceil(u);d<=h;++d){var f=l[d];a[e]===e&&t<s[f]&&!c(n,e,f)&&(a[f]=e,a[e]=o[e]=o[f],t=s[f])}}}))})),{root:o,align:a}}function d(e,t,n,o,a){var s={},l=function(e,t,n,o){var a=new i,s=e.graph(),l=function(e,t,n){return function(i,o,a){var s,l=i.node(o),c=i.node(a),u=0;if(u+=l.width/2,r.has(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":s=-l.width/2;break;case"r":s=l.width/2}if(s&&(u+=n?s:-s),s=0,u+=(l.dummy?t:e)/2,u+=(c.dummy?t:e)/2,u+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":s=c.width/2;break;case"r":s=-c.width/2}return s&&(u+=n?s:-s),s=0,u}}(s.nodesep,s.edgesep,o);return r.forEach(t,(function(t){var i;r.forEach(t,(function(t){var r=n[t];if(a.setNode(r),i){var o=n[i],s=a.edge(o,r);a.setEdge(o,r,Math.max(l(e,t,i),s||0))}i=t}))})),a}(e,t,n,a),c=a?"borderLeft":"borderRight";function u(e,t){for(var n=l.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return u((function(e){s[e]=l.inEdges(e).reduce((function(e,t){return Math.max(e,s[t.v]+l.edge(t))}),0)}),l.predecessors.bind(l)),u((function(t){var n=l.outEdges(t).reduce((function(e,t){return Math.min(e,s[t.w]-l.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(s[t]=Math.max(s[t],n))}),l.successors.bind(l)),r.forEach(o,(function(e){s[e]=s[n[e]]})),s}function h(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var o=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+o,n),i=Math.min(t-o,i)})),n-i}))}function f(e,t){var n=r.values(t),i=r.min(n),o=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var s,l=n+a,c=e[l];if(c!==t){var u=r.values(c);(s="l"===a?i-r.min(u):o-r.max(u))&&(e[l]=r.mapValues(c,(function(e){return e+s})))}}))}))}function p(e,t){return r.mapValues(e.ul,(function(n,i){if(t)return e[t.toLowerCase()][i];var o=r.sortBy(r.map(e,i));return(o[1]+o[2])/2}))}e.exports={positionX:function(e){var t,n=o.buildLayerMatrix(e),i=r.merge(a(e,n),s(e,n)),l={};r.forEach(["u","d"],(function(o){t="u"===o?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var a=("u"===o?e.predecessors:e.successors).bind(e),s=u(e,t,i,a),c=d(e,t,s.root,s.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(e){return-e}))),l[o+n]=c}))}));var c=h(e,l);return f(l,c),p(l,e.graph().align)},findType1Conflicts:a,findType2Conflicts:s,addConflict:l,hasConflict:c,verticalAlignment:u,horizontalCompaction:d,alignCoordinates:f,findSmallestWidthAlignment:h,balance:p}},17873:function(e,t,n){"use strict";var r=n(38436),i=n(11138),o=n(3573).positionX;e.exports=function(e){(function(e){var t=i.buildLayerMatrix(e),n=e.graph().ranksep,o=0;r.forEach(t,(function(t){var i=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=o+i/2})),o+=i+n}))})(e=i.asNonCompoundGraph(e)),r.forEach(o(e),(function(t,n){e.node(n).x=t}))}},20300:function(e,t,n){"use strict";var r=n(38436),i=n(70574).Graph,o=n(76681).slack;function a(e,t){return r.forEach(e.nodes(),(function n(i){r.forEach(t.nodeEdges(i),(function(r){var a=r.v,s=i===a?r.w:a;e.hasNode(s)||o(t,r)||(e.setNode(s,{}),e.setEdge(i,s,{}),n(s))}))})),e.nodeCount()}function s(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)}))}function l(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new i({directed:!1}),c=e.nodes()[0],u=e.nodeCount();r.setNode(c,{});for(;a(r,e)<u;)t=s(r,e),n=r.hasNode(t.v)?o(e,t):-o(e,t),l(r,e,n);return r}},78093:function(e,t,n){"use strict";var r=n(76681).longestPath,i=n(20300),o=n(42472);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":default:s(e);break;case"tight-tree":!function(e){r(e),i(e)}(e);break;case"longest-path":a(e)}};var a=r;function s(e){o(e)}},42472:function(e,t,n){"use strict";var r=n(38436),i=n(20300),o=n(76681).slack,a=n(76681).longestPath,s=n(70574).alg.preorder,l=n(70574).alg.postorder,c=n(11138).simplify;function u(e){e=c(e),a(e);var t,n=i(e);for(f(n),d(n,e);t=g(n);)v(n,e,t,m(n,e,t))}function d(e,t){var n=l(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(e,t,n){var r=e.node(n),i=r.parent;e.edge(n,i).cutvalue=h(e,t,n)}(e,t,n)}))}function h(e,t,n){var i=e.node(n).parent,o=!0,a=t.edge(n,i),s=0;return a||(o=!1,a=t.edge(i,n)),s=a.weight,r.forEach(t.nodeEdges(n),(function(r){var a,l,c=r.v===n,u=c?r.w:r.v;if(u!==i){var d=c===o,h=t.edge(r).weight;if(s+=d?h:-h,a=n,l=u,e.hasEdge(a,l)){var f=e.edge(n,u).cutvalue;s+=d?-f:f}}})),s}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),p(e,{},1,t)}function p(e,t,n,i,o){var a=n,s=e.node(i);return t[i]=!0,r.forEach(e.neighbors(i),(function(o){r.has(t,o)||(n=p(e,t,n,o,i))})),s.low=a,s.lim=n++,o?s.parent=o:delete s.parent,n}function g(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function m(e,t,n){var i=n.v,a=n.w;t.hasEdge(i,a)||(i=n.w,a=n.v);var s=e.node(i),l=e.node(a),c=s,u=!1;s.lim>l.lim&&(c=l,u=!0);var d=r.filter(t.edges(),(function(t){return u===y(e,e.node(t.v),c)&&u!==y(e,e.node(t.w),c)}));return r.minBy(d,(function(e){return o(t,e)}))}function v(e,t,n,i){var o=n.v,a=n.w;e.removeEdge(o,a),e.setEdge(i.v,i.w,{}),f(e),d(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),i=s(e,n);i=i.slice(1),r.forEach(i,(function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)}))}(e,t)}function y(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=u,u.initLowLimValues=f,u.initCutValues=d,u.calcCutValue=h,u.leaveEdge=g,u.enterEdge=m,u.exchangeEdges=v},76681:function(e,t,n){"use strict";var r=n(38436);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(i){var o=e.node(i);if(r.has(t,i))return o.rank;t[i]=!0;var a=r.min(r.map(e.outEdges(i),(function(t){return n(t.w)-e.edge(t).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},11138:function(e,t,n){"use strict";var r=n(38436),i=n(70574).Graph;function o(e,t,n,i){var o;do{o=r.uniqueId(i)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function a(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,c=e.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(l=-l),n=l,r=l*s/a);return{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))},addBorderNode:function(e,t,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(e,"border",i,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},88177:function(e){e.exports="0.8.5"},29306:function(e){!function(t){"use strict";var n=function(){return{escape:function(e){return e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(e,t){return"data:"+t+";base64,"+e},isDataUrl:function(e){return-1!==e.search(/^(data:)/)},canvasToBlob:function(e){return e.toBlob?new Promise((function(t){e.toBlob(t)})):function(e){return new Promise((function(t){for(var n=window.atob(e.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);t(new Blob([i],{type:"image/png"}))}))}(e)},resolveUrl:function(e,t){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=t,i.href=e,i.href},getAndEncode:function(e){var t=3e4;s.impl.options.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=a,i.ontimeout=l,i.responseType="blob",i.timeout=t,i.open("GET",e,!0),i.send(),s.impl.options.imagePlaceholder){var o=s.impl.options.imagePlaceholder.split(/,/);o&&o[1]&&(r=o[1])}function a(){if(4===i.readyState)if(200===i.status){var t=new FileReader;t.onloadend=function(){var e=t.result.split(/,/)[1];n(e)},t.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+e+", status: "+i.status)}function l(){r?n(r):c("timeout of "+t+"ms occured while fetching resource: "+e)}function c(e){console.error(e),n("")}}))},uid:(e=0,function(){return"u"+t()+e++;function t(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}),delay:function(e){return function(t){return new Promise((function(n){setTimeout((function(){n(t)}),e)}))}},asArray:function(e){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t},escapeXhtml:function(e){return e.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src=e}))},width:function(e){var t=n(e,"border-left-width"),r=n(e,"border-right-width");return e.scrollWidth+t+r},height:function(e){var t=n(e,"border-top-width"),r=n(e,"border-bottom-width");return e.scrollHeight+t+r}};var e;function t(e){var t=/\.([^\.\/]*?)$/g.exec(e);return t?t[1]:""}function n(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}}(),r=function(){var e=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(e,n,o){return a()?Promise.resolve(e):Promise.resolve(e).then(r).then((function(t){var r=Promise.resolve(e);return t.forEach((function(e){r=r.then((function(t){return i(t,e,n,o)}))})),r}));function a(){return!t(e)}},shouldProcess:t,impl:{readUrls:r,inline:i}};function t(t){return-1!==t.search(e)}function r(t){for(var r,i=[];null!==(r=e.exec(t));)i.push(r[1]);return i.filter((function(e){return!n.isDataUrl(e)}))}function i(e,t,r,i){return Promise.resolve(t).then((function(e){return r?n.resolveUrl(e,r):e})).then(i||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t))})).then((function(r){return e.replace(function(e){return new RegExp("(url\\(['\"]?)("+n.escape(e)+")(['\"]?\\))","g")}(t),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return e(document).then((function(e){return Promise.all(e.map((function(e){return e.resolve()})))})).then((function(e){return e.join("\n")}))},impl:{readAll:e}};function e(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(e){var t=[];return e.forEach((function(e){try{n.asArray(e.cssRules||[]).forEach(t.push.bind(t))}catch(t){console.log("Error while reading CSS rules from "+e.href,t.toString())}})),t})).then((function(e){return e.filter((function(e){return e.type===CSSRule.FONT_FACE_RULE})).filter((function(e){return r.shouldProcess(e.style.getPropertyValue("src"))}))})).then((function(t){return t.map(e)}));function e(e){return{resolve:function(){var t=(e.parentStyleSheet||{}).href;return r.inlineAll(e.cssText,t)},src:function(){return e.style.getPropertyValue("src")}}}}}(),o=function(){return{inlineAll:function t(i){return i instanceof Element?o(i).then((function(){return i instanceof HTMLImageElement?e(i).inline():Promise.all(n.asArray(i.childNodes).map((function(e){return t(e)})))})):Promise.resolve(i);function o(e){var t=e.style.getPropertyValue("background");return t?r.inlineAll(t).then((function(t){e.style.setProperty("background",t,e.style.getPropertyPriority("background"))})).then((function(){return e})):Promise.resolve(e)}},impl:{newImage:e}};function e(e){return{inline:function(t){return n.isDataUrl(e.src)?Promise.resolve():Promise.resolve(e.src).then(t||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e.src))})).then((function(t){return new Promise((function(n,r){e.onload=n,e.onerror=r,e.src=t}))}))}}}}(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:function(e,t){return c(e,t||{}).then((function(e){return e.toDataURL()}))},toJpeg:function(e,t){return c(e,t=t||{}).then((function(e){return e.toDataURL("image/jpeg",t.quality||1)}))},toBlob:function(e,t){return c(e,t||{}).then(n.canvasToBlob)},toPixelData:function(e,t){return c(e,t||{}).then((function(t){return t.getContext("2d").getImageData(0,0,n.width(e),n.height(e)).data}))},impl:{fontFaces:i,images:o,util:n,inliner:r,options:{}}};function l(e,t){return function(e){void 0===e.imagePlaceholder?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=e.imagePlaceholder;void 0===e.cacheBust?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=e.cacheBust}(t=t||{}),Promise.resolve(e).then((function(e){return u(e,t.filter,!0)})).then(d).then(h).then((function(e){t.bgcolor&&(e.style.backgroundColor=t.bgcolor);t.width&&(e.style.width=t.width+"px");t.height&&(e.style.height=t.height+"px");t.style&&Object.keys(t.style).forEach((function(n){e.style[n]=t.style[n]}));return e})).then((function(r){return function(e,t,r){return Promise.resolve(e).then((function(e){return e.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(e)})).then(n.escapeXhtml).then((function(e){return'<foreignObject x="0" y="0" width="100%" height="100%">'+e+"</foreignObject>"})).then((function(e){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+r+'">'+e+"</svg>"})).then((function(e){return"data:image/svg+xml;charset=utf-8,"+e}))}(r,t.width||n.width(e),t.height||n.height(e))}))}function c(e,t){return l(e,t).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(e){var r=document.createElement("canvas");if(r.width=t.width||n.width(e),r.height=t.height||n.height(e),t.bgcolor){var i=r.getContext("2d");i.fillStyle=t.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(e);return i.getContext("2d").drawImage(r,0,0),i}))}function u(e,t,r){return r||!t||t(e)?Promise.resolve(e).then((function(e){return e instanceof HTMLCanvasElement?n.makeImage(e.toDataURL()):e.cloneNode(!1)})).then((function(r){return function(e,t,r){var i=e.childNodes;return 0===i.length?Promise.resolve(t):o(t,n.asArray(i),r).then((function(){return t}));function o(e,t,n){var r=Promise.resolve();return t.forEach((function(t){r=r.then((function(){return u(t,n)})).then((function(t){t&&e.appendChild(t)}))})),r}}(e,r,t)})).then((function(t){return function(e,t){return t instanceof Element?Promise.resolve().then(r).then(i).then(o).then(a).then((function(){return t})):t;function r(){function r(e,t){function r(e,t){n.asArray(e).forEach((function(n){t.setProperty(n,e.getPropertyValue(n),e.getPropertyPriority(n))}))}e.cssText?t.cssText=e.cssText:r(e,t)}r(window.getComputedStyle(e),t.style)}function i(){function r(r){var i=window.getComputedStyle(e,r),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var a=n.uid();t.className=t.className+" "+a;var s=document.createElement("style");s.appendChild(l(a,r,i)),t.appendChild(s)}function l(e,t,r){var i="."+e+":"+t,o=r.cssText?a(r):s(r);return document.createTextNode(i+"{"+o+"}");function a(e){var t=e.getPropertyValue("content");return e.cssText+" content: "+t+";"}function s(e){return n.asArray(e).map(t).join("; ")+";";function t(t){return t+": "+e.getPropertyValue(t)+(e.getPropertyPriority(t)?" !important":"")}}}}[":before",":after"].forEach((function(e){r(e)}))}function o(){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}function a(){t instanceof SVGElement&&(t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t instanceof SVGRectElement&&["width","height"].forEach((function(e){var n=t.getAttribute(e);n&&t.style.setProperty(e,n)})))}}(e,t)})):Promise.resolve()}function d(e){return i.resolveAll().then((function(t){var n=document.createElement("style");return e.appendChild(n),n.appendChild(document.createTextNode(t)),e}))}function h(e){return o.inlineAll(e).then((function(){return e}))}e.exports=s}()},93497:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.EOL="\r\n",e.BOM="\ufeff",e.DEFAULT_FIELD_SEPARATOR=",",e.DEFAULT_DECIMAL_SEPARATOR=".",e.DEFAULT_QUOTE='"',e.DEFAULT_SHOW_TITLE=!1,e.DEFAULT_TITLE="My Generated Report",e.DEFAULT_FILENAME="generated",e.DEFAULT_SHOW_LABELS=!1,e.DEFAULT_USE_TEXT_FILE=!1,e.DEFAULT_USE_BOM=!0,e.DEFAULT_HEADER=[],e.DEFAULT_KEYS_AS_HEADERS=!1,e}();t.CsvConfigConsts=n,t.ConfigDefaults={filename:n.DEFAULT_FILENAME,fieldSeparator:n.DEFAULT_FIELD_SEPARATOR,quoteStrings:n.DEFAULT_QUOTE,decimalSeparator:n.DEFAULT_DECIMAL_SEPARATOR,showLabels:n.DEFAULT_SHOW_LABELS,showTitle:n.DEFAULT_SHOW_TITLE,title:n.DEFAULT_TITLE,useTextFile:n.DEFAULT_USE_TEXT_FILE,useBom:n.DEFAULT_USE_BOM,headers:n.DEFAULT_HEADER,useKeysAsHeaders:n.DEFAULT_KEYS_AS_HEADERS};var r=function(){function e(e){this._csv="";var n=e||{};this._options=a({},t.ConfigDefaults,n),this._options.useKeysAsHeaders&&this._options.headers&&this._options.headers.length>0&&console.warn("Option to use object keys as headers was set, but headers were still passed!")}return Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=a({},t.ConfigDefaults,e)},enumerable:!0,configurable:!0}),e.prototype.generateCsv=function(e,t){if(void 0===t&&(t=!1),this._csv="",this._parseData(e),this._options.useBom&&(this._csv+=n.BOM),this._options.showTitle&&(this._csv+=this._options.title+"\r\n\n"),this._getHeaders(),this._getBody(),""!=this._csv){if(t)return this._csv;var r=this._options.useTextFile?"plain":"csv",i=this._options.useTextFile?".txt":".csv",o=new Blob([this._csv],{type:"text/"+r+";charset=utf8;"});if(navigator.msSaveBlob){var a=this._options.filename.replace(/ /g,"_")+i;navigator.msSaveBlob(o,a)}else{this._options.useTextFile,encodeURI(this._csv);var s=document.createElement("a");s.href=URL.createObjectURL(o),s.setAttribute("visibility","hidden"),s.download=this._options.filename.replace(/ /g,"_")+i,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}else console.log("Invalid data")},e.prototype._getHeaders=function(){if(this._options.showLabels||this._options.useKeysAsHeaders){var e=this._options.useKeysAsHeaders?Object.keys(this._data[0]):this._options.headers;if(e.length>0){for(var t="",r=0;r<e.length;r++)t+=e[r]+this._options.fieldSeparator;t=t.slice(0,-1),this._csv+=t+n.EOL}}},e.prototype._getBody=function(){for(var e=Object.keys(this._data[0]),t=0;t<this._data.length;t++){for(var r="",i=0;i<e.length;i++){var o=e[i];r+=this._formatData(this._data[t][o])+this._options.fieldSeparator}r=r.slice(0,-1),this._csv+=r+n.EOL}},e.prototype._formatData=function(e){return"locale"===this._options.decimalSeparator&&this._isFloat(e)?e.toLocaleString():"."!==this._options.decimalSeparator&&this._isFloat(e)?e.toString().replace(".",this._options.decimalSeparator):"string"==typeof e?(e=e.replace(/"/g,'""'),(this._options.quoteStrings||e.indexOf(",")>-1||e.indexOf("\n")>-1||e.indexOf("\r")>-1)&&(e=this._options.quoteStrings+e+this._options.quoteStrings),e):"boolean"==typeof e?e?"TRUE":"FALSE":e},e.prototype._isFloat=function(e){return+e===e&&(!isFinite(e)||Boolean(e%1))},e.prototype._parseData=function(e){return this._data="object"!=typeof e?JSON.parse(e):e,this._data},e}();t.ExportToCsv=r;var i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];for(var a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in t=Object(arguments[l]))i.call(t,c)&&(s[c]=t[c]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(t);for(var u=0;u<a.length;u++)o.call(t,a[u])&&(s[a[u]]=t[a[u]])}}return s}},1818:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(93497))},93162:function(e,t,n){var r,i,o;i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),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(){l(r.response,t,n)},r.onerror=function(){console.error("could not download file")},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 o(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 a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,n){var s=a.URL||a.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):i(l.href)?r(e,t,n):o(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,a){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,a),n);else if(i(e))r(e,n,a);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){o(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 o="application/octet-stream"===e.type,l=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var d=a.URL||a.webkitURL,h=d.createObjectURL(e);i?i.location=h:location.href=h,i=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});a.saveAs=l.saveAs=l,e.exports=l})?r.apply(t,i):r)||(e.exports=o)},17648:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,o=t.call(arguments,1),a=Math.max(0,r.length-o.length),s=[],l=0;l<a;l++)s.push("$"+l);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var n=r.apply(this,o.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,o.concat(t.call(arguments)))})),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i}},58612:function(e,t,n){"use strict";var r=n(17648);e.exports=Function.prototype.bind||r},40210:function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var c=function(){throw new a},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(e){return c}}}():c,d=n(41405)(),h=Object.getPrototypeOf||function(e){return e.__proto__},f={},p="undefined"==typeof Uint8Array?r:h(Uint8Array),g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?h(h([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?h((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?h(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},m=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=h(i.prototype))}return g[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(58612),b=n(17642),w=y.call(Function.call,Array.prototype.concat),_=y.call(Function.apply,Array.prototype.splice),x=y.call(Function.call,String.prototype.replace),E=y.call(Function.call,String.prototype.slice),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,S=function(e,t){var n,r=e;if(b(v,r)&&(r="%"+(n=v[r])[0]+"%"),b(g,r)){var o=g[r];if(o===f&&(o=m(r)),void 0===o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return x(e,C,(function(e,t,n,i){r[r.length]=n?x(i,k,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=S("%"+r+"%",t),s=o.name,c=o.value,u=!1,d=o.alias;d&&(r=d[0],_(n,w([0,1],d)));for(var h=1,f=!0;h<n.length;h+=1){var p=n[h],m=E(p,0,1),v=E(p,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&f||(u=!0),b(g,s="%"+(r+="."+p)+"%"))c=g[s];else if(null!=c){if(!(p in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&h+1>=n.length){var y=l(c,p);c=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:c[p]}else f=b(c,p),c=c[p];f&&!u&&(g[s]=c)}}return c}},28282:function(e,t,n){var r=n(82354);e.exports={Graph:r.Graph,json:n(28974),alg:n(12440),version:r.version}},2842:function(e,t,n){var r=n(89126);e.exports=function(e){var t,n={},i=[];function o(i){r.has(n,i)||(n[i]=!0,t.push(i),r.each(e.successors(i),o),r.each(e.predecessors(i),o))}return r.each(e.nodes(),(function(e){t=[],o(e),t.length&&i.push(t)})),i}},53984:function(e,t,n){var r=n(89126);function i(e,t,n,o,a,s){r.has(o,t)||(o[t]=!0,n||s.push(t),r.each(a(t),(function(t){i(e,t,n,o,a,s)})),n&&s.push(t))}e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],s={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);i(e,t,"post"===n,s,o,a)})),a}},84847:function(e,t,n){var r=n(63763),i=n(89126);e.exports=function(e,t,n){return i.transform(e.nodes(),(function(i,o){i[o]=r(e,o,t,n)}),{})}},63763:function(e,t,n){var r=n(89126),i=n(75639);e.exports=function(e,t,n,r){return function(e,t,n,r){var o,a,s={},l=new i,c=function(e){var t=e.v!==o?e.v:e.w,r=s[t],i=n(e),c=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+i);c<r.distance&&(r.distance=c,r.predecessor=o,l.decrease(t,c))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},l.add(e,n)}));for(;l.size()>0&&(o=l.removeMin(),(a=s[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(c);return s}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},9096:function(e,t,n){var r=n(89126),i=n(5023);e.exports=function(e){return r.filter(i(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},38924:function(e,t,n){var r=n(89126);e.exports=function(e,t,n){return function(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,o=t(n);r[e][i]={distance:o,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[e],i=t[n],a=o[n],s=r.distance+i.distance;s<a.distance&&(a.distance=s,a.predecessor=i.predecessor)}))}))})),r}(e,t||i,n||function(t){return e.outEdges(t)})};var i=r.constant(1)},12440:function(e,t,n){e.exports={components:n(2842),dijkstra:n(63763),dijkstraAll:n(84847),findCycles:n(9096),floydWarshall:n(38924),isAcyclic:n(62707),postorder:n(58828),preorder:n(92648),prim:n(80514),tarjan:n(5023),topsort:n(2166)}},62707:function(e,t,n){var r=n(2166);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},58828:function(e,t,n){var r=n(53984);e.exports=function(e,t){return r(e,t,"post")}},92648:function(e,t,n){var r=n(53984);e.exports=function(e,t){return r(e,t,"pre")}},80514:function(e,t,n){var r=n(89126),i=n(30771),o=n(75639);e.exports=function(e,t){var n,a=new i,s={},l=new o;function c(e){var r=e.v===n?e.w:e.v,i=l.priority(r);if(void 0!==i){var o=t(e);o<i&&(s[r]=n,l.decrease(r,o))}}if(0===e.nodeCount())return a;r.each(e.nodes(),(function(e){l.add(e,Number.POSITIVE_INFINITY),a.setNode(e)})),l.decrease(e.nodes()[0],0);var u=!1;for(;l.size()>0;){if(n=l.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(n).forEach(c)}return a}},5023:function(e,t,n){var r=n(89126);e.exports=function(e){var t=0,n=[],i={},o=[];function a(s){var l=i[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(i,e)?i[e].onStack&&(l.lowlink=Math.min(l.lowlink,i[e].index)):(a(e),l.lowlink=Math.min(l.lowlink,i[e].lowlink))})),l.lowlink===l.index){var c,u=[];do{c=n.pop(),i[c].onStack=!1,u.push(c)}while(s!==c);o.push(u)}}return e.nodes().forEach((function(e){r.has(i,e)||a(e)})),o}},2166:function(e,t,n){var r=n(89126);function i(e){var t={},n={},i=[];if(r.each(e.sinks(),(function a(s){if(r.has(n,s))throw new o;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],i.push(s))})),r.size(t)!==e.nodeCount())throw new o;return i}function o(){}e.exports=i,i.CycleException=o,o.prototype=new Error},75639:function(e,t,n){var r=n(89126);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},i.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},i.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],o=n[t];n[e]=o,n[t]=i,r[o.key]=e,r[i.key]=t}},30771:function(e,t,n){"use strict";var r=n(89126);e.exports=s;var i="\0",o="\0",a="";function s(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function l(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function u(e,t,n,o){var s=""+t,l=""+n;if(!e&&s>l){var c=s;s=l,l=c}return s+a+l+a+(r.isUndefined(o)?i:o)}function d(e,t){return u(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},s.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,(function(e){n.length>1?i.setNode(e,t):i.setNode(e)})),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=o;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var i={};function o(e){var r=n.parent(e);return void 0===r||t.hasNode(r)?(i[e]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,o(e))})),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,(function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},s.prototype.setEdge=function(){var e,t,n,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var s=u(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return o&&(this._edgeLabels[s]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=o?i:this._defaultEdgeLabelFn(e,t,n);var c=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};r&&(s.name=r);return s}(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[s]=c,l(this._preds[t],e),l(this._sucs[e],t),this._in[t][s]=c,this._out[e][s]=c,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var i=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.v===t})):i}},s.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.w===t})):i}},s.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},82354:function(e,t,n){e.exports={Graph:n(30771),version:n(49631)}},28974:function(e,t,n){var r=n(89126),i=n(30771);function o(e){return r.map(e.nodes(),(function(t){var n=e.node(t),i=e.parent(t),o={v:t};return r.isUndefined(n)||(o.value=n),r.isUndefined(i)||(o.parent=i),o}))}function a(e){return r.map(e.edges(),(function(t){var n=e.edge(t),i={v:t.v,w:t.w};return r.isUndefined(t.name)||(i.name=t.name),r.isUndefined(n)||(i.value=n),i}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:o(e),edges:a(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new i(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},89126:function(e,t,n){var r;try{r={clone:n(66678),constant:n(75703),each:n(66073),filter:n(63105),has:n(18721),isArray:n(1469),isEmpty:n(41609),isFunction:n(23560),isUndefined:n(52353),keys:n(3674),map:n(35161),reduce:n(54061),size:n(84238),transform:n(68718),union:n(93386),values:n(52628)}}catch(e){}r||(r=window._),e.exports=r},49631:function(e){e.exports="2.1.8"},41405:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(55419);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},55419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},17642:function(e,t,n){"use strict";var r=n(58612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},8679:function(e,t,n){"use strict";var r=n(59864),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=f(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(o[v]||r&&r[v]||g&&g[v]||s&&s[v])){var y=h(n,v);try{c(t,v,y)}catch(e){}}}}return t}},55299:function(e,t,n){"use strict";var r=n(47798);function i(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==i(e)&&("function"==typeof(t=e.constructor)&&(!1!==i(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},5826:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},47798:function(e){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},94301:function(e,t,n){n(57147),e.exports=self.fetch.bind(self)},50450:function(e,t,n){var r,i,o;i=[n(19755)],r=function(e){var t,n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var a=r.length;a;)e.event.fixHooks[r[--a]]=e.event.mouseHooks;var s=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",s.getLineHeight(this)),e.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),r=n["offsetParent"in e.fn?"offsetParent":"parent"]();return r.length||(r=e("body")),parseInt(r.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(r){var i=r||window.event,a=o.call(arguments,1),l=0,d=0,h=0,f=0,p=0,g=0;if((r=e.event.fix(i)).type="mousewheel","detail"in i&&(h=-1*i.detail),"wheelDelta"in i&&(h=i.wheelDelta),"wheelDeltaY"in i&&(h=i.wheelDeltaY),"wheelDeltaX"in i&&(d=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(d=-1*h,h=0),l=0===h?d:h,"deltaY"in i&&(l=h=-1*i.deltaY),"deltaX"in i&&(d=i.deltaX,0===h&&(l=-1*d)),0!==h||0!==d){if(1===i.deltaMode){var m=e.data(this,"mousewheel-line-height");l*=m,h*=m,d*=m}else if(2===i.deltaMode){var v=e.data(this,"mousewheel-page-height");l*=v,h*=v,d*=v}if(f=Math.max(Math.abs(h),Math.abs(d)),(!n||f<n)&&(n=f,u(i,f)&&(n/=40)),u(i,f)&&(l/=40,d/=40,h/=40),l=Math[l>=1?"floor":"ceil"](l/n),d=Math[d>=1?"floor":"ceil"](d/n),h=Math[h>=1?"floor":"ceil"](h/n),s.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();p=r.clientX-y.left,g=r.clientY-y.top}return r.deltaX=d,r.deltaY=h,r.deltaFactor=n,r.offsetX=p,r.offsetY=g,r.deltaMode=0,a.unshift(r,l,d,h),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function c(){n=null}function u(e,t){return s.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},19755:function(e,t){var n;!function(t,n){"use strict";"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(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in w)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var E="3.6.3",C=function(e,t){return new C.fn.init(e,t)};function k(e){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)}C.fn=C.prototype={jquery:E,constructor:C,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.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(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.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()},push:c,sort:o.sort,splice:o.splice},C.extend=C.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(C.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||C.isPlainObject(n)?n:{},i=!1,a[t]=C.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},C.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]"!==h.call(e))&&(!(t=a(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(k(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},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?C.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.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,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(k(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=o[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,w="sizzle"+1*new Date,_=e.document,x=0,E=0,C=le(),k=le(),S=le(),T=le(),M=function(e,t){return e===t&&(d=!0),0},O={}.hasOwnProperty,L=[],A=L.pop,D=L.push,N=L.push,P=L.slice,I=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+R+"*("+F+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+R+"*\\]",Y=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",B=new RegExp(R+"+","g"),H=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),q=new RegExp("^"+R+"*,"+R+"*"),U=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),V=new RegExp(R+"|>"),W=new RegExp(Y),G=new RegExp("^"+F+"$"),$={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),ne=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))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},ae=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{N.apply(L=P.call(_.childNodes),_.childNodes),L[_.childNodes.length].nodeType}catch(e){N={apply:L.length?function(e,t){D.apply(e,P.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,c,u,d,p,v,y=t&&t.ownerDocument,_=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return r;if(!i&&(h(t),t=t||f,g)){if(11!==_&&(d=Q.exec(e)))if(o=d[1]){if(9===_){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(y&&(c=y.getElementById(o))&&b(t,c)&&c.id===o)return r.push(c),r}else{if(d[2])return N.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!T[e+" "]&&(!m||!m.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===_&&(V.test(e)||U.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=w)),s=(p=a(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+be(p[s]);v=p.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector(:is("+v+"))"))throw new Error;return N.apply(r,y.querySelectorAll(v)),r}catch(t){T(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[w]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function he(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 fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(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&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},h=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:_;return a!=f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,g=!o(f),_!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ue((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssSupportsSelector=ue((function(){return CSS.supports("selector(*)")&&f.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Z.test(f.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Z.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",Y)})),n.cssSupportsSelector||m.push(":has"),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(p.compareDocumentPosition),b=t||Z.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},M=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==_&&b(_,e)?-1:t==f||t.ownerDocument==_&&b(_,t)?1:u?I(u,e)-I(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==f?-1:t==f?1:i?-1:o?1:u?I(u,e)-I(u,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?he(a[r],s[r]):a[r]==_?-1:s[r]==_?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&g&&!T[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){T(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&h(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&h(e);var i=r.attrHandle[t.toLowerCase()],o=i&&O.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(M),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ce,match:$,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&C(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=se.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(B," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;g;){for(h=t;h=h[g];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(b=(f=(c=(u=(d=(h=m)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],h=f&&m.childNodes[f];h=++f&&h&&h[g]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===t){u[e]=[x,f,b];break}}else if(y&&(b=f=(c=(u=(d=(h=t)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(h=++f&&h&&h[g]||(b=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((u=(d=h[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[x,b]),h!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=I(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=s(e.replace(H,"$1"));return r[w]?ce((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?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===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!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!r.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return J.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:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function we(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=E++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var c,u,d,h=[x,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[o])&&c[0]===x&&c[1]===s)return h[2]=c[2];if(u[o]=h,h[2]=e(t,n,l))return!0}return!1}}function _e(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 xe(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function Ee(e,t,n,r,i,o){return r&&!r[w]&&(r=Ee(r)),i&&!i[w]&&(i=Ee(i,o)),ce((function(o,a,s,l){var c,u,d,h=[],f=[],p=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xe(g,h,e,s,l),v=n?i||(o?e:p||r)?[]:a:m;if(n&&n(m,v,s,l),r)for(c=xe(v,f),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(m[f[u]]=d));if(o){if(i||e){if(i){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(m[u]=d);i(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=i?I(o,d):h[u])>-1&&(o[c]=!(a[c]=d))}}else v=xe(v===a?v.splice(p,v.length):v),i?i(null,a,v,l):N.apply(a,v)}))}function Ce(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=we((function(e){return e===t}),s,!0),d=we((function(e){return I(t,e)>-1}),s,!0),h=[function(e,n,r){var i=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])h=[we(_e(h),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[w]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return Ee(l>1&&_e(h),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),n,l<i&&Ce(e.slice(l,i)),i<o&&Ce(e=e.slice(i)),i<o&&be(e))}h.push(n)}return _e(h)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,i,o,a,s,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in n&&!(i=q.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(H," ")}),s=s.slice(n.length)),r.filter)!(i=$[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ce(t[n]))[w]?i.push(s):o.push(s);s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,u){var d,p,m,v=0,y="0",b=o&&[],w=[],_=c,E=o||i&&r.find.TAG("*",u),C=x+=null==_?1:Math.random()||.1,k=E.length;for(u&&(c=a==f||a||u);y!==k&&null!=(d=E[y]);y++){if(i&&d){for(p=0,a||d.ownerDocument==f||(h(d),s=!g);m=e[p++];)if(m(d,a||f,s)){l.push(d);break}u&&(x=C)}n&&((d=!m&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(p=0;m=t[p++];)m(b,w,a,s);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=A.call(l));w=xe(w)}N.apply(l,w),u&&!o&&w.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(x=C,c=_),b};return n?ce(o):o}(o,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var o,l,c,u,d,h="function"==typeof e&&e,f=!i&&a(e=h.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=$.needsContext.test(e)?0:l.length;o--&&(c=l[o],!r.relative[u=c.type]);)if((d=r.find[u])&&(i=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&be(l)))return N.apply(n,i),n;break}}return(h||s(e,f))(i,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(M).join("")===w,n.detectDuplicates=!!d,h(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(j,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);C.find=S,C.expr=S.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=S.uniqueSort,C.text=S.getText,C.isXMLDoc=S.isXML,C.contains=S.contains,C.escapeSelector=S.escape;var T=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&C(e).is(n))break;r.push(e)}return r},M=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},O=C.expr.match.needsContext;function L(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return v(t)?C.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?C.grep(e,(function(e){return u.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?C.find.matchesSelector(r,e)?[r]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<r;t++)if(C.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)C.find(e,i[t],n);return r>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&O.test(e)?C(e):e||[],!1).length}});var N,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.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 C?t[0]:t,C.merge(this,C.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),A.test(r[1])&&C.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(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):e(C):C.makeArray(e,this)}).prototype=C.fn,N=C(b);var I=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&C(e);if(!O.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(C(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return M((e.parentNode||{}).firstChild,e)},children:function(e){return M(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(L(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,r){var i=C.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(j[e]||C.uniqueSort(i),I.test(e)&&i.reverse()),this.pushStack(i)}}));var F=/[^\x20\t\r\n\f]+/g;function z(e){return e}function Y(e){throw e}function B(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(F)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){C.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,(function(e,t){for(var n;(n=C.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?C.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[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,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(c)?i?c.call(r,a(o,t,z,i),a(o,t,Y,i)):(o++,c.call(r,a(o,t,z,i),a(o,t,Y,i),a(o,t,z,t.notifyWith))):(n!==z&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(r){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(r,u.stackTrace),e+1>=o&&(n!==Y&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(C.Deferred.getStackHook&&(u.stackTrace=C.Deferred.getStackHook()),r.setTimeout(u))}}return C.Deferred((function(r){t[0][3].add(a(0,r,v(i)?i:z,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:z)),t[2][3].add(a(0,r,v(n)?n:Y))})).promise()},promise:function(e){return null!=e?C.extend(e,i):i}},o={};return C.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=C.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(B(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)B(i[n],a(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&H.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){r.setTimeout((function(){throw e}))};var q=C.Deferred();function U(){b.removeEventListener("DOMContentLoaded",U),r.removeEventListener("load",U),C.ready()}C.fn.ready=function(e){return q.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||q.resolveWith(b,[C]))}}),C.ready.then=q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(C.ready):(b.addEventListener("DOMContentLoaded",U),r.addEventListener("load",U));var V=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===x(n))for(s in i=!0,n)V(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(C(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},W=/^-ms-/,G=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function K(e){return e.replace(W,"ms-").replace(G,$)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=C.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(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[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(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(K):(t=K(t))in r?[t]:t.match(F)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||C.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&&!C.isEmptyObject(t)}};var Z=new X,Q=new X,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return Q.hasData(e)||Z.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),ne(o,r,i[r]));Z.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Q.set(this,e)})):V(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))||void 0!==(n=ne(o,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),r=n.length,i=n.shift(),o=C._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){C.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:C.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each((function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=C.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ae=b.documentElement,se=function(e){return C.contains(e.ownerDocument,e)},le={composed:!0};ae.getRootNode&&(se=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===C.css(e,"display")};function ue(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return C.css(e,t,"")},l=s(),c=n&&n[3]||(C.cssNumber[t]?"":"px"),u=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&ie.exec(C.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)C.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,C.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var de={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,i=de[r];return i||(t=n.body.appendChild(n.createElement(r)),i=C.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),de[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Z.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[o]=he(r))):"none"!==n&&(i[o]="none",Z.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}C.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?C(this).show():C(this).hide()}))}});var pe,ge,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(ge=b.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),pe.appendChild(ge),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var be={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 we(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?C.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,m.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function Ee(e,t,n,r,i){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===x(o))C.merge(h,o.nodeType?[o]:o);else if(xe.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ve.exec(o)||["",""])[1].toLowerCase(),l=be[s]||be._default,a.innerHTML=l[1]+C.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;C.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(r&&C.inArray(o,r)>-1)i&&i.push(o);else if(c=se(o),a=we(d.appendChild(o),"script"),c&&_e(a),n)for(u=0;o=a[u++];)ye.test(o.type||"")&&n.push(o);return d}var Ce=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Te(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Me(e,s,n,r,t[s],o);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=Se;else if(!i)return e;return 1===o&&(a=i,i=function(e){return C().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=C.guid++)),e.each((function(){C.event.add(this,t,i,r,n)}))}function Oe(e,t,n){n?(Z.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),Z.set(this,t,o),r=n(this,t),this[t](),o!==(i=Z.get(this,t))||r?Z.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else o.length&&(Z.set(this,t,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&C.event.add(e,t,ke)}C.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m=Z.get(e);if(J(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&C.find.matchesSelector(ae,i),n.guid||(n.guid=C.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(F)||[""]).length;c--;)f=g=(s=Ce.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=C.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=C.event.special[f]||{},u=C.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),C.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m=Z.hasData(e)&&Z.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(F)||[""]).length;c--;)if(f=g=(s=Ce.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=C.event.special[f]||{},h=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||C.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)C.event.remove(e,f+t[c],n,r,!0);C.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=C.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=C.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=C.event.handlers.call(this,l,c),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((C.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?C(i,this).index(c)>-1:C.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(C.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[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&L(t,"input")&&Oe(t,"click",ke),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&L(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&L(t,"input")&&Z.get(t,"click")||L(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,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&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.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},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){C.event.special[e]={setup:function(){return Oe(this,e,Te),!1},trigger:function(){return Oe(this,e),!0},_default:function(t){return Z.get(t.target,e)},delegateType:t}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||C.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),C.fn.extend({on:function(e,t,n,r){return Me(this,e,t,n,r)},one:function(e,t,n,r){return Me(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,C(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=Se),this.each((function(){C.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ne(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(i in Z.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)C.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=C.extend({},o),Q.set(t,a))}}function Re(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,r){t=l(t);var i,o,a,s,c,u,d=0,h=e.length,f=h-1,p=t[0],g=v(p);if(g||h>1&&"string"==typeof p&&!m.checkClone&&Ae.test(p))return e.each((function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),Fe(o,t,n,r)}));if(h&&(o=(i=Ee(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=C.map(we(i,"script"),Pe)).length;d<h;d++)c=i,d!==f&&(c=C.clone(c,!0,!0),s&&C.merge(a,we(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,C.map(a,Ie),d=0;d<s;d++)c=a[d],ye.test(c.type||"")&&!Z.access(c,"globalEval")&&C.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?C._evalUrl&&!c.noModule&&C._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):_(c.textContent.replace(De,""),c,u))}return e}function ze(e,t,n){for(var r,i=t?C.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||C.cleanData(we(r)),r.parentNode&&(n&&se(r)&&_e(we(r,"script")),r.parentNode.removeChild(r));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=se(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(a=we(s),r=0,i=(o=we(e)).length;r<i;r++)Re(o[r],a[r]);if(t)if(n)for(o=o||we(e),a=a||we(s),r=0,i=o.length;r<i;r++)je(o[r],a[r]);else je(e,s);return(a=we(s,"script")).length>0&&_e(a,!l&&we(e,"script")),s},cleanData:function(e){for(var t,n,r,i=C.event.special,o=0;void 0!==(n=e[o]);o++)if(J(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),C.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return V(this,(function(e){return void 0===e?C.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 Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(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&&(C.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return V(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&&!Le.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(we(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(we(this)),n&&n.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var n,r=[],i=C(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),C(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ye=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Be=/^--/,He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},qe=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ue=new RegExp(oe.join("|"),"i"),Ve="[\\x20\\t\\r\\n\\f]",We=new RegExp("^"+Ve+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ve+"+$","g");function Ge(e,t,n){var r,i,o,a,s=Be.test(t),l=e.style;return(n=n||He(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(We,"$1")||void 0),""!==a||se(e)||(a=C.style(e,t)),!m.pixelBoxStyles()&&Ye.test(a)&&Ue.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.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%",ae.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ae.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,C.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ae.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ae.removeChild(e)),s}}))}();var Ke=["Webkit","Moz","ms"],Je=b.createElement("div").style,Xe={};function Ze(e){var t=C.cssProps[e]||Xe[e];return t||(e in Je?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ke.length;n--;)if((e=Ke[n]+t)in Je)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=C.css(e,n+oe[a],!0,i)),r?("content"===n&&(l-=C.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(l-=C.css(e,"border"+oe[a]+"Width",!0,i))):(l+=C.css(e,"padding"+oe[a],!0,i),"padding"!==n?l+=C.css(e,"border"+oe[a]+"Width",!0,i):s+=C.css(e,"border"+oe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function it(e,t,n){var r=He(e),i=(!m.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ye.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&L(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===C.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===C.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ot(e,t,n,r,i){return new ot.prototype.init(e,t,n,r,i)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!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,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=K(t),l=Be.test(t),c=e.style;if(l||(t=Ze(s)),a=C.cssHooks[t]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"===(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ue(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=K(t);return Be.test(t)||(t=Ze(s)),(a=C.cssHooks[t]||C.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in tt&&(i=tt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):qe(e,et,(function(){return it(e,t,r)}))},set:function(e,n,r){var i,o=He(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===C.css(e,"boxSizing",!1,o),l=r?rt(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),nt(0,n,l)}}})),C.cssHooks.marginLeft=$e(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(C.cssHooks[e+t].set=nt)})),C.fn.extend({css:function(e,t){return V(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=He(e),i=t.length;a<i;a++)o[t[a]]=C.css(e,t[a],!1,r);return o}return void 0!==n?C.style(e,t,n):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=C.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):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.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=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=ot.prototype.init,C.fx.step={};var at,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ut):r.setTimeout(ut,C.fx.interval),C.fx.tick())}function dt(){return r.setTimeout((function(){at=void 0})),at=Date.now()}function ht(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=C.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=at||dt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=C.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=K(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=C.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(c,e,u,c.opts))return v(r.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return C.map(u,ft,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(F);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&ce(e),m=Z.get(e,"fxshow");for(r in n.queue||(null==(a=C._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,C.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],lt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}f[r]=m&&m[r]||C.style(e,r)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=Z.get(e,"display")),"none"===(u=C.css(e,"display"))&&(c?u=c:(fe([e],!0),c=e.style.display||c,u=C.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===C.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=Z.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&fe([e],!0),h.done((function(){for(r in g||fe([e]),Z.remove(e,"fxshow"),f)C.style(e,r,f[r])}))),l=ft(g?m[r]:0,r,h),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),C.speed=function(e,t,n){var r=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return C.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in C.fx.speeds?r.duration=C.fx.speeds[r.duration]:r.duration=C.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&C.dequeue(this,r.queue)},r},C.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=C.isEmptyObject(e),o=C.speed(t,n,r),a=function(){var t=pt(this,C.extend({},e),o);(i||Z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},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",o=C.timers,a=Z.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ct.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=C.timers,a=r?r.length:0;for(n.finish=!0,C.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var n=C.fn[t];C.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ht(t,!0),e,r,i)}})),C.each({slideDown:ht("show"),slideUp:ht("hide"),slideToggle:ht("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),at=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){st||(st=!0,ut())},C.fx.stop=function(){st=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var gt,mt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return V(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?C.prop(e,t,n):(1===o&&C.isXMLDoc(e)||(i=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void C.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=C.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&L(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(F);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||C.find.attr;mt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=i,i=null!=n(e,t,r)?a:null,mt[a]=o),i}}));var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function bt(e){return(e.match(F)||[]).join(" ")}function wt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}C.fn.extend({prop:function(e,t){return V(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(e)||(t=C.propFix[t]||t,i=C.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=C.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.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)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){C(this).addClass(e.call(this,t,wt(this)))})):(t=_t(e)).length?this.each((function(){if(r=wt(this),n=1===this.nodeType&&" "+bt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=bt(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){C(this).removeClass(e.call(this,t,wt(this)))})):arguments.length?(t=_t(e)).length?this.each((function(){if(r=wt(this),n=1===this.nodeType&&" "+bt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=bt(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,wt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=_t(e),this.each((function(){if(s)for(o=C(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=wt(this))&&Z.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":Z.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(wt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;C.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&&(null==(i=r?e.call(this,n,C(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(xt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:bt(C.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(t=C(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=C.makeArray(t),a=i.length;a--;)((r=i[a]).selected=C.inArray(C.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},m.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in r;var Et=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,n,i){var o,a,s,l,c,u,d,h,p=[n||b],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Et.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[C.expando]?e:new C.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),d=C.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Et.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)h=a,e.type=o>1?l:d.bindType||g,(u=(Z.get(a,"events")||Object.create(null))[e.type]&&Z.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&J(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!J(n)||c&&v(n[g])&&!y(n)&&((s=n[c])&&(n[c]=null),C.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,Ct),n[g](),e.isPropagationStopped()&&h.removeEventListener(g,Ct),C.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(r,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),m.focusin||C.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var kt=r.location,St={guid:Date.now()},Tt=/\?/;C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Mt=/\[\]$/,Ot=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,r){var i;if(Array.isArray(t))C.each(t,(function(t,i){n||Mt.test(e)?r(e,i):Dt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==x(t))r(e,t);else for(i in t)Dt(e+"["+i+"]",t[i],n,r)}C.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){i(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&At.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}})):{name:t.name,value:n.replace(Ot,"\r\n")}})).get()}});var Nt=/%20/g,Pt=/#.*$/,It=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Ft=/^\/\//,zt={},Yt={},Bt="*/".concat("*"),Ht=b.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(F)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ut(e,t,n,r){var i={},o=e===Yt;function a(s){var l;return i[s]=!0,C.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Vt(e,t){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&C.extend(!0,e,r),e}Ht.href=kt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,C.ajaxSettings),t):Vt(C.ajaxSettings,e)},ajaxPrefilter:qt(zt),ajaxTransport:qt(Yt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,c,u,d,h,f=C.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?C(p):C.event,m=C.Deferred(),v=C.Callbacks("once memory"),y=f.statusCode||{},w={},_={},x="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=jt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return n&&n.abort(t),k(0,t),this}};if(m.promise(E),f.url=((e||f.url||kt.href)+"").replace(Ft,kt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(F)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ht.protocol+"//"+Ht.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Ut(zt,f,t,E),c)return E;for(d in(u=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Rt.test(f.type),i=f.url.replace(Pt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Nt,"+")):(h=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Tt.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(It,"$1"),h=(Tt.test(i)?"&":"?")+"_="+St.guid+++h),f.url=i+h),f.ifModified&&(C.lastModified[i]&&E.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&E.setRequestHeader("If-None-Match",C.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Bt+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,E,f)||c))return E.abort();if(x="abort",v.add(f.complete),E.done(f.success),E.fail(f.error),n=Ut(Yt,f,t,E)){if(E.readyState=1,u&&g.trigger("ajaxSend",[E,f]),c)return E;f.async&&f.timeout>0&&(s=r.setTimeout((function(){E.abort("timeout")}),f.timeout));try{c=!1,n.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,a,l){var d,h,b,w,_,x=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",E.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,E,a)),!d&&C.inArray("script",f.dataTypes)>-1&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(e,t,n,r){var i,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,w,E,d),d?(f.ifModified&&((_=E.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=_),(_=E.getResponseHeader("etag"))&&(C.etag[i]=_)),204===e||"HEAD"===f.type?x="nocontent":304===e?x="notmodified":(x=w.state,h=w.data,d=!(b=w.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),E.status=e,E.statusText=(t||x)+"",d?m.resolveWith(p,[h,x,E]):m.rejectWith(p,[E,x,b]),E.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[E,f,d?h:b]),v.fireWith(p,[E,x]),u&&(g.trigger("ajaxComplete",[E,f]),--C.active||C.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:i,data:n,success:r},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=C(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){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Gt=C.ajaxSettings.xhr();m.cors=!!Gt&&"withCredentials"in Gt,m.ajax=Gt=!!Gt,C.ajaxTransport((function(e){var t,n;if(m.cors||Gt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Wt[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(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.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 C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=C("<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)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var $t,Kt=[],Jt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||C.expando+"_"+St.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Jt,"$1"+i):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||C.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?C(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=(($t=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===$t.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=A.exec(e))?[t.createElement(i[1])]:(i=Ee([e],t,o),o&&o.length&&C(o).remove(),C.merge([],i.childNodes)));var r,i,o},C.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&C.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?C("<div>").append(C.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,c=C.css(e,"position"),u=C(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=C.css(e,"top"),l=C.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,C.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):u.css(d)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.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"===C.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"===C.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),i.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-C.css(r,"marginTop",!0),left:t.left-i.left-C.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||ae}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;C.fn[e]=function(r){return V(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=$e(m.pixelPosition,(function(e,n){if(n)return n=Ge(e,t),Ye.test(n)?C(e).position()[t]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){C.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return V(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?C.css(t,n,s):C.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.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)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.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){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Xt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=L,C.isFunction=v,C.isWindow=y,C.camelCase=K,C.type=x,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Xt,"$1")},void 0===(n=function(){return C}.apply(t,[]))||(e.exports=n);var Zt=r.jQuery,Qt=r.$;return C.noConflict=function(e){return r.$===C&&(r.$=Qt),e&&r.jQuery===C&&(r.jQuery=Zt),C},void 0===i&&(r.jQuery=r.$=C),C}))},72023:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createOutputMethod(r,e)}return t},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},createHmacOutputMethod=function(e,t){return function(n,r){return new HmacSha256(n,t,!0).update(r)[e]()}},createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var r=OUTPUT_TYPES[n];t[r]=createHmacOutputMethod(r,e)}return t};function Sha256(e,t){t?(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.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var r,i=typeof e;if("string"===i){var o,a=[],s=e.length,l=0;for(r=0;r<s;++r)(o=e.charCodeAt(r))<128?a[l++]=o:o<2048?(a[l++]=192|o>>6,a[l++]=128|63&o):o<55296||o>=57344?(a[l++]=224|o>>12,a[l++]=128|o>>6&63,a[l++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++r)),a[l++]=240|o>>18,a[l++]=128|o>>12&63,a[l++]=128|o>>6&63,a[l++]=128|63&o);e=a}else{if("object"!==i)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var c=[],u=[];for(r=0;r<64;++r){var d=e[r]||0;c[r]=92^d,u[r]=54^d}Sha256.call(this,t,n),this.update(u),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,i,o=0,a=e.length,s=this.blocks;o<a;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,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)for(i=this.start;o<a&&i<64;++o)s[i>>2]|=e[o]<<SHIFT[3&i++];else for(i=this.start;o<a&&i<64;++o)(r=e.charCodeAt(o))<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(++o)),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.block=s[16],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}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,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.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,i,o,a,s,l,c=this.h0,u=this.h1,d=this.h2,h=this.h3,f=this.h4,p=this.h5,g=this.h6,m=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,n=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+n<<0;for(l=u&d,e=0;e<64;e+=4)this.first?(this.is224?(o=300032,m=(i=v[0]-1413257819)-150054599<<0,h=i+24177077<<0):(o=704751109,m=(i=v[0]-210244248)-1521486534<<0,h=i+143694565<<0),this.first=!1):(t=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(o=c&u)^c&d^l,m=h+(i=m+(n=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&p^~f&g)+K[e]+v[e])<<0,h=i+(t+r)<<0),t=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(a=h&c)^h&u^o,g=d+(i=g+(n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&f^~m&p)+K[e+1]+v[e+1])<<0,t=((d=i+(t+r)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(s=d&h)^d&c^a,p=u+(i=p+(n=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&m^~g&f)+K[e+2]+v[e+2])<<0,t=((u=i+(t+r)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(l=u&d)^u&h^s,f=c+(i=f+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&g^~p&m)+K[e+3]+v[e+3])<<0,c=i+(t+r)<<0;this.h0=this.h0+c<<0,this.h1=this.h1+u<<0,this.h2=this.h2+d<<0,this.h3=this.h3+h<<0,this.h4=this.h4+f<<0,this.h5=this.h5+p<<0,this.h6=this.h6+g<<0,this.h7=this.h7+m<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(l+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,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__)))})()},36077:function(e,t){(function(){var t;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))}function r(){return new n(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},t=30):i&&"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},t=26):(n.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}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;var o,a,s="0123456789abcdefghijklmnopqrstuvwxyz",l=new Array;for(o="0".charCodeAt(0),a=0;a<=9;++a)l[o++]=a;for(o="a".charCodeAt(0),a=10;a<36;++a)l[o++]=a;for(o="A".charCodeAt(0),a=10;a<36;++a)l[o++]=a;function c(e){return s.charAt(e)}function u(e,t){var n=l[e.charCodeAt(t)];return null==n?-1:n}function d(e){var t=r();return t.fromInt(e),t}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}function f(e){this.m=e}function p(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}function g(e,t){return e&t}function m(e,t){return e|t}function v(e,t){return e^t}function y(e,t){return e&~t}function b(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function w(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function _(){}function x(e){return e}function E(e){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)},p.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},p.prototype.revert=function(e){var t=r();return e.copyTo(t),this.reduce(t),t},p.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[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)},p.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},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},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;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,o=!1,a=0;--i>=0;){var s=8==r?255&e[i]:u(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=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},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},n.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},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,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},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()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),o=r.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+r.t]=r.am(0,i[o],t,o,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},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()},n.prototype.divRemTo=function(e,t,i){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t<o.t)return null!=t&&t.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=r());var s=r(),l=this.s,c=e.s,u=this.DB-h(o[o.t-1]);u>0?(o.lShiftTo(u,s),a.lShiftTo(u,i)):(o.copyTo(s),a.copyTo(i));var d=s.t,f=s[d-1];if(0!=f){var p=f*(1<<this.F1)+(d>1?s[d-2]>>this.F2:0),g=this.FV/p,m=(1<<this.F1)/p,v=1<<this.F2,y=i.t,b=y-d,w=null==t?r():t;for(s.dlShiftTo(b,w),i.compareTo(w)>=0&&(i[i.t++]=1,i.subTo(w,i)),n.ONE.dlShiftTo(d,w),w.subTo(s,s);s.t<d;)s[s.t++]=0;for(;--b>=0;){var _=i[--y]==f?this.DM:Math.floor(i[y]*g+(i[y-1]+v)*m);if((i[y]+=s.am(0,_,i,b,0,d))<_)for(s.dlShiftTo(b,w),i.subTo(w,i);i[y]<--_;)i.subTo(w,i)}null!=t&&(i.drShiftTo(d,t),l!=c&&n.ZERO.subTo(t,t)),i.t=d,i.clamp(),u>0&&i.rShiftTo(u,i),l<0&&n.ZERO.subTo(i,i)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(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=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var i=r(),o=r(),a=t.convert(this),s=h(e)-1;for(a.copyTo(i);--s>=0;)if(t.sqrTo(i,o),(e&1<<s)>0)t.mulTo(o,a,i);else{var l=i;i=o,o=l}return t.revert(i)},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,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=c(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=c(n));return i?o:"0"},n.prototype.negate=function(){var e=r();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},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 p(t),this.exp(e,n)},n.ZERO=d(0),n.ONE=d(1),_.prototype.convert=x,_.prototype.revert=x,_.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},_.prototype.sqrTo=function(e,t){e.squareTo(t)},E.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},E.prototype.revert=function(e){return e},E.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)},E.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},E.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var C,k,S,T=[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],M=(1<<26)/T[T.length-1];function O(){var e;e=(new Date).getTime(),k[S++]^=255&e,k[S++]^=e>>8&255,k[S++]^=e>>16&255,k[S++]^=e>>24&255,S>=j&&(S-=j)}if(n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=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=d(n),o=r(),a=r(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(n+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var c=u(e,l);c<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(s=t*s+c,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(n.ONE.shiftLeft(e-1),m,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{var i=new Array,o=7&e;i.length=1+(e>>3),t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;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=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=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()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},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=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=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()},n.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;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=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},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),i=t.getLowestSetBit();if(i<=0)return!1;var o=t.shiftRight(i);(e=e+1>>1)>T.length&&(e=T.length);for(var a=r(),s=0;s<e;++s){a.fromInt(T[Math.floor(Math.random()*T.length)]);var l=a.modPow(o,this);if(0!=l.compareTo(n.ONE)&&0!=l.compareTo(t)){for(var c=1;c++<i&&0!=l.compareTo(t);)if(0==(l=l.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0},n.prototype.clone=function(){var e=r();return this.copyTo(e),e},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];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},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)),0!=(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,g,t),t},n.prototype.or=function(e){var t=r();return this.bitwiseTo(e,m,t),t},n.prototype.xor=function(e){var t=r();return this.bitwiseTo(e,v,t),t},n.prototype.andNot=function(e){var t=r();return this.bitwiseTo(e,y,t),t},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},n.prototype.shiftLeft=function(e){var t=r();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},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+b(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+=w(this[n]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},n.prototype.setBit=function(e){return this.changeBit(e,m)},n.prototype.clearBit=function(e){return this.changeBit(e,y)},n.prototype.flipBit=function(e){return this.changeBit(e,v)},n.prototype.add=function(e){var t=r();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=r();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=r();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=r();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=r();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=r(),n=r();return this.divRemTo(e,t,n),new Array(t,n)},n.prototype.modPow=function(e,t){var n,i,o=e.bitLength(),a=d(1);if(o<=0)return a;n=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new f(t):t.isEven()?new E(t):new p(t);var s=new Array,l=3,c=n-1,u=(1<<n)-1;if(s[1]=i.convert(this),n>1){var g=r();for(i.sqrTo(s[1],g);l<=u;)s[l]=r(),i.mulTo(g,s[l-2],s[l]),l+=2}var m,v,y=e.t-1,b=!0,w=r();for(o=h(e[y])-1;y>=0;){for(o>=c?m=e[y]>>o-c&u:(m=(e[y]&(1<<o+1)-1)<<c-o,y>0&&(m|=e[y-1]>>this.DB+o-c)),l=n;0==(1&m);)m>>=1,--l;if((o-=l)<0&&(o+=this.DB,--y),b)s[m].copyTo(a),b=!1;else{for(;l>1;)i.sqrTo(a,w),i.sqrTo(w,a),l-=2;l>0?i.sqrTo(a,w):(v=a,a=w,w=v),i.mulTo(w,s[m],a)}for(;y>=0&&0==(e[y]&1<<o);)i.sqrTo(a,w),v=a,a=w,w=v,--o<0&&(o=this.DB-1,--y)}return i.revert(a)},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(),o=d(1),a=d(0),s=d(0),l=d(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),t&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(n.ONE)?n.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},n.prototype.pow=function(e){return this.exp(e,new _)},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(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,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 o>0&&n.lShiftTo(o,n),n},n.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=T[T.length-1]){for(t=0;t<T.length;++t)if(n[0]==T[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<T.length;){for(var r=T[t],i=t+1;i<T.length&&r<M;)r*=T[i++];for(r=n.modInt(r);t<i;)if(r%T[t++]==0)return!1}return n.millerRabin(e)},n.prototype.square=function(){var e=r();return this.squareTo(e),e},n.prototype.Barrett=E,null==k){var L;if(k=new Array,S=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var A=new Uint8Array(32);for(window.crypto.getRandomValues(A),L=0;L<32;++L)k[S++]=A[L]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var D=window.crypto.random(32);for(L=0;L<D.length;++L)k[S++]=255&D.charCodeAt(L)}for(;S<j;)L=Math.floor(65536*Math.random()),k[S++]=L>>>8,k[S++]=255&L;S=0,O()}function N(){if(null==C){for(O(),(C=new I).init(k),S=0;S<k.length;++S)k[S]=0;S=0}return C.next()}function P(){}function I(){this.i=0,this.j=0,this.S=new Array}P.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=N()},I.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},I.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]};var j=256;n.SecureRandom=P,n.BigInteger=n,e.exports=n}).call(this)},10949:function(e){var t=[],n={tab:{char:"\t",size:1},space:{char:" ",size:4}},r={type:"tab"},i=function(e){return"\\"+t.push(e)+"\\"},o=function(e,n){return t[n-1]},a=function(e,t){return new Array(e+1).join(t)};e.exports=function(e,s){var l=n[(s=s||r).type];if(null==l)throw new Error('Unrecognized indent type: "'+s.type+'"');var c=new Array((s.size||l.size)+1).join(l.char);return function(e,n){t=[];var r="",s=0;e=e.replace(/\\./g,i).replace(/(".*?"|'.*?')/g,i).replace(/\s+/,"");for(var l=0;l<e.length;l++){var c=e.charAt(l);switch(c){case"{":case"[":r+=c+"\n"+a(++s,n);break;case"}":case"]":r+="\n"+a(--s,n)+c;break;case",":r+=",\n"+a(s,n);break;case":":r+=": ";break;default:r+=c}}return r.replace(/\[[\d,\s]+?\]/g,(function(e){return e.replace(/\s/g,"")})).replace(/\\(\d+)\\/g,o).replace(/\\(\d+)\\/g,o)}(JSON.stringify(e),c)}},55733:function(e,t,n){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(e){for(var t,n,i,a,s,l,c,u=[],d=0,h=e.length,f=h,p="string"!==r.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],n=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),n=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),a=t>>2,s=(3&t)<<4|n>>4,l=1<f?(15&n)<<2|i>>6:64,c=2<f?63&i:64,u.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(e){var t,n,r,a,s,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(a=o.indexOf(e.charAt(c++)))>>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),h[u++]=t,64!==s&&(h[u++]=n),64!==l&&(h[u++]=r);return h}},{"./support":30,"./utils":32}],2:[function(e,t,n){"use strict";var r=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),a=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 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},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 o).pipe(new a("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[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":7,"./stream/GenericWorker":28}],4:[function(e,t,n){"use strict";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 o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var o=i,a=r+n;e^=-1;for(var s=r;s<a;s++)e=e>>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[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},{}],6:[function(e,t,n){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),a=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.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 l("Deflate",e)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){"use strict";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,a,u){var d,h,f=e.file,p=e.compression,g=u!==s.utf8encode,m=o.transformTo("string",u(f.name)),v=o.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",u(y)),w=o.transformTo("string",s.utf8encode(y)),_=v.length!==f.name.length,x=w.length!==y.length,E="",C="",k="",S=f.dir,T=f.date,M={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(M.crc32=e.crc32,M.compressedSize=e.compressedSize,M.uncompressedSize=e.uncompressedSize);var O=0;t&&(O|=8),g||!_&&!x||(O|=2048);var L=0,A=0;S&&(L|=16),"UNIX"===a?(A=798,L|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(f.unixPermissions,S)):(A=20,L|=function(e){return 63&(e||0)}(f.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,h=T.getUTCFullYear()-1980,h<<=4,h|=T.getUTCMonth()+1,h<<=5,h|=T.getUTCDate(),_&&(C=r(1,1)+r(l(m),4)+v,E+="up"+r(C.length,2)+C),x&&(k=r(1,1)+r(l(b),4)+w,E+="uc"+r(k.length,2)+k);var D="";return D+="\n\0",D+=r(O,2),D+=p.magic,D+=r(d,2),D+=r(h,2),D+=r(M.crc32,4),D+=r(M.compressedSize,4),D+=r(M.uncompressedSize,4),D+=r(m.length,2),D+=r(E.length,2),{fileRecord:c.LOCAL_FILE_HEADER+D+m+E,dirRecord:c.CENTRAL_FILE_HEADER+r(A,2)+D+r(b.length,2)+"\0\0\0\0"+r(L,4)+r(i,4)+m+E+b}}var o=e("../utils"),a=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,n,r){a.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=[]}o.inherits(u,a),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,a.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 c.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,a){var s=o.transformTo("string",a(i));return c.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!!a.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(!a.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(){a.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){"use strict";var r=e("../compressions"),i=e("./ZipFileWorker");n.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;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||{},l=n.dir,c=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){"use strict";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.7.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){"use strict";var r=e("./utils"),i=e("./external"),o=e("./utf8"),a=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(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:o.utf8decode}),l.isNode&&l.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 a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o<r.length;o++)n.push(c(r[o]));return i.Promise.all(n)})).then((function(e){for(var r=e.shift(),i=r.files,o=0;o<i.length;o++){var a=i[o];n.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders})}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){"use strict";var r=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.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()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){"use strict";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){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,n){"use strict";function r(e,t,n){var r,i=o.getTypeOf(t),s=o.extend(n||{},l);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 d="string"===i&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!d),(t instanceof c&&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 c||t instanceof a?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var y=new u(e,v,s);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),a=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=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:l.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 o=this.files[this.root+e];return o&&!o.dir?o: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(e){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=o.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.");o.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=d.generateWorker(this,n,r)}catch(e){(t=new a("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){"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),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),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-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),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[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){"use strict";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(e){},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(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},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){"use strict";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){"use strict";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){"use strict";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){"use strict";var r=e("../utils"),i=e("../support"),o=e("./ArrayReader"),a=e("./StringReader"),s=e("./NodeBufferReader"),l=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 l(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[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"},{}],24:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){"use strict";var r=e("./GenericWorker"),i=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.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=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){"use strict";var r=e("../utils"),i=e("./GenericWorker");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),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.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=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){"use strict";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)this.extraStreamInfo.hasOwnProperty(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){"use strict";var r=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),a=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t){return new l.Promise((function(n,i){var o=[],s=e._internalType,l=e._outputType,c=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 a.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 Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,o),c);n(e)}catch(e){i(e)}o=[]})).resume()}))}function d(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)}}d.prototype={accumulate:function(e){return u(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 c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,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){"use strict";for(var r=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),a=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function u(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=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,o,a=e.length,l=new Array(2*a);for(t=n=0;t<a;)if((i=e[t++])<128)l[n++]=i;else if(4<(o=s[i]))l[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<a;)i=i<<6|63&e[t++],o--;1<o?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(c,a),c.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=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),l=t;a!==t.length&&(i.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:n.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,r.inherits(u,a),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){"use strict";var r=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),a=e("set-immediate-shim"),s=e("./external");function l(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}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 u={stringifyByChunk:function(e,t,n){var r=[],i=0,o=e.length;if(o<=n)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,o)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,o)))),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,o.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,r=n.getTypeOf(e),i=!0;if("uint8array"===r?i=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function h(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=d;var f={};f.string={string:l,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,o.allocBuffer(e.length))}},f.array={string:d,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},f.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return o.newBufferFrom(e)}},f.nodebuffer={string:d,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:l},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.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&o.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){a((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])arguments[e].hasOwnProperty(t)&&void 0===n[t]&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,o,a,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 u=n.getTypeOf(t);return u?("arraybuffer"===u?t=n.transformTo("uint8array",t):"string"===u&&(l?t=i.decode(t):o&&!0!==a&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(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":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),a=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.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(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new a({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(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.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(o.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(o.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(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.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(o.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,o.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=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){"use strict";var r=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),a=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(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 l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[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 o(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(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);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))}},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=c.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 o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(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)||a(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){"use strict";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"),o=e("./stream/DataWorker"),a=e("./utf8"),s=e("./compressedObject"),l=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 o=!this._dataBinary;o&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!o&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("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 a.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)r.prototype[c[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,a=new i(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=o=++o%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 l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,n){"use strict";var r=e("immediate");function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(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 d(e,t,n){r((function(){var r;try{r=t(n)}catch(r){return o.reject(e,r)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=p((function(){t(i,r)}));"error"===a.status&&r(a.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=c).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}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=p(h,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)f(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.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 a=new Array(n),s=0,l=-1,c=new this(i);++l<n;)u(e[l],l);return c;function u(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==n||r||(r=!0,o.resolve(c,a))}),(function(e){r||(r=!0,o.reject(c,e))}))}},c.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 a,s=-1,l=new this(i);++s<n;)a=e[s],t.resolve(a).then((function(e){r||(r=!0,o.resolve(l,e))}),(function(e){r||(r=!0,o.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,n){"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":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,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!==c)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}f.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.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,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.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===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("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=f,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){"use strict";var r=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(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&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new c,r.inflateGetHeader(this.strm,this.header)}function h(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,l,c,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?f.input=o.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(p),f.next_out=0,f.avail_out=p),(n=r.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),c=f.next_out-l,d=o.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&i.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===a.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=d,n.inflate=h,n.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},n.ungzip=h},{"./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){"use strict";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 o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},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,o))},n.setTyped(r)},{}],42:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(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,o,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)c[r++]=i;else if(4<(o=a[i]))c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,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+a[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],44:[function(e,t,n){"use strict";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){"use strict";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 o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,h=-2,f=-1,p=4,g=2,m=8,v=9,y=286,b=30,w=19,_=2*y+1,x=15,E=3,C=258,k=C+E+1,S=42,T=113,M=1,O=2,L=3,A=4;function D(e,t){return e.msg=l[t],t}function N(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function I(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 j(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,I(e.strm)}function R(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+C,f=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===f&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=C-(h-o),o=h-C,a<r){if(e.match_start=t,s<=(a=r))break;f=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function Y(e){var t,n,r,o,l,c,u,d,h,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-k)){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;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=o)<(f=c.avail_in)&&(f=h),n=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=a(c.adler,u,f,d):2===c.state.wrap&&(c.adler=s(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=n,e.lookahead+e.insert>=E)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+E-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<E)););}while(e.lookahead<k&&0!==e.strm.avail_in)}function B(e,t){for(var n,r;;){if(e.lookahead<k){if(Y(e),e.lookahead<k&&t===c)return M;if(0===e.lookahead)break}if(n=0,e.lookahead>=E&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+E-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-k&&(e.match_length=z(e,n)),e.match_length>=E)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-E),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=E){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+E-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=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(j(e,!1),0===e.strm.avail_out))return M}return e.insert=e.strstart<E-1?e.strstart:E-1,t===u?(j(e,!0),0===e.strm.avail_out?L:A):e.last_lit&&(j(e,!1),0===e.strm.avail_out)?M:O}function H(e,t){for(var n,r,i;;){if(e.lookahead<k){if(Y(e),e.lookahead<k&&t===c)return M;if(0===e.lookahead)break}if(n=0,e.lookahead>=E&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+E-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=E-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-k&&(e.match_length=z(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===E&&4096<e.strstart-e.match_start)&&(e.match_length=E-1)),e.prev_length>=E&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-E,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-E),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+E-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=E-1,e.strstart++,r&&(j(e,!1),0===e.strm.avail_out))return M}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&j(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return M}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<E-1?e.strstart:E-1,t===u?(j(e,!0),0===e.strm.avail_out?L:A):e.last_lit&&(j(e,!1),0===e.strm.avail_out)?M:O}function q(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 U(){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*_),this.dyn_dtree=new i.Buf16(2*(2*b+1)),this.bl_tree=new i.Buf16(2*(2*w+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?S:T,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),d):D(e,h)}function W(e){var t=V(e);return t===d&&function(e){e.window_size=2*e.w_size,P(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=E-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,n,r,o,a){if(!e)return h;var s=1;if(t===f&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||v<o||n!==m||r<8||15<r||t<0||9<t||a<0||p<a)return D(e,h);8===r&&(r=9);var l=new U;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+E-1)/E),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,W(e)}r=[new q(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(Y(e),0===e.lookahead&&t===c)return M;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,j(e,!1),0===e.strm.avail_out))return M;if(e.strstart-e.block_start>=e.w_size-k&&(j(e,!1),0===e.strm.avail_out))return M}return e.insert=0,t===u?(j(e,!0),0===e.strm.avail_out?L:A):(e.strstart>e.block_start&&(j(e,!1),e.strm.avail_out),M)})),new q(4,4,8,4,B),new q(4,5,16,8,B),new q(4,6,32,32,B),new q(4,4,16,16,H),new q(8,16,32,32,H),new q(8,16,128,128,H),new q(8,32,128,256,H),new q(32,128,258,1024,H),new q(32,258,258,4096,H)],n.deflateInit=function(e,t){return G(e,t,m,15,8,0)},n.deflateInit2=G,n.deflateReset=W,n.deflateResetKeep=V,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},n.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||5<t||t<0)return e?D(e,h):h;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return D(e,0===e.avail_out?-5:h);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===S)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=T);else{var f=m+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=T,F(i,f),0!==i.strstart&&(F(i,e.adler>>>16),F(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),I(e),a=i.pending,i.pending!==i.pending_buf_size));)R(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),I(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,R(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),I(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,R(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&I(e),i.pending+2<=i.pending_buf_size&&(R(i,255&e.adler),R(i,e.adler>>8&255),e.adler=0,i.status=T)):i.status=T),0!==i.pending){if(I(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&N(t)<=N(n)&&t!==u)return D(e,-5);if(666===i.status&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Y(e),0===e.lookahead)){if(t===c)return M;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(j(e,!1),0===e.strm.avail_out))return M}return e.insert=0,t===u?(j(e,!0),0===e.strm.avail_out?L:A):e.last_lit&&(j(e,!1),0===e.strm.avail_out)?M:O}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=C){if(Y(e),e.lookahead<=C&&t===c)return M;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=E&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+C;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<a);e.match_length=C-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=E?(n=o._tr_tally(e,1,e.match_length-E),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(j(e,!1),0===e.strm.avail_out))return M}return e.insert=0,t===u?(j(e,!0),0===e.strm.avail_out?L:A):e.last_lit&&(j(e,!1),0===e.strm.avail_out)?M:O}(i,t):r[i.level].func(i,t);if(p!==L&&p!==A||(i.status=666),p===M||p===L)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===O&&(1===t?o._tr_align(i):5!==t&&(o._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))),I(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d: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)):(F(i,e.adler>>>16),F(i,65535&e.adler)),I(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==S&&69!==t&&73!==t&&91!==t&&103!==t&&t!==T&&666!==t?D(e,h):(e.state=null,t===T?D(e,-3):d):h},n.deflateSetDictionary=function(e,t){var n,r,o,s,l,c,u,f,p=t.length;if(!e||!e.state)return h;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==S||n.lookahead)return h;for(1===s&&(e.adler=a(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),f=new i.Buf8(n.w_size),i.arraySet(f,t,p-n.w_size,n.w_size,0),t=f,p=n.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,Y(n);n.lookahead>=E;){for(r=n.strstart,o=n.lookahead-(E-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+E-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=E-1,Y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=E-1,n.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,n.wrap=s,d},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){"use strict";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){"use strict";t.exports=function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,w,_,x,E,C,k,S;n=e.state,r=e.next_in,k=e.input,i=r+(e.avail_in-5),o=e.next_out,S=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,f=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&&(f+=k[r++]<<p,p+=8,f+=k[r++]<<p,p+=8),b=g[f&v];t:for(;;){if(f>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))S[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(f&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&b,(w&=15)&&(p<w&&(f+=k[r++]<<p,p+=8),_+=f&(1<<w)-1,f>>>=w,p-=w),p<15&&(f+=k[r++]<<p,p+=8,f+=k[r++]<<p,p+=8),b=m[f&y];n:for(;;){if(f>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=m[(65535&b)+(f&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&b,p<(w&=15)&&(f+=k[r++]<<p,(p+=8)<w&&(f+=k[r++]<<p,p+=8)),l<(x+=f&(1<<w)-1)){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=w,p-=w,(w=o-a)<x){if(u<(w=x-w)&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(C=h,(E=0)===d){if(E+=c-w,w<_){for(_-=w;S[o++]=h[E++],--w;);E=o-x,C=S}}else if(d<w){if(E+=c+d-w,(w-=d)<_){for(_-=w;S[o++]=h[E++],--w;);if(E=0,d<_){for(_-=w=d;S[o++]=h[E++],--w;);E=o-x,C=S}}}else if(E+=d-w,w<_){for(_-=w;S[o++]=h[E++],--w;);E=o-x,C=S}for(;2<_;)S[o++]=C[E++],S[o++]=C[E++],S[o++]=C[E++],_-=3;_&&(S[o++]=C[E++],1<_&&(S[o++]=C[E++]))}else{for(E=o-x;S[o++]=S[E++],S[o++]=S[E++],S[o++]=S[E++],2<(_-=3););_&&(S[o++]=S[E++],1<_&&(S[o++]=S[E++]))}break}}break}}while(r<i&&o<s);r-=_=p>>3,f&=(1<<(p-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=f,n.bits=p}},{}],49:[function(e,t,n){"use strict";var r=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),a=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,h=1,f=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=h,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(f),t.distcode=t.distdyn=new r.Buf32(p),t.sane=1,t.back=-1,u):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function b(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)?d:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,y(e))):d}function w(e,t){var n,r;return e?(r=new m,(e.state=r).window=null,(n=b(e,t))!==u&&(e.state=null),n):d}var _,x,E=!0;function C(e){if(E){var t;for(_=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(l,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,x,0,e.work,{bits:5}),E=!1}e.lencode=_,e.lenbits=9,e.distcode=x,e.distbits=5}function k(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i<(o=a.wsize-a.wnext)&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}n.inflateReset=y,n.inflateReset2=b,n.inflateResetKeep=v,n.inflateInit=function(e){return w(e,15)},n.inflateInit2=w,n.inflate=function(e,t){var n,f,p,m,v,y,b,w,_,x,E,S,T,M,O,L,A,D,N,P,I,j,R,F,z=0,Y=new r.Buf8(4),B=[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 d;12===(n=e.state).mode&&(n.mode=13),v=e.next_out,p=e.output,b=e.avail_out,m=e.next_in,f=e.input,y=e.avail_in,w=n.hold,_=n.bits,x=y,E=b,j=u;e:for(;;)switch(n.mode){case h:if(0===n.wrap){n.mode=13;break}for(;_<16;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(2&n.wrap&&35615===w){Y[n.check=0]=255&w,Y[1]=w>>>8&255,n.check=o(n.check,Y,2,0),_=w=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",n.mode=30;break}if(_-=4,I=8+(15&(w>>>=4)),0===n.wbits)n.wbits=I;else if(I>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<I,e.adler=n.check=1,n.mode=512&w?10:12,_=w=0;break;case 2:for(;_<16;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(n.flags=w,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=w>>8&1),512&n.flags&&(Y[0]=255&w,Y[1]=w>>>8&255,n.check=o(n.check,Y,2,0)),_=w=0,n.mode=3;case 3:for(;_<32;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}n.head&&(n.head.time=w),512&n.flags&&(Y[0]=255&w,Y[1]=w>>>8&255,Y[2]=w>>>16&255,Y[3]=w>>>24&255,n.check=o(n.check,Y,4,0)),_=w=0,n.mode=4;case 4:for(;_<16;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}n.head&&(n.head.xflags=255&w,n.head.os=w>>8),512&n.flags&&(Y[0]=255&w,Y[1]=w>>>8&255,n.check=o(n.check,Y,2,0)),_=w=0,n.mode=5;case 5:if(1024&n.flags){for(;_<16;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}n.length=w,n.head&&(n.head.extra_len=w),512&n.flags&&(Y[0]=255&w,Y[1]=w>>>8&255,n.check=o(n.check,Y,2,0)),_=w=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(y<(S=n.length)&&(S=y),S&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,f,m,S,I)),512&n.flags&&(n.check=o(n.check,f,S,m)),y-=S,m+=S,n.length-=S),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===y)break e;for(S=0;I=f[m+S++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I)),I&&S<y;);if(512&n.flags&&(n.check=o(n.check,f,S,m)),y-=S,m+=S,I)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(S=0;I=f[m+S++],n.head&&I&&n.length<65536&&(n.head.comment+=String.fromCharCode(I)),I&&S<y;);if(512&n.flags&&(n.check=o(n.check,f,S,m)),y-=S,m+=S,I)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;_<16;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(w!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}_=w=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(;_<32;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}e.adler=n.check=g(w),_=w=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=v,e.avail_out=b,e.next_in=m,e.avail_in=y,n.hold=w,n.bits=_,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){w>>>=7&_,_-=7&_,n.mode=27;break}for(;_<3;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}switch(n.last=1&w,_-=1,3&(w>>>=1)){case 0:n.mode=14;break;case 1:if(C(n),n.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&w,_=w=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(S=n.length){if(y<S&&(S=y),b<S&&(S=b),0===S)break e;r.arraySet(p,f,m,S,v),y-=S,m+=S,b-=S,v+=S,n.length-=S;break}n.mode=12;break;case 17:for(;_<14;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(n.nlen=257+(31&w),w>>>=5,_-=5,n.ndist=1+(31&w),w>>>=5,_-=5,n.ncode=4+(15&w),w>>>=4,_-=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(;_<3;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}n.lens[B[n.have++]]=7&w,w>>>=3,_-=3}for(;n.have<19;)n.lens[B[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,R={bits:n.lenbits},j=s(0,n.lens,0,19,n.lencode,0,n.work,R),n.lenbits=R.bits,j){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(;L=(z=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,A=65535&z,!((O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(A<16)w>>>=O,_-=O,n.lens[n.have++]=A;else{if(16===A){for(F=O+2;_<F;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(w>>>=O,_-=O,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}I=n.lens[n.have-1],S=3+(3&w),w>>>=2,_-=2}else if(17===A){for(F=O+3;_<F;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}_-=O,I=0,S=3+(7&(w>>>=O)),w>>>=3,_-=3}else{for(F=O+7;_<F;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}_-=O,I=0,S=11+(127&(w>>>=O)),w>>>=7,_-=7}if(n.have+S>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;S--;)n.lens[n.have++]=I}}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},j=s(l,n.lens,0,n.nlen,n.lencode,0,n.work,R),n.lenbits=R.bits,j){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,R={bits:n.distbits},j=s(c,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,R),n.distbits=R.bits,j){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<=b){e.next_out=v,e.avail_out=b,e.next_in=m,e.avail_in=y,n.hold=w,n.bits=_,a(e,E),v=e.next_out,p=e.output,b=e.avail_out,m=e.next_in,f=e.input,y=e.avail_in,w=n.hold,_=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;L=(z=n.lencode[w&(1<<n.lenbits)-1])>>>16&255,A=65535&z,!((O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(L&&0==(240&L)){for(D=O,N=L,P=A;L=(z=n.lencode[P+((w&(1<<D+N)-1)>>D)])>>>16&255,A=65535&z,!(D+(O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}w>>>=D,_-=D,n.back+=D}if(w>>>=O,_-=O,n.back+=O,n.length=A,0===L){n.mode=26;break}if(32&L){n.back=-1,n.mode=12;break}if(64&L){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&L,n.mode=22;case 22:if(n.extra){for(F=n.extra;_<F;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}n.length+=w&(1<<n.extra)-1,w>>>=n.extra,_-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;L=(z=n.distcode[w&(1<<n.distbits)-1])>>>16&255,A=65535&z,!((O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(0==(240&L)){for(D=O,N=L,P=A;L=(z=n.distcode[P+((w&(1<<D+N)-1)>>D)])>>>16&255,A=65535&z,!(D+(O=z>>>24)<=_);){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}w>>>=D,_-=D,n.back+=D}if(w>>>=O,_-=O,n.back+=O,64&L){e.msg="invalid distance code",n.mode=30;break}n.offset=A,n.extra=15&L,n.mode=24;case 24:if(n.extra){for(F=n.extra;_<F;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}n.offset+=w&(1<<n.extra)-1,w>>>=n.extra,_-=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===b)break e;if(S=E-b,n.offset>S){if((S=n.offset-S)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}T=S>n.wnext?(S-=n.wnext,n.wsize-S):n.wnext-S,S>n.length&&(S=n.length),M=n.window}else M=p,T=v-n.offset,S=n.length;for(b<S&&(S=b),b-=S,n.length-=S;p[v++]=M[T++],--S;);0===n.length&&(n.mode=21);break;case 26:if(0===b)break e;p[v++]=n.length,b--,n.mode=21;break;case 27:if(n.wrap){for(;_<32;){if(0===y)break e;y--,w|=f[m++]<<_,_+=8}if(E-=b,e.total_out+=E,n.total+=E,E&&(e.adler=n.check=n.flags?o(n.check,p,E,v-E):i(n.check,p,E,v-E)),E=b,(n.flags?w:g(w))!==n.check){e.msg="incorrect data check",n.mode=30;break}_=w=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;_<32;){if(0===y)break e;y--,w+=f[m++]<<_,_+=8}if(w!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}_=w=0}n.mode=29;case 29:j=1;break e;case 30:j=-3;break e;case 31:return-4;default:return d}return e.next_out=v,e.avail_out=b,e.next_in=m,e.avail_in=y,n.hold=w,n.bits=_,(n.wsize||E!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&k(e,e.output,e.next_out,E-e.avail_out)?(n.mode=31,-4):(x-=e.avail_in,E-=e.avail_out,e.total_in+=x,e.total_out+=E,n.total+=E,n.wrap&&E&&(e.adler=n.check=n.flags?o(n.check,p,E,e.next_out-E):i(n.check,p,E,e.next_out-E)),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===E||4===t)&&j===u&&(j=-5),j)},n.inflateEnd=function(e){if(!e||!e.state)return d;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?0==(2&(n=e.state).wrap)?d:((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?d:11===n.mode&&i(1,t,r,0)!==n.check?-3:k(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){"use strict";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],o=[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],a=[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,l,c,u,d,h){var f,p,g,m,v,y,b,w,_,x=h.bits,E=0,C=0,k=0,S=0,T=0,M=0,O=0,L=0,A=0,D=0,N=null,P=0,I=new r.Buf16(16),j=new r.Buf16(16),R=null,F=0;for(E=0;E<=15;E++)I[E]=0;for(C=0;C<l;C++)I[t[n+C]]++;for(T=x,S=15;1<=S&&0===I[S];S--);if(S<T&&(T=S),0===S)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(k=1;k<S&&0===I[k];k++);for(T<k&&(T=k),E=L=1;E<=15;E++)if(L<<=1,(L-=I[E])<0)return-1;if(0<L&&(0===e||1!==S))return-1;for(j[1]=0,E=1;E<15;E++)j[E+1]=j[E]+I[E];for(C=0;C<l;C++)0!==t[n+C]&&(d[j[t[n+C]]++]=C);if(y=0===e?(N=R=d,19):1===e?(N=i,P-=257,R=o,F-=257,256):(N=a,R=s,-1),E=k,v=u,O=C=D=0,g=-1,m=(A=1<<(M=T))-1,1===e&&852<A||2===e&&592<A)return 1;for(;;){for(b=E-O,_=d[C]<y?(w=0,d[C]):d[C]>y?(w=R[F+d[C]],N[P+d[C]]):(w=96,0),f=1<<E-O,k=p=1<<M;c[v+(D>>O)+(p-=f)]=b<<24|w<<16|_|0,0!==p;);for(f=1<<E-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,C++,0==--I[E]){if(E===S)break;E=t[n+d[C]]}if(T<E&&(D&m)!==g){for(0===O&&(O=T),v+=k,L=1<<(M=E-O);M+O<S&&!((L-=I[M+O])<=0);)M++,L<<=1;if(A+=1<<M,1===e&&852<A||2===e&&592<A)return 1;c[g=D&m]=T<<24|M<<16|v-u|0}}return 0!==D&&(c[v+D]=E-O<<24|64<<16|0),h.bits=T,0}},{"../utils/common":41}],51:[function(e,t,n){"use strict";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){"use strict";var r=e("../utils/common"),i=0,o=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,c=256,u=c+1+l,d=30,h=19,f=2*u+1,p=15,g=16,m=7,v=256,y=16,b=17,w=18,_=[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],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(u+2));a(k);var S=new Array(2*d);a(S);var T=new Array(512);a(T);var M=new Array(256);a(M);var O=new Array(l);a(O);var L,A,D,N=new Array(d);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 I(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function j(e){return e<256?T[e]:T[256+(e>>>7)]}function R(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(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 z(e,t,n){F(e,n[2*t],n[2*t+1])}function Y(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,o=new Array(p+1),a=0;for(r=1;r<=p;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=Y(o[s]++,s))}}function H(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;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 q(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 U(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&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&&U(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!U(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,o,a,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?z(e,i,t):(z(e,(o=M[i])+c+1,t),0!==(a=_[o])&&F(e,i-=O[o],a),z(e,o=j(--r),n),0!==(a=x[o])&&F(e,r-=N[o],a)),s<e.last_lit;);z(e,v,t)}function G(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=f,n=0;n<l;n++)0!==o[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;1<=n;n--)V(e,o,n);for(i=l;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,V(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,v=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<f;n++)m<(o=l[2*l[2*(r=e.heap[n])+1]+1]+1)&&(o=m,v++),l[2*r+1]=o,c<r||(e.bl_count[o]++,a=0,g<=r&&(a=h[r-g]),s=l[2*r],e.opt_len+=s*(o+a),d&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==v){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,v-=2}while(0<v);for(o=m;0!==o;o--)for(r=e.bl_count[o];0!==r;)c<(i=e.heap[--n])||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(e,t),B(o,c,e.bl_count)}function $(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):s<=10?e.bl_tree[2*b]++:e.bl_tree[2*w]++,o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4))}function K(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)for(;z(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(z(e,i,e.bl_tree),s--),z(e,y,e.bl_tree),F(e,s-3,2)):s<=10?(z(e,b,e.bl_tree),F(e,s-3,3)):(z(e,w,e.bl_tree),F(e,s-11,7));o=i,c=(s=0)===a?(l=138,3):i===a?(l=6,3):(l=7,4)}}a(N);var J=!1;function X(e,t,n,i){F(e,(s<<1)+(i?1:0),3),function(e,t,n,i){q(e),i&&(R(e,n),R(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){J||(function(){var e,t,n,r,i,o=new Array(p+1);for(r=n=0;r<l-1;r++)for(O[r]=n,e=0;e<1<<_[r];e++)M[n++]=r;for(M[n-1]=r,r=i=0;r<16;r++)for(N[r]=i,e=0;e<1<<x[r];e++)T[i++]=r;for(i>>=7;r<d;r++)for(N[r]=i<<7,e=0;e<1<<x[r]-7;e++)T[256+i++]=r;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)k[2*e+1]=8,e++,o[8]++;for(;e<=255;)k[2*e+1]=9,e++,o[9]++;for(;e<=279;)k[2*e+1]=7,e++,o[7]++;for(;e<=287;)k[2*e+1]=8,e++,o[8]++;for(B(k,u+1,o),e=0;e<d;e++)S[2*e+1]=5,S[2*e]=Y(e,5);L=new P(k,_,c+1,u,p),A=new P(S,x,0,d,p),D=new P(new Array(0),E,0,h,m)}(),J=!0),e.l_desc=new I(e.dyn_ltree,L),e.d_desc=new I(e.dyn_dtree,A),e.bl_desc=new I(e.bl_tree,D),e.bi_buf=0,e.bi_valid=0,H(e)},n._tr_stored_block=X,n._tr_flush_block=function(e,t,n,r){var a,s,l=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 o;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),G(e,e.l_desc),G(e,e.d_desc),l=function(e){var t;for($(e,e.dyn_ltree,e.l_desc.max_code),$(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*C[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=a&&(a=s)):a=s=n+5,n+4<=a&&-1!==t?X(e,t,n,r):4===e.strategy||s===a?(F(e,2+(r?1:0),3),W(e,k,S)):(F(e,4+(r?1:0),3),function(e,t,n,r){var i;for(F(e,t-257,5),F(e,n-1,5),F(e,r-4,4),i=0;i<r;i++)F(e,e.bl_tree[2*C[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,l+1),W(e,e.dyn_ltree,e.dyn_dtree)),H(e),r&&q(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]+c+1)]++,e.dyn_dtree[2*j(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){F(e,2,3),z(e,v,k),function(e){16===e.bi_valid?(R(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){"use strict";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){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)},71168:function(e){function t(e){this.message=e}t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var n=String(e).replace(/=+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=n.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s}},84491:function(e,t,n){var r=n(71168);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return r(t)}}},46489:function(e,t,n){"use strict";var r=n(84491);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},26401:function(e){var t=Object.prototype.toString;function n(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var r=typeof e;if("boolean"===r)return"boolean";if("string"===r)return"string";if("number"===r)return"number";if("symbol"===r)return"symbol";if("function"===r)return"GeneratorFunction"===n(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(n(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(r=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),i=n(80401),o=n(57667),a=n(21327),s=n(81866);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},38407:function(e,t,n){var r=n(27040),i=n(14125),o=n(82117),a=n(67518),s=n(13399);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},57071:function(e,t,n){var r=n(10852)(n(55639),"Map");e.exports=r},83369:function(e,t,n){var r=n(24785),i=n(11285),o=n(96e3),a=n(49916),s=n(95265);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},53818:function(e,t,n){var r=n(10852)(n(55639),"Promise");e.exports=r},58525:function(e,t,n){var r=n(10852)(n(55639),"Set");e.exports=r},88668:function(e,t,n){var r=n(83369),i=n(90619),o=n(72385);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},46384:function(e,t,n){var r=n(38407),i=n(37465),o=n(63779),a=n(67599),s=n(44758),l=n(34309);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},62705:function(e,t,n){var r=n(55639).Symbol;e.exports=r},11149:function(e,t,n){var r=n(55639).Uint8Array;e.exports=r},70577:function(e,t,n){var r=n(10852)(n(55639),"WeakMap");e.exports=r},96874:function(e){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)}},77412:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},34963:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},47443:function(e,t,n){var r=n(42118);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},1196:function(e){e.exports=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}},14636:function(e,t,n){var r=n(22545),i=n(35694),o=n(1469),a=n(44144),s=n(65776),l=n(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),f=n||u||d||h,p=f?r(e.length,String):[],g=p.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},29932:function(e){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}},62488:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},62663:function(e){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},82908:function(e){e.exports=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}},48983:function(e,t,n){var r=n(40371)("length");e.exports=r},86556:function(e,t,n){var r=n(89465),i=n(77813);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},34865:function(e,t,n){var r=n(89465),i=n(77813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},18470:function(e,t,n){var r=n(77813);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},44037:function(e,t,n){var r=n(98363),i=n(3674);e.exports=function(e,t){return e&&r(t,i(t),e)}},63886:function(e,t,n){var r=n(98363),i=n(81704);e.exports=function(e,t){return e&&r(t,i(t),e)}},89465:function(e,t,n){var r=n(38777);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},85990:function(e,t,n){var r=n(46384),i=n(77412),o=n(34865),a=n(44037),s=n(63886),l=n(64626),c=n(278),u=n(18805),d=n(1911),h=n(58234),f=n(46904),p=n(64160),g=n(43824),m=n(29148),v=n(38517),y=n(1469),b=n(44144),w=n(56688),_=n(13218),x=n(72928),E=n(3674),C=n(81704),k="[object Arguments]",S="[object Function]",T="[object Object]",M={};M[k]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[T]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[S]=M["[object WeakMap]"]=!1,e.exports=function e(t,n,O,L,A,D){var N,P=1&n,I=2&n,j=4&n;if(O&&(N=A?O(t,L,A,D):O(t)),void 0!==N)return N;if(!_(t))return t;var R=y(t);if(R){if(N=g(t),!P)return c(t,N)}else{var F=p(t),z=F==S||"[object GeneratorFunction]"==F;if(b(t))return l(t,P);if(F==T||F==k||z&&!A){if(N=I||z?{}:v(t),!P)return I?d(t,s(N,t)):u(t,a(N,t))}else{if(!M[F])return A?t:{};N=m(t,F,P)}}D||(D=new r);var Y=D.get(t);if(Y)return Y;D.set(t,N),x(t)?t.forEach((function(r){N.add(e(r,n,O,r,t,D))})):w(t)&&t.forEach((function(r,i){N.set(i,e(r,n,O,i,t,D))}));var B=R?void 0:(j?I?f:h:I?C:E)(t);return i(B||t,(function(r,i){B&&(r=t[i=r]),o(N,i,e(r,n,O,i,t,D))})),N}},3118:function(e,t,n){var r=n(13218),i=Object.create,o=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=o},89881:function(e,t,n){var r=n(47816),i=n(99291)(r);e.exports=i},56029:function(e,t,n){var r=n(33448);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,c=a}return c}},80760:function(e,t,n){var r=n(89881);e.exports=function(e,t){var n=[];return r(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}},41848:function(e){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},21078:function(e,t,n){var r=n(62488),i=n(37285);e.exports=function e(t,n,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];n>0&&o(u)?n>1?e(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},28483:function(e,t,n){var r=n(25063)();e.exports=r},47816:function(e,t,n){var r=n(28483),i=n(3674);e.exports=function(e,t){return e&&r(e,t,i)}},97786:function(e,t,n){var r=n(71811),i=n(40327);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},68866:function(e,t,n){var r=n(62488),i=n(1469);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},44239:function(e,t,n){var r=n(62705),i=n(89607),o=n(2333),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},53325:function(e){e.exports=function(e,t){return e>t}},78565:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},13:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},42118:function(e,t,n){var r=n(41848),i=n(62722),o=n(42351);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},9454:function(e,t,n){var r=n(44239),i=n(37005);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},90939:function(e,t,n){var r=n(2492),i=n(37005);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},2492:function(e,t,n){var r=n(46384),i=n(67114),o=n(18351),a=n(16096),s=n(64160),l=n(1469),c=n(44144),u=n(36719),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),w=y?h:s(e),_=b?h:s(t),x=(w=w==d?f:w)==f,E=(_=_==d?f:_)==f,C=w==_;if(C&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(C&&!x)return v||(v=new r),y||u(e)?i(e,t,n,g,m,v):o(e,t,w,n,g,m,v);if(!(1&n)){var k=x&&p.call(e,"__wrapped__"),S=E&&p.call(t,"__wrapped__");if(k||S){var T=k?e.value():e,M=S?t.value():t;return v||(v=new r),m(T,M,n,g,v)}}return!!C&&(v||(v=new r),a(e,t,n,g,m,v))}},25588:function(e,t,n){var r=n(64160),i=n(37005);e.exports=function(e){return i(e)&&"[object Map]"==r(e)}},2958:function(e,t,n){var r=n(46384),i=n(90939);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(o)var p=o(d,h,u,e,t,f);if(!(void 0===p?i(h,d,3,o,f):p))return!1}}return!0}},62722:function(e){e.exports=function(e){return e!=e}},28458:function(e,t,n){var r=n(23560),i=n(15346),o=n(13218),a=n(80346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},29221:function(e,t,n){var r=n(64160),i=n(37005);e.exports=function(e){return i(e)&&"[object Set]"==r(e)}},38749:function(e,t,n){var r=n(44239),i=n(41780),o=n(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},67206:function(e,t,n){var r=n(91573),i=n(16432),o=n(6557),a=n(1469),s=n(39601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},280:function(e,t,n){var r=n(25726),i=n(86916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},35014:function(e,t,n){var r=n(13218),i=n(25726),o=n(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},70433:function(e){e.exports=function(e,t){return e<t}},69199:function(e,t,n){var r=n(89881),i=n(98612);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},91573:function(e,t,n){var r=n(2958),i=n(1499),o=n(42634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},16432:function(e,t,n){var r=n(90939),i=n(27361),o=n(79095),a=n(15403),s=n(89162),l=n(42634),c=n(40327);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},42980:function(e,t,n){var r=n(46384),i=n(86556),o=n(28483),a=n(59783),s=n(13218),l=n(81704),c=n(36390);e.exports=function e(t,n,u,d,h){t!==n&&o(n,(function(o,l){if(h||(h=new r),s(o))a(t,n,l,u,e,d,h);else{var f=d?d(c(t,l),o,l+"",t,n,h):void 0;void 0===f&&(f=o),i(t,l,f)}}),l)}},59783:function(e,t,n){var r=n(86556),i=n(64626),o=n(77133),a=n(278),s=n(38517),l=n(35694),c=n(1469),u=n(29246),d=n(44144),h=n(23560),f=n(13218),p=n(68630),g=n(36719),m=n(36390),v=n(59881);e.exports=function(e,t,n,y,b,w,_){var x=m(e,n),E=m(t,n),C=_.get(E);if(C)r(e,n,C);else{var k=w?w(x,E,n+"",e,t,_):void 0,S=void 0===k;if(S){var T=c(E),M=!T&&d(E),O=!T&&!M&&g(E);k=E,T||M||O?c(x)?k=x:u(x)?k=a(x):M?(S=!1,k=i(E,!0)):O?(S=!1,k=o(E,!0)):k=[]:p(E)||l(E)?(k=x,l(x)?k=v(x):f(x)&&!h(x)||(k=s(E))):S=!1}S&&(_.set(E,k),b(k,E,y,w,_),_.delete(E)),r(e,n,k)}}},82689:function(e,t,n){var r=n(29932),i=n(97786),o=n(67206),a=n(69199),s=n(71131),l=n(7518),c=n(85022),u=n(6557),d=n(1469);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e})):[u];var h=-1;t=r(t,l(o));var f=a(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++h,value:e}}));return s(f,(function(e,t){return c(e,t,n)}))}},25970:function(e,t,n){var r=n(63012),i=n(79095);e.exports=function(e,t){return r(e,t,(function(t,n){return i(e,n)}))}},63012:function(e,t,n){var r=n(97786),i=n(10611),o=n(71811);e.exports=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=r(e,c);n(u,c)&&i(l,o(c,e),u)}return l}},40371:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},79152:function(e,t,n){var r=n(97786);e.exports=function(e){return function(t){return r(t,e)}}},40098:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},10107:function(e){e.exports=function(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}},5976:function(e,t,n){var r=n(6557),i=n(45357),o=n(30061);e.exports=function(e,t){return o(i(e,t,r),e+"")}},10611:function(e,t,n){var r=n(34865),i=n(71811),o=n(65776),a=n(13218),s=n(40327);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++c<u;){var f=s(t[c]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=d){var g=h[f];void 0===(p=l?l(g,f,h):void 0)&&(p=a(g)?g:o(t[c+1])?[]:{})}r(h,f,p),h=h[f]}return e}},56560:function(e,t,n){var r=n(75703),i=n(38777),o=n(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},71131:function(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},22545:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},80531:function(e,t,n){var r=n(62705),i=n(29932),o=n(1469),a=n(33448),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},45652:function(e,t,n){var r=n(88668),i=n(47443),o=n(1196),a=n(74757),s=n(23593),l=n(21814);e.exports=function(e,t,n){var c=-1,u=i,d=e.length,h=!0,f=[],p=f;if(n)h=!1,u=o;else if(d>=200){var g=t?null:s(e);if(g)return l(g);h=!1,u=a,p=new r}else p=t?[]:f;e:for(;++c<d;){var m=e[c],v=t?t(m):m;if(m=n||0!==m?m:0,h&&v==v){for(var y=p.length;y--;)if(p[y]===v)continue e;t&&p.push(v),f.push(m)}else u(p,v,n)||(p!==f&&p.push(v),f.push(m))}return f}},47415:function(e,t,n){var r=n(29932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},1757:function(e){e.exports=function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}},74757:function(e){e.exports=function(e,t){return e.has(t)}},54290:function(e,t,n){var r=n(6557);e.exports=function(e){return"function"==typeof e?e:r}},71811:function(e,t,n){var r=n(1469),i=n(15403),o=n(55514),a=n(79833);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},74318:function(e,t,n){var r=n(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},64626:function(e,t,n){e=n.nmd(e);var r=n(55639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.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}},57157:function(e,t,n){var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},93147:function(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},40419:function(e,t,n){var r=n(62705),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},77133:function(e,t,n){var r=n(74318);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},26393:function(e,t,n){var r=n(33448);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},85022:function(e,t,n){var r=n(26393);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}},278:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},98363:function(e,t,n){var r=n(34865),i=n(89465);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},18805:function(e,t,n){var r=n(98363),i=n(99551);e.exports=function(e,t){return r(e,i(e),t)}},1911:function(e,t,n){var r=n(98363),i=n(51442);e.exports=function(e,t){return r(e,i(e),t)}},14429:function(e,t,n){var r=n(55639)["__core-js_shared__"];e.exports=r},21463:function(e,t,n){var r=n(5976),i=n(16612);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},99291:function(e,t,n){var r=n(98612);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},25063:function(e){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},67740:function(e,t,n){var r=n(67206),i=n(98612),o=n(3674);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},47445:function(e,t,n){var r=n(40098),i=n(16612),o=n(18601);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},23593:function(e,t,n){var r=n(58525),i=n(50308),o=n(21814),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},38777:function(e,t,n){var r=n(10852),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},67114:function(e,t,n){var r=n(88668),i=n(82908),o=n(74757);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var v=e[p],y=t[p];if(a)var b=c?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},18351:function(e,t,n){var r=n(62705),i=n(11149),o=n(77813),a=n(67114),s=n(68776),l=n(21814),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,h){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||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&r;if(f||(f=l),e.size!=t.size&&!p)return!1;var g=h.get(e);if(g)return g==t;r|=2,h.set(e,t);var m=a(f(e),f(t),r,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},16096:function(e,t,n){var r=n(58234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[h=c[d]],y=t[h];if(o)var b=l?o(y,v,h,t,e,s):o(v,y,h,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}},99021:function(e,t,n){var r=n(85564),i=n(45357),o=n(30061);e.exports=function(e){return o(i(e,void 0,r),e+"")}},31957:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},58234:function(e,t,n){var r=n(68866),i=n(99551),o=n(3674);e.exports=function(e){return r(e,o,i)}},46904:function(e,t,n){var r=n(68866),i=n(51442),o=n(81704);e.exports=function(e){return r(e,o,i)}},45050:function(e,t,n){var r=n(37019);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:function(e,t,n){var r=n(89162),i=n(3674);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},10852:function(e,t,n){var r=n(28458),i=n(47801);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},85924:function(e,t,n){var r=n(5569)(Object.getPrototypeOf,Object);e.exports=r},89607:function(e,t,n){var r=n(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},99551:function(e,t,n){var r=n(34963),i=n(70479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},51442:function(e,t,n){var r=n(62488),i=n(85924),o=n(99551),a=n(70479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},64160:function(e,t,n){var r=n(18552),i=n(57071),o=n(53818),a=n(58525),s=n(70577),l=n(44239),c=n(80346),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(r),m=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return p;case m:return u;case v:return d;case y:return h;case b:return f}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},222:function(e,t,n){var r=n(71811),i=n(35694),o=n(1469),a=n(65776),s=n(41780),l=n(40327);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||i(e))}},62689:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},51789:function(e,t,n){var r=n(94536);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,n){var r=n(94536),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}},21327:function(e,t,n){var r=n(94536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},81866:function(e,t,n){var r=n(94536);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}},43824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},29148:function(e,t,n){var r=n(74318),i=n(57157),o=n(93147),a=n(40419),s=n(77133);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+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 l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},38517:function(e,t,n){var r=n(3118),i=n(85924),o=n(25726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},37285:function(e,t,n){var r=n(62705),i=n(35694),o=n(1469),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},16612:function(e,t,n){var r=n(77813),i=n(98612),o=n(65776),a=n(13218);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},15403:function(e,t,n){var r=n(1469),i=n(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\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))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,n){var r,i=n(14429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},89162:function(e,t,n){var r=n(13218);e.exports=function(e){return e==e&&!r(e)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,n){var r=n(18470),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)}},82117:function(e,t,n){var r=n(18470);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},67518:function(e,t,n){var r=n(18470);e.exports=function(e){return r(this.__data__,e)>-1}},13399:function(e,t,n){var r=n(18470);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}},24785:function(e,t,n){var r=n(1989),i=n(38407),o=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);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}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},42634:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},24523:function(e,t,n){var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},45357:function(e,t,n){var r=n(96874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},55639:function(e,t,n){var r=n(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},36390:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},30061:function(e,t,n){var r=n(56560),i=n(21275)(r);e.exports=i},21275:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),i=n(57071),o=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},42351:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},88016:function(e,t,n){var r=n(48983),i=n(62689),o=n(21903);e.exports=function(e){return i(e)?o(e):r(e)}},55514:function(e,t,n){var r=n(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=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(o,"$1"):n||e)})),t}));e.exports=a},40327:function(e,t,n){var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},21903:function(e){var t="\\ud800-\\udfff",n="["+t+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",h=RegExp(i+"(?="+i+")|"+d+u,"g");e.exports=function(e){for(var t=h.lastIndex=0;h.test(e);)++t;return t}},66678:function(e,t,n){var r=n(85990);e.exports=function(e){return r(e,4)}},50361:function(e,t,n){var r=n(85990);e.exports=function(e){return r(e,5)}},75703:function(e){e.exports=function(e){return function(){return e}}},91747:function(e,t,n){var r=n(5976),i=n(77813),o=n(16612),a=n(81704),s=Object.prototype,l=s.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&o(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],d=a(u),h=-1,f=d.length;++h<f;){var p=d[h],g=e[p];(void 0===g||i(g,s[p])&&!l.call(e,p))&&(e[p]=u[p])}return e}));e.exports=c},66073:function(e,t,n){e.exports=n(84486)},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},63105:function(e,t,n){var r=n(34963),i=n(80760),o=n(67206),a=n(1469);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},13311:function(e,t,n){var r=n(67740)(n(30998));e.exports=r},30998:function(e,t,n){var r=n(41848),i=n(67206),o=n(40554),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},85564:function(e,t,n){var r=n(21078);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},84486:function(e,t,n){var r=n(77412),i=n(89881),o=n(54290),a=n(1469);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},62620:function(e,t,n){var r=n(28483),i=n(54290),o=n(81704);e.exports=function(e,t){return null==e?e:r(e,i(t),o)}},27361:function(e,t,n){var r=n(97786);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},18721:function(e,t,n){var r=n(78565),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},79095:function(e,t,n){var r=n(13),i=n(222);e.exports=function(e,t){return null!=e&&i(e,t,r)}},6557:function(e){e.exports=function(e){return e}},35694:function(e,t,n){var r=n(9454),i=n(37005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),i=n(41780);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},29246:function(e,t,n){var r=n(98612),i=n(37005);e.exports=function(e){return i(e)&&r(e)}},44144:function(e,t,n){e=n.nmd(e);var r=n(55639),i=n(95062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},41609:function(e,t,n){var r=n(280),i=n(64160),o=n(35694),a=n(1469),s=n(98612),l=n(44144),c=n(25726),u=n(36719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},23560:function(e,t,n){var r=n(44239),i=n(13218);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}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:function(e,t,n){var r=n(25588),i=n(7518),o=n(31167),a=o&&o.isMap,s=a?i(a):r;e.exports=s},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,n){var r=n(44239),i=n(85924),o=n(37005),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},72928:function(e,t,n){var r=n(29221),i=n(7518),o=n(31167),a=o&&o.isSet,s=a?i(a):r;e.exports=s},47037:function(e,t,n){var r=n(44239),i=n(1469),o=n(37005);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},33448:function(e,t,n){var r=n(44239),i=n(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},36719:function(e,t,n){var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},52353:function(e){e.exports=function(e){return void 0===e}},3674:function(e,t,n){var r=n(14636),i=n(280),o=n(98612);e.exports=function(e){return o(e)?r(e):i(e)}},81704:function(e,t,n){var r=n(14636),i=n(35014),o=n(98612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},10928:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},35161:function(e,t,n){var r=n(29932),i=n(67206),o=n(69199),a=n(1469);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},66604:function(e,t,n){var r=n(89465),i=n(47816),o=n(67206);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},6162:function(e,t,n){var r=n(56029),i=n(53325),o=n(6557);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},88306:function(e,t,n){var r=n(83369);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],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},82492:function(e,t,n){var r=n(42980),i=n(21463)((function(e,t,n){r(e,t,n)}));e.exports=i},53632:function(e,t,n){var r=n(56029),i=n(70433),o=n(6557);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},22762:function(e,t,n){var r=n(56029),i=n(67206),o=n(70433);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},50308:function(e){e.exports=function(){}},7771:function(e,t,n){var r=n(55639);e.exports=function(){return r.Date.now()}},78718:function(e,t,n){var r=n(25970),i=n(99021)((function(e,t){return null==e?{}:r(e,t)}));e.exports=i},39601:function(e,t,n){var r=n(40371),i=n(79152),o=n(15403),a=n(40327);e.exports=function(e){return o(e)?r(a(e)):i(e)}},96026:function(e,t,n){var r=n(47445)();e.exports=r},54061:function(e,t,n){var r=n(62663),i=n(89881),o=n(67206),a=n(10107),s=n(1469);e.exports=function(e,t,n){var l=s(e)?r:a,c=arguments.length<3;return l(e,o(t,4),n,c,i)}},84238:function(e,t,n){var r=n(280),i=n(64160),o=n(98612),a=n(47037),s=n(88016);e.exports=function(e){if(null==e)return 0;if(o(e))return a(e)?s(e):e.length;var t=i(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},89734:function(e,t,n){var r=n(21078),i=n(82689),o=n(5976),a=n(16612),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},18601:function(e,t,n){var r=n(14841),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},40554:function(e,t,n){var r=n(18601);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},14841:function(e,t,n){var r=n(13218),i=n(33448),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},59881:function(e,t,n){var r=n(98363),i=n(81704);e.exports=function(e){return r(e,i(e))}},79833:function(e,t,n){var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},68718:function(e,t,n){var r=n(77412),i=n(3118),o=n(47816),a=n(67206),s=n(85924),l=n(1469),c=n(44144),u=n(23560),d=n(13218),h=n(36719);e.exports=function(e,t,n){var f=l(e),p=f||c(e)||h(e);if(t=a(t,4),null==n){var g=e&&e.constructor;n=p?f?new g:[]:d(e)&&u(g)?i(s(e)):{}}return(p?r:o)(e,(function(e,r,i){return t(n,e,r,i)})),n}},93386:function(e,t,n){var r=n(21078),i=n(5976),o=n(45652),a=n(29246),s=i((function(e){return o(r(e,1,a,!0))}));e.exports=s},73955:function(e,t,n){var r=n(79833),i=0;e.exports=function(e){var t=++i;return r(e)+t}},52628:function(e,t,n){var r=n(47415),i=n(3674);e.exports=function(e){return null==e?[]:r(e,i(e))}},7287:function(e,t,n){var r=n(34865),i=n(1757);e.exports=function(e,t){return i(e||[],t||[],r)}},42786:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},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:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(30381))},14130:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(r,i,o,a){var s=t(r),l=n[e][t(r)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,r)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(30381))},96135:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(30381))},56440:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,a){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(30381))},47702:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(30381))},16040:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(30381))},37100:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,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:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(30381))},30867:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,a){var s=r(t),l=i[e][r(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(30381))},31083:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,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:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,r=e%100-n,i=e>=100?100:null;return e+(t[n]||t[r]||t[i])},week:{dow:1,doy:7}})}(n(30381))},9808:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[r],+e)}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".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:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(30381))},68338:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(30381))},67438:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(30381))},76225:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(30381))},8905:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(30381))},11560:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(30381))},1278:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+i({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(r(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function r(e){return e>9?r(e%10):e}function i(e,t){return 2===t?o(e):e}function o(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var a=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],s=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,l=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,c=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],d=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],h=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:h,fullWeekdaysParse:u,shortWeekdaysParse:d,minWeekdaysParse:h,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:l,monthsShortStrictRegex:c,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(30381))},80622:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},2468:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(30381))},5822:function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function a(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},50877:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(30381))},47373:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,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:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(30381))},24780:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".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.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},60217:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},60894:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},59740:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,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:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},5300:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(30381))},50837:function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,n){var r=this._calendarEl[e],i=n&&n.hours();return t(r)&&(r=r.apply(n)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(30381))},78348:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{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:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},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:0,doy:4}})}(n(30381))},77925:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{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:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},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")}})}(n(30381))},22243:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{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,doy:4}})}(n(30381))},46436:function(e,t,n){!function(e){"use strict";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,doy:4}})}(n(30381))},47207:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{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")}})}(n(30381))},44175:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{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:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},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:0,doy:6}})}(n(30381))},76319:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{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:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},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,doy:4}})}(n(30381))},31662:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{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,doy:4}})}(n(30381))},92915:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(30381))},55251:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},96112:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(30381))},71146:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(30381))},55655:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(30381))},5603:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},77763:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},76959:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(30381))},11897:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,t,n,r){var o="";switch(n){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":o=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":o=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":o=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":o=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":o=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":o=r?"vuoden":"vuotta"}return o=i(e,r)+" "+o}function i(e,r){return e<10?r?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},42549:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(30381))},94694:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".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:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},63049:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(30381))},52330:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,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:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(30381))},94470:function(e,t,n){!function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,r=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,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:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(30381))},5044:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,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:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(30381))},29295:function(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],r=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],o=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:o,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:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(30381))},2101:function(e,t,n){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],r=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],i=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],o=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:r,weekdaysShort:i,weekdaysMin:o,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:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(30381))},38794:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},27884:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return r?i[n][0]:i[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(30381))},23168:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return r?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(30381))},95349:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(30381))},24206:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".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",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(30381))},30094:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},r=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],i=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:r,longMonthsParse:r,shortMonthsParse:i,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(30381))},30316:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},22138:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},11423:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".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:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(30381))},29218:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(30381))},90135:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},10150:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_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:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},90626:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},39183:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".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/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":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(30381))},24286:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(30381))},12105:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".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:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(30381))},47772:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".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:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(30381))},18758:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(30381))},79282:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(30381))},33730:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},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}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(30381))},1408:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(30381))},33291:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".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:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(30381))},36841:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){return i(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function r(e){return i(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return i(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return i(e)}return i(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:r,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},55466:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,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"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},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 ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(30381))},57010:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function i(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,n,a){var s=e+" ";return 1===e?s+r(e,t,n[0],a):t?s+(i(e)?o(n)[1]:o(n)[0]):a?s+o(n)[1]:s+(i(e)?o(n)[1]:o(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:a,m:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(30381))},37595:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}function o(e,t){return t?"dažas sekundes":"dažām sekundēm"}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:o,ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},39861:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},35493:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},95966:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(30381))},87341:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(30381))},5115:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(30381))},10370:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(30381))},41237:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(30381))},9847:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(30381))},72126:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".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:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},56165:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".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:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(30381))},64924:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},16744:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(30381))},59814:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,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:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(30381))},93901:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,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:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(30381))},83877:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},92135:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(30381))},15858:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(30381))},64495:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesiące":"miesięcy");case"yy":return r+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".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:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:o,M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},57971:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(30381))},89520:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},96459:function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(30381))},21793:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[r],+e)}var r=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(30381))},40950:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(30381))},37930:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},90124:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(30381))},64249:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?o+(r(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?o+(r(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?o+(r(e)?"dni":"dní"):o+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?o+(r(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?o+(r(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},14985:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},51104:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},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:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},79915:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},49131:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},85893:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(30381))},98760:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(30381))},91172:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",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:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(30381))},27333:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".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:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(30381))},23110:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(30381))},52095:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_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:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},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,doy:4}})}(n(30381))},27321:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".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:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,r=e>=100?100:null;return e+(t[e]||t[n]||t[r])},week:{dow:1,doy:7}})}(n(30381))},9041:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},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 ปี"}})}(n(30381))},19005:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var r=e%10,i=e%100-r,o=e>=100?100:null;return e+(t[r]||t[i]||t[o])}},week:{dow:1,doy:7}})}(n(30381))},75768:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(30381))},89444:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function r(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function i(e,t,n,r){var i=o(e);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function o(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+t[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+t[i]),""===o?"pagh":o}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".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:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:r,s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},72397:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},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:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10,i=e%100-r,o=e>=100?100:null;return e+(t[r]||t[i]||t[o])}},week:{dow:1,doy:7}})}(n(30381))},28254:function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},30699:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".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:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(30381))},51106:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".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:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(30381))},9288:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".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:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، 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:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(30381))},67691:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,r){return"m"===r?n?"хвилина":"хвилину":"h"===r?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[r],+e)}function r(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:r,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".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:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(30381))},13795:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(30381))},60588:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(30381))},6791:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(30381))},65666:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(30381))},14378:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,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,doy:4}})}(n(30381))},75805:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(30381))},83839:function(e,t,n){!function(e){"use strict";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:{dow:1,doy:4}})}(n(30381))},55726:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{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<1200?"上午":1200===r?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",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(30381))},99807:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",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(30381))},74152:function(e,t,n){!function(e){"use strict";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(30381))},46700:function(e,t,n){var r={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":37930,"./se.js":37930,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=46700},30381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(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(l(e,t))return!1;return!0}function u(e){return void 0===e}function d(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=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t,n,r){return $n(e,t,n,r,!0).utc()}function m(){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 v(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){if(null==e._isValid){var t=v(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function b(e){var t=g(NaN);return null!=e?p(v(t),e):v(t).userInvalidated=!0,t}r=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 w=i.momentProperties=[],_=!1;function x(e,t){var n,r,i;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=v(t)),u(t._locale)||(e._locale=t._locale),w.length>0)for(n=0;n<w.length;n++)u(i=t[r=w[n]])||(e[r]=i);return e}function E(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function C(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function k(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,a,s=[];for(o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])l(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,M={};function O(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),M[e]||(k(t),M[e]=!0)}function L(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e){var t,n;for(n in e)l(e,n)&&(L(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var n,r=p({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(r[n]=p({},r[n]));return r}function N(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return L(r)?r.call(t,n):r}function j(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 R=/(\[[^\[]*\])|(\\)?([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,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},Y={};function B(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Y[e]=i),t&&(Y[t[0]]=function(){return j(i.apply(this,arguments),t[1],t[2])}),n&&(Y[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,n,r=e.match(R);for(t=0,n=r.length;t<n;t++)Y[r[t]]?r[t]=Y[r[t]]:r[t]=H(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=L(r[i])?r[i].call(t,e):r[i];return o}}function U(e,t){return e.isValid()?(t=V(t,e.localeData()),z[t]=z[t]||q(t),z[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,r),F.lastIndex=0,n-=1;return e}var W={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 G(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function K(){return this._invalidDate}var J="%d",X=/\d{1,2}/;function Z(e){return this._ordinal.replace("%d",e)}var Q={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 ee(e,t,n,r){var i=this._relativeTime[n];return L(i)?i(e,t,n,r):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return L(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ie(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)l(e,n)&&(t=ie(n))&&(r[t]=e[n]);return r}var ae={};function se(e,t){ae[e]=t}function le(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ce(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function he(e,t){return function(n){return null!=n?(pe(this,e,n),i.updateOffset(this,t),this):fe(this,e)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ge(e){return L(this[e=ie(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,r=le(e=oe(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(L(this[e=ie(e)]))return this[e](t);return this}var ve,ye=/\d/,be=/\d\d/,we=/\d{3}/,_e=/\d{4}/,xe=/[+-]?\d{6}/,Ee=/\d\d?/,Ce=/\d\d\d\d?/,ke=/\d\d\d\d\d\d?/,Se=/\d{1,3}/,Te=/\d{1,4}/,Me=/[+-]?\d{1,6}/,Oe=/\d+/,Le=/[+-]?\d+/,Ae=/Z|[+-]\d\d:?\d\d/gi,De=/Z|[+-]\d\d(?::?\d\d)?/gi,Ne=/[+-]?\d+(\.\d{1,3})?/,Pe=/[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;function Ie(e,t,n){ve[e]=L(t)?t:function(e,r){return e&&n?n:t}}function je(e,t){return l(ve,e)?ve[e](t._strict,t._locale):new RegExp(Re(e))}function Re(e){return Fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var ze={};function Ye(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=de(e)}),n=0;n<e.length;n++)ze[e[n]]=r}function Be(e,t){Ye(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function He(e,t,n){null!=t&&l(ze,e)&&ze[e](t,n._a,n,e)}var qe,Ue=0,Ve=1,We=2,Ge=3,$e=4,Ke=5,Je=6,Xe=7,Ze=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?ce(e)?29:28:31-n%7%2}qe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),se("month",8),Ie("M",Ee),Ie("MM",Ee,be),Ie("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ie("MMMM",(function(e,t){return t.monthsRegex(e)})),Ye(["M","MM"],(function(e,t){t[Ve]=de(e)-1})),Ye(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[Ve]=i:v(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Pe,ot=Pe;function at(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function st(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=g([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=qe.call(this._shortMonthsParse,a))?i:null:-1!==(i=qe.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=qe.call(this._shortMonthsParse,a))||-1!==(i=qe.call(this._longMonthsParse,a))?i:null:-1!==(i=qe.call(this._longMonthsParse,a))||-1!==(i=qe.call(this._shortMonthsParse,a))?i:null}function ct(e,t,n){var r,i,o;if(this._monthsParseExact)return lt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=g([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]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.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}}function ut(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(ut(this,e),i.updateOffset(this,!0),this):fe(this,"Month")}function ht(){return et(this.year(),this.month())}function ft(e){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||gt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function gt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=g([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Fe(r[t]),i[t]=Fe(i[t]);for(t=0;t<24;t++)o[t]=Fe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return ce(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?j(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),re("year","y"),se("year",1),Ie("Y",Le),Ie("YY",Ee,be),Ie("YYYY",Te,_e),Ie("YYYYY",Me,xe),Ie("YYYYYY",Me,xe),Ye(["YYYYY","YYYYYY"],Ue),Ye("YYYY",(function(e,t){t[Ue]=2===e.length?i.parseTwoDigitYear(e):de(e)})),Ye("YY",(function(e,t){t[Ue]=i.parseTwoDigitYear(e)})),Ye("Y",(function(e,t){t[Ue]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var vt=he("FullYear",!0);function yt(){return ce(this.year())}function bt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function wt(e){var t,n;return e<100&&e>=0?((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}function _t(e,t,n){var r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return s<=0?a=mt(o=e-1)+s:s>mt(e)?(o=e+1,a=s-mt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Et(e,t,n){var r,i,o=_t(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+Ct(i=e.year()-1,t,n):a>Ct(e.year(),t,n)?(r=a-Ct(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ct(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(mt(e)-r+i)/7}function kt(e){return Et(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),se("week",5),se("isoWeek",5),Ie("w",Ee),Ie("ww",Ee,be),Ie("W",Ee),Ie("WW",Ee,be),Be(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=de(e)}));var St={dow:0,doy:6};function Tt(){return this._week.dow}function Mt(){return this._week.doy}function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Lt(e){var t=Et(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function At(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Dt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Ie("d",Ee),Ie("e",Ee),Ie("E",Ee),Ie("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ie("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ie("dddd",(function(e,t){return t.weekdaysRegex(e)})),Be(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:v(n).invalidWeekday=e})),Be(["d","e","E"],(function(e,t,n,r){t[r]=de(e)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),It="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=Pe,Ft=Pe,zt=Pe;function Yt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Nt(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function qt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=g([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=qe.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=qe.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=qe.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=qe.call(this._weekdaysParse,a))||-1!==(i=qe.call(this._shortWeekdaysParse,a))||-1!==(i=qe.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=qe.call(this._shortWeekdaysParse,a))||-1!==(i=qe.call(this._weekdaysParse,a))||-1!==(i=qe.call(this._minWeekdaysParse,a))?i:null:-1!==(i=qe.call(this._minWeekdaysParse,a))||-1!==(i=qe.call(this._weekdaysParse,a))||-1!==(i=qe.call(this._shortWeekdaysParse,a))?i:null}function Ut(e,t,n){var r,i,o;if(this._weekdaysParseExact)return qt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=g([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]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.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}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=At(e,this.localeData()),this.add(e-t,"d")):t}function Wt(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 Gt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function $t(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ft),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=zt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=g([2e3,1]).day(t),r=Fe(this.weekdaysMin(n,"")),i=Fe(this.weekdaysShort(n,"")),o=Fe(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Zt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Zt),B("k",["kk",2],0,Qt),B("hmm",0,0,(function(){return""+Zt.apply(this)+j(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Zt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),se("hour",13),Ie("a",tn),Ie("A",tn),Ie("H",Ee),Ie("h",Ee),Ie("k",Ee),Ie("HH",Ee,be),Ie("hh",Ee,be),Ie("kk",Ee,be),Ie("hmm",Ce),Ie("hmmss",ke),Ie("Hmm",Ce),Ie("Hmmss",ke),Ye(["H","HH"],Ge),Ye(["k","kk"],(function(e,t,n){var r=de(e);t[Ge]=24===r?0:r})),Ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ye(["h","hh"],(function(e,t,n){t[Ge]=de(e),v(n).bigHour=!0})),Ye("hmm",(function(e,t,n){var r=e.length-2;t[Ge]=de(e.substr(0,r)),t[$e]=de(e.substr(r)),v(n).bigHour=!0})),Ye("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ge]=de(e.substr(0,r)),t[$e]=de(e.substr(r,2)),t[Ke]=de(e.substr(i)),v(n).bigHour=!0})),Ye("Hmm",(function(e,t,n){var r=e.length-2;t[Ge]=de(e.substr(0,r)),t[$e]=de(e.substr(r))})),Ye("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ge]=de(e.substr(0,r)),t[$e]=de(e.substr(r,2)),t[Ke]=de(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=he("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:P,longDateFormat:W,invalidDate:$,ordinal:J,dayOfMonthOrdinalParse:X,relativeTime:Q,months:tt,monthsShort:nt,week:St,weekdays:Pt,weekdaysMin:jt,weekdaysShort:It,meridiemParse:rn},cn={},un={};function dn(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}function fn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=hn(e[o]).split("-")).length,n=(n=hn(e[o+1]))?n.split("-"):null;t>0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(i,n)>=t-1)break;t--}o++}return sn}function pn(t){var r=null;if(void 0===cn[t]&&e&&e.exports)try{r=sn._abbr,n(46700)("./"+t),gn(r)}catch(e){cn[t]=null}return cn[t]}function gn(e,t){var n;return e&&((n=u(t)?yn(e):mn(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function mn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])O("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 un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new N(D(r,t)),un[e]&&un[e].forEach((function(e){mn(e.name,e.config)})),gn(e),cn[e]}return delete cn[e],null}function vn(e,t){if(null!=t){var n,r,i=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(D(cn[e]._config,t)):(null!=(r=pn(e))&&(i=r._config),t=D(i,t),null==r&&(t.abbr=e),(n=new N(t)).parentLocale=cn[e],cn[e]=n),gn(e)}else 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]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!a(e)){if(t=pn(e))return t;e=[e]}return fn(e)}function bn(){return T(cn)}function wn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[Ve]<0||n[Ve]>11?Ve:n[We]<1||n[We]>et(n[Ue],n[Ve])?We:n[Ge]<0||n[Ge]>24||24===n[Ge]&&(0!==n[$e]||0!==n[Ke]||0!==n[Je])?Ge:n[$e]<0||n[$e]>59?$e:n[Ke]<0||n[Ke]>59?Ke:n[Je]<0||n[Je]>999?Je:-1,v(e)._overflowDayOfYear&&(t<Ue||t>We)&&(t=We),v(e)._overflowWeeks&&-1===t&&(t=Xe),v(e)._overflowWeekday&&-1===t&&(t=Ze),v(e).overflow=t),e}var _n=/^\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)?)?$/,En=/Z|[+-]\d\d(?::?\d\d)?/,Cn=[["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]],kn=[["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/]],Sn=/^\/?Date\((-?\d+)/i,Tn=/^(?:(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}))$/,Mn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(e){var t,n,r,i,o,a,s=e._i,l=_n.exec(s)||xn.exec(s);if(l){for(v(e).iso=!0,t=0,n=Cn.length;t<n;t++)if(Cn[t][1].exec(l[1])){i=Cn[t][0],r=!1!==Cn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=kn.length;t<n;t++)if(kn[t][1].exec(l[3])){o=(l[2]||" ")+kn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!En.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Bn(e)}else e._isValid=!1}function Ln(e,t,n,r,i,o){var a=[An(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Dn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||It.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Mn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function In(e){var t,n=Tn.exec(Dn(e._i));if(n){if(t=Ln(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],t,e))return;e._a=t,e._tzm=Pn(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function jn(e){var t=Sn.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,In(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Rn(e,t,n){return null!=e?e:null!=t?t:n}function Fn(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=Fn(e),e._w&&null==e._a[We]&&null==e._a[Ve]&&Yn(e),null!=e._dayOfYear&&(o=Rn(e._a[Ue],r[Ue]),(e._dayOfYear>mt(o)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=wt(o,0,e._dayOfYear),e._a[Ve]=n.getUTCMonth(),e._a[We]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ge]&&0===e._a[$e]&&0===e._a[Ke]&&0===e._a[Je]&&(e._nextDay=!0,e._a[Ge]=0),e._d=(e._useUTC?wt:bt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ge]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}function Yn(e){var t,n,r,i,o,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Rn(t.GG,e._a[Ue],Et(Kn(),1,4).year),r=Rn(t.W,1),((i=Rn(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Et(Kn(),o,a),n=Rn(t.gg,e._a[Ue],c.year),r=Rn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>Ct(n,o,a)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=xt(n,r,i,o,a),e._a[Ue]=s.year,e._dayOfYear=s.dayOfYear)}function Bn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,o,a,s,l=""+e._i,c=l.length,u=0;for(r=V(e._f,e._locale).match(R)||[],t=0;t<r.length;t++)o=r[t],(n=(l.match(je(o,e))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&v(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),u+=n.length),Y[o]?(n?v(e).empty=!1:v(e).unusedTokens.push(o),He(o,n,e)):e._strict&&!n&&v(e).unusedTokens.push(o);v(e).charsLeftOver=c-u,l.length>0&&v(e).unusedInput.push(l),e._a[Ge]<=12&&!0===v(e).bigHour&&e._a[Ge]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ge]=Hn(e._locale,e._a[Ge],e._meridiem),null!==(s=v(e).era)&&(e._a[Ue]=e._locale.erasConvertYear(s,e._a[Ue])),zn(e),wn(e)}else In(e);else On(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function qn(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,a=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Bn(t),y(t)&&(a=!0),o+=v(t).charsLeftOver,o+=10*v(t).unusedTokens.length,v(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));p(e,n||t)}function Un(e){if(!e._d){var t=oe(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)})),zn(e)}}function Vn(e){var t=new E(wn(Wn(e)));return t._nextDay&&(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?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),C(t)?new E(wn(t)):(h(t)?e._d=t:a(n)?qn(e):n?Bn(e):Gn(e),y(e)||(e._d=null),e))}function Gn(e){var t=e._i;u(t)?e._d=new Date(i.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?jn(e):a(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),zn(e)):s(t)?Un(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}function $n(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&c(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Vn(o)}function Kn(e,t,n,r){return $n(e,t,n,r,!1)}i.createFromInputFallback=S("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":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Jn=S("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:b()})),Xn=S("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:b()}));function Zn(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}function Qn(){return Zn("isBefore",[].slice.call(arguments,0))}function er(){return Zn("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;for(t in e)if(l(e,t)&&(-1===qe.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<nr.length;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==de(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Mr(NaN)}function ar(e){var t=oe(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function sr(e){return e instanceof ar}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&de(e[r])!==de(t[r]))&&a++;return a+o}function ur(e,t){B(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+j(~~(e/60),2)+t+j(~~e%60,2)}))}ur("Z",":"),ur("ZZ",""),Ie("Z",De),Ie("ZZ",De),Ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(De,e)}));var dr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function fr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(C(e)||h(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Kn(e).local()}function pr(e){return-Math.round(e._d.getTimezoneOffset())}function gr(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=hr(De,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=pr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Nr(this,Mr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o: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 br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=hr(Ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function _r(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Wn(t))._a?(e=t._isUTC?g(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Er(){return!!this.isValid()&&!this._isUTC}function Cr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Sr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Mr(e,t){var n,r,i,o=e,a=null;return sr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Sr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:de(a[We])*n,h:de(a[Ge])*n,m:de(a[$e])*n,s:de(a[Ke])*n,ms:de(lr(1e3*a[Je]))*n}):(a=Tr.exec(e))?(n="-"===a[1]?-1:1,o={y:Or(a[2],n),M:Or(a[3],n),w:Or(a[4],n),d:Or(a[5],n),h:Or(a[6],n),m:Or(a[7],n),s:Or(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ar(Kn(o.from),Kn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),sr(e)&&l(e,"_locale")&&(r._locale=e._locale),sr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Lr(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 Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=fr(t,e),e.isBefore(t)?n=Lr(e,t):((n=Lr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Dr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(O(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),Nr(this,Mr(n,r),e),this}}function Nr(e,t,n,r){var o=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(r=null==r||r,s&&ut(e,fe(e,"Month")+s*n),a&&pe(e,"Date",fe(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Mr.fn=ar.prototype,Mr.invalid=or;var Pr=Dr(1,"add"),Ir=Dr(-1,"subtract");function jr(e){return"string"==typeof e||e instanceof String}function Rr(e){return C(e)||h(e)||jr(e)||d(e)||zr(e)||Fr(e)||null==e}function Fr(e){var t,n,r=s(e)&&!c(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],i=i||l(e,n);return r&&i}function zr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&jr(e)})).length),t&&n}function Yr(e){var t,n,r=s(e)&&!c(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||l(e,n);return r&&i}function Br(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){1===arguments.length&&(arguments[0]?Rr(arguments[0])?(e=arguments[0],t=void 0):Yr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),r=fr(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(L(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Kn(n)))}function qr(){return new E(this)}function Ur(e,t){var n=C(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(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=ie(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),o=C(t)?t:Kn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Gr(e,t){var n,r=C(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function $r(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 Jr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=fr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=ie(t)){case"year":o=Xr(this,r)/12;break;case"month":o=Xr(this,r);break;case"quarter":o=Xr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:ue(o)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");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 Zr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(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"):L(Date.prototype.toISOString)?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")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.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())?Mr({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())?Mr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Kn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=S("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 li(){return this._locale}var ci=1e3,ui=60*ci,di=60*ui,hi=3506328*di;function fi(e,t){return(e%t+t)%t}function pi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hi:new Date(e,t,n).valueOf()}function gi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hi:Date.UTC(e,t,n)}function mi(e){var t,n;if(void 0===(e=ie(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-=fi(t+(this._isUTC?0:this.utcOffset()*ui),di);break;case"minute":t=this._d.valueOf(),t-=fi(t,ui);break;case"second":t=this._d.valueOf(),t-=fi(t,ci)}return this._d.setTime(t),i.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=ie(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+=di-fi(t+(this._isUTC?0:this.utcOffset()*ui),di)-1;break;case"minute":t=this._d.valueOf(),t+=ui-fi(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=ci-fi(t,ci)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function _i(){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 Ei(){return this.isValid()?this.toISOString():null}function Ci(){return y(this)}function ki(){return p({},v(this))}function Si(){return v(this).overflow}function Ti(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Mi(e,t){var n,r,o,a=this._eras||yn("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Oi(e,t,n){var r,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,a,s].indexOf(e)>=0)return l[r]}function Li(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(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 Di(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(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 Ni(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(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,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()}function Ii(e){return l(this,"_erasNameRegex")||Hi.call(this),e?this._erasNameRegex:this._erasRegex}function ji(e){return l(this,"_erasAbbrRegex")||Hi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return l(this,"_erasNarrowRegex")||Hi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function zi(e,t){return t.erasNameRegex(e)}function Yi(e,t){return t.erasNarrowRegex(e)}function Bi(e,t){return t._eraYearOrdinalRegex||Oe}function Hi(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Fe(a[e].name)),n.push(Fe(a[e].abbr)),i.push(Fe(a[e].narrow)),o.push(Fe(a[e].name)),o.push(Fe(a[e].abbr)),o.push(Fe(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function qi(e,t){B(0,[e,e.length],0,t)}function Ui(e){return Ji.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ji.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return Ct(this.year(),1,4)}function Gi(){return Ct(this.isoWeekYear(),1,4)}function $i(){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 Ji(e,t,n,r,i){var o;return null==e?Et(this,r,i).year:(t>(o=Ct(e,r,i))&&(t=o),Xi.call(this,e,t,n,r,i))}function Xi(e,t,n,r,i){var o=xt(e,t,n,r,i),a=wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Zi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Ie("N",Fi),Ie("NN",Fi),Ie("NNN",Fi),Ie("NNNN",zi),Ie("NNNNN",Yi),Ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?v(n).era=i:v(n).invalidEra=e})),Ie("y",Oe),Ie("yy",Oe),Ie("yyy",Oe),Ie("yyyy",Oe),Ie("yo",Bi),Ye(["y","yy","yyy","yyyy"],Ue),Ye(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ue]=n._locale.eraYearOrdinalParse(e,i):t[Ue]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),qi("gggg","weekYear"),qi("ggggg","weekYear"),qi("GGGG","isoWeekYear"),qi("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Ie("G",Le),Ie("g",Le),Ie("GG",Ee,be),Ie("gg",Ee,be),Ie("GGGG",Te,_e),Ie("gggg",Te,_e),Ie("GGGGG",Me,xe),Ie("ggggg",Me,xe),Be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=de(e)})),Be(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),re("quarter","Q"),se("quarter",7),Ie("Q",ye),Ye("Q",(function(e,t){t[Ve]=3*(de(e)-1)})),B("D",["DD",2],"Do","date"),re("date","D"),se("date",9),Ie("D",Ee),Ie("DD",Ee,be),Ie("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ye(["D","DD"],We),Ye("Do",(function(e,t){t[We]=de(e.match(Ee)[0])}));var Qi=he("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),se("dayOfYear",4),Ie("DDD",Se),Ie("DDDD",we),Ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),B("m",["mm",2],0,"minute"),re("minute","m"),se("minute",14),Ie("m",Ee),Ie("mm",Ee,be),Ye(["m","mm"],$e);var to=he("Minutes",!1);B("s",["ss",2],0,"second"),re("second","s"),se("second",15),Ie("s",Ee),Ie("ss",Ee,be),Ye(["s","ss"],Ke);var no,ro,io=he("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),se("millisecond",16),Ie("S",Se,ye),Ie("SS",Se,be),Ie("SSS",Se,we),no="SSSS";no.length<=9;no+="S")Ie(no,Oe);function oo(e,t){t[Je]=de(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")Ye(no,oo);function ao(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ro=he("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var lo=E.prototype;function co(e){return Kn(1e3*e)}function uo(){return Kn.apply(null,arguments).parseZone()}function ho(e){return e}lo.add=Pr,lo.calendar=Hr,lo.clone=qr,lo.diff=Jr,lo.endOf=vi,lo.format=ti,lo.from=ni,lo.fromNow=ri,lo.to=ii,lo.toNow=oi,lo.get=ge,lo.invalidAt=Si,lo.isAfter=Ur,lo.isBefore=Vr,lo.isBetween=Wr,lo.isSame=Gr,lo.isSameOrAfter=$r,lo.isSameOrBefore=Kr,lo.isValid=Ci,lo.lang=si,lo.locale=ai,lo.localeData=li,lo.max=Xn,lo.min=Jn,lo.parsingFlags=ki,lo.set=me,lo.startOf=mi,lo.subtract=Ir,lo.toArray=_i,lo.toObject=xi,lo.toDate=wi,lo.toISOString=Qr,lo.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Ei,lo.toString=Zr,lo.unix=bi,lo.valueOf=yi,lo.creationData=Ti,lo.eraName=Ai,lo.eraNarrow=Di,lo.eraAbbr=Ni,lo.eraYear=Pi,lo.year=vt,lo.isLeapYear=yt,lo.weekYear=Ui,lo.isoWeekYear=Vi,lo.quarter=lo.quarters=Zi,lo.month=dt,lo.daysInMonth=ht,lo.week=lo.weeks=Ot,lo.isoWeek=lo.isoWeeks=Lt,lo.weeksInYear=$i,lo.weeksInWeekYear=Ki,lo.isoWeeksInYear=Wi,lo.isoWeeksInISOWeekYear=Gi,lo.date=Qi,lo.day=lo.days=Vt,lo.weekday=Wt,lo.isoWeekday=Gt,lo.dayOfYear=eo,lo.hour=lo.hours=on,lo.minute=lo.minutes=to,lo.second=lo.seconds=io,lo.millisecond=lo.milliseconds=ro,lo.utcOffset=gr,lo.utc=vr,lo.local=yr,lo.parseZone=br,lo.hasAlignedHourOffset=wr,lo.isDST=_r,lo.isLocal=Er,lo.isUtcOffset=Cr,lo.isUtc=kr,lo.isUTC=kr,lo.zoneAbbr=ao,lo.zoneName=so,lo.dates=S("dates accessor is deprecated. Use date instead.",Qi),lo.months=S("months accessor is deprecated. Use month instead",dt),lo.years=S("years accessor is deprecated. Use year instead",vt),lo.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),lo.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var fo=N.prototype;function po(e,t,n,r){var i=yn(),o=g().set(r,t);return i[n](o,e)}function go(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return po(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=po(e,r,n,"month");return i}function mo(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,o=yn(),a=e?o._week.dow:0,s=[];if(null!=n)return po(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=po(t,(i+a)%7,r,"day");return s}function vo(e,t){return go(e,t,"months")}function yo(e,t){return go(e,t,"monthsShort")}function bo(e,t,n){return mo(e,t,n,"weekdays")}function wo(e,t,n){return mo(e,t,n,"weekdaysShort")}function _o(e,t,n){return mo(e,t,n,"weekdaysMin")}fo.calendar=I,fo.longDateFormat=G,fo.invalidDate=K,fo.ordinal=Z,fo.preparse=ho,fo.postformat=ho,fo.relativeTime=ee,fo.pastFuture=te,fo.set=A,fo.eras=Mi,fo.erasParse=Oi,fo.erasConvertYear=Li,fo.erasAbbrRegex=ji,fo.erasNameRegex=Ii,fo.erasNarrowRegex=Ri,fo.months=at,fo.monthsShort=st,fo.monthsParse=ct,fo.monthsRegex=pt,fo.monthsShortRegex=ft,fo.week=kt,fo.firstDayOfYear=Mt,fo.firstDayOfWeek=Tt,fo.weekdays=Yt,fo.weekdaysMin=Ht,fo.weekdaysShort=Bt,fo.weekdaysParse=Ut,fo.weekdaysRegex=$t,fo.weekdaysShortRegex=Kt,fo.weekdaysMinRegex=Jt,fo.isPM=nn,fo.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===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",gn),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",yn);var xo=Math.abs;function Eo(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function Co(e,t,n,r){var i=Mr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ko(e,t){return Co(this,e,t,1)}function So(e,t){return Co(this,e,t,-1)}function To(e){return e<0?Math.floor(e):Math.ceil(e)}function Mo(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*To(Lo(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=ue(o/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,a+=ue(n/24),s+=i=ue(Oo(a)),a-=To(Lo(i)),r=ue(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Oo(e){return 4800*e/146097}function Lo(e){return 146097*e/4800}function Ao(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Lo(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;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Do(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function No(e){return function(){return this.as(e)}}var Po=No("ms"),Io=No("s"),jo=No("m"),Ro=No("h"),Fo=No("d"),zo=No("w"),Yo=No("M"),Bo=No("Q"),Ho=No("y");function qo(){return Mr(this)}function Uo(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Vo(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wo=Vo("milliseconds"),Go=Vo("seconds"),$o=Vo("minutes"),Ko=Vo("hours"),Jo=Vo("days"),Xo=Vo("months"),Zo=Vo("years");function Qo(){return ue(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Mr(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),l=ea(i.as("d")),c=ea(i.as("M")),u=ea(i.as("w")),d=ea(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,na.apply(null,h)}function ia(e){return void 0===e?ea:"function"==typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ra(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=sa(this._milliseconds)/1e3,c=sa(this._days),u=sa(this._months),d=this.asSeconds();return d?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=la(this._months)!==la(d)?"-":"",a=la(this._days)!==la(d)?"-":"",s=la(this._milliseconds)!==la(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ua=ar.prototype;return ua.isValid=ir,ua.abs=Eo,ua.add=ko,ua.subtract=So,ua.as=Ao,ua.asMilliseconds=Po,ua.asSeconds=Io,ua.asMinutes=jo,ua.asHours=Ro,ua.asDays=Fo,ua.asWeeks=zo,ua.asMonths=Yo,ua.asQuarters=Bo,ua.asYears=Ho,ua.valueOf=Do,ua._bubble=Mo,ua.clone=qo,ua.get=Uo,ua.milliseconds=Wo,ua.seconds=Go,ua.minutes=$o,ua.hours=Ko,ua.days=Jo,ua.weeks=Qo,ua.months=Xo,ua.years=Zo,ua.humanize=aa,ua.toISOString=ca,ua.toString=ca,ua.toJSON=ca,ua.locale=ai,ua.localeData=li,ua.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),ua.lang=si,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Ie("x",Le),Ie("X",Ne),Ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ye("x",(function(e,t,n){n._d=new Date(de(e))})),i.version="2.29.1",o(Kn),i.fn=lo,i.min=Qn,i.max=er,i.now=tr,i.utc=g,i.unix=co,i.months=vo,i.isDate=h,i.locale=gn,i.invalid=b,i.duration=Mr,i.isMoment=C,i.weekdays=bo,i.parseZone=uo,i.localeData=yn,i.isDuration=sr,i.monthsShort=yo,i.weekdaysMin=_o,i.defineLocale=mn,i.updateLocale=vn,i.locales=bn,i.weekdaysShort=wo,i.normalizeUnits=ie,i.relativeTimeRounding=ia,i.relativeTimeThreshold=oa,i.calendarFormat=Br,i.prototype=lo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},42441:function(e,t,n){var r;!function(i,o,a){if(i){for(var s,l={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:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},h=1;h<20;++h)l[111+h]="f"+h;for(h=0;h<=9;++h)l[h+96]=h.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},b.init=function(){var e=b(o);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),i.Mousetrap=b,e.exports&&(e.exports=b),void 0===(r=function(){return b}.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)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:c[e.which]?c[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function v(e,t){var n,r,i,o=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),i=0;i<n.length;++i)r=n[i],d[r]&&(r=d[r]),t&&"keypress"!=t&&u[r]&&(r=u[r],o.push("shift")),g(r)&&o.push(r);return{key:r,modifiers:o,action:t=m(r,o,t)}}function y(e,t){return null!==e&&e!==o&&(e===t||y(e.parentNode,t))}function b(e){var t=this;if(e=e||o,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},i=!1,a=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function c(e,n,i,o,a,s){var l,c,u,d,h=[],f=i.type;if(!t._callbacks[e])return[];for("keyup"==f&&g(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(c=t._callbacks[e][l],(o||!c.seq||r[c.seq]==c.level)&&f==c.action&&("keypress"==f&&!i.metaKey&&!i.ctrlKey||(u=n,d=c.modifiers,u.sort().join(",")===d.sort().join(",")))){var p=!o&&c.combo==a,m=o&&c.seq==o&&c.level==s;(p||m)&&t._callbacks[e].splice(l,1),h.push(c)}return h}function u(e,n,r,i){t.stopCallback(n,n.target||n.srcElement,r,i)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=p(e);n&&("keyup"!=e.type||i!==n?t.handleKey(n,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)}function h(e,t,o,a){function c(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(l,1e3)}}function d(t){u(o,t,e),"keyup"!==a&&(i=p(t)),setTimeout(l,10)}r[e]=0;for(var h=0;h<t.length;++h){var f=h+1===t.length?d:c(a||v(t[h+1]).action);m(t[h],f,a,e,h)}}function m(e,n,r,i,o){t._directMap[e+":"+r]=n;var a,s=(e=e.replace(/\s+/g," ")).split(" ");s.length>1?h(e,s,n,r):(a=v(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],c(a.key,a.modifiers,{type:a.action},i,e,o),t._callbacks[a.key][i?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:e}))}t._handleKey=function(e,t,n){var r,i=c(e,t,n),o={},d=0,h=!1;for(r=0;r<i.length;++r)i[r].seq&&(d=Math.max(d,i[r].level));for(r=0;r<i.length;++r)if(i[r].seq){if(i[r].level!=d)continue;h=!0,o[i[r].seq]=1,u(i[r].callback,n,i[r].combo,i[r].seq)}else h||u(i[r].callback,n,i[r].combo);var f="keypress"==n.type&&a;n.type!=s||g(e)||f||l(o),a=h&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)m(e[r],t,n)},f(e,"keypress",d),f(e,"keydown",d),f(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},27418:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;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;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))n.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)r.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s}},40705:function(e){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){(function(r,i,o,a,s,l,c,u,d){"use strict";var h=e("crypto");function f(e,t){return function(e,t){var n;if(void 0===(n="passthrough"!==t.algorithm?h.createHash(t.algorithm):new b).write&&(n.write=n.update,n.end=n.update),y(t,n).dispatch(e),n.update||n.end(""),n.digest)return n.digest("buffer"===t.encoding?void 0:t.encoding);var r=n.read();return"buffer"!==t.encoding?r.toString(t.encoding):r}(e,t=m(e,t))}(n=t.exports=f).sha1=function(e){return f(e)},n.keys=function(e){return f(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return f(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return f(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var p=h.getHashes?h.getHashes().slice():["sha1","md5"];p.push("passthrough");var g=["buffer","hex","binary","base64"];function m(e,t){t=t||{};var n={};if(n.algorithm=t.algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<p.length;++r)p[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=p[r]);if(-1===p.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+p.join(", "));if(-1===g.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+g.join(", "));return n}function v(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function y(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var i,a=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(a);if(s=(s=s?s[1]:"unknown:["+a+"]").toLowerCase(),0<=(i=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+i+"]");if(n.push(t),void 0!==o&&o.isBuffer&&o.isBuffer(t))return r("buffer:"),r(t);if("object"===s||"function"===s||"asyncfunction"===s){var l=Object.keys(t);e.unorderedObjects&&(l=l.sort()),!1===e.respectType||v(t)||l.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(l=l.filter((function(t){return!e.excludeKeys(t)}))),r("object:"+l.length+":");var c=this;return l.forEach((function(n){c.dispatch(n),r(":"),e.excludeValues||c.dispatch(t[n]),r(",")}))}if(!this["_"+s]){if(e.ignoreUnknown)return r("["+s+"]");throw new Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,i){i=void 0!==i?i:!1!==e.unorderedArrays;var o=this;if(r("array:"+t.length+":"),!i||t.length<=1)return t.forEach((function(e){return o.dispatch(e)}));var a=[],s=t.map((function(t){var r=new b,i=n.slice();return y(e,r,i).dispatch(t),a=a.concat(i.slice(n.length)),r.read().toString()}));return n=n.concat(a),s.sort(),this._array(s,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())},_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),v(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){r("map:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_set:function(t){r("set:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function b(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),y(t=m(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,n){(function(e,t,r,i,o,a,s,l,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),i="0".charCodeAt(0),o="a".charCodeAt(0),a="A".charCodeAt(0),s="-".charCodeAt(0),l="_".charCodeAt(0);function c(e){var t=e.charCodeAt(0);return t===n||t===s?62:t===r||t===l?63:t<i?-1:t<i+10?t-i+26+26:t<a+26?t-a:t<o+26?t-o+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.length,o="="===e.charAt(i-2)?2:"="===e.charAt(i-1)?1:0,a=new t(3*e.length/4-o),s=0<o?e.length-4:e.length,l=0;function u(e){a[l++]=e}for(n=0;n<s;n+=4,0)u((16711680&(r=c(e.charAt(n))<<18|c(e.charAt(n+1))<<12|c(e.charAt(n+2))<<6|c(e.charAt(n+3))))>>16),u((65280&r)>>8),u(255&r);return 2==o?u(255&(r=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==o&&(u((r=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),u(255&r)),a},e.fromByteArray=function(e){var t,n,r,i,o=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-o;t<r;t+=3)a+=s((i=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((n=e[e.length-1])>>2),a+=s(n<<4&63),a+="==";break;case 2:a+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=s(n>>4&63),a+=s(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,n){(function(t,r,i,o,a,s,l,c,u){var d=e("base64-js"),h=e("ieee754");function i(e,t,n){if(!(this instanceof i))return new i(e,t,n);var r,o,a,s,l,c=typeof e;if("base64"===t&&"string"==c)for(e=(r=e).trim?r.trim():r.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)o=L(e);else if("string"==c)o=i.byteLength(e,t);else{if("object"!=c)throw new Error("First argument needs to be a number, array or string.");o=L(e.length)}if(i._useTypedArrays?a=i._augment(new Uint8Array(o)):((a=this).length=o,a._isBuffer=!0),i._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(A(l=e)||i.isBuffer(l)||l&&"object"==typeof l&&"number"==typeof l.length)for(s=0;s<o;s++)i.isBuffer(e)?a[s]=e.readUInt8(s):a[s]=e[s];else if("string"==c)a.write(e,0,t);else if("number"==c&&!i._useTypedArrays&&!n)for(s=0;s<o;s++)a[s]=0;return a}function f(e,t,n,r){return i._charsWritten=I(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function p(e,t,n,r){return i._charsWritten=I(function(e){for(var t,n,r,i=[],o=0;o<e.length;o++)n=(t=e.charCodeAt(o))>>8,r=t%256,i.push(r),i.push(n);return i}(t),e,n,r)}function g(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,r){r||(Y("boolean"==typeof n,"missing or invalid endian"),Y(null!=t,"missing offset"),Y(t+1<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(o<=t))return n?(i=e[t],t+1<o&&(i|=e[t+1]<<8)):(i=e[t]<<8,t+1<o&&(i|=e[t+1])),i}function v(e,t,n,r){r||(Y("boolean"==typeof n,"missing or invalid endian"),Y(null!=t,"missing offset"),Y(t+3<e.length,"Trying to read beyond buffer length"));var i,o=e.length;if(!(o<=t))return n?(t+2<o&&(i=e[t+2]<<16),t+1<o&&(i|=e[t+1]<<8),i|=e[t],t+3<o&&(i+=e[t+3]<<24>>>0)):(t+1<o&&(i=e[t+1]<<16),t+2<o&&(i|=e[t+2]<<8),t+3<o&&(i|=e[t+3]),i+=e[t]<<24>>>0),i}function y(e,t,n,r){if(r||(Y("boolean"==typeof n,"missing or invalid endian"),Y(null!=t,"missing offset"),Y(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var i=m(e,t,n,!0);return 32768&i?-1*(65535-i+1):i}}function b(e,t,n,r){if(r||(Y("boolean"==typeof n,"missing or invalid endian"),Y(null!=t,"missing offset"),Y(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var i=v(e,t,n,!0);return 2147483648&i?-1*(4294967295-i+1):i}}function w(e,t,n,r){return r||(Y("boolean"==typeof n,"missing or invalid endian"),Y(t+3<e.length,"Trying to read beyond buffer length")),h.read(e,t,n,23,4)}function _(e,t,n,r){return r||(Y("boolean"==typeof n,"missing or invalid endian"),Y(t+7<e.length,"Trying to read beyond buffer length")),h.read(e,t,n,52,8)}function x(e,t,n,r,i){i||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+1<e.length,"trying to write beyond buffer length"),R(t,65535));var o=e.length;if(!(o<=n))for(var a=0,s=Math.min(o-n,2);a<s;a++)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function E(e,t,n,r,i){i||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+3<e.length,"trying to write beyond buffer length"),R(t,4294967295));var o=e.length;if(!(o<=n))for(var a=0,s=Math.min(o-n,4);a<s;a++)e[n+a]=t>>>8*(r?a:3-a)&255}function C(e,t,n,r,i){i||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+1<e.length,"Trying to write beyond buffer length"),F(t,32767,-32768)),e.length<=n||x(e,0<=t?t:65535+t+1,n,r,i)}function k(e,t,n,r,i){i||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+3<e.length,"Trying to write beyond buffer length"),F(t,2147483647,-2147483648)),e.length<=n||E(e,0<=t?t:4294967295+t+1,n,r,i)}function S(e,t,n,r,i){i||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+3<e.length,"Trying to write beyond buffer length"),z(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||h.write(e,t,n,r,23,4)}function T(e,t,n,r,i){i||(Y(null!=t,"missing value"),Y("boolean"==typeof r,"missing or invalid endian"),Y(null!=n,"missing offset"),Y(n+7<e.length,"Trying to write beyond buffer length"),z(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||h.write(e,t,n,r,52,8)}n.Buffer=i,n.SlowBuffer=i,n.INSPECT_MAX_BYTES=50,i.poolSize=8192,i._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),i.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.isBuffer=function(e){return!(null==e||!e._isBuffer)},i.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=N(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=P(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},i.concat=function(e,t){if(Y(A(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new i(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new i(t),r=0,o=0;o<e.length;o++){var a=e[o];a.copy(n,r),r+=a.length}return n},i.prototype.write=function(e,t,n,r){var o;isFinite(t)?isFinite(n)||(r=n,n=void 0):(o=r,r=t,t=n,n=o),t=Number(t)||0;var a,s,l,c,u,d,h,g,m,v=this.length-t;switch((!n||v<(n=Number(n)))&&(n=v),r=String(r||"utf8").toLowerCase()){case"hex":a=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o);var a=t.length;Y(a%2==0,"Invalid hex string"),a/2<r&&(r=a/2);for(var s=0;s<r;s++){var l=parseInt(t.substr(2*s,2),16);Y(!isNaN(l),"Invalid hex string"),e[n+s]=l}return i._charsWritten=2*s,s}(this,e,t,n);break;case"utf8":case"utf-8":d=this,h=e,g=t,m=n,a=i._charsWritten=I(N(h),d,g,m);break;case"ascii":case"binary":a=f(this,e,t,n);break;case"base64":s=this,l=e,c=t,u=n,a=i._charsWritten=I(P(l),s,c,u);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=p(this,e,t,n);break;default:throw new Error("Unknown encoding")}return a},i.prototype.toString=function(e,t,n){var r,i,o,a,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=s.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var i="",o=t;o<n;o++)i+=D(e[o]);return i}(s,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",i="";n=Math.min(e.length,n);for(var o=t;o<n;o++)e[o]<=127?(r+=j(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return r+j(i)}(s,t,n);break;case"ascii":case"binary":r=g(s,t,n);break;case"base64":i=s,a=n,r=0===(o=t)&&a===i.length?d.fromByteArray(i):d.fromByteArray(i.slice(o,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(s,t,n);break;default:throw new Error("Unknown encoding")}return r},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t=t||0,r!==n&&0!==e.length&&0!==this.length){Y(n<=r,"sourceEnd < sourceStart"),Y(0<=t&&t<e.length,"targetStart out of bounds"),Y(0<=n&&n<this.length,"sourceStart out of bounds"),Y(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;if(o<100||!i._useTypedArrays)for(var a=0;a<o;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+o),t)}},i.prototype.slice=function(e,t){var n=this.length;if(e=O(e,n,0),t=O(t,n,n),i._useTypedArrays)return i._augment(this.subarray(e,t));for(var r=t-e,o=new i(r,void 0,!0),a=0;a<r;a++)o[a]=this[a+e];return o},i.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},i.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},i.prototype.readUInt8=function(e,t){if(t||(Y(null!=e,"missing offset"),Y(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},i.prototype.readUInt16LE=function(e,t){return m(this,e,!0,t)},i.prototype.readUInt16BE=function(e,t){return m(this,e,!1,t)},i.prototype.readUInt32LE=function(e,t){return v(this,e,!0,t)},i.prototype.readUInt32BE=function(e,t){return v(this,e,!1,t)},i.prototype.readInt8=function(e,t){if(t||(Y(null!=e,"missing offset"),Y(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},i.prototype.readInt16LE=function(e,t){return y(this,e,!0,t)},i.prototype.readInt16BE=function(e,t){return y(this,e,!1,t)},i.prototype.readInt32LE=function(e,t){return b(this,e,!0,t)},i.prototype.readInt32BE=function(e,t){return b(this,e,!1,t)},i.prototype.readFloatLE=function(e,t){return w(this,e,!0,t)},i.prototype.readFloatBE=function(e,t){return w(this,e,!1,t)},i.prototype.readDoubleLE=function(e,t){return _(this,e,!0,t)},i.prototype.readDoubleBE=function(e,t){return _(this,e,!1,t)},i.prototype.writeUInt8=function(e,t,n){n||(Y(null!=e,"missing value"),Y(null!=t,"missing offset"),Y(t<this.length,"trying to write beyond buffer length"),R(e,255)),t>=this.length||(this[t]=e)},i.prototype.writeUInt16LE=function(e,t,n){x(this,e,t,!0,n)},i.prototype.writeUInt16BE=function(e,t,n){x(this,e,t,!1,n)},i.prototype.writeUInt32LE=function(e,t,n){E(this,e,t,!0,n)},i.prototype.writeUInt32BE=function(e,t,n){E(this,e,t,!1,n)},i.prototype.writeInt8=function(e,t,n){n||(Y(null!=e,"missing value"),Y(null!=t,"missing offset"),Y(t<this.length,"Trying to write beyond buffer length"),F(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},i.prototype.writeInt16LE=function(e,t,n){C(this,e,t,!0,n)},i.prototype.writeInt16BE=function(e,t,n){C(this,e,t,!1,n)},i.prototype.writeInt32LE=function(e,t,n){k(this,e,t,!0,n)},i.prototype.writeInt32BE=function(e,t,n){k(this,e,t,!1,n)},i.prototype.writeFloatLE=function(e,t,n){S(this,e,t,!0,n)},i.prototype.writeFloatBE=function(e,t,n){S(this,e,t,!1,n)},i.prototype.writeDoubleLE=function(e,t,n){T(this,e,t,!0,n)},i.prototype.writeDoubleBE=function(e,t,n){T(this,e,t,!1,n)},i.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),Y("number"==typeof e&&!isNaN(e),"value is not a number"),Y(t<=n,"end < start"),n!==t&&0!==this.length){Y(0<=t&&t<this.length,"start out of bounds"),Y(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},i.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=D(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},i.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(i._useTypedArrays)return new i(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var M=i.prototype;function O(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function L(e){return(e=~~Math.ceil(+e))<0?0:e}function A(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function N(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else{var i=n;55296<=r&&r<=57343&&n++;for(var o=encodeURIComponent(e.slice(i,n+1)).substr(1).split("%"),a=0;a<o.length;a++)t.push(parseInt(o[a],16))}}return t}function P(e){return d.toByteArray(e)}function I(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){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function R(e,t){Y("number"==typeof e,"cannot write a non-number as a number"),Y(0<=e,"specified a negative value for writing an unsigned value"),Y(e<=t,"value is larger than maximum value for type"),Y(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){Y("number"==typeof e,"cannot write a non-number as a number"),Y(e<=t,"value larger than maximum allowed value"),Y(n<=e,"value smaller than minimum allowed value"),Y(Math.floor(e)===e,"value has a fractional component")}function z(e,t,n){Y("number"==typeof e,"cannot write a non-number as a number"),Y(e<=t,"value larger than maximum allowed value"),Y(n<=e,"value smaller than minimum allowed value")}function Y(e,t){if(!e)throw new Error(t||"Failed assertion")}i._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=M.get,e.set=M.set,e.write=M.write,e.toString=M.toString,e.toLocaleString=M.toString,e.toJSON=M.toJSON,e.copy=M.copy,e.slice=M.slice,e.readUInt8=M.readUInt8,e.readUInt16LE=M.readUInt16LE,e.readUInt16BE=M.readUInt16BE,e.readUInt32LE=M.readUInt32LE,e.readUInt32BE=M.readUInt32BE,e.readInt8=M.readInt8,e.readInt16LE=M.readInt16LE,e.readInt16BE=M.readInt16BE,e.readInt32LE=M.readInt32LE,e.readInt32BE=M.readInt32BE,e.readFloatLE=M.readFloatLE,e.readFloatBE=M.readFloatBE,e.readDoubleLE=M.readDoubleLE,e.readDoubleBE=M.readDoubleBE,e.writeUInt8=M.writeUInt8,e.writeUInt16LE=M.writeUInt16LE,e.writeUInt16BE=M.writeUInt16BE,e.writeUInt32LE=M.writeUInt32LE,e.writeUInt32BE=M.writeUInt32BE,e.writeInt8=M.writeInt8,e.writeInt16LE=M.writeInt16LE,e.writeInt16BE=M.writeInt16BE,e.writeInt32LE=M.writeInt32LE,e.writeInt32BE=M.writeInt32BE,e.writeFloatLE=M.writeFloatLE,e.writeFloatBE=M.writeFloatBE,e.writeDoubleLE=M.writeDoubleLE,e.writeDoubleBE=M.writeDoubleBE,e.fill=M.fill,e.inspect=M.inspect,e.toArrayBuffer=M.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,n){(function(n,r,i,o,a,s,l,c,u){i=e("buffer").Buffer;var d=4,h=new i(d);h.fill(0),t.exports={hash:function(e,t,n,r){return i.isBuffer(e)||(e=new i(e)),function(e,t,n){for(var r=new i(t),o=n?r.writeInt32BE:r.writeInt32LE,a=0;a<e.length;a++)o.call(r,e[a],4*a,!0);return r}(t(function(e,t){var n;e.length%d!=0&&(n=e.length+(d-e.length%d),e=i.concat([e,h],n));for(var r=[],o=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=d)r.push(o.call(e,a));return r}(e,r),8*e.length),n,r)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,n){(function(t,r,i,o,a,s,l,c,u){i=e("buffer").Buffer;var d=e("./sha"),h=e("./sha256"),f=e("./rng"),p={sha1:d,sha256:h,md5:e("./md5")},g=64,m=new i(g);function v(e,t){var n=p[e=e||"sha1"],r=[];return n||y("algorithm:",e,"is not yet supported"),{update:function(e){return i.isBuffer(e)||(e=new i(e)),r.push(e),e.length,this},digest:function(e){var o=i.concat(r),a=t?function(e,t,n){i.isBuffer(t)||(t=new i(t)),i.isBuffer(n)||(n=new i(n)),t.length>g?t=e(t):t.length<g&&(t=i.concat([t,m],g));for(var r=new i(g),o=new i(g),a=0;a<g;a++)r[a]=54^t[a],o[a]=92^t[a];var s=e(i.concat([r,n]));return e(i.concat([o,s]))}(n,t,o):n(o);return r=null,e?a.toString(e):a}}}function y(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}m.fill(0),n.createHash=function(e){return v(e)},n.createHmac=v,n.randomBytes=function(e,t){if(!t||!t.call)return new i(f(e));try{t.call(this,void 0,new i(f(e)))}catch(e){t(e)}},function(e,t){for(var n in e)t(e[n],n)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(e){n[e]=function(){y("sorry,",e,"is not implemented yet")}}))}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,n){(function(n,r,i,o,a,s,l,c,u){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,l=r,c=i,u=o;n=p(n,r,i,o,e[a+0],7,-680876936),o=p(o,n,r,i,e[a+1],12,-389564586),i=p(i,o,n,r,e[a+2],17,606105819),r=p(r,i,o,n,e[a+3],22,-1044525330),n=p(n,r,i,o,e[a+4],7,-176418897),o=p(o,n,r,i,e[a+5],12,1200080426),i=p(i,o,n,r,e[a+6],17,-1473231341),r=p(r,i,o,n,e[a+7],22,-45705983),n=p(n,r,i,o,e[a+8],7,1770035416),o=p(o,n,r,i,e[a+9],12,-1958414417),i=p(i,o,n,r,e[a+10],17,-42063),r=p(r,i,o,n,e[a+11],22,-1990404162),n=p(n,r,i,o,e[a+12],7,1804603682),o=p(o,n,r,i,e[a+13],12,-40341101),i=p(i,o,n,r,e[a+14],17,-1502002290),n=g(n,r=p(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=g(o,n,r,i,e[a+6],9,-1069501632),i=g(i,o,n,r,e[a+11],14,643717713),r=g(r,i,o,n,e[a+0],20,-373897302),n=g(n,r,i,o,e[a+5],5,-701558691),o=g(o,n,r,i,e[a+10],9,38016083),i=g(i,o,n,r,e[a+15],14,-660478335),r=g(r,i,o,n,e[a+4],20,-405537848),n=g(n,r,i,o,e[a+9],5,568446438),o=g(o,n,r,i,e[a+14],9,-1019803690),i=g(i,o,n,r,e[a+3],14,-187363961),r=g(r,i,o,n,e[a+8],20,1163531501),n=g(n,r,i,o,e[a+13],5,-1444681467),o=g(o,n,r,i,e[a+2],9,-51403784),i=g(i,o,n,r,e[a+7],14,1735328473),n=m(n,r=g(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=m(o,n,r,i,e[a+8],11,-2022574463),i=m(i,o,n,r,e[a+11],16,1839030562),r=m(r,i,o,n,e[a+14],23,-35309556),n=m(n,r,i,o,e[a+1],4,-1530992060),o=m(o,n,r,i,e[a+4],11,1272893353),i=m(i,o,n,r,e[a+7],16,-155497632),r=m(r,i,o,n,e[a+10],23,-1094730640),n=m(n,r,i,o,e[a+13],4,681279174),o=m(o,n,r,i,e[a+0],11,-358537222),i=m(i,o,n,r,e[a+3],16,-722521979),r=m(r,i,o,n,e[a+6],23,76029189),n=m(n,r,i,o,e[a+9],4,-640364487),o=m(o,n,r,i,e[a+12],11,-421815835),i=m(i,o,n,r,e[a+15],16,530742520),n=v(n,r=m(r,i,o,n,e[a+2],23,-995338651),i,o,e[a+0],6,-198630844),o=v(o,n,r,i,e[a+7],10,1126891415),i=v(i,o,n,r,e[a+14],15,-1416354905),r=v(r,i,o,n,e[a+5],21,-57434055),n=v(n,r,i,o,e[a+12],6,1700485571),o=v(o,n,r,i,e[a+3],10,-1894986606),i=v(i,o,n,r,e[a+10],15,-1051523),r=v(r,i,o,n,e[a+1],21,-2054922799),n=v(n,r,i,o,e[a+8],6,1873313359),o=v(o,n,r,i,e[a+15],10,-30611744),i=v(i,o,n,r,e[a+6],15,-1560198380),r=v(r,i,o,n,e[a+13],21,1309151649),n=v(n,r,i,o,e[a+4],6,-145523070),o=v(o,n,r,i,e[a+11],10,-1120210379),i=v(i,o,n,r,e[a+2],15,718787259),r=v(r,i,o,n,e[a+9],21,-343485551),n=y(n,s),r=y(r,l),i=y(i,c),o=y(o,u)}return Array(n,r,i,o)}function f(e,t,n,r,i,o){return y((a=y(y(t,e),y(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function p(e,t,n,r,i,o,a){return f(t&n|~t&r,e,t,i,o,a)}function g(e,t,n,r,i,o,a){return f(t&r|n&~r,e,t,i,o,a)}function m(e,t,n,r,i,o,a){return f(t^n^r,e,t,i,o,a)}function v(e,t,n,r,i,o,a){return f(n^(t|~r),e,t,i,o,a)}function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return d.hash(e,h,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,n){(function(e,n,r,i,o,a,s,l,c){var u,d;d=function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n},t.exports=u||d}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,n){(function(n,r,i,o,a,s,l,c,u){var d=e("./helpers");function h(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,i,o,a,s=Array(80),l=1732584193,c=-271733879,u=-1732584194,d=271733878,h=-1009589776,g=0;g<e.length;g+=16){for(var m=l,v=c,y=u,b=d,w=h,_=0;_<80;_++){s[_]=_<16?e[g+_]:p(s[_-3]^s[_-8]^s[_-14]^s[_-16],1);var x=f(f(p(l,5),(i=c,o=u,a=d,(r=_)<20?i&o|~i&a:!(r<40)&&r<60?i&o|i&a|o&a:i^o^a)),f(f(h,s[_]),(n=_)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));h=d,d=u,u=p(c,30),c=l,l=x}l=f(l,m),c=f(c,v),u=f(u,y),d=f(d,b),h=f(h,w)}return Array(l,c,u,d,h)}function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function p(e,t){return e<<t|e>>>32-t}t.exports=function(e){return d.hash(e,h,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,n){(function(n,r,i,o,a,s,l,c,u){function d(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){return e>>>t|e<<32-t}function f(e,t){var n,r,i,o,a,s,l,c,u,f,p=new Array(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),g=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),m=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var v,y,b,w,_,x,E,C,k=0;k<e.length;k+=16){n=g[0],r=g[1],i=g[2],o=g[3],a=g[4],s=g[5],l=g[6],c=g[7];for(var S=0;S<64;S++)m[S]=S<16?e[S+k]:d(d(d(h(C=m[S-2],17)^h(C,19)^C>>>10,m[S-7]),h(E=m[S-15],7)^h(E,18)^E>>>3),m[S-16]),u=d(d(d(d(c,h(x=a,6)^h(x,11)^h(x,25)),(_=a)&s^~_&l),p[S]),m[S]),f=d(h(w=n,2)^h(w,13)^h(w,22),(v=n)&(y=r)^v&(b=i)^y&b),c=l,l=s,s=a,a=d(o,u),o=i,i=r,r=n,n=d(u,f);g[0]=d(n,g[0]),g[1]=d(r,g[1]),g[2]=d(i,g[2]),g[3]=d(o,g[3]),g[4]=d(a,g[4]),g[5]=d(s,g[5]),g[6]=d(l,g[6]),g[7]=d(c,g[7])}return g}var p=e("./helpers");t.exports=function(e){return p.hash(e,f,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,n){(function(e,n,r,i,o,a,s,l,c){function u(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<n.length&&n.shift()())}),!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=u,e.addListener=u,e.once=u,e.off=u,e.removeListener=u,e.removeAllListeners=u,e.emit=u,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,n){(function(e,t,r,i,o,a,s,l,c){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;0<u;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;0<u;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-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,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+d?h/l:h*Math.pow(2,1-d))*l&&(a++,l/=2),u<=a+d?(s=0,a=u):1<=a+d?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));8<=i;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;0<c;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*g}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},70631:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"==typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,v=String.prototype.match,y="function"==typeof BigInt?BigInt.prototype.valueOf:null,b=Object.getOwnPropertySymbols,w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x=Object.prototype.propertyIsEnumerable,E=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null),C=n(24654).custom,k=C&&L(C)?C:null,S="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function T(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function M(e){return String(e).replace(/"/g,""")}function O(e){return!("[object Array]"!==N(e)||S&&"object"==typeof e&&S in e)}function L(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!w)return!1;try{return w.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var s=n||{};if(D(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(D(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!D(s,"customInspect")||s.customInspect;if("boolean"!=typeof l&&"symbol"!==l)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(D(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return I(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var g=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=g&&g>0&&"object"==typeof t)return O(t)?"[Array]":"[Object]";var b=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if(void 0===i)i=[];else if(P(i,t)>=0)return"[Circular]";function x(t,n,o){if(n&&(i=i.slice()).push(n),o){var a={depth:s.depth};return D(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var C=function(e){if(e.name)return e.name;var t=v.call(m.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),A=B(t,x);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(A.length>0?" { "+A.join(", ")+" }":"")}if(L(t)){var j=_?String(t).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(t);return"object"!=typeof t||_?j:R(j)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var H="<"+String(t.nodeName).toLowerCase(),q=t.attributes||[],U=0;U<q.length;U++)H+=" "+q[U].name+"="+T(M(q[U].value),"double",s);return H+=">",t.childNodes&&t.childNodes.length&&(H+="..."),H+="</"+String(t.nodeName).toLowerCase()+">"}if(O(t)){if(0===t.length)return"[]";var V=B(t,x);return b&&!function(e){for(var t=0;t<e.length;t++)if(P(e[t],"\n")>=0)return!1;return!0}(V)?"["+Y(V,b)+"]":"[ "+V.join(", ")+" ]"}if(function(e){return!("[object Error]"!==N(e)||S&&"object"==typeof e&&S in e)}(t)){var W=B(t,x);return 0===W.length?"["+String(t)+"]":"{ ["+String(t)+"] "+W.join(", ")+" }"}if("object"==typeof t&&l){if(k&&"function"==typeof t[k])return t[k]();if("symbol"!==l&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var G=[];return a.call(t,(function(e,n){G.push(x(n,t,!0)+" => "+x(e,t))})),z("Map",o.call(t),G,b)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var $=[];return u.call(t,(function(e){$.push(x(e,t))})),z("Set",c.call(t),$,b)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return F("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return F("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return F("WeakRef");if(function(e){return!("[object Number]"!==N(e)||S&&"object"==typeof e&&S in e)}(t))return R(x(Number(t)));if(function(e){if(!e||"object"!=typeof e||!y)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return R(x(y.call(t)));if(function(e){return!("[object Boolean]"!==N(e)||S&&"object"==typeof e&&S in e)}(t))return R(p.call(t));if(function(e){return!("[object String]"!==N(e)||S&&"object"==typeof e&&S in e)}(t))return R(x(String(t)));if(!function(e){return!("[object Date]"!==N(e)||S&&"object"==typeof e&&S in e)}(t)&&!function(e){return!("[object RegExp]"!==N(e)||S&&"object"==typeof e&&S in e)}(t)){var K=B(t,x),J=E?E(t)===Object.prototype:t instanceof Object||t.constructor===Object,X=t instanceof Object?"":"null prototype",Z=!J&&S&&Object(t)===t&&S in t?N(t).slice(8,-1):X?"Object":"",Q=(J||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Z||X?"["+[].concat(Z||[],X||[]).join(": ")+"] ":"");return 0===K.length?Q+"{}":b?Q+"{"+Y(K,b)+"}":Q+"{ "+K.join(", ")+" }"}return String(t)};var A=Object.prototype.hasOwnProperty||function(e){return e in this};function D(e,t){return A.call(e,t)}function N(e){return g.call(e)}function P(e,t){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){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return I(e.slice(0,t.maxStringLength),t)+r}return T(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,j),"single",t)}function j(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function R(e){return"Object("+e+")"}function F(e){return e+" { ? }"}function z(e,t,n,r){return e+" ("+t+") {"+(r?Y(n,r):n.join(", "))+"}"}function Y(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function B(e,t){var n=O(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=D(e,i)?t(e[i],e):""}var o,a="function"==typeof b?b(e):[];if(_){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var l in e)D(e,l)&&(n&&String(Number(l))===l&&l<e.length||_&&o["$"+l]instanceof Symbol||(/[^\w$]/.test(l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"==typeof b)for(var c=0;c<a.length;c++)x.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},14779:function(e,t,n){var r=n(5826);e.exports=f,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],h=n[1],f=n.index;if(s+=e.slice(a,f),a=f+d.length,h)s+=h[1];else{var p=e[a],g=n[2],m=n[3],v=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var _=null!=g&&null!=p&&p!==g,x="+"===b||"*"===b,E="?"===b||"*"===b,C=n[2]||u,k=v||y;r.push({name:m||o++,prefix:g||"",delimiter:C,optional:E,repeat:x,partial:_,asterisk:!!w,pattern:k?c(k):w?".*":"[^"+l(C)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",d(t)));return function(t,i){for(var o="",s=t||{},l=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,h=s[u.name];if(null==h){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(h)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(d=l(h[f]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===f?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(h),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)a+=l(c);else{var h=l(c.prefix),f="(?:"+c.pattern+")";t.push(c),c.repeat&&(f+="(?:"+h+f+")*"),a+=f=c.optional?c.partial?h+"("+f+")?":"(?:"+h+"("+f+"))?":h+"("+f+")"}}var p=l(n.delimiter||"/"),g=a.slice(-p.length)===p;return i||(a=(g?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&g?"":"(?="+p+"|$)",u(new RegExp("^"+a,d(n)),t)}function f(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){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 u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(f(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return h(o(e,n),t,n)}(e,t,n)}},92703:function(e,t,n){"use strict";var r=n(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},45697:function(e,t,n){e.exports=n(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55798:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r,RFC3986:i}},80129:function(e,t,n){"use strict";var r=n(58261),i=n(55235),o=n(55798);e.exports={formats:o,parse:i,stringify:r}},55235:function(e,t,n){"use strict";var r=n(12769),i=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var d=0;n.depth>0&&null!==(s=a.exec(o))&&d<n.depth;){if(d+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+o.slice(s.index)+"]"),function(e,t,n,r){for(var i=r?t:l(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(c,10);n.parseArrays||""!==c?!isNaN(u)&&s!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[])[u]=i:a[c]=i:a={0:i}}i=a}return i}(u,t,n,r)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var n,c={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,d),f=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[n]?p="utf-8":"utf8=%26%2310003%3B"===h[n]&&(p="iso-8859-1"),f=n,n=h.length);for(n=0;n<h.length;++n)if(n!==f){var g,m,v=h[n],y=v.indexOf("]="),b=-1===y?v.indexOf("="):y+1;-1===b?(g=t.decoder(v,a.decoder,p,"key"),m=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,b),a.decoder,p,"key"),m=r.maybeMap(l(v.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,p,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===p&&(m=s(m)),v.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(c,g)?c[g]=r.combine(c[g],m):c[g]=m}return c}(e,n):e,d=n.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var p=h[f],g=c(p,u[p],n,"string"==typeof e);d=r.merge(d,g,n)}return!0===n.allowSparse?d:r.compact(d)}},58261:function(e,t,n){"use strict";var r=n(37478),i=n(12769),o=n(55798),a=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,o,a,s,c,d,h,p,g,m,v,y,b,w){var _,x=t;if(w.has(t))throw new RangeError("Cyclic object value");if("function"==typeof d?x=d(n,x):x instanceof Date?x=g(x):"comma"===o&&l(x)&&(x=i.maybeMap(x,(function(e){return e instanceof Date?g(e):e}))),null===x){if(a)return c&&!y?c(n,f.encoder,b,"key",m):n;x=""}if("string"==typeof(_=x)||"number"==typeof _||"boolean"==typeof _||"symbol"==typeof _||"bigint"==typeof _||i.isBuffer(x))return c?[v(y?n:c(n,f.encoder,b,"key",m))+"="+v(c(x,f.encoder,b,"value",m))]:[v(n)+"="+v(String(x))];var E,C=[];if(void 0===x)return C;if("comma"===o&&l(x))E=[{value:x.length>0?x.join(",")||null:void 0}];else if(l(d))E=d;else{var k=Object.keys(x);E=h?k.sort(h):k}for(var S=0;S<E.length;++S){var T=E[S],M="object"==typeof T&&void 0!==T.value?T.value:x[T];if(!s||null!==M){var O=l(x)?"function"==typeof o?o(n,T):n:n+(p?"."+T:"["+T+"]");w.set(t,!0);var L=r();u(C,e(M,O,o,a,s,c,d,h,p,g,m,v,y,b,L))}}return C};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],i=f.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var d,h=[];if("object"!=typeof i||null===i)return"";d=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var g=s[d];n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var m=r(),v=0;v<n.length;++v){var y=n[v];c.skipNulls&&null===i[y]||u(h,p(i[y],y,g,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var b=h.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},12769:function(e,t,n){"use strict";var r=n(55798),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<s.length;++c){var u=s.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?l+=s.charAt(c):u<128?l+=a[u]:u<2048?l+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?l+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(c)),l+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return l},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},15311:function(e,t,n){var r=n(10327)(n(94100),"DataView");e.exports=r},67387:function(e,t,n){var r=n(7328),i=n(22066),o=n(33633),a=n(97725),s=n(98202);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},86108:function(e,t,n){var r=n(82171),i=n(19214),o=n(91169),a=n(40678),s=n(70160);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},17750:function(e,t,n){var r=n(10327)(n(94100),"Map");e.exports=r},87248:function(e,t,n){var r=n(27691),i=n(28028),o=n(7320),a=n(74411),s=n(91452);function l(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])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},28392:function(e,t,n){var r=n(10327)(n(94100),"Promise");e.exports=r},99384:function(e,t,n){var r=n(10327)(n(94100),"Set");e.exports=r},68730:function(e,t,n){var r=n(87248),i=n(45811),o=n(6072);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},68020:function(e,t,n){var r=n(86108),i=n(43616),o=n(66154),a=n(28775),s=n(25378),l=n(71868);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},76135:function(e,t,n){var r=n(94100).Symbol;e.exports=r},97100:function(e,t,n){var r=n(94100).Uint8Array;e.exports=r},94902:function(e,t,n){var r=n(10327)(n(94100),"WeakMap");e.exports=r},47605:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},48352:function(e,t,n){var r=n(2391),i=n(55849),o=n(69175),a=n(5606),s=n(28622),l=n(48671),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),f=n||u||d||h,p=f?r(e.length,String):[],g=p.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},59816:function(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},95796:function(e){e.exports=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}},92827:function(e,t,n){var r=n(76481);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1683:function(e,t,n){var r=n(59816),i=n(69175);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},22955:function(e,t,n){var r=n(76135),i=n(79536),o=n(34799),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},15938:function(e,t,n){var r=n(22955),i=n(97040);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},62149:function(e,t,n){var r=n(75308),i=n(97040);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},75308:function(e,t,n){var r=n(68020),i=n(42613),o=n(65155),a=n(84589),s=n(69876),l=n(69175),c=n(5606),u=n(48671),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),w=y?h:s(e),_=b?h:s(t),x=(w=w==d?f:w)==f,E=(_=_==d?f:_)==f,C=w==_;if(C&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(C&&!x)return v||(v=new r),y||u(e)?i(e,t,n,g,m,v):o(e,t,w,n,g,m,v);if(!(1&n)){var k=x&&p.call(e,"__wrapped__"),S=E&&p.call(t,"__wrapped__");if(k||S){var T=k?e.value():e,M=S?t.value():t;return v||(v=new r),m(T,M,n,g,v)}}return!!C&&(v||(v=new r),a(e,t,n,g,m,v))}},14660:function(e,t,n){var r=n(97505),i=n(54652),o=n(27564),a=n(83990),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},9770:function(e,t,n){var r=n(22955),i=n(85027),o=n(97040),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},90425:function(e,t,n){var r=n(40675),i=n(68272),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2391:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},52386:function(e){e.exports=function(e){return function(t){return e(t)}}},89426:function(e){e.exports=function(e,t){return e.has(t)}},6934:function(e,t,n){var r=n(94100)["__core-js_shared__"];e.exports=r},42613:function(e,t,n){var r=n(68730),i=n(95796),o=n(89426);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var v=e[p],y=t[p];if(a)var b=c?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},65155:function(e,t,n){var r=n(76135),i=n(97100),o=n(76481),a=n(42613),s=n(82446),l=n(19224),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,d,h){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||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&r;if(f||(f=l),e.size!=t.size&&!p)return!1;var g=h.get(e);if(g)return g==t;r|=2,h.set(e,t);var m=a(f(e),f(t),r,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},84589:function(e,t,n){var r=n(25276),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[h=c[d]],y=t[h];if(o)var b=l?o(y,v,h,t,e,s):o(v,y,h,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return s.delete(e),s.delete(t),g}},7533:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},25276:function(e,t,n){var r=n(1683),i=n(74610),o=n(31437);e.exports=function(e){return r(e,o,i)}},16853:function(e,t,n){var r=n(13954);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},10327:function(e,t,n){var r=n(14660),i=n(2238);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},79536:function(e,t,n){var r=n(76135),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},74610:function(e,t,n){var r=n(47605),i=n(3198),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},69876:function(e,t,n){var r=n(15311),i=n(17750),o=n(28392),a=n(99384),s=n(94902),l=n(22955),c=n(83990),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(r),m=c(i),v=c(o),y=c(a),b=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=p||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return p;case m:return u;case v:return d;case y:return h;case b:return f}return t}),e.exports=w},2238:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},7328:function(e,t,n){var r=n(99642);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},22066:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},33633:function(e,t,n){var r=n(99642),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}},97725:function(e,t,n){var r=n(99642),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},98202:function(e,t,n){var r=n(99642);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}},28622:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},13954:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},54652:function(e,t,n){var r,i=n(6934),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},40675:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},82171:function(e){e.exports=function(){this.__data__=[],this.size=0}},19214:function(e,t,n){var r=n(92827),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)}},91169:function(e,t,n){var r=n(92827);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},40678:function(e,t,n){var r=n(92827);e.exports=function(e){return r(this.__data__,e)>-1}},70160:function(e,t,n){var r=n(92827);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}},27691:function(e,t,n){var r=n(67387),i=n(86108),o=n(17750);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},28028:function(e,t,n){var r=n(16853);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},7320:function(e,t,n){var r=n(16853);e.exports=function(e){return r(this,e).get(e)}},74411:function(e,t,n){var r=n(16853);e.exports=function(e){return r(this,e).has(e)}},91452:function(e,t,n){var r=n(16853);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}},82446:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},99642:function(e,t,n){var r=n(10327)(Object,"create");e.exports=r},68272:function(e,t,n){var r=n(38859)(Object.keys,Object);e.exports=r},11441:function(e,t,n){e=n.nmd(e);var r=n(7533),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},34799:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},38859:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},94100:function(e,t,n){var r=n(7533),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},45811:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6072:function(e){e.exports=function(e){return this.__data__.has(e)}},19224:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},43616:function(e,t,n){var r=n(86108);e.exports=function(){this.__data__=new r,this.size=0}},66154:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},28775:function(e){e.exports=function(e){return this.__data__.get(e)}},25378:function(e){e.exports=function(e){return this.__data__.has(e)}},71868:function(e,t,n){var r=n(86108),i=n(17750),o=n(87248);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},83990:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},76481:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},55849:function(e,t,n){var r=n(15938),i=n(97040),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},69175:function(e){var t=Array.isArray;e.exports=t},69658:function(e,t,n){var r=n(97505),i=n(85027);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},5606:function(e,t,n){e=n.nmd(e);var r=n(94100),i=n(32535),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},81981:function(e,t,n){var r=n(62149);e.exports=function(e,t){return r(e,t)}},97505:function(e,t,n){var r=n(22955),i=n(27564);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}},85027:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},27564:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},97040:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},48671:function(e,t,n){var r=n(9770),i=n(52386),o=n(11441),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},31437:function(e,t,n){var r=n(48352),i=n(90425),o=n(69658);e.exports=function(e){return o(e)?r(e):i(e)}},3198:function(e){e.exports=function(){return[]}},32535:function(e){e.exports=function(){return!1}},64448:function(e,t,n){"use strict";var r=n(67294),i=n(27418),o=n(63840);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,d=null,h={onError:function(e){l=!0,c=e}};function f(e,t,n,r,i,o,a,u,d){l=!1,c=null,s.apply(h,arguments)}var p=null,g=null,m=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,i,o,s,h,p){if(f.apply(this,arguments),l){if(!l)throw Error(a(198));var g=c;l=!1,c=null,u||(u=!0,d=g)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,l=r;if(E.hasOwnProperty(l))throw Error(a(99,l));E[l]=o;var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&_(c[i],s,l);i=!0}else o.registrationName?(_(o.registrationName,s,l),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function _(e,t,n){if(C[e])throw Error(a(100,e));C[e]=t,k[e]=t.eventTypes[n].dependencies}var x=[],E={},C={},k={};function S(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),M=null,O=null,L=null;function A(e){if(e=g(e)){if("function"!=typeof M)throw Error(a(280));var t=e.stateNode;t&&(t=p(t),M(e.stateNode,e.type,t))}}function D(e){O?L?L.push(e):L=[e]:O=e}function N(){if(O){var e=O,t=L;if(L=O=null,A(e),t)for(e=0;e<t.length;e++)A(t[e])}}function P(e,t){return e(t)}function I(e,t,n,r,i){return e(t,n,r,i)}function j(){}var R=P,F=!1,z=!1;function Y(){null===O&&null===L||(j(),N())}function B(e,t,n){if(z)return e(t,n);z=!0;try{return R(e,t,n)}finally{z=!1,Y()}}var H=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,q=Object.prototype.hasOwnProperty,U={},V={};function W(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new W(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new W(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new W(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new W(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new W(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new W(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new W(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new W(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new W(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function K(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,K);G[t]=new W(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,K);G[t]=new W(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,K);G[t]=new W(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new W(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new W("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new W(e,1,!1,e.toLowerCase(),null,!0)}));var J=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var i=G.hasOwnProperty(t)?G[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!q.call(V,e)||!q.call(U,e)&&(H.test(e)?V[e]=!0:(U[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}J.hasOwnProperty("ReactCurrentDispatcher")||(J.ReactCurrentDispatcher={current:null}),J.hasOwnProperty("ReactCurrentBatchConfig")||(J.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,Q="function"==typeof Symbol&&Symbol.for,ee=Q?Symbol.for("react.element"):60103,te=Q?Symbol.for("react.portal"):60106,ne=Q?Symbol.for("react.fragment"):60107,re=Q?Symbol.for("react.strict_mode"):60108,ie=Q?Symbol.for("react.profiler"):60114,oe=Q?Symbol.for("react.provider"):60109,ae=Q?Symbol.for("react.context"):60110,se=Q?Symbol.for("react.concurrent_mode"):60111,le=Q?Symbol.for("react.forward_ref"):60112,ce=Q?Symbol.for("react.suspense"):60113,ue=Q?Symbol.for("react.suspense_list"):60120,de=Q?Symbol.for("react.memo"):60115,he=Q?Symbol.for("react.lazy"):60116,fe=Q?Symbol.for("react.block"):60121,pe="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return me(e.type);case fe:return me(e.render);case he:if(e=1===e._status?e._result:null)return me(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=me(e.type);n=null,r&&(n=me(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ce(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function ke(e,t){Ce(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Me(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function De(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ne(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Pe="http://www.w3.org/1999/xhtml",Ie="http://www.w3.org/2000/svg";function je(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Re(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?je(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Fe,ze,Ye=(ze=function(e,t){if(e.namespaceURI!==Ie||"innerHTML"in e)e.innerHTML=t;else{for((Fe=Fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ze(e,t)}))}:ze);function Be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function He(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var qe={animationend:He("Animation","AnimationEnd"),animationiteration:He("Animation","AnimationIteration"),animationstart:He("Animation","AnimationStart"),transitionend:He("Transition","TransitionEnd")},Ue={},Ve={};function We(e){if(Ue[e])return Ue[e];if(!qe[e])return e;var t,n=qe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ve)return Ue[e]=n[t];return e}T&&(Ve=document.createElement("div").style,"AnimationEvent"in window||(delete qe.animationend.animation,delete qe.animationiteration.animation,delete qe.animationstart.animation),"TransitionEvent"in window||delete qe.transitionend.transition);var Ge=We("animationend"),$e=We("animationiteration"),Ke=We("animationstart"),Je=We("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ze=new("function"==typeof WeakMap?WeakMap:Map);function Qe(e){var t=Ze.get(e);return void 0===t&&(t=new Map,Ze.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return nt(i),e;if(o===r)return nt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function it(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function lt(e){if(null!==e&&(at=it(at,e)),e=at,at=null,e){if(ot(e,st),at)throw Error(a(95));if(u)throw e=d,u=!1,d=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ut(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var dt=[];function ht(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>dt.length&&dt.push(e)}function ft(e,t,n,r){if(dt.length){var i=dt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Nn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ct(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<x.length;l++){var c=x[l];c&&(c=c.extractEvents(r,t,o,i,a))&&(s=it(s,c))}lt(s)}}function gt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ut(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&$t(e,t)}n.set(e,null)}}var mt,vt,yt,bt=!1,wt=[],_t=null,xt=null,Et=null,Ct=new Map,kt=new Map,St=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Mt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ot(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Lt(e,t){switch(e){case"focus":case"blur":_t=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function At(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ot(t,n,r,i,o),null!==t&&(null!==(t=Pn(t))&&vt(t)),e):(e.eventSystemFlags|=r,e)}function Dt(e){var t=Nn(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;var t=Qt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Pn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function Pt(e,t,n){Nt(e)&&n.delete(t)}function It(){for(bt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=Pn(e.blockedOn))&&mt(e);break}var t=Qt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==_t&&Nt(_t)&&(_t=null),null!==xt&&Nt(xt)&&(xt=null),null!==Et&&Nt(Et)&&(Et=null),Ct.forEach(Pt),kt.forEach(Pt)}function jt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,It)))}function Rt(e){function t(t){return jt(t,e)}if(0<wt.length){jt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&jt(_t,e),null!==xt&&jt(xt,e),null!==Et&&jt(Et,e),Ct.forEach(t),kt.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)Dt(n),null===n.blockedOn&&St.shift()}var Ft={},zt=new Map,Yt=new Map,Bt=["abort","abort",Ge,"animationEnd",$e,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Je,"transitionEnd","waiting","waiting"];function Ht(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Yt.set(r,t),zt.set(r,o),Ft[i]=o}}Ht("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ht("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ht(Bt,2);for(var qt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ut=0;Ut<qt.length;Ut++)Yt.set(qt[Ut],0);var Vt=o.unstable_UserBlockingPriority,Wt=o.unstable_runWithPriority,Gt=!0;function $t(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Yt.get(t);switch(void 0===r?2:r){case 0:r=Jt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Zt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Jt(e,t,n,r){F||j();var i=Zt,o=F;F=!0;try{I(i,e,t,n,r)}finally{(F=o)||Y()}}function Xt(e,t,n,r){Wt(Vt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){if(Gt)if(0<wt.length&&-1<Tt.indexOf(e))e=Ot(null,e,t,n,r),wt.push(e);else{var i=Qt(e,t,n,r);if(null===i)Lt(e,r);else if(-1<Tt.indexOf(e))e=Ot(i,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return _t=At(_t,e,t,n,r,i),!0;case"dragenter":return xt=At(xt,e,t,n,r,i),!0;case"mouseover":return Et=At(Et,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ct.set(o,At(Ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,kt.set(o,At(kt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Lt(e,r),e=ft(e,r,null,t);try{B(pt,e)}finally{ht(e)}}}}function Qt(e,t,n,r){if(null!==(n=Nn(n=ct(r)))){var i=et(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=tt(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ft(e,r,n,t);try{B(pt,e)}finally{ht(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var on=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function sn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ln=Pe;function cn(e,t){var n=Qe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;r<t.length;r++)gt(t[r],e,n)}function un(){}function dn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function hn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fn(e,t){var n,r=hn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hn(r)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gn(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=dn((e=t.contentWindow).document)}return t}function mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vn="$",yn="/$",bn="$?",wn="$!",_n=null,xn=null;function En(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Cn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var kn="function"==typeof setTimeout?setTimeout:void 0,Sn="function"==typeof clearTimeout?clearTimeout:void 0;function Tn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Mn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===vn||n===wn||n===bn){if(0===t)return e;t--}else n===yn&&t++}e=e.previousSibling}return null}var On=Math.random().toString(36).slice(2),Ln="__reactInternalInstance$"+On,An="__reactEventHandlers$"+On,Dn="__reactContainere$"+On;function Nn(e){var t=e[Ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[Ln]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Mn(e);null!==e;){if(n=e[Ln])return n;e=Mn(e)}return t}n=(e=n).parentNode}return null}function Pn(e){return!(e=e[Ln]||e[Dn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function In(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function jn(e){return e[An]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Fn(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function zn(e,t,n){(t=Fn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Yn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)zn(n[t],"captured",e);for(t=0;t<n.length;t++)zn(n[t],"bubbled",e)}}function Bn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Fn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=it(n._dispatchListeners,t),n._dispatchInstances=it(n._dispatchInstances,e))}function Hn(e){e&&e.dispatchConfig.registrationName&&Bn(e._targetInst,null,e)}function qn(e){ot(e,Yn)}var Un=null,Vn=null,Wn=null;function Gn(){if(Wn)return Wn;var e,t,n=Vn,r=n.length,i="value"in Un?Un.value:Un.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Wn=i.slice(e,1<t?1-t:void 0)}function $n(){return!0}function Kn(){return!1}function Jn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?$n:Kn,this.isPropagationStopped=Kn,this}function Xn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Zn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Qn(e){e.eventPool=[],e.getPooled=Xn,e.release=Zn}i(Jn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=$n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=$n)},persist:function(){this.isPersistent=$n},isPersistent:Kn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Kn,this._dispatchInstances=this._dispatchListeners=null}}),Jn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Jn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Qn(n),n},Qn(Jn);var er=Jn.extend({data:null}),tr=Jn.extend({data:null}),nr=[9,13,27,32],rr=T&&"CompositionEvent"in window,ir=null;T&&"documentMode"in document&&(ir=document.documentMode);var or=T&&"TextEvent"in window&&!ir,ar=T&&(!rr||ir&&8<ir&&11>=ir),sr=String.fromCharCode(32),lr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},cr=!1;function ur(e,t){switch(e){case"keyup":return-1!==nr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function dr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var hr=!1;var fr={eventTypes:lr,extractEvents:function(e,t,n,r){var i;if(rr)e:{switch(e){case"compositionstart":var o=lr.compositionStart;break e;case"compositionend":o=lr.compositionEnd;break e;case"compositionupdate":o=lr.compositionUpdate;break e}o=void 0}else hr?ur(e,n)&&(o=lr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=lr.compositionStart);return o?(ar&&"ko"!==n.locale&&(hr||o!==lr.compositionStart?o===lr.compositionEnd&&hr&&(i=Gn()):(Vn="value"in(Un=r)?Un.value:Un.textContent,hr=!0)),o=er.getPooled(o,t,n,r),i?o.data=i:null!==(i=dr(n))&&(o.data=i),qn(o),i=o):i=null,(e=or?function(e,t){switch(e){case"compositionend":return dr(t);case"keypress":return 32!==t.which?null:(cr=!0,sr);case"textInput":return(e=t.data)===sr&&cr?null:e;default:return null}}(e,n):function(e,t){if(hr)return"compositionend"===e||!rr&&ur(e,t)?(e=Gn(),Wn=Vn=Un=null,hr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ar&&"ko"!==t.locale?null:t.data}}(e,n))?((t=tr.getPooled(lr.beforeInput,t,n,r)).data=e,qn(t)):t=null,null===i?t:null===t?i:[i,t]}},pr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!pr[e.type]:"textarea"===t}var mr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function vr(e,t,n){return(e=Jn.getPooled(mr.change,e,t,n)).type="change",D(n),qn(e),e}var yr=null,br=null;function wr(e){lt(e)}function _r(e){if(_e(In(e)))return e}function xr(e,t){if("change"===e)return t}var Er=!1;function Cr(){yr&&(yr.detachEvent("onpropertychange",kr),br=yr=null)}function kr(e){if("value"===e.propertyName&&_r(br))if(e=vr(br,e,ct(e)),F)lt(e);else{F=!0;try{P(wr,e)}finally{F=!1,Y()}}}function Sr(e,t,n){"focus"===e?(Cr(),br=n,(yr=t).attachEvent("onpropertychange",kr)):"blur"===e&&Cr()}function Tr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return _r(br)}function Mr(e,t){if("click"===e)return _r(t)}function Or(e,t){if("input"===e||"change"===e)return _r(t)}T&&(Er=ut("input")&&(!document.documentMode||9<document.documentMode));var Lr={eventTypes:mr,_isInputEventSupported:Er,extractEvents:function(e,t,n,r){var i=t?In(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=xr;else if(gr(i))if(Er)a=Or;else{a=Tr;var s=Sr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Mr);if(a&&(a=a(e,t)))return vr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},Ar=Jn.extend({view:null,detail:null}),Dr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Dr[e])&&!!t[e]}function Pr(){return Nr}var Ir=0,jr=0,Rr=!1,Fr=!1,zr=Ar.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Pr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ir;return Ir=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=jr;return jr=e.screenY,Fr?"mousemove"===e.type?e.screenY-t:0:(Fr=!0,0)}}),Yr=zr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Br={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Hr={eventTypes:Br,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Nn(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=zr,l=Br.mouseLeave,c=Br.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Yr,l=Br.pointerLeave,c=Br.pointerEnter,u="pointer");if(e=null==a?o:In(a),o=null==t?o:In(t),(l=s.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=s=r;e;e=Rn(e))a++;for(e=0,t=c;t;t=Rn(t))e++;for(;0<a-e;)s=Rn(s),a--;for(;0<e-a;)c=Rn(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=Rn(s),c=Rn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=Rn(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=Rn(u);for(u=0;u<s.length;u++)Bn(s[u],"bubbled",l);for(u=r.length;0<u--;)Bn(r[u],"captured",n);return 0==(64&i)?[l]:[l,n]}};var qr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ur=Object.prototype.hasOwnProperty;function Vr(e,t){if(qr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ur.call(t,n[r])||!qr(e[n[r]],t[n[r]]))return!1;return!0}var Wr=T&&"documentMode"in document&&11>=document.documentMode,Gr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},$r=null,Kr=null,Jr=null,Xr=!1;function Zr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Xr||null==$r||$r!==dn(n)?null:("selectionStart"in(n=$r)&&mn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Jr&&Vr(Jr,n)?null:(Jr=n,(e=Jn.getPooled(Gr.select,Kr,e,t)).type="select",e.target=$r,qn(e),e))}var Qr={eventTypes:Gr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Qe(i),o=k.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?In(t):window,e){case"focus":(gr(i)||"true"===i.contentEditable)&&($r=i,Kr=t,Jr=null);break;case"blur":Jr=Kr=$r=null;break;case"mousedown":Xr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Xr=!1,Zr(n,r);case"selectionchange":if(Wr)break;case"keydown":case"keyup":return Zr(n,r)}return null}},ei=Jn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ti=Jn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ni=Ar.extend({relatedTarget:null});function ri(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ii={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oi={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",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",224:"Meta"},ai=Ar.extend({key:function(e){if(e.key){var t=ii[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ri(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?oi[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Pr,charCode:function(e){return"keypress"===e.type?ri(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ri(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),si=zr.extend({dataTransfer:null}),li=Ar.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Pr}),ci=Jn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ui=zr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),di={eventTypes:Ft,extractEvents:function(e,t,n,r){var i=zt.get(e);if(!i)return null;switch(e){case"keypress":if(0===ri(n))return null;case"keydown":case"keyup":e=ai;break;case"blur":case"focus":e=ni;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=si;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=li;break;case Ge:case $e:case Ke:e=ei;break;case Je:e=ci;break;case"scroll":e=Ar;break;case"wheel":e=ui;break;case"copy":case"cut":case"paste":e=ti;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Yr;break;default:e=Jn}return qn(t=e.getPooled(i,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),p=jn,g=Pn,m=In,S({SimpleEventPlugin:di,EnterLeaveEventPlugin:Hr,ChangeEventPlugin:Lr,SelectEventPlugin:Qr,BeforeInputEventPlugin:fr});var hi=[],fi=-1;function pi(e){0>fi||(e.current=hi[fi],hi[fi]=null,fi--)}function gi(e,t){fi++,hi[fi]=e.current,e.current=t}var mi={},vi={current:mi},yi={current:!1},bi=mi;function wi(e,t){var n=e.type.contextTypes;if(!n)return mi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _i(e){return null!=(e=e.childContextTypes)}function xi(){pi(yi),pi(vi)}function Ei(e,t,n){if(vi.current!==mi)throw Error(a(168));gi(vi,t),gi(yi,n)}function Ci(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,me(t)||"Unknown",o));return i({},n,{},r)}function ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mi,bi=vi.current,gi(vi,e),gi(yi,yi.current),!0}function Si(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ci(e,t,bi),r.__reactInternalMemoizedMergedChildContext=e,pi(yi),pi(vi),gi(vi,e)):pi(yi),gi(yi,n)}var Ti=o.unstable_runWithPriority,Mi=o.unstable_scheduleCallback,Oi=o.unstable_cancelCallback,Li=o.unstable_requestPaint,Ai=o.unstable_now,Di=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,Pi=o.unstable_UserBlockingPriority,Ii=o.unstable_NormalPriority,ji=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,Fi={},zi=o.unstable_shouldYield,Yi=void 0!==Li?Li:function(){},Bi=null,Hi=null,qi=!1,Ui=Ai(),Vi=1e4>Ui?Ai:function(){return Ai()-Ui};function Wi(){switch(Di()){case Ni:return 99;case Pi:return 98;case Ii:return 97;case ji:return 96;case Ri:return 95;default:throw Error(a(332))}}function Gi(e){switch(e){case 99:return Ni;case 98:return Pi;case 97:return Ii;case 96:return ji;case 95:return Ri;default:throw Error(a(332))}}function $i(e,t){return e=Gi(e),Ti(e,t)}function Ki(e,t,n){return e=Gi(e),Mi(e,t,n)}function Ji(e){return null===Bi?(Bi=[e],Hi=Mi(Ni,Zi)):Bi.push(e),Fi}function Xi(){if(null!==Hi){var e=Hi;Hi=null,Oi(e)}Zi()}function Zi(){if(!qi&&null!==Bi){qi=!0;var e=0;try{var t=Bi;$i(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bi=null}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),Mi(Ni,Xi),t}finally{qi=!1}}}function Qi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function eo(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var to={current:null},no=null,ro=null,io=null;function oo(){io=ro=no=null}function ao(e){var t=to.current;pi(to),e.type._context._currentValue=t}function so(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function lo(e,t){no=e,io=ro=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(ja=!0),e.firstContext=null)}function co(e,t){if(io!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(io=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ro){if(null===no)throw Error(a(308));ro=t,no.dependencies={expirationTime:0,firstContext:t,responders:null}}else ro=ro.next=t;return e._currentValue}var uo=!1;function ho(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function fo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function po(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function go(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function mo(e,t){var n=e.alternate;null!==n&&fo(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function vo(e,t,n,r){var o=e.updateQueue;uo=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var c=o.baseState,u=0,d=null,h=null,f=null;if(null!==l)for(var p=l;;){if((s=p.expirationTime)<r){var g={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===f?(h=f=g,d=c):f=f.next=g,s>u&&(u=s)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),xl(s,p.suspenseConfig);e:{var m=e,v=p;switch(s=t,g=n,v.tag){case 1:if("function"==typeof(m=v.payload)){c=m.call(g,c,s);break e}c=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null==(s="function"==typeof(m=v.payload)?m.call(g,c,s):m))break e;c=i({},c,s);break e;case 2:uo=!0}}null!==p.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[p]:s.push(p))}if(null===(p=p.next)||p===l){if(null===(s=o.shared.pending))break;p=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}}null===f?d=c:f.next=h,o.baseState=d,o.baseQueue=f,El(u),e.expirationTime=u,e.memoizedState=c}}function yo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var bo=J.ReactCurrentBatchConfig,wo=(new r.Component).refs;function _o(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var xo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=cl(),i=bo.suspense;(i=po(r=ul(r,e,i),i)).payload=t,null!=n&&(i.callback=n),go(e,i),dl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=cl(),i=bo.suspense;(i=po(r=ul(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),go(e,i),dl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=cl(),r=bo.suspense;(r=po(n=ul(n,e,r),r)).tag=2,null!=t&&(r.callback=t),go(e,r),dl(e,n)}};function Eo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Vr(n,r)||!Vr(i,o))}function Co(e,t,n){var r=!1,i=mi,o=t.contextType;return"object"==typeof o&&null!==o?o=co(o):(i=_i(t)?bi:vi.current,o=(r=null!=(r=t.contextTypes))?wi(e,i):mi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=xo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ko(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xo.enqueueReplaceState(t,t.state,null)}function So(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=wo,ho(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=co(o):(o=_i(t)?bi:vi.current,i.context=wi(e,o)),vo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(_o(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&xo.enqueueReplaceState(i,i.state,null),vo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var To=Array.isArray;function Mo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===wo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Oo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Lo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=ql(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Wl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Mo(e,t,n),r.return=e,r):((r=Ul(n.type,n.key,n.props,null,e.mode,r)).ref=Mo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Vl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Wl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Ul(t.type,t.key,t.props,null,e.mode,n)).ref=Mo(e,null,t),n.return=e,n;case te:return(t=Gl(t,e.mode,n)).return=e,t}if(To(t)||ge(t))return(t=Vl(t,e.mode,n,null)).return=e,t;Oo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?d(e,t,n.props.children,r,i):c(e,t,n,r):null;case te:return n.key===i?u(e,t,n,r):null}if(To(n)||ge(n))return null!==i?null:d(e,t,n,r,null);Oo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,i,r.key):c(t,e,r,i);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(To(r)||ge(r))return d(t,e=e.get(n)||null,r,i,null);Oo(t,r)}return null}function g(i,a,s,l){for(var c=null,u=null,d=a,g=a=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=f(i,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===s.length)return n(i,d),c;if(null===d){for(;g<s.length;g++)null!==(d=h(i,s[g],l))&&(a=o(d,a,g),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(i,d);g<s.length;g++)null!==(m=p(d,i,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=o(m,a,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(i,e)})),c}function m(i,s,l,c){var u=ge(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=f(i,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(i,g),s=o(b,s,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return n(i,g),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=h(i,y.value,c))&&(s=o(y,s,m),null===d?u=y:d.sibling=y,d=y);return u}for(g=r(i,g);!y.done;m++,y=l.next())null!==(y=p(g,i,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=o(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(i,e)})),u}return function(e,r,o,l){var c="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(o.type===ne){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}}else if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=Mo(e,c,o),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}o.type===ne?((r=Vl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Ul(o.type,o.key,o.props,null,e.mode,l)).ref=Mo(e,r,o),l.return=e,e=l)}return s(e);case te:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Wl(o,e.mode,l)).return=e,e=r),s(e);if(To(o))return g(e,r,o,l);if(ge(o))return m(e,r,o,l);if(u&&Oo(e,o),void 0===o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ao=Lo(!0),Do=Lo(!1),No={},Po={current:No},Io={current:No},jo={current:No};function Ro(e){if(e===No)throw Error(a(174));return e}function Fo(e,t){switch(gi(jo,t),gi(Io,e),gi(Po,No),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Re(null,"");break;default:t=Re(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pi(Po),gi(Po,t)}function zo(){pi(Po),pi(Io),pi(jo)}function Yo(e){Ro(jo.current);var t=Ro(Po.current),n=Re(t,e.type);t!==n&&(gi(Io,e),gi(Po,n))}function Bo(e){Io.current===e&&(pi(Po),pi(Io))}var Ho={current:0};function qo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===bn||n.data===wn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Uo(e,t){return{responder:e,props:t}}var Vo=J.ReactCurrentDispatcher,Wo=J.ReactCurrentBatchConfig,Go=0,$o=null,Ko=null,Jo=null,Xo=!1;function Zo(){throw Error(a(321))}function Qo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qr(e[n],t[n]))return!1;return!0}function ea(e,t,n,r,i,o){if(Go=o,$o=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Vo.current=null===e||null===e.memoizedState?Ea:Ca,e=n(r,i),t.expirationTime===Go){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Jo=Ko=null,t.updateQueue=null,Vo.current=ka,e=n(r,i)}while(t.expirationTime===Go)}if(Vo.current=xa,t=null!==Ko&&null!==Ko.next,Go=0,Jo=Ko=$o=null,Xo=!1,t)throw Error(a(300));return e}function ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Jo?$o.memoizedState=Jo=e:Jo=Jo.next=e,Jo}function na(){if(null===Ko){var e=$o.alternate;e=null!==e?e.memoizedState:null}else e=Ko.next;var t=null===Jo?$o.memoizedState:Jo.next;if(null!==t)Jo=t,Ko=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ko=e).memoizedState,baseState:Ko.baseState,baseQueue:Ko.baseQueue,queue:Ko.queue,next:null},null===Jo?$o.memoizedState=Jo=e:Jo=Jo.next=e}return Jo}function ra(e,t){return"function"==typeof t?t(e):t}function ia(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ko,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,c=i;do{var u=c.expirationTime;if(u<Go){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,u>$o.expirationTime&&($o.expirationTime=u,El(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),xl(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=s,qr(r,t.memoizedState)||(ja=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function oa(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);qr(o,t.memoizedState)||(ja=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function aa(e){var t=ta();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e}).dispatch=_a.bind(null,$o,e),[t.memoizedState,e]}function sa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=$o.updateQueue)?(t={lastEffect:null},$o.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function la(){return na().memoizedState}function ca(e,t,n,r){var i=ta();$o.effectTag|=e,i.memoizedState=sa(1|t,n,void 0,void 0===r?null:r)}function ua(e,t,n,r){var i=na();r=void 0===r?null:r;var o=void 0;if(null!==Ko){var a=Ko.memoizedState;if(o=a.destroy,null!==r&&Qo(r,a.deps))return void sa(t,n,o,r)}$o.effectTag|=e,i.memoizedState=sa(1|t,n,o,r)}function da(e,t){return ca(516,4,e,t)}function ha(e,t){return ua(516,4,e,t)}function fa(e,t){return ua(4,2,e,t)}function pa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ga(e,t,n){return n=null!=n?n.concat([e]):null,ua(4,2,pa.bind(null,t,e),n)}function ma(){}function va(e,t){return ta().memoizedState=[e,void 0===t?null:t],e}function ya(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ba(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Qo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wa(e,t,n){var r=Wi();$i(98>r?98:r,(function(){e(!0)})),$i(97<r?97:r,(function(){var r=Wo.suspense;Wo.suspense=void 0===t?null:t;try{e(!1),n()}finally{Wo.suspense=r}}))}function _a(e,t,n){var r=cl(),i=bo.suspense;i={expirationTime:r=ul(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===$o||null!==o&&o===$o)Xo=!0,i.expirationTime=Go,$o.expirationTime=Go;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,qr(s,a))return}catch(e){}dl(e,r)}}var xa={readContext:co,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useResponder:Zo,useDeferredValue:Zo,useTransition:Zo},Ea={readContext:co,useCallback:va,useContext:co,useEffect:da,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ca(4,2,pa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ca(4,2,e,t)},useMemo:function(e,t){var n=ta();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ta();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=_a.bind(null,$o,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ta().memoizedState=e},useState:aa,useDebugValue:ma,useResponder:Uo,useDeferredValue:function(e,t){var n=aa(e),r=n[0],i=n[1];return da((function(){var n=Wo.suspense;Wo.suspense=void 0===t?null:t;try{i(e)}finally{Wo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=aa(!1),n=t[0];return t=t[1],[va(wa.bind(null,t,e),[t,e]),n]}},Ca={readContext:co,useCallback:ya,useContext:co,useEffect:ha,useImperativeHandle:ga,useLayoutEffect:fa,useMemo:ba,useReducer:ia,useRef:la,useState:function(){return ia(ra)},useDebugValue:ma,useResponder:Uo,useDeferredValue:function(e,t){var n=ia(ra),r=n[0],i=n[1];return ha((function(){var n=Wo.suspense;Wo.suspense=void 0===t?null:t;try{i(e)}finally{Wo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ia(ra),n=t[0];return t=t[1],[ya(wa.bind(null,t,e),[t,e]),n]}},ka={readContext:co,useCallback:ya,useContext:co,useEffect:ha,useImperativeHandle:ga,useLayoutEffect:fa,useMemo:ba,useReducer:oa,useRef:la,useState:function(){return oa(ra)},useDebugValue:ma,useResponder:Uo,useDeferredValue:function(e,t){var n=oa(ra),r=n[0],i=n[1];return ha((function(){var n=Wo.suspense;Wo.suspense=void 0===t?null:t;try{i(e)}finally{Wo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(ra),n=t[0];return t=t[1],[ya(wa.bind(null,t,e),[t,e]),n]}},Sa=null,Ta=null,Ma=!1;function Oa(e,t){var n=Bl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function La(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Aa(e){if(Ma){var t=Ta;if(t){var n=t;if(!La(e,t)){if(!(t=Tn(n.nextSibling))||!La(e,t))return e.effectTag=-1025&e.effectTag|2,Ma=!1,void(Sa=e);Oa(Sa,n)}Sa=e,Ta=Tn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ma=!1,Sa=e}}function Da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Sa=e}function Na(e){if(e!==Sa)return!1;if(!Ma)return Da(e),Ma=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Cn(t,e.memoizedProps))for(t=Ta;t;)Oa(e,t),t=Tn(t.nextSibling);if(Da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===yn){if(0===t){Ta=Tn(e.nextSibling);break e}t--}else n!==vn&&n!==wn&&n!==bn||t++}e=e.nextSibling}Ta=null}}else Ta=Sa?Tn(e.stateNode.nextSibling):null;return!0}function Pa(){Ta=Sa=null,Ma=!1}var Ia=J.ReactCurrentOwner,ja=!1;function Ra(e,t,n,r){t.child=null===e?Do(t,null,n,r):Ao(t,e.child,n,r)}function Fa(e,t,n,r,i){n=n.render;var o=t.ref;return lo(t,i),r=ea(e,t,n,r,o,i),null===e||ja?(t.effectTag|=1,Ra(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),ts(e,t,i))}function za(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Hl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ul(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ya(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(i,r)&&e.ref===t.ref)?ts(e,t,o):(t.effectTag|=1,(e=ql(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ya(e,t,n,r,i,o){return null!==e&&Vr(e.memoizedProps,r)&&e.ref===t.ref&&(ja=!1,i<o)?(t.expirationTime=e.expirationTime,ts(e,t,o)):Ha(e,t,n,r,o)}function Ba(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ha(e,t,n,r,i){var o=_i(n)?bi:vi.current;return o=wi(t,o),lo(t,i),n=ea(e,t,n,r,o,i),null===e||ja?(t.effectTag|=1,Ra(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),ts(e,t,i))}function qa(e,t,n,r,i){if(_i(n)){var o=!0;ki(t)}else o=!1;if(lo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Co(t,n,r),So(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=co(c):c=wi(t,c=_i(n)?bi:vi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ko(t,a,r,c),uo=!1;var h=t.memoizedState;a.state=h,vo(t,r,a,i),l=t.memoizedState,s!==r||h!==l||yi.current||uo?("function"==typeof u&&(_o(t,n,u,r),l=t.memoizedState),(s=uo||Eo(t,n,s,r,h,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,fo(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:eo(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=co(c):c=wi(t,c=_i(n)?bi:vi.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ko(t,a,r,c),uo=!1,l=t.memoizedState,a.state=l,vo(t,r,a,i),h=t.memoizedState,s!==r||l!==h||yi.current||uo?("function"==typeof u&&(_o(t,n,u,r),h=t.memoizedState),(u=uo||Eo(t,n,s,r,l,h,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ua(e,t,n,r,o,i)}function Ua(e,t,n,r,i,o){Ba(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&Si(t,n,!1),ts(e,t,o);r=t.stateNode,Ia.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Ao(t,e.child,null,o),t.child=Ao(t,null,s,o)):Ra(e,t,s,o),t.memoizedState=r.state,i&&Si(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?Ei(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ei(0,t.context,!1),Fo(e,t.containerInfo)}var Wa,Ga,$a,Ka,Ja={dehydrated:null,retryTime:0};function Xa(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Ho.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),gi(Ho,1&a),null===e){if(void 0!==o.fallback&&Aa(t),s){if(s=o.fallback,(o=Vl(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Vl(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ja,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Do(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=ql(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=ql(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ja,t.child=n,i}return n=Ao(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Vl(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Vl(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ja,t.child=o,n}return t.memoizedState=null,t.child=Ao(t,e,o.children,n)}function Za(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),so(e.return,t)}function Qa(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function es(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(e,t,r.children,n),0!=(2&(r=Ho.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gi(Ho,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===qo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Qa(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===qo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Qa(t,!0,n,null,o,t.lastEffect);break;case"together":Qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ts(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&El(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=ql(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=ql(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ns(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rs(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return _i(t.type)&&xi(),null;case 3:return zo(),pi(yi),pi(vi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Na(t)||(t.effectTag|=4),Ga(t),null;case 5:Bo(t),n=Ro(jo.current);var o=t.type;if(null!==e&&null!=t.stateNode)$a(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ro(Po.current),Na(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Ln]=t,r[An]=s,o){case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)$t(Xe[e],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"form":$t("reset",r),$t("submit",r);break;case"details":$t("toggle",r);break;case"input":Ee(r,s),$t("invalid",r),cn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},$t("invalid",r),cn(n,"onChange");break;case"textarea":Ae(r,s),$t("invalid",r),cn(n,"onChange")}for(var l in an(o,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):C.hasOwnProperty(l)&&null!=c&&cn(n,l)}switch(o){case"input":we(r),Se(r,s,!0);break;case"textarea":we(r),Ne(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=un)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===ln&&(e=je(o)),e===ln?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(o,{is:r.is}):(e=l.createElement(o),"select"===o&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,o),e[Ln]=t,e[An]=r,Wa(e,t,!1,!1),t.stateNode=e,l=sn(o,r),o){case"iframe":case"object":case"embed":$t("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)$t(Xe[c],e);c=r;break;case"source":$t("error",e),c=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),c=r;break;case"form":$t("reset",e),$t("submit",e),c=r;break;case"details":$t("toggle",e),c=r;break;case"input":Ee(e,r),c=xe(e,r),$t("invalid",e),cn(n,"onChange");break;case"option":c=Me(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),$t("invalid",e),cn(n,"onChange");break;case"textarea":Ae(e,r),c=Le(e,r),$t("invalid",e),cn(n,"onChange");break;default:c=r}an(o,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?rn(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Ye(e,d):"children"===s?"string"==typeof d?("textarea"!==o||""!==d)&&Be(e,d):"number"==typeof d&&Be(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(C.hasOwnProperty(s)?null!=d&&cn(n,s):null!=d&&X(e,s,d,l))}switch(o){case"input":we(e),Se(e,r,!1);break;case"textarea":we(e),Ne(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Oe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=un)}En(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ro(jo.current),Ro(Po.current),Na(t)?(n=t.stateNode,r=t.memoizedProps,n[Ln]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Ln]=t,t.stateNode=n)}return null;case 13:return pi(Ho),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Na(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ho.current)?qs===Ns&&(qs=js):(qs!==Ns&&qs!==js||(qs=Rs),0!==$s&&null!==Ys&&(Jl(Ys,Hs),Xl(Ys,$s)))),(n||r)&&(t.effectTag|=4),null);case 4:return zo(),Ga(t),null;case 10:return ao(t),null;case 19:if(pi(Ho),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)ns(r,!1);else if(qs!==Ns||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=qo(s))){for(t.effectTag|=64,ns(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return gi(Ho,1&Ho.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=qo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),ns(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,ns(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Vi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vi(),n.sibling=null,t=Ho.current,gi(Ho,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function is(e){switch(e.tag){case 1:_i(e.type)&&xi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(zo(),pi(yi),pi(vi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Bo(e),null;case 13:return pi(Ho),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return pi(Ho),null;case 4:return zo(),null;case 10:return ao(e),null;default:return null}}function os(e,t){return{value:e,source:t,stack:ve(t)}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ga=function(){},$a=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,l,c=t.stateNode;switch(Ro(Po.current),e=null,n){case"input":a=xe(c,a),r=xe(c,r),e=[];break;case"option":a=Me(c,a),r=Me(c,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Le(c,a),r=Le(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=un)}for(s in an(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(C.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(C.hasOwnProperty(s)?(null!=u&&cn(o,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Ka=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var as="function"==typeof WeakSet?WeakSet:Set;function ss(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ls(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Il(e,t)}else t.current=null}function cs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:eo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function us(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ds(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ds(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:eo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&yo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}yo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&En(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Rt(n)))))}throw Error(a(163))}function fs(e,t,n){switch("function"==typeof zl&&zl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;$i(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){Il(i,e)}}e=e.next}while(e!==r)}))}break;case 1:ls(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Il(e,t)}}(t,n);break;case 5:ls(t);break;case 4:bs(e,t,n)}}function ps(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ps(t)}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function ms(e){e:{for(var t=e.return;null!==t;){if(gs(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Be(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?vs(e,n,t):ys(e,n,t)}function vs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=un));else if(4!==r&&null!==(e=e.child))for(vs(e,t,n),e=e.sibling;null!==e;)vs(e,t,n),e=e.sibling}function ys(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ys(e,t,n),e=e.sibling;null!==e;)ys(e,t,n),e=e.sibling}function bs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,c=o,u=n,d=c;;)if(fs(l,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(l=r,c=o.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(fs(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void us(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[An]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ce(n,r),sn(e,i),t=sn(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?rn(n,l):"dangerouslySetInnerHTML"===s?Ye(n,l):"children"===s?Be(n,l):X(n,s,l,t)}switch(e){case"input":ke(n,r);break;case"textarea":De(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Oe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Oe(n,!!r.multiple,r.defaultValue,!0):Oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Rt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Js=Vi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=nn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void _s(t);case 19:return void _s(t)}throw Error(a(163))}function _s(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new as),t.forEach((function(t){var r=Rl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var xs="function"==typeof WeakMap?WeakMap:Map;function Es(e,t,n){(n=po(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qs||(Qs=!0,el=r),ss(e,t)},n}function Cs(e,t,n){(n=po(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ss(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===tl?tl=new Set([this]):tl.add(this),ss(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var ks,Ss=Math.ceil,Ts=J.ReactCurrentDispatcher,Ms=J.ReactCurrentOwner,Os=0,Ls=8,As=16,Ds=32,Ns=0,Ps=1,Is=2,js=3,Rs=4,Fs=5,zs=Os,Ys=null,Bs=null,Hs=0,qs=Ns,Us=null,Vs=1073741823,Ws=1073741823,Gs=null,$s=0,Ks=!1,Js=0,Xs=500,Zs=null,Qs=!1,el=null,tl=null,nl=!1,rl=null,il=90,ol=null,al=0,sl=null,ll=0;function cl(){return(zs&(As|Ds))!==Os?1073741821-(Vi()/10|0):0!==ll?ll:ll=1073741821-(Vi()/10|0)}function ul(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Wi();if(0==(4&t))return 99===r?1073741823:1073741822;if((zs&As)!==Os)return Hs;if(null!==n)e=Qi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Qi(e,150,100);break;case 97:case 96:e=Qi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Ys&&e===Hs&&--e,e}function dl(e,t){if(50<al)throw al=0,sl=null,Error(a(185));if(null!==(e=hl(e,t))){var n=Wi();1073741823===t?(zs&Ls)!==Os&&(zs&(As|Ds))===Os?ml(e):(pl(e),zs===Os&&Xi()):pl(e),(4&zs)===Os||98!==n&&99!==n||(null===ol?ol=new Map([[e,t]]):(void 0===(n=ol.get(e))||n>t)&&ol.set(e,t))}}function hl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ys===i&&(El(t),qs===Rs&&Jl(i,Hs)),Xl(i,t)),i}function fl(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Kl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function pl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ji(ml.bind(null,e));else{var t=fl(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=cl();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Fi&&Oi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Ji(ml.bind(null,e)):Ki(r,gl.bind(null,e),{timeout:10*(1073741821-t)-Vi()}),e.callbackNode=t}}}function gl(e,t){if(ll=0,t)return Zl(e,t=cl()),pl(e),null;var n=fl(e);if(0!==n){if(t=e.callbackNode,(zs&(As|Ds))!==Os)throw Error(a(327));if(Dl(),e===Ys&&n===Hs||bl(e,n),null!==Bs){var r=zs;zs|=As;for(var i=_l();;)try{kl();break}catch(t){wl(e,t)}if(oo(),zs=r,Ts.current=i,qs===Ps)throw t=Us,bl(e,n),Jl(e,n),pl(e),t;if(null===Bs)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=qs,Ys=null,r){case Ns:case Ps:throw Error(a(345));case Is:Zl(e,2<n?2:n);break;case js:if(Jl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ml(i)),1073741823===Vs&&10<(i=Js+Xs-Vi())){if(Ks){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,bl(e,n);break}}if(0!==(o=fl(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=kn(Ol.bind(null,e),i);break}Ol(e);break;case Rs:if(Jl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ml(i)),Ks&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,bl(e,n);break}if(0!==(i=fl(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ws?r=10*(1073741821-Ws)-Vi():1073741823===Vs?r=0:(r=10*(1073741821-Vs)-5e3,0>(r=(i=Vi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ss(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=kn(Ol.bind(null,e),r);break}Ol(e);break;case Fs:if(1073741823!==Vs&&null!==Gs){o=Vs;var s=Gs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Vi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Jl(e,n),e.timeoutHandle=kn(Ol.bind(null,e),r);break}}Ol(e);break;default:throw Error(a(329))}if(pl(e),e.callbackNode===t)return gl.bind(null,e)}}return null}function ml(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(zs&(As|Ds))!==Os)throw Error(a(327));if(Dl(),e===Ys&&t===Hs||bl(e,t),null!==Bs){var n=zs;zs|=As;for(var r=_l();;)try{Cl();break}catch(t){wl(e,t)}if(oo(),zs=n,Ts.current=r,qs===Ps)throw n=Us,bl(e,t),Jl(e,t),pl(e),n;if(null!==Bs)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ys=null,Ol(e),pl(e)}return null}function vl(e,t){var n=zs;zs|=1;try{return e(t)}finally{(zs=n)===Os&&Xi()}}function yl(e,t){var n=zs;zs&=-2,zs|=Ls;try{return e(t)}finally{(zs=n)===Os&&Xi()}}function bl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Sn(n)),null!==Bs)for(n=Bs.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&xi();break;case 3:zo(),pi(yi),pi(vi);break;case 5:Bo(r);break;case 4:zo();break;case 13:case 19:pi(Ho);break;case 10:ao(r)}n=n.return}Ys=e,Bs=ql(e.current,null),Hs=t,qs=Ns,Us=null,Ws=Vs=1073741823,Gs=null,$s=0,Ks=!1}function wl(e,t){for(;;){try{if(oo(),Vo.current=xa,Xo)for(var n=$o.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Go=0,Jo=Ko=$o=null,Xo=!1,null===Bs||null===Bs.return)return qs=Ps,Us=t,Bs=null;e:{var i=e,o=Bs.return,a=Bs,s=t;if(t=Hs,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&Ho.current),d=o;do{var h;if(h=13===d.tag){var f=d.memoizedState;if(null!==f)h=null!==f.dehydrated;else{var p=d.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!u)}}if(h){var g=d.updateQueue;if(null===g){var m=new Set;m.add(l),d.updateQueue=m}else g.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=po(1073741823,null);v.tag=2,go(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new xs,s=new Set,y.set(l,s)):void 0===(s=y.get(l))&&(s=new Set,y.set(l,s)),!s.has(a)){s.add(a);var b=jl.bind(null,i,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((me(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}qs!==Fs&&(qs=Is),s=os(s,a),d=o;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,mo(d,Es(d,l,t));break e;case 1:l=s;var w=d.type,_=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===tl||!tl.has(_)))){d.effectTag|=4096,d.expirationTime=t,mo(d,Cs(d,l,t));break e}}d=d.return}while(null!==d)}Bs=Tl(Bs)}catch(e){t=e;continue}break}}function _l(){var e=Ts.current;return Ts.current=xa,null===e?xa:e}function xl(e,t){e<Vs&&2<e&&(Vs=e),null!==t&&e<Ws&&2<e&&(Ws=e,Gs=t)}function El(e){e>$s&&($s=e)}function Cl(){for(;null!==Bs;)Bs=Sl(Bs)}function kl(){for(;null!==Bs&&!zi();)Bs=Sl(Bs)}function Sl(e){var t=ks(e.alternate,e,Hs);return e.memoizedProps=e.pendingProps,null===t&&(t=Tl(e)),Ms.current=null,t}function Tl(e){Bs=e;do{var t=Bs.alternate;if(e=Bs.return,0==(2048&Bs.effectTag)){if(t=rs(t,Bs,Hs),1===Hs||1!==Bs.childExpirationTime){for(var n=0,r=Bs.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Bs.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Bs.firstEffect),null!==Bs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Bs.firstEffect),e.lastEffect=Bs.lastEffect),1<Bs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Bs:e.firstEffect=Bs,e.lastEffect=Bs))}else{if(null!==(t=is(Bs)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Bs.sibling))return t;Bs=e}while(null!==Bs);return qs===Ns&&(qs=Fs),null}function Ml(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Ol(e){var t=Wi();return $i(99,Ll.bind(null,e,t)),null}function Ll(e,t){do{Dl()}while(null!==rl);if((zs&(As|Ds))!==Os)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Ml(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ys&&(Bs=Ys=null,Hs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=zs;zs|=Ds,Ms.current=null,_n=Gt;var s=gn();if(mn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var h=0,f=-1,p=-1,g=0,m=0,v=s,y=null;t:for(;;){for(var b;v!==l||0!==u&&3!==v.nodeType||(f=h+u),v!==d||0!==c&&3!==v.nodeType||(p=h+c),3===v.nodeType&&(h+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===l&&++g===u&&(f=h),y===d&&++m===c&&(p=h),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===f||-1===p?null:{start:f,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;xn={activeElementDetached:null,focusedElem:s,selectionRange:l},Gt=!1,Zs=i;do{try{Al()}catch(e){if(null===Zs)throw Error(a(330));Il(Zs,e),Zs=Zs.nextEffect}}while(null!==Zs);Zs=i;do{try{for(s=e,l=t;null!==Zs;){var w=Zs.effectTag;if(16&w&&Be(Zs.stateNode,""),128&w){var _=Zs.alternate;if(null!==_){var x=_.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&w){case 2:ms(Zs),Zs.effectTag&=-3;break;case 6:ms(Zs),Zs.effectTag&=-3,ws(Zs.alternate,Zs);break;case 1024:Zs.effectTag&=-1025;break;case 1028:Zs.effectTag&=-1025,ws(Zs.alternate,Zs);break;case 4:ws(Zs.alternate,Zs);break;case 8:bs(s,u=Zs,l),ps(u)}Zs=Zs.nextEffect}}catch(e){if(null===Zs)throw Error(a(330));Il(Zs,e),Zs=Zs.nextEffect}}while(null!==Zs);if(x=xn,_=gn(),w=x.focusedElem,l=x.selectionRange,_!==w&&w&&w.ownerDocument&&pn(w.ownerDocument.documentElement,w)){null!==l&&mn(w)&&(_=l.start,void 0===(x=l.end)&&(x=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(x,w.value.length)):(x=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(x=x.getSelection(),u=w.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!x.extend&&s>l&&(u=l,l=s,s=u),u=fn(w,s),d=fn(w,l),u&&d&&(1!==x.rangeCount||x.anchorNode!==u.node||x.anchorOffset!==u.offset||x.focusNode!==d.node||x.focusOffset!==d.offset)&&((_=_.createRange()).setStart(u.node,u.offset),x.removeAllRanges(),s>l?(x.addRange(_),x.extend(d.node,d.offset)):(_.setEnd(d.node,d.offset),x.addRange(_))))),_=[];for(x=w;x=x.parentNode;)1===x.nodeType&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(x=_[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Gt=!!_n,xn=_n=null,e.current=n,Zs=i;do{try{for(w=e;null!==Zs;){var E=Zs.effectTag;if(36&E&&hs(w,Zs.alternate,Zs),128&E){_=void 0;var C=Zs.ref;if(null!==C){var k=Zs.stateNode;Zs.tag,_=k,"function"==typeof C?C(_):C.current=_}}Zs=Zs.nextEffect}}catch(e){if(null===Zs)throw Error(a(330));Il(Zs,e),Zs=Zs.nextEffect}}while(null!==Zs);Zs=null,Yi(),zs=o}else e.current=n;if(nl)nl=!1,rl=e,il=t;else for(Zs=i;null!==Zs;)t=Zs.nextEffect,Zs.nextEffect=null,Zs=t;if(0===(t=e.firstPendingTime)&&(tl=null),1073741823===t?e===sl?al++:(al=0,sl=e):al=0,"function"==typeof Fl&&Fl(n.stateNode,r),pl(e),Qs)throw Qs=!1,e=el,el=null,e;return(zs&Ls)!==Os||Xi(),null}function Al(){for(;null!==Zs;){var e=Zs.effectTag;0!=(256&e)&&cs(Zs.alternate,Zs),0==(512&e)||nl||(nl=!0,Ki(97,(function(){return Dl(),null}))),Zs=Zs.nextEffect}}function Dl(){if(90!==il){var e=97<il?97:il;return il=90,$i(e,Nl)}}function Nl(){if(null===rl)return!1;var e=rl;if(rl=null,(zs&(As|Ds))!==Os)throw Error(a(331));var t=zs;for(zs|=Ds,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:us(5,n),ds(5,n)}}catch(t){if(null===e)throw Error(a(330));Il(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return zs=t,Xi(),!0}function Pl(e,t,n){go(e,t=Es(e,t=os(n,t),1073741823)),null!==(e=hl(e,1073741823))&&pl(e)}function Il(e,t){if(3===e.tag)Pl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Pl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===tl||!tl.has(r))){go(n,e=Cs(n,e=os(t,e),1073741823)),null!==(n=hl(n,1073741823))&&pl(n);break}}n=n.return}}function jl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ys===e&&Hs===n?qs===Rs||qs===js&&1073741823===Vs&&Vi()-Js<Xs?bl(e,Hs):Ks=!0:Kl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,pl(e)))}function Rl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=ul(t=cl(),e,null)),null!==(e=hl(e,t))&&pl(e)}ks=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||yi.current)ja=!0;else{if(r<n){switch(ja=!1,t.tag){case 3:Va(t),Pa();break;case 5:if(Yo(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:_i(t.type)&&ki(t);break;case 4:Fo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,gi(to,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Xa(e,t,n):(gi(Ho,1&Ho.current),null!==(t=ts(e,t,n))?t.sibling:null);gi(Ho,1&Ho.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return es(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),gi(Ho,Ho.current),!r)return null}return ts(e,t,n)}ja=!1}}else ja=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=wi(t,vi.current),lo(t,n),i=ea(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,_i(r)){var o=!0;ki(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ho(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&_o(t,r,s,e),i.updater=xo,t.stateNode=i,i._reactInternalFiber=t,So(t,r,e,n),t=Ua(null,t,r,!0,o,n)}else t.tag=0,Ra(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Hl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===de)return 14}return 2}(i),e=eo(i,e),o){case 0:t=Ha(null,t,i,e,n);break e;case 1:t=qa(null,t,i,e,n);break e;case 11:t=Fa(null,t,i,e,n);break e;case 14:t=za(null,t,i,eo(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ha(e,t,r,i=t.elementType===r?i:eo(r,i),n);case 1:return r=t.type,i=t.pendingProps,qa(e,t,r,i=t.elementType===r?i:eo(r,i),n);case 3:if(Va(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,fo(e,t),vo(t,r,null,n),(r=t.memoizedState.element)===i)Pa(),t=ts(e,t,n);else{if((i=t.stateNode.hydrate)&&(Ta=Tn(t.stateNode.containerInfo.firstChild),Sa=t,i=Ma=!0),i)for(n=Do(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ra(e,t,r,n),Pa();t=t.child}return t;case 5:return Yo(t),null===e&&Aa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Cn(r,i)?s=null:null!==o&&Cn(r,o)&&(t.effectTag|=16),Ba(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ra(e,t,s,n),t=t.child),t;case 6:return null===e&&Aa(t),null;case 13:return Xa(e,t,n);case 4:return Fo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ao(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Fa(e,t,r,i=t.elementType===r?i:eo(r,i),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(gi(to,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=qr(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!yi.current){t=ts(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===l.tag&&((u=po(n,null)).tag=2,go(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),so(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Ra(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,lo(t,n),r=r(i=co(i,o.unstable_observedBits)),t.effectTag|=1,Ra(e,t,r,n),t.child;case 14:return o=eo(i=t.type,t.pendingProps),za(e,t,i,o=eo(i.type,o),r,n);case 15:return Ya(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:eo(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,_i(r)?(e=!0,ki(t)):e=!1,lo(t,n),Co(t,r,i),So(t,r,i,n),Ua(null,t,r,!0,e,n);case 19:return es(e,t,n)}throw Error(a(156,t.tag))};var Fl=null,zl=null;function Yl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Bl(e,t,n,r){return new Yl(e,t,n,r)}function Hl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ql(e,t){var n=e.alternate;return null===n?((n=Bl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ul(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Hl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Vl(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=Bl(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case ce:return(e=Bl(13,n,t,i)).type=ce,e.elementType=ce,e.expirationTime=o,e;case ue:return(e=Bl(19,n,t,i)).elementType=ue,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case le:s=11;break e;case de:s=14;break e;case he:s=16,r=null;break e;case fe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bl(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Vl(e,t,n,r){return(e=Bl(7,e,r,t)).expirationTime=n,e}function Wl(e,t,n){return(e=Bl(6,e,null,t)).expirationTime=n,e}function Gl(e,t,n){return(t=Bl(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $l(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Kl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Jl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Xl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Zl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ql(e,t,n,r){var i=t.current,o=cl(),s=bo.suspense;o=ul(o,i,s);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(_i(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(_i(c)){n=Ci(n,c,l);break e}}n=l}else n=mi;return null===t.context?t.context=n:t.pendingContext=n,(t=po(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),go(i,t),dl(i,o),o}function ec(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function nc(e,t){tc(e,t),(e=e.alternate)&&tc(e,t)}function rc(e,t,n){var r=new $l(e,t,n=null!=n&&!0===n.hydrate),i=Bl(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,ho(i),e[Dn]=r.current,n&&0!==t&&function(e,t){var n=Qe(t);Tt.forEach((function(e){gt(e,t,n)})),Mt.forEach((function(e){gt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function oc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=ec(a);s.call(e)}}Ql(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=ec(a);l.call(e)}}yl((function(){Ql(t,a,e,i)}))}return ec(a)}function ac(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}rc.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},rc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,(function(){t[Dn]=null}))},mt=function(e){if(13===e.tag){var t=Qi(cl(),150,100);dl(e,t),nc(e,t)}},vt=function(e){13===e.tag&&(dl(e,3),nc(e,3))},yt=function(e){if(13===e.tag){var t=cl();dl(e,t=ul(t,e,null)),nc(e,t)}},M=function(e,t,n){switch(t){case"input":if(ke(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=jn(r);if(!i)throw Error(a(90));_e(r),ke(r,i)}}}break;case"textarea":De(e,n);break;case"select":null!=(t=n.value)&&Oe(e,!!n.multiple,t,!1)}},P=vl,I=function(e,t,n,r,i){var o=zs;zs|=4;try{return $i(98,e.bind(null,t,n,r,i))}finally{(zs=o)===Os&&Xi()}},j=function(){(zs&(1|As|Ds))===Os&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e,t){Zl(t,e),pl(t)})),Xi()}}(),Dl())},R=function(e,t){var n=zs;zs|=2;try{return e(t)}finally{(zs=n)===Os&&Xi()}};var sc={Events:[Pn,In,jn,S,E,qn,function(e){ot(e,Hn)},D,N,Zt,lt,Dl,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Fl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},zl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Nn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sc,t.createPortal=ac,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if((zs&(As|Ds))!==Os)throw Error(a(187));var n=zs;zs|=1;try{return $i(99,e.bind(null,t))}finally{zs=n,Xi()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return oc(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return oc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(yl((function(){oc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Dn]=null}))})),!0)},t.unstable_batchedUpdates=vl,t.unstable_createPortal=function(e,t){return ac(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return oc(e,t,n,!1,r)},t.version="16.14.0"},73935:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(64448)},69921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function x(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return x(e)||_(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===h},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},59864:function(e,t,n){"use strict";e.exports=n(69921)},72408:function(e,t,n){"use strict";var r=n(27418),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,f=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,g=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function _(){}function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var E=x.prototype=new _;E.constructor=x,r(E,w.prototype),E.isPureReactComponent=!0;var C={current:null},k=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)k.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:C.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var O=/\/+/g,L=[];function A(e,t,n,r){if(L.length){var i=L.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function D(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function N(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var s=!1;if(null===e)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case a:s=!0}}if(s)return n(r,e,""===t?"."+I(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=t+I(i=e[l],l);s+=N(i,c,n,r)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=m&&e[m]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),l=0;!(i=e.next()).done;)s+=N(i=i.value,c=t+I(i,l++),n,r);else if("object"===i)throw n=""+e,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return s}function P(e,t,n){return null==e?0:N(e,"",t,n)}function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function j(e,t){e.func.call(e.context,t,e.count++)}function R(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(O,"$&/")+"/"),P(e,R,t=A(t,o,r,i)),D(t)}var z={current:null};function Y(){var e=z.current;if(null===e)throw Error(v(321));return e}var B={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;P(e,j,t=A(null,null,t,n)),D(t)},count:function(e){return P(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!M(e))throw Error(v(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=c,t.PureComponent=x,t.StrictMode=l,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)k.call(t,u)&&!S.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=M,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return Y().useCallback(e,t)},t.useContext=function(e,t){return Y().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return Y().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return Y().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return Y().useLayoutEffect(e,t)},t.useMemo=function(e,t){return Y().useMemo(e,t)},t.useReducer=function(e,t,n){return Y().useReducer(e,t,n)},t.useRef=function(e){return Y().useRef(e)},t.useState=function(e){return Y().useState(e)},t.version="16.14.0"},67294:function(e,t,n){"use strict";e.exports=n(72408)},35666:function(e){var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.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 c(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new M(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return L()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?p:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={};function m(){}function v(){}function y(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==n&&r.call(_,o)&&(b=_);var x=y.prototype=m.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.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,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.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 T(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 O(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:L}}function L(){return{value:t,done:!0}}return v.prototype=x.constructor=y,y.constructor=v,v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},E(C.prototype),C.prototype[a]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(x),l(x,s,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,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(T),!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 o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.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 o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):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),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),T(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;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}},60053:function(e,t){"use strict";var n,r,i,o,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,l=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},o=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,f=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var m=h.now();t.unstable_now=function(){return h.now()-m}}var v=!1,y=null,b=-1,w=5,_=0;o=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,E=x.port2;x.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();_=e+w;try{y(!0,e)?E.postMessage(null):(v=!1,y=null)}catch(e){throw E.postMessage(null),e}}else v=!1},n=function(e){y=e,v||(v=!0,E.postMessage(null))},r=function(e,n){b=f((function(){e(t.unstable_now())}),n)},i=function(){p(b),b=-1}}function C(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function k(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>T(a,n))void 0!==l&&0>T(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var M=[],O=[],L=1,A=null,D=3,N=!1,P=!1,I=!1;function j(e){for(var t=k(O);null!==t;){if(null===t.callback)S(O);else{if(!(t.startTime<=e))break;S(O),t.sortIndex=t.expirationTime,C(M,t)}t=k(O)}}function R(e){if(I=!1,j(e),!P)if(null!==k(M))P=!0,n(F);else{var t=k(O);null!==t&&r(R,t.startTime-e)}}function F(e,n){P=!1,I&&(I=!1,i()),N=!0;var a=D;try{for(j(n),A=k(M);null!==A&&(!(A.expirationTime>n)||e&&!o());){var s=A.callback;if(null!==s){A.callback=null,D=A.priorityLevel;var l=s(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?A.callback=l:A===k(M)&&S(M),j(n)}else S(M);A=k(M)}if(null!==A)var c=!0;else{var u=k(O);null!==u&&r(R,u.startTime-n),c=!1}return c}finally{A=null,D=a,N=!1}}function z(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var Y=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){P||N||(P=!0,n(F))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return k(M)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=Y,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:z(e)}else a=z(e),l=s;return e={id:L++,callback:o,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,C(O,e),null===k(M)&&e===k(O)&&(I?i():I=!0,r(R,l-s))):(e.sortIndex=a,C(M,e),P||N||(P=!0,n(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();j(e);var n=k(M);return n!==A&&null!==A&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<A.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},63840:function(e,t,n){"use strict";e.exports=n(60053)},96774:function(e){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 o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},37478:function(e,t,n){"use strict";var r=n(40210),i=n(21924),o=n(70631),a=r("%TypeError%"),s=r("%WeakMap%",!0),l=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),g=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return c(e,r)}else if(l){if(t)return h(t,r)}else if(n)return function(e,t){var n=g(e,t);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(e)return d(e,r)}else if(l){if(t)return p(t,r)}else if(n)return function(e,t){return!!g(e,t)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new s),u(e,r,i)):l?(t||(t=new l),f(t,r,i)):(n||(n={key:{},next:null}),function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}}(n,r,i))}};return r}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},57147:function(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:function(){return _},Headers:function(){return u},Request:function(){return v},Response:function(){return b},fetch:function(){return x}});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,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 o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&o.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 l(e){return"string"!=typeof e&&(e=String(e)),e}function c(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){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function f(e){var t=new FileReader,n=h(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;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),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=p(e):this._bodyText=e=Object.prototype.toString.call(e):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=d(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=d(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))}return this.blob().then(f)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),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}u.prototype.append=function(e,t){e=s(e),t=l(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)]=l(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)})),c(e)},u.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},u.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},i.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];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,r,i=(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,i||null==e._bodyInit||(i=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",r=n.toUpperCase(),m.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))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 b(e,t){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,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(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];b.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})};var _=r.DOMException;try{new _}catch(e){(_=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),_.prototype.constructor=_}function x(e,t){return new Promise((function(n,o){var a=new v(e,t);if(a.signal&&a.signal.aborted)return o(new _("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new u,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();t.append(r,i)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){n(new b(i,r))}),0)},s.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){o(new _("Aborted","AbortError"))}),0)},s.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i.blob?s.responseType="blob":i.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof u?a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){s.setRequestHeader(e,l(t.headers[e]))})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}x.polyfill=!0,r.fetch||(r.fetch=x,r.Headers=u,r.Request=v,r.Response=b)},64913:function(e,t,n){const r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g;if(void 0===r.AbortController){const e={};r.AbortSignal=function(){function t(t){if(t!==e)throw new TypeError("Illegal constructor.");EventTarget.call(this),this._aborted=!1}return t.prototype=Object.create(EventTarget.prototype),t.prototype.constructor=t,Object.defineProperty(t.prototype,"onabort",{get:function(){return this._onabort},set:function(e){const t=this._onabort;t&&this.removeEventListener("abort",t),this._onabort=e,this.addEventListener("abort",e)}}),Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t}(),r.AbortController=function(){function t(){this._signal=new AbortSignal(e)}return t.prototype=Object.create(Object.prototype),Object.defineProperty(t.prototype,"signal",{get:function(){return this._signal}}),t.prototype.abort=function(){const e=this.signal;e.aborted||(e._aborted=!0,e.dispatchEvent(new Event("abort")))},t}()}},96771:function(){},24654:function(){}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdO={},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var __webpack_exports__={};return function(){"use strict";__webpack_require__.d(__webpack_exports__,{default:function(){return xre}});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{async:function(){return CA},block:function(){return pA},circle:function(){return SA},circlePlus:function(){return TA},classic:function(){return gA},cross:function(){return xA},diamond:function(){return yA},ellipse:function(){return OA},path:function(){return wA}});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{annotations:function(){return eA},atConnectionLength:function(){return qA},atConnectionLengthIgnoreGradient:function(){return YA},atConnectionLengthKeepGradient:function(){return zA},atConnectionRatio:function(){return UA},atConnectionRatioIgnoreGradient:function(){return HA},atConnectionRatioKeepGradient:function(){return BA},connection:function(){return FA},displayEmpty:function(){return nA},eol:function(){return tA},fill:function(){return WL},filter:function(){return uA},html:function(){return cA},lineHeight:function(){return XL},port:function(){return dA},ref:function(){return vL},refCx:function(){return ML},refCy:function(){return OL},refD:function(){return IL},refDKeepOffset:function(){return AL},refDResetOffset:function(){return LL},refDx:function(){return wL},refDy:function(){return _L},refHeight:function(){return EL},refHeight2:function(){return YL},refPoints:function(){return jL},refPointsKeepOffset:function(){return NL},refPointsResetOffset:function(){return DL},refR:function(){return PL},refRCircumscribed:function(){return TL},refRInscribed:function(){return SL},refRx:function(){return CL},refRy:function(){return kL},refWidth:function(){return xL},refWidth2:function(){return zL},refX:function(){return yL},refX2:function(){return RL},refY:function(){return bL},refY2:function(){return FL},resetOffset:function(){return aA},sourceMarker:function(){return NA},stroke:function(){return GL},style:function(){return lA},targetMarker:function(){return PA},text:function(){return $L},textPath:function(){return QL},textVerticalAnchor:function(){return ZL},textWrap:function(){return KL},title:function(){return rA},vertexMarker:function(){return IA},xAlign:function(){return iA},yAlign:function(){return oA}});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{dot:function(){return GA},doubleMesh:function(){return JA},fixedDot:function(){return $A},mesh:function(){return KA}});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{blur:function(){return nD},brightness:function(){return cD},contrast:function(){return uD},dropShadow:function(){return rD},grayScale:function(){return iD},highlight:function(){return tD},hueRotate:function(){return sD},invert:function(){return lD},outline:function(){return eD},saturate:function(){return aD},sepia:function(){return oD}});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{flipX:function(){return hD},flipXY:function(){return pD},flipY:function(){return fD},watermark:function(){return gD}});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{className:function(){return wD},opacity:function(){return xD},stroke:function(){return CD}});var a={};__webpack_require__.r(a),__webpack_require__.d(a,{absolute:function(){return OD},bottom:function(){return FD},ellipse:function(){return LD},ellipseSpread:function(){return AD},left:function(){return ID},line:function(){return PD},right:function(){return jD},top:function(){return RD}});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{bottom:function(){return GD},inside:function(){return JD},insideOriented:function(){return XD},left:function(){return UD},manual:function(){return qD},outside:function(){return $D},outsideOriented:function(){return KD},radial:function(){return tN},radialOriented:function(){return nN},right:function(){return VD},top:function(){return WD}});var l={};__webpack_require__.r(l),__webpack_require__.d(l,{noop:function(){return _N},pinAbsolute:function(){return kN},pinRelative:function(){return CN}});var c={};__webpack_require__.r(c),__webpack_require__.d(c,{bottom:function(){return eP},bottomLeft:function(){return oP},bottomRight:function(){return aP},center:function(){return ZN},left:function(){return tP},midSide:function(){return hP},nodeCenter:function(){return dP},orth:function(){return uP},right:function(){return nP},top:function(){return QN},topLeft:function(){return rP},topRight:function(){return iP}});var u={};__webpack_require__.r(u),__webpack_require__.d(u,{closest:function(){return vP},length:function(){return gP},orth:function(){return yP},ratio:function(){return pP}});var d={};__webpack_require__.r(d),__webpack_require__.d(d,{anchor:function(){return kP},bbox:function(){return xP},boundary:function(){return CP},rect:function(){return EP}});var h={};__webpack_require__.r(h),__webpack_require__.d(h,{er:function(){return rI},loop:function(){return oI},manhattan:function(){return eI},metro:function(){return nI},normal:function(){return TP},oneSide:function(){return MP},orth:function(){return NP}});var f={};__webpack_require__.r(f),__webpack_require__.d(f,{jumpover:function(){return yI},loop:function(){return lI},normal:function(){return sI},rounded:function(){return cI},smooth:function(){return uI}});var p=__webpack_require__(48926),g=__webpack_require__.n(p),m=__webpack_require__(87757),v=__webpack_require__.n(m),y=(__webpack_require__(81486),__webpack_require__(67294)),b=__webpack_require__(73935),w=__webpack_require__(45697),_=__webpack_require__.n(w),x=y.createContext(null);var E=function(e){e()},C=function(){return E},k={notify:function(){}};var S=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=k,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=C(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=k)},e}(),T="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?y.useLayoutEffect:y.useEffect;var M=function(e){var t=e.store,n=e.context,r=e.children,i=(0,y.useMemo)((function(){var e=new S(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),o=(0,y.useMemo)((function(){return t.getState()}),[t]);T((function(){var e=i.subscription;return e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,o]);var a=n||x;return y.createElement(a.Provider,{value:i},r)},O=__webpack_require__(8679),L=__webpack_require__.n(O),A=__webpack_require__(59864);function D(){return D=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},D.apply(this,arguments)}function N(){return(0,y.useContext)(x)}var P=function(e,t){return e===t};function I(e){void 0===e&&(e=x);var t=e===x?N:function(){return(0,y.useContext)(e)};return function(e,n){void 0===n&&(n=P);var r=t(),i=function(e,t,n,r){var i,o=(0,y.useReducer)((function(e){return e+1}),0)[1],a=(0,y.useMemo)((function(){return new S(n,r)}),[n,r]),s=(0,y.useRef)(),l=(0,y.useRef)(),c=(0,y.useRef)(),u=(0,y.useRef)(),d=n.getState();try{if(e!==l.current||d!==c.current||s.current){var h=e(d);i=void 0!==u.current&&t(h,u.current)?u.current:h}else i=u.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return T((function(){l.current=e,c.current=d,u.current=i,s.current=void 0})),T((function(){function e(){try{var e=n.getState(),r=l.current(e);if(t(r,u.current))return;u.current=r,c.current=e}catch(e){s.current=e}o()}return a.onStateChange=e,a.trySubscribe(),e(),function(){return a.tryUnsubscribe()}}),[n,a]),i}(e,n,r.store,r.subscription);return(0,y.useDebugValue)(i),i}}var j,R=I();function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}j=b.unstable_batchedUpdates,E=j;var z=__webpack_require__(94184),Y=__webpack_require__.n(z);function B(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function H(e,t){if(null==e)return{};var n,r,i=B(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function q(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 U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(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 G(e,t,n){return t&&W(e.prototype,t),n&&W(e,n),e}function $(e,t){return $=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$(e,t)}function K(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&&$(e,t)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}function X(e){return X="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},X(e)}function Z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q(e,t){return!t||"object"!==X(t)&&"function"!=typeof t?Z(e):t}function ee(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=J(e);if(t){var i=J(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Q(this,n)}}function te(e){if(Array.isArray(e))return e}function ne(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 re(e,t){if(e){if("string"==typeof e)return ne(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ie(){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 oe(e,t){return te(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||re(e,t)||ie()}function ae(e){return e instanceof HTMLElement?e:b.findDOMNode(e)}function se(e,t){"function"==typeof e?e(t):"object"===X(e)&&e&&"current"in e&&(e.current=t)}function le(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){se(t,e)}))}}function ce(e){var t,n,r=(0,A.isMemo)(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render))&&!("function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}function ue(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function de(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var he=function(e,t){var n={animationend:de("Animation","AnimationEnd"),transitionend:de("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}(ue(),"undefined"!=typeof window?window:{}),fe={};if(ue()){var pe=document.createElement("div");fe=pe.style}var ge={};function me(e){if(ge[e])return ge[e];var t=he[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in fe)return ge[e]=t[o],ge[e]}return""}var ve=me("animationend"),ye=me("transitionend"),be=!(!ve||!ye),we=ve||"animationend",_e=ye||"transitionend";function xe(e,t){if(!e)return null;if("object"===X(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}var Ee="none",Ce="appear",ke="enter",Se="leave",Te="none",Me="prepare",Oe="start",Le="active",Ae="end";function De(e){var t=(0,y.useRef)(!1),n=oe((0,y.useState)(e),2),r=n[0],i=n[1];return(0,y.useEffect)((function(){return function(){t.current=!0}}),[]),[r,function(e){t.current||i(e)}]}var Ne=ue()?y.useLayoutEffect:y.useEffect,Pe=function(e){return+setTimeout(e,16)},Ie=function(e){return clearTimeout(e)};function je(e){return Pe(e)}"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Pe=function(e){return window.requestAnimationFrame(e)},Ie=function(e){return window.cancelAnimationFrame(e)}),je.cancel=Ie;var Re=[Me,Oe,Le,Ae],Fe=!1,ze=!0;function Ye(e){return e===Le||e===Ae}var Be=function(e,t){var n=oe(y.useState(Te),2),r=n[0],i=n[1],o=function(){var e=y.useRef(null);function t(){je.cancel(e.current)}return y.useEffect((function(){return function(){t()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var o=je((function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)}));e.current=o},t]}(),a=oe(o,2),s=a[0],l=a[1];return Ne((function(){if(r!==Te&&r!==Ae){var e=Re.indexOf(r),n=Re[e+1],o=t(r);o===Fe?i(n):s((function(e){function t(){e.isCanceled()||i(n)}!0===o?t():Promise.resolve(o).then(t)}))}}),[e,r]),y.useEffect((function(){return function(){l()}}),[]),[function(){i(Me)},r]},He=function(e){var t=(0,y.useRef)(),n=(0,y.useRef)(e);n.current=e;var r=y.useCallback((function(e){n.current(e)}),[]);function i(e){e&&(e.removeEventListener(_e,r),e.removeEventListener(we,r))}return y.useEffect((function(){return function(){i(t.current)}}),[]),[function(e){t.current&&t.current!==e&&i(t.current),e&&e!==t.current&&(e.addEventListener(_e,r),e.addEventListener(we,r),t.current=e)},i]};var qe=function(e){K(n,e);var t=ee(n);function n(){return V(this,n),t.apply(this,arguments)}return G(n,[{key:"render",value:function(){return this.props.children}}]),n}(y.Component),Ue=qe;var Ve=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===X(e)&&(t=e.transitionSupport);var r=y.forwardRef((function(e,t){var r=e.visible,i=void 0===r||r,o=e.removeOnLeave,a=void 0===o||o,s=e.forceRender,l=e.children,c=e.motionName,u=e.leavedClassName,d=e.eventProps,h=n(e),f=(0,y.useRef)(),p=(0,y.useRef)();var g=function(e,t,n,r){var i=r.motionEnter,o=void 0===i||i,a=r.motionAppear,s=void 0===a||a,l=r.motionLeave,c=void 0===l||l,u=r.motionDeadline,d=r.motionLeaveImmediately,h=r.onAppearPrepare,f=r.onEnterPrepare,p=r.onLeavePrepare,g=r.onAppearStart,m=r.onEnterStart,v=r.onLeaveStart,b=r.onAppearActive,w=r.onEnterActive,_=r.onLeaveActive,x=r.onAppearEnd,E=r.onEnterEnd,C=r.onLeaveEnd,k=r.onVisibleChanged,S=oe(De(),2),T=S[0],M=S[1],O=oe(De(Ee),2),L=O[0],A=O[1],D=oe(De(null),2),N=D[0],P=D[1],I=(0,y.useRef)(!1),j=(0,y.useRef)(null),R=(0,y.useRef)(!1),z=(0,y.useRef)(null);function Y(){return n()||z.current}var B=(0,y.useRef)(!1);function H(e){var t,n=Y();e&&!e.deadline&&e.target!==n||(L===Ce&&B.current?t=null==x?void 0:x(n,e):L===ke&&B.current?t=null==E?void 0:E(n,e):L===Se&&B.current&&(t=null==C?void 0:C(n,e)),!1===t||R.current||(A(Ee),P(null)))}var q=oe(He(H),1)[0],V=y.useMemo((function(){var e,t,n;switch(L){case"appear":return F(e={},Me,h),F(e,Oe,g),F(e,Le,b),e;case"enter":return F(t={},Me,f),F(t,Oe,m),F(t,Le,w),t;case"leave":return F(n={},Me,p),F(n,Oe,v),F(n,Le,_),n;default:return{}}}),[L]),W=oe(Be(L,(function(e){if(e===Me){var t=V[Me];return t?t(Y()):Fe}var n;return $ in V&&P((null===(n=V[$])||void 0===n?void 0:n.call(V,Y(),null))||null),$===Le&&(q(Y()),u>0&&(clearTimeout(j.current),j.current=setTimeout((function(){H({deadline:!0})}),u))),ze})),2),G=W[0],$=W[1],K=Ye($);B.current=K,Ne((function(){M(t);var n,r=I.current;I.current=!0,e&&(!r&&t&&s&&(n=Ce),r&&t&&o&&(n=ke),(r&&!t&&c||!r&&d&&!t&&c)&&(n=Se),n&&(A(n),G()))}),[t]),(0,y.useEffect)((function(){(L===Ce&&!s||L===ke&&!o||L===Se&&!c)&&A(Ee)}),[s,o,c]),(0,y.useEffect)((function(){return function(){clearTimeout(j.current),R.current=!0}}),[]),(0,y.useEffect)((function(){void 0!==T&&L===Ee&&(null==k||k(T))}),[T,L]);var J=N;return V[Me]&&$===Oe&&(J=U({transition:"none"},J)),[L,$,J,null!=T?T:t]}(h,i,(function(){try{return ae(f.current||p.current)}catch(e){return null}}),e),m=oe(g,4),v=m[0],b=m[1],w=m[2],_=m[3],x=y.useRef(_);_&&(x.current=!0);var E=(0,y.useRef)(t);E.current=t;var C,k=y.useCallback((function(e){f.current=e,se(E.current,e)}),[]),S=U(U({},d),{},{visible:i});if(l)if(v!==Ee&&n(e)){var T,M;b===Me?M="prepare":Ye(b)?M="active":b===Oe&&(M="start"),C=l(U(U({},S),{},{className:Y()(xe(c,v),(T={},F(T,xe(c,"".concat(v,"-").concat(M)),M),F(T,c,"string"==typeof c),T)),style:w}),k)}else C=_?l(U({},S),k):!a&&x.current?l(U(U({},S),{},{className:u}),k):s?l(U(U({},S),{},{style:{display:"none"}}),k):null;else C=null;return y.createElement(Ue,{ref:p},C)}));return r.displayName="CSSMotion",r}(be),We="add",Ge="keep",$e="remove",Ke="removed";function Je(e){var t;return U(U({},t=e&&"object"===X(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Xe(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Je)}var Ze=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var Qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ve,n=function(e){K(r,e);var n=ee(r);function r(){var e;return V(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:U(U({},e),{},{status:Ke})}))}}))},e}return G(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,i=r.component,o=r.children,a=r.onVisibleChanged,s=H(r,["component","children","onVisibleChanged"]),l=i||y.Fragment,c={};return Ze.forEach((function(e){c[e]=s[e],delete s[e]})),delete s.keys,y.createElement(l,s,n.map((function(n){var r=n.status,i=H(n,["status"]),s=r===We||r===Ge;return y.createElement(t,D({},c,{key:i.key,visible:s,eventProps:i,onVisibleChanged:function(t){null==a||a(t,{key:i.key}),t||e.removeKey(i.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,i=Xe(n),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,o=Xe(e),a=Xe(t);o.forEach((function(e){for(var t=!1,o=r;o<i;o+=1){var s=a[o];if(s.key===e.key){r<o&&(n=n.concat(a.slice(r,o).map((function(e){return U(U({},e),{},{status:We})}))),r=o),n.push(U(U({},s),{},{status:Ge})),r+=1,t=!0;break}}t||n.push(U(U({},e),{},{status:$e}))})),r<i&&(n=n.concat(a.slice(r).map((function(e){return U(U({},e),{},{status:We})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var l=Object.keys(s).filter((function(e){return s[e]>1}));return l.forEach((function(e){n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==$e})),n.forEach((function(t){t.key===e&&(t.status=Ge)}))})),n}(r,i);return{keyEntities:o.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Ke||e.status!==$e}))}}}]),r}(y.Component);return n.defaultProps={component:"div"},n}(be),et=Ve,tt=function(e){K(n,e);var t=ee(n);function n(){var e;V(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).closeTimer=null,e.close=function(t){t&&t.stopPropagation(),e.clearCloseTimer();var n=e.props,r=n.onClose,i=n.noticeKey;r&&r(i)},e.startCloseTimer=function(){e.props.duration&&(e.closeTimer=window.setTimeout((function(){e.close()}),1e3*e.props.duration))},e.clearCloseTimer=function(){e.closeTimer&&(clearTimeout(e.closeTimer),e.closeTimer=null)},e}return G(n,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(e){(this.props.duration!==e.duration||this.props.updateMark!==e.updateMark||this.props.visible!==e.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,i=t.closable,o=t.closeIcon,a=t.style,s=t.onClick,l=t.children,c=t.holder,u="".concat(n,"-notice"),d=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{}),h=y.createElement("div",D({className:Y()(u,r,F({},"".concat(u,"-closable"),i)),style:a,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:s},d),y.createElement("div",{className:"".concat(u,"-content")},l),i?y.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(u,"-close")},o||y.createElement("span",{className:"".concat(u,"-close-x")})):null);return c?b.createPortal(h,c):h}}]),n}(y.Component);function nt(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function rt(e){return function(e){if(Array.isArray(e))return ne(e)}(e)||nt(e)||re(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 it(e){var t=y.useRef({}),n=oe(y.useState([]),2),r=n[0],i=n[1];return[function(n){var r=!0;e.add(n,(function(e,n){var o=n.key;if(e&&(!t.current[o]||r)){var a=y.createElement(tt,D({},n,{holder:e}));t.current[o]=a,i((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat(rt(e),[a]);var r=rt(e);return r[t]=a,r}))}r=!1}))},y.createElement(y.Fragment,null,r)]}tt.defaultProps={onClose:function(){},duration:1.5};var ot=0,at=Date.now();function st(){var e=ot;return ot+=1,"rcNotification_".concat(at,"_").concat(e)}var lt=function(e){K(n,e);var t=ee(n);function n(){var e;V(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={notices:[]},e.hookRefs=new Map,e.add=function(t,n){var r=t.key||st(),i=U(U({},t),{},{key:r}),o=e.props.maxCount;e.setState((function(e){var t=e.notices,a=t.map((function(e){return e.notice.key})).indexOf(r),s=t.concat();return-1!==a?s.splice(a,1,{notice:i,holderCallback:n}):(o&&t.length>=o&&(i.key=s[0].notice.key,i.updateMark=st(),i.userPassKey=r,s.shift()),s.push({notice:i,holderCallback:n})),{notices:s}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return G(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,i=n.className,o=n.closeIcon,a=n.style,s=[];return t.forEach((function(n,i){var a=n.notice,l=n.holderCallback,c=i===t.length-1?a.updateMark:void 0,u=a.key,d=a.userPassKey,h=U(U(U({prefixCls:r,closeIcon:o},a),a.props),{},{key:u,noticeKey:d||u,updateMark:c,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});s.push(u),e.noticePropsMap[u]={props:h,holderCallback:l}})),y.createElement("div",{className:Y()(r,i),style:a},y.createElement(Qe,{keys:s,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,i=t.className,o=t.style,a=t.visible,s=e.noticePropsMap[n],l=s.props,c=s.holderCallback;return c?y.createElement("div",{key:n,className:Y()(i,"".concat(r,"-hook-holder")),style:U({},o),ref:function(t){void 0!==n&&(t?(e.hookRefs.set(n,t),c(t,l)):e.hookRefs.delete(n))}}):y.createElement(tt,D({},l,{className:Y()(i,null==l?void 0:l.className),style:U(U({},o),null==l?void 0:l.style),visible:a}))})))}}]),n}(y.Component);lt.newInstance=void 0,lt.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},lt.newInstance=function(e,t){var n=e||{},r=n.getContainer,i=H(n,["getContainer"]),o=document.createElement("div");r?r().appendChild(o):document.body.appendChild(o);var a=!1;b.render(y.createElement(lt,D({},i,{ref:function(e){a||(a=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){b.unmountComponentAtNode(o),o.parentNode&&o.parentNode.removeChild(o)},useNotification:function(){return it(e)}}))}})),o)};var ct=lt,ut={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-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"}}]},name:"loading",theme:"outlined"},dt=(0,y.createContext)({});function ht(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=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function ft(e){return e<=1?100*Number(e)+"%":e}function pt(e){return 1===e.length?"0"+e:String(e)}function gt(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mt(e){return vt(e)/255}function vt(e){return parseInt(e,16)}var yt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function bt(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(yt[e])e=yt[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Et.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=Et.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=Et.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=Et.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=Et.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=Et.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=Et.hex8.exec(e),n)return{r:vt(n[1]),g:vt(n[2]),b:vt(n[3]),a:mt(n[4]),format:t?"name":"hex8"};if(n=Et.hex6.exec(e),n)return{r:vt(n[1]),g:vt(n[2]),b:vt(n[3]),format:t?"name":"hex"};if(n=Et.hex4.exec(e),n)return{r:vt(n[1]+n[1]),g:vt(n[2]+n[2]),b:vt(n[3]+n[3]),a:mt(n[4]+n[4]),format:t?"name":"hex8"};if(n=Et.hex3.exec(e),n)return{r:vt(n[1]+n[1]),g:vt(n[2]+n[2]),b:vt(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(Ct(e.r)&&Ct(e.g)&&Ct(e.b)?(t=function(e,t,n){return{r:255*ht(e,255),g:255*ht(t,255),b:255*ht(n,255)}}(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Ct(e.h)&&Ct(e.s)&&Ct(e.v)?(r=ft(e.s),i=ft(e.v),t=function(e,t,n){e=6*ht(e,360),t=ht(t,100),n=ht(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6;return{r:255*[n,a,o,o,s,n][l],g:255*[s,n,n,a,o,o][l],b:255*[o,o,s,n,n,a][l]}}(e.h,r,i),a=!0,s="hsv"):Ct(e.h)&&Ct(e.s)&&Ct(e.l)&&(r=ft(e.s),o=ft(e.l),t=function(e,t,n){var r,i,o;if(e=ht(e,360),t=ht(t,100),n=ht(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=gt(s,a,e+1/3),i=gt(s,a,e),o=gt(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=function(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var wt="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",_t="[\\s|\\(]+("+wt+")[,|\\s]+("+wt+")[,|\\s]+("+wt+")\\s*\\)?",xt="[\\s|\\(]+("+wt+")[,|\\s]+("+wt+")[,|\\s]+("+wt+")[,|\\s]+("+wt+")\\s*\\)?",Et={CSS_UNIT:new RegExp(wt),rgb:new RegExp("rgb"+_t),rgba:new RegExp("rgba"+xt),hsl:new RegExp("hsl"+_t),hsla:new RegExp("hsla"+xt),hsv:new RegExp("hsv"+_t),hsva:new RegExp("hsva"+xt),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 Ct(e){return Boolean(Et.CSS_UNIT.exec(String(e)))}var kt=2,St=.16,Tt=.05,Mt=.05,Ot=.15,Lt=5,At=4,Dt=[{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}];function Nt(e){var t=function(e,t,n){e=ht(e,255),t=ht(t,255),n=ht(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:l,v:a}}(e.r,e.g,e.b);return{h:360*t.h,s:t.s,v:t.v}}function Pt(e){var t=e.r,n=e.g,r=e.b;return"#".concat(function(e,t,n,r){var i=[pt(Math.round(e).toString(16)),pt(Math.round(t).toString(16)),pt(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}(t,n,r,!1))}function It(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-kt*t:Math.round(e.h)+kt*t:n?Math.round(e.h)+kt*t:Math.round(e.h)-kt*t)<0?r+=360:r>=360&&(r-=360),r}function jt(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-St*t:t===At?e.s+St:e.s+Tt*t)>1&&(r=1),n&&t===Lt&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function Rt(e,t,n){var r;return(r=n?e.v+Mt*t:e.v-Ot*t)>1&&(r=1),Number(r.toFixed(2))}function Ft(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=bt(e),i=Lt;i>0;i-=1){var o=Nt(r),a=Pt(bt({h:It(o,i,!0),s:jt(o,i,!0),v:Rt(o,i,!0)}));n.push(a)}n.push(Pt(r));for(var s=1;s<=At;s+=1){var l=Nt(r),c=Pt(bt({h:It(l,s),s:jt(l,s),v:Rt(l,s)}));n.push(c)}return"dark"===t.theme?Dt.map((function(e){var r=e.index,i=e.opacity,o=Pt(function(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}(bt(t.backgroundColor||"#141414"),bt(n[r]),100*i));return o})):n}var zt={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"},Yt={},Bt={};Object.keys(zt).forEach((function(e){Yt[e]=Ft(zt[e]),Yt[e].primary=Yt[e][5],Bt[e]=Ft(zt[e],{theme:"dark",backgroundColor:"#141414"}),Bt[e].primary=Bt[e][5]}));Yt.red,Yt.volcano,Yt.gold,Yt.orange,Yt.yellow,Yt.lime,Yt.green,Yt.cyan,Yt.blue,Yt.geekblue,Yt.purple,Yt.magenta,Yt.grey;var Ht={};function qt(e,t){0}function Ut(e,t,n){t||Ht[n]||(e(!1,n),Ht[n]=!0)}var Vt=function(e,t){Ut(qt,e,t)};var Wt="rc-util-key";function Gt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function $t(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"==typeof window||!window.document||!window.document.createElement)return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);i.innerHTML=e;var o=Gt(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var Kt=new Map;function Jt(e){return"object"===X(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===X(e.icon)||"function"==typeof e.icon)}function Xt(){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}),{})}function Zt(e,t,n){return n?y.createElement(e.tag,U(U({key:t},Xt(e.attrs)),n),(e.children||[]).map((function(n,r){return Zt(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):y.createElement(e.tag,U({key:t},Xt(e.attrs)),(e.children||[]).map((function(n,r){return Zt(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function Qt(e){return Ft(e)[0]}function en(e){return e?Array.isArray(e)?e:[e]:[]}var tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",t=(0,y.useContext)(dt).csp;(0,y.useEffect)((function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Gt(n);if(!Kt.has(r)){var i=$t("",n),o=i.parentNode;Kt.set(r,o),o.removeChild(i)}var a=Array.from(Kt.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[Wt]===t}));if(a){var s,l,c;return(null===(s=n.csp)||void 0===s?void 0:s.nonce)&&a.nonce!==(null===(l=n.csp)||void 0===l?void 0:l.nonce)&&(a.nonce=null===(c=n.csp)||void 0===c?void 0:c.nonce),a.innerHTML!==e&&(a.innerHTML=e),a}var u=$t(e,n);u[Wt]=t}(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])},nn=["icon","className","onClick","style","primaryColor","secondaryColor"],rn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var on=function(e){var t=e.icon,n=e.className,r=e.onClick,i=e.style,o=e.primaryColor,a=e.secondaryColor,s=H(e,nn),l=rn;if(o&&(l={primaryColor:o,secondaryColor:a||Qt(o)}),tn(),function(e,t){Vt(e,"[@ant-design/icons] ".concat(t))}(Jt(t),"icon should be icon definiton, but got ".concat(t)),!Jt(t))return null;var c=t;return c&&"function"==typeof c.icon&&(c=U(U({},c),{},{icon:c.icon(l.primaryColor,l.secondaryColor)})),Zt(c.icon,"svg-".concat(c.name),U({className:n,onClick:r,style:i,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};on.displayName="IconReact",on.getTwoToneColors=function(){return U({},rn)},on.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;rn.primaryColor=t,rn.secondaryColor=n||Qt(t),rn.calculated=!!n};var an=on;function sn(e){var t=oe(en(e),2),n=t[0],r=t[1];return an.setTwoToneColors({primaryColor:n,secondaryColor:r})}var ln=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];sn("#1890ff");var cn=y.forwardRef((function(e,t){var n,r=e.className,i=e.icon,o=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=H(e,ln),d=y.useContext(dt).prefixCls,h=void 0===d?"anticon":d,f=Y()(h,(F(n={},"".concat(h,"-").concat(i.name),!!i.name),F(n,"".concat(h,"-spin"),!!o||"loading"===i.name),n),r),p=s;void 0===p&&l&&(p=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,m=oe(en(c),2),v=m[0],b=m[1];return y.createElement("span",U(U({role:"img","aria-label":i.name},u),{},{ref:t,tabIndex:p,onClick:l,className:f}),y.createElement(an,{icon:i,primaryColor:v,secondaryColor:b,style:g}))}));cn.displayName="AntdIcon",cn.getTwoToneColor=function(){var e=an.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},cn.setTwoToneColor=sn;var un=cn,dn=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:ut}))};dn.displayName="LoadingOutlined";var hn=y.forwardRef(dn),fn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},pn=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:fn}))};pn.displayName="ExclamationCircleFilled";var gn=y.forwardRef(pn),mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 01-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"}}]},name:"close-circle",theme:"filled"},vn=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:mn}))};vn.displayName="CloseCircleFilled";var yn=y.forwardRef(vn),bn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 01-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"}}]},name:"check-circle",theme:"filled"},wn=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:bn}))};wn.displayName="CheckCircleFilled";var _n=y.forwardRef(wn),xn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},En=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:xn}))};En.displayName="InfoCircleFilled";var Cn=y.forwardRef(En),kn={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",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"},Sn={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Tn={lang:D({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",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"}),timePickerLocale:D({},Sn)},Mn="${label} is not a valid ${type}",On={locale:"en",Pagination:kn,DatePicker:Tn,TimePicker:Sn,Calendar:Tn,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},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"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Mn,method:Mn,array:Mn,object:Mn,number:Mn,date:Mn,boolean:Mn,integer:Mn,float:Mn,regexp:Mn,email:Mn,url:Mn,hex:Mn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}},Ln=On,An=(0,y.createContext)(void 0),Dn=function(e){K(n,e);var t=ee(n);function n(){return V(this,n),t.apply(this,arguments)}return G(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||Ln[null!=t?t:"global"],r=this.context,i=t&&r?r[t]:{};return D(D({},n instanceof Function?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?Ln.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(y.Component);Dn.defaultProps={componentName:"global"},Dn.contextType=An;var Nn=function(){var e=(0,y.useContext(Bn).getPrefixCls)("empty-img-default");return y.createElement("svg",{className:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(24 31.67)"},y.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),y.createElement("path",{className:"".concat(e,"-path-1"),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"}),y.createElement("path",{className:"".concat(e,"-path-2"),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",transform:"translate(13.56)"}),y.createElement("path",{className:"".concat(e,"-path-3"),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"}),y.createElement("path",{className:"".concat(e,"-path-4"),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"})),y.createElement("path",{className:"".concat(e,"-path-5"),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"}),y.createElement("g",{className:"".concat(e,"-g"),transform:"translate(149.65 15.383)"},y.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),y.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Pn=function(){var e=(0,y.useContext(Bn).getPrefixCls)("empty-img-simple");return y.createElement("svg",{className:e,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{className:"".concat(e,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),y.createElement("g",{className:"".concat(e,"-g"),fillRule:"nonzero"},y.createElement("path",{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"}),y.createElement("path",{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",className:"".concat(e,"-path")}))))},In=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},jn=y.createElement(Nn,null),Rn=y.createElement(Pn,null),Fn=function(e){var t=e.className,n=e.prefixCls,r=e.image,i=void 0===r?jn:r,o=e.description,a=e.children,s=e.imageStyle,l=In(e,["className","prefixCls","image","description","children","imageStyle"]),c=y.useContext(Bn),u=c.getPrefixCls,d=c.direction;return y.createElement(Dn,{componentName:"Empty"},(function(e){var r,c=u("empty",n),h=void 0!==o?o:e.description,f="string"==typeof h?h:"empty",p=null;return p="string"==typeof i?y.createElement("img",{alt:f,src:i}):i,y.createElement("div",D({className:Y()(c,(r={},F(r,"".concat(c,"-normal"),i===Rn),F(r,"".concat(c,"-rtl"),"rtl"===d),r),t)},l),y.createElement("div",{className:"".concat(c,"-image"),style:s},p),h&&y.createElement("div",{className:"".concat(c,"-description")},h),a&&y.createElement("div",{className:"".concat(c,"-footer")},a))}))};Fn.PRESENTED_IMAGE_DEFAULT=jn,Fn.PRESENTED_IMAGE_SIMPLE=Rn;var zn=Fn,Yn=function(e){return y.createElement(Hn,null,(function(t){var n=(0,t.getPrefixCls)("empty");switch(e){case"Table":case"List":return y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return y.createElement(zn,null)}}))},Bn=y.createContext({getPrefixCls:function(e,t){return t||(e?"ant-".concat(e):"ant")},renderEmpty:Yn}),Hn=Bn.Consumer;function qn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return y.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(qn(e)):(0,A.isFragment)(e)&&e.props?n=n.concat(qn(e.props.children,t)):n.push(e))})),n}var Un={};function Vn(e,t){0}function Wn(e,t,n){t||Un[n]||(e(!1,n),Un[n]=!0)}var Gn=function(e,t){Wn(Vn,e,t)},$n="RC_FORM_INTERNAL_HOOKS",Kn=function(){Gn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Jn=y.createContext({getFieldValue:Kn,getFieldsValue:Kn,getFieldError:Kn,getFieldsError:Kn,isFieldsTouched:Kn,isFieldTouched:Kn,isFieldValidating:Kn,isFieldsValidating:Kn,resetFields:Kn,setFields:Kn,setFieldsValue:Kn,validateFields:Kn,submit:Kn,getInternalHooks:function(){return Kn(),{dispatch:Kn,initEntityValue:Kn,registerField:Kn,useSubscribe:Kn,setInitialValues:Kn,setCallbacks:Kn,getFields:Kn,setValidateMessages:Kn,setPreserve:Kn}}});function Xn(e){return null==e?[]:Array.isArray(e)?e:[e]}function Zn(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Qn(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Zn(o,r,i,a,s,"next",e)}function s(e){Zn(o,r,i,a,s,"throw",e)}a(void 0)}))}}function er(){return er=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},er.apply(this,arguments)}function tr(e){return tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tr(e)}function nr(e,t){return nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nr(e,t)}function rr(e,t,n){return rr=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 i=new(Function.bind.apply(e,r));return n&&nr(i,n.prototype),i},rr.apply(null,arguments)}function ir(e){var t="function"==typeof Map?new Map:void 0;return ir=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;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,n)}function n(){return rr(e,arguments,tr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),nr(n,e)},ir(e)}var or=/%[sdj%]/g;function ar(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 sr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,i=t[0],o=t.length;if("function"==typeof i)return i.apply(null,t.slice(1));if("string"==typeof i){var a=String(i).replace(or,(function(e){if("%%"===e)return"%";if(r>=o)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}}));return a}return i}function lr(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 cr(e,t,n){var r=0,i=e.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}([])}var ur=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,nr(t,n),r}(ir(Error));function dr(e,t,n,r){if(t.first){var i=new Promise((function(t,i){var o=function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e);cr(o,n,(function(e){return r(e),e.length?i(new ur(e,ar(e))):t()}))}));return i.catch((function(e){return e})),i}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,c=[],u=new Promise((function(t,i){var u=function(e){if(c.push.apply(c,e),++l===s)return r(c),c.length?i(new ur(c,ar(c))):t()};a.length||(r(c),t()),a.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?cr(r,n,u):function(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e),++i===o&&n(r)}e.forEach((function(e){t(e,a)}))}(r,n,u)}))}));return u.catch((function(e){return e})),u}function hr(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 fr(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&"object"==typeof e[n]?e[n]=er({},e[n],r):e[n]=r}return e}function pr(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!lr(t,o||e.type)||r.push(sr(i.messages.required,e.fullField))}var gr={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},mr={integer:function(e){return mr.number(e)&&parseInt(e,10)===e},float:function(e){return mr.number(e)&&!mr.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&&!mr.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(gr.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(gr.url)},hex:function(e){return"string"==typeof e&&!!e.match(gr.hex)}};var vr="enum";var yr={required:pr,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(sr(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)pr(e,t,n,r,i);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?mr[o](t)||r.push(sr(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(sr(i.messages.types[o],e.fullField,e.type))}},range:function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=t,c=null,u="number"==typeof t,d="string"==typeof t,h=Array.isArray(t);if(u?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(l=t.length),d&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==e.len&&r.push(sr(i.messages[c].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(sr(i.messages[c].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(sr(i.messages[c].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(sr(i.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e[vr]=Array.isArray(e[vr])?e[vr]:[],-1===e[vr].indexOf(t)&&r.push(sr(i.messages[vr],e.fullField,e[vr].join(", ")))},pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(sr(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(sr(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function br(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t,o)&&!e.required)return n();yr.required(e,t,r,a,i,o),lr(t,o)||yr.type(e,t,r,a,i)}n(a)}var wr={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t,"string")&&!e.required)return n();yr.required(e,t,r,o,i,"string"),lr(t,"string")||(yr.type(e,t,r,o,i),yr.range(e,t,r,o,i),yr.pattern(e,t,r,o,i),!0===e.whitespace&&yr.whitespace(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t)&&!e.required)return n();yr.required(e,t,r,o,i),void 0!==t&&yr.type(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),lr(t)&&!e.required)return n();yr.required(e,t,r,o,i),void 0!==t&&(yr.type(e,t,r,o,i),yr.range(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t)&&!e.required)return n();yr.required(e,t,r,o,i),void 0!==t&&yr.type(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t)&&!e.required)return n();yr.required(e,t,r,o,i),lr(t)||yr.type(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t)&&!e.required)return n();yr.required(e,t,r,o,i),void 0!==t&&(yr.type(e,t,r,o,i),yr.range(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t)&&!e.required)return n();yr.required(e,t,r,o,i),void 0!==t&&(yr.type(e,t,r,o,i),yr.range(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();yr.required(e,t,r,o,i,"array"),null!=t&&(yr.type(e,t,r,o,i),yr.range(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t)&&!e.required)return n();yr.required(e,t,r,o,i),void 0!==t&&yr.type(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t)&&!e.required)return n();yr.required(e,t,r,o,i),void 0!==t&&yr.enum(e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t,"string")&&!e.required)return n();yr.required(e,t,r,o,i),lr(t,"string")||yr.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t,"date")&&!e.required)return n();var a;if(yr.required(e,t,r,o,i),!lr(t,"date"))a=t instanceof Date?t:new Date(t),yr.type(e,a,r,o,i),a&&yr.range(e,a.getTime(),r,o,i)}n(o)},url:br,hex:br,email:br,required:function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;yr.required(e,t,r,o,i,a),n(o)},any:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(lr(t)&&!e.required)return n();yr.required(e,t,r,o,i)}n(o)}};function _r(){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 xr=_r();function Er(e){this.rules=null,this._messages=xr,this.define(e)}function Cr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function kr(e){return te(e)||nt(e)||re(e)||ie()}function Sr(e,t,n,r){if(!t.length)return n;var i,o=kr(t),a=o[0],s=o.slice(1);return i=e||"number"!=typeof a?Array.isArray(e)?rt(e):U({},e):[],r&&void 0===n&&1===s.length?delete i[a][s[0]]:i[a]=Sr(i[a],s,n,r),i}function Tr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Cr(e,t.slice(0,-1))?e:Sr(e,t,n,r)}function Mr(e){return Xn(e)}function Or(e,t){return Cr(e,t)}function Lr(e,t,n){return Tr(e,t,n,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}function Ar(e,t){var n={};return t.forEach((function(t){var r=Or(e,t);n=Lr(n,t,r)})),n}function Dr(e,t){return e&&e.some((function(e){return jr(e,t)}))}function Nr(e){return"object"===X(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function Pr(e,t){var n=Array.isArray(e)?rt(e):U({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],i=t[e],o=Nr(r)&&Nr(i);n[e]=o?Pr(r,i||{}):i})),n):n}function Ir(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((function(e,t){return Pr(e,t)}),e)}function jr(e,t){return!(!e||!t||e.length!==t.length)&&e.every((function(e,n){return t[n]===e}))}function Rr(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&e in t.target?t.target[e]:t}function Fr(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(rt(e.slice(0,n)),[i],rt(e.slice(n,t)),rt(e.slice(t+1,r))):o<0?[].concat(rt(e.slice(0,t)),rt(e.slice(t+1,n+1)),[i],rt(e.slice(n+1,r))):e}Er.prototype={messages:function(e){return e&&(this._messages=fr(_r(),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,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var i,o,a=e,s=t,l=n;if("function"==typeof s&&(l=s,s={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(),Promise.resolve();if(s.messages){var c=this.messages();c===xr&&(c=_r()),fr(c,s.messages),s.messages=c}else s.messages=this.messages();var u={};(s.keys||Object.keys(this.rules)).forEach((function(t){i=r.rules[t],o=a[t],i.forEach((function(n){var i=n;"function"==typeof i.transform&&(a===e&&(a=er({},a)),o=a[t]=i.transform(o)),(i="function"==typeof i?{validator:i}:er({},i)).validator=r.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=r.getType(i),i.validator&&(u[t]=u[t]||[],u[t].push({rule:i,value:o,source:a,field:t}))}))}));var d={};return dr(u,s,(function(e,t){var n,r=e.rule,i=!("object"!==r.type&&"array"!==r.type||"object"!=typeof r.fields&&"object"!=typeof r.defaultField);function o(e,t){return er({},t,{fullField:r.fullField+"."+e})}function a(n){void 0===n&&(n=[]);var a=n;if(Array.isArray(a)||(a=[a]),!s.suppressWarning&&a.length&&Er.warning("async-validator:",a),a.length&&void 0!==r.message&&(a=[].concat(r.message)),a=a.map(hr(r)),s.first&&a.length)return d[r.field]=1,t(a);if(i){if(r.required&&!e.value)return void 0!==r.message?a=[].concat(r.message).map(hr(r)):s.error&&(a=[s.error(r,sr(s.messages.required,r.field))]),t(a);var l={};if(r.defaultField)for(var c in e.value)e.value.hasOwnProperty(c)&&(l[c]=r.defaultField);for(var u in l=er({},l,e.rule.fields))if(l.hasOwnProperty(u)){var h=Array.isArray(l[u])?l[u]:[l[u]];l[u]=h.map(o.bind(null,u))}var f=new Er(l);f.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),f.validate(e.value,e.rule.options||s,(function(e){var n=[];a&&a.length&&n.push.apply(n,a),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(a)}i=i&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,a,e.source,s):r.validator&&(!0===(n=r.validator(r,e.value,a,e.source,s))?a():!1===n?a(r.message||r.field+" fails"):n instanceof Array?a(n):n instanceof Error&&a(n.message)),n&&n.then&&n.then((function(){return a()}),(function(e){return a(e)}))}),(function(e){!function(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t<e.length;t++)i(e[t]);n.length?r=ar(n):(n=null,r=null),l(n,r)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!wr.hasOwnProperty(e.type))throw new Error(sr("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]?wr.required:wr[this.getType(e)]||!1}},Er.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");wr[e]=t},Er.warning=function(){},Er.messages=xr,Er.validators=wr;var zr="'${name}' is not a valid ${type}",Yr={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:zr,method:zr,array:zr,object:zr,number:zr,date:zr,boolean:zr,integer:zr,float:zr,regexp:zr,email:zr,url:zr,hex:zr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Br=Er;function Hr(e,t,n,r){var i=U(U({},n),{},{name:t,enum:(n.enum||[]).join(", ")});return function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(o){var a=t[o];"string"==typeof a?n[o]=function(e,t){return function(){return function(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}(e,U(U({},i),t))}}(a,r):a&&"object"===X(a)?(n[o]={},e(a,n[o])):n[o]=a})),n}(Ir({},Yr,e))}function qr(e,t,n,r,i){return Ur.apply(this,arguments)}function Ur(){return Ur=Qn(v().mark((function e(t,n,r,i,o){var a,s,l,c,u,d;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=U({},r),s=null,a&&"array"===a.type&&a.defaultField&&(s=a.defaultField,delete a.defaultField),l=new Br(F({},t,[a])),c=Hr(i.validateMessages,t,a,o),l.messages(c),u=[],e.prev=7,e.next=10,Promise.resolve(l.validate(F({},t,n),U({},i)));case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(7),e.t0.errors?u=e.t0.errors.map((function(e,t){var n=e.message;return y.isValidElement(n)?y.cloneElement(n,{key:"error_".concat(t)}):n})):(console.error(e.t0),u=[c.default()]);case 15:if(u.length||!s){e.next=20;break}return e.next=18,Promise.all(n.map((function(e,n){return qr("".concat(t,".").concat(n),e,s,i,o)})));case 18:return d=e.sent,e.abrupt("return",d.reduce((function(e,t){return[].concat(rt(e),rt(t))}),[]));case 20:return e.abrupt("return",u);case 21:case"end":return e.stop()}}),e,null,[[7,12]])}))),Ur.apply(this,arguments)}function Vr(e,t,n,r,i,o){var a,s=e.join("."),l=n.map((function(e){var t=e.validator;return t?U(U({},e),{},{validator:function(e,n,r){var i=!1,o=t(e,n,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((function(){Gn(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,t)}))}));i=o&&"function"==typeof o.then&&"function"==typeof o.catch,Gn(i,"`callback` is deprecated. Please return a promise instead."),i&&o.then((function(){r()})).catch((function(e){r(e||" ")}))}}):e}));if(!0===i)a=new Promise(function(){var e=Qn(v().mark((function e(n,i){var a,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<l.length)){e.next=11;break}return e.next=4,qr(s,t,l[a],r,o);case 4:if(!(c=e.sent).length){e.next=8;break}return i(c),e.abrupt("return");case 8:a+=1,e.next=1;break;case 11:n([]);case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());else{var c=l.map((function(e){return qr(s,t,e,r,o)}));a=(i?function(e){return Gr.apply(this,arguments)}(c):function(e){return Wr.apply(this,arguments)}(c)).then((function(e){return e.length?Promise.reject(e):[]}))}return a.catch((function(e){return e})),a}function Wr(){return(Wr=Qn(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then((function(e){var t;return(t=[]).concat.apply(t,rt(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gr(){return Gr=Qn(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise((function(e){t.forEach((function(r){r.then((function(r){r.length&&e(r),(n+=1)===t.length&&e([])}))}))})));case 2:case"end":return e.stop()}}),e)}))),Gr.apply(this,arguments)}function $r(e,t,n,r,i,o){return"function"==typeof e?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var Kr=function(e){K(n,e);var t=ee(n);function n(e){var r;(V(this,n),(r=t.call(this,e)).state={resetCount:0},r.cancelRegisterFunc=null,r.mounted=!1,r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=[],r.cancelRegister=function(){var e=r.props,t=e.preserve,n=e.isListField,i=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Mr(i)),r.cancelRegisterFunc=null},r.getNamePath=function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(rt(void 0===n?[]:n),rt(t)):[]},r.getRules=function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,i=e.fieldContext;return n.map((function(e){return"function"==typeof e?e(i):e}))},r.refresh=function(){r.mounted&&r.setState((function(e){return{resetCount:e.resetCount+1}}))},r.onStoreChange=function(e,t,n){var i=r.props,o=i.shouldUpdate,a=i.dependencies,s=void 0===a?[]:a,l=i.onReset,c=n.store,u=r.getNamePath(),d=r.getValue(e),h=r.getValue(c),f=t&&Dr(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&d!==h&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=[]),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=null,r.errors=[],l&&l(),void r.refresh();break;case"setField":if(f){var p=n.data;return"touched"in p&&(r.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(r.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(r.errors=p.errors||[]),r.dirty=!0,void r.reRender()}if(o&&!u.length&&$r(o,e,c,d,h,n))return void r.reRender();break;case"dependenciesUpdate":if(s.map(Mr).some((function(e){return Dr(n.relatedFields,e)})))return void r.reRender();break;default:if(f||(!s.length||u.length||o)&&$r(o,e,c,d,h,n))return void r.reRender()}!0===o&&r.reRender()},r.validateRules=function(e){var t=r.getNamePath(),n=r.getValue(),i=Promise.resolve().then((function(){if(!r.mounted)return[];var o=r.props,a=o.validateFirst,s=void 0!==a&&a,l=o.messageVariables,c=(e||{}).triggerName,u=r.getRules();c&&(u=u.filter((function(e){var t=e.validateTrigger;return!t||Xn(t).includes(c)})));var d=Vr(t,n,u,e,s,l);return d.catch((function(e){return e})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r.validatePromise===i&&(r.validatePromise=null,r.errors=e,r.reRender())})),d}));return r.validatePromise=i,r.dirty=!0,r.errors=[],r.reRender(),i},r.isFieldValidating=function(){return!!r.validatePromise},r.isFieldTouched=function(){return r.touched},r.isFieldDirty=function(){return r.dirty},r.getErrors=function(){return r.errors},r.isListField=function(){return r.props.isListField},r.isList=function(){return r.props.isList},r.isPreserve=function(){return r.props.preserve},r.getMeta=function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,name:r.getNamePath()}},r.getOnlyChild=function(e){if("function"==typeof e){var t=r.getMeta();return U(U({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=qn(e);return 1===n.length&&y.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},r.getValue=function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Or(e||t(!0),n)},r.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.trigger,i=t.validateTrigger,o=t.getValueFromEvent,a=t.normalize,s=t.valuePropName,l=t.getValueProps,c=t.fieldContext,u=void 0!==i?i:c.validateTrigger,d=r.getNamePath(),h=c.getInternalHooks,f=c.getFieldsValue,p=h($n).dispatch,g=r.getValue(),m=l||function(e){return F({},s,e)},v=e[n],y=U(U({},e),m(g));return y[n]=function(){var e;r.touched=!0,r.dirty=!0;for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];e=o?o.apply(void 0,n):Rr.apply(void 0,[s].concat(n)),a&&(e=a(e,g,f(!0))),p({type:"updateValue",namePath:d,value:e}),v&&v.apply(void 0,n)},Xn(u||[]).forEach((function(e){var t=y[e];y[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&p({type:"validateField",namePath:d,triggerName:e})}})),y},e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)($n).initEntityValue)(Z(r));return r}return G(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)($n).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:y.isValidElement(i)?e=y.cloneElement(i,this.getControlled(i.props)):(Gn(!i,"`children` of Field is not validate ReactElement."),e=i),y.createElement(y.Fragment,{key:t},e)}}]),n}(y.Component);Kr.contextType=Jn,Kr.defaultProps={trigger:"onChange",valuePropName:"value"};var Jr=function(e){var t=e.name,n=H(e,["name"]),r=y.useContext(Jn),i=void 0!==t?Mr(t):void 0,o="keep";return n.isListField||(o="_".concat((i||[]).join("_"))),y.createElement(Kr,D({key:o,name:i},n,{fieldContext:r}))},Xr=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,o=e.validateTrigger,a=y.useContext(Jn),s=y.useRef({keys:[],id:0}).current;if("function"!=typeof r)return Gn(!1,"Form.List only accepts function as children."),null;var l=Mr(a.prefixName)||[],c=[].concat(rt(l),rt(Mr(t)));return y.createElement(Jn.Provider,{value:U(U({},a),{},{prefixName:c})},y.createElement(Jr,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:o,initialValue:n,isList:!0},(function(e,t){var n=e.value,i=void 0===n?[]:n,o=e.onChange,l=a.getFieldValue,u=function(){return l(c||[])||[]},d={add:function(e,t){var n=u();t>=0&&t<=n.length?(s.keys=[].concat(rt(s.keys.slice(0,t)),[s.id],rt(s.keys.slice(t))),o([].concat(rt(n.slice(0,t)),[e],rt(n.slice(t))))):(s.keys=[].concat(rt(s.keys),[s.id]),o([].concat(rt(n),[e]))),s.id+=1},remove:function(e){var t=u(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(s.keys=s.keys.filter((function(e,t){return!n.has(t)})),o(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=u();e<0||e>=n.length||t<0||t>=n.length||(s.keys=Fr(s.keys,e,t),o(Fr(n,e,t)))}}},h=i||[];return Array.isArray(h)||(h=[]),r(h.map((function(e,t){var n=s.keys[t];return void 0===n&&(s.keys[t]=s.id,n=s.keys[t],s.id+=1),{name:t,key:n,isListField:!0}})),d,t)})))};var Zr="__@field_split__";function Qr(e){return e.map((function(e){return"".concat(X(e),":").concat(e)})).join(Zr)}var ei=function(){function e(){V(this,e),this.kvs=new Map}return G(e,[{key:"set",value:function(e,t){this.kvs.set(Qr(e),t)}},{key:"get",value:function(e){return this.kvs.get(Qr(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Qr(e))}},{key:"map",value:function(e){return rt(this.kvs.entries()).map((function(t){var n=oe(t,2),r=n[0],i=n[1],o=r.split(Zr);return e({key:o.map((function(e){var t=oe(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r})),value:i})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),ti=ei,ni=function e(t){var n=this;V(this,e),this.formHooked=!1,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===$n?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve}):(Gn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.setInitialValues=function(e,t){n.initialValues=e||{},t&&(n.store=Ir({},e,n.store))},this.getInitialValue=function(e){return Or(n.initialValues,e)},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.timeoutId=null,this.warningUnhooked=function(){0},this.getFieldEntities=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new ti;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=Mr(e);return t.get(n)||{INVALIDATE_NAME_PATH:Mr(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),i=[];return r.forEach((function(n){var r,o="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&i.push(o)}else i.push(o)})),Ar(n.store,i.map(Mr))},this.getFieldValue=function(e){n.warningUnhooked();var t=Mr(e);return Or(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors()}:{name:Mr(e[n]),errors:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=Mr(e);return n.getFieldsError([t])[0].errors},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,o=t[0],a=t[1],s=!1;0===t.length?i=null:1===t.length?Array.isArray(o)?(i=o.map(Mr),s=!1):(i=null,s=o):(i=o.map(Mr),s=a);var l=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!i)return s?l.every(c):l.some(c);var u=new ti;i.forEach((function(e){u.set(e,[])})),l.forEach((function(e){var t=e.getNamePath();i.forEach((function(n){n.every((function(e,n){return t[n]===e}))&&u.update(n,(function(t){return[].concat(rt(t),[e])}))}))}));var d=function(e){return e.some(c)},h=u.map((function(e){return e.value}));return s?h.every(d):h.some(d)},this.isFieldTouched=function(e){return n.warningUnhooked(),n.isFieldsTouched([e])},this.isFieldsValidating=function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some((function(e){return e.isFieldValidating()}));var r=e.map(Mr);return t.some((function(e){var t=e.getNamePath();return Dr(r,t)&&e.isFieldValidating()}))},this.isFieldValidating=function(e){return n.warningUnhooked(),n.isFieldsValidating([e])},this.resetWithFieldInitialValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new ti,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}}));var i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=i).push.apply(n,rt(rt(r).map((function(e){return e.entity}))))}))):i=r,i.forEach((function(r){if(void 0!==r.props.initialValue){var i=r.getNamePath();if(void 0!==n.getInitialValue(i))Gn(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=t.get(i);if(o&&o.size>1)Gn(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);e.skipExist&&void 0!==a||(n.store=Lr(n.store,i,rt(o)[0].value))}}}}))},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.store=Ir({},n.initialValues),n.resetWithFieldInitialValue(),void n.notifyObservers(t,null,{type:"reset"});var r=e.map(Mr);r.forEach((function(e){var t=n.getInitialValue(e);n.store=Lr(n.store,e,t)})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"})},this.setFields=function(e){n.warningUnhooked();var t=n.store;e.forEach((function(e){var r=e.name,i=(e.errors,H(e,["name","errors"])),o=Mr(r);"value"in i&&(n.store=Lr(n.store,o,i.value)),n.notifyObservers(t,[o],{type:"setField",data:e})}))},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=U(U({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Or(n.store,r)&&(n.store=Lr(n.store,r,t))}},this.registerField=function(e){if(n.fieldEntities.push(e),void 0!==e.props.initialValue){var t=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(t,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!1===(void 0!==r?r:n.preserve)&&(!t||i.length>1)){var o=e.getNamePath(),a=t?void 0:Or(n.initialValues,o);o.length&&n.getFieldValue(o)!==a&&n.fieldEntities.every((function(e){return!jr(e.getNamePath(),o)}))&&(n.store=Lr(n.store,o,a,!0))}}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var i=e.namePath,o=e.triggerName;n.validateFields([i],{triggerName:o})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var i=U(U({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,i)}))}else n.forceRootUpdate()},this.updateValue=function(e,t){var r=Mr(e),i=n.store;n.store=Lr(n.store,r,t),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"});var o=n.getDependencyChildrenFields(r);o.length&&n.validateFields(o),n.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[r].concat(rt(o))});var a=n.callbacks.onValuesChange;a&&a(Ar(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(rt(o)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;e&&(n.store=Ir(n.store,e)),n.notifyObservers(t,null,{type:"valueUpdate",source:"external"})},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],i=new ti;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=Mr(t);i.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(i.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),e(i))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(t){var o=new ti;t.forEach((function(e){var t=e.name,n=e.errors;o.set(t,n)})),i.forEach((function(e){e.errors=o.get(e.name)||e.errors}))}r(i.filter((function(t){var n=t.name;return Dr(e,n)})),i)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,i=r?e.map(Mr):[],o=[];n.getFieldEntities(!0).forEach((function(a){if(r||i.push(a.getNamePath()),(null==t?void 0:t.recursive)&&r){var s=a.getNamePath();s.every((function(t,n){return e[n]===t||void 0===e[n]}))&&i.push(s)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||Dr(i,l)){var c=a.validateRules(U({validateMessages:U(U({},Yr),n.validateMessages)},t));o.push(c.then((function(){return{name:l,errors:[]}})).catch((function(e){return Promise.reject({name:l,errors:e})})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(i,o){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&o(r),i(r))}))}))})):Promise.resolve([])}(o);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var s=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return s.catch((function(e){return e})),s},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t};var ri=function(e){var t=y.useRef(),n=oe(y.useState({}),2)[1];if(!t.current)if(e)t.current=e;else{var r=new ni((function(){n({})}));t.current=r.getForm()}return[t.current]},ii=y.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),oi=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,o=y.useContext(ii),a=y.useRef({});return y.createElement(ii.Provider,{value:U(U({},o),{},{validateMessages:U(U({},o.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:a.current}),o.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:a.current}),o.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(a.current=U(U({},a.current),{},F({},e,t))),o.registerForm(e,t)},unregisterForm:function(e){var t=U({},a.current);delete t[e],a.current=t,o.unregisterForm(e)}})},i)},ai=ii,si=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,o=e.form,a=e.preserve,s=e.children,l=e.component,c=void 0===l?"form":l,u=e.validateMessages,d=e.validateTrigger,h=void 0===d?"onChange":d,f=e.onValuesChange,p=e.onFieldsChange,g=e.onFinish,m=e.onFinishFailed,v=H(e,["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"]),b=y.useContext(ai),w=oe(ri(o),1)[0],_=w.getInternalHooks($n),x=_.useSubscribe,E=_.setInitialValues,C=_.setCallbacks,k=_.setValidateMessages,S=_.setPreserve;y.useImperativeHandle(t,(function(){return w})),y.useEffect((function(){return b.registerForm(n,w),function(){b.unregisterForm(n)}}),[b,w,n]),k(U(U({},b.validateMessages),u)),C({onValuesChange:f,onFieldsChange:function(e){if(b.triggerFormChange(n,e),p){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];p.apply(void 0,[e].concat(r))}},onFinish:function(e){b.triggerFormFinish(n,e),g&&g(e)},onFinishFailed:m}),S(a);var T=y.useRef(null);E(r,!T.current),T.current||(T.current=!0);var M=s,O="function"==typeof s;O&&(M=s(w.getFieldsValue(!0),w));x(!O);var L=y.useRef();y.useEffect((function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==X(e)||"object"!==X(t))return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(rt(n),rt(r)));return rt(i).every((function(n){var r=e[n],i=t[n];return"function"==typeof r&&"function"==typeof i||r===i}))})(L.current||[],i||[])||w.setFields(i||[]),L.current=i}),[i,w]);var A=y.useMemo((function(){return U(U({},w),{},{validateTrigger:h})}),[w,h]),N=y.createElement(Jn.Provider,{value:A},M);return!1===c?N:y.createElement(c,D({},v,{onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=v.onReset)||void 0===t||t.call(v,e)}}),N)},li=y.forwardRef(si);li.FormProvider=oi,li.Field=Jr,li.List=Xr,li.useForm=ri;var ci={};function ui(e,t){0}function di(e,t,n){t||ci[n]||(e(!1,n),ci[n]=!0)}var hi=function(e,t){di(ui,e,t)},fi=function(e,t,n){hi(e,"[antd: ".concat(t,"] ").concat(n))},pi=D({},On.Modal);function gi(e){pi=e?D(D({},pi),e):D({},On.Modal)}function mi(){return pi}var vi="internalMark",yi=function(e){K(n,e);var t=ee(n);function n(e){var r;return V(this,n),r=t.call(this,e),gi(e.locale&&e.locale.Modal),fi(e._ANT_MARK__===vi,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale"),r}return G(n,[{key:"componentDidMount",value:function(){gi(this.props.locale&&this.props.locale.Modal)}},{key:"componentDidUpdate",value:function(e){var t=this.props.locale;e.locale!==t&&gi(t&&t.Modal)}},{key:"componentWillUnmount",value:function(){gi()}},{key:"render",value:function(){var e=this.props,t=e.locale,n=e.children;return y.createElement(An.Provider,{value:D(D({},t),{exist:!0})},n)}}]),n}(y.Component);yi.defaultProps={locale:{}};var bi=y.createContext(void 0),wi=function(e){var t=e.children,n=e.size;return y.createElement(bi.Consumer,null,(function(e){return y.createElement(bi.Provider,{value:n||e},t)}))},_i=bi,xi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 00203 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"}}]},name:"close",theme:"outlined"},Ei=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:xi}))};Ei.displayName="CloseOutlined";var Ci=y.forwardRef(Ei),ki={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"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"}}]},name:"check-circle",theme:"outlined"},Si=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:ki}))};Si.displayName="CheckCircleOutlined";var Ti=y.forwardRef(Si),Mi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 00-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"}},{tag:"path",attrs:{d:"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"}}]},name:"close-circle",theme:"outlined"},Oi=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:Mi}))};Oi.displayName="CloseCircleOutlined";var Li=y.forwardRef(Oi),Ai={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-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"}}]},name:"exclamation-circle",theme:"outlined"},Di=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:Ai}))};Di.displayName="ExclamationCircleOutlined";var Ni=y.forwardRef(Di),Pi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-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"}}]},name:"info-circle",theme:"outlined"},Ii=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:Pi}))};Ii.displayName="InfoCircleOutlined";var ji=y.forwardRef(Ii);var Ri,Fi,zi={},Yi=4.5,Bi=24,Hi=24,qi="",Ui="topRight",Vi=!1;function Wi(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bi,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hi;switch(e){case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function Gi(e,t){var n=e.placement,r=void 0===n?Ui:n,i=e.top,o=e.bottom,a=e.getContainer,s=void 0===a?Ri:a,l=e.closeIcon,c=void 0===l?Fi:l,u=e.prefixCls,d=(0,to().getPrefixCls)("notification",u||qi),h="".concat(d,"-").concat(r),f=zi[h];if(f)Promise.resolve(f).then((function(e){t({prefixCls:"".concat(d,"-notice"),instance:e})}));else{var p=y.createElement("span",{className:"".concat(d,"-close-x")},c||y.createElement(Ci,{className:"".concat(d,"-close-icon")})),g=Y()("".concat(d,"-").concat(r),F({},"".concat(d,"-rtl"),!0===Vi));zi[h]=new Promise((function(e){ct.newInstance({prefixCls:d,className:g,style:Wi(r,i,o),getContainer:s,closeIcon:p},(function(n){e(n),t({prefixCls:"".concat(d,"-notice"),instance:n})}))}))}}var $i={success:Ti,info:ji,error:Li,warning:Ni};function Ki(e,t){var n=e.duration,r=e.icon,i=e.type,o=e.description,a=e.message,s=e.btn,l=e.onClose,c=e.onClick,u=e.key,d=e.style,h=e.className,f=void 0===n?Yi:n,p=null;r?p=y.createElement("span",{className:"".concat(t,"-icon")},e.icon):i&&(p=y.createElement($i[i]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(i)}));var g=!o&&p?y.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:y.createElement("div",{className:p?"".concat(t,"-with-icon"):"",role:"alert"},p,y.createElement("div",{className:"".concat(t,"-message")},g,a),y.createElement("div",{className:"".concat(t,"-description")},o),s?y.createElement("span",{className:"".concat(t,"-btn")},s):null),duration:f,closable:!0,onClose:l,onClick:c,key:u,style:d||{},className:Y()(h,F({},"".concat(t,"-").concat(i),!!i))}}var Ji={open:function(e){Gi(e,(function(t){var n=t.prefixCls;t.instance.notice(Ki(e,n))}))},close:function(e){Object.keys(zi).forEach((function(t){return Promise.resolve(zi[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,i=e.top,o=e.getContainer,a=e.closeIcon,s=e.prefixCls;void 0!==s&&(qi=s),void 0!==t&&(Yi=t),void 0!==n?Ui=n:e.rtl&&(Ui="topLeft"),void 0!==r&&(Hi=r),void 0!==i&&(Bi=i),void 0!==o&&(Ri=o),void 0!==a&&(Fi=a),void 0!==e.rtl&&(Vi=e.rtl)},destroy:function(){Object.keys(zi).forEach((function(e){Promise.resolve(zi[e]).then((function(e){e.destroy()})),delete zi[e]}))}};["success","info","warning","error"].forEach((function(e){Ji[e]=function(t){return Ji.open(D(D({},t),{type:e}))}})),Ji.warn=Ji.warning,Ji.useNotification=function(e,t){return function(){var n,r=null,i=oe(it({add:function(e,t){null==r||r.component.add(e,t)}}),2),o=i[0],a=i[1];var s=y.useRef({});return s.current.open=function(i){var a=i.prefixCls,s=n("notification",a);e(D(D({},i),{prefixCls:s}),(function(e){var n=e.prefixCls,a=e.instance;r=a,o(t(i,n))}))},["success","info","warning","error"].forEach((function(e){s.current[e]=function(t){return s.current.open(D(D({},t),{type:e}))}})),[s.current,y.createElement(Hn,{key:"holder"},(function(e){return n=e.getPrefixCls,a}))]}}(Gi,Ki);var Xi,Zi=Ji,Qi=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","form"];function eo(){return Xi||"ant"}var to=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(eo(),"-").concat(e):eo())},getRootPrefixCls:function(e,t){return e||(Xi||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):eo()))}}},no=function(e){var t,n,r=e.children,i=e.csp,o=e.autoInsertSpaceInButton,a=e.form,s=e.locale,l=e.componentSize,c=e.direction,u=e.space,d=e.virtual,h=e.dropdownMatchSelectWidth,f=e.legacyLocale,p=e.parentContext,g=e.iconPrefixCls,m=y.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var i=r||p.getPrefixCls("");return t?"".concat(i,"-").concat(t):i}),[p.getPrefixCls,e.prefixCls]),v=D(D({},p),{csp:i,autoInsertSpaceInButton:o,locale:s||f,direction:c,space:u,virtual:d,dropdownMatchSelectWidth:h,getPrefixCls:m});Qi.forEach((function(t){var n=e[t];n&&(v[t]=n)}));var b=function(e,t,n){var r=y.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}((function(){return v}),v,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),w=y.useMemo((function(){return{prefixCls:g,csp:i}}),[g]),_=r,x={};return s&&(x=(null===(t=s.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=On.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),a&&a.validateMessages&&(x=D(D({},x),a.validateMessages)),Object.keys(x).length>0&&(_=y.createElement(oi,{validateMessages:x},r)),s&&(_=y.createElement(yi,{locale:s,_ANT_MARK__:vi},_)),g&&(_=y.createElement(dt.Provider,{value:w},_)),l&&(_=y.createElement(wi,{size:l},_)),y.createElement(Bn.Provider,{value:b},_)},ro=function(e){return y.useEffect((function(){e.direction&&(_o.config({rtl:"rtl"===e.direction}),Zi.config({rtl:"rtl"===e.direction}))}),[e.direction]),y.createElement(Dn,null,(function(t,n,r){return y.createElement(Hn,null,(function(t){return y.createElement(no,D({parentContext:t,legacyLocale:r},e))}))}))};ro.ConfigContext=Bn,ro.SizeContext=_i,ro.config=function(e){void 0!==e.prefixCls&&(Xi=e.prefixCls)};var io,oo,ao,so,lo=ro,co=3,uo=1,ho="",fo="move-up",po=!1,go=!1;function mo(e,t){var n=e.prefixCls,r=to(),i=r.getPrefixCls,o=r.getRootPrefixCls,a=i("message",n||ho),s=o(e.rootPrefixCls,a);if(io)t({prefixCls:a,rootPrefixCls:s,instance:io});else{var l={prefixCls:a,transitionName:po?fo:"".concat(s,"-").concat(fo),style:{top:oo},getContainer:ao,maxCount:so};ct.newInstance(l,(function(e){io?t({prefixCls:a,rootPrefixCls:s,instance:io}):(io=e,t({prefixCls:a,rootPrefixCls:s,instance:e}))}))}}var vo={info:Cn,success:_n,error:yn,warning:gn,loading:hn};function yo(e,t){var n,r=void 0!==e.duration?e.duration:co,i=vo[e.type],o=Y()("".concat(t,"-custom-content"),(F(n={},"".concat(t,"-").concat(e.type),e.type),F(n,"".concat(t,"-rtl"),!0===go),n));return{key:e.key,duration:r,style:e.style||{},className:e.className,content:y.createElement("div",{className:o},e.icon||i&&y.createElement(i,null),y.createElement("span",null,e.content)),onClose:e.onClose,onClick:e.onClick}}var bo={open:function(e){var t=e.key||uo++,n=new Promise((function(n){var r=function(){return"function"==typeof e.onClose&&e.onClose(),n(!0)};mo(e,(function(n){var i=n.prefixCls;n.instance.notice(yo(D(D({},e),{key:t,onClose:r}),i))}))})),r=function(){io&&io.removeNotice(t)};return r.then=function(e,t){return n.then(e,t)},r.promise=n,r},config:function(e){void 0!==e.top&&(oo=e.top,io=null),void 0!==e.duration&&(co=e.duration),void 0!==e.prefixCls&&(ho=e.prefixCls),void 0!==e.getContainer&&(ao=e.getContainer),void 0!==e.transitionName&&(fo=e.transitionName,io=null,po=!0),void 0!==e.maxCount&&(so=e.maxCount,io=null),void 0!==e.rtl&&(go=e.rtl)},destroy:function(e){if(io)if(e){(0,io.removeNotice)(e)}else{var t=io.destroy;t(),io=null}}};function wo(e,t){e[t]=function(n,r,i){return function(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}(n)?e.open(D(D({},n),{type:t})):("function"==typeof r&&(i=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:i}))}}["success","info","warning","error","loading"].forEach((function(e){return wo(bo,e)})),bo.warn=bo.warning,bo.useMessage=function(e,t){return function(){var n,r=null,i=oe(it({add:function(e,t){null==r||r.component.add(e,t)}}),2),o=i[0],a=i[1];var s=y.useRef({});return s.current.open=function(i){var a=i.prefixCls,s=n("message",a),l=n(),c=i.key||uo++,u=new Promise((function(n){var a=function(){return"function"==typeof i.onClose&&i.onClose(),n(!0)};e(D(D({},i),{prefixCls:s,rootPrefixCls:l}),(function(e){var n=e.prefixCls,s=e.instance;r=s,o(t(D(D({},i),{key:c,onClose:a}),n))}))})),d=function(){r&&r.removeNotice(c)};return d.then=function(e,t){return u.then(e,t)},d.promise=u,d},["success","info","warning","error","loading"].forEach((function(e){return wo(s.current,e)})),[s.current,y.createElement(Hn,{key:"holder"},(function(e){return n=e.getPrefixCls,a}))]}}(mo,yo);var _o=bo;function xo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Eo(e){return!!e&&!!e[da]}function Co(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Function.toString.call(n)===ha}(e)||Array.isArray(e)||!!e[ua]||!!e.constructor[ua]||Ao(e)||Do(e))}function ko(e,t,n){void 0===n&&(n=!1),0===So(e)?(n?Object.keys:fa)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function So(e){var t=e[da];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ao(e)?2:Do(e)?3:0}function To(e,t){return 2===So(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Mo(e,t){return 2===So(e)?e.get(t):e[t]}function Oo(e,t,n){var r=So(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Lo(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ao(e){return aa&&e instanceof Map}function Do(e){return sa&&e instanceof Set}function No(e){return e.o||e.t}function Po(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=pa(e);delete t[da];for(var n=fa(t),r=0;r<n.length;r++){var i=n[r],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Io(e,t){return void 0===t&&(t=!1),Ro(e)||Eo(e)||!Co(e)||(So(e)>1&&(e.set=e.add=e.clear=e.delete=jo),Object.freeze(e),t&&ko(e,(function(e,t){return Io(t,!0)}),!0)),e}function jo(){xo(2)}function Ro(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Fo(e){var t=ga[e];return t||xo(18,e),t}function zo(e,t){ga[e]||(ga[e]=t)}function Yo(){return ia}function Bo(e,t){t&&(Fo("Patches"),e.u=[],e.s=[],e.v=t)}function Ho(e){qo(e),e.p.forEach(Vo),e.p=null}function qo(e){e===ia&&(ia=e.l)}function Uo(e){return ia={p:[],l:ia,h:e,m:!0,_:0}}function Vo(e){var t=e[da];0===t.i||1===t.i?t.j():t.g=!0}function Wo(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||Fo("ES5").S(t,e,r),r?(n[da].P&&(Ho(t),xo(4)),Co(e)&&(e=Go(t,e),t.l||Ko(t,e)),t.u&&Fo("Patches").M(n[da],e,t.u,t.s)):e=Go(t,n,[]),Ho(t),t.u&&t.v(t.u,t.s),e!==ca?e:void 0}function Go(e,t,n){if(Ro(t))return t;var r=t[da];if(!r)return ko(t,(function(i,o){return $o(e,r,t,i,o,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Ko(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=Po(r.k):r.o;ko(3===r.i?new Set(i):i,(function(t,o){return $o(e,r,i,t,o,n)})),Ko(e,i,!1),n&&e.u&&Fo("Patches").R(r,n,e.u,e.s)}return r.o}function $o(e,t,n,r,i,o){if(Eo(i)){var a=Go(e,i,o&&t&&3!==t.i&&!To(t.D,r)?o.concat(r):void 0);if(Oo(n,r,a),!Eo(a))return;e.m=!1}if(Co(i)&&!Ro(i)){if(!e.h.F&&e._<1)return;Go(e,i),t&&t.A.l||Ko(e,i)}}function Ko(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Io(t,n)}function Jo(e,t){var n=e[da];return(n?No(n):e)[t]}function Xo(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Zo(e){e.P||(e.P=!0,e.l&&Zo(e.l))}function Qo(e){e.o||(e.o=Po(e.t))}function ea(e,t,n){var r=Ao(t)?Fo("MapSet").N(t,n):Do(t)?Fo("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Yo(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,o=ma;n&&(i=[r],o=va);var a=Proxy.revocable(i,o),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):Fo("ES5").J(t,n);return(n?n.A:Yo()).p.push(r),r}function ta(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Po(e)}function na(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[da];return ma.get(t,e)},set:function(t){var n=this[da];ma.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var i=e[t][da];if(!i.P)switch(i.i){case 5:r(i)&&Zo(i);break;case 4:n(i)&&Zo(i)}}}function n(e){for(var t=e.t,n=e.k,r=fa(n),i=r.length-1;i>=0;i--){var o=r[i];if(o!==da){var a=t[o];if(void 0===a&&!To(t,o))return!0;var s=n[o],l=s&&s[da];if(l?l.t!==a:!Lo(s,a))return!0}}var c=!!t[da];return r.length!==fa(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}var i={};zo("ES5",{J:function(t,n){var r=Array.isArray(t),i=function(t,n){if(t){for(var r=Array(n.length),i=0;i<n.length;i++)Object.defineProperty(r,""+i,e(i,!0));return r}var o=pa(n);delete o[da];for(var a=fa(o),s=0;s<a.length;s++){var l=a[s];o[l]=e(l,t||!!o[l].enumerable)}return Object.create(Object.getPrototypeOf(n),o)}(r,t),o={i:r?5:4,A:n?n.A:Yo(),P:!1,I:!1,D:{},l:n,t:t,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,da,{value:o,writable:!0}),i},S:function(e,n,i){i?Eo(n)&&n[da].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[da];if(n){var i=n.t,o=n.k,a=n.D,s=n.i;if(4===s)ko(o,(function(t){t!==da&&(void 0!==i[t]||To(i,t)?a[t]||e(o[t]):(a[t]=!0,Zo(n)))})),ko(i,(function(e){void 0!==o[e]||To(o,e)||(a[e]=!1,Zo(n))}));else if(5===s){if(r(n)&&(Zo(n),a.length=!0),o.length<i.length)for(var l=o.length;l<i.length;l++)a[l]=!1;else for(var c=i.length;c<o.length;c++)a[c]=!0;for(var u=Math.min(o.length,i.length),d=0;d<u;d++)void 0===a[d]&&e(o[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}var ra,ia,oa="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),aa="undefined"!=typeof Map,sa="undefined"!=typeof Set,la="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ca=oa?Symbol.for("immer-nothing"):((ra={})["immer-nothing"]=!0,ra),ua=oa?Symbol.for("immer-draftable"):"__$immer_draftable",da=oa?Symbol.for("immer-state"):"__$immer_state",ha=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),fa="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,pa=Object.getOwnPropertyDescriptors||function(e){var t={};return fa(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ga={},ma={get:function(e,t){if(t===da)return e;var n=No(e);if(!To(n,t))return function(e,t,n){var r,i=Xo(t,n);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Co(r)?r:r===Jo(e.t,t)?(Qo(e),e.o[t]=ea(e.A.h,r,e)):r},has:function(e,t){return t in No(e)},ownKeys:function(e){return Reflect.ownKeys(No(e))},set:function(e,t,n){var r=Xo(No(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Jo(No(e),t),o=null==i?void 0:i[da];if(o&&o.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(Lo(n,i)&&(void 0!==n||To(e.t,t)))return!0;Qo(e),Zo(e)}return e.o[t]===n&&"number"!=typeof n||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==Jo(e.t,t)||t in e.t?(e.D[t]=!1,Qo(e),Zo(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=No(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){xo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){xo(12)}},va={};ko(ma,(function(e,t){va[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),va.deleteProperty=function(e,t){return ma.deleteProperty.call(this,e[0],t)},va.set=function(e,t,n){return ma.set.call(this,e[0],t,n,e[0])};var ya=function(){function e(e){var t=this;this.O=la,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var i=n;n=e;var o=t;return function(e){var t=this;void 0===e&&(e=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return o.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&xo(6),void 0!==r&&"function"!=typeof r&&xo(7),Co(e)){var s=Uo(t),l=ea(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?Ho(s):qo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Bo(s,r),Wo(e,s)}),(function(e){throw Ho(s),e})):(Bo(s,r),Wo(a,s))}if(!e||"object"!=typeof e){if((a=n(e))===ca)return;return void 0===a&&(a=e),t.F&&Io(a,!0),a}xo(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Co(e)||xo(8),Eo(e)&&(e=function(e){return Eo(e)||xo(22,e),function e(t){if(!Co(t))return t;var n,r=t[da],i=So(t);if(r){if(!r.P&&(r.i<4||!Fo("ES5").K(r)))return r.t;r.I=!0,n=ta(t,i),r.I=!1}else n=ta(t,i);return ko(n,(function(t,i){r&&Mo(r.t,t)===i||Oo(n,t,e(i))})),3===i?new Set(n):n}(e)}(e));var t=Uo(this),n=ea(this,e,void 0);return n[da].C=!0,qo(t),n},t.finishDraft=function(e,t){var n=(e&&e[da]).A;return Bo(n,t),Wo(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!la&&xo(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var i=Fo("Patches").$;return Eo(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(n+1))}))},e}(),ba=new ya,wa=ba.produce,_a=(ba.produceWithPatches.bind(ba),ba.setAutoFreeze.bind(ba),ba.setUseProxies.bind(ba),ba.applyPatches.bind(ba),ba.createDraft.bind(ba),ba.finishDraft.bind(ba),wa),xa=__webpack_require__(93913),Ea=__webpack_require__.n(xa),Ca=__webpack_require__(34575),ka=__webpack_require__.n(Ca),Sa=__webpack_require__(50008),Ta=__webpack_require__.n(Sa);function Ma(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Oa="function"==typeof Symbol&&Symbol.observable||"@@observable",La=function(){return Math.random().toString(36).substring(7).split("").join(".")},Aa={INIT:"@@redux/INIT"+La(),REPLACE:"@@redux/REPLACE"+La(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+La()}};function Da(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Na(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Ma(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Ma(1));return n(Na)(e,t)}if("function"!=typeof e)throw new Error(Ma(2));var i=e,o=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(Ma(3));return o}function d(e){if("function"!=typeof e)throw new Error(Ma(4));if(l)throw new Error(Ma(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(Ma(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function h(e){if(!Da(e))throw new Error(Ma(7));if(void 0===e.type)throw new Error(Ma(8));if(l)throw new Error(Ma(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return h({type:Aa.INIT}),(r={dispatch:h,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ma(10));i=e,h({type:Aa.REPLACE})}})[Oa]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Ma(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Oa]=function(){return this},e},r}function Pa(e){if("object"!==Ta()(e)||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var Ia=Ea()((function e(t,n,r){var i,o,a=this;ka()(this,e),this.Dispatch={},this.State={};var s={},l={},c={},u={};Object.keys(t).forEach((function(e){u[e]=t[e].reducers,c[e]=t[e].initialState;Object.defineProperty(a.State,e,{get:function(){return function(e){return a.redux.getState()[e]}(e)},set:function(){throw new Error("[Imdux] Do not modify value of store directly, use dispatch instead.")}})}));!function e(t,n,r){Object.keys(t).forEach((function(i){if("refs"===i.toLowerCase())throw new Error("Cannot use reducer name 'refs'");var o=t[i],l=""===n?i:n+"/"+i;"function"==typeof o?(s[l]=function(e,t){return _a(e,(function(e){return o(t.payload,{draft:e})}))},r[i]=function(e){(function(e){return Array.isArray(e)||Pa(e)||function(e){return"boolean"==typeof e||"number"==typeof e||"string"==typeof e||null===e}(e)})(e)||(e=void 0),a.redux.dispatch({type:l,payload:e})}):(r[i]={},e(o,l,r[i]))}))}(u,"",this.Dispatch),Object.keys(t).forEach((function(e){l[e]=function(t,n){return n.type.split("/")[0]===e&&s[n.type]?s[n.type](t,n):t}}));var d={};!function e(t,n){Object.keys(t).forEach((function(i){var o=t[i],s="".concat(n,"/").concat(i);if(null===o){d[s]=o;var l=function(e,t){null!=r&&r.devtool&&null!=r&&r.showRefChanges&&a.redux.dispatch({type:"".concat(s,"/").concat(t)})};Object.defineProperty(t,i,{get:function(){return d[s]},set:function(e){e!==d[s]&&(null!==e&&null===d[s]?l(0,"mount"):null===e&&null!==d[s]?l(0,"unmount"):null!==e&&null!==d[s]?l(0,"update"):l(0,"unknown"),d[s]=e)}})}else{if(!Pa(o))throw new Error("Not support ".concat(Ta()(o)," type in refs."));e(o,s)}}))}(n,"refs");this.redux=Na((function(e,t){return void 0===e?c:void 0!==s[t.type]?s[t.type](e,t):e}),null!=r&&r.devtool?null===(i=(o=window).__REDUX_DEVTOOLS_EXTENSION__)||void 0===i?void 0:i.call(o,{trace:!0,name:r.name}):function(e){return e})}));var ja="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function Ra(e,t){return e(t={exports:{}},t.exports),t.exports}var Fa=Ra((function(e){var t,n;t=ja,n=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0].match(/^file:\/\/\//)?e[0]=e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0]=e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=r<e.length-1?i.replace(/[\/]+$/,""):i.replace(/[\/]+$/,"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()})),za=Object.prototype.hasOwnProperty,Ya=Array.isArray,Ba=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Ha=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},qa={arrayToObject:Ha,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],c=o[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:o,prop:l}),n.push(c))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Ya(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",o=0;o<r.length;++o){var a=r.charCodeAt(o);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(o):a<128?i+=Ba[a]:a<2048?i+=Ba[192|a>>6]+Ba[128|63&a]:a<55296||a>=57344?i+=Ba[224|a>>12]+Ba[128|a>>6&63]+Ba[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(o)),i+=Ba[240|a>>18]+Ba[128|a>>12&63]+Ba[128|a>>6&63]+Ba[128|63&a])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Ya(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(Ya(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!za.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var i=t;return Ya(t)&&!Ya(n)&&(i=Ha(t,r)),Ya(t)&&Ya(n)?(n.forEach((function(n,i){if(za.call(t,i)){var o=t[i];o&&"object"==typeof o&&n&&"object"==typeof n?t[i]=e(o,n,r):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var o=n[i];return za.call(t,i)?t[i]=e(t[i],o,r):t[i]=o,t}),i)}},Ua=String.prototype.replace,Va=/%20/g,Wa={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ga=qa.assign({default:Wa.RFC3986,formatters:{RFC1738:function(e){return Ua.call(e,Va,"+")},RFC3986:function(e){return String(e)}}},Wa),$a=Object.prototype.hasOwnProperty,Ka={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Ja=Array.isArray,Xa=Array.prototype.push,Za=function(e,t){Xa.apply(e,Ja(t)?t:[t])},Qa=Date.prototype.toISOString,es=Ga.default,ts={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:qa.encode,encodeValuesOnly:!1,format:es,formatter:Ga.formatters[es],indices:!1,serializeDate:function(e){return Qa.call(e)},skipNulls:!1,strictNullHandling:!1},ns=function e(t,n,r,i,o,a,s,l,c,u,d,h,f){var p=t;if("function"==typeof s?p=s(n,p):p instanceof Date?p=u(p):"comma"===r&&Ja(p)&&(p=qa.maybeMap(p,(function(e){return e instanceof Date?u(e):e})).join(",")),null===p){if(i)return a&&!h?a(n,ts.encoder,f,"key"):n;p=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(p)||qa.isBuffer(p))return a?[d(h?n:a(n,ts.encoder,f,"key"))+"="+d(a(p,ts.encoder,f,"value"))]:[d(n)+"="+d(String(p))];var g,m=[];if(void 0===p)return m;if(Ja(s))g=s;else{var v=Object.keys(p);g=l?v.sort(l):v}for(var y=0;y<g.length;++y){var b=g[y],w=p[b];if(!o||null!==w){var _=Ja(p)?"function"==typeof r?r(n,b):n:n+(c?"."+b:"["+b+"]");Za(m,e(w,_,r,i,o,a,s,l,c,u,d,h,f))}}return m},rs=Object.prototype.hasOwnProperty,is=Array.isArray,os={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:qa.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},as=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},ss=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},ls=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=n.depth>0&&/(\[[^[\]]*])/.exec(i),s=a?i.slice(0,a.index):i,l=[];if(s){if(!n.plainObjects&&rs.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var c=0;n.depth>0&&null!==(a=o.exec(i))&&c<n.depth;){if(c+=1,!n.plainObjects&&rs.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+i.slice(a.index)+"]"),function(e,t,n,r){for(var i=r?t:ss(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(l,10);n.parseArrays||""!==l?!isNaN(c)&&s!==l&&String(c)===l&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=i:a[l]=i:a={0:i}}i=a}return i}(l,t,n,r)}},cs=function(e,t){var n,r=e,i=function(e){if(!e)return ts;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||ts.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=Ga.default;if(void 0!==e.format){if(!$a.call(Ga.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=Ga.formatters[n],i=ts.filter;return("function"==typeof e.filter||Ja(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:ts.addQueryPrefix,allowDots:void 0===e.allowDots?ts.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:ts.charsetSentinel,delimiter:void 0===e.delimiter?ts.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:ts.encode,encoder:"function"==typeof e.encoder?e.encoder:ts.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:ts.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:ts.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:ts.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:ts.strictNullHandling}}(t);"function"==typeof i.filter?r=(0,i.filter)("",r):Ja(i.filter)&&(n=i.filter);var o,a=[];if("object"!=typeof r||null===r)return"";o=t&&t.arrayFormat in Ka?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=Ka[o];n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var l=0;l<n.length;++l){var c=n[l];i.skipNulls&&null===r[c]||Za(a,ns(r[c],c,s,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var u=a.join(i.delimiter),d=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),u.length>0?d+u:""},us=Ra((function(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}})),ds=ps;ps.default=ps,ps.stable=ms,ps.stableStringify=ms;var hs=[],fs=[];function ps(e,t,n){var r;for(function e(t,n,r,i){var o;if("object"==typeof t&&null!==t){for(o=0;o<r.length;o++)if(r[o]===t){var a=Object.getOwnPropertyDescriptor(i,n);return void(void 0!==a.get?a.configurable?(Object.defineProperty(i,n,{value:"[Circular]"}),hs.push([i,n,t,a])):fs.push([t,n]):(i[n]="[Circular]",hs.push([i,n,t])))}if(r.push(t),Array.isArray(t))for(o=0;o<t.length;o++)e(t[o],o,r,t);else{var s=Object.keys(t);for(o=0;o<s.length;o++){var l=s[o];e(t[l],l,r,t)}}r.pop()}}(e,"",[],void 0),r=0===fs.length?JSON.stringify(e,t,n):JSON.stringify(e,vs(t),n);0!==hs.length;){var i=hs.pop();4===i.length?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}return r}function gs(e,t){return e<t?-1:e>t?1:0}function ms(e,t,n){var r,i=function e(t,n,r,i){var o;if("object"==typeof t&&null!==t){for(o=0;o<r.length;o++)if(r[o]===t){var a=Object.getOwnPropertyDescriptor(i,n);return void(void 0!==a.get?a.configurable?(Object.defineProperty(i,n,{value:"[Circular]"}),hs.push([i,n,t,a])):fs.push([t,n]):(i[n]="[Circular]",hs.push([i,n,t])))}if("function"==typeof t.toJSON)return;if(r.push(t),Array.isArray(t))for(o=0;o<t.length;o++)e(t[o],o,r,t);else{var s={},l=Object.keys(t).sort(gs);for(o=0;o<l.length;o++){var c=l[o];e(t[c],c,r,t),s[c]=t[c]}if(void 0===i)return s;hs.push([i,n,t]),i[n]=s}r.pop()}}(e,"",[],void 0)||e;for(r=0===fs.length?JSON.stringify(i,t,n):JSON.stringify(i,vs(t),n);0!==hs.length;){var o=hs.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}return r}function vs(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(fs.length>0)for(var r=0;r<fs.length;r++){var i=fs[r];if(i[1]===t&&i[0]===n){n="[Circular]",fs.splice(r,1);break}}return e.call(this,t,n)}}function ys(e){return(ys="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 bs=function(e){return null!==e&&"object"===ys(e)};function ws(e){return(ws="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 _s=xs;function xs(e){if(e)return function(e){for(var t in xs.prototype)Object.prototype.hasOwnProperty.call(xs.prototype,t)&&(e[t]=xs.prototype[t]);return e}(e)}xs.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},xs.prototype.parse=function(e){return this._parser=e,this},xs.prototype.responseType=function(e){return this._responseType=e,this},xs.prototype.serialize=function(e){return this._serializer=e,this},xs.prototype.timeout=function(e){if(!e||"object"!==ws(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},xs.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var Es=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];xs.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&Es.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},xs.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},xs.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},xs.prototype.catch=function(e){return this.then(void 0,e)},xs.prototype.use=function(e){return e(this),this},xs.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},xs.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},xs.prototype.get=function(e){return this._header[e.toLowerCase()]},xs.prototype.getHeader=xs.prototype.get,xs.prototype.set=function(e,t){if(bs(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},xs.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},xs.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(bs(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},xs.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},xs.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},xs.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},xs.prototype.redirects=function(e){return this._maxRedirects=e,this},xs.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},xs.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},xs.prototype.send=function(e){var t=bs(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&bs(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},xs.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},xs.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},xs.prototype._appendQueryString=function(){console.warn("Unsupported")},xs.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},xs.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var Cs=ks;function ks(e){if(e)return function(e){for(var t in ks.prototype)Object.prototype.hasOwnProperty.call(ks.prototype,t)&&(e[t]=ks.prototype[t]);return e}(e)}function Ss(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 Ts(){this._defaults=[]}ks.prototype.get=function(e){return this.header[e.toLowerCase()]},ks.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=t.split(/ *; */).shift();var n=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),i=n.shift();return r&&i&&(e[r]=i),e}),{})}(t);for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(this[r]=n[r]);this.links={};try{e.link&&(this.links=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})}(e.link))}catch(e){}},ks.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){Ts.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}})),Ts.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,function(e){return function(e){if(Array.isArray(e))return Ss(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ss(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ss(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.args))}))};for(var Ms=Ts,Os=Ra((function(e,t){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)}var r;function i(){}"undefined"!=typeof window?r=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),r=void 0):r=self,e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var o=t=e.exports;t.Request=h,o.getXHR=function(){if(r.XMLHttpRequest&&(!r.location||"file:"!==r.location.protocol||!r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var a="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function s(e){if(!bs(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&l(t,n,e[n]);return t.join("&")}function l(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){l(e,t,n)}));else if(bs(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&l(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function c(e){for(var t,n,r={},i=e.split("&"),o=0,a=i.length;o<a;++o)-1===(n=(t=i[o]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function u(e){return/[/+]json($|[^-\w])/.test(e)}function d(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,i,o=e.split(/\r?\n/),s={},l=0,c=o.length;l<c;++l)-1!==(t=(n=o[l]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),i=a(n.slice(t+1)),s[r]=i);return s}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function h(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new d(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function f(e,t,n){var r=o("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}o.serializeObject=s,o.parseString=c,o.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},o.serialize={"application/x-www-form-urlencoded":s,"application/json":ds},o.parse={"application/x-www-form-urlencoded":c,"application/json":JSON.parse},Cs(d.prototype),d.prototype._parseBody=function(e){var t=o.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&u(this.type)&&(t=o.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},d.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},o.Response=d,us(h.prototype),_s(h.prototype),h.prototype.type=function(e){return this.set("Content-Type",o.types[e]||e),this},h.prototype.accept=function(e){return this.set("Accept",o.types[e]||e),this},h.prototype.auth=function(e,t,r){1===arguments.length&&(t=""),"object"===n(t)&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});return this._auth(e,t,r,(function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")}))},h.prototype.query=function(e){return"string"!=typeof e&&(e=s(e)),e&&this._query.push(e),this},h.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},h.prototype._getFormData=function(){return this._formData||(this._formData=new r.FormData),this._formData},h.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},h.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},h.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},h.prototype.ca=h.prototype.agent,h.prototype.buffer=h.prototype.ca,h.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},h.prototype.pipe=h.prototype.write,h.prototype._isHost=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},h.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||i,this._finalizeQueryString(),this._end()},h.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},h.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=o.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],a=this._serializer||o.serialize[i?i.split(";")[0]:""];!a&&u(i)&&(a=o.serialize["application/json"]),a&&(n=a(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},o.agent=function(){return new Ms},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){Ms.prototype[e.toLowerCase()]=function(t,n){var r=new o.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),Ms.prototype.del=Ms.prototype.delete,o.get=function(e,t,n){var r=o("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},o.head=function(e,t,n){var r=o("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},o.options=function(e,t,n){var r=o("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},o.del=f,o.delete=f,o.patch=function(e,t,n){var r=o("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},o.post=function(e,t,n){var r=o("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},o.put=function(e,t,n){var r=o("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}})),Ls=(Os.Request,[]),As=[],Ds=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),Ns=0;Ns<64;++Ns)Ls[Ns]=Ds[Ns],As[Ds.charCodeAt(Ns)]=Ns;function Ps(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 Is(e,t,n){for(var r,i,o=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(Ls[(i=r)>>18&63]+Ls[i>>12&63]+Ls[i>>6&63]+Ls[63&i]);return o.join("")}As["-".charCodeAt(0)]=62,As["_".charCodeAt(0)]=63;var js=function(e){for(var t,n=e.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(Is(e,o,o+16383>a?a:o+16383));return 1===r?(t=e[n-1],i.push(Ls[t>>2]+Ls[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(Ls[t>>10]+Ls[t>>4&63]+Ls[t<<2&63]+"=")),i.join("")},Rs=function(e){return js(function(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e)).replace(/\+/g,"-").replace(/\//g,"_")},Fs={raw:"9.16.2"},zs=Object.prototype.toString;function Ys(e,t,n,r){if(n="array"===n?"object":n,e&&typeof e[t]!==n)throw new Error(r)}function Bs(e,t,n){if(typeof e!==t)throw new Error(n)}function Hs(e,t,n){if(-1===t.indexOf(e))throw new Error(n)}var qs={check:function(e,t,n){if(t.optional&&!e||Bs(e,t.type,t.message),"object"===t.type&&n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i];n[o].optional&&!e[o]||n[o].condition&&!n[o].condition(e)||(Ys(e,o,n[o].type,n[o].message),n[o].values&&Hs(e[o],n[o].values,n[o].value_message))}},attribute:Ys,variable:Bs,value:Hs,isArray:function(e){return this.supportsIsArray()?Array.isArray(e):"[object Array]"===zs.call(e)},supportsIsArray:function(){return null!=Array.isArray}};function Us(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i=Object.keys(Object(r)),o=0,a=i.length;o<a;o++){var s=i[o],l=Object.getOwnPropertyDescriptor(r,s);void 0!==l&&l.enumerable&&(t[s]=r[s])}}return t}var Vs={get:function(){return Object.assign?Object.assign:Us},objectAssignPolyfill:Us};function Ws(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})}function Gs(){var e=function(e){var t=[];for(var n in e)t.push(e[n]);return t}(arguments);return e.unshift({}),Vs.get().apply(void 0,e)}function $s(e){var t=e.match(/^(https?:|file:|chrome-extension:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return t&&{href:e,protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}}function Ks(e,t){var n=Gs(e);return e[t]&&(n[t]=e[t].trim()),n}var Js={toSnakeCase:function e(t,n){return"object"!=typeof t||qs.isArray(t)||null===t?t:(n=n||[],Object.keys(t).reduce((function(r,i){return r[-1===n.indexOf(i)?function(e){for(var t,n="",r=0,i=!0,o=!0;r<e.length;)t=e.charCodeAt(r),!o&&t>=65&&t<=90||!i&&t>=48&&t<=57?(n+="_",n+=e[r].toLowerCase()):n+=e[r].toLowerCase(),i=t>=48&&t<=57,o=t>=65&&t<=90,r++;return n}(i):i]=e(t[i]),r}),{}))},toCamelCase:function e(t,n,r){return"object"!=typeof t||qs.isArray(t)||null===t?t:(n=n||[],r=r||{},Object.keys(t).reduce((function(i,o){var a,s=-1===n.indexOf(o)?(a=o.split("_")).reduce((function(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)}),a.shift()):o;return i[s]=e(t[s]||t[o],[],r),r.keepOriginal&&(i[o]=e(t[o],[],r)),i}),{}))},blacklist:function(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})},merge:function(e,t){return{base:t?Ws(e,t):e,with:function(e,t){return e=t?Ws(e,t):e,Gs(this.base,e)}}},pick:Ws,getKeysNotIn:function(e,t){var n=[];for(var r in e)-1===t.indexOf(r)&&n.push(r);return n},extend:Gs,getOriginFromUrl:function(e){if(e){var t=$s(e);if(!t)return null;var n=t.protocol+"//"+t.hostname;return t.port&&(n+=":"+t.port),n}},getLocationFromUrl:$s,trimUserDetails:function(e){return function(e,t){return["username","email","phoneNumber"].reduce(Ks,e)}(e)},updatePropertyOn:function e(t,n,r){"string"==typeof n&&(n=n.split("."));var i=n[0];t.hasOwnProperty(i)&&(1===n.length?t[i]=r:e(t[i],n.slice(1),r))}};function Xs(e){this.request=e,this.method=e.method,this.url=e.url,this.body=e._data,this.headers=e._header}function Zs(e){this.request=e}function Qs(e){this._sendTelemetry=!1!==e._sendTelemetry||e._sendTelemetry,this._telemetryInfo=e._telemetryInfo||null,this._timesToRetryFailedRequests=e._timesToRetryFailedRequests,this.headers=e.headers||{},this._universalLoginPage=e.universalLoginPage}function el(){return window}Xs.prototype.abort=function(){this.request.abort()},Xs.prototype.getMethod=function(){return this.method},Xs.prototype.getBody=function(){return this.body},Xs.prototype.getUrl=function(){return this.url},Xs.prototype.getHeaders=function(){return this.headers},Zs.prototype.set=function(e,t){return this.request=this.request.set(e,t),this},Zs.prototype.send=function(e){return this.request=this.request.send(Js.trimUserDetails(e)),this},Zs.prototype.withCredentials=function(){return this.request=this.request.withCredentials(),this},Zs.prototype.end=function(e){return this.request.end(e),new Xs(this.request)},Qs.prototype.setCommonConfiguration=function(e,t){if(t=t||{},this._timesToRetryFailedRequests>0&&(e=e.retry(this._timesToRetryFailedRequests)),t.noHeaders)return e;var n=this.headers;e=e.set("Content-Type","application/json");for(var r=Object.keys(this.headers),i=0;i<r.length;i++)e=e.set(r[i],n[r[i]]);return this._sendTelemetry&&(e=e.set("Auth0-Client",this.getTelemetryData())),e},Qs.prototype.getTelemetryData=function(){var e=this._universalLoginPage?"auth0.js-ulp":"auth0.js",t={name:e,version:Fs.raw};this._telemetryInfo&&((t=Js.extend({},this._telemetryInfo)).env=Js.extend({},this._telemetryInfo.env),t.env[e]=Fs.raw);var n=JSON.stringify(t);return Rs(n)},Qs.prototype.get=function(e,t){return new Zs(this.setCommonConfiguration(Os.get(e),t))},Qs.prototype.post=function(e,t){return new Zs(this.setCommonConfiguration(Os.post(e),t))},Qs.prototype.patch=function(e,t){return new Zs(this.setCommonConfiguration(Os.patch(e),t))};var tl={redirect:function(e){el().location=e},getDocument:function(){return el().document},getWindow:el,getOrigin:function(){var e=el().location,t=e.origin;return t||(t=Js.getOriginFromUrl(e.href)),t}};function nl(){}nl.prototype.getItem=function(){return null},nl.prototype.removeItem=function(){},nl.prototype.setItem=function(){};var rl=Ra((function(e,t){var n;n=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 o(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}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 l in o)o[l]&&(s+="; "+l,!0!==o[l]&&(s+="="+o[l].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),l=s.slice(1).join("=");n||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(s[0]);if(l=(r.read||r)(l,c)||t(l),n)try{l=JSON.parse(l)}catch(e){}if(i[c]=l,e===c)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,n){o(t,"",e(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))},e.exports=n()}));function il(){}function ol(e){this.disableWarnings=e.disableWarnings}function al(e){if(this.warn=new ol({}),this.storage=new il,!0===e.__tryLocalStorageFirst)try{var t=tl.getWindow().localStorage;t&&(this.storage=t)}catch(e){this.warn.warning(e),this.warn.warning("Can't use localStorage. Using CookieStorage instead.")}}function sl(e){this.handler=new al(e)}function ll(e){this.storage=new sl(e)}function cl(e,t){return{error:e,errorDescription:t}}il.prototype.getItem=function(e){return rl.get(e)},il.prototype.removeItem=function(e){rl.remove(e)},il.prototype.setItem=function(e,t,n){var r=Js.extend({expires:1},n);"https:"===tl.getWindow().location.protocol&&(r.secure=!0),rl.set(e,t,r)},ol.prototype.warning=function(e){this.disableWarnings||console.warn(e)},al.prototype.failover=function(){this.storage instanceof nl?this.warn.warning("DummyStorage: ignore failover"):this.storage instanceof il?(this.warn.warning("CookieStorage: failing over DummyStorage"),this.storage=new nl):(this.warn.warning("LocalStorage: failing over CookieStorage"),this.storage=new il)},al.prototype.getItem=function(e){try{return this.storage.getItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.getItem(e)}},al.prototype.removeItem=function(e){try{return this.storage.removeItem(e)}catch(t){return this.warn.warning(t),this.failover(),this.removeItem(e)}},al.prototype.setItem=function(e,t,n){try{return this.storage.setItem(e,t,n)}catch(r){return this.warn.warning(r),this.failover(),this.setItem(e,t,n)}},sl.prototype.getItem=function(e){var t=this.handler.getItem(e);try{return JSON.parse(t)}catch(e){return t}},sl.prototype.removeItem=function(e){return this.handler.removeItem(e)},sl.prototype.setItem=function(e,t,n){var r=JSON.stringify(t);return this.handler.setItem(e,r,n)},ll.prototype.set=function(e,t){var n={lastUsedConnection:e,lastUsedSub:t};this.storage.setItem("auth0.ssodata",JSON.stringify(n))},ll.prototype.get=function(){var e=this.storage.getItem("auth0.ssodata");if(e)return JSON.parse(e)};var ul={buildResponse:cl,invalidToken:function(e){return cl("invalid_token",e)}};function dl(e,t){return(t=t||{}).ignoreCasing=!!t.ignoreCasing&&t.ignoreCasing,function(n,r){var i;return n||r?(!n&&r.err&&(n=r.err,r=null),!n&&r.error&&(n=r,r=null),n?(i={original:n},Js.updatePropertyOn(i,"original.response.req._data.password","*****"),n.response&&n.response.statusCode&&(i.statusCode=n.response.statusCode),n.response&&n.response.statusText&&(i.statusText=n.response.statusText),n.response&&n.response.body&&(n=n.response.body),n.err&&(n=n.err),i.code=n.code||n.error||n.error_code||n.status||null,i.description=n.errorDescription||n.error_description||n.description||n.error||n.details||n.err||null,t.forceLegacyError&&(i.error=i.code,i.error_description=i.description),n.error_codes&&n.error_details&&(i.errorDetails={codes:n.error_codes,details:n.error_details}),n.name&&(i.name=n.name),n.policy&&(i.policy=n.policy),e(i)):!r.type||"text/html"!==r.type&&"text/plain"!==r.type?t.ignoreCasing?e(null,r.body||r):e(null,Js.toCamelCase(r.body||r,[],{keepOriginal:t.keepOriginalCasing})):e(null,r.text)):e(ul.buildResponse("generic_error","Something went wrong"))}}var hl=["realm","audience","otp","client_id","client_secret","redirect_uri","scope","code","grant_type","username","password","refresh_token","assertion","client_assertion","client_assertion_type","code_verifier"],fl=["connection","connection_scope","auth0Client","owp","device","realm","organization","invitation","protocol","_csrf","_intstate","login_ticket","client_id","response_type","response_mode","redirect_uri","audience","scope","state","nonce","display","prompt","screen_hint","max_age","ui_locales","claims_locales","id_token_hint","login_hint","acr_values","claims","registration","request","request_uri","code_challenge","code_challenge_method","access_type","display"],pl=function(e,t){return Js.pick(t,hl)},gl=function(e,t){var n=Js.getKeysNotIn(t,fl);return n.length>0&&e.warning("Following parameters are not allowed on the `/authorize` endpoint: ["+n.join(",")+"]"),t},ml="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function vl(e){var t={exports:{}};return e(t,t.exports),t.exports}var yl=vl((function(e,t){e.exports=function(){function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,r=void 0,i=void 0,o=function(e,t){h[n]=e,h[n+1]=t,2===(n+=2)&&(i?i(f):y())},a="undefined"!=typeof window?window:void 0,s=a||{},l=s.MutationObserver||s.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),u="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var e=setTimeout;return function(){return e(f,1)}}var h=new Array(1e3);function f(){for(var e=0;e<n;e+=2)(0,h[e])(h[e+1]),h[e]=void 0,h[e+1]=void 0;n=0}var p,g,m,v,y=void 0;function b(e,t){var n=this,r=new this.constructor(x);void 0===r[_]&&N(r);var i=n._state;if(i){var a=arguments[i-1];o((function(){return A(i,r,a,n._result)}))}else O(n,r,e,t);return r}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(x);return k(t,e),t}y=c?function(){return process.nextTick(f)}:l?(g=0,m=new l(f),v=document.createTextNode(""),m.observe(v,{characterData:!0}),function(){v.data=g=++g%2}):u?((p=new MessageChannel).port1.onmessage=f,function(){return p.port2.postMessage(0)}):void 0===a?function(){try{var e=Function("return this")().require("vertx");return void 0!==(r=e.runOnLoop||e.runOnContext)?function(){r(f)}:d()}catch(e){return d()}}():d();var _=Math.random().toString(36).substring(2);function x(){}var E=void 0;function C(t,n,r){n.constructor===t.constructor&&r===b&&n.constructor.resolve===w?function(e,t){1===t._state?T(e,t._result):2===t._state?M(e,t._result):O(t,void 0,(function(t){return k(e,t)}),(function(t){return M(e,t)}))}(t,n):void 0===r?T(t,n):e(r)?function(e,t,n){o((function(e){var r=!1,i=function(n,i,o,a){try{n.call(i,(function(n){r||(r=!0,t!==n?k(e,n):T(e,n))}),(function(t){r||(r=!0,M(e,t))}))}catch(e){return e}}(n,t);!r&&i&&(r=!0,M(e,i))}),e)}(t,n,r):T(t,n)}function k(e,t){if(e===t)M(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)T(e,t);else{var n=void 0;try{n=t.then}catch(t){return void M(e,t)}C(e,t,n)}var r,i}function S(e){e._onerror&&e._onerror(e._result),L(e)}function T(e,t){e._state===E&&(e._result=t,e._state=1,0!==e._subscribers.length&&o(L,e))}function M(e,t){e._state===E&&(e._state=2,e._result=t,o(S,e))}function O(e,t,n,r){var i=e._subscribers,a=i.length;e._onerror=null,i[a]=t,i[a+1]=n,i[a+2]=r,0===a&&e._state&&o(L,e)}function L(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)i=t[a+n],(r=t[a])?A(n,r,i,o):i(o);e._subscribers.length=0}}function A(t,n,r,i){var o=e(r),a=void 0,s=void 0,l=!0;if(o){try{a=r(i)}catch(t){l=!1,s=t}if(n===a)return void M(n,new TypeError("A promises callback cannot return that same promise."))}else a=i;n._state!==E||(o&&l?k(n,a):!1===l?M(n,s):1===t?T(n,a):2===t&&M(n,a))}var D=0;function N(e){e[_]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}var P=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(x),this.promise[_]||N(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&T(this.promise,this._result))):M(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===E&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===w){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===b&&e._state!==E)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===I){var s=new n(x);a?M(s,o):C(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===E&&(this._remaining--,2===e?M(r,n):this._result[t]=n),0===this._remaining&&T(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;O(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),I=function(){function t(e){this[_]=D++,this._result=this._state=void 0,this._subscribers=[],x!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){k(e,t)}),(function(t){M(e,t)}))}catch(t){M(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();return I.prototype.then=b,I.all=function(e){return new P(this,e).promise},I.race=function(e){var n=this;return t(e)?new n((function(t,r){for(var i=e.length,o=0;o<i;o++)n.resolve(e[o]).then(t,r)})):new n((function(e,t){return t(new TypeError("You must pass an array to race."))}))},I.resolve=w,I.reject=function(e){var t=new this(x);return M(t,e),t},I._setScheduler=function(e){i=e},I._setAsap=function(e){o=e},I._asap=o,I.polyfill=function(){var e=void 0;if(void 0!==ml)e=ml;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=I},I.Promise=I,I}()})),bl=vl((function(e,t){var n;e.exports=n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++)t[r+o>>>2]|=(n[o>>>2]>>>24-o%4*8&255)<<24-(r+o)%4*8;else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++)r.push(String.fromCharCode(t[i>>>2]>>>24-i%4*8&255));return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*l,i);if(l){for(var u=0;u<l;u+=o)this._doProcessBlock(r,u);var d=r.splice(0,l);n.sigBytes-=c}return new a.init(d,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=r.algo={};return r}(Math)})),wl=vl((function(e,t){var n;e.exports=(n=bl,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),l[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],g=c[f-2];c[f]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+c[f-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+c[f-16]}var m=r&i^r&o^i&o,v=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[f]+c[f];h=d,d=u,u=s,s=a+v|0,a=o,o=i,i=r,r=v+(((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),n.SHA256)})),_l=vl((function(e,t){var n,r;e.exports=(r=(n=bl).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|l)<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)})),xl=vl((function(e,t){e.exports=bl.enc.Hex})),El=vl((function(e,t){(function(){var t;function n(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):this.fromString(e,null==t&&"string"!=typeof e?256:t))}function r(){return new n(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},t=30):i&&"Netscape"!=navigator.appName?(n.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},t=26):(n.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}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;var o,a,s=new Array;for(o="0".charCodeAt(0),a=0;a<=9;++a)s[o++]=a;for(o="a".charCodeAt(0),a=10;a<36;++a)s[o++]=a;for(o="A".charCodeAt(0),a=10;a<36;++a)s[o++]=a;function l(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function c(e,t){var n=s[e.charCodeAt(t)];return null==n?-1:n}function u(e){var t=r();return t.fromInt(e),t}function d(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}function h(e){this.m=e}function f(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}function p(e,t){return e&t}function g(e,t){return e|t}function m(e,t){return e^t}function v(e,t){return e&~t}function y(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function b(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function w(){}function _(e){return e}function x(e){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}h.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},h.prototype.revert=function(e){return e},h.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},h.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},f.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},f.prototype.revert=function(e){var t=r();return e.copyTo(t),this.reduce(t),t},f.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[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)},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)},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},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;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,o=!1,a=0;--i>=0;){var s=8==r?255&e[i]:c(e,i);s<0?"-"==e.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&n.ZERO.subTo(this,this)},n.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},n.prototype.dlShiftTo=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},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},n.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,i=this.DB-r,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},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,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},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()},n.prototype.multiplyTo=function(e,t){var r=this.abs(),i=e.abs(),o=r.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+r.t]=r.am(0,i[o],t,o,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&n.ZERO.subTo(t,t)},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()},n.prototype.divRemTo=function(e,t,i){var o=e.abs();if(!(o.t<=0)){var a=this.abs();if(a.t<o.t)return null!=t&&t.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=r());var s=r(),l=this.s,c=e.s,u=this.DB-d(o[o.t-1]);u>0?(o.lShiftTo(u,s),a.lShiftTo(u,i)):(o.copyTo(s),a.copyTo(i));var h=s.t,f=s[h-1];if(0!=f){var p=f*(1<<this.F1)+(h>1?s[h-2]>>this.F2:0),g=this.FV/p,m=(1<<this.F1)/p,v=1<<this.F2,y=i.t,b=y-h,w=null==t?r():t;for(s.dlShiftTo(b,w),i.compareTo(w)>=0&&(i[i.t++]=1,i.subTo(w,i)),n.ONE.dlShiftTo(h,w),w.subTo(s,s);s.t<h;)s[s.t++]=0;for(;--b>=0;){var _=i[--y]==f?this.DM:Math.floor(i[y]*g+(i[y-1]+v)*m);if((i[y]+=s.am(0,_,i,b,0,h))<_)for(s.dlShiftTo(b,w),i.subTo(w,i);i[y]<--_;)i.subTo(w,i)}null!=t&&(i.drShiftTo(h,t),l!=c&&n.ZERO.subTo(t,t)),i.t=h,i.clamp(),u>0&&i.rShiftTo(u,i),l<0&&n.ZERO.subTo(i,i)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(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=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(e,t){if(e>4294967295||e<1)return n.ONE;var i=r(),o=r(),a=t.convert(this),s=d(e)-1;for(a.copyTo(i);--s>=0;)if(t.sqrTo(i,o),(e&1<<s)>0)t.mulTo(o,a,i);else{var l=i;i=o,o=l}return t.revert(i)},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,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=l(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=l(n));return i?o:"0"},n.prototype.negate=function(){var e=r();return n.ZERO.subTo(this,e),e},n.prototype.abs=function(){return this.s<0?this.negate():this},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)+d(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 h(t):new f(t),this.exp(e,n)},n.ZERO=u(0),n.ONE=u(1),w.prototype.convert=_,w.prototype.revert=_,w.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},w.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.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)},x.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},x.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var E,C,k,S=[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],T=(1<<26)/S[S.length-1];function M(){var e;e=(new Date).getTime(),C[k++]^=255&e,C[k++]^=e>>8&255,C[k++]^=e>>16&255,C[k++]^=e>>24&255,k>=I&&(k-=I)}if(n.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},n.prototype.toRadix=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),o=r(),a=r(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(n+a.intValue()).toString(e).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(e)+s},n.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var r=this.chunkSize(t),i=Math.pow(t,r),o=!1,a=0,s=0,l=0;l<e.length;++l){var u=c(e,l);u<0?"-"==e.charAt(l)&&0==this.signum()&&(o=!0):(s=t*s+u,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(e,t,r){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||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{var i=new Array,o=7&e;i.length=1+(e>>3),t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},n.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;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=function(e,t){var r=n.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r},n.prototype.addTo=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()},n.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},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=function(e,t,n){var r,i=Math.min(this.t+e.t,t);for(n.s=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()},n.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;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=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},n.prototype.millerRabin=function(e){var t=this.subtract(n.ONE),i=t.getLowestSetBit();if(i<=0)return!1;var o=t.shiftRight(i);(e=e+1>>1)>S.length&&(e=S.length);for(var a=r(),s=0;s<e;++s){a.fromInt(S[Math.floor(Math.random()*S.length)]);var l=a.modPow(o,this);if(0!=l.compareTo(n.ONE)&&0!=l.compareTo(t)){for(var c=1;c++<i&&0!=l.compareTo(t);)if(0==(l=l.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=l.compareTo(t))return!1}}return!0},n.prototype.clone=function(){var e=r();return this.copyTo(e),e},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];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},n.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},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)),0!=(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},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},n.prototype.shiftLeft=function(e){var t=r();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},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+=b(this[n]^t);return e},n.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},n.prototype.setBit=function(e){return this.changeBit(e,g)},n.prototype.clearBit=function(e){return this.changeBit(e,v)},n.prototype.flipBit=function(e){return this.changeBit(e,m)},n.prototype.add=function(e){var t=r();return this.addTo(e,t),t},n.prototype.subtract=function(e){var t=r();return this.subTo(e,t),t},n.prototype.multiply=function(e){var t=r();return this.multiplyTo(e,t),t},n.prototype.divide=function(e){var t=r();return this.divRemTo(e,t,null),t},n.prototype.remainder=function(e){var t=r();return this.divRemTo(e,null,t),t},n.prototype.divideAndRemainder=function(e){var t=r(),n=r();return this.divRemTo(e,t,n),new Array(t,n)},n.prototype.modPow=function(e,t){var n,i,o=e.bitLength(),a=u(1);if(o<=0)return a;n=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new h(t):t.isEven()?new x(t):new f(t);var s=new Array,l=3,c=n-1,p=(1<<n)-1;if(s[1]=i.convert(this),n>1){var g=r();for(i.sqrTo(s[1],g);l<=p;)s[l]=r(),i.mulTo(g,s[l-2],s[l]),l+=2}var m,v,y=e.t-1,b=!0,w=r();for(o=d(e[y])-1;y>=0;){for(o>=c?m=e[y]>>o-c&p:(m=(e[y]&(1<<o+1)-1)<<c-o,y>0&&(m|=e[y-1]>>this.DB+o-c)),l=n;0==(1&m);)m>>=1,--l;if((o-=l)<0&&(o+=this.DB,--y),b)s[m].copyTo(a),b=!1;else{for(;l>1;)i.sqrTo(a,w),i.sqrTo(w,a),l-=2;l>0?i.sqrTo(a,w):(v=a,a=w,w=v),i.mulTo(w,s[m],a)}for(;y>=0&&0==(e[y]&1<<o);)i.sqrTo(a,w),v=a,a=w,w=v,--o<0&&(o=this.DB-1,--y)}return i.revert(a)},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(),o=u(1),a=u(0),s=u(0),l=u(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),t?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(e,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),t?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(e,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(e,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),t&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),t&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(n.ONE)?n.ZERO:l.compareTo(e)>=0?l.subtract(e):l.signum()<0?(l.addTo(e,l),l.signum()<0?l.add(e):l):l},n.prototype.pow=function(e){return this.exp(e,new w)},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(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,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 o>0&&n.lShiftTo(o,n),n},n.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=S[S.length-1]){for(t=0;t<S.length;++t)if(n[0]==S[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<S.length;){for(var r=S[t],i=t+1;i<S.length&&r<T;)r*=S[i++];for(r=n.modInt(r);t<i;)if(r%S[t++]==0)return!1}return n.millerRabin(e)},n.prototype.square=function(){var e=r();return this.squareTo(e),e},n.prototype.Barrett=x,null==C){var O;if(C=new Array,k=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var L=new Uint8Array(32);for(window.crypto.getRandomValues(L),O=0;O<32;++O)C[k++]=L[O]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var A=window.crypto.random(32);for(O=0;O<A.length;++O)C[k++]=255&A.charCodeAt(O)}for(;k<I;)O=Math.floor(65536*Math.random()),C[k++]=O>>>8,C[k++]=255&O;k=0,M()}function D(){if(null==E){for(M(),(E=new P).init(C),k=0;k<C.length;++k)C[k]=0;k=0}return E.next()}function N(){}function P(){this.i=0,this.j=0,this.S=new Array}N.prototype.nextBytes=function(e){var t;for(t=0;t<e.length;++t)e[t]=D()},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)r=this.S[t],this.S[t]=this.S[n=n+this.S[t]+e[t%e.length]&255],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]};var I=256;e.exports={default:n,BigInteger:n,SecureRandom:N}}).call(ml)})),Cl={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},kl={sha256:wl};function Sl(e,t){if(this.n=null,this.e=0,!(null!=e&&null!=t&&e.length>0&&t.length>0))throw new Error("Invalid key data");this.n=new El.BigInteger(e,16),this.e=parseInt(t,16)}Sl.prototype.verify=function(e,t){t=t.replace(/[^0-9a-f]|[\s\n]]/gi,"");var n=new El.BigInteger(t,16);if(n.bitLength()>this.n.bitLength())throw new Error("Signature does not match with the key modulus.");var r=function(e){for(var t in Cl){var n=Cl[t],r=n.length;if(e.substring(0,r)===n)return{alg:t,hash:e.substring(r)}}return[]}(n.modPowInt(this.e,this.n).toString(16).replace(/^1f+00/,""));if(0===r.length)return!1;if(!kl.hasOwnProperty(r.alg))throw new Error("Hashing algorithm is not supported.");var i=kl[r.alg](e).toString();return r.hash===i};for(var Tl=[],Ml=[],Ol="undefined"!=typeof Uint8Array?Uint8Array:Array,Ll="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Al=0;Al<64;++Al)Tl[Al]=Ll[Al],Ml[Ll.charCodeAt(Al)]=Al;Ml["-".charCodeAt(0)]=62,Ml["_".charCodeAt(0)]=63;var Dl=function(e){var t,n,r=function(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]}(e),i=r[0],o=r[1],a=new Ol(function(e,t,n){return 3*(t+n)/4-n}(0,i,o)),s=0,l=o>0?i-4:i;for(n=0;n<l;n+=4)t=Ml[e.charCodeAt(n)]<<18|Ml[e.charCodeAt(n+1)]<<12|Ml[e.charCodeAt(n+2)]<<6|Ml[e.charCodeAt(n+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===o&&(t=Ml[e.charCodeAt(n)]<<2|Ml[e.charCodeAt(n+1)]>>4,a[s++]=255&t),1===o&&(t=Ml[e.charCodeAt(n)]<<10|Ml[e.charCodeAt(n+1)]<<4|Ml[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a};function Nl(e){var t=e.length%4;return 0===t?e:e+new Array(4-t+1).join("=")}function Pl(e){return e=Nl(e).replace(/\-/g,"+").replace(/_/g,"/"),decodeURIComponent(function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}(Dl(e)).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function Il(e){return function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);t+=2===r.length?r:"0"+r}return t}(Dl(Nl(e)))}var jl=vl((function(e){var t,n;t=ml,n=function(){return function(){return function(e){var t=[];if(0===e.length)return"";if("string"!=typeof e[0])throw new TypeError("Url must be a string. Received "+e[0]);if(e[0].match(/^[^/:]+:\/*$/)&&e.length>1){var n=e.shift();e[0]=n+e[0]}e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,"$1:///"):e[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i)throw new TypeError("Url must be a string. Received "+i);""!==i&&(r>0&&(i=i.replace(/^[\/]+/,"")),i=i.replace(/[\/]+$/,r<e.length-1?"":"/"),t.push(i))}var o=t.join("/"),a=(o=o.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return a.shift()+(a.length>0?"?":"")+a.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}},e.exports?e.exports=n():t.urljoin=n()}));function Rl(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},l=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)}))}function Fl(e){if(e.ok)return e.json();var t=new Error(e.statusText);return t.response=e,Promise.reject(t)}function zl(e){this.name="ConfigurationError",this.message=e||""}function Yl(e){this.name="TokenValidationError",this.message=e||""}zl.prototype=Error.prototype,Yl.prototype=Error.prototype;var Bl=function(){function e(){}var t=e.prototype;return t.get=function(){return null},t.has=function(){return null},t.set=function(){return null},e}();yl.polyfill();var Hl=function(e){return"number"==typeof e},ql=function(){return new Date};function Ul(e){var t=e||{};if(this.jwksCache=t.jwksCache||new Bl,this.expectedAlg=t.expectedAlg||"RS256",this.issuer=t.issuer,this.audience=t.audience,this.leeway=0===t.leeway?0:t.leeway||60,this.jwksURI=t.jwksURI,this.maxAge=t.maxAge,this.__clock="function"==typeof t.__clock?t.__clock:ql,this.leeway<0||this.leeway>300)throw new zl("The leeway should be positive and lower than five minutes.");if("RS256"!==this.expectedAlg)throw new zl('Signature algorithm of "'+this.expectedAlg+'" is not supported. Expected the ID token to be signed with "RS256".')}function Vl(e,t){this.plugins=t;for(var n=0;n<this.plugins.length;n++){if(this.plugins[n].version!==Fs.raw){var r="";throw this.plugins[n].constructor&&this.plugins[n].constructor.name&&(r=this.plugins[n].constructor.name),new Error("Plugin "+r+" version ("+this.plugins[n].version+") is not compatible with the SDK version ("+Fs.raw+")")}this.plugins[n].setWebAuth(e)}}Ul.prototype.verify=function(e,t,n){if(!n&&t&&"function"==typeof t&&(n=t,t=void 0),!e)return n(new Yl("ID token is required but missing"),null);var r=this.decode(e);if(r instanceof Error)return n(new Yl("ID token could not be decoded"),null);var i=r.encoded.header+"."+r.encoded.payload,o=Il(r.encoded.signature),a=r.header.alg,s=r.header.kid,l=r.payload.aud,c=r.payload.sub,u=r.payload.iss,d=r.payload.exp,h=r.payload.nbf,f=r.payload.iat,p=r.payload.azp,g=r.payload.auth_time,m=r.payload.nonce,v=this.__clock(),y=this;if(y.expectedAlg!==a)return n(new Yl('Signature algorithm of "'+a+'" is not supported. Expected the ID token to be signed with "RS256".'),null);this.getRsaVerifier(u,s,(function(e,a){if(e)return n(e,null);if(!a.verify(i,o))return n(new Yl("Invalid ID token signature."),null);if(!u||"string"!=typeof u)return n(new Yl("Issuer (iss) claim must be a string present in the ID token"),null);if(y.issuer!==u)return n(new Yl('Issuer (iss) claim mismatch in the ID token, expected "'+y.issuer+'", found "'+u+'"'),null);if(!c||"string"!=typeof c)return n(new Yl("Subject (sub) claim must be a string present in the ID token"),null);if(!l||"string"!=typeof l&&!Array.isArray(l))return n(new Yl("Audience (aud) claim must be a string or array of strings present in the ID token"),null);if(Array.isArray(l)&&!l.includes(y.audience))return n(new Yl('Audience (aud) claim mismatch in the ID token; expected "'+y.audience+'" but was not one of "'+l.join(", ")+'"'),null);if("string"==typeof l&&y.audience!==l)return n(new Yl('Audience (aud) claim mismatch in the ID token; expected "'+y.audience+'" but found "'+l+'"'),null);if(t){if(!m||"string"!=typeof m)return n(new Yl("Nonce (nonce) claim must be a string present in the ID token"),null);if(m!==t)return n(new Yl('Nonce (nonce) claim value mismatch in the ID token; expected "'+t+'", found "'+m+'"'),null)}if(Array.isArray(l)&&l.length>1){if(!p||"string"!=typeof p)return n(new Yl("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values"),null);if(p!==y.audience)return n(new Yl('Authorized Party (azp) claim mismatch in the ID token; expected "'+y.audience+'", found "'+p+'"'),null)}if(!d||!Hl(d))return n(new Yl("Expiration Time (exp) claim must be a number present in the ID token"),null);if(!f||!Hl(f))return n(new Yl("Issued At (iat) claim must be a number present in the ID token"),null);var s=d+y.leeway,b=new Date(0);if(b.setUTCSeconds(s),v>b)return n(new Yl('Expiration Time (exp) claim error in the ID token; current time "'+v+'" is after expiration time "'+b+'"'),null);if(h&&Hl(h)){var w=h-y.leeway,_=new Date(0);if(_.setUTCSeconds(w),v<_)return n(new Yl('Not Before Time (nbf) claim error in the ID token; current time "'+v+'" is before the not before time "'+_+'"'),null)}if(y.maxAge){if(!g||!Hl(g))return n(new Yl("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified"),null);var x=g+y.maxAge+y.leeway,E=new Date(0);if(E.setUTCSeconds(x),v>E)return n(new Yl('Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time "'+v+'" is after last auth time at "'+E+'"'),null)}return n(null,r.payload)}))},Ul.prototype.getRsaVerifier=function(e,t,n){var r=this,i=e+t;Promise.resolve(this.jwksCache.has(i)).then((function(n){return n?r.jwksCache.get(i):(o={jwksURI:r.jwksURI,iss:e,kid:t},("undefined"==typeof fetch?Rl:fetch)(o.jwksURI||jl(o.iss,".well-known","jwks.json")).then(Fl).then((function(e){var t,n,r,i=null;for(t=0;t<e.keys.length&&null===i;t++)(n=e.keys[t]).kid===o.kid&&(i=n);if(!i)throw new Error('Could not find a public key for Key ID (kid) "'+o.kid+'"');return{modulus:Il((r=i).n),exp:Il(r.e)}})).catch((function(e){throw e})));var o})).then((function(e){if(!e||!e.modulus||!e.exp)throw new Error("Empty keyInfo in response");return Promise.resolve(r.jwksCache.set(i,e)).then((function(){n&&n(null,new Sl(e.modulus,e.exp))}))})).catch((function(e){n&&n(e)}))},Ul.prototype.decode=function(e){var t,n,r=e.split(".");if(3!==r.length)return new Yl("Cannot decode a malformed JWT");try{t=JSON.parse(Pl(r[0])),n=JSON.parse(Pl(r[1]))}catch(e){return new Yl("Token header or payload is not valid JSON")}return{header:t,payload:n,encoded:{header:r[0],payload:r[1],signature:r[2]}}},Ul.prototype.validateAccessToken=function(e,t,n,r){if(this.expectedAlg!==t)return r(new Yl('Signature algorithm of "'+t+'" is not supported. Expected "'+this.expectedAlg+'"'));var i,o=wl(e),a=xl.stringify(o),s=a.substring(0,a.length/2),l=xl.parse(s),c=_l.stringify(l);return r((i={"+":"-","/":"_","=":""},c.replace(/[+/=]/g,(function(e){return i[e]}))!==n?new Yl("Invalid access_token"):null))},Vl.prototype.get=function(e){for(var t=0;t<this.plugins.length;t++)if(this.plugins[t].supports(e))return this.plugins[t].init();return null};var Wl=function(e){var t=new Uint8Array(e),n=[],r="0123456789ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvwxyz-._~",i=tl.getWindow().crypto||tl.getWindow().msCrypto;if(!i)return null;for(var o=i.getRandomValues(t),a=0;a<o.length;a++)n.push(r[o[a]%65]);return n.join("")};function Gl(e){var t=e.transaction||{};this.namespace=t.namespace||"com.auth0.auth.",this.keyLength=t.keyLength||32,this.storage=new sl(e),this.options=e}function $l(e){if(this.url=e.url,this.callback=e.callback,this.timeout=e.timeout||6e4,this.timeoutCallback=e.timeoutCallback||null,this.eventListenerType=e.eventListenerType||"message",this.iframe=null,this.timeoutHandle=null,this._destroyTimeout=null,this.transientMessageEventListener=null,this.proxyEventListener=null,this.eventValidator=e.eventValidator||{isValid:function(){return!0}},"function"!=typeof this.callback)throw new Error("options.callback must be a function")}function Kl(e){this.webAuth=e,this.warn=new ol(e.baseOptions)}function Jl(e,t){this.webAuth=e,this.baseOptions=t,this.request=new Qs(t),this.webMessageHandler=new Kl(e),this.storage=new sl(t)}function Xl(e,t){return["co/verifier",encodeURIComponent(e),encodeURIComponent(t)].join("/")}function Zl(e,t){this.webAuth=e,this.baseOptions=t,this.crossOriginAuthentication=new Jl(e,this.baseOptions),this.warn=new ol({disableWarnings:!!t._disableDeprecationWarnings})}Gl.prototype.process=function(e){if(!e.responseType)throw new Error("responseType is required");var t=e.realm||e.connection,n=-1!==e.responseType.indexOf("id_token"),r=this.generateTransaction(e.appState,e.state,e.nonce,t,n,e.organization);return e.state||(e.state=r.state),n&&!e.nonce&&(e.nonce=r.nonce),e},Gl.prototype.generateTransaction=function(e,t,n,r,i,o){if(t=t||Wl(this.keyLength),n=n||(i?Wl(this.keyLength):null),tl.getWindow().location.host!==this.options.domain){var a={nonce:n,appState:e,state:t,lastUsedConnection:r};o&&(a.organization=o),this.storage.setItem(this.namespace+t,a,{expires:1/48})}return{state:t,nonce:n}},Gl.prototype.getStoredTransaction=function(e){var t;return t=this.storage.getItem(this.namespace+e),this.clearTransaction(e),t},Gl.prototype.clearTransaction=function(e){this.storage.removeItem(this.namespace+e)},$l.prototype.init=function(){var e=this,t=tl.getWindow();switch(this.iframe=t.document.createElement("iframe"),this.iframe.style.display="none",this.proxyEventListener=function(t){e.eventListener(t)},this.eventListenerType){case"message":this.eventSourceObject=t;break;case"load":this.eventSourceObject=this.iframe;break;default:throw new Error("Unsupported event listener type: "+this.eventListenerType)}this.eventSourceObject.addEventListener(this.eventListenerType,this.proxyEventListener,!1),t.document.body.appendChild(this.iframe),this.iframe.src=this.url,this.timeoutHandle=setTimeout((function(){e.timeoutHandler()}),this.timeout)},$l.prototype.eventListener=function(e){var t={event:e,sourceObject:this.eventSourceObject};this.eventValidator.isValid(t)&&(this.destroy(),this.callback(t))},$l.prototype.timeoutHandler=function(){this.destroy(),this.timeoutCallback&&this.timeoutCallback()},$l.prototype.destroy=function(){var e=this;clearTimeout(this.timeoutHandle),this._destroyTimeout=setTimeout((function(){e.eventSourceObject.removeEventListener(e.eventListenerType,e.proxyEventListener,!1),e.iframe.parentNode&&e.iframe.parentNode.removeChild(e.iframe)}),0)},Kl.prototype.run=function(e,t){var n=this;e.responseMode="web_message",e.prompt="none";var r=tl.getOrigin(),i=Js.getOriginFromUrl(e.redirectUri);if(i&&r!==i)return t({error:"origin_mismatch",error_description:"The redirectUri's origin ("+i+") should match the window's origin ("+r+")."});!function(e,t,n){new $l({url:e,eventListenerType:"message",callback:function(e){n(null,e)},timeout:t.timeout,eventValidator:{isValid:function(e){return"authorization_response"===e.event.data.type&&t.state===e.event.data.response.state}},timeoutCallback:function(){n({error:"timeout",error_description:"Timeout during executing web_message communication",state:t.state})}}).init()}(this.webAuth.client.buildAuthorizeUrl(e),e,(function(r,i){var o=r;if(!r&&i.event.data.response.error&&(o=i.event.data.response),!o){var a=i.event.data.response;return n.webAuth.validateAuthenticationResponse(e,a,t)}return"consent_required"===o.error&&"localhost"===tl.getWindow().location.hostname&&n.warn.warning("Consent Required. Consent can't be skipped on localhost. Read more here: https://auth0.com/docs/api-auth/user-consent#skipping-consent-for-first-party-clients"),n.webAuth.transactionManager.clearTransaction(o.state),t(Js.pick(o,["error","error_description"]))}))},Jl.prototype.login=function(e,t){var n=this,r=Fa(this.baseOptions.rootUrl,"/co/authenticate");e.username=e.username||e.email,delete e.email;var i={client_id:e.clientID||this.baseOptions.clientID,username:e.username};e.password&&(i.password=e.password),e.otp&&(i.otp=e.otp);var o=e.realm||this.baseOptions.realm;if(o){var a=e.credentialType||this.baseOptions.credentialType||"http://auth0.com/oauth/grant-type/password-realm";i.realm=o,i.credential_type=a}else i.credential_type="password";this.request.post(r).withCredentials().send(i).end((function(r,i){if(r){var o=r.response&&r.response.body||{error:"request_error",error_description:JSON.stringify(r)};return dl(t,{forceLegacyError:!0})(o)}function a(){var r=!0===e.popup;e=Js.blacklist(e,["password","credentialType","otp","popup","onRedirecting"]);var o=Js.merge(e).with({loginTicket:i.body.login_ticket}),a=Xl(n.baseOptions.rootUrl,i.body.co_id);n.storage.setItem(a,i.body.co_verifier,{expires:1/96}),r?n.webMessageHandler.run(o,dl(t,{forceLegacyError:!0})):n.webAuth.authorize(o)}"function"==typeof e.onRedirecting?e.onRedirecting(a):a()}))},Jl.prototype.callback=function(){var e=decodeURIComponent(function(e){var t=("&"+tl.getWindow().location.hash.substring(1)).split("&origin=");if(2===t.length)return t.pop().split("&").shift()}()),t=tl.getWindow(),n=this;t.addEventListener("message",(function(e){if("co_verifier_request"===e.data.type){var t=Xl(e.origin,e.data.request.id),r=function(e,t){try{var n=e.getItem(t);return e.removeItem(t),n||""}catch(e){return""}}(n.storage,t);e.source.postMessage({type:"co_verifier_response",response:{verifier:r}},e.origin)}})),t.parent.postMessage({type:"ready"},e)},Zl.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,delete e.connection,this.crossOriginAuthentication.login(e,t)},Zl.prototype.signupAndLogin=function(e,t){var n=this;return this.webAuth.client.dbConnection.signup(e,(function(r){return r?t(r):(e.realm=e.realm||e.connection,delete e.connection,n.webAuth.login(e,t))}))};var Ql=Ra((function(e){var t=function(){function e(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener&&e.addEventListener(t,n,!1)}function t(e,t,n){e.detachEvent?e.detachEvent("on"+t,n):e.removeEventListener&&e.removeEventListener(t,n,!1)}function n(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}var r=function(){if("undefined"==typeof navigator)return!1;var e=-1,t=navigator.userAgent;return"Microsoft Internet Explorer"===navigator.appName?null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)):t.indexOf("Trident")>-1&&null!==new RegExp("rv:([0-9]{2,2}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1)),e>=8}();return"undefined"!=typeof window&&window.JSON&&window.JSON.stringify&&window.JSON.parse&&window.postMessage?{open:function(i,o){if(!o)throw"missing required callback argument";var a,s;i.url||(a="missing required 'url' parameter"),i.relay_url||(a="missing required 'relay_url' parameter"),a&&setTimeout((function(){o(a)}),0),i.window_name||(i.window_name=null),i.window_features&&!function(){try{var e=navigator.userAgent;return-1!=e.indexOf("Fennec/")||-1!=e.indexOf("Firefox/")&&-1!=e.indexOf("Android")}catch(e){}return!1}()||(i.window_features=void 0);var l,c=i.origin||n(i.url);if(c!==n(i.relay_url))return setTimeout((function(){o("invalid arguments: origin of url and relay_url must match")}),0);r&&((s=document.createElement("iframe")).setAttribute("src",i.relay_url),s.style.display="none",s.setAttribute("name","__winchan_relay_frame"),document.body.appendChild(s),l=s.contentWindow);var u=i.popup||window.open(i.url,i.window_name,i.window_features);i.popup&&(u.location.href=i.url),l||(l=u);var d=setInterval((function(){u&&u.closed&&(f(),o&&(o("User closed the popup window"),o=null))}),500),h=JSON.stringify({a:"request",d:i.params});function f(){if(s&&document.body.removeChild(s),s=void 0,d&&(d=clearInterval(d)),t(window,"message",p),t(window,"unload",f),u)try{u.close()}catch(e){l.postMessage("die",c)}u=l=void 0}function p(e){if(e.origin===c){try{var t=JSON.parse(e.data)}catch(e){if(o)return o(e);throw e}"ready"===t.a?l.postMessage(h,c):"error"===t.a?(f(),o&&(o(t.d),o=null)):"response"===t.a&&(f(),o&&(o(null,t.d),o=null))}}return e(window,"unload",f),e(window,"message",p),{originalPopup:u,close:f,focus:function(){if(u)try{u.focus()}catch(e){}}}},onOpen:function(n){var i="*",o=r?function(){for(var e=window.opener.frames,t=e.length-1;t>=0;t--)try{if(e[t].location.protocol===window.location.protocol&&e[t].location.host===window.location.host&&"__winchan_relay_frame"===e[t].name)return e[t]}catch(e){}}():window.opener;if(!o)throw"can't find relay frame";function a(e){e=JSON.stringify(e),r?o.doPost(e,i):o.postMessage(e,i)}function s(e){if("die"===e.data)try{window.close()}catch(e){}}e(r?o:window,"message",(function e(r){var o;try{o=JSON.parse(r.data)}catch(e){}o&&"request"===o.a&&(t(window,"message",e),i=r.origin,n&&setTimeout((function(){n(i,o.d,(function(e){n=void 0,a({a:"response",d:e})}))}),0))})),e(r?o:window,"message",s);try{a({a:"ready"})}catch(t){e(o,"load",(function(e){a({a:"ready"})}))}var l=function(){try{t(r?o:window,"message",s)}catch(e){}n&&a({a:"error",d:"client closed window"}),n=void 0;try{window.close()}catch(e){}};return e(window,"unload",l),{detach:function(){t(window,"unload",l)}}}}:{open:function(e,t,n,r){setTimeout((function(){r("unsupported browser")}),0)},onOpen:function(e){setTimeout((function(){e("unsupported browser")}),0)}}}();e.exports&&(e.exports=t)})),ec=function(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[-_a-zA-Z.0-9:]+)/.exec(e);return t?t[1]:e};function tc(){this._current_popup=null}function nc(e,t){this.baseOptions=t,this.baseOptions.popupOrigin=t.popupOrigin,this.client=e.client,this.webAuth=e,this.transactionManager=new Gl(this.baseOptions),this.crossOriginAuthentication=new Jl(e,this.baseOptions),this.warn=new ol({disableWarnings:!!t._disableDeprecationWarnings})}function rc(e){this.authenticationUrl=e.authenticationUrl,this.timeout=e.timeout||6e4,this.handler=null,this.postMessageDataType=e.postMessageDataType||!1,this.postMessageOrigin=e.postMessageOrigin||tl.getWindow().location.origin||tl.getWindow().location.protocol+"//"+tl.getWindow().location.hostname+(tl.getWindow().location.port?":"+tl.getWindow().location.port:"")}function ic(e){this.baseOptions=e,this.request=new Qs(e),this.transactionManager=new Gl(this.baseOptions)}function oc(e,t){this.baseOptions=t,this.client=e,this.baseOptions.universalLoginPage=!0,this.request=new Qs(this.baseOptions),this.warn=new ol({disableWarnings:!!t._disableDeprecationWarnings})}tc.prototype.calculatePosition=function(e){var t=e.width||500,n=e.height||600,r=tl.getWindow(),i=void 0!==r.screenX?r.screenX:r.screenLeft,o=void 0!==r.screenY?r.screenY:r.screenTop,a=void 0!==r.outerWidth?r.outerWidth:r.document.body.clientWidth,s=void 0!==r.outerHeight?r.outerHeight:r.document.body.clientHeight;return{width:t,height:n,left:e.left||i+(a-t)/2,top:e.top||o+(s-n)/2}},tc.prototype.preload=function(e){var t=this,n=tl.getWindow(),r=this.calculatePosition(e.popupOptions||{}),i=Js.merge(r).with(e.popupOptions),o=e.url||"about:blank",a=cs(i,{encode:!1,delimiter:","});return this._current_popup&&!this._current_popup.closed||(this._current_popup=n.open(o,"auth0_signup_popup",a),this._current_popup.kill=function(){this.close(),t._current_popup=null}),this._current_popup},tc.prototype.load=function(e,t,n,r){var i=this,o=this.calculatePosition(n.popupOptions||{}),a=Js.merge(o).with(n.popupOptions),s=Js.merge({url:e,relay_url:t,window_features:cs(a,{delimiter:",",encode:!1}),popup:this._current_popup}).with(n),l=Ql.open(s,(function(e,t){if(!e||"SyntaxError"!==e.name)return i._current_popup=null,r(e,t)}));return l.focus(),l},nc.prototype.buildPopupHandler=function(){var e=this.baseOptions.plugins.get("popup.getPopupHandler");return e?e.getPopupHandler():new tc},nc.prototype.preload=function(e){e=e||{};var t=this.buildPopupHandler();return t.preload(e),t},nc.prototype.getPopupHandler=function(e,t){return e.popupHandler?e.popupHandler:t?this.preload(e):this.buildPopupHandler()},nc.prototype.callback=function(e){var t=this,n=tl.getWindow(),r=(e=e||{}).popupOrigin||this.baseOptions.popupOrigin||tl.getOrigin();n.opener?Ql.onOpen((function(n,i,o){if(n!==r)return o({error:"origin_mismatch",error_description:"The popup's origin ("+n+") should match the `popupOrigin` parameter ("+r+")."});t.webAuth.parseHash(e||{},(function(e,t){return o(e||t)}))})):n.doPost=function(e){n.parent&&n.parent.postMessage(e,r)}},nc.prototype.authorize=function(e,t){var n,r,i={},o=this.baseOptions.plugins.get("popup.authorize"),a=Js.merge(this.baseOptions,["clientID","scope","domain","audience","tenant","responseType","redirectUri","_csrf","state","_intstate","nonce","organization","invitation"]).with(Js.blacklist(e,["popupHandler"]));return qs.check(a,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=Fa(this.baseOptions.rootUrl,"relay.html"),e.owp?a.owp=!0:(i.origin=ec(a.redirectUri),r=a.redirectUri),e.popupOptions&&(i.popupOptions=Js.pick(e.popupOptions,["width","height","top","left"])),o&&(a=o.processParams(a)),(a=this.transactionManager.process(a)).scope=a.scope||"openid profile email",delete a.domain,n=this.client.buildAuthorizeUrl(a),this.getPopupHandler(e).load(n,r,i,dl(t,{keepOriginalCasing:!0}))},nc.prototype.loginWithCredentials=function(e,t){e.realm=e.realm||e.connection,e.popup=!0,e=Js.merge(this.baseOptions,["redirectUri","responseType","state","nonce"]).with(Js.blacklist(e,["popupHandler","connection"])),e=this.transactionManager.process(e),this.crossOriginAuthentication.login(e,t)},nc.prototype.passwordlessVerify=function(e,t){var n=this;return this.client.passwordless.verify(Js.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.username=e.phoneNumber||e.email,e.password=e.verificationCode,delete e.email,delete e.phoneNumber,delete e.verificationCode,delete e.type,n.client.loginWithResourceOwner(e,t)}))},nc.prototype.signupAndLogin=function(e,t){var n=this;return this.client.dbConnection.signup(e,(function(r){if(r)return t(r);n.loginWithCredentials(e,t)}))},rc.create=function(e){return new rc(e)},rc.prototype.login=function(e,t){this.handler=new $l({auth0:this.auth0,url:this.authenticationUrl,eventListenerType:e?"message":"load",callback:this.getCallbackHandler(t,e),timeout:this.timeout,eventValidator:this.getEventValidator(),timeoutCallback:function(){t(null,"#error=timeout&error_description=Timeout+during+authentication+renew.")},usePostMessage:e||!1}),this.handler.init()},rc.prototype.getEventValidator=function(){var e=this;return{isValid:function(t){switch(t.event.type){case"message":return t.event.origin===e.postMessageOrigin&&t.event.source===e.handler.iframe.contentWindow&&(!1===e.postMessageDataType||t.event.data.type&&t.event.data.type===e.postMessageDataType);case"load":if("about:"===t.sourceObject.contentWindow.location.protocol)return!1;default:return!0}}}},rc.prototype.getCallbackHandler=function(e,t){return function(n){var r;r=t?"object"==typeof n.event.data&&n.event.data.hash?n.event.data.hash:n.event.data:n.sourceObject.contentWindow.location.hash,e(null,r)}},ic.prototype.login=function(e,t){var n,r;return n=Fa(this.baseOptions.rootUrl,"usernamepassword","login"),e.username=e.username||e.email,e=Js.blacklist(e,["email","onRedirecting"]),r=Js.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience"]).with(e),r=this.transactionManager.process(r),r=Js.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(dl(t))},ic.prototype.callback=function(e){var t,n=tl.getDocument();(t=n.createElement("div")).innerHTML=e,n.body.appendChild(t).children[0].submit()},oc.prototype.login=function(e,t){if(tl.getWindow().location.host!==this.baseOptions.domain)throw new Error("This method is meant to be used only inside the Universal Login Page.");var n,r=Js.merge(this.baseOptions,["clientID","redirectUri","tenant","responseType","responseMode","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return qs.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(n=new ic(this.baseOptions)).login(r,(function(r,i){if(r)return t(r);function o(){n.callback(i)}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){o()}));o()}))},oc.prototype.signupAndLogin=function(e,t){var n=this;return n.client.client.dbConnection.signup(e,(function(r){return r?t(r):n.login(e,t)}))},oc.prototype.getSSOData=function(e,t){var n,r="";return"function"==typeof e&&(t=e,e=!1),qs.check(e,{type:"boolean",message:"withActiveDirectories parameter is not valid"}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),e&&(r="?"+cs({ldaps:1,client_id:this.baseOptions.clientID})),n=Fa(this.baseOptions.rootUrl,"user","ssodata",r),this.request.get(n,{noHeaders:!0}).withCredentials().end(dl(t))};var ac=function(){},sc={lang:"en",templates:{auth0:function(e){var t="code"===e.type?"Enter the code shown above":"Solve the formula shown above";return'<div class="captcha-challenge">\n <img src="'+e.image+'" />\n <button type="button" class="captcha-reload">↺</button>\n</div>\n<input type="text" name="captcha"\n class="form-control captcha-control"\n placeholder="'+t+'" />'},recaptcha_v2:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},recaptcha_enterprise:function(){return'<div class="recaptcha" ></div><input type="hidden" name="captcha" />'},error:function(){return'<div class="error" style="color: red;">Error getting the bot detection challenge. Please contact the system administrator.</div>'}}};function lc(e){switch(e){case"recaptcha_v2":return window.grecaptcha;case"recaptcha_enterprise":return window.grecaptcha.enterprise;default:throw new Error("Unknown captcha provider")}}var cc=function(e,t,n,r){function i(r){r=r||ac,e.getChallenge((function(e,o){return e?(t.innerHTML=n.templates.error(e),r(e)):o.required?(t.style.display="","auth0"===o.provider?function(e,t,n,r){e.innerHTML=t.templates[n.provider](n),e.querySelector(".captcha-reload").addEventListener("click",(function(e){e.preventDefault(),r()}))}(t,n,o,i):"recaptcha_v2"!==o.provider&&"recaptcha_enterprise"!==o.provider||function(e,t,n){var r=e.hasAttribute("data-wid")&&e.getAttribute("data-wid");function i(t){e.querySelector('input[name="captcha"]').value=t||""}if(r)return i(),void lc(n.provider).reset(r);e.innerHTML=t.templates[n.provider](n);var o=e.querySelector(".recaptcha");!function(e,t,n){var r="recaptchaCallback_"+Math.floor(1000001*Math.random());window[r]=function(){delete window[r],n()};var i=window.document.createElement("script");i.src=function(e,t,n){switch(e){case"recaptcha_v2":return"https://www.recaptcha.net/recaptcha/api.js?hl="+t+"&onload="+n;case"recaptcha_enterprise":return"https://www.recaptcha.net/recaptcha/enterprise.js?render=explicit&hl="+t+"&onload="+n;default:throw new Error("Unknown captcha provider")}}(t.provider,t.lang,r),i.async=!0,window.document.body.appendChild(i)}(0,{lang:t.lang,provider:n.provider},(function(){var t=lc(n.provider);r=t.render(o,{callback:i,"expired-callback":function(){i()},"error-callback":function(){i()},sitekey:n.siteKey}),e.setAttribute("data-wid",r)}))}(t,n,o),void r()):(t.style.display="none",void(t.innerHTML=""))}))}return n=Js.merge(sc).with(n||{}),i(r),{reload:i,getValue:function(){var e=t.querySelector('input[name="captcha"]');if(e)return e.value}}};function uc(){return new Date}function dc(e){qs.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},popupOrigin:{optional:!0,type:"string",message:"popupOrigin is not valid"},leeway:{optional:!0,type:"number",message:"leeway is not valid"},plugins:{optional:!0,type:"array",message:"plugins is not valid"},maxAge:{optional:!0,type:"number",message:"maxAge is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"},_timesToRetryFailedRequests:{optional:!0,type:"number",message:"_timesToRetryFailedRequests option is not valid"}}),e.overrides&&qs.check(e.overrides,{type:"object",message:"overrides option is not valid"},{__tenant:{optional:!0,type:"string",message:"__tenant option is required"},__token_issuer:{optional:!0,type:"string",message:"__token_issuer option is required"},__jwks_uri:{optional:!0,type:"string",message:"__jwks_uri is required"}}),this.baseOptions=e,this.baseOptions.plugins=new Vl(this,this.baseOptions.plugins||[]),this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions._timesToRetryFailedRequests=e._timesToRetryFailedRequests?parseInt(e._timesToRetryFailedRequests,0):0,this.baseOptions.tenant=this.baseOptions.overrides&&this.baseOptions.overrides.__tenant||this.baseOptions.domain.split(".")[0],this.baseOptions.token_issuer=this.baseOptions.overrides&&this.baseOptions.overrides.__token_issuer||"https://"+this.baseOptions.domain+"/",this.baseOptions.jwksURI=this.baseOptions.overrides&&this.baseOptions.overrides.__jwks_uri,this.transactionManager=new Gl(this.baseOptions),this.client=new pc(this.baseOptions),this.redirect=new Zl(this,this.baseOptions),this.popup=new nc(this,this.baseOptions),this.crossOriginAuthentication=new Jl(this,this.baseOptions),this.webMessageHandler=new Kl(this),this._universalLogin=new oc(this,this.baseOptions),this.ssodataStorage=new ll(this.baseOptions)}function hc(e,t){this.baseOptions=t,this.request=e}function fc(e,t){this.baseOptions=t,this.request=e}function pc(e,t){2===arguments.length?this.auth0=e:t=e,qs.check(t,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},clientID:{type:"string",message:"clientID option is required"},responseType:{optional:!0,type:"string",message:"responseType is not valid"},responseMode:{optional:!0,type:"string",message:"responseMode is not valid"},redirectUri:{optional:!0,type:"string",message:"redirectUri is not valid"},scope:{optional:!0,type:"string",message:"scope is not valid"},audience:{optional:!0,type:"string",message:"audience is not valid"},_disableDeprecationWarnings:{optional:!0,type:"boolean",message:"_disableDeprecationWarnings option is not valid"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=t,this.baseOptions._sendTelemetry=!1!==this.baseOptions._sendTelemetry||this.baseOptions._sendTelemetry,this.baseOptions.rootUrl=this.baseOptions.domain&&0===this.baseOptions.domain.toLowerCase().indexOf("http")?this.baseOptions.domain:"https://"+this.baseOptions.domain,this.request=new Qs(this.baseOptions),this.passwordless=new hc(this.request,this.baseOptions),this.dbConnection=new fc(this.request,this.baseOptions),this.warn=new ol({disableWarnings:!!t._disableDeprecationWarnings}),this.ssodataStorage=new ll(this.baseOptions)}function gc(e){qs.check(e,{type:"object",message:"options parameter is not valid"},{domain:{type:"string",message:"domain option is required"},token:{type:"string",message:"token option is required"},_sendTelemetry:{optional:!0,type:"boolean",message:"_sendTelemetry option is not valid"},_telemetryInfo:{optional:!0,type:"object",message:"_telemetryInfo option is not valid"}}),this.baseOptions=e,this.baseOptions.headers={Authorization:"Bearer "+this.baseOptions.token},this.request=new Qs(this.baseOptions),this.baseOptions.rootUrl=Fa("https://"+this.baseOptions.domain,"api","v2")}dc.prototype.parseHash=function(e,t){var n,r;t||"function"!=typeof e?e=e||{}:(t=e,e={});var i=tl.getWindow(),o=void 0===e.hash?i.location.hash:e.hash;if((n=function(e,t){var n=function(e){if(!e)return os;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?os.charset:e.charset;return{allowDots:void 0===e.allowDots?os.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:os.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:os.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:os.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:os.comma,decoder:"function"==typeof e.decoder?e.decoder:os.decoder,delimiter:"string"==typeof e.delimiter||qa.isRegExp(e.delimiter)?e.delimiter:os.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:os.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:os.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:os.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:os.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:os.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=i.split(t.delimiter,o),s=-1,l=t.charset;if(t.charsetSentinel)for(n=0;n<a.length;++n)0===a[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[n]?l="utf-8":"utf8=%26%2310003%3B"===a[n]&&(l="iso-8859-1"),s=n,n=a.length);for(n=0;n<a.length;++n)if(n!==s){var c,u,d=a[n],h=d.indexOf("]="),f=-1===h?d.indexOf("="):h+1;-1===f?(c=t.decoder(d,os.decoder,l,"key"),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,f),os.decoder,l,"key"),u=qa.maybeMap(ss(d.slice(f+1),t),(function(e){return t.decoder(e,os.decoder,l,"value")}))),u&&t.interpretNumericEntities&&"iso-8859-1"===l&&(u=as(u)),d.indexOf("[]=")>-1&&(u=is(u)?[u]:u),rs.call(r,c)?r[c]=qa.combine(r[c],u):r[c]=u}return r}(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),a=0;a<o.length;++a){var s=o[a],l=ls(s,r[s],n,"string"==typeof e);i=qa.merge(i,l,n)}return qa.compact(i)}(o=o.replace(/^#?\/?/,""))).hasOwnProperty("error"))return r=ul.buildResponse(n.error,n.error_description),n.state&&(r.state=n.state),t(r);if(!n.hasOwnProperty("access_token")&&!n.hasOwnProperty("id_token")&&!n.hasOwnProperty("refresh_token"))return t(null,null);var a=(this.baseOptions.responseType||e.responseType||"").split(" ");return a.length>0&&-1!==a.indexOf("token")&&!n.hasOwnProperty("access_token")?t(ul.buildResponse("invalid_hash","response_type contains `token`, but the parsed hash does not contain an `access_token` property")):a.length>0&&-1!==a.indexOf("id_token")&&!n.hasOwnProperty("id_token")?t(ul.buildResponse("invalid_hash","response_type contains `id_token`, but the parsed hash does not contain an `id_token` property")):this.validateAuthenticationResponse(e,n,t)},dc.prototype.validateAuthenticationResponse=function(e,t,n){var r=this;e.__enableIdPInitiatedLogin=e.__enableIdPInitiatedLogin||e.__enableImpersonation;var i=t.state,o=this.transactionManager.getStoredTransaction(i),a=e.state||o&&o.state||null,s=a===i;if((i||a||!e.__enableIdPInitiatedLogin)&&!s)return n({error:"invalid_token",errorDescription:"`state` does not match."});var l=e.nonce||o&&o.nonce||null,c=o&&o.organization,u=e.state||o&&o.appState||null,d=function(e,i){return e?n(e):(o&&o.lastUsedConnection&&(i&&(a=i.sub),r.ssodataStorage.set(o.lastUsedConnection,a)),n(null,function(e,t,n){return{accessToken:e.access_token||null,idToken:e.id_token||null,idTokenPayload:n||null,appState:t||null,refreshToken:e.refresh_token||null,state:e.state||null,expiresIn:e.expires_in?parseInt(e.expires_in,10):null,tokenType:e.token_type||null,scope:e.scope||null}}(t,u,i)));var a};return t.id_token?this.validateToken(t.id_token,l,(function(e,n){if(!e){if(c){if(!n.org_id)return d(ul.invalidToken("Organization Id (org_id) claim must be a string present in the ID token"));if(n.org_id!==c)return d(ul.invalidToken('Organization Id (org_id) claim value mismatch in the ID token; expected "'+c+'", found "'+n.org_id+'"'))}return t.access_token&&n.at_hash?(new Ul).validateAccessToken(t.access_token,"RS256",n.at_hash,(function(e){return e?d(ul.invalidToken(e.message)):d(null,n)})):d(null,n)}if("invalid_token"!==e.error||e.errorDescription&&e.errorDescription.indexOf("Nonce (nonce) claim value mismatch in the ID token")>-1)return d(e);var i=(new Ul).decode(t.id_token);return"HS256"!==i.header.alg?d(e):(i.payload.nonce||null)!==l?d({error:"invalid_token",errorDescription:'Nonce (nonce) claim value mismatch in the ID token; expected "'+l+'", found "'+i.payload.nonce+'"'}):t.access_token?r.client.userInfo(t.access_token,(function(e,t){return e?d(e):d(null,t)})):d({error:"invalid_token",description:"The id_token cannot be validated because it was signed with the HS256 algorithm and public clients (like a browser) can’t store secrets. Please read the associated doc for possible ways to fix this. Read more: https://auth0.com/docs/errors/libraries/auth0-js/invalid-token#parsing-an-hs256-signed-id-token-without-an-access-token"})})):d(null,null)},dc.prototype.validateToken=function(e,t,n){new Ul({issuer:this.baseOptions.token_issuer,jwksURI:this.baseOptions.jwksURI,audience:this.baseOptions.clientID,leeway:this.baseOptions.leeway||60,maxAge:this.baseOptions.maxAge,__clock:this.baseOptions.__clock||uc}).verify(e,t,(function(e,t){if(e)return n(ul.invalidToken(e.message));n(null,t)}))},dc.prototype.renewAuth=function(e,t){var n=!!e.usePostMessage,r=e.postMessageDataType||!1,i=e.postMessageOrigin||tl.getWindow().origin,o=e.timeout,a=this,s=Js.merge(this.baseOptions,["clientID","redirectUri","responseType","scope","audience","_csrf","state","_intstate","nonce"]).with(e);s.responseType=s.responseType||"token",s.responseMode=s.responseMode||"fragment",s=this.transactionManager.process(s),qs.check(s,{type:"object",message:"options parameter is not valid"}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),s.prompt="none",s=Js.blacklist(s,["usePostMessage","tenant","postMessageDataType","postMessageOrigin"]),rc.create({authenticationUrl:this.client.buildAuthorizeUrl(s),postMessageDataType:r,postMessageOrigin:i,timeout:o}).login(n,(function(e,n){if("object"==typeof n)return t(e,n);a.parseHash({hash:n},t)}))},dc.prototype.checkSession=function(e,t){var n=Js.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e);return"code"===n.responseType?t({error:"error",error_description:"responseType can't be `code`"}):(e.nonce||(n=this.transactionManager.process(n)),n.redirectUri?(qs.check(n,{type:"object",message:"options parameter is not valid"}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Js.blacklist(n,["usePostMessage","tenant","postMessageDataType"]),void this.webMessageHandler.run(n,dl(t,{forceLegacyError:!0,ignoreCasing:!0}))):t({error:"error",error_description:"redirectUri can't be empty"}))},dc.prototype.changePassword=function(e,t){return this.client.dbConnection.changePassword(e,t)},dc.prototype.passwordlessStart=function(e,t){var n=Js.merge(this.baseOptions,["responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce"]).with(e.authParams);return e.authParams=this.transactionManager.process(n),this.client.passwordless.start(e,t)},dc.prototype.signup=function(e,t){return this.client.dbConnection.signup(e,t)},dc.prototype.authorize=function(e){var t=Js.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","organization","invitation"]).with(e);qs.check(t,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),(t=this.transactionManager.process(t)).scope=t.scope||"openid profile email",tl.redirect(this.client.buildAuthorizeUrl(t))},dc.prototype.signupAndAuthorize=function(e,t){var n=this;return this.client.dbConnection.signup(Js.blacklist(e,["popupHandler"]),(function(r){if(r)return t(r);e.realm=e.connection,e.username||(e.username=e.email),n.client.login(e,t)}))},dc.prototype.login=function(e,t){var n=Js.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting","organization","invitation"]).with(e);n=this.transactionManager.process(n),tl.getWindow().location.host===this.baseOptions.domain?(n.connection=n.realm,delete n.realm,this._universalLogin.login(n,t)):this.crossOriginAuthentication.login(n,t)},dc.prototype.passwordlessLogin=function(e,t){var n=Js.merge(this.baseOptions,["clientID","responseType","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);if(n=this.transactionManager.process(n),tl.getWindow().location.host===this.baseOptions.domain)this.passwordlessVerify(n,t);else{var r=Js.extend({credentialType:"http://auth0.com/oauth/grant-type/passwordless/otp",realm:n.connection,username:n.email||n.phoneNumber,otp:n.verificationCode},Js.blacklist(n,["connection","email","phoneNumber","verificationCode"]));this.crossOriginAuthentication.login(r,t)}},dc.prototype.crossOriginAuthenticationCallback=function(){this.crossOriginVerification()},dc.prototype.crossOriginVerification=function(){this.crossOriginAuthentication.callback()},dc.prototype.logout=function(e){tl.redirect(this.client.buildLogoutUrl(e))},dc.prototype.passwordlessVerify=function(e,t){var n=this,r=Js.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","nonce","onRedirecting"]).with(e);return qs.check(r,{type:"object",message:"options parameter is not valid"},{responseType:{type:"string",message:"responseType option is required"}}),r=this.transactionManager.process(r),this.client.passwordless.verify(r,(function(i){if(i)return t(i);function o(){tl.redirect(n.client.passwordless.buildVerifyUrl(r))}if("function"==typeof e.onRedirecting)return e.onRedirecting((function(){o()}));o()}))},dc.prototype.renderCaptcha=function(e,t,n){return cc(this.client,e,t,n)},hc.prototype.buildVerifyUrl=function(e){var t,n;return qs.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),t=Js.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience","_csrf","state","_intstate","protocol","nonce"]).with(e),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=Js.toSnakeCase(t,["auth0Client"]),n=cs(t),Fa(this.baseOptions.rootUrl,"passwordless","verify_redirect","?"+n)},hc.prototype.start=function(e,t){var n,r;return qs.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},send:{type:"string",message:"send option is required",values:["link","code"],value_message:"send is not valid ([link, code])"},phoneNumber:{optional:!0,type:"string",message:"phoneNumber option is required",condition:function(e){return"code"===e.send||!e.email}},email:{optional:!0,type:"string",message:"email option is required",condition:function(e){return"link"===e.send||!e.phoneNumber}},authParams:{optional:!0,type:"object",message:"authParams option is required"}}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Fa(this.baseOptions.rootUrl,"passwordless","start"),(r=Js.merge(this.baseOptions,["clientID","responseType","redirectUri","scope"]).with(e)).scope&&(r.authParams=r.authParams||{},r.authParams.scope=r.authParams.scope||r.scope),r.redirectUri&&(r.authParams=r.authParams||{},r.authParams.redirect_uri=r.authParams.redirectUri||r.redirectUri),r.responseType&&(r.authParams=r.authParams||{},r.authParams.response_type=r.authParams.responseType||r.responseType),delete r.redirectUri,delete r.responseType,delete r.scope,r=Js.toSnakeCase(r,["auth0Client","authParams"]),this.request.post(n).send(r).end(dl(t))},hc.prototype.verify=function(e,t){var n,r;return qs.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},verificationCode:{type:"string",message:"verificationCode option is required"},phoneNumber:{optional:!1,type:"string",message:"phoneNumber option is required",condition:function(e){return!e.email}},email:{optional:!1,type:"string",message:"email option is required",condition:function(e){return!e.phoneNumber}}}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),r=Js.pick(e,["connection","verificationCode","phoneNumber","email","auth0Client"]),r=Js.toSnakeCase(r,["auth0Client"]),n=Fa(this.baseOptions.rootUrl,"passwordless","verify"),this.request.post(n).send(r).end(dl(t))},fc.prototype.signup=function(e,t){var n,r,i;return qs.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"},password:{type:"string",message:"password option is required"}}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Fa(this.baseOptions.rootUrl,"dbconnections","signup"),i=(r=Js.merge(this.baseOptions,["clientID","state"]).with(e)).user_metadata||r.userMetadata,r=Js.blacklist(r,["scope","userMetadata","user_metadata"]),r=Js.toSnakeCase(r,["auth0Client"]),i&&(r.user_metadata=i),this.request.post(n).send(r).end(dl(t))},fc.prototype.changePassword=function(e,t){var n,r;return qs.check(e,{type:"object",message:"options parameter is not valid"},{connection:{type:"string",message:"connection option is required"},email:{type:"string",message:"email option is required"}}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Fa(this.baseOptions.rootUrl,"dbconnections","change_password"),r=Js.merge(this.baseOptions,["clientID"]).with(e,["email","connection"]),r=Js.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(dl(t))},pc.prototype.buildAuthorizeUrl=function(e){var t,n;return qs.check(e,{type:"object",message:"options parameter is not valid"}),t=Js.merge(this.baseOptions,["clientID","responseType","responseMode","redirectUri","scope","audience"]).with(e),qs.check(t,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},redirectUri:{optional:!0,type:"string",message:"redirectUri option is required"},responseType:{type:"string",message:"responseType option is required"},nonce:{type:"string",message:"nonce option is required",condition:function(e){return-1===e.responseType.indexOf("code")&&-1!==e.responseType.indexOf("id_token")}},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t.connection_scope&&qs.isArray(t.connection_scope)&&(t.connection_scope=t.connection_scope.join(",")),t=Js.blacklist(t,["username","popupOptions","domain","tenant","timeout","appState"]),t=Js.toSnakeCase(t,["auth0Client"]),t=gl(this.warn,t),n=cs(t),Fa(this.baseOptions.rootUrl,"authorize","?"+n)},pc.prototype.buildLogoutUrl=function(e){var t,n;return qs.check(e,{optional:!0,type:"object",message:"options parameter is not valid"}),t=Js.merge(this.baseOptions,["clientID"]).with(e||{}),this.baseOptions._sendTelemetry&&(t.auth0Client=this.request.getTelemetryData()),t=Js.toSnakeCase(t,["auth0Client","returnTo"]),n=cs(Js.blacklist(t,["federated"])),e&&void 0!==e.federated&&!1!==e.federated&&"false"!==e.federated&&(n+="&federated"),Fa(this.baseOptions.rootUrl,"v2","logout","?"+n)},pc.prototype.loginWithDefaultDirectory=function(e,t){return qs.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="password",this.oauthToken(e,t)},pc.prototype.login=function(e,t){return qs.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},realm:{type:"string",message:"realm option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),e.grantType="http://auth0.com/oauth/grant-type/password-realm",this.oauthToken(e,t)},pc.prototype.oauthToken=function(e,t){var n,r;return qs.check(e,{type:"object",message:"options parameter is not valid"}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Fa(this.baseOptions.rootUrl,"oauth","token"),r=Js.merge(this.baseOptions,["clientID","scope","audience"]).with(e),qs.check(r,{type:"object",message:"options parameter is not valid"},{clientID:{type:"string",message:"clientID option is required"},grantType:{type:"string",message:"grantType option is required"},scope:{optional:!0,type:"string",message:"scope option is required"},audience:{optional:!0,type:"string",message:"audience option is required"}}),r=Js.toSnakeCase(r,["auth0Client"]),r=pl(this.warn,r),this.request.post(n).send(r).end(dl(t))},pc.prototype.loginWithResourceOwner=function(e,t){var n,r;return qs.check(e,{type:"object",message:"options parameter is not valid"},{username:{type:"string",message:"username option is required"},password:{type:"string",message:"password option is required"},connection:{type:"string",message:"connection option is required"},scope:{optional:!0,type:"string",message:"scope option is required"}}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Fa(this.baseOptions.rootUrl,"oauth","ro"),r=Js.merge(this.baseOptions,["clientID","scope"]).with(e,["username","password","scope","connection","device"]),(r=Js.toSnakeCase(r,["auth0Client"])).grant_type=r.grant_type||"password",this.request.post(n).send(r).end(dl(t))},pc.prototype.getSSOData=function(e,t){if(this.auth0||(this.auth0=new dc(this.baseOptions)),tl.getWindow().location.host===this.baseOptions.domain)return this.auth0._universalLogin.getSSOData(e,t);"function"==typeof e&&(t=e),qs.check(t,{type:"function",message:"cb parameter is not valid"});var n=this.baseOptions.clientID,r=this.ssodataStorage.get()||{};this.auth0.checkSession({responseType:"token id_token",scope:"openid profile email",connection:r.lastUsedConnection,timeout:5e3},(function(e,i){return e?"login_required"===e.error?t(null,{sso:!1}):("consent_required"===e.error&&(e.error_description="Consent required. When using `getSSOData`, the user has to be authenticated with the following scope: `openid profile email`."),t(e,{sso:!1})):r.lastUsedSub&&r.lastUsedSub!==i.idTokenPayload.sub?t(e,{sso:!1}):t(null,{lastUsedConnection:{name:r.lastUsedConnection},lastUsedUserID:i.idTokenPayload.sub,lastUsedUsername:i.idTokenPayload.email||i.idTokenPayload.name,lastUsedClientID:n,sessionClients:[n],sso:!0})}))},pc.prototype.userInfo=function(e,t){var n;return qs.check(e,{type:"string",message:"accessToken parameter is not valid"}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Fa(this.baseOptions.rootUrl,"userinfo"),this.request.get(n).set("Authorization","Bearer "+e).end(dl(t,{ignoreCasing:!0}))},pc.prototype.getChallenge=function(e){if(qs.check(e,{type:"function",message:"cb parameter is not valid"}),!this.baseOptions.state)return e();var t=Fa(this.baseOptions.rootUrl,"usernamepassword","challenge");return this.request.post(t).send({state:this.baseOptions.state}).end(dl(e,{ignoreCasing:!0}))},pc.prototype.delegation=function(e,t){var n,r;return qs.check(e,{type:"object",message:"options parameter is not valid"},{grant_type:{type:"string",message:"grant_type option is required"}}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Fa(this.baseOptions.rootUrl,"delegation"),r=Js.merge(this.baseOptions,["clientID"]).with(e),r=Js.toSnakeCase(r,["auth0Client"]),this.request.post(n).send(r).end(dl(t))},pc.prototype.getUserCountry=function(e){var t;return qs.check(e,{type:"function",message:"cb parameter is not valid"}),t=Fa(this.baseOptions.rootUrl,"user","geoloc","country"),this.request.get(t).end(dl(e))},gc.prototype.getUser=function(e,t){var n;return qs.check(e,{type:"string",message:"userId parameter is not valid"}),qs.check(t,{type:"function",message:"cb parameter is not valid"}),n=Fa(this.baseOptions.rootUrl,"users",e),this.request.get(n).end(dl(t,{ignoreCasing:!0}))},gc.prototype.patchUserMetadata=function(e,t,n){var r;return qs.check(e,{type:"string",message:"userId parameter is not valid"}),qs.check(t,{type:"object",message:"userMetadata parameter is not valid"}),qs.check(n,{type:"function",message:"cb parameter is not valid"}),r=Fa(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send({user_metadata:t}).end(dl(n,{ignoreCasing:!0}))},gc.prototype.patchUserAttributes=function(e,t,n){var r;return qs.check(e,{type:"string",message:"userId parameter is not valid"}),qs.check(t,{type:"object",message:"user parameter is not valid"}),qs.check(n,{type:"function",message:"cb parameter is not valid"}),r=Fa(this.baseOptions.rootUrl,"users",e),this.request.patch(r).send(t).end(dl(n,{ignoreCasing:!0}))},gc.prototype.linkUser=function(e,t,n){var r;return qs.check(e,{type:"string",message:"userId parameter is not valid"}),qs.check(t,{type:"string",message:"secondaryUserToken parameter is not valid"}),qs.check(n,{type:"function",message:"cb parameter is not valid"}),r=Fa(this.baseOptions.rootUrl,"users",e,"identities"),this.request.post(r).send({link_with:t}).end(dl(n,{ignoreCasing:!0}))};var mc=function(e,t){return mc=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])},mc(e,t)};function vc(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}mc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var yc=function(){return yc=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},yc.apply(this,arguments)};function bc(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}Object.create;function wc(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;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))}var _c,xc,Ec;Object.create;function Cc(e){return e.type===xc.literal}function kc(e){return e.type===xc.argument}function Sc(e){return e.type===xc.number}function Tc(e){return e.type===xc.date}function Mc(e){return e.type===xc.time}function Oc(e){return e.type===xc.select}function Lc(e){return e.type===xc.plural}function Ac(e){return e.type===xc.pound}function Dc(e){return e.type===xc.tag}function Nc(e){return!(!e||"object"!=typeof e||e.type!==Ec.number)}function Pc(e){return!(!e||"object"!=typeof e||e.type!==Ec.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(_c||(_c={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(xc||(xc={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Ec||(Ec={}));var Ic=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,jc=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Rc(e){var t={};return e.replace(jc,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Fc=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var zc,Yc=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Bc=/^(@+)?(\+|#+)?$/g,Hc=/(\*)(0+)|(#+)(0+)|(0+)/g,qc=/^(0+)$/;function Uc(e){var t={};return e.replace(Bc,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function Vc(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Wc(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!qc.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Gc(e){var t=Vc(e);return t||{}}function $c(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=yc(yc(yc({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return yc(yc({},e),Gc(t))}),{}));continue;case"engineering":t=yc(yc(yc({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return yc(yc({},e),Gc(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Hc,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(qc.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Yc.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Yc,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""})),i.options.length&&(t=yc(yc({},t),Uc(i.options[0])))}else if(Bc.test(i.stem))t=yc(yc({},t),Uc(i.stem));else{var o=Vc(i.stem);o&&(t=yc(yc({},t),o));var a=Wc(i.stem);a&&(t=yc(yc({},t),a))}}return t}var Kc=new RegExp("^"+Ic.source+"*"),Jc=new RegExp(Ic.source+"*$");function Xc(e,t){return{start:e,end:t}}var Zc=!!String.prototype.startsWith,Qc=!!String.fromCodePoint,eu=!!Object.fromEntries,tu=!!String.prototype.codePointAt,nu=!!String.prototype.trimStart,ru=!!String.prototype.trimEnd,iu=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ou=!0;try{ou="a"===(null===(zc=fu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===zc?void 0:zc[0])}catch(e){ou=!1}var au,su=Zc?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},lu=Qc?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;i>o;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},cu=eu?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=a}return t},uu=tu?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},du=nu?function(e){return e.trimStart()}:function(e){return e.replace(Kc,"")},hu=ru?function(e){return e.trimEnd()}:function(e){return e.replace(Jc,"")};function fu(e,t){return new RegExp(e,t)}if(ou){var pu=fu("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");au=function(e,t){var n;return pu.lastIndex=t,null!==(n=pu.exec(e)[1])&&void 0!==n?n:""}}else au=function(e,t){for(var n=[];;){var r=uu(e,t);if(void 0===r||yu(r)||bu(r))break;n.push(r),t+=r>=65536?2:1}return lu.apply(void 0,n)};var gu=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(_c.UNMATCHED_CLOSING_TAG,Xc(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&mu(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:xc.pound,location:Xc(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:xc.literal,value:"<"+r+"/>",location:Xc(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mu(this.char()))return this.error(_c.INVALID_TAG,Xc(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(_c.UNMATCHED_CLOSING_TAG,Xc(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:xc.tag,value:r,children:o,location:Xc(n,this.clonePosition())},err:null}:this.error(_c.INVALID_TAG,Xc(a,this.clonePosition())))}return this.error(_c.UNCLOSED_TAG,Xc(n,this.clonePosition()))}return this.error(_c.INVALID_TAG,Xc(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&vu(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=Xc(n,this.clonePosition());return{val:{type:xc.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(mu(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return lu.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),lu(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_c.EXPECT_ARGUMENT_CLOSING_BRACE,Xc(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(_c.EMPTY_ARGUMENT,Xc(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(_c.MALFORMED_ARGUMENT,Xc(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_c.EXPECT_ARGUMENT_CLOSING_BRACE,Xc(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:xc.argument,value:r,location:Xc(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_c.EXPECT_ARGUMENT_CLOSING_BRACE,Xc(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(_c.MALFORMED_ARGUMENT,Xc(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=au(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:Xc(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(_c.EXPECT_ARGUMENT_TYPE,Xc(o,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(h=hu(m.val)).length)return this.error(_c.EXPECT_ARGUMENT_STYLE,Xc(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:Xc(c,this.clonePosition())}}if((v=this.tryParseArgumentClose(r)).err)return v;var u=Xc(r,this.clonePosition());if(l&&su(null==l?void 0:l.style,"::",0)){var d=du(l.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?m:{val:{type:xc.number,value:n,location:u,style:m.val},err:null};if(0===d.length)return this.error(_c.EXPECT_DATE_TIME_SKELETON,u);var h={type:Ec.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Rc(d):{}};return{val:{type:"date"===a?xc.date:xc.time,value:n,location:u,style:h},err:null}}return{val:{type:"number"===a?xc.number:"date"===a?xc.date:xc.time,value:n,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_c.EXPECT_SELECT_ARGUMENT_OPTIONS,Xc(f,yc({},f)));this.bumpSpace();var p=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===p.value){if(!this.bumpIf(":"))return this.error(_c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xc(this.clonePosition(),this.clonePosition()));var m;if(this.bumpSpace(),(m=this.tryParseDecimalInteger(_c.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_c.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),p=this.parseIdentifierIfPossible(),g=m.val}var v,y=this.tryParsePluralOrSelectOptions(e,a,t,p);if(y.err)return y;if((v=this.tryParseArgumentClose(r)).err)return v;var b=Xc(r,this.clonePosition());return"select"===a?{val:{type:xc.select,value:n,options:cu(y.val),location:b},err:null}:{val:{type:xc.plural,value:n,options:cu(y.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:b},err:null};default:return this.error(_c.INVALID_ARGUMENT_TYPE,Xc(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(_c.EXPECT_ARGUMENT_CLOSING_BRACE,Xc(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_c.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Xc(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Fc).filter((function(e){return e.length>0})),n=[],r=0,i=t;r<i.length;r++){var o=i[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var a=o[0],s=o.slice(1),l=0,c=s;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:a,options:s})}return n}(e)}catch(e){return this.error(_c.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ec.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?$c(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,o=!1,a=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(_c.EXPECT_PLURAL_ARGUMENT_SELECTOR,_c.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=Xc(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?_c.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_c.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?_c.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_c.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Xc(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(e+1,t,n);if(f.err)return f;var p=this.tryParseArgumentClose(h);if(p.err)return p;a.push([l,{value:f.val,location:Xc(h,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===t?_c.EXPECT_SELECT_ARGUMENT_SELECTOR:_c.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xc(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(_c.MISSING_OTHER_CLAUSE,Xc(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=Xc(r,this.clonePosition());return i?iu(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=uu(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(su(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&yu(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function mu(e){return e>=97&&e<=122||e>=65&&e<=90}function vu(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||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 yu(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function bu(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function wu(e){e.forEach((function(e){if(delete e.location,Oc(e)||Lc(e))for(var t in e.options)delete e.options[t].location,wu(e.options[t].value);else Sc(e)&&Nc(e.style)||(Tc(e)||Mc(e))&&Pc(e.style)?delete e.style.location:Dc(e)&&wu(e.children)}))}function _u(e,t){void 0===t&&(t={}),t=yc({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new gu(e,t).parse();if(n.err){var r=SyntaxError(_c[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||wu(n.val),n.val}function xu(e,t){var n=t&&t.cache?t.cache:Lu,r=t&&t.serializer?t.serializer:Tu;return(t&&t.strategy?t.strategy:Su)(e,{cache:n,serializer:r})}function Eu(e,t,n,r){var i=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:n(r),o=t.get(i);return void 0===o&&(o=e.call(this,r),t.set(i,o)),o}function Cu(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return void 0===o&&(o=e.apply(this,r),t.set(i,o)),o}function ku(e,t,n,r,i){return n.bind(t,e,r,i)}function Su(e,t){return ku(e,this,1===e.length?Eu:Cu,t.cache.create(),t.serializer)}var Tu=function(){return JSON.stringify(arguments)};function Mu(){this.cache=Object.create(null)}Mu.prototype.get=function(e){return this.cache[e]},Mu.prototype.set=function(e,t){this.cache[e]=t};var Ou,Lu={create:function(){return new Mu}},Au={variadic:function(e,t){return ku(e,this,Cu,t.cache.create(),t.serializer)},monadic:function(e,t){return ku(e,this,Eu,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ou||(Ou={}));var Du,Nu=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return vc(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),Pu=function(e){function t(t,n,r,i){return e.call(this,'Invalid values for "'+t+'": "'+n+'". Options are "'+Object.keys(r).join('", "')+'"',Ou.INVALID_VALUE,i)||this}return vc(t,e),t}(Nu),Iu=function(e){function t(t,n,r){return e.call(this,'Value for "'+t+'" must be of type '+n,Ou.INVALID_VALUE,r)||this}return vc(t,e),t}(Nu),ju=function(e){function t(t,n){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+n+'"',Ou.MISSING_VALUE,n)||this}return vc(t,e),t}(Nu);function Ru(e){return"function"==typeof e}function Fu(e,t,n,r,i,o,a){if(1===e.length&&Cc(e[0]))return[{type:Du.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Cc(u))s.push({type:Du.literal,value:u.value});else if(Ac(u))"number"==typeof o&&s.push({type:Du.literal,value:n.getNumberFormat(t).format(o)});else{var d=u.value;if(!i||!(d in i))throw new ju(d,a);var h=i[d];if(kc(u))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?Du.literal:Du.object,value:h});else if(Tc(u)){var f="string"==typeof u.style?r.date[u.style]:Pc(u.style)?u.style.parsedOptions:void 0;s.push({type:Du.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(Mc(u)){f="string"==typeof u.style?r.time[u.style]:Pc(u.style)?u.style.parsedOptions:void 0;s.push({type:Du.literal,value:n.getDateTimeFormat(t,f).format(h)})}else if(Sc(u)){(f="string"==typeof u.style?r.number[u.style]:Nc(u.style)?u.style.parsedOptions:void 0)&&f.scale&&(h*=f.scale||1),s.push({type:Du.literal,value:n.getNumberFormat(t,f).format(h)})}else{if(Dc(u)){var p=u.children,g=u.value,m=i[g];if(!Ru(m))throw new Iu(g,"function",a);var v=m(Fu(p,t,n,r,i,o).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?Du.literal:Du.object,value:e}})))}if(Oc(u)){if(!(y=u.options[h]||u.options.other))throw new Pu(u.value,h,Object.keys(u.options),a);s.push.apply(s,Fu(y.value,t,n,r,i))}else if(Lc(u)){var y;if(!(y=u.options["="+h])){if(!Intl.PluralRules)throw new Nu('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ou.MISSING_INTL_API,a);var b=n.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0));y=u.options[b]||u.options.other}if(!y)throw new Pu(u.value,h,Object.keys(u.options),a);s.push.apply(s,Fu(y.value,t,n,r,i,h-(u.offset||0)))}else;}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Du.literal&&t.type===Du.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function zu(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?yc(yc(yc({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=yc(yc({},i[t]),o[t]||{}),e}),{})):i),n}),yc({},e)):e}function Yu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Du||(Du={}));var Bu,Hu=function(){function e(t,n,r,i){var o=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Du.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Fu(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==i?void 0:i.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=zu(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||function(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,wc([void 0],t)))}),{cache:Yu(e.number),strategy:Au.variadic}),getDateTimeFormat:xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,wc([void 0],t)))}),{cache:Yu(e.dateTime),strategy:Au.variadic}),getPluralRules:xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,wc([void 0],t)))}),{cache:Yu(e.pluralRules),strategy:Au.variadic})}}(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=_u,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(Bu||(Bu={}));var qu=function(e){function t(n,r,i){var o=e.call(this,"[@formatjs/intl Error "+n+"] "+r+" \n"+(i?"\n"+i.message+"\n"+i.stack:""))||this;return o.code=n,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return vc(t,e),t}(Error),Uu=function(e){function t(t,n){return e.call(this,Bu.UNSUPPORTED_FORMATTER,t,n)||this}return vc(t,e),t}(qu),Vu=function(e){function t(t,n){return e.call(this,Bu.INVALID_CONFIG,t,n)||this}return vc(t,e),t}(qu),Wu=function(e){function t(t,n){return e.call(this,Bu.MISSING_DATA,t,n)||this}return vc(t,e),t}(qu),Gu=function(e){function t(t,n,r,i){var o=e.call(this,Bu.FORMAT_ERROR,t+" \nLocale: "+n+"\nMessageID: "+(null==r?void 0:r.id)+"\nDefault Message: "+(null==r?void 0:r.defaultMessage)+"\nDescription: "+(null==r?void 0:r.description)+" \n",i)||this;return o.descriptor=r,o}return vc(t,e),t}(qu),$u=function(e){function t(t,n){var r=e.call(this,Bu.MISSING_TRANSLATION,'Missing message: "'+t.id+'" for locale "'+n+'", using '+(t.defaultMessage?"default message":"id")+" as fallback.")||this;return r.descriptor=t,r}return vc(t,e),t}(qu);function Ku(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var Ju={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function Xu(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Zu(e,t,n,r){var i,o=e&&e[t];if(o&&(i=o[n]),i)return i;r(new Uu("No "+t+" format named: "+n))}var Qu=y.createContext(null),ed=(Qu.Consumer,Qu.Provider),td=Qu;function nd(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}function rd(e){nd(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var id=yc(yc({},Ju),{textComponent:y.Fragment});function od(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}function ad(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=yc({timeZone:t},e[r]),n}),{})}function sd(e,t){return Object.keys(yc(yc({},e),t)).reduce((function(n,r){return n[r]=yc(yc({},e[r]||{}),t[r]||{}),n}),{})}function ld(e,t){if(!t)return e;var n=Hu.formats;return yc(yc(yc({},n),e),{date:sd(ad(n.date,t),ad(e.date||{},t)),time:sd(ad(n.time,t),ad(e.time||{},t))})}function cd(e,t,n,r,i){var o=e.locale,a=e.formats,s=e.messages,l=e.defaultLocale,c=e.defaultFormats,u=e.onError,d=e.timeZone,h=e.defaultRichTextElements;void 0===n&&(n={id:""});var f=n.id,p=n.defaultMessage;nd(!!f,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var g=String(f),m=s&&Object.prototype.hasOwnProperty.call(s,g)&&s[g];if(Array.isArray(m)&&1===m.length&&m[0].type===xc.literal)return m[0].value;if(!r&&m&&"string"==typeof m&&!h)return m.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=yc(yc({},h),r||{}),a=ld(a,d),c=ld(c,d),!m){if((!p||o&&o.toLowerCase()!==l.toLowerCase())&&u(new $u(n,o)),p)try{return t.getMessageFormat(p,l,c,i).format(r)}catch(e){return u(new Gu('Error formatting default message for: "'+g+'", rendering default message verbatim',o,n,e)),"string"==typeof p?p:g}return g}try{return t.getMessageFormat(m,o,a,yc({formatters:t},i||{})).format(r)}catch(e){u(new Gu('Error formatting message: "'+g+'", using '+(p?"default message":"id")+" as fallback.",o,n,e))}if(p)try{return t.getMessageFormat(p,l,c,i).format(r)}catch(e){u(new Gu('Error formatting the default message for: "'+g+'", rendering message verbatim',o,n,e))}return"string"==typeof m?m:"string"==typeof p?p:g}var ud=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function dd(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=a&&Zu(i,"number",a,o)||{};return t(r,Ku(n,ud,s))}function hd(e,t,n,r){void 0===r&&(r={});try{return dd(e,t,r).format(n)}catch(t){e.onError(new qu(Bu.FORMAT_ERROR,"Error formatting number.",t))}return String(n)}function fd(e,t,n,r){void 0===r&&(r={});try{return dd(e,t,r).formatToParts(n)}catch(t){e.onError(new qu(Bu.FORMAT_ERROR,"Error formatting number.",t))}return[]}var pd=["numeric","style"];function gd(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new Nu('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Ou.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&Zu(i,"relative",a,o)||{};return t(r,Ku(n,pd,s))}(e,t,i).format(n,r)}catch(t){e.onError(new Gu("Error formatting relative time.",t))}return String(n)}var md=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function vd(e,t,n,r){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===r&&(r={});var l=r.format,c=yc(yc({},s&&{timeZone:s}),l&&Zu(o,t,l,a)),u=Ku(r,md,c);return"time"!==t||u.hour||u.minute||u.second||u.timeStyle||u.dateStyle||(u=yc(yc({},u),{hour:"numeric",minute:"numeric"})),n(i,u)}function yd(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return vd(e,"date",t,a).format(s)}catch(t){e.onError(new qu(Bu.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function bd(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return vd(e,"time",t,a).format(s)}catch(t){e.onError(new qu(Bu.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function wd(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=n[2],s=void 0===a?{}:a,l=e.timeZone,c=e.locale,u=e.onError,d=Ku(s,md,l?{timeZone:l}:{});try{return t(c,d).formatRange(i,o)}catch(e){u(new qu(Bu.FORMAT_ERROR,"Error formatting date time range.",e))}return String(i)}function _d(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return vd(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new qu(Bu.FORMAT_ERROR,"Error formatting date.",t))}return[]}function xd(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return vd(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new qu(Bu.FORMAT_ERROR,"Error formatting time.",t))}return[]}var Ed=["localeMatcher","type"];function Cd(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.PluralRules||o(new Nu('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ou.MISSING_INTL_API));var a=Ku(r,Ed);try{return t(i,a).select(n)}catch(e){o(new Gu("Error formatting plural.",e))}return"other"}var kd=["localeMatcher","type","style"],Sd=Date.now();function Td(e,t,n,r){void 0===r&&(r={});var i=Md(e,t,n,r).reduce((function(e,t){var n=t.value;return"string"!=typeof n?e.push(n):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]);return 1===i.length?i[0]:i}function Md(e,t,n,r){var i=e.locale,o=e.onError;void 0===r&&(r={}),Intl.ListFormat||o(new Nu('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ou.MISSING_INTL_API));var a=Ku(r,kd);try{var s={},l=n.map((function(e,t){if("object"==typeof e){var n=function(e){return Sd+"_"+e+"_"+Sd}(t);return s[n]=e,n}return String(e)}));return t(i,a).formatToParts(l).map((function(e){return"literal"===e.type?e:yc(yc({},e),{value:s[e.value]||e.value})}))}catch(e){o(new qu(Bu.FORMAT_ERROR,"Error formatting list.",e))}return n}var Od=["localeMatcher","style","type","fallback"];function Ld(e,t,n,r){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new Nu('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ou.MISSING_INTL_API));var a=Ku(r,Od);try{return t(i,a).of(n)}catch(e){o(new qu(Bu.FORMAT_ERROR,"Error formatting display name.",e))}}function Ad(e){e.defaultRichTextElements&&function(e){return"string"==typeof(e?e[Object.keys(e)[0]]:void 0)}(e.messages||{})&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}function Dd(e,t){var n=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,wc([void 0],t)))}),{cache:Xu(e.dateTime),strategy:Au.variadic}),o=xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,wc([void 0],t)))}),{cache:Xu(e.number),strategy:Au.variadic}),a=xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,wc([void 0],t)))}),{cache:Xu(e.pluralRules),strategy:Au.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:xu((function(e,t,n,r){return new Hu(e,t,n,yc({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},r||{}))}),{cache:Xu(e.message),strategy:Au.variadic}),getRelativeTimeFormat:xu((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,wc([void 0],e)))}),{cache:Xu(e.relativeTime),strategy:Au.variadic}),getPluralRules:a,getListFormat:xu((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,wc([void 0],e)))}),{cache:Xu(e.list),strategy:Au.variadic}),getDisplayNames:xu((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,wc([void 0],e)))}),{cache:Xu(e.displayNames),strategy:Au.variadic})}}(t),r=yc(yc({},Ju),e),i=r.locale,o=r.defaultLocale,a=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Wu('Missing locale data for locale: "'+i+'" in Intl.NumberFormat. Using default locale: "'+o+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Wu('Missing locale data for locale: "'+i+'" in Intl.DateTimeFormat. Using default locale: "'+o+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(a&&a(new Vu('"locale" was not configured, using "'+o+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),r.locale=r.defaultLocale||"en"),Ad(r),yc(yc({},r),{formatters:n,formatNumber:hd.bind(null,r,n.getNumberFormat),formatNumberToParts:fd.bind(null,r,n.getNumberFormat),formatRelativeTime:gd.bind(null,r,n.getRelativeTimeFormat),formatDate:yd.bind(null,r,n.getDateTimeFormat),formatDateToParts:_d.bind(null,r,n.getDateTimeFormat),formatTime:bd.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:wd.bind(null,r,n.getDateTimeFormat),formatTimeToParts:xd.bind(null,r,n.getDateTimeFormat),formatPlural:Cd.bind(null,r,n.getPluralRules),formatMessage:cd.bind(null,r,n),formatList:Td.bind(null,r,n.getListFormat),formatListToParts:Md.bind(null,r,n.getListFormat),formatDisplayName:Ld.bind(null,r,n.getDisplayNames)})}function Nd(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Pd(e){return e?Object.keys(e).reduce((function(t,n){var r,i=e[n];return t[n]=Ru(i)?(r=i,function(e){return r(y.Children.toArray(e))}):i,t}),{}):e}var Id,jd,Rd,Fd,zd,Yd,Bd,Hd,qd,Ud,Vd,Wd=function(e,t,n,r){for(var i=[],o=4;o<arguments.length;o++)i[o-4]=arguments[o];var a=Pd(r),s=cd.apply(void 0,wc([e,t,n,a],i));return Array.isArray(s)?y.Children.toArray(s):s},Gd=function(e,t){var n=e.defaultRichTextElements,r=bc(e,["defaultRichTextElements"]),i=Pd(n),o=Dd(yc(yc(yc({},id),r),{defaultRichTextElements:i}),t);return yc(yc({},o),{formatMessage:Wd.bind(null,{locale:o.locale,timeZone:o.timeZone,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:i},o.formatters)})},$d=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cache={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}},t.state={cache:t.cache,intl:Gd(Nd(t.props),t.cache),prevConfig:Nd(t.props)},t}vc(t,e),t.getDerivedStateFromProps=function(e,t){var n=t.prevConfig,r=t.cache,i=Nd(e);return od(n,i)?null:{intl:Gd(i,r),prevConfig:i}},t.prototype.render=function(){return rd(this.state.intl),y.createElement(ed,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=id}(y.PureComponent),"_authing_token"),Kd="_authing_user",Jd=function(){function e(e){this.options=e,this.token=null,this.user=null}return e.prototype.setToken=function(e){"undefined"!=typeof localStorage?localStorage.setItem($d,e):this.token=e},e.prototype.getToken=function(){if("undefined"!=typeof localStorage){var e=localStorage.getItem($d);return"null"===e||"undefined"===e?null:e}return this.token},e.prototype.getUser=function(){return"undefined"!=typeof localStorage?localStorage.getItem(Kd)?JSON.parse(localStorage.getItem(Kd)):null:this.user},e.prototype.setUser=function(e){"undefined"!=typeof localStorage?(localStorage.setItem(Kd,JSON.stringify(e)),localStorage.setItem($d,e.token)):(this.user=e,this.token=e.token)},e.prototype.clearUser=function(){"undefined"!=typeof localStorage?(localStorage.removeItem(Kd),localStorage.removeItem($d)):(this.user=null,this.token=null)},e}(),Xd=__webpack_require__(46524),Zd=__webpack_require__.n(Xd),Qd=__webpack_require__(69472),eh=__webpack_require__.n(Qd);!function(e){e.Data="DATA",e.Api="API",e.Menu="MENU",e.Ui="UI",e.Button="BUTTON"}(Id||(Id={})),function(e){e.User="USER",e.Role="ROLE",e.Group="GROUP",e.Org="ORG",e.AkSk="AK_SK"}(jd||(jd={})),function(e){e.And="AND",e.Or="OR"}(Rd||(Rd={})),function(e){e.ResetPassword="RESET_PASSWORD",e.PasswordResetedNotification="PASSWORD_RESETED_NOTIFICATION",e.ChangePassword="CHANGE_PASSWORD",e.Welcome="WELCOME",e.VerifyEmail="VERIFY_EMAIL",e.ChangeEmail="CHANGE_EMAIL"}(Fd||(Fd={})),function(e){e.CreatedatDesc="CREATEDAT_DESC",e.CreatedatAsc="CREATEDAT_ASC",e.UpdatedatDesc="UPDATEDAT_DESC",e.UpdatedatAsc="UPDATEDAT_ASC"}(zd||(zd={})),function(e){e.Suspended="Suspended",e.Resigned="Resigned",e.Activated="Activated",e.Archived="Archived"}(Yd||(Yd={})),function(e){e.String="STRING",e.Number="NUMBER",e.Datetime="DATETIME",e.Boolean="BOOLEAN",e.Object="OBJECT",e.Select="SELECT"}(Bd||(Bd={})),function(e){e.Allow="ALLOW",e.Deny="DENY"}(Hd||(Hd={})),function(e){e.Node="NODE",e.Org="ORG",e.User="USER",e.Userpool="USERPOOL",e.Role="ROLE",e.Permission="PERMISSION",e.Application="APPLICATION"}(qd||(qd={})),function(e){e.Username="USERNAME",e.Email="EMAIL",e.Phone="PHONE"}(Ud||(Ud={})),function(e){e.ResetPassword="RESET_PASSWORD",e.RESET_PASSWORD_VERIFY_CODE="RESET_PASSWORD_VERIFY_CODE",e.VerifyEmail="VERIFY_EMAIL",e.FIRST_EMAIL_LOGIN_VERIFY="FIRST_EMAIL_LOGIN_VERIFY",e.CONSOLE_CONDUCTED_VERIFY="CONSOLE_CONDUCTED_VERIFY",e.ChangeEmail="CHANGE_EMAIL",e.EMAIL_BIND_VERIFY_CODE="EMAIL_BIND_VERIFY_CODE",e.EMAIL_UNBIND_VERIFY_CODE="EMAIL_UNBIND_VERIFY_CODE",e.MfaVerify="MFA_VERIFY",e.VerifyCode="VERIFY_CODE",e.REGISTER_VERIFY_CODE="REGISTER_VERIFY_CODE",e.LOGIN_VERIFY_CODE="LOGIN_VERIFY_CODE",e.MFA_VERIFY_CODE="MFA_VERIFY_CODE",e.INFORMATION_COMPLETION_VERIFY_CODE="INFORMATION_COMPLETION_VERIFY_CODE"}(Vd||(Vd={}));var th=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},nh=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},rh=function(e,t,n){return th(void 0,void 0,void 0,(function(){var r,i;return nh(this,(function(o){switch(o.label){case 0:return r="\n mutation resetPassword($phone: String, $phoneCountryCode: String, $email: String, $code: String!, $newPassword: String!) {\n resetPassword(phone: $phone, phoneCountryCode: $phoneCountryCode, email: $email, code: $code, newPassword: $newPassword) {\n message\n code\n }\n}\n ",[4,t.getToken()];case 1:return i=o.sent(),[2,e.request({query:r,token:i,variables:n})]}}))}))},ih=function(e,t,n){return th(void 0,void 0,void 0,(function(){var r,i;return nh(this,(function(o){switch(o.label){case 0:return r="\n query udv($targetType: UDFTargetType!, $targetId: String!) {\n udv(targetType: $targetType, targetId: $targetId) {\n key\n dataType\n value\n label\n }\n}\n ",[4,t.getToken()];case 1:return i=o.sent(),[2,e.request({query:r,token:i,variables:n})]}}))}))},oh=function(e,t,n){return th(void 0,void 0,void 0,(function(){var r,i;return nh(this,(function(o){switch(o.label){case 0:return r="\n mutation removeUdv($targetType: UDFTargetType!, $targetId: String!, $key: String!) {\n removeUdv(targetType: $targetType, targetId: $targetId, key: $key) {\n key\n dataType\n value\n label\n }\n}\n ",[4,t.getToken()];case 1:return i=o.sent(),[2,e.request({query:r,token:i,variables:n})]}}))}))},ah="4.21.8",sh=__webpack_require__(9669),lh=__webpack_require__.n(sh),ch="Netscape",uh="Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1",dh={ASN1:null,Base64:null,Hex:null,crypto:null,href:null},hh="0123456789abcdefghijklmnopqrstuvwxyz";function fh(e){return hh.charAt(e)}function ph(e,t){return e&t}function gh(e,t){return e|t}function mh(e,t){return e^t}function vh(e,t){return e&~t}function yh(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function bh(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var wh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function _h(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=wh.charAt(n>>6)+wh.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=wh.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=wh.charAt(n>>2)+wh.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function xh(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o=wh.indexOf(e.charAt(t));o<0||(0==r?(n+=fh(o>>2),i=3&o,r=1):1==r?(n+=fh(i<<2|o>>4),i=15&o,r=2):2==r?(n+=fh(i),n+=fh(o>>2),i=3&o,r=3):(n+=fh(i<<2|o>>4),n+=fh(15&o),r=0))}return 1==r&&(n+=fh(i<<2)),n}var Eh,Ch=function(e,t){return Ch=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])},Ch(e,t)};var kh,Sh=function(e){var t;if(void 0===Eh){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Eh={},t=0;t<16;++t)Eh[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)Eh[n.charAt(t)]=t;for(t=0;t<8;++t)Eh[r.charAt(t)]=-1}var i=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(-1!=(s=Eh[s])){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i},Th={decode:function(e){var t;if(void 0===kh){var n="= \f\n\r\t \u2028\u2029";for(kh=Object.create(null),t=0;t<64;++t)kh["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(t=0;t<9;++t)kh[n.charAt(t)]=-1}var r=[],i=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=kh[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=Th.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return Th.decode(e)}},Mh=1e13,Oh=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*e+t)<Mh?t=0:r-=(t=0|r/Mh)*Mh,i[n]=r;t>0&&(i[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,i=r.length;for(t=0;t<i;++t)(n=r[t]-e)<0?(n+=Mh,e=1):e=0,r[t]=n;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(Mh+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*Mh+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),Lh=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,Ah=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function Dh(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var Nh,Ph=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",i=e;i<t;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,i="",o=e;o<t;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),i=(n?Lh:Ah).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var n,r=this.get(e),i=r>127,o=i?255:0,a="";r==o&&++e<t;)r=this.get(e);if(0===(n=t-e))return i?-1:0;if(n>4){for(a=r,n<<=3;0==(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new Oh(r),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),i="("+((t-e-1<<3)-r)+" bit)\n",o="",a=e+1;a<t;++a){for(var s=this.get(a),l=a==t-1?r:0,c=7;c>=l;--c)o+=s>>c&1?"1":"0";if(o.length>n)return i+Dh(o,n)}return i+o},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return Dh(this.parseStringISO(e,t),n);var r=t-e,i="("+r+" byte)\n";r>(n/=2)&&(t=e+n);for(var o=e;o<t;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},e.prototype.parseOID=function(e,t,n){for(var r="",i=new Oh,o=0,a=e;a<t;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof Oh)i.sub(80),r="2."+i.toString();else{var l=i<80?i<40?0:1:2;r=l+"."+(i-40*l)}else r+="."+i.toString();if(r.length>n)return Dh(r,n);i=new Oh,o=0}}return o>0&&(r+=".incomplete"),r},e}(),Ih=function(){function e(e,t,n,r,i){if(!(r instanceof jh))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return Dh(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return Dh(this.stream.parseStringISO(t,t+n),e);case 30:return Dh(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof Ph?t:new Ph(t,0);var r=new Ph(n),i=new jh(n),o=e.decodeLength(n),a=n.pos,s=a-r.pos,l=null,c=function(){var t=[];if(null!==o){for(var r=a+o;n.pos<r;)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=e.decode(n);if(i.tag.isEOC())break;t[t.length]=i}o=a-n.pos}catch(e){throw new Error("Exception while decoding undefined length content: "+e)}return t};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(e){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(r,s,o,i,l)},e}(),jh=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!=(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new Oh;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),Rh=[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],Fh=(1<<26)/Rh[Rh.length-1],zh=function(){function e(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 e.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,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=fh(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=fh(n));return i?o:"0"},e.prototype.negate=function(){var t=Uh();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.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},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Xh(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=Uh();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new Bh(t):new Hh(t),this.exp(e,n)},e.prototype.clone=function(){var e=Uh();return this.copyTo(e),e},e.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];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];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)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=Uh();return this.bitwiseTo(e,ph,t),t},e.prototype.or=function(e){var t=Uh();return this.bitwiseTo(e,gh,t),t},e.prototype.xor=function(e){var t=Uh();return this.bitwiseTo(e,mh,t),t},e.prototype.andNot=function(e){var t=Uh();return this.bitwiseTo(e,vh,t),t},e.prototype.not=function(){for(var e=Uh(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=Uh();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=Uh();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+yh(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=bh(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,gh)},e.prototype.clearBit=function(e){return this.changeBit(e,vh)},e.prototype.flipBit=function(e){return this.changeBit(e,mh)},e.prototype.add=function(e){var t=Uh();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=Uh();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=Uh();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=Uh();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=Uh();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=Uh(),n=Uh();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=Jh(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new Bh(t):t.isEven()?new qh(t):new Hh(t);var a=[],s=3,l=n-1,c=(1<<n)-1;if(a[1]=r.convert(this),n>1){var u=Uh();for(r.sqrTo(a[1],u);s<=c;)a[s]=Uh(),r.mulTo(u,a[s-2],a[s]),s+=2}var d,h,f=e.t-1,p=!0,g=Uh();for(i=Xh(e[f])-1;f>=0;){for(i>=l?d=e[f]>>i-l&c:(d=(e[f]&(1<<i+1)-1)<<l-i,f>0&&(d|=e[f-1]>>this.DB+i-l)),s=n;0==(1&d);)d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),p)a[d].copyTo(o),p=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(h=o,o=g,g=h),r.mulTo(g,a[d],o)}for(;f>=0&&0==(e[f]&1<<i);)r.sqrTo(o,g),h=o,o=g,g=h,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var r=t.clone(),i=this.clone(),o=Jh(1),a=Jh(0),s=Jh(0),l=Jh(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new Yh)},e.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(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,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 o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=Rh[Rh.length-1]){for(t=0;t<Rh.length;++t)if(n[0]==Rh[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<Rh.length;){for(var r=Rh[t],i=t+1;i<Rh.length&&r<Fh;)r*=Rh[i++];for(r=n.modInt(r);t<i;)if(r%Rh[t++]==0)return!1}return n.millerRabin(e)},e.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},e.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},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&+t[i]:Kh(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=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},e.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},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.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,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},e.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()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.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()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=Uh());var a=Uh(),s=this.s,l=t.s,c=this.DB-Xh(i[i.t-1]);c>0?(i.lShiftTo(c,a),o.lShiftTo(c,r)):(i.copyTo(a),o.copyTo(r));var u=a.t,d=a[u-1];if(0!=d){var h=d*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),f=this.FV/h,p=(1<<this.F1)/h,g=1<<this.F2,m=r.t,v=m-u,y=null==n?Uh():n;for(a.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),e.ONE.dlShiftTo(u,y),y.subTo(a,a);a.t<u;)a[a.t++]=0;for(;--v>=0;){var b=r[--m]==d?this.DM:Math.floor(r[m]*f+(r[m-1]+g)*p);if((r[m]+=a.am(0,b,r,v,0,u))<b)for(a.dlShiftTo(v,y),r.subTo(y,r);r[m]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(u,n),s!=l&&e.ZERO.subTo(n,n)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),s<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(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},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=Uh(),i=Uh(),o=n.convert(this),a=Xh(t)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(t&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=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),r=Jh(n),i=Uh(),o=Uh(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,l=0;l<t.length;++l){var c=Kh(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),gh,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],o=7&t;i.length=1+(t>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=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()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.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]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(i=Math.min(e.t,t);r<i;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;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)},e.prototype.modInt=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},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(t=t+1>>1)>Rh.length&&(t=Rh.length);for(var o=Uh(),a=0;a<t;++a){o.fromInt(Rh[Math.floor(Math.random()*Rh.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){for(var l=1;l++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=Uh();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){t(r)}),0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,r,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),gh,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),Yh=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),Bh=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),Hh=function(){function e(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}return e.prototype.convert=function(e){var t=Uh();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(zh.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=Uh();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[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)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),qh=function(){function e(e){this.m=e,this.r2=Uh(),this.q3=Uh(),zh.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.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=Uh();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.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)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function Uh(){return new zh(null)}function Vh(e,t){return new zh(e,t)}"Microsoft Internet Explorer"==ch?(zh.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},Nh=30):"Netscape"!=ch?(zh.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},Nh=26):(zh.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i},Nh=28),zh.prototype.DB=Nh,zh.prototype.DM=(1<<Nh)-1,zh.prototype.DV=1<<Nh;zh.prototype.FV=Math.pow(2,52),zh.prototype.F1=52-Nh,zh.prototype.F2=2*Nh-52;var Wh,Gh,$h=[];for(Wh="0".charCodeAt(0),Gh=0;Gh<=9;++Gh)$h[Wh++]=Gh;for(Wh="a".charCodeAt(0),Gh=10;Gh<36;++Gh)$h[Wh++]=Gh;for(Wh="A".charCodeAt(0),Gh=10;Gh<36;++Gh)$h[Wh++]=Gh;function Kh(e,t){var n=$h[e.charCodeAt(t)];return null==n?-1:n}function Jh(e){var t=Uh();return t.fromInt(e),t}function Xh(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}zh.ZERO=Jh(0),zh.ONE=Jh(1);var Zh=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.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},e.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]},e}();var Qh,ef,tf=null;if(null==tf){tf=[],ef=0;var nf=void 0;if(dh.crypto&&dh.crypto.getRandomValues){var rf=new Uint32Array(256);for(dh.crypto.getRandomValues(rf),nf=0;nf<rf.length;++nf)tf[ef++]=255&rf[nf]}var of=function(e){if(this.count=this.count||0,this.count>=256||ef>=256)dh.removeEventListener?dh.removeEventListener("mousemove",of,!1):dh.detachEvent&&dh.detachEvent("onmousemove",of);else try{var t=e.x+e.y;tf[ef++]=255&t,this.count+=1}catch(e){}};dh.addEventListener?dh.addEventListener("mousemove",of,!1):dh.attachEvent&&dh.attachEvent("onmousemove",of)}function af(){if(null==Qh){for(Qh=new Zh;ef<256;){var e=Math.floor(65536*Math.random());tf[ef++]=255&e}for(Qh.init(tf),ef=0;ef<tf.length;++ef)tf[ef]=0;ef=0}return Qh.next()}var sf=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=af()},e}();var lf=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Vh(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=function(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new sf,a=[];t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new zh(n)}(e,this.n.bitLength()+7>>3);if(null==t)return null;var n=this.doPublic(t);if(null==n)return null;var r=n.toString(16);return 0==(1&r.length)?r:"0"+r},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Vh(e,16),this.e=parseInt(t,16),this.d=Vh(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,i,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=Vh(e,16),this.e=parseInt(t,16),this.d=Vh(n,16),this.p=Vh(r,16),this.q=Vh(i,16),this.dmp1=Vh(o,16),this.dmq1=Vh(a,16),this.coeff=Vh(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new sf,r=e>>1;this.e=parseInt(t,16);for(var i=new zh(t,16);;){for(;this.p=new zh(e-r,1,n),0!=this.p.subtract(zh.ONE).gcd(i).compareTo(zh.ONE)||!this.p.isProbablePrime(10););for(;this.q=new zh(r,1,n),0!=this.q.subtract(zh.ONE).gcd(i).compareTo(zh.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(zh.ONE),s=this.q.subtract(zh.ONE),l=a.multiply(s);if(0==l.gcd(i).compareTo(zh.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=Vh(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){var n=e.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new sf,i=e>>1;this.e=parseInt(t,16);var o=new zh(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(zh.ONE),r=a.q.subtract(zh.ONE),i=t.multiply(r);0==i.gcd(o).compareTo(zh.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=Uh(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(zh.ONE).gcda(o,(function(e){0==e.compareTo(zh.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){a.p=Uh(),a.p.fromNumberAsync(e-i,1,r,(function(){a.p.subtract(zh.ONE).gcda(o,(function(e){0==e.compareTo(zh.ONE)&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var r=function(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";return Vh("0001"+r+"00"+e,16)}((cf[n]||"")+t(e).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},e.prototype.verify=function(e,t,n){var r=Vh(t,16),i=this.doPublic(r);if(null==i)return null;var o=function(e){for(var t in cf)if(cf.hasOwnProperty(t)){var n=cf[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}(i.toString(16).replace(/^1f+00/,""));return o==n(e).toString()},e}();var cf={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var uf={};uf.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var i;for(i in n)e.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(uh)&&(o=function(e,t){for(i=0;i<a.length;i+=1){var n=a[i],r=t[n];"function"==typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(e){}o(e.prototype,n)}}};var df={};function hf(e){var t=lf.call(this)||this;return e&&("string"==typeof e?t.parseKey(e):(hf.hasPrivateKeyProperty(e)||hf.hasPublicKeyProperty(e))&&t.parsePropertiesFrom(e)),t}function ff(e){e=e||{},this.default_key_size=parseInt(e.default_key_size,10)||1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}void 0!==df.asn1&&df.asn1||(df.asn1={}),df.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";t=new zh(r,16).xor(e).add(zh.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=df.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,o=t.DEROctetString,a=t.DERNull,s=t.DERObjectIdentifier,l=t.DEREnumerated,c=t.DERUTF8String,u=t.DERNumericString,d=t.DERPrintableString,h=t.DERTeletexString,f=t.DERIA5String,p=t.DERUTCTime,g=t.DERGeneralizedTime,m=t.DERSequence,v=t.DERSet,y=t.DERTaggedObject,b=t.ASN1Util.newObject,w=Object.keys(e);if(1!=w.length)throw"key of param shall be only one.";var _=w[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(e[_]);if("int"==_)return new r(e[_]);if("bitstr"==_)return new i(e[_]);if("octstr"==_)return new o(e[_]);if("null"==_)return new a(e[_]);if("oid"==_)return new s(e[_]);if("enum"==_)return new l(e[_]);if("utf8str"==_)return new c(e[_]);if("numstr"==_)return new u(e[_]);if("prnstr"==_)return new d(e[_]);if("telstr"==_)return new h(e[_]);if("ia5str"==_)return new f(e[_]);if("utctime"==_)return new p(e[_]);if("gentime"==_)return new g(e[_]);if("seq"==_){for(var x=e[_],E=[],C=0;C<x.length;C++){var k=b(x[C]);E.push(k)}return new m({array:E})}if("set"==_){for(x=e[_],E=[],C=0;C<x.length;C++){k=b(x[C]);E.push(k)}return new v({array:E})}if("tag"==_){var S=e[_];if("[object Array]"===Object.prototype.toString.call(S)&&3==S.length){var T=b(S[2]);return new y({tag:S[0],explicit:S[1],obj:T})}var M={};if(void 0!==S.explicit&&(M.explicit=S.explicit),void 0!==S.tag&&(M.tag=S.tag),void 0===S.obj)throw"obj shall be specified for 'tag'.";return M.obj=b(S.obj),new y(M)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},df.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))t=t+"."+new zh(r,2).toString(10),r=""}return t},df.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new zh(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},df.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},df.asn1.DERAbstractString=function(e){df.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},uf.lang.extend(df.asn1.DERAbstractString,df.asn1.ASN1Object),df.asn1.DERAbstractTime=function(e){df.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var l=r(String(s),3);a=a+"."+(l=l.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},uf.lang.extend(df.asn1.DERAbstractTime,df.asn1.ASN1Object),df.asn1.DERAbstractStructured=function(e){df.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},uf.lang.extend(df.asn1.DERAbstractStructured,df.asn1.ASN1Object),df.asn1.DERBoolean=function(){df.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},uf.lang.extend(df.asn1.DERBoolean,df.asn1.ASN1Object),df.asn1.DERInteger=function(e){df.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=df.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new zh(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},uf.lang.extend(df.asn1.DERInteger,df.asn1.ASN1Object),df.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=df.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}df.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var i=e.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},uf.lang.extend(df.asn1.DERBitString,df.asn1.ASN1Object),df.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=df.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}df.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},uf.lang.extend(df.asn1.DEROctetString,df.asn1.DERAbstractString),df.asn1.DERNull=function(){df.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},uf.lang.extend(df.asn1.DERNull,df.asn1.ASN1Object),df.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new zh(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};df.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(e){var t=df.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},uf.lang.extend(df.asn1.DERObjectIdentifier,df.asn1.ASN1Object),df.asn1.DEREnumerated=function(e){df.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=df.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new zh(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},uf.lang.extend(df.asn1.DEREnumerated,df.asn1.ASN1Object),df.asn1.DERUTF8String=function(e){df.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},uf.lang.extend(df.asn1.DERUTF8String,df.asn1.DERAbstractString),df.asn1.DERNumericString=function(e){df.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},uf.lang.extend(df.asn1.DERNumericString,df.asn1.DERAbstractString),df.asn1.DERPrintableString=function(e){df.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},uf.lang.extend(df.asn1.DERPrintableString,df.asn1.DERAbstractString),df.asn1.DERTeletexString=function(e){df.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},uf.lang.extend(df.asn1.DERTeletexString,df.asn1.DERAbstractString),df.asn1.DERIA5String=function(e){df.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},uf.lang.extend(df.asn1.DERIA5String,df.asn1.DERAbstractString),df.asn1.DERUTCTime=function(e){df.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},uf.lang.extend(df.asn1.DERUTCTime,df.asn1.DERAbstractTime),df.asn1.DERGeneralizedTime=function(e){df.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},uf.lang.extend(df.asn1.DERGeneralizedTime,df.asn1.DERAbstractTime),df.asn1.DERSequence=function(e){df.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){e+=this.asn1Array[t].getEncodedHex()}return this.hV=e,this.hV}},uf.lang.extend(df.asn1.DERSequence,df.asn1.DERAbstractStructured),df.asn1.DERSet=function(e){df.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},uf.lang.extend(df.asn1.DERSet,df.asn1.DERAbstractStructured),df.asn1.DERTaggedObject=function(e){df.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.tag&&(this.hT=e.tag),void 0!==e.explicit&&(this.isExplicit=e.explicit),void 0!==e.obj&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},uf.lang.extend(df.asn1.DERTaggedObject,df.asn1.ASN1Object),function(e,t){function n(){this.constructor=e}Ch(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(hf,lf),hf.prototype.parseKey=function(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?Sh(e):Th.unarmor(e),i=Ih.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){t=i.sub[1].getHexStringValue(),this.n=Vh(t,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=Vh(o,16);var a=i.sub[4].getHexStringValue();this.p=Vh(a,16);var s=i.sub[5].getHexStringValue();this.q=Vh(s,16);var l=i.sub[6].getHexStringValue();this.dmp1=Vh(l,16);var c=i.sub[7].getHexStringValue();this.dmq1=Vh(c,16);var u=i.sub[8].getHexStringValue();this.coeff=Vh(u,16)}else{if(2!==i.sub.length)return!1;var d=i.sub[1].sub[0];t=d.sub[0].getHexStringValue(),this.n=Vh(t,16),n=d.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(e){return!1}},hf.prototype.getPrivateBaseKey=function(){var e={array:[new df.asn1.DERInteger({int:0}),new df.asn1.DERInteger({bigint:this.n}),new df.asn1.DERInteger({int:this.e}),new df.asn1.DERInteger({bigint:this.d}),new df.asn1.DERInteger({bigint:this.p}),new df.asn1.DERInteger({bigint:this.q}),new df.asn1.DERInteger({bigint:this.dmp1}),new df.asn1.DERInteger({bigint:this.dmq1}),new df.asn1.DERInteger({bigint:this.coeff})]};return new df.asn1.DERSequence(e).getEncodedHex()},hf.prototype.getPrivateBaseKeyB64=function(){return _h(this.getPrivateBaseKey())},hf.prototype.getPublicBaseKey=function(){var e=new df.asn1.DERSequence({array:[new df.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new df.asn1.DERNull]}),t=new df.asn1.DERSequence({array:[new df.asn1.DERInteger({bigint:this.n}),new df.asn1.DERInteger({int:this.e})]}),n=new df.asn1.DERBitString({hex:"00"+t.getEncodedHex()});return new df.asn1.DERSequence({array:[e,n]}).getEncodedHex()},hf.prototype.getPublicBaseKeyB64=function(){return _h(this.getPublicBaseKey())},hf.wordwrap=function(e,t){if(!e)return e;var n="(.{1,"+(t=t||64)+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},hf.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return e+=hf.wordwrap(this.getPrivateBaseKeyB64())+"\n",e+="-----END RSA PRIVATE KEY-----"},hf.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return e+=hf.wordwrap(this.getPublicBaseKeyB64())+"\n",e+="-----END PUBLIC KEY-----"},hf.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},hf.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},hf.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},ff.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new hf(e)},ff.prototype.setPrivateKey=function(e){this.setKey(e)},ff.prototype.setPublicKey=function(e){this.setKey(e)},ff.prototype.decrypt=function(e){try{return this.getKey().decrypt(xh(e))}catch(e){return!1}},ff.prototype.encrypt=function(e){try{return _h(this.getKey().encrypt(e))}catch(e){return!1}},ff.prototype.sign=function(e,t,n){try{return _h(this.getKey().sign(e,t,n))}catch(e){return!1}},ff.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,xh(t),n)}catch(e){return!1}},ff.prototype.getKey=function(e){if(!this.key){if(this.key=new hf,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},ff.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},ff.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},ff.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},ff.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},ff.version="3.0.0-rc.1";var pf=__webpack_require__(36077),gf=new pf.BigInteger("3"),mf=function(){function e(e,t){this.x=t,this.q=e}return e.prototype.equals=function(e){return e===this||this.q.equals(e.q)&&this.x.equals(e.x)},e.prototype.toBigInteger=function(){return this.x},e.prototype.negate=function(){return new e(this.q,this.x.negate().mod(this.q))},e.prototype.add=function(t){return new e(this.q,this.x.add(t.toBigInteger()).mod(this.q))},e.prototype.subtract=function(t){return new e(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},e.prototype.multiply=function(t){return new e(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},e.prototype.divide=function(t){return new e(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},e.prototype.square=function(){return new e(this.q,this.x.square().mod(this.q))},e}(),vf=function(){function e(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?pf.BigInteger.ONE:r,this.zinv=null}return e.prototype.getX=function(){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))},e.prototype.getY=function(){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))},e.prototype.equals=function(e){return e===this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():!!e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(pf.BigInteger.ZERO)&&e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(pf.BigInteger.ZERO))},e.prototype.isInfinity=function(){return null===this.x&&null===this.y||this.z.equals(pf.BigInteger.ZERO)&&!this.y.toBigInteger().equals(pf.BigInteger.ZERO)},e.prototype.negate=function(){return new e(this.curve,this.x,this.y.negate(),this.z)},e.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var n=this.x.toBigInteger(),r=this.y.toBigInteger(),i=this.z,o=t.x.toBigInteger(),a=t.y.toBigInteger(),s=t.z,l=this.curve.q,c=n.multiply(s).mod(l),u=o.multiply(i).mod(l),d=c.subtract(u),h=r.multiply(s).mod(l),f=a.multiply(i).mod(l),p=h.subtract(f);if(pf.BigInteger.ZERO.equals(d))return pf.BigInteger.ZERO.equals(p)?this.twice():this.curve.infinity;var g=c.add(u),m=i.multiply(s).mod(l),v=d.square().mod(l),y=d.multiply(v).mod(l),b=m.multiply(p.square()).subtract(g.multiply(v)).mod(l),w=d.multiply(b).mod(l),_=p.multiply(v.multiply(c).subtract(b)).subtract(h.multiply(y)).mod(l),x=y.multiply(m).mod(l);return new e(this.curve,this.curve.fromBigInteger(w),this.curve.fromBigInteger(_),x)},e.prototype.twice=function(){if(this.isInfinity())return this;if(!this.y.toBigInteger().signum())return this.curve.infinity;var t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=this.z,i=this.curve.q,o=this.curve.a.toBigInteger(),a=t.square().multiply(gf).add(o.multiply(r.square())).mod(i),s=n.shiftLeft(1).multiply(r).mod(i),l=n.square().mod(i),c=l.multiply(t).multiply(r).mod(i),u=s.square().mod(i),d=a.square().subtract(c.shiftLeft(3)).mod(i),h=s.multiply(d).mod(i),f=a.multiply(c.shiftLeft(2).subtract(d)).subtract(u.shiftLeft(1).multiply(l)).mod(i),p=s.multiply(u).mod(i);return new e(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(f),p)},e.prototype.multiply=function(e){if(this.isInfinity())return this;if(!e.signum())return this.curve.infinity;for(var t=e.multiply(gf),n=this.negate(),r=this,i=t.bitLength()-2;i>0;i--){r=r.twice();var o=t.testBit(i);o!==e.testBit(i)&&(r=r.add(o?this:n))}return r},e}(),yf=function(){function e(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new vf(this,null,null)}return e.prototype.equals=function(e){return e===this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)},e.prototype.fromBigInteger=function(e){return new mf(this.q,e)},e.prototype.decodePointHex=function(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:default:return null;case 4:case 6:case 7:var t=(e.length-2)/2,n=e.substr(2,t),r=e.substr(t+2,t);return new vf(this,this.fromBigInteger(new pf.BigInteger(n,16)),this.fromBigInteger(new pf.BigInteger(r,16)))}},e}(),bf=new pf.SecureRandom,wf=Cf(),_f=wf.curve,xf=wf.G,Ef=wf.n;function Cf(){var e=new pf.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),t=new pf.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),n=new pf.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16),r=new yf(e,t,n),i=r.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:r,G:i,n:new pf.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}function kf(e,t,n){var r=(e?new pf.BigInteger(e,t,n):new pf.BigInteger(Ef.bitLength(),bf)).mod(Ef.subtract(pf.BigInteger.ONE)).add(pf.BigInteger.ONE),i=Sf(r.toString(16),64),o=xf.multiply(r);return{privateKey:i,publicKey:"04"+Sf(o.getX().toBigInteger().toString(16),64)+Sf(o.getY().toBigInteger().toString(16),64)}}function Sf(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e}function Tf(e){return e.map((function(e){return 1===(e=e.toString(16)).length?"0"+e:e})).join("")}function Mf(e){var t=[],n=e.length;n%2!=0&&(e=Sf(e,n+1)),n=e.length;for(var r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return t}function Of(e,t){for(var n=[],r=~~(t/8),i=t%8,o=0,a=e.length;o<a;o++)n[o]=(e[(o+r)%a]<<i&255)+(e[(o+r+1)%a]>>>8-i&255);return n}function Lf(e,t){for(var n=[],r=e.length-1;r>=0;r--)n[r]=255&(e[r]^t[r]);return n}function Af(e,t){for(var n=[],r=e.length-1;r>=0;r--)n[r]=e[r]&t[r]&255;return n}function Df(e,t){for(var n=[],r=e.length-1;r>=0;r--)n[r]=255&(e[r]|t[r]);return n}function Nf(e,t){for(var n=[],r=0,i=e.length-1;i>=0;i--){var o=e[i]+t[i]+r;o>255?(r=1,n[i]=255&o):(r=0,n[i]=255&o)}return n}function Pf(e){return Lf(Lf(e,Of(e,9)),Of(e,17))}function If(e){return Lf(Lf(e,Of(e,15)),Of(e,23))}function jf(e,t,n,r){return r>=0&&r<=15?Lf(Lf(e,t),n):Df(Df(Af(e,t),Af(e,n)),Af(t,n))}function Rf(e,t,n,r){return r>=0&&r<=15?Lf(Lf(e,t),n):Df(Af(e,t),Af(function(e){for(var t=[],n=e.length-1;n>=0;n--)t[n]=255&~e[n];return t}(e),n))}function Ff(e,t){for(var n=[],r=[],i=0;i<16;i++){var o=4*i;n.push(t.slice(o,o+4))}for(var a=16;a<68;a++)n.push(Lf(Lf(If(Lf(Lf(n[a-16],n[a-9]),Of(n[a-3],15))),Of(n[a-13],7)),n[a-6]));for(a=0;a<64;a++)r.push(Lf(n[a],n[a+4]));var s,l,c,u,d=[121,204,69,25],h=[122,135,157,138],f=e.slice(0,4),p=e.slice(4,8),g=e.slice(8,12),m=e.slice(12,16),v=e.slice(16,20),y=e.slice(20,24),b=e.slice(24,28),w=e.slice(28,32);for(a=0;a<64;a++){var _=a>=0&&a<=15?d:h;l=Lf(s=Of(Nf(Nf(Of(f,12),v),Of(_,a)),7),Of(f,12)),c=Nf(Nf(Nf(jf(f,p,g,a),m),l),r[a]),u=Nf(Nf(Nf(Rf(v,y,b,a),w),s),n[a]),m=g,g=Of(p,9),p=f,f=c,w=b,b=Of(y,19),y=v,v=Pf(u)}return Lf([].concat(f,p,g,m,v,y,b,w),e)}function zf(e){var t=8*e.length,n=t%512;n=n>=448?512-n%448-1:448-n-1;for(var r=new Array((n-7)/8),i=0,o=r.length;i<o;i++)r[i]=0;var a=[];t=t.toString(2);for(i=7;i>=0;i--)if(t.length>8){var s=t.length-8;a[i]=parseInt(t.substr(s),2),t=t.substr(0,s)}else t.length>0?(a[i]=parseInt(t,2),t=""):a[i]=0;var l=[].concat(e,[128],r,a),c=l.length/64,u=[115,128,22,111,73,20,178,185,23,36,66,215,218,138,6,0,169,111,48,188,22,49,56,170,227,141,238,77,176,251,14,78];for(i=0;i<c;i++){s=64*i;u=Ff(u,l.slice(s,s+64))}return u}var Yf=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;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))},Bf=Cf();Bf.G,Bf.curve,Bf.n;function Hf(e,t,n){void 0===n&&(n=1),e="string"==typeof e?Mf(function(e){for(var t=(e=unescape(encodeURIComponent(e))).length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;var i=[];for(r=0;r<t;r++){var o=n[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")}(e)):Array.prototype.slice.call(e),t=_f.decodePointHex(t);var r=kf(),i=new pf.BigInteger(r.privateKey,16),o=r.publicKey;o.length>128&&(o=o.substr(o.length-128));var a=t.multiply(i),s=Mf(Sf(a.getX().toBigInteger().toRadix(16),64)),l=Mf(Sf(a.getY().toBigInteger().toRadix(16),64)),c=Tf(zf([].concat(s,e,l))),u=1,d=0,h=[],f=[].concat(s,l),p=function(){h=zf(Yf(Yf([],f,!0),[u>>24&255,u>>16&255,u>>8&255,255&u],!1)),u++,d=0};p();for(var g=0,m=e.length;g<m;g++)d===h.length&&p(),e[g]^=255&h[d++];var v=Tf(e);return 0===n?o+v+c:o+c+v}var qf=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Uf=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};var Vf=function(e,t){var n=void 0===t?{w:585,h:649}:t,r=n.w,i=n.h,o=void 0!==window.screenLeft?window.screenLeft:window.screenX,a=void 0!==window.screenTop?window.screenTop:window.screenY,s=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,l=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,c=s/window.screen.availWidth,u=(s-r)/2/c+o,d=(l-i)/2/c+a,h=window.open(e,"_blank","\n toolbar=no,\n menubar=no,\n scrollbars=no,\n resizable=no,\n location=no,\n status=no\n width=".concat(r/c,",\n height=").concat(i/c,",\n top=").concat(d,",\n left=").concat(u,"\n "));return null==h||h.focus(),h},Wf=function(e,t){var n=document.createElement("style"),r="\n .".concat(e," {\n ").concat(t,"\n }\n "),i=document.createTextNode(r);n.appendChild(i),document.head.appendChild(n)},Gf=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")},$f=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r.dataType,o=r.value;i===Bd.Number||i===Bd.Boolean?r.value=JSON.parse(o):i===Bd.Datetime?r.value=new Date(parseInt(o)):i===Bd.Object&&(r.value=JSON.parse(o))}return e},Kf=function(e){for(var t=0,n=e=e||[];t<n.length;t++){var r=(c=n[t]).dataType,i=c.value;r===Bd.Number||r===Bd.Boolean?c.value=JSON.parse(i):r===Bd.Datetime?c.value="string"!=typeof(o=i)||isNaN(o)||isNaN(parseFloat(o))?new Date(i):new Date(parseInt(i)):r===Bd.Object&&(c.value=JSON.parse(i))}for(var o,a={},s=0,l=e;s<l.length;s++){var c;a[(c=l[s]).key]=c.value}return a},Jf=function(){return"undefined"!=typeof navigator&&/MicroMessenger/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent)},Xf=function(){return Jf()||"undefined"!=typeof navigator&&/Lark/i.test(navigator.userAgent)};function Zf(e){for(var t=[],n=97;n<123;n++)t.push(String.fromCharCode(n));for(var r=[];e--;){var i=Math.floor(16*Math.random());r.push(t[i])}return r.join("")}var Qf=function(e,t){return new Promise((function(n,r){var i=new FormData;i.append("file",e,e instanceof Blob?"personal.jpeg":void 0);var o=new XMLHttpRequest;o.onreadystatechange=function(){if(4===this.readyState)try{var e=JSON.parse(this.responseText),t=e.code,i=e.message,o=e.data;200!==t&&r({code:t,message:i}),n(o)}catch(e){t=500,i="上传图片失败, error = ".concat(e.message);r({code:t,message:i})}},o.open("POST",t),o.send(i)}))};function ep(e){var t=e.url,n=e.accept,r=e.multiple;return new Promise((function(e,i){var o=document.createElement("input");o.type="file",o.accept=n,o.multiple=r,o.onchange=function(){var n=o.files;if(r){for(var a=[],s=0;s<n.length;)a.push(Qf(n[s],t)),s++;Promise.all(a).then((function(t){return e(t)})).catch((function(e){return i(e)}))}else{var l=n[0];Qf(l,t).then((function(t){return e(t)})).catch((function(e){return i(e)}))}},o.click()}))}var tp=function(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t.push({key:i,value:e[i]})}return t};function np(e){void 0===e&&(e=30);for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<e;r++)t+=n.charAt(Math.floor(62*Math.random()));return t}var rp,ip,op,ap,sp,lp,cp,up,dp,hp=function(e,t){for(var n={},r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];t(e[o],o)&&(n[o]=e[o])}return n},fp=function(){return fp=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},fp.apply(this,arguments)},pp=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},gp=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},mp=function(){function e(e,t){this.endpoint=e,this.options=t,this.axios=lh().create({withCredentials:!0})}return e.prototype.setOptions=function(e){this.options=e},e.prototype.request=function(e){var t,n;return pp(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,u,d,h,f,p,g,m=this;return gp(this,(function(v){switch(v.label){case 0:r=e.query,i=e.token,o=e.variables,(a={"content-type":"application/json"})[this.options.headers["app-id"]]=this.options.appId||"",a[this.options.headers["tenant-id"]]=this.options.tenantId,a[this.options.headers["userpool-id"]]=this.options.userPoolId||"",a[this.options.headers["request-from"]]=this.options.requestFrom||"sdk",a[this.options.headers["sdk-version"]]="js:".concat(ah),a[this.options.headers.lang]=this.options.lang||"",i&&(a.Authorization="Bearer ".concat(i)),s=null,l=null,v.label=1;case 1:return v.trys.push([1,3,,4]),[4,this.axios({url:this.endpoint,data:{query:r,variables:o},method:"post",headers:fp({},hp(a,(function(e){return!!e}))),timeout:this.options.timeout})];case 2:return c=v.sent().data,s=c.data,l=c.errors,[3,4];case 3:throw u=v.sent(),d=u.code||(null===(t=null==u?void 0:u.response)||void 0===t?void 0:t.status),h=u.message||(null===(n=null==u?void 0:u.response)||void 0===n?void 0:n.data),this.options.onError(d||500,u.message,h),{code:d||500,message:u.message,data:h};case 4:if((null==l?void 0:l.length)>0)throw f=null,p=null,g=null,l.map((function(e){var t=e.message,n=t.code,r=t.message,i=t.data;p=n,f=r,g=i,m.options.onError(n,r,g)})),{code:p,message:f,data:g};return[2,s]}}))}))},e}();!function(e){e[e.LOW=1]="LOW",e[e.MIDDLE=2]="MIDDLE",e[e.HIGH=3]="HIGH"}(rp||(rp={})),function(e){e.ALIPAY="alipay",e.GOOGLE="google",e.WECHATPC="wechat:pc",e.WECHATMP="wechat:webpage-authorization",e.WECHAT_MINIPROGRAM="wechat:miniprogram:default",e.WECHAT_MINIPROGRAM_QRCODE="wechat:miniprogram:qrconnect",e.WECHAT_MINIPROGRAM_APPLAUNCH="wechat:miniprogram:app-launch",e.WECHATMOBILE="wechat:mobile",e.GITHUB="github",e.QQ="qq",e.WECHATWORK_ADDRESS_BOOK="wechatwork:addressbook",e.WECHATWORK_CORP_QRCONNECT="wechatwork:corp:qrconnect",e.WECHATWORK_SERVICEPROVIDER_QRCONNECT="wechatwork:service-provider:qrconnect",e.DINGTALK="dingtalk",e.WEIBO="weibo",e.APPLE="apple",e.APPLE_WEB="apple:web",e.LARK_PUBLIC="lark-public",e.LARK_INTERNAL="lark-internal",e.BAIDU="baidu",e.LINKEDIN="linkedin",e.SLACK="slack",e.YIDUN="yidun",e.QINGCLOUD="qingcloud",e.FACEBOOK="facebook"}(ip||(ip={})),function(e){e.OIDC="oidc",e.OAUTH="oauth",e.SAML="saml",e.CAS="cas",e.AZURE_AD="azure-ad"}(op||(op={})),function(e){e[e.NoCheck=0]="NoCheck",e[e.Low=1]="Low",e[e.Middle=2]="Middle",e[e.High=3]="High"}(ap||(ap={})),function(e){e.Email="email",e.Phone="phone"}(sp||(sp={})),function(e){e.LDAP="ldap",e.AppQr="app-qrcode",e.Password="password",e.PhoneCode="phone-code",e.WxMinQr="wechat-miniprogram-qrcode",e.AD="ad"}(lp||(lp={})),function(e){e.FRONT_CHANNEL="FRONT_CHANNEL",e.BACK_CHANNEL="BACK_CHANNEL"}(cp||(cp={})),function(e){e.SCENE_TYPE_LOGIN="login",e.SCENE_TYPE_REGISTER="register",e.SCENE_TYPE_RESET="reset",e.SCENE_TYPE_BIND="bind",e.SCENE_TYPE_UNBIND="unbind",e.SCENE_TYPE_MFA_BIND="mfa-bind",e.SCENE_TYPE_MFA_VERIFY="mfa-verify",e.SCENE_TYPE_MFA_UNBIND="mfa-unbind",e.SCENE_TYPE_COMPLETE_PHONE="complete-phone"}(up||(up={})),function(e){e.WEB_MESSAGE="web_message",e.FORM_POST="form_post",e.QUERY="query"}(dp||(dp={}));var vp=function(){function e(e){this.options=e}return Object.defineProperty(e.prototype,"appHost",{get:function(){var e=this.options,t=e.appHost,n=e.domain,r=e.host;if(t)return t.replace(/\/$/,"");if(n){var i=new URL(this.options.host);return"".concat(i.protocol,"//").concat(this.options.domain)}return r},enumerable:!1,configurable:!0}),e}(),yp=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},bp=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},wp=function(){function e(e,t,n,r){this.options=e,this.tokenProvider=t,this.httpClient=n,this.scene=r,this.baseClient=new vp(e)}return e.prototype.startScanning=function(e,t){return yp(this,void 0,void 0,(function(){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,w,_,x,E,C,k,S,T,M,O,L,A,D,N,P,I,j,R,F,z,Y,B,H,q,U,V,W,G,$,K,J,X,Z,Q,ee,te,ne,re,ie,oe,ae,se=this;return bp(this,(function(le){return n=(t=t||{}).autoExchangeUserInfo,r=void 0!==n&&n,i=t.size,o=void 0===i?{height:240,width:240}:i,a=t.containerSize,s=void 0===a?{height:300,width:300}:a,l=t.interval,c=void 0===l?800:l,u=t.onStart,d=t.onResult,h=t.onScanned,f=t.onExpired,p=t.onSuccess,g=t.onCancel,m=t.onError,v=t.onCodeShow,y=t.onCodeLoaded,b=t.onCodeLoadFailed,w=t.onRetry,_=t.onMfa,x=t.onAuthFlow,E=t.tips,C=void 0===E?{}:E,k=t.context,S=t.customData,T=t.extIdpConnId,M=t.withCustomData,O=this.options.lang,L="zh-CN"===O,A=C.title,D=void 0===A?L?"请在移动端确认账号登录":"Please be on the mobile":A,N=C.canceled,void 0===N?L?"用户取消授权":"User cancel authorization":N,P=C.expired,I=void 0===P?L?"二维码已过期":"QR code has expired":P,j=C.succeed,R=void 0===j?L?"扫码成功":"Scan code successfully":j,F=C.retry,z=void 0===F?L?"重试":"Retry":F,Y=C.middleTitle,B=void 0===Y?L?"确认登录":"Confirm login":Y,H=C.referText,q=void 0===H?L?"重新扫码":"Scan the code":H,U=document.getElementById(e),W=!1,U?U.style.position="relative":((U=document.createElement("div")).id=e,Wf("__authing-qrcode-node-mount","z-index: 65535;position: fixed;background: #fff;width: ".concat(s.width,"px;height: ").concat(s.height,"px;left: 50%;margin-left: -").concat(s.width/2,"px;display: flex;justify-content: center;align-items: center;top: 50%;margin-top: -").concat(s.height/2,"px;border: 1px solid #ccc;")),U.classList.add("__authing-qrcode-node-mount"),document.getElementsByTagName("body")[0].appendChild(U),W=!0),G=document.createElement("style"),$="#authing__retry a:hover{outline:0px;text-decoration:none;}#authing__spinner{position:absolute;left:50%;margin-left:-6px;}.spinner{margin:100px auto;width:20px;height:20px;position:relative}.container1>div,.container2>div,.container3>div{width:6px;height:6px;background-color:#00a1ea;border-radius:100%;position:absolute;-webkit-animation:bouncedelay 1.2s infinite ease-in-out;animation:bouncedelay 1.2s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.spinner .spinner-container{position:absolute;width:100%;height:100%}.container2{-webkit-transform:rotateZ(45deg);transform:rotateZ(45deg)}.container3{-webkit-transform:rotateZ(90deg);transform:rotateZ(90deg)}.circle1{top:0;left:0}.circle2{top:0;right:0}.circle3{right:0;bottom:0}.circle4{left:0;bottom:0}.container2 .circle1{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.container3 .circle1{-webkit-animation-delay:-1.0s;animation-delay:-1.0s}.container1 .circle2{-webkit-animation-delay:-0.9s;animation-delay:-0.9s}.container2 .circle2{-webkit-animation-delay:-0.8s;animation-delay:-0.8s}.container3 .circle2{-webkit-animation-delay:-0.7s;animation-delay:-0.7s}.container1 .circle3{-webkit-animation-delay:-0.6s;animation-delay:-0.6s}.container2 .circle3{-webkit-animation-delay:-0.5s;animation-delay:-0.5s}.container3 .circle3{-webkit-animation-delay:-0.4s;animation-delay:-0.4s}.container1 .circle4{-webkit-animation-delay:-0.3s;animation-delay:-0.3s}.container2 .circle4{-webkit-animation-delay:-0.2s;animation-delay:-0.2s}.container3 .circle4{-webkit-animation-delay:-0.1s;animation-delay:-0.1s}@-webkit-keyframes bouncedelay{0%,80%,100%{-webkit-transform:scale(0.0)}40%{-webkit-transform:scale(1.0)}}@keyframes bouncedelay{0%,80%,100%{transform:scale(0.0);-webkit-transform:scale(0.0)}40%{transform:scale(1.0);-webkit-transform:scale(1.0)}}",G.type="text/css",G.style?G.style.cssText=$:G.innerHTML=$,document.getElementsByTagName("head")[0].appendChild(G),K=function(){U.innerHTML='<div id="authing__spinner" class="spinner"><div class="spinner-container container1"><div class="circle1"></div><div class="circle2"></div><div class="circle3"></div><div class="circle4"></div></div><div class="spinner-container container2"><div class="circle1"></div><div class="circle2"></div><div class="circle3"></div><div class="circle4"></div></div><div class="spinner-container container3"><div class="circle1"></div><div class="circle2"></div><div class="circle3"></div><div class="circle4"></div></div></div>'},J=function(){var e=document.getElementById("authing__spinner");e&&U.removeChild(e)},X=function(e){var t;try{t=JSON.parse(e).message||e}catch(n){t=e}var n=document.createElement("span");return n.className="authing__heading-subtitle",W?(Wf("__authing__heading-subtitle-style","display: block;font-weight: 400;font-size: 12px;color: #888;"),n.classList.add("__authing__heading-subtitle-style")):(Wf("__authing__heading-subtitle-style","display: block;font-weight: 400;font-size: 15px;color: #888;line-height: 20px;margin-top: 8px;"),n.classList.add("__authing__heading-subtitle-style")),n.id="authing__qrcode-tip-text",n.innerHTML=t,n},Z=function(e){var t=document.getElementById("authing__qrcode-tip-text");t&&(t.innerText=e)},Q=function(e){return new Promise((function(t){var n=document.createElement("img");n.src=e,n.width=o.width,n.height=o.height,n.setAttribute("crossOrigin","Anonymous"),n.onload=function(){t(n)}}))},ee=function(e){return new Promise((function(t){var n=document.createElement("img");n.src=e,n.setAttribute("crossOrigin","Anonymous"),n.width=o.width/2.4,n.height=o.height/2.4,n.onload=function(){n.style.display="inline",t(n)},n.onerror=function(){t(n)}}))},te=function(e){Z(B);var t=document.createElement("div");Wf("__authing-shadow-inner-style-position","position:absolute;top:56%;left:50%;\n width:64px;transform:translate(-50%,-50%);\n background-position:center center;\n align-items: center; /*垂直居中*/\n justify-content: center; /*水平居中*/"),t.classList.add("__authing-shadow-inner-style-position");var n=document.createElement("div");Wf("__authing-shadow-inner-image-style-position","width:64px;height:64px;opacity:1;\n background-position:center center;background-repeat:no-repeat;\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTQiIGhlaWdodD0iNTQiIHZpZXdCb3g9IjAgMCA1NCA1NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI3IDUzLjY2NjdDMTIuMjcyIDUzLjY2NjcgMC4zMzMzNzQgNDEuNzI4IDAuMzMzMzc0IDI3QzAuMzMzMzc0IDEyLjI3MiAxMi4yNzIgMC4zMzMzMzIgMjcgMC4zMzMzMzJDNDEuNzI4IDAuMzMzMzMyIDUzLjY2NjcgMTIuMjcyIDUzLjY2NjcgMjdDNTMuNjY2NyA0MS43MjggNDEuNzI4IDUzLjY2NjcgMjcgNTMuNjY2N1pNMjQuMzQxNCAzNy42NjY3TDQzLjE5NDcgMTguODEwN0wzOS40MjQgMTUuMDRMMjQuMzQxNCAzMC4xMjUzTDE2Ljc5NzQgMjIuNTgxM0wxMy4wMjY3IDI2LjM1MkwyNC4zNDE0IDM3LjY2NjdaIiBmaWxsPSIjMUVCNzZEIi8+Cjwvc3ZnPgo=);\n margin-bottom: 10px;\n align-items: center; /*垂直居中*/\n justify-content: center; /*水平居中*/"),n.classList.add("__authing-shadow-inner-image-style-position"),n.id="authing_scan_success_image";var r=document.createElement("p");return Wf("__authing-shadow-inner-text-style-position","font-weight: 400;font-size: 14px;line-height: 20px;color: #282D3C;;align-items: center; /*垂直居中*/justify-content: center; /*水平居中*/"),r.classList.add("__authing-shadow-inner-text-style-position"),r.id="authing_scan_success_text",r.innerText=e,t.appendChild(n),t.appendChild(r),t},ne=function(e){var t=document.createElement("p");return Wf("__authing-shadow-inner-refer-text-style-position","color: #215AE5;font-size: 14px;line-height:20px;font-weight: 400; text-align:center;cursor:pointer;padding-top:4px;"),t.classList.add("__authing-shadow-inner-refer-text-style-position"),t.id="authing_scan_success_refer_text",t.innerText=e,t.onclick=function(){se.timer&&clearInterval(se.timer),w&&w(),ae()},t},re=function(){var e=document.getElementById("authing_scan_success_refer_text");e&&e.parentNode.removeChild(e)},ie=function(e,t,n){var r="authing__retry";document.getElementById(r)&&document.getElementById(r).remove();var i=document.createElement("div");i.id=r,Wf("__authing-shadow-style","text-align:center;width: ".concat(o.width,"px;height: ").concat(o.height,"px;position: absolute;left: 50%;top: 0px;margin-left: -").concat(o.width/2,"px;background-color: rgba(0,0,0, 0.5);line-height:").concat(o.height,"px;color:#fff;font-weight:600;")),i.classList.add("__authing-shadow-style");var a=document.createElement("a");return a.innerHTML=e,a.style.color="#fff",a.style.borderBottom="1px solid #fff",a.style.cursor="pointer",t&&a.addEventListener("click",t),a.id=n,i.appendChild(a),i},oe=function(e){var t="authing__retry";document.getElementById(t)&&document.getElementById(t).remove();var n=document.createElement("div");Wf("__authing-shadow-style-position","text-align:center;width:".concat(o.width,"px;height: ").concat(o.height,"px;background:rgba(255,255,255,.97);position: absolute;left: 50%;top: 0px;margin-left: -").concat(o.width/2,"px;line-height:").concat(o.height,"px;color:#fff;font-weight:600;display: flex;\n align-items: center; /*垂直居中*/\n justify-content: center; /*水平居中*/")),n.classList.add("__authing-shadow-style-position"),n.id=t;var r=te(R),i=ne(q);return V.appendChild(i),n.appendChild(r),n},ae=function(){return yp(se,void 0,void 0,(function(){var e,t,n,i,a,s,l,E,C,O,L,A,N,P,j,F,Y,B,H,q,G,$,te,ne=this;return bp(this,(function(se){switch(se.label){case 0:K(),e=null,t=null,n=null,se.label=1;case 1:return se.trys.push([1,3,,4]),[4,this.geneCode({context:k,customData:S,extIdpConnId:T,withCustomData:M})];case 2:return i=se.sent(),e=i.random,t=i.url,n=i.customLogo,[3,4];case 3:return a=se.sent(),function(e,t,n){yp(this,void 0,void 0,(function(){var r,i,o,a;return bp(this,(function(s){switch(s.label){case 0:return r=X(t),(V=document.createElement("div")).id="authing__qrcode-wrapper",V.style.textAlign="center",V.style.position="relative",[4,Q("https://usercontents.authing.cn/0ab3a1bf19c0d7106673e494d532f91a.png")];case 1:return(i=s.sent()).style.marginTop=W?"16px":"12px",i.onload=function(){J()},o=ie(z,(function(){w&&w(),ae()}),n||"__authing_retry_btn"),V.appendChild(i),V.appendChild(o),V.appendChild(r),(a=document.querySelector("#authing__qrcode-wrapper"))&&a.remove(),e.appendChild(V),[2]}}))}))}(U,a.message),b&&b(a),[2];case 4:return y&&y(e,t),(V=document.createElement("div")).id="authing__qrcode-wrapper",V.style.textAlign="center",V.style.position="relative",V.style.margin="auto",[4,Q(t)];case 5:return s=se.sent(),n?[4,ee(n)]:[3,7];case 6:l=se.sent(),se.label=7;case 7:(E=document.createElement("canvas")).width=o.width,E.height=o.height,C=E.getContext("2d"),t&&C.drawImage(s,0,0,o.width,o.height),O=function(e){var t=e.width/2,n=e.height/2,r=e.width/2.4,i=e.height/2.4;return{x:t-r/2,y:n-i/2,ww:r,hh:i}}(o),L=O.x,A=O.y,N=O.ww,P=O.hh,C.save(),function(e,t,n,r,i,o){e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}(C,L,A,N,P,N/2),C.clip();try{l&&C.drawImage(l,L,A,N,P)}catch(e){console.log("Draw stop, check qrcodeLogo",l)}C.restore();try{j=E.toDataURL(),(F=document.createElement("img")).src=j,V.appendChild(F)}catch(e){V.appendChild(E)}return J(),v&&v(e,t),Y=function(e,t){Z(""),re();var n=ie(R,null,"__authing_success_tip");(V.appendChild(n),p)&&(r?e.token?p(e,t):ne.exchangeUserInfo(t).then((function(e){ne.tokenProvider.setUser(e),p(e,t)})):p(e,t))},B=function(e){var t=oe(e.nickname);V.appendChild(t),h&&h(e)},H=function(){ae&&ae(),g&&g()},q=function(){var e=ie(I,(function(){V.innerHTML="",ae()}),"__authing_success_tip");V.appendChild(e),f&&f()},G=function(e){var t=e.message;m&&m(t)},this.startPolling(e,{interval:c,onStart:u,onResult:d,onScanned:B,onExpired:q,onSuccess:Y,onCancel:H,onError:G,onMfa:_,onAuthFlow:x}),$=X(D),V.appendChild($),(te=document.querySelector("#authing__qrcode-wrapper"))&&te.remove(),U.appendChild(V),[2]}}))}))},ae(),[2]}))}))},e.prototype.geneCode=function(e){return yp(this,void 0,void 0,(function(){var t,n,r,i,o,a;return bp(this,(function(s){switch(s.label){case 0:return n=(t=e||{}).context,r=t.customData,i=t.extIdpConnId,o=t.withCustomData,a="".concat(this.baseClient.appHost,"/api/v2/qrcode/gene"),[4,this.httpClient.request({method:"POST",url:a,data:{autoMergeQrCode:!1,scene:this.scene,context:n,params:r,extIdpConnId:i,withCustomData:o}})];case 1:return[2,s.sent()]}}))}))},e.prototype.checkStatus=function(e){return yp(this,void 0,void 0,(function(){var t;return bp(this,(function(n){switch(n.label){case 0:return t="".concat(this.baseClient.appHost,"/api/v2/qrcode/check?random=").concat(e),[4,this.httpClient.request({method:"GET",url:t})];case 1:return[2,n.sent()]}}))}))},e.prototype.exchangeUserInfo=function(e){return yp(this,void 0,void 0,(function(){var t;return bp(this,(function(n){switch(n.label){case 0:return t="".concat(this.baseClient.appHost,"/api/v2/qrcode/userinfo"),[4,this.httpClient.request({method:"POST",url:t,data:{ticket:e}})];case 1:return[2,n.sent()]}}))}))},e.prototype.startPolling=function(e,t){return yp(this,void 0,void 0,(function(){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m=this;return bp(this,(function(v){return n=(t=t||{}).interval,r=void 0===n?800:n,i=t.onStart,o=t.onResult,a=t.onScanned,s=t.onExpired,l=t.onSuccess,c=t.onCancel,u=t.onError,d=t.onMfa,h=t.onAuthFlow,f=!1,p=!1,g=this.timer=setInterval((function(){return yp(m,void 0,void 0,(function(){var t,n,r,m,v,y,b,w,_,x;return bp(this,(function(E){switch(E.label){case 0:i&&!p&&(i(g),p=!0),E.label=1;case 1:return E.trys.push([1,3,,4]),[4,this.checkStatus(e)];case 2:return t=E.sent(),n=t.status,r=t.ticket,m=t.userInfo,o&&o(t),-1===n&&(clearInterval(g),s&&s()),1===n&&a&&!f&&(a(m),f=!0),2===n&&(clearInterval(g),l&&l(m,r)),3===n&&(clearInterval(g),c&&c()),4===n&&(clearInterval(g),d&&(w=t.scannedResult,v=w.code,y=w.message,b=w.data,d(v,y,b)),h&&(w=t.scannedResult,h(w))),5===n&&(clearInterval(g),u&&(w=t.scannedResult,_=w.errmsg,u(_))),[3,4];case 3:return x=E.sent(),u&&u(x),clearInterval(g),[2];case 4:return[2]}}))}))}),r),[2,g]}))}))},e.prototype.stopPolling=function(e){return yp(this,void 0,void 0,(function(){return bp(this,(function(t){return clearInterval(e),[2]}))}))},e}(),_p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},xp=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Ep=function(){function e(e,t,n){this.options=e,this.tokenProvider=t,this.httpClient=n,this.baseClient=new vp(e)}return e.prototype.getMfaAuthenticators=function(e){return void 0===e&&(e={type:"totp",source:"SELF"}),_p(this,void 0,void 0,(function(){var t,n,r,i,o;return xp(this,(function(a){switch(a.label){case 0:return t=e.type,n=e.mfaToken,r=e.source,i="".concat(this.baseClient.appHost,"/api/v2/mfa/authenticator"),o={},n&&(o.authorization="Bearer ".concat(n)),[4,this.httpClient.request({method:"GET",url:i,params:{type:t,source:r},headers:o})];case 1:return[2,a.sent()]}}))}))},e.prototype.assosicateMfaAuthenticator=function(e){return void 0===e&&(e={authenticatorType:"totp",source:"SELF"}),_p(this,void 0,void 0,(function(){var t,n,r,i,o;return xp(this,(function(a){switch(a.label){case 0:return t=e.authenticatorType,n=e.mfaToken,r=e.source,i={},n&&(i.authorization="Bearer ".concat(n)),o="".concat(this.baseClient.appHost,"/api/v2/mfa/totp/associate"),[4,this.httpClient.request({method:"POST",url:o,data:{authenticator_type:t,source:r},headers:i})];case 1:return[2,a.sent()]}}))}))},e.prototype.deleteMfaAuthenticator=function(){return _p(this,void 0,void 0,(function(){var e;return xp(this,(function(t){switch(t.label){case 0:return e="".concat(this.baseClient.appHost,"/api/v2/mfa/totp/associate"),[4,this.httpClient.request({method:"DELETE",url:e})];case 1:return t.sent(),[2,{code:200,message:"TOTP MFA 解绑成功"}]}}))}))},e.prototype.confirmAssosicateMfaAuthenticator=function(e){return void 0===e&&(e={authenticatorType:"totp",source:"SELF"}),_p(this,void 0,void 0,(function(){var t,n,r,i,o,a;return xp(this,(function(s){switch(s.label){case 0:return t="".concat(this.baseClient.appHost,"/api/v2/mfa/totp/associate/confirm"),n=e.authenticatorType,r=e.totp,i=e.source,o=e.mfaToken,a={},o&&(a.authorization="Bearer ".concat(o)),[4,this.httpClient.request({method:"POST",url:t,data:{authenticator_type:n,totp:r,source:i}})];case 1:return s.sent(),[2,{code:200,message:"TOTP MFA 绑定成功"}]}}))}))},e.prototype.verifyTotpMfa=function(e){return _p(this,void 0,void 0,(function(){var t;return xp(this,(function(n){switch(n.label){case 0:return t="".concat(this.baseClient.appHost,"/api/v2/mfa/totp/verify"),[4,this.httpClient.request({method:"POST",url:t,data:{totp:e.totp},headers:{authorization:"Bearer "+e.mfaToken}})];case 1:return[2,n.sent()]}}))}))},e.prototype.verifyAppSmsMfa=function(e){return _p(this,void 0,void 0,(function(){var t;return xp(this,(function(n){switch(n.label){case 0:return t="".concat(this.baseClient.appHost,"/api/v2/applications/mfa/sms/verify"),[4,this.httpClient.request({method:"POST",url:t,data:{phone:e.phone,code:e.code,phoneCountryCode:e.phoneCountryCode},headers:{authorization:"Bearer "+e.mfaToken}})];case 1:return[2,n.sent()]}}))}))},e.prototype.verifyAppEmailMfa=function(e){return _p(this,void 0,void 0,(function(){var t;return xp(this,(function(n){switch(n.label){case 0:return t="".concat(this.baseClient.appHost,"/api/v2/applications/mfa/email/verify"),[4,this.httpClient.request({method:"POST",url:t,data:{email:e.email,code:e.code},headers:{authorization:"Bearer "+e.mfaToken}})];case 1:return[2,n.sent()]}}))}))},e.prototype.phoneOrEmailBindable=function(e){var t=e.phone,n=e.email,r=e.mfaToken;return _p(this,void 0,void 0,(function(){var e;return xp(this,(function(i){switch(i.label){case 0:return e="".concat(this.baseClient.appHost,"/api/v2/applications/mfa/check"),[4,this.httpClient.request({method:"POST",url:e,data:{email:n,phone:t},headers:{authorization:"Bearer "+r}})];case 1:return[2,i.sent()]}}))}))},e.prototype.verifyTotpRecoveryCode=function(e){return _p(this,void 0,void 0,(function(){var t;return xp(this,(function(n){switch(n.label){case 0:return t="".concat(this.baseClient.appHost,"/api/v2/mfa/totp/recovery"),[4,this.httpClient.request({method:"POST",url:t,data:{recoveryCode:e.recoveryCode},headers:{authorization:"Bearer "+e.mfaToken}})];case 1:return[2,n.sent()]}}))}))},e.prototype.associateFaceByUrl=function(e){return _p(this,void 0,void 0,(function(){var t,n,r,i,o;return xp(this,(function(a){switch(a.label){case 0:return t=e.baseFace,n=e.compareFace,r=e.mfaToken,i={},r&&(i.authorization="Bearer ".concat(r)),o="".concat(this.baseClient.appHost,"/api/v2/mfa/face/associate"),[4,this.httpClient.request({method:"POST",url:o,data:{photoA:t,photoB:n,isExternal:!0},headers:i})];case 1:return[2,a.sent()]}}))}))},e.prototype.associateFaceByLocalFile=function(e){return _p(this,void 0,void 0,(function(){var t,n,r,i;return xp(this,(function(o){switch(o.label){case 0:t={},e&&(t.authorization="Bearer ".concat(e)),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,ep({accept:".jpeg,.jpg,.png,.bmp",url:"".concat(this.baseClient.appHost,"/api/v2/upload?folder=face-photo&private=true")})];case 2:return r=o.sent().key,n=r,[3,4];case 3:return i=o.sent(),this.options.onError(i.code,i.message),[3,4];case 4:return[4,this.httpClient.request({method:"POST",url:"".concat(this.baseClient.appHost,"/api/v2/mfa/face/associate"),data:{photoA:n,photoB:n},headers:t})];case 5:return[2,o.sent()]}}))}))},e.prototype.associateFaceByBlob=function(e){return _p(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,l,c,u;return xp(this,(function(d){switch(d.label){case 0:t=e.baseFace,n=e.compareFace,r=e.mfaToken,i={},r&&(i.authorization="Bearer ".concat(r)),s="".concat(this.baseClient.appHost,"/api/v2/upload?folder=face-photo&private=true"),d.label=1;case 1:return d.trys.push([1,6,,7]),[4,Qf(t,s)];case 2:return l=d.sent().key,o=l,n?[4,Qf(n,s)]:[3,4];case 3:return c=d.sent().key,a=c,[3,5];case 4:a=l,d.label=5;case 5:return[3,7];case 6:return u=d.sent(),this.options.onError(u.code,u.message),[3,7];case 7:return[4,this.httpClient.request({method:"POST",url:"".concat(this.baseClient.appHost,"/api/v2/mfa/face/associate"),data:{photoA:o,photoB:a},headers:i})];case 8:return[2,d.sent()]}}))}))},e.prototype.verifyFaceMfa=function(e,t){return _p(this,void 0,void 0,(function(){var n;return xp(this,(function(r){switch(r.label){case 0:return n="".concat(this.baseClient.appHost,"/api/v2/mfa/face/verify"),[4,this.httpClient.request({method:"POST",url:n,data:{photo:e},headers:{authorization:"Bearer ".concat(t)}})];case 1:return[2,r.sent()]}}))}))},e}(),Cp=function(){var e=function(t,n){return e=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])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kp=function(){return kp=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},kp.apply(this,arguments)},Sp=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Tp=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Mp=function(){function e(e,t){this.options=e,this.tokenProvider=t,this.axios=lh().create({withCredentials:!0})}return e.prototype.setOptions=function(e){this.options=e},e.prototype.request=function(e){var t;return Sp(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Tp(this,(function(l){switch(l.label){case 0:return(n={})[this.options.headers["app-id"]]=this.options.appId||"",n[this.options.headers["tenant-id"]]=this.options.tenantId,n[this.options.headers["userpool-id"]]=this.options.userPoolId||"",n[this.options.headers["request-from"]]=this.options.requestFrom||"sdk",n[this.options.headers["sdk-version"]]="js:".concat(ah),n[this.options.headers.lang]=this.options.lang||"",e.unSetToken?[3,3]:e&&e.headers&&e.headers.authorization?[3,2]:[4,null===(t=this.tokenProvider)||void 0===t?void 0:t.getToken()];case 1:return(r=l.sent())&&(n.Authorization="Bearer ".concat(r)),[3,3];case 2:n.authorization=e.headers.authorization,l.label=3;case 3:return e.headers=n,e.timeout=this.options.timeout,[4,this.axios.request(kp(kp({},e),{headers:kp({},hp(e.headers,(function(e){return!!e})))}))];case 4:if(i=l.sent().data,o=i.code,a=i.message,s=i.statusCode,200===o||200===s)return[2,i.data];throw this.options.onError(o,a,i.data),new Error(JSON.stringify({code:o,message:a,data:i.data}))}}))}))},e}(),Op=(function(e){function t(t,n){return e.call(this,t,n)||this}Cp(t,e),t.prototype.request=function(e){return Sp(this,void 0,void 0,(function(){var t,n;return Tp(this,(function(r){switch(r.label){case 0:return(t={})[this.options.headers["app-id"]]=this.options.appId||"",t[this.options.headers["tenant-id"]]=this.options.tenantId,t[this.options.headers["userpool-id"]]=this.options.userPoolId||"",t[this.options.headers["request-from"]]=this.options.requestFrom||"sdk",t[this.options.headers["sdk-version"]]="js:".concat(ah),t[this.options.headers.lang]=this.options.lang||"",e&&e.headers&&e.headers.authorization?[3,2]:[4,this.tokenProvider.getToken()];case 1:return(n=r.sent())&&(t.Authorization="Bearer ".concat(n)),[3,3];case 2:t.authorization=e.headers.authorization,r.label=3;case 3:return e.headers=t,e.timeout=this.options.timeout,[4,this.axios.request(kp(kp({},e),{headers:kp({},hp(e.headers,(function(e){return!!e})))}))];case 4:return[2,r.sent().data]}}))}))}}(Mp),function(e){function t(t,n){return e.call(this,t,n)||this}return Cp(t,e),t.prototype.request=function(e){return Sp(this,void 0,void 0,(function(){var t;return Tp(this,(function(n){switch(n.label){case 0:return(t={})[this.options.headers["app-id"]]=this.options.appId||"",t[this.options.headers["userpool-id"]]=t[this.options.headers["tenant-id"]]=this.options.tenantId,this.options.userPoolId,t[this.options.headers["request-from"]]=this.options.requestFrom||"sdk",t[this.options.headers["sdk-version"]]="js:".concat(ah),t[this.options.headers.lang]=this.options.lang||"",e.headers=kp(kp({},t),e.headers),e.timeout=this.options.timeout,[4,this.axios.request(kp(kp({},e),{headers:kp({},hp(e.headers,(function(e){return!!e})))}))];case 1:return[2,n.sent().data]}}))}))},t}(Mp)),Lp=__webpack_require__(46489),Ap=__webpack_require__.n(Lp),Dp=function(){function e(e,t,n){this.options=e,this.tokenProvider=t,this.httpClient=n,this.baseClient=new vp(e)}return e.prototype.authorize=function(e,t){var n=this,r=(t=t||{}).position,i=t.popup,o=void 0===i||i,a=t.onSuccess,s=t.onError,l=t.authorization_params,c=t.authorizationParams,u=t.context,d=t.customData,h=t.withIdentities,f=void 0!==h&&h,p=t.protocol,g=void 0===p?"oidc":p,m=t.uuid,v=t.withCustomData,y=void 0!==v&&v,b=t.targetUrl,w=t.relayMethod,_=t.guardVersion;m||(m=np(20));var x={from_guard:"1",app_id:this.options.appId,authorization_params:JSON.stringify(l||c),with_identities:f?"1":"0",with_custom_data:y?"1":"0",protocol:g,uuid:m,target_url:b,relay_method:w,guard_version:_};u&&(x.context=JSON.stringify(u)),this.options.tenantId&&(x.tenant_id=this.options.tenantId),d&&(x.custom_data=JSON.stringify(d));var E="".concat(this.baseClient.appHost,"/connections/social/").concat(e,"?").concat(Gf(x)),C=function(e){var t=e.data,r=t.code,i=t.message,o=t.data,l=t.event,c=(l=l||{}).source,u=l.eventType;if("authing"===c&&"socialLogin"===u){try{r=JSON.parse(i).code}catch(e){}200===r?(n.tokenProvider.setUser(o),a&&a(o)):s&&s(r,i,o),window.removeEventListener("message",C)}};return window.addEventListener("message",C),Xf()?(E="".concat(E,"&redirected=1&from_hosted_guard=1&redirect_url=").concat(this.baseClient.appHost,"/interaction/oidc/").concat(m,"/login"),window.location.href=E):o?Vf(E,r):window.open(E),Promise.resolve()},e}(),Np=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Pp=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Ip=function(){function e(e,t){this.options=e,this.baseClient=new vp(this.options),this.httpClient=t}return e.prototype.getPublicKey=function(){return Np(this,void 0,void 0,(function(){var e,t,n;return Pp(this,(function(r){switch(r.label){case 0:return this.options.publicKey?[2,this.options.publicKey]:this.publicKey?[2,this.publicKey]:(e="".concat(this.baseClient.appHost,"/api/v2/.well-known"),[4,this.httpClient.request({method:"GET",url:e})]);case 1:return t=r.sent(),n=t.publicKey,this.publicKey=n,[2,this.publicKey]}}))}))},e}(),jp=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Rp=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Fp=function(){function e(e,t,n){this.options=e,this.baseClient=new vp(e),this.tokenProvider=t,this.httpClient=n}return e.prototype.initProviderContext=function(e){return jp(this,void 0,void 0,(function(){return Rp(this,(function(t){switch(t.label){case 0:return[4,this.httpClient.request({method:"GET",url:"".concat(this.baseClient.appHost,"/api/v2/applications/").concat(e,"/public-config")})];case 1:return[2,t.sent()]}}))}))},e.prototype.getProviderConfigAndError=function(e,t,n){var r,i,o=null===(i=null===(r=t.identityProviders)||void 0===r?void 0:r.find((function(t){return t.protocol===e&&t.identifier===n})))||void 0===i?void 0:i.config;if(!o)throw new Error("身份源配置不存在");return o},e.prototype.getLoginUrl=function(e,t,n,r){var i=this.getProviderConfigAndError(e,t,n);switch(e){case op.OIDC:var o=Gf({state:r,client_id:i.clientId,redirect_uri:i.redirectUri,scope:i.scopes,response_type:i.responseType,nonce:Zf(32)});return"".concat(i.authorizationEdpoint,"?").concat(o);case op.SAML:return i.samlRequest;case op.CAS:return i.casConnectionLoginUrl;case op.OAUTH:return i.authUrl;case op.AZURE_AD:return i.authorizationUrl;default:return""}},e.prototype.authorize=function(e,t,n){var r,i=this,o=(n=n||{}).position,a=n.popup,s=void 0===a||a,l=n.onSuccess,c=n.onError,u=this.options.appId,d=Zf(32);return r=Jf()?window:s?Vf("",o):window.open(""),this.initProviderContext(u).then((function(n){(e===op.OIDC?i.httpClient.request({method:"POST",url:"".concat(i.baseClient.appHost,"/api/v2/connections/oidc/start-interaction"),data:{state:d,protocol:e,userPoolId:n.userPoolId,appId:u,referer:window.location.href,connection:{providerIentifier:t}}}):Promise.resolve()).then((function(){var o=i.getLoginUrl(e,n,t,d),a=function(e){var t=e.data,n=t.code,r=t.message,o=t.data,s=t.event,u=(s=s||{}).source,d=s.eventType;if("authing"===u&&"enterpriseLogin"===d){try{var h=JSON.parse(r);r=h.message,n=h.code}catch(e){}200===n?(i.tokenProvider.setUser(o),l&&l(o)):c&&c(n,r),window.removeEventListener("message",a)}};window.addEventListener("message",a),r.location.assign(o)}))})),Promise.resolve()},e}(),zp=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Yp=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Bp=function(){function e(e,t,n){this.options=e,this.tokenProvider=t,this.httpClient=n,this.baseClient=new vp(e)}return e.prototype.detail=function(){return zp(this,void 0,void 0,(function(){var e;return Yp(this,(function(t){switch(t.label){case 0:return e="".concat(this.baseClient.appHost,"/api/v2/users/principal_authentication"),[4,this.httpClient.request({method:"GET",url:e})];case 1:return[2,t.sent()]}}))}))},e.prototype.authenticate=function(e){return zp(this,void 0,void 0,(function(){var t,n;return Yp(this,(function(r){switch(r.label){case 0:return t="".concat(this.baseClient.appHost,"/api/v2/users/principal_authentication"),n="P"===e.type?{type:"P",name:e.name,idCard:e.idCard,ext:e.bankCard}:{type:"E",name:e.enterpriseName,idCard:e.enterpriseCode,ext:e.legalPersonName},[4,this.httpClient.request({method:"POST",url:t,data:n})];case 1:return r.sent(),[2,!0]}}))}))},e}(),Hp=function(){return Hp=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},Hp.apply(this,arguments)},qp=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},Up=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Vp={appId:void 0,tenantId:void 0,appHost:void 0,protocol:"oidc",tokenEndPointAuthMethod:"client_secret_post",introspectionEndPointAuthMethod:"client_secret_post",revocationEndPointAuthMethod:"client_secret_post",timeout:1e4,onError:function(e,t,n){throw{code:e,message:t,data:n}},requestFrom:"sdk",encryptFunction:function(e,t,n){return qf(void 0,void 0,void 0,(function(){return Uf(this,(function(r){return[2,new Promise((function(r,i){if(n&&"sm2"===(null==n?void 0:n.type)){if(!n.publicKey)throw new Error("未配置: encryption.publicKey");var o=Hf(e,n.publicKey);return r("sm2:".concat(o))}var a=new ff({});a.setPublicKey(t);var s=a.encrypt(e);!1!==s?r(s):i(s)}))]}))}))},host:"https://core.authing.cn",headers:{"userpool-id":"x-authing-userpool-id","app-id":"x-authing-app-id","request-from":"x-authing-request-from","sdk-version":"x-authing-sdk-version","tenant-id":"x-authing-app-tenant-id",lang:"x-authing-lang"},lang:"zh-CN"},Wp=function(){function e(e){Object.keys(e).forEach((function(t){return!e[t]&&delete e[t]})),this.options=Object.assign({},Vp,e),this.baseClient=new vp(this.options);var t="".concat(this.baseClient.appHost,"/graphql/v2");this.graphqlClient=new(this.options.graphqlClient||mp)(t,this.options),this.tokenProvider=new(this.options.tokenProvider||Jd)(this.options),this.httpClient=new(this.options.httpClient||Mp)(this.options,this.tokenProvider),this.naiveHttpClient=new Op(this.options,this.tokenProvider),this.publicKeyManager=new Ip(this.options,this.httpClient),this.wxqrcode=new wp(this.options,this.tokenProvider,this.httpClient,"WXAPP_AUTH"),this.qrcode=new wp(this.options,this.tokenProvider,this.httpClient,"APP_AUTH"),this.wechatmpqrcode=new wp(this.options,this.tokenProvider,this.httpClient,"WECHATMP_AUTH"),this.mfa=new Ep(this.options,this.tokenProvider,this.httpClient),this.social=new Dp(this.options,this.tokenProvider,this.httpClient),this.enterprise=new Fp(this.options,this.tokenProvider,this.httpClient),this.principal=new Bp(this.options,this.tokenProvider,this.httpClient),this.options.token&&this.setToken(this.options.token)}return e.prototype.checkLoggedIn=function(){var e,t=this.tokenProvider.getUser();if(t)return t.id;var n=this.tokenProvider.getToken();if(!n)throw new Error("请先登录!");var r=Ap()(n),i=r.sub||(null===(e=r.data)||void 0===e?void 0:e.id);if(!i)throw new Error("不合法的 accessToken");return i},e.prototype.setCurrentUser=function(e){this.tokenProvider.setUser(e)},e.prototype.setToken=function(e){this.tokenProvider.setToken(e)},e.prototype.setRequestFrom=function(e){this.options.requestFrom=e,this.graphqlClient.setOptions(this.options),this.httpClient.setOptions(this.options)},e.prototype.registerByEmail=function(e,t,n,r){return qp(this,void 0,void 0,(function(){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,y;return Up(this,(function(b){switch(b.label){case 0:return n=n||{},i=(r=r||{}).forceLogin,o=void 0!==i&&i,a=r.generateToken,s=void 0!==a&&a,l=r.clientIp,c=r.params,u=r.context,d=r.customData,h=r.phoneToken,p=(f=this.options).encryptFunction,g=[t],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,p.apply(f,g.concat([b.sent(),this.options.encryption]))];case 2:return t=b.sent(),m=null,d?m=JSON.stringify(tp(d)):c&&(m=JSON.stringify(c)),v=null,u&&(v=JSON.stringify(u)),[4,(w=this.graphqlClient,_=this.tokenProvider,x={input:{email:e,password:t,profile:n,forceLogin:o,generateToken:s,clientIp:l,params:m,context:v,phoneToken:h}},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation registerByEmail($input: RegisterByEmailInput!) {\n registerByEmail(input: $input) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n }\n}\n ",[4,_.getToken()];case 1:return t=n.sent(),[2,w.request({query:e,token:t,variables:x})]}}))})))];case 3:return y=b.sent().registerByEmail,this.setCurrentUser(y),[2,y]}var w,_,x}))}))},e.prototype.registerByEmailCode=function(e,t,n,r){return qp(this,void 0,void 0,(function(){var i,o;return Up(this,(function(a){switch(a.label){case 0:return i="".concat(this.baseClient.appHost,"/api/v2/register/email-code"),o=Hp({email:e,code:t,profile:n},r),[4,this.httpClient.request({method:"POST",url:i,data:o})];case 1:return[2,a.sent()]}}))}))},e.prototype.registerByUsername=function(e,t,n,r){return qp(this,void 0,void 0,(function(){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b;return Up(this,(function(w){switch(w.label){case 0:return n=n||{},i=(r=r||{}).forceLogin,o=void 0!==i&&i,a=r.generateToken,s=void 0!==a&&a,l=r.clientIp,c=r.params,u=r.context,d=r.customData,h=r.phoneToken,f=r.emailToken,g=(p=this.options).encryptFunction,m=[t],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,g.apply(p,m.concat([w.sent(),this.options.encryption]))];case 2:return t=w.sent(),v=null,d?v=JSON.stringify(tp(d)):c&&(v=JSON.stringify(c)),y=null,u&&(y=JSON.stringify(u)),[4,(_=this.graphqlClient,x=this.tokenProvider,E={input:{username:e,password:t,profile:n,forceLogin:o,generateToken:s,clientIp:l,params:v,context:y,phoneToken:h,emailToken:f}},th(void 0,void 0,void 0,(function(){var e;return nh(this,(function(t){return e=x.getToken(),[2,_.request({query:"\n mutation registerByUsername($input: RegisterByUsernameInput!) {\n registerByUsername(input: $input) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n }\n}\n ",token:e,variables:E})]}))})))];case 3:return b=w.sent().registerByUsername,this.setCurrentUser(b),[2,b]}var _,x,E}))}))},e.prototype.registerByPhoneCode=function(e,t,n,r,i){return qp(this,void 0,void 0,(function(){var o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,w;return Up(this,(function(_){switch(_.label){case 0:return r=r||{},o=(i=i||{}).forceLogin,a=void 0!==o&&o,s=i.generateToken,l=void 0!==s&&s,c=i.clientIp,u=i.params,d=i.context,h=i.customData,f=i.phoneCountryCode,p=i.emailToken,n?(m=(g=this.options).encryptFunction,v=[n],[4,this.publicKeyManager.getPublicKey()]):[3,3];case 1:return[4,m.apply(g,v.concat([_.sent(),this.options.encryption]))];case 2:n=_.sent(),_.label=3;case 3:return y=null,h?y=JSON.stringify(tp(h)):u&&(y=JSON.stringify(u)),b=null,d&&(b=JSON.stringify(d)),[4,(x=this.graphqlClient,E=this.tokenProvider,C={input:{phone:e,code:t,phoneCountryCode:f,password:n,profile:r,forceLogin:a,generateToken:l,clientIp:c,params:y,context:b,emailToken:p}},th(void 0,void 0,void 0,(function(){var e;return nh(this,(function(t){return e=E.getToken(),[2,x.request({query:"\n mutation registerByPhoneCode($input: RegisterByPhoneCodeInput!) {\n registerByPhoneCode(input: $input) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n }\n}\n ",token:e,variables:C})]}))})))];case 4:return w=_.sent().registerByPhoneCode,this.setCurrentUser(w),[2,w]}var x,E,C}))}))},e.prototype.checkPasswordStrength=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:return[4,(n=this.graphqlClient,r=this.tokenProvider,i={password:e},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(o){switch(o.label){case 0:return e="\n query checkPasswordStrength($password: String!) {\n checkPasswordStrength(password: $password) {\n valid\n message\n }\n}\n ",[4,r.getToken()];case 1:return t=o.sent(),[2,n.request({query:e,token:t,variables:i})]}}))})))];case 1:return[2,t.sent().checkPasswordStrength]}var n,r,i}))}))},e.prototype.sendSmsCode=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i;return Up(this,(function(o){switch(o.label){case 0:return r="".concat(this.baseClient.appHost,"/api/v2/sms/send"),i={phone:e},t&&(i.phoneCountryCode=t),n&&(i.scene=n),[4,this.httpClient.request({method:"POST",url:r,data:i})];case 1:return[2,o.sent()]}}))}))},e.prototype.loginByEmail=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,u,d,h,f,p,g;return Up(this,(function(m){switch(m.label){case 0:return r=(n=n||{}).autoRegister,i=void 0!==r&&r,o=n.captchaCode,a=n.clientIp,s=n.params,l=n.context,c=n.customData,d=(u=this.options).encryptFunction,h=[t],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,d.apply(u,h.concat([m.sent(),this.options.encryption]))];case 2:return t=m.sent(),f=null,c?f=JSON.stringify(tp(c)):s&&(f=JSON.stringify(s)),p=null,l&&(p=JSON.stringify(l)),[4,(v=this.graphqlClient,y=this.tokenProvider,b={input:{email:e,password:t,autoRegister:i,captchaCode:o,clientIp:a,params:f,context:p}},th(void 0,void 0,void 0,(function(){var e;return nh(this,(function(t){return e=y.getToken(),[2,v.request({query:"\n mutation loginByEmail($input: LoginByEmailInput!) {\n loginByEmail(input: $input) {\n id\n arn\n status\n userPoolId\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n newlyCreated\n phoneCountryCode\n customData {\n key\n value\n dataType\n label\n }\n }\n}\n ",token:e,variables:b})]}))})))];case 3:return(g=m.sent().loginByEmail).customData&&(g.customData=Kf(g.customData)),this.setCurrentUser(g),[2,g]}var v,y,b}))}))},e.prototype.loginByUsername=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,u,d,h,f,p,g;return Up(this,(function(m){switch(m.label){case 0:return r=(n=n||{}).autoRegister,i=void 0!==r&&r,o=n.captchaCode,a=n.clientIp,s=n.params,l=n.context,c=n.customData,d=(u=this.options).encryptFunction,h=[t],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,d.apply(u,h.concat([m.sent(),this.options.encryption]))];case 2:return t=m.sent(),f=null,c?f=JSON.stringify(tp(c)):s&&(f=JSON.stringify(s)),p=null,l&&(p=JSON.stringify(l)),[4,(v=this.graphqlClient,y=this.tokenProvider,b={input:{username:e,password:t,autoRegister:i,captchaCode:o,clientIp:a,params:f,context:p}},th(void 0,void 0,void 0,(function(){var e;return nh(this,(function(t){return e=y.getToken(),[2,v.request({query:"\n mutation loginByUsername($input: LoginByUsernameInput!) {\n loginByUsername(input: $input) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n newlyCreated\n phoneCountryCode\n customData {\n key\n value\n dataType\n label\n }\n }\n}\n ",token:e,variables:b})]}))})))];case 3:return(g=m.sent().loginByUsername).customData&&(g.customData=Kf(g.customData)),this.setCurrentUser(g),[2,g]}var v,y,b}))}))},e.prototype.loginByPhoneCode=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,u;return Up(this,(function(d){switch(d.label){case 0:return r=(n=n||{}).clientIp,i=n.params,o=n.context,a=n.customData,s=n.phoneCountryCode,l=null,a?l=JSON.stringify(tp(a)):i&&(l=JSON.stringify(i)),c=null,o&&(c=JSON.stringify(o)),[4,(h=this.graphqlClient,f=this.tokenProvider,p={input:{phone:e,code:t,phoneCountryCode:s,clientIp:r,params:l,context:c}},th(void 0,void 0,void 0,(function(){var e;return nh(this,(function(t){return e=f.getToken(),[2,h.request({query:"\n mutation loginByPhoneCode($input: LoginByPhoneCodeInput!) {\n loginByPhoneCode(input: $input) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n newlyCreated\n phoneCountryCode\n customData {\n key\n value\n dataType\n label\n }\n }\n}\n ",token:e,variables:p})]}))})))];case 1:return(u=d.sent().loginByPhoneCode).customData&&(u.customData=Kf(u.customData)),this.setCurrentUser(u),[2,u]}var h,f,p}))}))},e.prototype.loginByEmailCode=function(e,t,n){var r;return qp(this,void 0,void 0,(function(){var i,o,a,s,l,c,u,d,h;return Up(this,(function(f){switch(f.label){case 0:return i=(n=n||{}).clientIp,o=n.params,a=n.context,s=n.customData,l=n.phoneCountryCode,c=null,s?c=JSON.stringify(tp(s)):o&&(c=JSON.stringify(o)),u=null,a&&(u=JSON.stringify(a)),d="".concat(null!==(r=this.options.appHost)&&void 0!==r?r:"","/api/v2/login/email-code"),[4,this.httpClient.request({method:"POST",url:d,data:{email:e,code:t,phoneCountryCode:l,clientIp:i,params:c,context:u},unSetToken:!0})];case 1:return(h=f.sent()).customData&&(h.customData=Kf(h.customData)),this.setCurrentUser(h),[2,h]}}))}))},e.prototype.loginByPhonePassword=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i,o,a,s,l,c,u,d,h,f,p,g;return Up(this,(function(m){switch(m.label){case 0:return r=(n=n||{}).captchaCode,i=n.autoRegister,o=void 0!==i&&i,a=n.clientIp,s=n.params,l=n.context,c=n.customData,d=(u=this.options).encryptFunction,h=[t],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,d.apply(u,h.concat([m.sent(),this.options.encryption]))];case 2:return t=m.sent(),f=null,c?f=JSON.stringify(tp(c)):s&&(f=JSON.stringify(s)),p=null,l&&(p=JSON.stringify(l)),[4,(v=this.graphqlClient,y=this.tokenProvider,b={input:{phone:e,password:t,captchaCode:r,autoRegister:o,clientIp:a,params:f,context:p}},th(void 0,void 0,void 0,(function(){var e;return nh(this,(function(t){return e=y.getToken(),[2,v.request({query:"\n mutation loginByPhonePassword($input: LoginByPhonePasswordInput!) {\n loginByPhonePassword(input: $input) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n newlyCreated\n phoneCountryCode\n customData {\n key\n value\n dataType\n label\n }\n }\n}\n ",token:e,variables:b})]}))})))];case 3:return(g=m.sent().loginByPhonePassword).customData&&(g.customData=Kf(g.customData)),this.setCurrentUser(g),[2,g]}var v,y,b}))}))},e.prototype.loginBySubAccount=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i,o,a,s,l;return Up(this,(function(c){switch(c.label){case 0:return r=(n=n||{}).captchaCode,i=n.clientIp,a=(o=this.options).encryptFunction,s=[t],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,a.apply(o,s.concat([c.sent(),this.options.encryption]))];case 2:return t=c.sent(),[4,(u=this.graphqlClient,d=this.tokenProvider,h={account:e,password:t,captchaCode:r,clientIp:i},th(void 0,void 0,void 0,(function(){var e;return nh(this,(function(t){return e=d.getToken(),[2,u.request({query:"\n mutation loginBySubAccount($account: String!, $password: String!, $captchaCode: String, $clientIp: String) {\n loginBySubAccount(account: $account, password: $password, captchaCode: $captchaCode, clientIp: $clientIp) {\n id\n arn\n status\n userPoolId\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n newlyCreated\n phoneCountryCode\n customData {\n key\n value\n dataType\n label\n }\n }\n}\n ",token:e,variables:h})]}))})))];case 3:return l=c.sent().loginBySubAccount,this.setCurrentUser(l),[2,l]}var u,d,h}))}))},e.prototype.checkLoginStatus=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:return[4,(n=this.graphqlClient,r=this.tokenProvider,i={token:e},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(o){switch(o.label){case 0:return e="\n query checkLoginStatus($token: String) {\n checkLoginStatus(token: $token) {\n code\n message\n status\n exp\n iat\n data {\n id\n userPoolId\n arn\n }\n }\n}\n ",[4,r.getToken()];case 1:return t=o.sent(),[2,n.request({query:e,token:t,variables:i})]}}))})))];case 1:return[2,t.sent().checkLoginStatus]}var n,r,i}))}))},e.prototype.sendEmail=function(e,t){return qp(this,void 0,void 0,(function(){return Up(this,(function(n){switch(n.label){case 0:return[4,(r=this.graphqlClient,i=this.tokenProvider,o={email:e,scene:t},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation sendEmail($email: String!, $scene: EmailScene!) {\n sendEmail(email: $email, scene: $scene) {\n message\n code\n }\n}\n ",[4,i.getToken()];case 1:return t=n.sent(),[4,r.request({query:e,token:t,variables:o})];case 2:return[2,n.sent()]}}))})))];case 1:return[2,n.sent().sendEmail]}var r,i,o}))}))},e.prototype.resetPasswordByPhoneCode=function(e,t,n,r){return qp(this,void 0,void 0,(function(){var i,o,a;return Up(this,(function(s){switch(s.label){case 0:return o=(i=this.options).encryptFunction,a=[n],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,o.apply(i,a.concat([s.sent(),this.options.encryption]))];case 2:return n=s.sent(),[4,rh(this.graphqlClient,this.tokenProvider,{phone:e,code:t,newPassword:n,phoneCountryCode:r})];case 3:return[2,s.sent().resetPassword]}}))}))},e.prototype.resetPasswordByEmailCode=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i,o;return Up(this,(function(a){switch(a.label){case 0:return i=(r=this.options).encryptFunction,o=[n],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,i.apply(r,o.concat([a.sent(),this.options.encryption]))];case 2:return n=a.sent(),[4,rh(this.graphqlClient,this.tokenProvider,{email:e,code:t,newPassword:n})];case 3:return[2,a.sent().resetPassword]}}))}))},e.prototype.resetPasswordByFirstLoginToken=function(e){return qp(this,void 0,void 0,(function(){var t,n,r,i,o;return Up(this,(function(a){switch(a.label){case 0:return t=e.token,n=e.password,i=(r=this.options).encryptFunction,o=[n],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,i.apply(r,o.concat([a.sent(),this.options.encryption]))];case 2:return n=a.sent(),[4,(s=this.graphqlClient,l=this.tokenProvider,c={token:t,password:n},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation resetPasswordByFirstLoginToken($token: String!, $password: String!) {\n resetPasswordByFirstLoginToken(token: $token, password: $password) {\n message\n code\n }\n}\n ",[4,l.getToken()];case 1:return t=n.sent(),[2,s.request({query:e,token:t,variables:c})]}}))})))];case 3:return[2,a.sent().resetPasswordByFirstLoginToken]}var s,l,c}))}))},e.prototype.resetPasswordByForceResetToken=function(e){return qp(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,l,c;return Up(this,(function(u){switch(u.label){case 0:return t=e.token,n=e.newPassword,r=e.oldPassword,o=(i=this.options).encryptFunction,a=[n],[4,this.publicKeyManager.getPublicKey()];case 1:return[4,o.apply(i,a.concat([u.sent(),this.options.encryption]))];case 2:return n=u.sent(),l=(s=this.options).encryptFunction,c=[r],[4,this.publicKeyManager.getPublicKey()];case 3:return[4,l.apply(s,c.concat([u.sent(),this.options.encryption]))];case 4:return r=u.sent(),[4,(d=this.graphqlClient,h=this.tokenProvider,f={token:t,oldPassword:r,newPassword:n},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation resetPasswordByForceResetToken($token: String!, $oldPassword: String!, $newPassword: String!) {\n resetPasswordByForceResetToken(token: $token, oldPassword: $oldPassword, newPassword: $newPassword) {\n message\n code\n }\n}\n ",[4,h.getToken()];case 1:return t=n.sent(),[2,d.request({query:e,token:t,variables:f})]}}))})))];case 5:return[2,u.sent().resetPasswordByForceResetToken]}var d,h,f}))}))},e.prototype.updateProfile=function(e,t){return qp(this,void 0,void 0,(function(){var n,r,i,o,a;return Up(this,(function(s){switch(s.label){case 0:return n=this.checkLoggedIn(),i=(r=t||{}).emailToken,o=r.phoneToken,e&&e.password&&delete e.password,[4,(l=this.graphqlClient,c=this.tokenProvider,u={id:n,input:e,emailToken:i,phoneToken:o},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation updateUser($id: String, $input: UpdateUserInput!, $emailToken: String, $phoneToken: String) {\n updateUser(id: $id, input: $input, emailToken: $emailToken, phoneToken: $phoneToken) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n }\n}\n ",[4,c.getToken()];case 1:return t=n.sent(),[2,l.request({query:e,token:t,variables:u})]}}))})))];case 1:return a=s.sent().updateUser,this.setCurrentUser(a),[2,a]}var l,c,u}))}))},e.prototype.updatePassword=function(e,t){return qp(this,void 0,void 0,(function(){var n,r,i,o,a,s,l,c;return Up(this,(function(u){switch(u.label){case 0:return(n=e)?(i=(r=this.options).encryptFunction,o=[e],[4,this.publicKeyManager.getPublicKey()]):[3,3];case 1:return[4,i.apply(r,o.concat([u.sent(),this.options.encryption]))];case 2:n=u.sent(),u.label=3;case 3:return e=n,(a=t)?(l=(s=this.options).encryptFunction,c=[t],[4,this.publicKeyManager.getPublicKey()]):[3,6];case 4:return[4,l.apply(s,c.concat([u.sent(),this.options.encryption]))];case 5:a=u.sent(),u.label=6;case 6:return t=a,[4,(d=this.graphqlClient,h=this.tokenProvider,f={newPassword:e,oldPassword:t},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation updatePassword($newPassword: String!, $oldPassword: String) {\n updatePassword(newPassword: $newPassword, oldPassword: $oldPassword) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n phoneCountryCode\n }\n}\n ",[4,h.getToken()];case 1:return t=n.sent(),[2,d.request({query:e,token:t,variables:f})]}}))})))];case 7:return[2,u.sent().updatePassword]}var d,h,f}))}))},e.prototype.updatePhone=function(e,t,n,r,i,o){return qp(this,void 0,void 0,(function(){return Up(this,(function(a){switch(a.label){case 0:return[4,(s=this.graphqlClient,l=this.tokenProvider,c={phone:e,phoneCode:t,oldPhone:n,oldPhoneCode:r,phoneCountryCode:i,oldPhoneCountryCode:o},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation updatePhone($phone: String!, $phoneCode: String!, $oldPhone: String, $oldPhoneCode: String, $phoneCountryCode: String, $oldPhoneCountryCode: String) {\n updatePhone(phone: $phone, phoneCode: $phoneCode, oldPhone: $oldPhone, oldPhoneCode: $oldPhoneCode, phoneCountryCode: $phoneCountryCode, oldPhoneCountryCode: $oldPhoneCountryCode) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n phoneCountryCode\n }\n}\n ",[4,l.getToken()];case 1:return t=n.sent(),[2,s.request({query:e,token:t,variables:c})]}}))})))];case 1:return[2,a.sent().updatePhone]}var s,l,c}))}))},e.prototype.updateEmail=function(e,t,n,r){return qp(this,void 0,void 0,(function(){return Up(this,(function(i){switch(i.label){case 0:return[4,(o=this.graphqlClient,a=this.tokenProvider,s={email:e,emailCode:t,oldEmail:n,oldEmailCode:r},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation updateEmail($email: String!, $emailCode: String!, $oldEmail: String, $oldEmailCode: String) {\n updateEmail(email: $email, emailCode: $emailCode, oldEmail: $oldEmail, oldEmailCode: $oldEmailCode) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n phoneCountryCode\n }\n}\n ",[4,a.getToken()];case 1:return t=n.sent(),[2,o.request({query:e,token:t,variables:s})]}}))})))];case 1:return[2,i.sent().updateEmail]}var o,a,s}))}))},e.prototype.refreshToken=function(){return qp(this,void 0,void 0,(function(){var e;return Up(this,(function(t){switch(t.label){case 0:return[4,(n=this.graphqlClient,r=this.tokenProvider,i={},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(o){switch(o.label){case 0:return e="\n mutation refreshToken($id: String) {\n refreshToken(id: $id) {\n token\n iat\n exp\n }\n}\n ",[4,r.getToken()];case 1:return t=o.sent(),[2,n.request({query:e,token:t,variables:i})]}}))})))];case 1:return e=t.sent().refreshToken,this.setToken(e.token),[2,e]}var n,r,i}))}))},e.prototype.linkAccount=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:return[4,this.httpClient.request({method:"POST",url:"".concat(this.baseClient.appHost,"/api/v2/users/link"),data:{primaryUserToken:e.primaryUserToken,secondaryUserToken:e.secondaryUserToken}})];case 1:return t.sent(),[2,{code:200,message:"绑定成功"}]}}))}))},e.prototype.unLinkAccount=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:return[4,this.httpClient.request({method:"POST",url:"".concat(this.baseClient.appHost,"/api/v2/users/unlink"),data:{primaryUserToken:e.primaryUserToken,provider:e.provider}})];case 1:return t.sent(),[2,{code:200,message:"解绑成功"}]}}))}))},e.prototype.bindPhone=function(e,t,n){return qp(this,void 0,void 0,(function(){var r;return Up(this,(function(i){switch(i.label){case 0:return[4,(o=this.graphqlClient,a=this.tokenProvider,s={phone:e,phoneCode:t,phoneCountryCode:n},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation bindPhone($phone: String!, $phoneCode: String!, $phoneCountryCode: String) {\n bindPhone(phone: $phone, phoneCode: $phoneCode, phoneCountryCode: $phoneCountryCode) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n phoneCountryCode\n }\n}\n ",[4,a.getToken()];case 1:return t=n.sent(),[2,o.request({query:e,token:t,variables:s})]}}))})))];case 1:return r=i.sent().bindPhone,this.setCurrentUser(r),[2,r]}var o,a,s}))}))},e.prototype.unbindPhone=function(){return qp(this,void 0,void 0,(function(){var e;return Up(this,(function(t){switch(t.label){case 0:return[4,(n=this.graphqlClient,r=this.tokenProvider,i={},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(o){switch(o.label){case 0:return e="\n mutation unbindPhone {\n unbindPhone {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n phoneCountryCode\n }\n}\n ",[4,r.getToken()];case 1:return t=o.sent(),[2,n.request({query:e,token:t,variables:i})]}}))})))];case 1:return e=t.sent().unbindPhone,this.setCurrentUser(e),[2,e]}var n,r,i}))}))},e.prototype.bindEmail=function(e,t){return qp(this,void 0,void 0,(function(){var n;return Up(this,(function(r){switch(r.label){case 0:return[4,(i=this.graphqlClient,o=this.tokenProvider,a={email:e,emailCode:t},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation bindEmail($email: String!, $emailCode: String!) {\n bindEmail(email: $email, emailCode: $emailCode) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n phoneCountryCode\n }\n}\n ",[4,o.getToken()];case 1:return t=n.sent(),[2,i.request({query:e,token:t,variables:a})]}}))})))];case 1:return n=r.sent().bindEmail,this.setCurrentUser(n),[2,n]}var i,o,a}))}))},e.prototype.unbindEmail=function(){return qp(this,void 0,void 0,(function(){var e;return Up(this,(function(t){switch(t.label){case 0:return[4,(n=this.graphqlClient,r=this.tokenProvider,i={},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(o){switch(o.label){case 0:return e="\n mutation unbindEmail {\n unbindEmail {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n phoneCountryCode\n }\n}\n ",[4,r.getToken()];case 1:return t=o.sent(),[2,n.request({query:e,token:t,variables:i})]}}))})))];case 1:return e=t.sent().unbindEmail,this.setCurrentUser(e),[2,e]}var n,r,i}))}))},e.prototype.getCurrentUser=function(){return qp(this,void 0,void 0,(function(){var e;return Up(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(n=this.graphqlClient,r=this.tokenProvider,i={},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(o){switch(o.label){case 0:return e="\n query user($id: String) {\n user(id: $id) {\n id\n arn\n userPoolId\n status\n username\n email\n emailVerified\n phone\n phoneVerified\n identities {\n openid\n userIdInIdp\n userId\n connectionId\n isSocial\n provider\n type\n userPoolId\n extIdpId\n }\n unionid\n openid\n nickname\n registerSource\n photo\n password\n oauth\n token\n tokenExpiredAt\n loginsCount\n lastLogin\n lastIP\n signedUp\n blocked\n isDeleted\n device\n browser\n company\n name\n givenName\n familyName\n middleName\n profile\n preferredUsername\n website\n gender\n birthdate\n zoneinfo\n locale\n address\n formatted\n streetAddress\n locality\n region\n postalCode\n city\n province\n country\n createdAt\n updatedAt\n externalId\n phoneCountryCode\n customData {\n key\n value\n dataType\n label\n }\n }\n}\n ",[4,r.getToken()];case 1:return t=o.sent(),[4,n.request({query:e,token:t,variables:i})];case 2:return[2,o.sent()]}}))})))];case 1:return(e=t.sent().user).customData&&(e.customData=Kf(e.customData)),this.setCurrentUser(e),[2,e];case 2:return t.sent(),[2,null];case 3:return[2]}var n,r,i}))}))},e.prototype.logout=function(){return qp(this,void 0,void 0,(function(){return Up(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.request({method:"GET",url:"".concat(this.baseClient.appHost,"/api/v2/logout?app_id=").concat(this.options.appId),withCredentials:!0})];case 1:return e.sent(),this.tokenProvider.clearUser(),[2]}}))}))},e.prototype.logoutCurrent=function(){return qp(this,void 0,void 0,(function(){return Up(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.request({method:"GET",url:"".concat(this.baseClient.appHost,"/logout?appId=").concat(this.options.appId,"&deviceId=current"),withCredentials:!0})];case 1:return e.sent(),this.tokenProvider.clearUser(),[2]}}))}))},e.prototype.listUdv=function(){return qp(this,void 0,void 0,(function(){var e,t;return Up(this,(function(n){switch(n.label){case 0:return e=this.checkLoggedIn(),[4,ih(this.graphqlClient,this.tokenProvider,{targetType:qd.User,targetId:e})];case 1:return t=n.sent().udv,[2,$f(t)]}}))}))},e.prototype.setUdv=function(e,t){return qp(this,void 0,void 0,(function(){var n,r;return Up(this,(function(i){switch(i.label){case 0:return n=this.checkLoggedIn(),t=JSON.stringify(t),[4,(o=this.graphqlClient,a=this.tokenProvider,s={targetType:qd.User,targetId:n,key:e,value:t},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation setUdv($targetType: UDFTargetType!, $targetId: String!, $key: String!, $value: String!) {\n setUdv(targetType: $targetType, targetId: $targetId, key: $key, value: $value) {\n key\n dataType\n value\n label\n }\n}\n ",[4,a.getToken()];case 1:return t=n.sent(),[2,o.request({query:e,token:t,variables:s})]}}))})))];case 1:return r=i.sent().setUdv,[2,$f(r)]}var o,a,s}))}))},e.prototype.removeUdv=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t=this.checkLoggedIn(),[4,oh(this.graphqlClient,this.tokenProvider,{targetType:qd.User,targetId:t,key:e})];case 1:return n=r.sent().removeUdv,[2,$f(n)]}}))}))},e.prototype.listOrgs=function(){return qp(this,void 0,void 0,(function(){return Up(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.request({method:"GET",url:"".concat(this.baseClient.appHost,"/api/v2/users/me/orgs")})];case 1:return[2,e.sent()]}}))}))},e.prototype.listDepartments=function(){return qp(this,void 0,void 0,(function(){var e;return Up(this,(function(t){switch(t.label){case 0:return e=this.checkLoggedIn(),[4,(n=this.graphqlClient,r=this.tokenProvider,i={id:e},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(o){switch(o.label){case 0:return e="\n query getUserDepartments($id: String!, $orgId: String) {\n user(id: $id) {\n departments(orgId: $orgId) {\n totalCount\n list {\n department {\n id\n orgId\n name\n nameI18n\n description\n descriptionI18n\n order\n code\n root\n depth\n path\n codePath\n namePath\n createdAt\n updatedAt\n children\n isVirtualNode\n }\n isMainDepartment\n joinedAt\n }\n }\n }\n}\n ",[4,r.getToken()];case 1:return t=o.sent(),[2,n.request({query:e,token:t,variables:i})]}}))})))];case 1:return[2,t.sent().user.departments]}var n,r,i}))}))},e.prototype.loginByLdap=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i,o,a;return Up(this,(function(s){switch(s.label){case 0:return r=(n=n||{}).clientIp,i=n.withCustomData,o="".concat(this.baseClient.appHost,"/api/v2/ldap/verify-user"),[4,this.httpClient.request({method:"POST",url:o,data:{username:e,password:t,clientIp:r,withCustomData:i}})];case 1:return a=s.sent(),this.setCurrentUser(a),[2,a]}}))}))},e.prototype.loginByAd=function(e,t,n){return qp(this,void 0,void 0,(function(){var r,i,o,a,s,l;return Up(this,(function(c){switch(c.label){case 0:return r=(n=n||{}).clientIp,i=n.withCustomData,o=new URL(this.baseClient.appHost).hostname.split(".").slice(1).join("."),a=this.options.websocketHost||"https://ws.".concat(o),s="".concat(a,"/api/v2/ad/verify-user"),[4,this.httpClient.request({method:"POST",url:s,data:{username:e,password:t,clientIp:r,withCustomData:i}})];case 1:return l=c.sent(),this.setCurrentUser(l),[2,l]}}))}))},e.prototype.uploadPhoto=function(e,t){var n=this;ep({accept:e=e||"image/*",url:"".concat(this.baseClient.appHost,"/api/v2/upload?folder=avatar")}).then((function(e){var n=e.url;return t(n)})).catch((function(e){var t=e.code,r=e.message;return n.options.onError(t,r)}))},e.prototype.updateAvatar=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:return[4,this.uploadAvatar(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.uploadAvatar=function(e){return qp(this,void 0,void 0,(function(){var t,n,r,i,o=this;return Up(this,(function(a){switch(a.label){case 0:return t=(e||{}).accept,this.checkLoggedIn(),n=new Promise((function(e){o.uploadPhoto(t,(function(t){e(t)}))})),[4,n];case 1:return r=a.sent(),[4,this.updateProfile({photo:r})];case 2:return i=a.sent(),this.setCurrentUser(i),[2,i]}}))}))},e.prototype.getUdfValue=function(){return qp(this,void 0,void 0,(function(){var e,t;return Up(this,(function(n){switch(n.label){case 0:return e=this.checkLoggedIn(),[4,ih(this.graphqlClient,this.tokenProvider,{targetType:qd.User,targetId:e})];case 1:return t=n.sent().udv,[2,Kf(t)]}}))}))},e.prototype.setUdfValue=function(e){return qp(this,void 0,void 0,(function(){var t;return Up(this,(function(n){switch(n.label){case 0:if(0===Object.keys(e).length)throw new Error("empty udf value list");return t=this.checkLoggedIn(),[4,(r=this.graphqlClient,i=this.tokenProvider,o={targetType:qd.User,targetId:t,udvList:Object.keys(e).map((function(t){return{key:t,value:JSON.stringify(e[t])}}))},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n mutation setUdvBatch($targetType: UDFTargetType!, $targetId: String!, $udvList: [UserDefinedDataInput!]) {\n setUdvBatch(targetType: $targetType, targetId: $targetId, udvList: $udvList) {\n key\n dataType\n value\n label\n }\n}\n ",[4,i.getToken()];case 1:return t=n.sent(),[2,r.request({query:e,token:t,variables:o})]}}))})))];case 1:return[2,n.sent().setUdvBatch]}var r,i,o}))}))},e.prototype.removeUdfValue=function(e){return qp(this,void 0,void 0,(function(){var t;return Up(this,(function(n){switch(n.label){case 0:return t=this.checkLoggedIn(),[4,oh(this.graphqlClient,this.tokenProvider,{targetType:qd.User,targetId:t,key:e})];case 1:return n.sent(),[2]}}))}))},e.prototype.getSecurityLevel=function(){return qp(this,void 0,void 0,(function(){return Up(this,(function(e){switch(e.label){case 0:return[4,this.httpClient.request({method:"GET",url:"".concat(this.baseClient.appHost,"/api/v2/users/me/security-level")})];case 1:return[2,e.sent()]}}))}))},e.prototype.listAuthorizedResources=function(e,t){return qp(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Up(this,(function(l){switch(l.label){case 0:return n=this.checkLoggedIn(),r=(t||{}).resourceType,[4,(c=this.graphqlClient,u=this.tokenProvider,d={id:n,namespace:e,resourceType:r},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n query listUserAuthorizedResources($id: String!, $namespace: String, $resourceType: String) {\n user(id: $id) {\n authorizedResources(namespace: $namespace, resourceType: $resourceType) {\n totalCount\n list {\n code\n type\n actions\n apiIdentifier\n }\n }\n }\n}\n ",[4,u.getToken()];case 1:return t=n.sent(),[2,c.request({query:e,token:t,variables:d})]}}))})))];case 1:if(!(i=l.sent().user))throw new Error("用户不存在");return o=i.authorizedResources,a=o.list,s=o.totalCount,a=a.map((function(e){for(var t in e)e[t]||delete e[t];return e})),[2,{list:a,totalCount:s}]}var c,u,d}))}))},e.prototype.isUserExists=function(e){return qp(this,void 0,void 0,(function(){var t,n,r,i;return Up(this,(function(o){switch(o.label){case 0:return t=e.username,n=e.email,r=e.phone,i=e.externalId,[4,(a=this.graphqlClient,s=this.tokenProvider,l={username:t,email:n,phone:r,externalId:i},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n query isUserExists($email: String, $phone: String, $username: String, $externalId: String) {\n isUserExists(email: $email, phone: $phone, username: $username, externalId: $externalId)\n}\n ",[4,s.getToken()];case 1:return t=n.sent(),[2,a.request({query:e,token:t,variables:l})]}}))})))];case 1:return[2,o.sent().isUserExists]}var a,s,l}))}))},e.prototype.computedPasswordSecurityLevel=function(e){if("string"!=typeof e)throw"password must be a `string`";var t=new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[^]{12,}$/g),n=new RegExp(/^(?=.*[a-zA-Z])(?=.*\d)[^]{8,}$/g);return null!==e.match(t)?rp.HIGH:null!==e.match(n)?rp.MIDDLE:rp.LOW},e.prototype._generateTokenRequest=function(e){var t={};return Object.keys(e).map((function(n){void 0!==e[n]&&(t[n]=e[n])})),new URLSearchParams(t).toString()},e.prototype._generateBasicAuthToken=function(e,t){var n=e||this.options.appId,r=t||this.options.secret;return"Basic "+Buffer.from(n+":"+r).toString("base64")},e.prototype._getAccessTokenByCodeWithClientSecretPost=function(e,t){return qp(this,void 0,void 0,(function(){var n,r;return Up(this,(function(i){switch(i.label){case 0:return n=this._generateTokenRequest({client_id:this.options.appId,client_secret:this.options.secret,grant_type:"authorization_code",code:e,redirect_uri:this.options.redirectUri,code_verifier:t}),r="","oidc"===this.options.protocol?r="".concat(this.baseClient.appHost,"/oidc/token"):"oauth"===this.options.protocol&&(r="".concat(this.baseClient.appHost,"/oauth/token")),[4,this.naiveHttpClient.request({method:"POST",url:r,data:n,headers:{"Content-Type":"application/x-www-form-urlencoded"}})];case 1:return[2,i.sent()]}}))}))},e.prototype._getAccessTokenByCodeWithClientSecretBasic=function(e,t){return qp(this,void 0,void 0,(function(){var n,r;return Up(this,(function(i){switch(i.label){case 0:return n="","oidc"===this.options.protocol?n="".concat(this.baseClient.appHost,"/oidc/token"):"oauth"===this.options.protocol&&(n="".concat(this.baseClient.appHost,"/oauth/token")),r=this._generateTokenRequest({grant_type:"authorization_code",code:e,redirect_uri:this.options.redirectUri,code_verifier:t}),[4,this.naiveHttpClient.request({data:r,method:"POST",url:n,headers:{Authorization:this._generateBasicAuthToken()}})];case 1:return[2,i.sent()]}}))}))},e.prototype._getAccessTokenByCodeWithNone=function(e,t){return qp(this,void 0,void 0,(function(){var n,r;return Up(this,(function(i){switch(i.label){case 0:return n="","oidc"===this.options.protocol?n="".concat(this.baseClient.appHost,"/oidc/token"):"oauth"===this.options.protocol&&(n="".concat(this.baseClient.appHost,"/oauth/token")),r=this._generateTokenRequest({client_id:this.options.appId,grant_type:"authorization_code",code:e,redirect_uri:this.options.redirectUri,code_verifier:t}),[4,this.naiveHttpClient.request({method:"POST",url:n,data:r})];case 1:return[2,i.sent()]}}))}))},e.prototype.getAccessTokenByCode=function(e,t){return qp(this,void 0,void 0,(function(){return Up(this,(function(n){switch(n.label){case 0:if(!["oauth","oidc"].includes(this.options.protocol))throw new Error("初始化 AuthenticationClient 时传入的 protocol 参数必须为 oauth 或 oidc,请检查参数");if(!this.options.secret&&"none"!==this.options.tokenEndPointAuthMethod)throw new Error("请在初始化 AuthenticationClient 时传入 appId 和 secret 参数");return"client_secret_post"!==this.options.tokenEndPointAuthMethod?[3,2]:[4,this._getAccessTokenByCodeWithClientSecretPost(e,null==t?void 0:t.codeVerifier)];case 1:case 3:case 5:return[2,n.sent()];case 2:return"client_secret_basic"!==this.options.tokenEndPointAuthMethod?[3,4]:[4,this._getAccessTokenByCodeWithClientSecretBasic(e,null==t?void 0:t.codeVerifier)];case 4:return"none"!==this.options.tokenEndPointAuthMethod?[3,6]:[4,this._getAccessTokenByCodeWithNone(e,null==t?void 0:t.codeVerifier)];case 6:return[2]}}))}))},e.prototype.generateCodeChallenge=function(){return np(43)},e.prototype.getCodeChallengeDigest=function(e){if(!e)throw new Error("请提供 options 参数,options.codeChallenge 为一个长度大于等于 43 的字符串,options.method 可选值为 S256、plain");if(!e.codeChallenge)throw new Error("请提供 options.codeChallenge,值为一个长度大于等于 43 的字符串");var t=e.method,n=void 0===t?"S256":t;if("S256"===n)return Zd()(e.codeChallenge).toString(eh().enc.Base64).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");if("plain"===n)return e.codeChallenge;throw new Error("不支持的 options.method,可选值为 S256、plain")},e.prototype.getAccessTokenByClientCredentials=function(e,t){return qp(this,void 0,void 0,(function(){var n,r,i,o;return Up(this,(function(a){switch(a.label){case 0:if(!e)throw new Error("请传入 scope 参数,请看文档:https://docs.authing.cn/v2/guides/authorization/m2m-authz.html");if(!t)throw new Error("请在调用本方法时传入 { accessKey: string, accessSecret: string },请看文档:https://docs.authing.cn/v2/guides/authorization/m2m-authz.html");return n=(null==t?void 0:t.accessKey)||this.options.appId,r=(null==t?void 0:t.accessSecret)||this.options.secret,i=this._generateTokenRequest({client_id:n,client_secret:r,grant_type:"client_credentials",scope:e}),o="","oidc"===this.options.protocol?o="".concat(this.baseClient.appHost,"/oidc/token"):"oauth"===this.options.protocol&&(o="".concat(this.baseClient.appHost,"/oauth/token")),[4,this.naiveHttpClient.request({method:"POST",url:o,data:i,headers:{"Content-Type":"application/x-www-form-urlencoded"}})];case 1:return[2,a.sent()]}}))}))},e.prototype.getUserInfoByAccessToken=function(e,t){return qp(this,void 0,void 0,(function(){var n;return Up(this,(function(r){switch(r.label){case 0:if(t){if(t.method&&!["POST","GET"].includes(t.method))throw new Error("options.method 参数的可选值为 POST、GET,请检查输入");if(t.tokenPlace&&!["query","header","body"].includes(t.tokenPlace))throw new Error("options.tokenPlace 参数的可选值为 query、header、body,请检查输入");if("GET"===t.method&&"body"===t.tokenPlace)throw new Error("options.method 参数为 GET 时,options.tokenPlace 参数不能为 body");t.method=t.method||"GET",t.tokenPlace=t.tokenPlace||"query"}return n="","oidc"===this.options.protocol?n="".concat(this.baseClient.appHost,"/oidc/me"):"oauth"===this.options.protocol&&(n="".concat(this.baseClient.appHost,"/oauth/me")),"POST"!==(null==t?void 0:t.method)?[3,7]:"header"!==(null==t?void 0:t.tokenPlace)?[3,2]:[4,this.naiveHttpClient.request({method:"POST",url:n,headers:{Authorization:"Bearer "+e}})];case 1:case 3:case 5:case 8:case 10:case 13:return[2,r.sent()];case 2:return"query"!==(null==t?void 0:t.tokenPlace)?[3,4]:[4,this.naiveHttpClient.request({method:"POST",url:n,params:{access_token:e}})];case 4:return"body"!==(null==t?void 0:t.tokenPlace)?[3,6]:[4,this.naiveHttpClient.request({method:"POST",url:n,data:Gf({access_token:e})})];case 6:case 11:return[3,14];case 7:return"GET"!==(null==t?void 0:t.method)?[3,12]:"header"!==(null==t?void 0:t.tokenPlace)?[3,9]:[4,this.naiveHttpClient.request({method:"GET",url:n,headers:{Authorization:"Bearer "+e}})];case 9:return"query"!==(null==t?void 0:t.tokenPlace)?[3,11]:[4,this.naiveHttpClient.request({method:"GET",url:n,params:{access_token:e}})];case 12:return[4,this.naiveHttpClient.request({method:"GET",url:n,params:{access_token:e}})];case 14:return[2]}}))}))},e.prototype.buildAuthorizeUrl=function(e){if(!this.baseClient.appHost)throw new Error("请在初始化 AuthenticationClient 时传入应用域名 appHost 参数,形如:https://app1.authing.cn");if("oidc"===this.options.protocol)return this._buildOidcAuthorizeUrl(e);if("oauth"===this.options.protocol)return this._buildOauthAuthorizeUrl(e);if("saml"===this.options.protocol)return this._buildSamlAuthorizeUrl();if("cas"===this.options.protocol)return this._buildCasAuthorizeUrl(e);throw new Error("不支持的协议类型,请在初始化 AuthenticationClient 时传入 protocol 参数,可选值为 oidc、oauth、saml、cas")},e.prototype._buildOidcAuthorizeUrl=function(e){var t={appId:"client_id",scope:"scope",state:"state",nonce:"nonce",responseMode:"response_mode",responseType:"response_type",redirectUri:"redirect_uri",codeChallenge:"code_challenge",codeChallengeMethod:"code_challenge_method",tenantId:"tenant_id"},n={nonce:Math.random().toString().slice(2),state:Math.random().toString().slice(2),scope:"openid profile email phone address",client_id:this.options.appId,redirect_uri:this.options.redirectUri,response_type:"code"};Object.keys(t).forEach((function(r){e&&e[r]&&("scope"===r&&e.scope.includes("offline_access")&&(n.prompt="consent"),n[t[r]]=e[r])}));var r=new URLSearchParams(n);return this.baseClient.appHost+"/oidc/auth?"+r.toString()},e.prototype._buildOauthAuthorizeUrl=function(e){var t={appId:"client_id",scope:"scope",state:"state",responseType:"response_type",redirectUri:"redirect_uri"},n={state:Math.random().toString().slice(2),scope:"user",client_id:this.options.appId,redirect_uri:this.options.redirectUri,response_type:"code"};Object.keys(t).forEach((function(r){e&&e[r]&&(n[t[r]]=e[r])}));var r=new URLSearchParams(n);return this.baseClient.appHost+"/oauth/auth?"+r.toString()},e.prototype._buildSamlAuthorizeUrl=function(){return this.baseClient.appHost+"/api/v2/saml-idp/"+this.options.appId},e.prototype._buildCasAuthorizeUrl=function(e){return(null==e?void 0:e.service)?"".concat(this.baseClient.appHost,"/cas-idp/").concat(this.options.appId,"?service=").concat(null==e?void 0:e.service):"".concat(this.baseClient.appHost,"/cas-idp/").concat(this.options.appId)},e.prototype._buildCasLogoutUrl=function(e){return(null==e?void 0:e.redirectUri)?this.baseClient.appHost+"/cas-idp/logout?url="+e.redirectUri:"".concat(this.baseClient.appHost,"/cas-idp/logout")},e.prototype._buildOidcLogoutUrl=function(e){if(e&&(!e.idToken||!e.redirectUri))throw new Error("必须同时传入 idToken 和 redirectUri 参数,或者同时都不传入");return(null==e?void 0:e.redirectUri)?"".concat(this.baseClient.appHost,"/oidc/session/end?id_token_hint=").concat(e.idToken,"&post_logout_redirect_uri=").concat(e.redirectUri):"".concat(this.baseClient.appHost,"/oidc/session/end")},e.prototype._buildEasyLogoutUrl=function(e){return(null==e?void 0:e.redirectUri)?"".concat(this.baseClient.appHost,"/login/profile/logout?redirect_uri=").concat(e.redirectUri):"".concat(this.baseClient.appHost,"/login/profile/logout")},e.prototype.buildLogoutUrl=function(e){return"cas"===this.options.protocol?this._buildCasLogoutUrl(e):"oidc"===this.options.protocol&&(null==e?void 0:e.expert)?this._buildOidcLogoutUrl(e):this._buildEasyLogoutUrl(e)},e.prototype._getNewAccessTokenByRefreshTokenWithClientSecretPost=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t=this._generateTokenRequest({client_id:this.options.appId,client_secret:this.options.secret,grant_type:"refresh_token",refresh_token:e}),n="","oidc"===this.options.protocol?n="".concat(this.baseClient.appHost,"/oidc/token"):"oauth"===this.options.protocol&&(n="".concat(this.baseClient.appHost,"/oauth/token")),[4,this.naiveHttpClient.request({method:"POST",url:n,data:t,headers:{"Content-Type":"application/x-www-form-urlencoded"}})];case 1:return[2,r.sent()]}}))}))},e.prototype._getNewAccessTokenByRefreshTokenWithClientSecretBasic=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t="","oidc"===this.options.protocol?t="".concat(this.baseClient.appHost,"/oidc/token"):"oauth"===this.options.protocol&&(t="".concat(this.baseClient.appHost,"/oauth/token")),n=this._generateTokenRequest({grant_type:"refresh_token",refresh_token:e}),[4,this.naiveHttpClient.request({data:n,method:"POST",url:t,headers:{Authorization:this._generateBasicAuthToken()}})];case 1:return[2,r.sent()]}}))}))},e.prototype._getNewAccessTokenByRefreshTokenWithNone=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t="","oidc"===this.options.protocol?t="".concat(this.baseClient.appHost,"/oidc/token"):"oauth"===this.options.protocol&&(t="".concat(this.baseClient.appHost,"/oauth/token")),n=this._generateTokenRequest({client_id:this.options.appId,grant_type:"refresh_token",refresh_token:e}),[4,this.naiveHttpClient.request({method:"POST",url:t,data:n})];case 1:return[2,r.sent()]}}))}))},e.prototype.getNewAccessTokenByRefreshToken=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:if(!["oauth","oidc"].includes(this.options.protocol))throw new Error("初始化 AuthenticationClient 时传入的 protocol 参数必须为 oauth 或 oidc,请检查参数");if(!this.options.secret&&"none"!==this.options.tokenEndPointAuthMethod)throw new Error("请在初始化 AuthenticationClient 时传入 appId 和 secret 参数");return"client_secret_post"!==this.options.tokenEndPointAuthMethod?[3,2]:[4,this._getNewAccessTokenByRefreshTokenWithClientSecretPost(e)];case 1:case 3:case 5:return[2,t.sent()];case 2:return"client_secret_basic"!==this.options.tokenEndPointAuthMethod?[3,4]:[4,this._getNewAccessTokenByRefreshTokenWithClientSecretBasic(e)];case 4:return"none"!==this.options.tokenEndPointAuthMethod?[3,6]:[4,this._getNewAccessTokenByRefreshTokenWithNone(e)];case 6:return[2]}}))}))},e.prototype._revokeTokenWithClientSecretPost=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t=this._generateTokenRequest({client_id:this.options.appId,client_secret:this.options.secret,token:e}),n="","oidc"===this.options.protocol?n="".concat(this.baseClient.appHost,"/oidc/token/revocation"):"oauth"===this.options.protocol&&(n="".concat(this.baseClient.appHost,"/oauth/token/revocation")),[4,this.naiveHttpClient.request({method:"POST",url:n,data:t,headers:{"Content-Type":"application/x-www-form-urlencoded"}})];case 1:return[2,r.sent()]}}))}))},e.prototype._revokeTokenWithClientSecretBasic=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:if(t="","oidc"===this.options.protocol)t="".concat(this.baseClient.appHost,"/oidc/token/revocation");else if("oauth"===this.options.protocol)throw new Error("OAuth 2.0 暂不支持用 client_secret_basic 模式身份验证撤回 Token");return n=this._generateTokenRequest({token:e}),[4,this.naiveHttpClient.request({data:n,method:"POST",url:t,headers:{Authorization:this._generateBasicAuthToken()}})];case 1:return[2,r.sent()]}}))}))},e.prototype._revokeTokenWithNone=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t="","oidc"===this.options.protocol?t="".concat(this.baseClient.appHost,"/oidc/token/revocation"):"oauth"===this.options.protocol&&(t="".concat(this.baseClient.appHost,"/oauth/token/revocation")),n=this._generateTokenRequest({client_id:this.options.appId,token:e}),[4,this.naiveHttpClient.request({method:"POST",url:t,data:n})];case 1:return[2,r.sent()]}}))}))},e.prototype.revokeToken=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:if(!["oauth","oidc"].includes(this.options.protocol))throw new Error("初始化 AuthenticationClient 时传入的 protocol 参数必须为 oauth 或 oidc,请检查参数");if(!this.options.secret&&"none"!==this.options.revocationEndPointAuthMethod)throw new Error("请在初始化 AuthenticationClient 时传入 appId 和 secret 参数");return"client_secret_post"!==this.options.revocationEndPointAuthMethod?[3,2]:[4,this._revokeTokenWithClientSecretPost(e)];case 1:case 3:case 5:return t.sent(),[2,!0];case 2:return"client_secret_basic"!==this.options.revocationEndPointAuthMethod?[3,4]:[4,this._revokeTokenWithClientSecretBasic(e)];case 4:return"none"!==this.options.revocationEndPointAuthMethod?[3,6]:[4,this._revokeTokenWithNone(e)];case 6:throw new Error("初始化 AuthenticationClient 时传入的 revocationEndPointAuthMethod 参数可选值为 client_secret_base、client_secret_post、none,请检查参数")}}))}))},e.prototype._introspectTokenWithClientSecretPost=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t=this._generateTokenRequest({client_id:this.options.appId,client_secret:this.options.secret,token:e}),n="","oidc"===this.options.protocol?n="".concat(this.baseClient.appHost,"/oidc/token/introspection"):"oauth"===this.options.protocol&&(n="".concat(this.baseClient.appHost,"/oauth/token/introspection")),[4,this.naiveHttpClient.request({method:"POST",url:n,data:t,headers:{"Content-Type":"application/x-www-form-urlencoded"}})];case 1:return[2,r.sent()]}}))}))},e.prototype._introspectTokenWithClientSecretBasic=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t="","oidc"===this.options.protocol?t="".concat(this.baseClient.appHost,"/oidc/token/introspection"):"oauth"===this.options.protocol&&(t="".concat(this.baseClient.appHost,"/oauth/token/introspection")),n=this._generateTokenRequest({token:e}),[4,this.naiveHttpClient.request({data:n,method:"POST",url:t,headers:{Authorization:this._generateBasicAuthToken()}})];case 1:return[2,r.sent()]}}))}))},e.prototype._introspectTokenWithNone=function(e){return qp(this,void 0,void 0,(function(){var t,n;return Up(this,(function(r){switch(r.label){case 0:return t="","oidc"===this.options.protocol?t="".concat(this.baseClient.appHost,"/oidc/token/introspection"):"oauth"===this.options.protocol&&(t="".concat(this.baseClient.appHost,"/oauth/token/introspection")),n=this._generateTokenRequest({client_id:this.options.appId,token:e}),[4,this.naiveHttpClient.request({method:"POST",url:t,data:n})];case 1:return[2,r.sent()]}}))}))},e.prototype.introspectToken=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:if(!["oauth","oidc"].includes(this.options.protocol))throw new Error("初始化 AuthenticationClient 时传入的 protocol 参数必须为 oauth 或 oidc,请检查参数");if(!this.options.secret&&"none"!==this.options.introspectionEndPointAuthMethod)throw new Error("请在初始化 AuthenticationClient 时传入 appId 和 secret 参数");return"client_secret_post"!==this.options.introspectionEndPointAuthMethod?[3,2]:[4,this._introspectTokenWithClientSecretPost(e)];case 1:case 3:case 5:return[2,t.sent()];case 2:return"client_secret_basic"!==this.options.introspectionEndPointAuthMethod?[3,4]:[4,this._introspectTokenWithClientSecretBasic(e)];case 4:return"none"!==this.options.introspectionEndPointAuthMethod?[3,6]:[4,this._introspectTokenWithNone(e)];case 6:throw new Error("初始化 AuthenticationClient 时传入的 introspectionEndPointAuthMethod 参数可选值为 client_secret_base、client_secret_post、none,请检查参数")}}))}))},e.prototype.validateTicketV1=function(e,t){return qp(this,void 0,void 0,(function(){var n,r,i;return Up(this,(function(o){switch(o.label){case 0:return n="".concat(this.baseClient.appHost,"/cas-idp/").concat(this.options.appId,"/validate"),[4,this.naiveHttpClient.request({method:"GET",url:n,params:{service:t,ticket:e}})];case 1:return r=o.sent(),i=r.split("\n")[0],[2,Hp({valid:"yes"===i},"yes"!==i&&{message:"ticket 不合法"})]}}))}))},e.prototype.validateTicketV2=function(e,t,n){return void 0===n&&(n="JSON"),qp(this,void 0,void 0,(function(){var r;return Up(this,(function(i){switch(i.label){case 0:if(!e)throw new Error("请传入 ticket 一次性票据");if(!t)throw new Error("请传入 service 服务地址");if("XML"!==n&&"JSON"!==n)throw new Error("format 参数可选值为 XML、JSON,请检查输入");return r="".concat(this.baseClient.appHost,"/cas-idp/").concat(this.options.appId,"/serviceValidate"),[4,this.naiveHttpClient.request({method:"GET",url:r,params:{service:t,ticket:e,format:n}})];case 1:return[2,i.sent()]}}))}))},e.prototype.hasRole=function(e,t){return qp(this,void 0,void 0,(function(){var n,r,i;return Up(this,(function(o){switch(o.label){case 0:return[4,(a=this.graphqlClient,s=this.tokenProvider,l={id:this.checkLoggedIn(),namespace:t},th(void 0,void 0,void 0,(function(){var e,t;return nh(this,(function(n){switch(n.label){case 0:return e="\n query getUserRoles($id: String!, $namespace: String) {\n user(id: $id) {\n roles(namespace: $namespace) {\n totalCount\n list {\n id\n code\n namespace\n arn\n description\n createdAt\n updatedAt\n parent {\n code\n namespace\n arn\n description\n createdAt\n updatedAt\n }\n }\n }\n }\n}\n ",[4,s.getToken()];case 1:return t=n.sent(),[2,a.request({query:e,token:t,variables:l})]}}))})))];case 1:return(n=o.sent().user)?(r=n.roles).totalCount<1?[2,!1]:(i=!1,r.list.forEach((function(t){t.code===e&&(i=!0)})),[2,i]):[2,!1]}var a,s,l}))}))},e.prototype.listApplications=function(e){return qp(this,void 0,void 0,(function(){var t,n,r,i,o;return Up(this,(function(a){switch(a.label){case 0:return n=(t=e||{}).page,r=void 0===n?1:n,i=t.limit,o=void 0===i?10:i,[4,this.httpClient.request({url:"".concat(this.baseClient.appHost,"/api/v2/users/me/applications/allowed?page=").concat(r,"&limit=").concat(o),method:"GET"})];case 1:return[2,a.sent()]}}))}))},e.prototype.validateToken=function(e){return qp(this,void 0,void 0,(function(){return Up(this,(function(t){switch(t.label){case 0:if(!e)throw new Error("请在传入的参数对象中包含 accessToken 或 idToken 字段");if(e.accessToken&&e.idToken)throw new Error("accessToken 和 idToken 只能传入一个,不能同时传入");return e.idToken?[4,this.naiveHttpClient.request({url:"".concat(this.baseClient.appHost,"/api/v2/oidc/validate_token"),method:"GET",params:{id_token:e.idToken}})]:[3,2];case 1:case 3:return[2,t.sent()];case 2:return e.accessToken?[4,this.naiveHttpClient.request({url:"".concat(this.baseClient.appHost,"/api/v2/oidc/validate_token"),method:"GET",params:{access_token:e.accessToken}})]:[3,4];case 4:return[2]}}))}))},e.prototype.trackSession=function(){return qp(this,void 0,void 0,(function(){return Up(this,(function(e){switch(e.label){case 0:return[4,this.naiveHttpClient.request({url:"".concat(this.baseClient.appHost,"/cas/session"),method:"GET"})];case 1:return[2,e.sent()]}}))}))},e.prototype.setLang=function(e){this.options.lang=e},e}(),Gp={NODE_ENV:"production",BUILD_DATE:"2024-01-06 15:37:05",VERSION:"3.5.19",RELEASE:"v_3.5.19_20240106_153705",CONFIG:"private",OUTPUT:"widget",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",WIDGET:!0},$p="development"===Gp.NODE_ENV,Kp=!$p&&"public"===Gp.CONFIG,Jp=!Kp,Xp=!0===Gp.WIDGET,Zp="sqlflow.widget.".concat(Gp.VERSION),Qp="".concat(Zp,".js"),eg="".concat(Zp,".js"),tg="config.".concat(Kp?"public":"private",".json"),ng="gudu|0123456789",rg=!$p&&"v.sqlflow.cn"===location.host,ig=!rg,og=ig?"https://sqlflow.gudusoft.com/":"http://v.sqlflow.cn/",ag="".concat(location.origin+location.pathname+"#/?"),sg={state:"123",nonce:"123"},lg=new dc({domain:"login.gudusoft.com",clientID:"PZ7fv0vKLL8f0HFW0FIlP1PiDeF0h5HD",redirectUri:ag,scope:"openid profile email",overrides:{__tenant:"gudusoft",__token_issuer:"https://login.gudusoft.com/"}}),cg={intl:ug("en"),auth0:lg,editor:{sql:null},get50CharWidth:function(e){return 160},getStringWidth:function(e){return 160},insertFont:function(){var e=document.createElement("div"),t=document.createElement("h1");t.style.fontFamily="verdana",t.style.fontSize="12px",t.style.transform="scale(0.916)",t.style.display="block",t.style.height="100%",e.appendChild(t),e.style.position="absolute",e.style.visibility="hidden",e.style.left="0px",e.style.top="0px",e.style.height="16px",e.style.zIndex="100",e.style.backgroundColor="white",document.body.appendChild(e),cg.get50CharWidth=function(n){return n.length>53?t.innerText=n.slice(0,26)+"..."+n.slice(-26):t.innerText=n+"AAA",e.getBoundingClientRect().width},cg.getStringWidth=function(n){return t.innerText=n,e.getBoundingClientRect().width}}};function ug(e){var t=Gd({locale:e,messages:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},onError:function(e){$p&&console.warn(e.message)}},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});return t}window.addEventListener("DOMContentLoaded",(function(e){cg.insertFont()}));var dg=new Wp({appId:"649e90d21d9c865f580c78af"}),hg=function(e){return e.dbvathena="dbvathena",e.dbvazuresql="dbvazuresql",e.dbvbigquery="dbvbigquery",e.dbvcouchbase="dbvcouchbase",e.dbvdatabricks="dbvdatabricks",e.dbvdb2="dbvdb2",e.dbvgaussdb="dbvgaussdb",e.dbvgreenplum="dbvgreenplum",e.dbvhana="dbvhana",e.dbvhive="dbvhive",e.dbvimpala="dbvimpala",e.dbvinformix="dbvinformix",e.dbvmdx="dbvmdx",e.dbvmysql="dbvmysql",e.dbvnetezza="dbvnetezza",e.dbvopenedge="dbvopenedge",e.dbvoracle="dbvoracle",e.dbvpostgresql="dbvpostgresql",e.dbvpresto="dbvpresto",e.dbvredshift="dbvredshift",e.dbvsnowflake="dbvsnowflake",e.dbvsparksql="dbvsparksql",e.dbvmssql="dbvmssql",e.dbvsybase="dbvsybase",e.dbvteradata="dbvteradata",e.dbvvertica="dbvvertica",e}({}),fg=function(e){return e.athena="athena",e.azuresql="azuresql",e.bigquery="bigquery",e.couchbase="couchbase",e.databricks="databricks",e.db2="db2",e.gaussdb="gaussdb",e.greenplum="greenplum",e.hana="hana",e.hive="hive",e.impala="impala",e.informix="informix",e.mdx="mdx",e.mysql="mysql",e.netezza="netezza",e.openedge="openedge",e.oracle="oracle",e.postgresql="postgresql",e.presto="presto",e.redshift="redshift",e.snowflake="snowflake",e.sparksql="sparksql",e.mssql="mssql",e.sybase="sybase",e.teradata="teradata",e.vertica="vertica",e}({}),pg=function(e){return e.fdd="fdd",e.fdr="fdr",e.frd="frd",e.fddi="fddi",e.join="join",e}({}),gg=function(e){return e.uploadFile="uploadFile",e.fromDatabase="fromDatabase",e.uploadFileAndFromDatabase="uploadFileAndFromDatabase",e.dbt="dbt",e.redshiftlog="redshiftlog",e.snowflakequeryhistory="snowflakequeryhistory",e}({}),mg=function(e){return e[e.simpleJob=0]="simpleJob",e[e.regularJob=1]="regularJob",e}({}),vg=function(e){return e.sqlflow="sqlflow",e.er="er",e}({}),yg=function(e){return e.sql="sql",e.job="job",e.json="json",e.sessionSelectGraph="sessionSelectGraph",e.sessionSelectLeftMost="sessionSelectLeftMost",e.sessionSelectStreamByStep="sessionSelectStreamByStep",e.sessionSelectStream="sessionSelectStream",e.displayUserLatestJobLeftMostTable="displayUserLatestJobLeftMostTable",e.displayMetadataQueryGraph="displayMetadataQueryGraph",e.widgetSelectGraph="widgetSelectGraph",e}({}),bg=function(e){return e.sql="sql",e.sessionSelectGraph="sessionSelectGraph",e.json="json",e}({}),wg=function(e){return e[e.query=0]="query",e[e.job=1]="job",e}({}),_g=function(e){return e.sql="sql",e.job="job",e.json="json",e}({}),xg=function(e){return e.sqlflow="sqlflow",e.lineage="lineage",e.er="er",e.output="output",e.error="error",e.jobError="jobError",e}({}),Eg=function(e){return e.lineage="lineage",e.schema="schema",e}({}),Cg=function(e){return e.summary="summary",e.global="global",e}({}),kg=function(e){return e.global="global",e.summary="summary",e.ignoreRecordSet="ignoreRecordSet",e}({}),Sg=function(e){return e.system="1",e.team="2",e.member="3",e.individual="4",e}({}),Tg=function(e){return e.leftMostTable="leftMostTable",e.upStream="upStream",e.downStream="downStream",e}({}),Mg=function(e){return e.onFieldClick="onFieldClick",e.onTableNameClick="onTableNameClick",e}({}),Og=function(e){return e.up="up",e.down="down",e}({});function Lg(e){return"/"===e.charAt(0)}function Ag(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var Dg=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],i=t&&t.split("/")||[],o=e&&Lg(e),a=t&&Lg(t),s=o||a;if(e&&Lg(e)?i=r:r.length&&(i.pop(),i=i.concat(r)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=i.length;u>=0;u--){var d=i[u];"."===d?Ag(i,u):".."===d?(Ag(i,u),c++):c&&(Ag(i,u),c--)}if(!s)for(;c--;c)i.unshift("..");!s||""===i[0]||i[0]&&Lg(i[0])||i.unshift("");var h=i.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h},Ng="Invariant failed";var Pg=function(e,t){if(!e)throw new Error(Ng)};function Ig(e){return"/"===e.charAt(0)?e:"/"+e}function jg(e){return"/"===e.charAt(0)?e.substr(1):e}function Rg(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function Fg(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function zg(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function Yg(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=D({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Dg(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function Bg(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var Hg=!("undefined"==typeof window||!window.document||!window.document.createElement);function qg(e,t){t(window.confirm(e))}var Ug="hashchange",Vg={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+jg(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:jg,decodePath:Ig},slash:{encodePath:Ig,decodePath:Ig}};function Wg(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function Gg(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function $g(e){window.location.replace(Wg(window.location.href)+"#"+e)}function Kg(e,t,n){return Math.min(Math.max(e,t),n)}function Jg(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=void 0===r?["/"]:r,o=t.initialIndex,a=void 0===o?0:o,s=t.keyLength,l=void 0===s?6:s,c=Bg();function u(e){D(m,e),m.length=m.entries.length,c.notifyListeners(m.location,m.action)}function d(){return Math.random().toString(36).substr(2,l)}var h=Kg(a,0,i.length-1),f=i.map((function(e){return Yg(e,void 0,"string"==typeof e?d():e.key||d())})),p=zg;function g(e){var t=Kg(m.index+e,0,m.entries.length-1),r=m.entries[t];c.confirmTransitionTo(r,"POP",n,(function(e){e?u({action:"POP",location:r,index:t}):u()}))}var m={length:f.length,action:"POP",location:f[h],index:h,entries:f,createHref:p,push:function(e,t){var r="PUSH",i=Yg(e,t,d(),m.location);c.confirmTransitionTo(i,r,n,(function(e){if(e){var t=m.index+1,n=m.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),u({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=Yg(e,t,d(),m.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(m.entries[m.index]=i,u({action:r,location:i}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=m.index+e;return t>=0&&t<m.entries.length},block:function(e){return void 0===e&&(e=!1),c.setPrompt(e)},listen:function(e){return c.appendListener(e)}};return m}var Xg,Zg=Xp?Jg():function(e){void 0===e&&(e={}),Hg||Pg(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?qg:r,o=n.hashType,a=void 0===o?"slash":o,s=e.basename?Fg(Ig(e.basename)):"",l=Vg[a],c=l.encodePath,u=l.decodePath;function d(){var e=u(Gg());return s&&(e=Rg(e,s)),Yg(e)}var h=Bg();function f(e){D(k,e),k.length=t.length,h.notifyListeners(k.location,k.action)}var p=!1,g=null;function m(){var e=Gg(),t=c(e);if(e!==t)$g(t);else{var n=d(),r=k.location;if(!p&&function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash}(r,n))return;if(g===zg(n))return;g=null,function(e){if(p)p=!1,f();else{var t="POP";h.confirmTransitionTo(e,t,i,(function(n){n?f({action:t,location:e}):function(e){var t=k.location,n=w.lastIndexOf(zg(t));-1===n&&(n=0);var r=w.lastIndexOf(zg(e));-1===r&&(r=0);var i=n-r;i&&(p=!0,_(i))}(e)}))}}(n)}}var v=Gg(),y=c(v);v!==y&&$g(y);var b=d(),w=[zg(b)];function _(e){t.go(e)}var x=0;function E(e){1===(x+=e)&&1===e?window.addEventListener(Ug,m):0===x&&window.removeEventListener(Ug,m)}var C=!1,k={length:t.length,action:"POP",location:b,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=Wg(window.location.href)),n+"#"+c(s+zg(e))},push:function(e,t){var n="PUSH",r=Yg(e,void 0,void 0,k.location);h.confirmTransitionTo(r,n,i,(function(e){if(e){var t=zg(r),i=c(s+t);if(Gg()!==i){g=t,function(e){window.location.hash=e}(i);var o=w.lastIndexOf(zg(k.location)),a=w.slice(0,o+1);a.push(t),w=a,f({action:n,location:r})}else f()}}))},replace:function(e,t){var n="REPLACE",r=Yg(e,void 0,void 0,k.location);h.confirmTransitionTo(r,n,i,(function(e){if(e){var t=zg(r),i=c(s+t);Gg()!==i&&(g=t,$g(i));var o=w.indexOf(zg(k.location));-1!==o&&(w[o]=t),f({action:n,location:r})}}))},go:_,goBack:function(){_(-1)},goForward:function(){_(1)},block:function(e){void 0===e&&(e=!1);var t=h.setPrompt(e);return C||(E(1),C=!0),function(){return C&&(C=!1,E(-1)),t()}},listen:function(e){var t=h.appendListener(e);return E(1),function(){E(-1),t()}}};return k}({}),Qg={lineage:{transformOrigin:{x:40,y:60},visualize:{zIndex:20,setting:{zIndex:40}},loading:{zIndex:30},map:{width:110,height:110},empty:{zIndex:15}},sqlflow:{transformOrigin:{x:40,y:60},visualize:{zIndex:20,setting:{zIndex:40}},loading:{zIndex:30},empty:{zIndex:15},summary:{zIndex:20},code:{zIndex:25},map:{width:110,height:110},scrollbar:{zIndex:25},context:{zIndex:9},canvas:{paddingTop:70,paddingLeft:35,paddingLeftMore:35,graph:{name:{height:22},field:{height:16}}}},er:{graph:{title:{height:28},field:{height:16}}},tree:{context:{zIndex:31}},screen:{width:window.screen.width,height:window.screen.height,offset:{width:500,height:500}}},em=__webpack_require__(59713),tm=__webpack_require__.n(em);function nm(e){om.Authorization.base64token=e}var rm,im,om={ApiPrefix:"/api",Authorization:{base64token:""},Auth0:{domain:"login.gudusoft.com",clientID:"PZ7fv0vKLL8f0HFW0FIlP1PiDeF0h5HD"},sampleSQL:(Xg={},tm()(Xg,fg.athena,"INSERT INTO cities_usa (city,state)\nSELECT city,state FROM cities_world WHERE country='usa';"),tm()(Xg,fg.azuresql,"-- azure sql sample SQL\nCREATE VIEW [SalesLT].[vProductAndDescription]\nWITH SCHEMABINDING\nAS\n-- View (indexed or standard) to display products and product descriptions by language.\nSELECT\n p.[ProductID]\n ,p.[Name]\n ,pm.[Name] AS [ProductModel]\n ,pmx.[Culture]\n ,pd.[Description]\nFROM [SalesLT].[Product] p\n INNER JOIN [SalesLT].[ProductModel] pm\n ON p.[ProductModelID] = pm.[ProductModelID]\n INNER JOIN [SalesLT].[ProductModelProductDescription] pmx\n ON pm.[ProductModelID] = pmx.[ProductModelID]\n INNER JOIN [SalesLT].[ProductDescription] pd\n ON pmx.[ProductDescriptionID] = pd.[ProductDescriptionID];"),tm()(Xg,fg.bigquery,"-- bigquery sample SQL\nMERGE dataset.DetailedInventory T\nUSING dataset.Inventory S\nON T.product = S.product\nWHEN NOT MATCHED AND s.quantity < 20 THEN\n INSERT(product, quantity, supply_constrained, comments)\n VALUES(product, quantity, true, ARRAY<STRUCT<created DATE, comment STRING>>[(DATE('2016-01-01'), 'comment1')])\nWHEN NOT MATCHED THEN\n INSERT(product, quantity, supply_constrained)\n VALUES(product, quantity, false)\n;"),tm()(Xg,fg.couchbase,'-- Couchbase\nSELECT t1.country, array_agg(t1.city), sum(t1.city_cnt) as apnum\nFROM (SELECT city, city_cnt, array_agg(airportname) as apnames, country\n FROM `travel-sample` WHERE type = "airport"\n GROUP BY city, country LETTING city_cnt = count(city) ) AS t1\nWHERE t1.city_cnt > 5\nGROUP BY t1.country;\n\nINSERT INTO `travel-sample` (key UUID(), value _country)\n SELECT _country FROM `travel-sample` _country\n WHERE type = "airport" AND airportname = "Heathrow";\n\t \nMERGE INTO all_empts a USING emps_deptb b ON KEY b.empId\nWHEN MATCHED THEN\n UPDATE SET a.depts = a.depts + 1,\n a.title = b.title || ", " || b.title\nWHEN NOT MATCHED THEN\n INSERT { "name": b.name, "title": b.title, "depts": b.depts, "empId": b.empId, "dob": b.dob }\n;\n\nUPDATE `travel-sample`\nSET foo = 9\nWHERE city = (SELECT raw city FROM `beer-sample` WHERE type = "brewery")\n;'),tm()(Xg,fg.databricks,"-- databricks\nCREATE OR REPLACE VIEW experienced_employee\n (id COMMENT 'Unique identification number', Name)\n COMMENT 'View for experienced employees'\n AS SELECT id, name\n FROM all_employee\n WHERE working_years > 5;"),tm()(Xg,fg.db2,"-- DB2\nSELECT PART, SUPPLIER, PRODNUM, PRODUCT\nFROM (SELECT PART, PROD# AS PRODNUM, SUPPLIER\nFROM PARTS\nWHERE PROD# < 200) AS PARTX\nLEFT OUTER JOIN PRODUCTS\nON PRODNUM = PROD#;\n\n\nSELECT D.DEPTNO, D.DEPTNAME,\nEMPINFO.AVGSAL, EMPINFO.EMPCOUNT\nFROM DEPT D,\nTABLE (SELECT AVG(E.SALARY) AS AVGSAL,\nCOUNT(*) AS EMPCOUNT\nFROM EMP E\nWHERE E.WORKDEPT = D.DEPTNO)\nAS EMPINFO;\n\nDELETE FROM EMP X\nWHERE ABSENT = (SELECT MAX(ABSENT) FROM EMP Y\nWHERE X.WORKDEPT = Y.WORKDEPT);\n\nINSERT INTO SMITH.TEMPEMPL\nSELECT *\nFROM DSN8B10.EMP;\n\nINSERT INTO B.EMP_PHOTO_RESUME\n-- OVERRIDING USER VALUE\nSELECT * FROM DSN8B10.EMP_PHOTO_RESUME;\n\nMERGE INTO RECORDS AR\nUSING (VALUES (:hv_activity, :hv_description)\n--FOR :hv_nrows ROWS\n)\nAS AC (ACTIVITY, DESCRIPTION)\nON (AR.ACTIVITY = AC.ACTIVITY)\nWHEN MATCHED THEN UPDATE SET DESCRIPTION = AC.DESCRIPTION\nWHEN NOT MATCHED THEN INSERT (ACTIVITY, DESCRIPTION)\nVALUES (AC.ACTIVITY, AC.DESCRIPTION)\n-- NOT ATOMIC CONTINUE ON SQLEXCEPTION\n;\n\nCREATE TABLE T1 (COL1 CHAR(7), COL2 INT);\nINSERT INTO T1 VALUES ('abc', 10);\nMERGE INTO T1 AS A\nUSING TABLE (VALUES ('rsk', 3 ) ) AS T (ID, AMOUNT)\nON A.COL1 = T.ID\nWHEN MATCHED\nTHEN UPDATE SET COL2 = CARDINALITY(CHARA)\nWHEN NOT MATCHED\nTHEN INSERT (COL1, COL2 ) VALUES (T.ID, CARDINALITY(INTA));\n\nUPDATE DSN8B10.EMP\nSET PROJSIZE = (SELECT COUNT(*)\nFROM DSN8B10.PROJ\nWHERE DEPTNO = 'E21')\nWHERE WORKDEPT = 'E21';\n\nCREATE VIEW DSN8B10.FIRSTQTR (SNO, CHARGES, DATE) AS\nSELECT SNO, CHARGES, DATE\nFROM MONTH1\nWHERE DATE BETWEEN '01/01/2000' and '01/31/2000'\nUNION All\nSELECT SNO, CHARGES, DATE\nFROM MONTH2\nWHERE DATE BETWEEN '02/01/2000' and '02/29/2000'\nUNION All\nSELECT SNO, CHARGES, DATE\nFROM MONTH3\nWHERE DATE BETWEEN '03/01/2000' and '03/31/2000';\n\n/* not supported yet\n\nEXEC SQL\nDECLARE C1 CURSOR FOR\nSELECT BONUS\nFROM DSN8710.EMP\nWHERE WORKDEPT = 'E12'\nFOR UPDATE OF BONUS;\n\nEXEC SQL\nUPDATE DSN8710.EMP\nSET BONUS = ( SELECT .10 * SALARY FROM DSN8710.EMP Y\nWHERE EMPNO = Y.EMPNO )\nWHERE CURRENT OF C1;\n*/"),tm()(Xg,fg.gaussdb,"-- gaussdb\n CREATE TABLE hr.section\n(\n id INTEGER NOT NULL, \n code VARCHAR(16) NOT NULL, \n name VARCHAR(50) NOT NULL, \n place_id INTEGER NOT NULL,\n place_name VARCHAR(50) NOT NULL \n);\n\nCREATE UNIQUE INDEX hr_section_index1 ON hr.section(id);\n\nCREATE TABLE hr.deptinfo AS SELECT * FROM hr.deptbase WHERE id > 365;\n\nCREATE VIEW deptinView AS\n SELECT * FROM hr.deptinfo WHERE id > 100;\n \nCREATE OR REPLACE PROCEDURE dept_proc()\nAS \ndeclare\n DEPT_NAME VARCHAR(100);\n DEPT_LOC INTEGER;\n CURSOR C1 IS \n SELECT name, place_id FROM hr.section WHERE place_id <= 50;\nBEGIN\n OPEN C1;\n LOOP\n FETCH C1 INTO DEPT_NAME, DEPT_LOC;\n EXIT WHEN C1%NOTFOUND;\n DBMS_OUTPUT.PUT_LINE(DEPT_NAME||'---'||DEPT_LOC);\n END LOOP;\n CLOSE C1;\nEND;"),tm()(Xg,fg.greenplum,"-- greenplum sample SQL\n\nWITH regional_sales AS (\n SELECT region, SUM(amount) AS total_sales\n FROM orders\n GROUP BY region\n ), top_regions AS (\n SELECT region\n FROM regional_sales\n WHERE total_sales > (SELECT SUM(total_sales)/10 FROM regional_sales)\n )\nSELECT region,\n product,\n SUM(quantity) AS product_units,\n SUM(amount) AS product_sales\nFROM orders\nWHERE region IN (SELECT region FROM top_regions)\nGROUP BY region, product;\n\nWITH RECURSIVE search_graph(id, link, data, depth, path, cycle) AS (\n SELECT g.id, g.link, g.data, 1,\n ARRAY[g.id],\n false\n FROM graph g\n UNION ALL\n SELECT g.id, g.link, g.data, sg.depth + 1,\n path || g.id,\n g.id = ANY(path)\n FROM graph g, search_graph sg\n WHERE g.id = sg.link AND NOT cycle\n)\nSELECT * FROM search_graph;\n\nINSERT INTO films SELECT * FROM tmp_films WHERE date_prod < '2004-05-07';\n\nUPDATE employees SET sales_count = sales_count + 1 WHERE id =\n (SELECT id FROM accounts WHERE name = 'Acme Corporation');\n \n \nUPDATE accounts SET (contact_last_name, contact_first_name) =\n (SELECT last_name, first_name FROM salesmen\n WHERE salesmen.id = accounts.sales_id); "),tm()(Xg,fg.hana,'-- sap hana sample SQLCODE\n\nCREATE TABLE t1(a INT, b INT, c INT); \nCREATE TABLE t2(a INT, b INT, c INT);\nINSERT INTO t1 VALUES(1,12,13); \nINSERT INTO t2 VALUES(2,120,130);\n \nINSERT INTO t1 WITH alias1 AS (SELECT * FROM t1) SELECT * FROM alias1;\nINSERT INTO t1 WITH w1 AS (SELECT * FROM t2) SELECT * FROM w1;\n\nSELECT TA.a1, TB.b1 FROM TA, LATERAL (SELECT b1, b2 FROM TB WHERE b3 = TA.a3) TB WHERE TA.a2 = TB.b2;\n\nUPDATE T1 SET C1 = ARRAY( SELECT C1 FROM T0 ) WHERE ID = 1;\n\nUPSERT T1 VALUES ( 1, ARRAY ( SELECT C1 FROM T0 ) ) WHERE ID = 1;\n\n\nMERGE INTO "my_schema".t1 USING "my_schema".t2 ON "my_schema".t1.a = "my_schema".t2.a\n WHEN MATCHED THEN UPDATE SET "my_schema".t1.b = "my_schema".t2.b\n WHEN NOT MATCHED THEN INSERT VALUES("my_schema".t2.a, "my_schema".t2.b);\n \n MERGE INTO T1 USING T2 ON T1.A = T2.A\n WHEN MATCHED AND T1.A > 1 THEN UPDATE SET B = T2.B\n WHEN NOT MATCHED AND T2.A > 3 THEN INSERT VALUES (T2.A, T2.B);\n \n \n /* not support yet\n CREATE VIEW Illness_K_Anon (ID, Gender, Location, Illness)\n AS SELECT ID, Gender, City AS Location, Illness\n FROM Illness\n WITH ANONYMIZATION ( ALGORITHM \'K-ANONYMITY\'\n PARAMETERS \'{"data_change_strategy": "qualified", "k": 2}\'\n COLUMN ID PARAMETERS \'{"is_sequence": true}\'\n COLUMN Gender PARAMETERS \'{"is_quasi_identifier":true, "hierarchy":{"embedded": [["F"], ["M"]]}}\'\n COLUMN Location PARAMETERS \'{"is_quasi_identifier":true, "hierarchy":{"embedded": [["Paris", "France"], ["Munich", "Germany"], ["Nice", "France"]]}}\');\n*/'),tm()(Xg,fg.hive,"-- Hive sample sql\nSELECT pageid, adid\nFROM pageAds LATERAL VIEW explode(adid_list) adTable AS adid;\n\nCREATE DATABASE merge_data;\n \nCREATE TABLE merge_data.transactions(\n\tID int,\n\tTranValue string,\n\tlast_update_user string)\nPARTITIONED BY (tran_date string)\nCLUSTERED BY (ID) into 5 buckets \nSTORED AS ORC TBLPROPERTIES ('transactional'='true');\n \nCREATE TABLE merge_data.merge_source(\n\tID int,\n\tTranValue string,\n\ttran_date string)\nSTORED AS ORC;\n\n MERGE INTO merge_data.transactions AS T \n USING merge_data.merge_source AS S\n ON T.ID = S.ID and T.tran_date = S.tran_date\n WHEN MATCHED AND (T.TranValue != S.TranValue AND S.TranValue IS NOT NULL) THEN UPDATE SET TranValue = S.TranValue, last_update_user = 'merge_update'\n WHEN MATCHED AND S.TranValue IS NULL THEN DELETE\n WHEN NOT MATCHED THEN INSERT VALUES (S.ID, S.TranValue, 'merge_insert', S.tran_date)"),tm()(Xg,fg.impala,"-- Impala sample sql\ninsert into t2 select * from t1;\ninsert into t2 select c1, c2 from t1;\n\nCREATE VIEW v5 AS SELECT c1, CAST(c3 AS STRING) c3, CONCAT(c4,c5) c5, TRIM(c6) c6, \"Constant\" c8 FROM t1;\n\nCREATE VIEW v7 (c1 COMMENT 'Comment for c1', c2) COMMENT 'Comment for v7' AS SELECT t1.c1, t1.c2 FROM t1;"),tm()(Xg,fg.informix,"-- Informix sample sql\nCREATE VIEW myview (cola, colb) AS\nSELECT colx, coly from firsttab\nUNION\nSELECT colx, colz from secondtab;\n\nCREATE VIEW palo_alto AS\nSELECT * FROM customer WHERE city = 'Palo Alto'\nWITH CHECK OPTION\n;\n\nMERGE INTO t2 AS o USING t1 AS n ON o.f1 = n.f1\nWHEN NOT MATCHED THEN INSERT ( o.f1,o.f2)\nVALUES ( n.f1,n.f2)\n;\n\nINSERT INTO t2(f1, f2)\nSELECT t1.f1, t1.f2 FROM t1\nWHERE NOT EXISTS\n(SELECT f1, f2 FROM t2\nWHERE t2.f1 = t1.f1);\n\nMERGE INTO sale USING new_sale AS n\nON sale.cust_id = n.cust_id\nWHEN MATCHED THEN UPDATE\nSET sale.salecount = sale.salecount + n.salecount\nWHEN NOT MATCHED THEN INSERT (cust_id, salecount)\nVALUES (n.cust_id, n.salecount);\n\n\nMERGE INTO customer c\nUSING ext_customer e\nON c.customer_num=e.customer_num AND c.fname=e.fname AND c.lname=e.lname\nWHEN NOT MATCHED THEN\nINSERT\n(c.fname, c.lname, c.company, c.address1, c.address2,\nc.city, c.state, c.zipcode, c.phone)\nVALUES\n(e.fname, e.lname, e.company, e.address1, e.address2,\ne.city, e.state, e.zipcode, e.phone)\nWHEN MATCHED THEN UPDATE\nSET c.fname = e.fname,\nc.lname = e.lname,\nc.company = e.company,\nc.address1 = e.address1,\nc.address2 = e.address2,\nc.city = e.city,\nc.state = e.state,\nc.zipcode = e.zipcode,\nc.phone = e.phone ;\n\n\nUPDATE nmosdb@wnmserver1:test\nSET name=(SELECT name FROM test\nWHERE test.id = nmosdb@wnmserver1:test.id)\nWHERE EXISTS(\nSELECT 1 FROM test WHERE test.id = nmosdb@wnmserver1:test.id\n);\n\nUPDATE orders\nSET ship_charge =\n(SELECT SUM(total_price) * .07 FROM items\nWHERE orders.order_num = items.order_num)\nWHERE orders.order_num = 1001;"),tm()(Xg,fg.mdx,"mdx"),tm()(Xg,fg.mysql,"-- mysql sample sql\n\nSELECT\n salesperson.name,\n -- find maximum sale size for this salesperson\n (SELECT MAX(amount) AS amount\n FROM all_sales\n WHERE all_sales.salesperson_id = salesperson.id)\n AS amount,\n -- find customer for this maximum size\n (SELECT customer_name\n FROM all_sales\n WHERE all_sales.salesperson_id = salesperson.id\n AND all_sales.amount =\n -- find maximum size, again\n (SELECT MAX(amount) AS amount\n FROM all_sales\n WHERE all_sales.salesperson_id = salesperson.id))\n AS customer_name\nFROM\n salesperson;\n \n \nSELECT\n salesperson.name,\n max_sale.amount,\n max_sale_customer.customer_name\nFROM\n salesperson,\n -- calculate maximum size, cache it in transient derived table max_sale\n (SELECT MAX(amount) AS amount\n FROM all_sales\n WHERE all_sales.salesperson_id = salesperson.id)\n AS max_sale,\n -- find customer, reusing cached maximum size\n (SELECT customer_name\n FROM all_sales\n WHERE all_sales.salesperson_id = salesperson.id\n AND all_sales.amount =\n -- the cached maximum size\n max_sale.amount)\n AS max_sale_customer;\n\nSELECT\n salesperson.name,\n max_sale.amount,\n max_sale.customer_name\nFROM\n salesperson,\n -- find maximum size and customer at same time\n LATERAL\n (SELECT amount, customer_name\n FROM all_sales\n WHERE all_sales.salesperson_id = salesperson.id\n ORDER BY amount DESC LIMIT 1)\n AS max_sale;\n\nWITH RECURSIVE employee_paths (id, name, path) AS\n(\n SELECT id, name, CAST(id AS CHAR(200))\n FROM employees\n WHERE manager_id IS NULL\n UNION ALL\n SELECT e.id, e.name, CONCAT(ep.path, ',', e.id)\n FROM employee_paths AS ep JOIN employees AS e\n ON ep.id = e.manager_id\n)\nSELECT * FROM employee_paths ORDER BY path;\n\nUPDATE table1 t1 \nJOIN table2 t2 ON t1.field1 = t2.field1 \nJOIN table3 t3 ON (t3.field1=t2.field2 AND t3.field3 IS NOT NULL) \nSET t1.field9=t3.field9\nWHERE t1.field5=1\nAND t1.field9 IS NULL "),tm()(Xg,fg.netezza,"-- netezza sample sql\n\nINSERT INTO films SELECT * FROM tmp;\n\nINSERT INTO emp_copy WITH employee AS (select * from\nemp) SELECT * FROM employee;\n\nUPDATE emp_copy SET grp = 'gone' WHERE id =\n(WITH employee AS (select * from emp) SELECT id FROM employee WHERE id\n= 1);\n\nDELETE FROM emp_copy WHERE id IN\n(WITH employee AS (SELECT * FROM emp_copy where grp = 'gone')\nSELECT id FROM employee);\n\n\nWITH manager (mgr_id, mgr_name, mgr_dept) AS\n\t(SELECT id, name, grp\n\tFROM emp_copy\n\tWHERE mgr = id AND grp != 'gone'),\nemployee (emp_id, emp_name, emp_mgr) AS\n\t(SELECT id, name, mgr_id\n\tFROM emp_copy JOIN manager ON grp = mgr_dept),\nmgr_cnt (mgr_id, mgr_reports) AS\n\t(SELECT mgr, COUNT (*)\n\tFROM emp_copy\n\tWHERE mgr != id\n\tGROUP BY mgr)\nSELECT *\nFROM employee JOIN manager ON emp_mgr = mgr_id \n\tJOIN mgr_cnt ON emp_mgr = mgr_id \nWHERE emp_id != mgr_id\nORDER BY mgr_dept;"),tm()(Xg,fg.openedge,"-- openedge sample sql\n\nCREATE VIEW ne_customers AS\nSELECT name, address, city, state\nFROM customer\nWHERE state IN ( 'NH', 'MA', 'ME', 'RI', 'CT', 'VT' )\nWITH CHECK OPTION ;\n\nINSERT INTO neworders (order_no, product, qty)\nSELECT order_no, product, qty\nFROM orders\nWHERE order_date = SYSDATE ;\n\nUPDATE OrderLine\nSET (ItemNum, Price) =\n(SELECT ItemNum, Price * 3\nFROM Item\nWHERE ItemName = 'gloves')\nWHERE OrderNum = 21 ;\n\nUpdate Orderline\nSET (Itemnum) =\n(Select Itemnum\nFROM Item\nWHERE Itemname = 'Tennis balls')\nWHERE Ordernum = 20;"),tm()(Xg,fg.oracle,'CREATE VIEW vsal \nAS \n SELECT a.deptno "Department", \n a.num_emp / b.total_count "Employees", \n a.sal_sum / b.total_sal "Salary" \n FROM (SELECT deptno, \n Count() num_emp, \n SUM(sal) sal_sum \n FROM scott.emp \n WHERE city = \'NYC\' \n GROUP BY deptno) a, \n (SELECT Count() total_count, \n SUM(sal) total_sal \n FROM scott.emp \n WHERE city = \'NYC\') b \n;\n\nINSERT ALL\n\tWHEN ottl < 100000 THEN\n\t\tINTO small_orders\n\t\t\tVALUES(oid, ottl, sid, cid)\n\tWHEN ottl > 100000 and ottl < 200000 THEN\n\t\tINTO medium_orders\n\t\t\tVALUES(oid, ottl, sid, cid)\n\tWHEN ottl > 200000 THEN\n\t\tinto large_orders\n\t\t\tVALUES(oid, ottl, sid, cid)\n\tWHEN ottl > 290000 THEN\n\t\tINTO special_orders\nSELECT o.order_id oid, o.customer_id cid, o.order_total ottl,\no.sales_rep_id sid, c.credit_limit cl, c.cust_email cem\nFROM orders o, customers c\nWHERE o.customer_id = c.customer_id;\n\ncreate table scott.dept( \n deptno number(2,0), \n dname varchar2(14), \n loc varchar2(13), \n constraint pk_dept primary key (deptno) \n);\n\ncreate table scott.emp( \n empno number(4,0), \n ename varchar2(10), \n job varchar2(9), \n mgr number(4,0), \n hiredate date, \n sal number(7,2), \n comm number(7,2), \n deptno number(2,0), \n constraint pk_emp primary key (empno),\n constraint fk_deptno foreign key (deptno) references dept (deptno) \n);'),tm()(Xg,fg.postgresql,"-- postgresql sample sql\n\ncreate view v2 as \nSELECT distributors.name\nFROM distributors\nWHERE distributors.name LIKE 'W%'\nUNION\nSELECT actors.name\nFROM actors\nWHERE actors.name LIKE 'W%';\n\n\nWITH t AS (\nSELECT random() as x FROM generate_series(1, 3)\n)\nSELECT * FROM t\nUNION ALL\nSELECT * FROM t\n;\n\ncreate view v3 as \nWITH RECURSIVE employee_recursive(distance, employee_name, manager_name) AS (\nSELECT 1, employee_name, manager_name\nFROM employee\nWHERE manager_name = 'Mary'\nUNION ALL\nSELECT er.distance + 1, e.employee_name, e.manager_name\nFROM employee_recursive er, employee e\nWHERE er.employee_name = e.manager_name\n)\nSELECT distance, employee_name FROM employee_recursive;\n\nWITH upd AS (\nUPDATE employees SET sales_count = sales_count + 1 WHERE id =\n(SELECT sales_person FROM accounts WHERE name = 'Acme Corporation')\nRETURNING *\n)\nINSERT INTO employees_log SELECT *, current_timestamp FROM upd;\n\n\n/* not implemented\nCREATE RECURSIVE VIEW nums_1_100 (n) AS\nVALUES (1)\nUNION ALL\nSELECT n+1 FROM nums_1_100 WHERE n < 100;\n*/"),tm()(Xg,fg.presto,"CREATE TABLE orders_column_aliased (order_date, total_price)\nAS\nSELECT orderdate, totalprice\nFROM orders;"),tm()(Xg,fg.redshift,"-- redshift sample sql\nCreate table sales(\n dateid int,\n venuestate char(80),\n venuecity char(40),\n venuename char(100),\ncatname char(50),\nQtr int,\nqtysold int,\n pricepaid int,\nYear date\n);\ncreate view sales_vw as\nselect * from public.sales\nunion all\nselect * from spectrum.sales\n;\n\ninsert into category_ident(catgroup,catname,catdesc)\nselect catgroup,catname,catdesc from category;\n\nUPDATE category \nSET catdesc = 'Broadway Musical' \nWHERE category.catid IN (SELECT category.catid \n FROM category \n JOIN event \n ON category.catid = event.catid \n JOIN venue \n ON venue.venueid = event.venueid \n JOIN sales \n ON sales.eventid = event.eventid \n WHERE venuecity = 'New York City' \n AND catname = 'Musicals'); \n\nupdate category set catid=100\nfrom event join category cat on event.catid=cat.catid\nwhere cat.catgroup='Concerts';\n\nSELECT qtr, \n Sum(pricepaid) AS qtrsales, \n (SELECT Sum(pricepaid) \n FROM sales \n JOIN date \n ON sales.dateid = date.dateid \n WHERE qtr = '1' \n AND year = 2008) AS q1sales \nFROM sales \n JOIN date \n ON sales.dateid = date.dateid \nWHERE qtr IN( '2', '3' ) \n AND year = 2008 \nGROUP BY qtr \nORDER BY qtr; \n\n\nWITH venue_sales \n AS (SELECT venuename, \n venuecity, \n Sum(pricepaid) AS venuename_sales \n FROM sales, \n venue, \n event \n WHERE venue.venueid = event.venueid \n AND event.eventid = sales.eventid \n GROUP BY venuename, \n venuecity), \n top_venues \n AS (SELECT venuename \n FROM venue_sales \n WHERE venuename_sales > 800000) \nSELECT venuename, \n venuecity, \n venuestate, \n Sum(qtysold) AS venue_qty, \n Sum(pricepaid) AS venue_sales \nFROM sales, \n venue, \n event \nWHERE venue.venueid = event.venueid \n AND event.eventid = sales.eventid \n AND venuename IN(SELECT venuename \n FROM top_venues) \nGROUP BY venuename, \n venuecity, \n venuestate \nORDER BY venuename; "),tm()(Xg,fg.snowflake,"-- snowflake sample sql\n\ncreate or replace secure view myview comment='Test secure view' as select * from mytable;\n\n\ninsert into employees(first_name, last_name, workphone, city,postal_code)\n select\n contractor_first,contractor_last,worknum,null,zip_code\n from contractors\n where contains(worknum,'650');\n \ninsert into employees (first_name,last_name,workphone,city,postal_code)\n with cte as\n (select contractor_first as first_name,contractor_last as last_name,worknum as workphone,city,zip_code as postal_code\n from contractors)\n select first_name,last_name,workphone,city,postal_code\n from cte;\n\ninsert into emp (id,first_name,last_name,city,postal_code,ph)\n select a.id,a.first_name,a.last_name,a.city,a.postal_code,b.ph\n from emp_addr a\n inner join emp_ph b on a.id = b.id;\n\ninsert overwrite all\n into t1\n into t1 (c1, c2, c3) values (n2, n1, default)\n into t2 (c1, c2, c3)\n into t2 values (n3, n2, n1)\nselect n1, n2, n3 from src;\n\ninsert all\n when n1 > 100 then\n into t1\n when n1 > 10 then\n into t1\n into t2\n else\n into t2\nselect n1 from src;\n\ninsert all\ninto t1 values (key, a)\nselect src1.key as key, src1.a as a\nfrom src1, src2 where src1.key = src2.key;\n\n\nmerge into target\n using src on target.k = src.k\n when matched and src.v = 11 then delete\n when matched then update set target.v = src.v;\n\nmerge into target using (select k, max(v) as v from src group by k) as b on target.k = b.k\n when matched then update set target.v = b.v\n when not matched then insert (k, v) values (b.k, b.v);\n\nmerge into members m\n using (\n select id, date\n from signup\n where datediff(day, current_date(), signup.date::date) < -30) s on m.id = s.id\n when matched then update set m.fee = 40;\n\nupdate t1\n set t1.number_column = t1.number_column + t2.number_column, t1.text_column = 'ASDF'\n from t2\n where t1.key_column = t2.t1_key and t1.number_column < 10;\n\nupdate target set v = b.v\n from (select k, min(v) v from src group by k) b\n where target.k = b.k; "),tm()(Xg,fg.sparksql,"-- sparksql sample sql\n\nCREATE TABLE person (id INT, name STRING, age INT, class INT, address STRING);\n\nSELECT * FROM person\n PIVOT (\n SUM(age) AS a, AVG(class) AS c\n FOR name IN ('John' AS john, 'Mike' AS mike)\n );"),tm()(Xg,fg.mssql,"-- sql server sample sql\nCREATE TABLE dbo.EmployeeSales \n( DataSource varchar(20) NOT NULL, \n BusinessEntityID varchar(11) NOT NULL, \n LastName varchar(40) NOT NULL, \n SalesDollars money NOT NULL \n); \nGO \nCREATE PROCEDURE dbo.uspGetEmployeeSales \nAS \n SET NOCOUNT ON; \n SELECT 'PROCEDURE', sp.BusinessEntityID, c.LastName, \n sp.SalesYTD \n FROM Sales.SalesPerson AS sp \n INNER JOIN Person.Person AS c \n ON sp.BusinessEntityID = c.BusinessEntityID \n WHERE sp.BusinessEntityID LIKE '2%' \n ORDER BY sp.BusinessEntityID, c.LastName; \nGO \n--INSERT...SELECT example \nINSERT INTO dbo.EmployeeSales \n SELECT 'SELECT', sp.BusinessEntityID, c.LastName, sp.SalesYTD \n FROM Sales.SalesPerson AS sp \n INNER JOIN Person.Person AS c \n ON sp.BusinessEntityID = c.BusinessEntityID \n WHERE sp.BusinessEntityID LIKE '2%' \n ORDER BY sp.BusinessEntityID, c.LastName; \nGO \n\n\nCREATE VIEW hiredate_view \nAS \nSELECT p.FirstName, p.LastName, e.BusinessEntityID, e.HireDate \nFROM HumanResources.Employee e \nJOIN Person.Person AS p ON e.BusinessEntityID = p.BusinessEntityID ; \nGO \n\nCREATE VIEW view1 \nAS \nSELECT fis.CustomerKey, fis.ProductKey, fis.OrderDateKey, \n fis.SalesTerritoryKey, dst.SalesTerritoryRegion \nFROM FactInternetSales AS fis \nLEFT OUTER JOIN DimSalesTerritory AS dst \nON (fis.SalesTerritoryKey=dst.SalesTerritoryKey); \n\nGO \nSELECT ROW_NUMBER() OVER(PARTITION BY s.PostalCode ORDER BY s.SalesYTD DESC) AS \"Row Number\", \n p.LastName, s.SalesYTD, a.PostalCode \nFROM Sales.SalesPerson AS s \n INNER JOIN Person.Person AS p \n ON s.BusinessEntityID = p.BusinessEntityID \n INNER JOIN Person.Address AS a \n ON a.AddressID = p.BusinessEntityID \nWHERE s.TerritoryID IS NOT NULL \n AND s.SalesYTD <> 0 \nORDER BY s.PostalCode;"),tm()(Xg,fg.sybase,'-- sybase sample sql\n\ncreate view accounts (title, advance, amt_due)\nas select title, advance, price * total_sales\nfrom titles\nwhere price > $5\n\ncreate view cities\n(authorname, acity, publishername, pcity)\nas select authors.au_lname, authors.city, publishers.pub_name,\npublishers.city\nfrom authors, publishers\nwhere authors.city = publishers.city;\n\ncreate view cities2\nas select authorname = authors.au_lname,\nacity = authors.city, publishername = authors.pub_name, pcity =\npublishers.city\nfrom authors, publishers\nwhere authors.city = publishers.city\n;\n\ncreate view psych_titles as\nselect *\nfrom (select * from titles\nwhere type = "psychology") dt_psych\n;\n\ninsert newpublishers (pub_id, pub_name)\nselect pub_id, pub_name\nfrom publishers\nwhere pub_name="New Age Data"\n;\n\nmerge into GlobalSales\n(Item_number, Description, Quantity)as G\nusing DailySales as D\nON D.Item_number = G.Item_number\nwhen not matched\nthen\ninsert (Item_number, Description, Quantity )\nvalues (D.Item_number, D.Description, D.Quantity)\nwhen matched\nthen update set\nG.Quantity = G.Quantity + D.Quantity\n;\n\nupdate titles\nset total_sales = sales.total_sales + sales.qty\nfrom titles, salesdetail, sales\nwhere titles.title_id = salesdetail.title_id\nand salesdetail.stor_id = sales.stor_id\nand salesdetail.ord_num = sales.ord_num\nand sales.date in\n(select max (sales.date) from sales)\n;'),tm()(Xg,fg.teradata,"-- teradata sample sql\n\nINSERT INTO promotion (deptnum, empname, yearsexp)\nSELECT deptno, name, yrsexp\nFROM employee\nWHERE yrsexp > 10 ;\n\n-- Teradata Database interprets t1 in the scalar subquery as a distinct instance of\n-- t1 rather than as the target table t1 of the insert operation\n/* not supported yet\nINSERT INTO t1 VALUES (1,2,3 (SELECT d2\nFROM t2\nWHERE a2=t1.a1));\n*/\n\n\nINSERT INTO t1\nSELECT a, PERIOD(b, c)\nFROM t2;\n\nUSING (empno INTEGER,\nname VARCHAR(50),\nsalary INTEGER)\nMERGE INTO employee AS t\nUSING VALUES (:empno, :name, :salary) AS s(empno, name, salary)\nON t.empno=s.empno\nWHEN MATCHED THEN UPDATE\nSET salary=s.salary\nWHEN NOT MATCHED THEN INSERT (empno, name, salary)\nVALUES (s.empno, s.name, s.salary);\n\nUSING (empno INTEGER,\nname VARCHAR(50),\nsalary INTEGER)\nUPDATE employee\nSET salary=:salary\nWHERE empno=:empno\nELSE INSERT INTO employee\n(empno, name, salary) VALUES ( :empno, :name, :salary);\n\nUSING (empno INTEGER,\nsalary INTEGER)\nMERGE INTO employee AS t\nUSING (SELECT :empno, :salary, name\nFROM names\nWHERE empno=:empno) AS s(empno, salary, name)\nON t.empno=s.empno\nWHEN MATCHED THEN UPDATE\nSET salary=s.salary, name = s.name\nWHEN NOT MATCHED THEN INSERT (empno, name, salary)\nVALUES (s.empno, s.name, s.salary);\n\nMERGE INTO emp\nUSING VALUES (100, 'cc', 200, 3333) AS emp1 (empnum, name,\ndeptno, sal)\nON emp1.empnum=emp.s_no\nWHEN MATCHED THEN\nUPDATE SET sal=DEFAULT\nWHEN NOT MATCHED THEN\nINSERT VALUES (emp1.empnum, emp1.name, emp1.deptno, emp1.sal);\nMERGE INTO emp\nUSING VALUES (100, 'cc', 200, 3333) AS emp1 (empnum, name,\ndeptno, sal)\nON emp1.empnum=emp.s_no\nWHEN MATCHED THEN\nUPDATE SET sal=DEFAULT(emp.sal)\nWHEN NOT MATCHED THEN\nINSERT VALUES (emp1.empnum, emp1.name, emp1.deptno, emp1.sal)\n;\n\nMERGE INTO t1\nUSING t2\nON t1.x1=t2.z2 AND t1.y1=t2.y2\nWHEN MATCHED THEN\nUPDATE SET z1=10\nWHEN NOT MATCHED THEN\nINSERT (z2,y2,x2);\n\nMERGE INTO t1\nUSING (SELECT *\nFROM t2\nWHERE y2=10) AS s\nON x1=10\nWHEN MATCHED THEN\nUPDATE SET z1=z2\nWHEN NOT MATCHED THEN\nINSERT (x2, y2, z2);\n\nUPDATE sales_sum_table AS ss\nSET total_sales = (SELECT sum(amount)\nFROM sales_table AS s\nWHERE s.day_of_sale BETWEEN ss.period_start\nAND ss.period_end);\n\n-- The following UPDATE request updates the NoPI table nopi012_t1 aliased as t1.\nUPDATE t1\nFROM nopi012_t1 AS t1, nopi012_t2 AS t2\nSET c3 = t1.c3 * 1.05\nWHERE t1.c2 = t2.c2;"),tm()(Xg,fg.vertica,"-- hp vertica sample sql\n\nCREATE VIEW myview AS\nSELECT SUM(annual_income), customer_state\nFROM public.customer_dimension\nWHERE customer_key IN\n(SELECT customer_key\nFROM store.store_sales_fact)\nGROUP BY customer_state\nORDER BY customer_state ASC;\n\nINSERT INTO t1 (col1, col2) (SELECT 'abc', mycolumn FROM mytable);\n\nMERGE INTO t USING s ON (t.c1 = s.c1)\nWHEN NOT MATCHED THEN INSERT (c1, c2) VALUES (s.c1, s.c2);\n\n-- First WITH clause,regional_sales\nWITH\nregional_sales AS (\nSELECT region, SUM(amount) AS total_sales\nFROM orders\nGROUP BY region),\n-- Second WITH clause top_regions\ntop_regions AS (\nSELECT region\nFROM regional_sales\nWHERE total_sales > (SELECT SUM (total_sales)/10 FROM regional_sales) )\n-- End defining WITH clause statement\n-- Begin main primary query\nSELECT region,\nproduct,\nSUM(quantity) AS product_units,\nSUM(amount) AS product_sales\nFROM orders\nWHERE region IN (SELECT region FROM top_regions)\n;"),Xg),homepage:"query",userId:"",trialVersion:!1};function am(){var e=y.useContext(td);return rd(e),e}!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"}(rm||(rm={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(im||(im={}));var sm=function(e){var t=am(),n=e.value,r=e.children,i=bc(e,["value","children"]);return r(t.formatNumberToParts(n,i))};sm.displayName="FormattedNumberParts";function lm(e){var t=function(t){var n=am(),r=t.value,i=t.children,o=bc(t,["value","children"]),a="string"==typeof r?new Date(r||0):r;return i("formatDate"===e?n.formatDateToParts(a,o):n.formatTimeToParts(a,o))};return t.displayName=im[e],t}function cm(e){var t=function(t){var n=am(),r=t.value,i=t.children,o=bc(t,["value","children"]),a=n[e](r,o);if("function"==typeof i)return i(a);var s=n.textComponent||y.Fragment;return y.createElement(s,null,a)};return t.displayName=rm[e],t}sm.displayName="FormattedNumberParts";cm("formatDate"),cm("formatTime"),cm("formatNumber"),cm("formatList"),cm("formatDisplayName"),lm("formatDate"),lm("formatTime");var um,dm={atLeastOne:"direct or indirect dataflow should be at least one.",onlyWork:"Only works when show intermediate recordset is true.",onlyWork2:"show function only works when show intermediate recordset is true.",singleNumber:"column position of csv file should be a single number from 1 to 6, or be empty if not exists."},hm=(um={},tm()(um,Mg.onFieldClick,[]),tm()(um,Mg.onTableNameClick,[]),um);function fm(e){var t=y.useRef(e);t.current=e;var n=y.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}function pm(e){var t=y.useRef(!0),n=$p;y.useEffect((function(){return n&&console.log("mounted: ".concat(e)),function(){n&&console.log("unmounted: ".concat(e))}}),[]),y.useEffect((function(){t.current?t.current=!1:n&&console.log("update: ".concat(e))}))}function gm(e,t){return R(e,t)}function mm(){return gm((function(e){var t;return(null===(t=e.sqlflow.current)||void 0===t?void 0:t.visualize.type)===yg.sessionSelectStreamByStep}))}function vm(){return gm((function(e){return e.account.isShare}))}function ym(){return gm((function(e){var t,n;return!!e.sqlflow.visualize.isJob&&!0===(null===(t=e.sqlflow.current)||void 0===t||null===(n=t.visualize.job)||void 0===n?void 0:n.persist)}))}function bm(e){return e[e.length-1].draft}var wm=__webpack_require__(67154),_m=__webpack_require__.n(wm);function xm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Em=1073741823,Cm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:{};var km=y.createContext||function(e,t){var n,r,i="__create-react-context-"+function(){var e="__global_unique_id__";return Cm[e]=(Cm[e]||0)+1}()+"__",o=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=function(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}(t.props.value),t}xm(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;!function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,i)?(n="function"==typeof t?t(r,i):Em,0!==(n|=0)&&this.emitter.set(e.value,n)):n=0}},r.render=function(){return this.props.children},n}(y.Component);o.childContextTypes=((n={})[i]=_().object.isRequired,n);var a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}xm(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?Em:t},r.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?Em:e},r.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},r.getValue=function(){return this.context[i]?this.context[i].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(y.Component);return a.contextTypes=((r={})[i]=_().object,r),{Provider:o,Consumer:a}},Sm=km,Tm=__webpack_require__(14779),Mm=__webpack_require__.n(Tm),Om=function(e){var t=Sm();return t.displayName=e,t},Lm=Om("Router-History"),Am=function(e){var t=Sm();return t.displayName=e,t},Dm=Am("Router"),Nm=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}xm(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return y.createElement(Dm.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},y.createElement(Lm.Provider,{children:this.props.children||null,value:this.props.history}))},t}(y.Component);y.Component;y.Component;var Pm={},Im=1e4,jm=0;function Rm(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=Pm[n]||(Pm[n]={});if(r[e])return r[e];var i=[],o={regexp:Mm()(e,i,t),keys:i};return jm<Im&&(r[e]=o,jm++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),h=e===u;return o&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}y.Component;function Fm(e){return"/"===e.charAt(0)?e:"/"+e}function zm(e,t){if(!e)return t;var n=Fm(e);return 0!==t.pathname.indexOf(n)?t:D({},t,{pathname:t.pathname.substr(n.length)})}function Ym(e){return"string"==typeof e?e:zg(e)}function Bm(e){return function(){Pg(!1)}}function Hm(){}y.Component;y.Component;y.useContext;var qm="0123456789abcdefghijklmnopqrstuvwxyz";function Um(e){return qm.charAt(e)}function Vm(e,t){return e&t}function Wm(e,t){return e|t}function Gm(e,t){return e^t}function $m(e,t){return e&~t}function Km(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Jm(e){for(var t=0;0!=e;)e&=e-1,++t;return t}var Xm,Zm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qm="=";function ev(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=Zm.charAt(n>>6)+Zm.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=Zm.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=Zm.charAt(n>>2)+Zm.charAt((3&n)<<4));(3&r.length)>0;)r+=Qm;return r}function tv(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&e.charAt(t)!=Qm;++t){var o=Zm.indexOf(e.charAt(t));o<0||(0==r?(n+=Um(o>>2),i=3&o,r=1):1==r?(n+=Um(i<<2|o>>4),i=15&o,r=2):2==r?(n+=Um(i),n+=Um(o>>2),i=3&o,r=3):(n+=Um(i<<2|o>>4),n+=Um(15&o),r=0))}return 1==r&&(n+=Um(i<<2)),n}var nv,rv=function(e){var t;if(void 0===Xm){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(Xm={},t=0;t<16;++t)Xm[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)Xm[n.charAt(t)]=t;for(t=0;t<8;++t)Xm[r.charAt(t)]=-1}var i=[],o=0,a=0;for(t=0;t<e.length;++t){var s=e.charAt(t);if("="==s)break;if(-1!=(s=Xm[s])){if(void 0===s)throw new Error("Illegal character at offset "+t);o|=s,++a>=2?(i[i.length]=o,o=0,a=0):o<<=4}}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return i},iv={decode:function(e){var t;if(void 0===nv){var n="= \f\n\r\t \u2028\u2029";for(nv=Object.create(null),t=0;t<64;++t)nv["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(nv["-"]=62,nv._=63,t=0;t<9;++t)nv[n.charAt(t)]=-1}var r=[],i=0,o=0;for(t=0;t<e.length;++t){var a=e.charAt(t);if("="==a)break;if(-1!=(a=nv[a])){if(void 0===a)throw new Error("Illegal character at offset "+t);i|=a,++o>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,o=0):i<<=6}}switch(o){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=iv.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return iv.decode(e)}},ov=1e13,av=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,r,i=this.buf,o=i.length;for(n=0;n<o;++n)(r=i[n]*e+t)<ov?t=0:r-=(t=0|r/ov)*ov,i[n]=r;t>0&&(i[n]=t)},e.prototype.sub=function(e){var t,n,r=this.buf,i=r.length;for(t=0;t<i;++t)(n=r[t]-e)<0?(n+=ov,e=1):e=0,r[t]=n;for(;0===r[r.length-1];)r.pop()},e.prototype.toString=function(e){if(10!=(e||10))throw new Error("only base 10 is supported");for(var t=this.buf,n=t[t.length-1].toString(),r=t.length-2;r>=0;--r)n+=(ov+t[r]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*ov+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),sv=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,lv=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function cv(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var uv,dv=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var r="",i=e;i<t;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},e.prototype.isASCII=function(e,t){for(var n=e;n<t;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",r=e;r<t;++r)n+=String.fromCharCode(this.get(r));return n},e.prototype.parseStringUTF=function(e,t){for(var n="",r=e;r<t;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,r,i="",o=e;o<t;)n=this.get(o++),r=this.get(o++),i+=String.fromCharCode(n<<8|r);return i},e.prototype.parseTime=function(e,t,n){var r=this.parseStringISO(e,t),i=(n?sv:lv).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},e.prototype.parseInteger=function(e,t){for(var n,r=this.get(e),i=r>127,o=i?255:0,a="";r==o&&++e<t;)r=this.get(e);if(0===(n=t-e))return i?-1:0;if(n>4){for(a=r,n<<=3;0==(128&(+a^o));)a=+a<<1,--n;a="("+n+" bit)\n"}i&&(r-=256);for(var s=new av(r),l=e+1;l<t;++l)s.mulAdd(256,this.get(l));return a+s.toString()},e.prototype.parseBitString=function(e,t,n){for(var r=this.get(e),i="("+((t-e-1<<3)-r)+" bit)\n",o="",a=e+1;a<t;++a){for(var s=this.get(a),l=a==t-1?r:0,c=7;c>=l;--c)o+=s>>c&1?"1":"0";if(o.length>n)return i+cv(o,n)}return i+o},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return cv(this.parseStringISO(e,t),n);var r=t-e,i="("+r+" byte)\n";r>(n/=2)&&(t=e+n);for(var o=e;o<t;++o)i+=this.hexByte(this.get(o));return r>n&&(i+="…"),i},e.prototype.parseOID=function(e,t,n){for(var r="",i=new av,o=0,a=e;a<t;++a){var s=this.get(a);if(i.mulAdd(128,127&s),o+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof av)i.sub(80),r="2."+i.toString();else{var l=i<80?i<40?0:1:2;r=l+"."+(i-40*l)}else r+="."+i.toString();if(r.length>n)return cv(r,n);i=new av,o=0}}return o>0&&(r+=".incomplete"),r},e}(),hv=function(){function e(e,t,n,r,i){if(!(r instanceof fv))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=r,this.sub=i}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return cv(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return cv(this.stream.parseStringISO(t,t+n),e);case 30:return cv(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,r=this.sub.length;n<r;++n)t+=this.sub[n].toPrettyString(e)}return t},e.prototype.posStart=function(){return this.stream.pos},e.prototype.posContent=function(){return this.stream.pos+this.header},e.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},e.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},e.decodeLength=function(e){var t=e.get(),n=127&t;if(n==t)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var r=0;r<n;++r)t=256*t+e.get();return t},e.prototype.getHexStringValue=function(){var e=this.toHexString(),t=2*this.header,n=2*this.length;return e.substr(t,n)},e.decode=function(t){var n;n=t instanceof dv?t:new dv(t,0);var r=new dv(n),i=new fv(n),o=e.decodeLength(n),a=n.pos,s=a-r.pos,l=null,c=function(){var t=[];if(null!==o){for(var r=a+o;n.pos<r;)t[t.length]=e.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+a)}else try{for(;;){var i=e.decode(n);if(i.tag.isEOC())break;t[t.length]=i}o=a-n.pos}catch(e){throw new Error("Exception while decoding undefined length content: "+e)}return t};if(i.tagConstructed)l=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");l=c();for(var u=0;u<l.length;++u)if(l[u].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(e){l=null}if(null===l){if(null===o)throw new Error("We can't skip over an invalid tag with undefined length at offset "+a);n.pos=a+Math.abs(o)}return new e(r,s,o,i,l)},e}(),fv=function(){function e(e){var t=e.get();if(this.tagClass=t>>6,this.tagConstructed=0!=(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new av;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),pv=[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],gv=(1<<26)/pv[pv.length-1],mv=function(){function e(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 e.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,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(i=!0,o=Um(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=Um(n));return i?o:"0"},e.prototype.negate=function(){var t=_v();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.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},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ov(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=_v();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new yv(t):new bv(t),this.exp(e,n)},e.prototype.clone=function(){var e=_v();return this.copyTo(e),e},e.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];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},e.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];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)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=_v();return this.bitwiseTo(e,Vm,t),t},e.prototype.or=function(e){var t=_v();return this.bitwiseTo(e,Wm,t),t},e.prototype.xor=function(e){var t=_v();return this.bitwiseTo(e,Gm,t),t},e.prototype.andNot=function(e){var t=_v();return this.bitwiseTo(e,$m,t),t},e.prototype.not=function(){for(var e=_v(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},e.prototype.shiftLeft=function(e){var t=_v();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},e.prototype.shiftRight=function(e){var t=_v();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},e.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Km(this[e]);return this.s<0?this.t*this.DB:-1},e.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Jm(this[n]^t);return e},e.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},e.prototype.setBit=function(e){return this.changeBit(e,Wm)},e.prototype.clearBit=function(e){return this.changeBit(e,$m)},e.prototype.flipBit=function(e){return this.changeBit(e,Gm)},e.prototype.add=function(e){var t=_v();return this.addTo(e,t),t},e.prototype.subtract=function(e){var t=_v();return this.subTo(e,t),t},e.prototype.multiply=function(e){var t=_v();return this.multiplyTo(e,t),t},e.prototype.divide=function(e){var t=_v();return this.divRemTo(e,t,null),t},e.prototype.remainder=function(e){var t=_v();return this.divRemTo(e,null,t),t},e.prototype.divideAndRemainder=function(e){var t=_v(),n=_v();return this.divRemTo(e,t,n),[t,n]},e.prototype.modPow=function(e,t){var n,r,i=e.bitLength(),o=Mv(1);if(i<=0)return o;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new yv(t):t.isEven()?new wv(t):new bv(t);var a=[],s=3,l=n-1,c=(1<<n)-1;if(a[1]=r.convert(this),n>1){var u=_v();for(r.sqrTo(a[1],u);s<=c;)a[s]=_v(),r.mulTo(u,a[s-2],a[s]),s+=2}var d,h,f=e.t-1,p=!0,g=_v();for(i=Ov(e[f])-1;f>=0;){for(i>=l?d=e[f]>>i-l&c:(d=(e[f]&(1<<i+1)-1)<<l-i,f>0&&(d|=e[f-1]>>this.DB+i-l)),s=n;0==(1&d);)d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--f),p)a[d].copyTo(o),p=!1;else{for(;s>1;)r.sqrTo(o,g),r.sqrTo(g,o),s-=2;s>0?r.sqrTo(o,g):(h=o,o=g,g=h),r.mulTo(g,a[d],o)}for(;f>=0&&0==(e[f]&1<<i);)r.sqrTo(o,g),h=o,o=g,g=h,--i<0&&(i=this.DB-1,--f)}return r.revert(o)},e.prototype.modInverse=function(t){var n=t.isEven();if(this.isEven()&&n||0==t.signum())return e.ZERO;for(var r=t.clone(),i=this.clone(),o=Mv(1),a=Mv(0),s=Mv(0),l=Mv(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&l.isEven()||(s.addTo(this,s),l.subTo(t,l)),s.rShiftTo(1,s)):l.isEven()||l.subTo(t,l),l.rShiftTo(1,l);r.compareTo(i)>=0?(r.subTo(i,r),n&&o.subTo(s,o),a.subTo(l,a)):(i.subTo(r,i),n&&s.subTo(o,s),l.subTo(a,l))}return 0!=i.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new vv)},e.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(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,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 o>0&&n.lShiftTo(o,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=pv[pv.length-1]){for(t=0;t<pv.length;++t)if(n[0]==pv[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<pv.length;){for(var r=pv[t],i=t+1;i<pv.length&&r<gv;)r*=pv[i++];for(r=n.modInt(r);t<i;)if(r%pv[t++]==0)return!1}return n.millerRabin(e)},e.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},e.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},e.prototype.fromString=function(t,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(t,n);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&+t[i]:Tv(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-a)-1)<<a,this[this.t++]=s>>this.DB-a):this[this.t-1]|=s<<a,(a+=r)>=this.DB&&(a-=this.DB))}8==r&&0!=(128&+t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&e.ZERO.subTo(this,this)},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=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},e.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},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.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,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},e.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()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.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()},e.prototype.divRemTo=function(t,n,r){var i=t.abs();if(!(i.t<=0)){var o=this.abs();if(o.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=_v());var a=_v(),s=this.s,l=t.s,c=this.DB-Ov(i[i.t-1]);c>0?(i.lShiftTo(c,a),o.lShiftTo(c,r)):(i.copyTo(a),o.copyTo(r));var u=a.t,d=a[u-1];if(0!=d){var h=d*(1<<this.F1)+(u>1?a[u-2]>>this.F2:0),f=this.FV/h,p=(1<<this.F1)/h,g=1<<this.F2,m=r.t,v=m-u,y=null==n?_v():n;for(a.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),e.ONE.dlShiftTo(u,y),y.subTo(a,a);a.t<u;)a[a.t++]=0;for(;--v>=0;){var b=r[--m]==d?this.DM:Math.floor(r[m]*f+(r[m-1]+g)*p);if((r[m]+=a.am(0,b,r,v,0,u))<b)for(a.dlShiftTo(v,y),r.subTo(y,r);r[m]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(u,n),s!=l&&e.ZERO.subTo(n,n)),r.t=u,r.clamp(),c>0&&r.rShiftTo(c,r),s<0&&e.ZERO.subTo(r,r)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(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},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=_v(),i=_v(),o=n.convert(this),a=Ov(t)-1;for(o.copyTo(r);--a>=0;)if(n.sqrTo(r,i),(t&1<<a)>0)n.mulTo(i,o,r);else{var s=r;r=i,i=s}return n.revert(r)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=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),r=Mv(n),i=_v(),o=_v(),a="";for(this.divRemTo(r,i,o);i.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,i.divRemTo(r,i,o);return o.intValue().toString(e)+a},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),o=!1,a=0,s=0,l=0;l<t.length;++l){var c=Tv(t,l);c<0?"-"==t.charAt(l)&&0==this.signum()&&(o=!0):(s=n*s+c,++a>=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(n,a)),this.dAddOffset(s,0)),o&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,r){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Wm,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var i=[],o=7&t;i.length=1+(t>>3),n.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},e.prototype.bitwiseTo=function(e,t,n){var r,i,o=Math.min(e.t,this.t);for(r=0;r<o;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=o;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=o;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},e.prototype.changeBit=function(t,n){var r=e.ONE.shiftLeft(t);return this.bitwiseTo(r,n,r),r},e.prototype.addTo=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()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.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]}},e.prototype.multiplyLowerTo=function(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(i=Math.min(e.t,t);r<i;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},e.prototype.multiplyUpperTo=function(e,t,n){--t;var r=n.t=this.t+e.t-t;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)},e.prototype.modInt=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},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(t=t+1>>1)>pv.length&&(t=pv.length);for(var o=_v(),a=0;a<t;++a){o.fromInt(pv[Math.floor(Math.random()*pv.length)]);var s=o.modPow(i,this);if(0!=s.compareTo(e.ONE)&&0!=s.compareTo(n)){for(var l=1;l++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(e.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},e.prototype.square=function(){var e=_v();return this.squareTo(e),e},e.prototype.gcda=function(e,t){var n=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var o=n.getLowestSetBit(),a=r.getLowestSetBit();if(a<0)t(n);else{o<a&&(a=o),a>0&&(n.rShiftTo(a,n),r.rShiftTo(a,r));var s=function(){(o=n.getLowestSetBit())>0&&n.rShiftTo(o,n),(o=r.getLowestSetBit())>0&&r.rShiftTo(o,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(s,0):(a>0&&r.lShiftTo(a,r),setTimeout((function(){t(r)}),0))};setTimeout(s,10)}},e.prototype.fromNumberAsync=function(t,n,r,i){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),Wm,this),this.isEven()&&this.dAddOffset(1,0);var o=this,a=function(){o.dAddOffset(2,0),o.bitLength()>t&&o.subTo(e.ONE.shiftLeft(t-1),o),o.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(a,0)};setTimeout(a,0)}else{var s=[],l=7&t;s.length=1+(t>>3),n.nextBytes(s),l>0?s[0]&=(1<<l)-1:s[0]=0,this.fromString(s,256)}},e}(),vv=function(){function e(){}return e.prototype.convert=function(e){return e},e.prototype.revert=function(e){return e},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},e.prototype.sqrTo=function(e,t){e.squareTo(t)},e}(),yv=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),bv=function(){function e(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}return e.prototype.convert=function(e){var t=_v();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(mv.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=_v();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[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)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),wv=function(){function e(e){this.m=e,this.r2=_v(),this.q3=_v(),mv.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.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=_v();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.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)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function _v(){return new mv(null)}function xv(e,t){return new mv(e,t)}var Ev="undefined"!=typeof navigator;Ev&&"Microsoft Internet Explorer"==navigator.appName?(mv.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*a;i=((l=a*l+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i},uv=30):Ev&&"Netscape"!=navigator.appName?(mv.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},uv=26):(mv.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*a;i=((l=a*l+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i},uv=28),mv.prototype.DB=uv,mv.prototype.DM=(1<<uv)-1,mv.prototype.DV=1<<uv;mv.prototype.FV=Math.pow(2,52),mv.prototype.F1=52-uv,mv.prototype.F2=2*uv-52;var Cv,kv,Sv=[];for(Cv="0".charCodeAt(0),kv=0;kv<=9;++kv)Sv[Cv++]=kv;for(Cv="a".charCodeAt(0),kv=10;kv<36;++kv)Sv[Cv++]=kv;for(Cv="A".charCodeAt(0),kv=10;kv<36;++kv)Sv[Cv++]=kv;function Tv(e,t){var n=Sv[e.charCodeAt(t)];return null==n?-1:n}function Mv(e){var t=_v();return t.fromInt(e),t}function Ov(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}mv.ZERO=Mv(0),mv.ONE=Mv(1);var Lv=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.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},e.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]},e}();var Av,Dv,Nv=null;if(null==Nv){Nv=[],Dv=0;var Pv=void 0;if(window.crypto&&window.crypto.getRandomValues){var Iv=new Uint32Array(256);for(window.crypto.getRandomValues(Iv),Pv=0;Pv<Iv.length;++Pv)Nv[Dv++]=255&Iv[Pv]}var jv=0,Rv=function(e){if((jv=jv||0)>=256||Dv>=256)window.removeEventListener?window.removeEventListener("mousemove",Rv,!1):window.detachEvent&&window.detachEvent("onmousemove",Rv);else try{var t=e.x+e.y;Nv[Dv++]=255&t,jv+=1}catch(e){}};window.addEventListener?window.addEventListener("mousemove",Rv,!1):window.attachEvent&&window.attachEvent("onmousemove",Rv)}function Fv(){if(null==Av){for(Av=new Lv;Dv<256;){var e=Math.floor(65536*Math.random());Nv[Dv++]=255&e}for(Av.init(Nv),Dv=0;Dv<Nv.length;++Dv)Nv[Dv]=0;Dv=0}return Av.next()}var zv=function(){function e(){}return e.prototype.nextBytes=function(e){for(var t=0;t<e.length;++t)e[t]=Fv()},e}();var Yv=function(){function e(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return e.prototype.doPublic=function(e){return e.modPowInt(this.e,this.n)},e.prototype.doPrivate=function(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);for(var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);t.compareTo(n)<0;)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},e.prototype.setPublic=function(e,t){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=xv(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=function(e,t){if(t<e.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=e.length-1;r>=0&&t>0;){var i=e.charCodeAt(r--);i<128?n[--t]=i:i>127&&i<2048?(n[--t]=63&i|128,n[--t]=i>>6|192):(n[--t]=63&i|128,n[--t]=i>>6&63|128,n[--t]=i>>12|224)}n[--t]=0;for(var o=new zv,a=[];t>2;){for(a[0]=0;0==a[0];)o.nextBytes(a);n[--t]=a[0]}return n[--t]=2,n[--t]=0,new mv(n)}(e,t);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),o=i.length,a=0;a<2*t-o;a++)i="0"+i;return i},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=xv(e,16),this.e=parseInt(t,16),this.d=xv(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,r,i,o,a,s){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=xv(e,16),this.e=parseInt(t,16),this.d=xv(n,16),this.p=xv(r,16),this.q=xv(i,16),this.dmp1=xv(o,16),this.dmq1=xv(a,16),this.coeff=xv(s,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new zv,r=e>>1;this.e=parseInt(t,16);for(var i=new mv(t,16);;){for(;this.p=new mv(e-r,1,n),0!=this.p.subtract(mv.ONE).gcd(i).compareTo(mv.ONE)||!this.p.isProbablePrime(10););for(;this.q=new mv(r,1,n),0!=this.q.subtract(mv.ONE).gcd(i).compareTo(mv.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var a=this.p.subtract(mv.ONE),s=this.q.subtract(mv.ONE),l=a.multiply(s);if(0==l.gcd(i).compareTo(mv.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(l),this.dmp1=this.d.mod(a),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=xv(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){var n=e.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=t-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var o=255&n[r];o<128?i+=String.fromCharCode(o):o>191&&o<224?(i+=String.fromCharCode((31&o)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&o)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var r=new zv,i=e>>1;this.e=parseInt(t,16);var o=new mv(t,16),a=this,s=function(){var t=function(){if(a.p.compareTo(a.q)<=0){var e=a.p;a.p=a.q,a.q=e}var t=a.p.subtract(mv.ONE),r=a.q.subtract(mv.ONE),i=t.multiply(r);0==i.gcd(o).compareTo(mv.ONE)?(a.n=a.p.multiply(a.q),a.d=o.modInverse(i),a.dmp1=a.d.mod(t),a.dmq1=a.d.mod(r),a.coeff=a.q.modInverse(a.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},l=function(){a.q=_v(),a.q.fromNumberAsync(i,1,r,(function(){a.q.subtract(mv.ONE).gcda(o,(function(e){0==e.compareTo(mv.ONE)&&a.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){a.p=_v(),a.p.fromNumberAsync(e-i,1,r,(function(){a.p.subtract(mv.ONE).gcda(o,(function(e){0==e.compareTo(mv.ONE)&&a.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(s,0)},e.prototype.sign=function(e,t,n){var r=function(e,t){if(t<e.length+22)return console.error("Message too long for RSA"),null;for(var n=t-e.length-6,r="",i=0;i<n;i+=2)r+="ff";return xv("0001"+r+"00"+e,16)}((Bv[n]||"")+t(e).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var o=i.toString(16);return 0==(1&o.length)?o:"0"+o},e.prototype.verify=function(e,t,n){var r=xv(t,16),i=this.doPublic(r);if(null==i)return null;var o=function(e){for(var t in Bv)if(Bv.hasOwnProperty(t)){var n=Bv[t],r=n.length;if(e.substr(0,r)==n)return e.substr(r)}return e}(i.toString(16).replace(/^1f+00/,""));return o==n(e).toString()},e}();var Bv={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var Hv={};Hv.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var i;for(i in n)e.prototype[i]=n[i];var o=function(){},a=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(o=function(e,t){for(i=0;i<a.length;i+=1){var n=a[i],r=t[n];"function"==typeof r&&r!=Object.prototype[n]&&(e[n]=r)}})}catch(e){}o(e.prototype,n)}}};var qv={};void 0!==qv.asn1&&qv.asn1||(qv.asn1={}),qv.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if("-"!=t.substr(0,1))t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var n=t.substr(1).length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";t=new mv(r,16).xor(e).add(mv.ONE).toString(16).replace(/^-/,"")}return t},this.getPEMStringFromHex=function(e,t){return hextopem(e,t)},this.newObject=function(e){var t=qv.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERBitString,o=t.DEROctetString,a=t.DERNull,s=t.DERObjectIdentifier,l=t.DEREnumerated,c=t.DERUTF8String,u=t.DERNumericString,d=t.DERPrintableString,h=t.DERTeletexString,f=t.DERIA5String,p=t.DERUTCTime,g=t.DERGeneralizedTime,m=t.DERSequence,v=t.DERSet,y=t.DERTaggedObject,b=t.ASN1Util.newObject,w=Object.keys(e);if(1!=w.length)throw"key of param shall be only one.";var _=w[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+_+":"))throw"undefined key: "+_;if("bool"==_)return new n(e[_]);if("int"==_)return new r(e[_]);if("bitstr"==_)return new i(e[_]);if("octstr"==_)return new o(e[_]);if("null"==_)return new a(e[_]);if("oid"==_)return new s(e[_]);if("enum"==_)return new l(e[_]);if("utf8str"==_)return new c(e[_]);if("numstr"==_)return new u(e[_]);if("prnstr"==_)return new d(e[_]);if("telstr"==_)return new h(e[_]);if("ia5str"==_)return new f(e[_]);if("utctime"==_)return new p(e[_]);if("gentime"==_)return new g(e[_]);if("seq"==_){for(var x=e[_],E=[],C=0;C<x.length;C++){var k=b(x[C]);E.push(k)}return new m({array:E})}if("set"==_){for(x=e[_],E=[],C=0;C<x.length;C++){k=b(x[C]);E.push(k)}return new v({array:E})}if("tag"==_){var S=e[_];if("[object Array]"===Object.prototype.toString.call(S)&&3==S.length){var T=b(S[2]);return new y({tag:S[0],explicit:S[1],obj:T})}var M={};if(void 0!==S.explicit&&(M.explicit=S.explicit),void 0!==S.tag&&(M.tag=S.tag),void 0===S.obj)throw"obj shall be specified for 'tag'.";return M.obj=b(S.obj),new y(M)}},this.jsonToASN1HEX=function(e){return this.newObject(e).getEncodedHex()}},qv.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=(t=Math.floor(n/40)+"."+n%40,""),i=2;i<e.length;i+=2){var o=("00000000"+parseInt(e.substr(i,2),16).toString(2)).slice(-8);if(r+=o.substr(1,7),"0"==o.substr(0,1))t=t+"."+new mv(r,2).toString(10),r=""}return t},qv.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new mv(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);return r},qv.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var e=this.hV.length/2,t=e.toString(16);if(t.length%2==1&&(t="0"+t),e<128)return t;var n=t.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},qv.asn1.DERAbstractString=function(e){qv.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},Hv.lang.extend(qv.asn1.DERAbstractString,qv.asn1.ASN1Object),qv.asn1.DERAbstractTime=function(e){qv.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),o=String(i.getFullYear());"utc"==t&&(o=o.substr(2,2));var a=o+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var s=i.getMilliseconds();if(0!=s){var l=r(String(s),3);a=a+"."+(l=l.replace(/[0]+$/,""))}}return a+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,r,i,o){var a=new Date(Date.UTC(e,t-1,n,r,i,o,0));this.setByDate(a)},this.getFreshValueHex=function(){return this.hV}},Hv.lang.extend(qv.asn1.DERAbstractTime,qv.asn1.ASN1Object),qv.asn1.DERAbstractStructured=function(e){qv.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},Hv.lang.extend(qv.asn1.DERAbstractStructured,qv.asn1.ASN1Object),qv.asn1.DERBoolean=function(){qv.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Hv.lang.extend(qv.asn1.DERBoolean,qv.asn1.ASN1Object),qv.asn1.DERInteger=function(e){qv.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=qv.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new mv(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},Hv.lang.extend(qv.asn1.DERInteger,qv.asn1.ASN1Object),qv.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=qv.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}qv.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){var t=8-(e=e.replace(/0+$/,"")).length%8;8==t&&(t=0);for(var n=0;n<=t;n++)e+="0";var r="";for(n=0;n<e.length-1;n+=8){var i=e.substr(n,8),o=parseInt(i,2).toString(16);1==o.length&&(o="0"+o),r+=o}this.hTLV=null,this.isModified=!0,this.hV="0"+t+r},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):void 0!==e.hex?this.setHexValueIncludingUnusedBits(e.hex):void 0!==e.bin?this.setByBinaryString(e.bin):void 0!==e.array&&this.setByBooleanArray(e.array))},Hv.lang.extend(qv.asn1.DERBitString,qv.asn1.ASN1Object),qv.asn1.DEROctetString=function(e){if(void 0!==e&&void 0!==e.obj){var t=qv.asn1.ASN1Util.newObject(e.obj);e.hex=t.getEncodedHex()}qv.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Hv.lang.extend(qv.asn1.DEROctetString,qv.asn1.DERAbstractString),qv.asn1.DERNull=function(){qv.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Hv.lang.extend(qv.asn1.DERNull,qv.asn1.ASN1Object),qv.asn1.DERObjectIdentifier=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new mv(e,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var o="",a=0;a<i;a++)o+="0";r=o+r;for(a=0;a<r.length-1;a+=7){var s=r.substr(a,7);a!=r.length-7&&(s="1"+s),n+=t(parseInt(s,2))}return n};qv.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),o=40*parseInt(i[0])+parseInt(i[1]);r+=t(o),i.splice(0,2);for(var a=0;a<i.length;a++)r+=n(i[a]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(e){var t=qv.asn1.x509.OID.name2oid(e);if(""===t)throw"DERObjectIdentifier oidName undefined: "+e;this.setValueOidString(t)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e):void 0!==e.oid?this.setValueOidString(e.oid):void 0!==e.hex?this.setValueHex(e.hex):void 0!==e.name&&this.setValueName(e.name))},Hv.lang.extend(qv.asn1.DERObjectIdentifier,qv.asn1.ASN1Object),qv.asn1.DEREnumerated=function(e){qv.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=qv.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new mv(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},Hv.lang.extend(qv.asn1.DEREnumerated,qv.asn1.ASN1Object),qv.asn1.DERUTF8String=function(e){qv.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Hv.lang.extend(qv.asn1.DERUTF8String,qv.asn1.DERAbstractString),qv.asn1.DERNumericString=function(e){qv.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Hv.lang.extend(qv.asn1.DERNumericString,qv.asn1.DERAbstractString),qv.asn1.DERPrintableString=function(e){qv.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Hv.lang.extend(qv.asn1.DERPrintableString,qv.asn1.DERAbstractString),qv.asn1.DERTeletexString=function(e){qv.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Hv.lang.extend(qv.asn1.DERTeletexString,qv.asn1.DERAbstractString),qv.asn1.DERIA5String=function(e){qv.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Hv.lang.extend(qv.asn1.DERIA5String,qv.asn1.DERAbstractString),qv.asn1.DERUTCTime=function(e){qv.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{12}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date))},Hv.lang.extend(qv.asn1.DERUTCTime,qv.asn1.DERAbstractTime),qv.asn1.DERGeneralizedTime=function(e){qv.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.withMillis=!1,this.setByDate=function(e){this.hTLV=null,this.isModified=!0,this.date=e,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==e&&(void 0!==e.str?this.setString(e.str):"string"==typeof e&&e.match(/^[0-9]{14}Z$/)?this.setString(e):void 0!==e.hex?this.setStringHex(e.hex):void 0!==e.date&&this.setByDate(e.date),!0===e.millis&&(this.withMillis=!0))},Hv.lang.extend(qv.asn1.DERGeneralizedTime,qv.asn1.DERAbstractTime),qv.asn1.DERSequence=function(e){qv.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){e+=this.asn1Array[t].getEncodedHex()}return this.hV=e,this.hV}},Hv.lang.extend(qv.asn1.DERSequence,qv.asn1.DERAbstractStructured),qv.asn1.DERSet=function(e){qv.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.getEncodedHex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},void 0!==e&&void 0!==e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},Hv.lang.extend(qv.asn1.DERSet,qv.asn1.DERAbstractStructured),qv.asn1.DERTaggedObject=function(e){qv.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(e,t,n){this.hT=t,this.isExplicit=e,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,t),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.tag&&(this.hT=e.tag),void 0!==e.explicit&&(this.isExplicit=e.explicit),void 0!==e.obj&&(this.asn1Object=e.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},Hv.lang.extend(qv.asn1.DERTaggedObject,qv.asn1.ASN1Object);var Uv=function(){var e=function(t,n){return e=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])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vv=function(e){function t(n){var r=e.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(t.hasPrivateKeyProperty(n)||t.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Uv(t,e),t.prototype.parseKey=function(e){try{var t=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e)?rv(e):iv.unarmor(e),i=hv.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){t=i.sub[1].getHexStringValue(),this.n=xv(t,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var o=i.sub[3].getHexStringValue();this.d=xv(o,16);var a=i.sub[4].getHexStringValue();this.p=xv(a,16);var s=i.sub[5].getHexStringValue();this.q=xv(s,16);var l=i.sub[6].getHexStringValue();this.dmp1=xv(l,16);var c=i.sub[7].getHexStringValue();this.dmq1=xv(c,16);var u=i.sub[8].getHexStringValue();this.coeff=xv(u,16)}else{if(2!==i.sub.length)return!1;var d=i.sub[1].sub[0];t=d.sub[0].getHexStringValue(),this.n=xv(t,16),n=d.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(e){return!1}},t.prototype.getPrivateBaseKey=function(){var e={array:[new qv.asn1.DERInteger({int:0}),new qv.asn1.DERInteger({bigint:this.n}),new qv.asn1.DERInteger({int:this.e}),new qv.asn1.DERInteger({bigint:this.d}),new qv.asn1.DERInteger({bigint:this.p}),new qv.asn1.DERInteger({bigint:this.q}),new qv.asn1.DERInteger({bigint:this.dmp1}),new qv.asn1.DERInteger({bigint:this.dmq1}),new qv.asn1.DERInteger({bigint:this.coeff})]};return new qv.asn1.DERSequence(e).getEncodedHex()},t.prototype.getPrivateBaseKeyB64=function(){return ev(this.getPrivateBaseKey())},t.prototype.getPublicBaseKey=function(){var e=new qv.asn1.DERSequence({array:[new qv.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new qv.asn1.DERNull]}),t=new qv.asn1.DERSequence({array:[new qv.asn1.DERInteger({bigint:this.n}),new qv.asn1.DERInteger({int:this.e})]}),n=new qv.asn1.DERBitString({hex:"00"+t.getEncodedHex()});return new qv.asn1.DERSequence({array:[e,n]}).getEncodedHex()},t.prototype.getPublicBaseKeyB64=function(){return ev(this.getPublicBaseKey())},t.wordwrap=function(e,t){if(!e)return e;var n="(.{1,"+(t=t||64)+"})( +|$\n?)|(.{1,"+t+"})";return e.match(RegExp(n,"g")).join("\n")},t.prototype.getPrivateKey=function(){var e="-----BEGIN RSA PRIVATE KEY-----\n";return e+=t.wordwrap(this.getPrivateBaseKeyB64())+"\n",e+="-----END RSA PRIVATE KEY-----"},t.prototype.getPublicKey=function(){var e="-----BEGIN PUBLIC KEY-----\n";return e+=t.wordwrap(this.getPublicBaseKeyB64())+"\n",e+="-----END PUBLIC KEY-----"},t.hasPublicKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")},t.hasPrivateKeyProperty=function(e){return(e=e||{}).hasOwnProperty("n")&&e.hasOwnProperty("e")&&e.hasOwnProperty("d")&&e.hasOwnProperty("p")&&e.hasOwnProperty("q")&&e.hasOwnProperty("dmp1")&&e.hasOwnProperty("dmq1")&&e.hasOwnProperty("coeff")},t.prototype.parsePropertiesFrom=function(e){this.n=e.n,this.e=e.e,e.hasOwnProperty("d")&&(this.d=e.d,this.p=e.p,this.q=e.q,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.coeff=e.coeff)},t}(Yv),Wv="3.2.1",Gv=function(){function e(e){void 0===e&&(e={}),e=e||{},this.default_key_size=e.default_key_size?parseInt(e.default_key_size,10):1024,this.default_public_exponent=e.default_public_exponent||"010001",this.log=e.log||!1,this.key=null}return e.prototype.setKey=function(e){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Vv(e)},e.prototype.setPrivateKey=function(e){this.setKey(e)},e.prototype.setPublicKey=function(e){this.setKey(e)},e.prototype.decrypt=function(e){try{return this.getKey().decrypt(tv(e))}catch(e){return!1}},e.prototype.encrypt=function(e){try{return ev(this.getKey().encrypt(e))}catch(e){return!1}},e.prototype.sign=function(e,t,n){try{return ev(this.getKey().sign(e,t,n))}catch(e){return!1}},e.prototype.verify=function(e,t,n){try{return this.getKey().verify(e,tv(t),n)}catch(e){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new Vv,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=Wv,e}(),$v=Gv,Kv=__webpack_require__(10949),Jv=__webpack_require__.n(Kv),Xv=__webpack_require__(93162),Zv=__webpack_require__(29306),Qv=__webpack_require__.n(Zv),ey=__webpack_require__(80129),ty=__webpack_require__.n(ey);function ny(e){return location.origin+location.pathname+"#"+e}function ry(e){var t=[];return e.dataflow&&t.push(pg.fdd),e.impact&&t.push(pg.fddi,pg.fdr,pg.frd),e.isJoin&&(t=[pg.join]),t.join(",")}function iy(e){var t,n,r,i=e.split(",");if(1===i.length)if("fdd"===i[0])t=!0,n=!1,r=!1;else{if("join"!==i[0])throw new Error("if error");t=!1,n=!1,r=!0}else if(3===i.length)t=!1,n=!0,r=!1;else{if(4!==i.length)throw new Error("if error");t=!0,n=!0,r=!1}return{dataflow:t,impact:n,visualizeJoin:r}}function oy(e){return void 0!==fg[e]?"dbv"+e:(console.log("toDbvendor invalid value ".concat(e,".use default dbvendor dbvoracle.")),hg.dbvoracle)}function ay(e){return void 0!==hg[e]?e.slice(3):(console.log("toVendor invalid value ".concat(e,". use default vendor oracle.")),fg.oracle)}function sy(e,t){return parseFloat(e.toFixed(t))}function ly(e,t){return 0===t?0:e/t}function cy(e,t,n){return Math.max(t,Math.min(n,e))}function uy(e){var t=new $v({});t.setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMlCEO3vWf8zjKqRMVqb0zBQQCRaWMdQHGAwh8mSz7yHNTsAN+s52q07ujoSUstrsbF2wjE5t+quBL6DIR6/rVECAwEAAQ==");var n=t.encrypt(e);return n||e}function dy(e,t){var n=Jv()(e,{type:"space"}),r=new Blob([n],{type:"text/plain;charset=utf-8"});(0,Xv.saveAs)(r,t)}function hy(e,t){return fy.apply(this,arguments)}function fy(){return(fy=g()(v().mark((function e(t,n){var r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qv().toBlob(t);case 2:r=e.sent,(0,Xv.saveAs)(r,n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function py(e,t){if("DEFAULT"===t)return t;switch(e){case"dbvbigquery":case"dbvcouchbase":case"dbvhive":case"dbvimpala":case"dbvmysql":return(t.indexOf("`")>=0?t.replace(/[`]/g,""):t).toUpperCase();case"dbvpostgresql":return t.indexOf('"')>=0?t.replace(/"/g,""):t.toLowerCase();case"dbvmssql":return(t.indexOf('"')>=0?t.replace(/"/g,""):t.indexOf("[")>=0?t.replace(/\[/g,"").replace(/\]/g,""):t).toUpperCase();default:return t.indexOf('"')>=0?t.replace(/"/g,""):t.toUpperCase()}}function gy(e){return"DEFAULT"===e?"":e}function my(e){var t;return e?((null===(t=e[0])||void 0===t?void 0:t.x)||0)-1:0}var vy=__webpack_require__(63038),yy=__webpack_require__.n(vy),by=__webpack_require__(319),wy=__webpack_require__.n(by),_y=__webpack_require__(70681),xy=__webpack_require__.n(_y);function Ey(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 Cy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ey(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ey(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ky(e){return{map:function(t){return e?e.all.map((function(n,r){return t(null==e?void 0:e.map[n],r)})):[]},find:function(t){if(e&&t)return e.map[t.id]},query:function(t){if(!e||!t)throw new Error("undefined");var n=e.map[t.id];if(!n)throw new Error("undefined");return n},findById:function(t){if(e&&t)return e.map[t]},findByIds:function(t){if(!e||!t)return[];var n=[];return t.forEach((function(t){if(!e.map[t])throw new Error("not found");n.push(e.map[t])})),n},queryById:function(t){if(!e||!t)throw new Error("undefined");var n=e.map[t];if(!n)throw new Error("undefined");return n},filter:function(t){if(!e)return[];var n=[];return e.all.forEach((function(r,i){t(e.map[r],i)&&n.push(e.map[r])})),n},push:function(t){if(e){if(e.map[t.id])throw new Error("duplicate value id ".concat(t.id));e.all.push(t.id),e.map[t.id]=t}},concat:function(t){e&&(e.all=e.all.concat(t.all),e.map=Cy(Cy({},e.map),t.map))},forEach:function(t){null==e||e.all.forEach((function(n,r){t(e.map[n],r)}))},sort:function(t){null==e||e.all.sort((function(n,r){return t(e.map[n],e.map[r])}))},insert:function(t,n){var r;e&&((r=e.all).splice.apply(r,[t,0].concat(wy()(n.map((function(e){return e.id}))))),n.forEach((function(t){e.map[t.id]=t})))},iterateByIds:function(t,n){e&&n&&t.forEach((function(t){if(!e.map[t])throw new Error("not found");null==n||n(e.map[t])}))}}}function Sy(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 Ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sy(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}ky.init=function(){return{all:[],map:{}}};var My=1,Oy={init:function(e){var t,n,r,i=null===(t=e.response)||void 0===t?void 0:t.data,o=Oy.initEmpty(e),a=[];null!==(n=e.metadataQueryGraph)&&void 0!==n&&n.requestSessionId&&(o.metadataQueryGraph={responseSessionId:o.sessionId},o.sessionId=null===(r=e.metadataQueryGraph)||void 0===r?void 0:r.requestSessionId);var s,l=Oy.dbo.init({dbobjs:null===(s=i.sqlflow)||void 0===s?void 0:s.dbobjs,dbvendor:o.dbvendor});o.explorer.expandKeys=l.expandKeys,o.explorer.tree=l.tree,o.dbo=l.flat;var c,u,d=-1;if(null===(c=i.graph)||void 0===c||c.elements.tables.forEach((function(e){Math.abs(e.y)>d&&(d=Math.abs(e.y))})),null===(u=i.graph)||void 0===u||u.elements.tables.forEach((function(e){var t=e.x+Qg.sqlflow.canvas.paddingLeft,n=e.y+Qg.sqlflow.canvas.paddingTop+d,r=Qg.sqlflow.canvas.graph.field.height*e.columns.length+Qg.sqlflow.canvas.graph.name.height,a={id:e.id,dboId:"",selectId:"",index:[0,0],title:"",titleFixWidth:"",type:"table",visible:!0,database:"",schema:"",height:{origin:r,calculate:r},width:{origin:e.width,calculate:e.width,max:e.width},left:{origin:t,calculate:t},top:{origin:n,calculate:n},fields:[],backwards:Oy.backwardsOrForwards.init(),forwards:Oy.backwardsOrForwards.init(),more:{},source:{refnum:0,edges:[]},target:{refnum:0,edges:[]},icon:0};if(o.layout&&(a.width={origin:160,calculate:160,max:160}),ky(o.graph).find(a))throw new Error("duplicate ".concat(a.type," id."));ky(o.graph).push(a),e.columns.forEach((function(t,n){var r,s,l,c,u={id:t.id,graphId:e.id,selectId:"",title:null!==(r=null===(s=i.graph)||void 0===s?void 0:s.tooltip[t.label.content])&&void 0!==r?r:t.label.content,titleFixWidth:null!==(l=null===(c=i.graph)||void 0===c?void 0:c.tooltip[t.label.content])&&void 0!==l?l:t.label.content,coordinates:[],visible:!0,pin:!1,highlight:!1,mouseover:!1,source:[],backwards:Oy.backwardsOrForwards.init(),target:[],forwards:Oy.backwardsOrForwards.init()};if(ky(o.field).find(u))throw new Error("duplicate field id ".concat(u.id,"."));a.fields.push(u.id),ky(o.field).push(u)})),o.selector.graphIds.push(a.id)})),i.graph){var h=function(){if(f.includes("::")){var e=ky(o.field).findById(f);if(e)i.graph.listIdMap[f].forEach((function(t){var n=ky(o.dbo).findById(t),r=ky(o.graph).findById(e.graphId);Oy.dbo.isColumn(n)&&(e.dboId=n.id,n.fieldId=e.id,n.graphId=null==r?void 0:r.id,2===n.coordinates.length&&e.coordinates.push(n.coordinates))}))}else{if(1!==i.graph.listIdMap[f].length)throw new Error("incorrect numbers");var t=i.graph.listIdMap[f][0],n=ky(o.dbo).findById(t),r=ky(o.graph).findById(f);if(!r)throw new Error("cannot find dbo of graph id '".concat(f,"' in listIdMap"));if(!n)throw new Error("cannot find dbo of id '".concat(t,"'"));r.dboId=t,r.title=Oy.dbo.getTableTitle(n),r.titleFixWidth=Oy.dbo.getTableTitle(n),r.type=n.type,r.database=n.database,r.schema=n.schema,n.graphId=r.id,["table","view"].includes(n.type)&&a.push(r.id)}};for(var f in i.graph.listIdMap)h()}if(e.visualize.type===yg.sessionSelectStreamByStep);else{var p,g,m;null===(p=i.graph)||void 0===p||p.elements.edges.forEach((function(e){var t={id:e.id,relationId:"",type:"fdd",visible:!0,pin:!1,highlight:!1,source:{fieldId:e.sourceId,graphId:"",port:""},target:{fieldId:e.targetId,graphId:"",port:""},svg:{text:{x:"",y:"",value:"",title:""},path:"",pathCX:"",pathCY:"",arrow:"",isDash:!1,isJoin:!1,isSelfJoin:!1},refnum:0};ky(o.edge).push(t);var n=ky(o.field).findById(e.sourceId),r=ky(o.field).findById(e.targetId);if(!n||!r)throw new Error("undefined");n.target.push({field:{id:e.targetId,edgeId:t.id}}),r.source.push({field:{id:e.sourceId,edgeId:t.id}}),t.source.graphId=n.graphId,t.target.graphId=r.graphId}));var v=0,y={},b={};null===(g=i.sqlflow)||void 0===g||g.relationships.forEach((function(e){b[e.id]=e,e.sources.forEach((function(t){var n={id:(++v).toString(),type:pg[e.type],source:{},target:{},effectType:e.effectType,clause:e.clause,joinType:e.joinType,condition:e.condition};if(n.source.table=t.parentName||"",n.source.column=t.column||"",n.source.columnId=t.id,n.source.transforms=t.transforms,n.target.table=e.target.parentName||"",n.target.column=e.target.column||"",t.parentId){var r=ky(o.dbo_deprecated.list).findById(t.parentId);r&&(n.source.db=r.database,n.source.schema=r.schema,n.source.table=r.name)}if(e.target.parentId){var i=ky(o.dbo_deprecated.list).findById(e.target.parentId);i&&(n.target.db=i.database,n.target.schema=i.schema,n.target.table=i.name)}ky(o.relations).push(n),y[e.id]=y[e.id]||[],y[e.id].push(v.toString())}))})),Object.keys((null===(m=i.graph)||void 0===m?void 0:m.relationshipIdMap)||{}).forEach((function(e){if(!i.graph)throw new Error("undefined");var t=ky(o.edge).findById(e);if(t){var n,r,a,s,l,c="";if(Array.isArray(null===(n=i.graph)||void 0===n?void 0:n.relationshipIdMap[e]))c=null===(a=i.graph)||void 0===a?void 0:a.relationshipIdMap[e][0],r=null===(s=i.graph)||void 0===s?void 0:s.relationshipIdMap[e][1];else r=null===(l=i.graph)||void 0===l?void 0:l.relationshipIdMap[e];var u=y[c]||[],d=ky(o.relations).findByIds(u),h=ky(o.field).findById(t.source.fieldId);if(h){var f=d.find((function(e){return e.source.columnId===h.dboId}));f&&(t.transform=f.source.transforms)}(Object.values(pg).includes(r)||r.includes("join:"))&&(t.type=r.includes("join:")?pg.join:r,t.svg.isDash=t.type!==pg.fdd,t.svg.isJoin=t.type===pg.join);var p=b[c];t.type===pg.join&&p&&(t.clause=p.clause,t.joinType=p.joinType,t.condition=p.condition)}}))}Oy.backwardsOrForwards.set(o);var w,_={};if(o.layout)ky(o.graph).forEach((function(e){var t=cg.get50CharWidth(e.title);e.fields.forEach((function(e){var n=ky(o.field).findById(e);n&&(t=Math.max(t,cg.get50CharWidth(n.title),160))})),e.width.calculate=t}));else{ky(o.graph).forEach((function(e){_[e.left.origin]?_[e.left.origin][e.top.origin]=e.id:_[e.left.origin]=tm()({},e.top.origin,e.id)}));var x=[],E=[];Object.keys(_).sort((function(e,t){return parseFloat(e)-parseFloat(t)})).forEach((function(e,t){var n=[];Object.keys(_[e]).sort((function(e,t){return parseFloat(e)-parseFloat(t)})).forEach((function(r,i){0!==i||o.leftTopGraphId||(o.leftTopGraphId=_[e][r]);var a=ky(o.graph).findById(_[e][r]);if(a){var s;n.push(_[e][r]);var l=Math.max(a.width.origin,cg.get50CharWidth(a.title));a.fields.forEach((function(e){var t=ky(o.field).findById(e);t&&(l=Math.max(l,cg.get50CharWidth(t.title)))})),a.width.calculate=l,E[t]=Math.max(null!==(s=E[t])&&void 0!==s?s:0,a.width.calculate),cg.getStringWidth(a.title)>a.width.calculate&&(a.titleFixWidth=a.title.slice(0,25)+"..."+a.title.slice(-25)),a.fields.forEach((function(e){var t=ky(o.field).findById(e);t&&cg.getStringWidth(t.title)>a.width.calculate&&(t.titleFixWidth=t.title.slice(0,25)+"..."+t.title.slice(-25))}))}})),x.push(n)}));var C=[];x.forEach((function(e,t){e.forEach((function(e){var n,r=ky(o.graph).findById(e);r&&(r.width.max=E[t],r.left.origin+=(r.width.max-r.width.calculate)/2,r.left.calculate=r.left.origin,0===t?C[t]=Math.max(null!==(n=C[t])&&void 0!==n?n:0,r.width.max-r.width.origin):(C[t]=C[t-1]+r.width.max-r.width.origin,r.left.origin+=C[t-1],r.left.calculate=r.left.origin))}))}))}if(ky(o.field).forEach((function(e){e.coordinates.forEach((function(t){if(0!==t.length)for(var n=t[0].x;n<=t[1].x;n++){void 0===o.token[t[0].x]&&(o.token[t[0].x]=[]);var r=o.token[t[0].x];t[0].x,t[1].x;for(var i=t[0].y;i<t[1].y;i++){void 0===r[i]&&(r[i]=[]),r[i].find((function(t){return t===e.id}))||r[i].push(e.id)}}}))})),null!==(w=o.visualize.setting)&&void 0!==w&&w.isJoin)o.text.columns=[{title:"id",dataIndex:"id",width:2},{title:"JoinTable1",dataIndex:"JoinTable1",width:10},{title:"JoinColumn1",dataIndex:"JoinColumn1",width:10},{title:"JoinTable2",dataIndex:"JoinTable2",width:10},{title:"JoinColumn2",dataIndex:"JoinColumn2",width:10},{title:"JoinType",dataIndex:"JoinType",width:10},{title:"JoinCondition",dataIndex:"JoinCondition",width:10},{title:"Clause",dataIndex:"Clause",width:10}],ky(o.edge).filter((function(e){return"join"===e.type})).forEach((function(e,t){var n={source:ky(o.field).findById(e.source.fieldId),target:ky(o.field).findById(e.target.fieldId)},r={source:ky(o.graph).findById(e.source.graphId),target:ky(o.graph).findById(e.target.graphId)};if(n.source&&n.target&&r.source&&r.target){var i={id:"",JoinTable1:r.source.title,JoinColumn1:n.source.title,JoinTable2:r.target.title,JoinColumn2:n.target.title,JoinType:e.joinType||"",JoinCondition:e.condition||"",Clause:e.clause||""};o.text.join.push(i),o.text.columns[1].width=Math.max(o.text.columns[1].width,i.JoinTable1.length),o.text.columns[2].width=Math.max(o.text.columns[2].width,i.JoinColumn1.length),o.text.columns[3].width=Math.max(o.text.columns[3].width,i.JoinTable2.length),o.text.columns[4].width=Math.max(o.text.columns[4].width,i.JoinColumn2.length),o.text.columns[5].width=Math.max(o.text.columns[5].width,i.JoinType.length),o.text.columns[6].width=Math.max(o.text.columns[6].width,i.JoinCondition.length),o.text.columns[7].width=Math.max(o.text.columns[7].width,i.Clause.length)}})),o.text.join.sort((function(e,t){return e.JoinTable1>t.JoinTable1?1:-1})),o.text.join.forEach((function(e,t){e.id=String(t+1),o.text.columns[0].width=Math.max(o.text.columns[0].width,e.id.length)}));else{o.text.columns=[{title:"id",dataIndex:"id",width:2},{title:"table",dataIndex:"table",width:10},{title:"column",dataIndex:"column",width:10}],ky(o.graph).findByIds(a).forEach((function(e){o.text.data.push({id:"",table:e.titleFixWidth,column:""})}));var k=o.text.data.length,S=0;ky(o.graph).findByIds(a).forEach((function(e){ky(o.field).findByIds(e.fields).forEach((function(t){S<k?(o.text.data[S].id=String(S+1),o.text.data[S].column=e.titleFixWidth+"."+t.title):o.text.data.push({id:String(S+1),table:"",column:e.titleFixWidth+"."+t.title}),o.text.columns[0].width=Math.max(o.text.columns[0].width,o.text.data[S].id.length),o.text.columns[1].width=Math.max(o.text.columns[1].width,o.text.data[S].table.length),o.text.columns[2].width=Math.max(o.text.columns[2].width,o.text.data[S].column.length),S++}))}))}var T=new Map;return o.error.messages.forEach((function(e){T.set(e.errorType,!0)})),o.error.type.list=Array.from(T.keys()),ky(o.graph).findByIds(o.selector.graphIds).forEach((function(e){var t=Math.ceil(e.title.length/25*300);o.selector.width=cy(t,o.selector.width,600)})),o},initEmpty:function(e){var t,n,r,i,o,a,s=null===(t=e.response)||void 0===t?void 0:t.data,l=(null==s||null===(n=s.sqlflow)||void 0===n||null===(r=n.dbobjs.servers)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.dbVendor)||e.request.dbvendor,c={id:String(My++),type:e.type||vg.sqlflow,sessionId:e.response.sessionId,dbvendor:l,vendor:ay(l),mode:e.response.data.mode,layout:e.layout,explorer:{tree:[],expandKeys:[]},dbo_deprecated:{list:ky.init(),type:Oy.util.getDefaultType((function(){return[]}))},dbo:ky.init(),column_deprecated:ky.init(),graph:ky.init(),field:ky.init(),edge:ky.init(),relations:ky.init(),token:[],stream:{nameIdMap:{},autoIncrementId:Oy.initAutoIncrementId()},text:{columns:[],data:[],join:[]},current:{pin:null,click:null},select:{list:ky.init(),type:{table:[],view:[],column:[]},current_deprecated:void 0,dbo:void 0,isBackForwardsOutOfRange:!1},canvas:{width:0,height:0,visible:!1},summary:{visible:!1},scale:{value:1,visible:!1},fail:{visible:!1},map:{visible:!1},error:{type:{list:[],select:[]},messages:(null===(o=e.response.data.sqlflow)||void 0===o||null===(a=o.errors)||void 0===a?void 0:a.map((function(e,t){return Ty(Ty({},e),{},{id:t})})))||[],coordinate:[],visible:!1,loading:!1,height:400,code:""},code:{sql:{index:0,token:[],file:{}},visible:!1,loading:!1,height:400,title:""},code2:{sql:{index:0,list:[]},visible:!1,loading:!1,height:400,title:""},request:e.request,response:e.response,visualize:e.visualize,leftTopGraphId:null,selector:{graphIds:[],width:300}};return c},initAutoIncrementId:function(){return{graphId:0,dboId:0,columnId:0,relationId:0}},stream:{init:function(e){return Oy.initEmpty(e)},add:function(e,t){var n,r,i,o=null===(n=t.response)||void 0===n?void 0:n.data,a=!(!0===t.init),s=Oy.dbo.init({dbobjs:null===(r=o.sqlflow)||void 0===r?void 0:r.dbobjs,dbvendor:t.dbvendor});null===(i=o.sqlflow)||void 0===i||i.relationships.forEach((function(n){var r=new Set;n.sources.forEach((function(i){if(i.id&&n.target.id&&i.parentId&&n.target.parentId){var o=i.id,a=n.target.id,l=i.parentId,c=n.target.parentId,u={id:(e.stream.autoIncrementId.relationId++).toString(),type:pg[n.type],source:{},target:{},effectType:n.effectType,clause:n.clause,joinType:n.joinType,condition:n.condition};u.source.table=i.parentName||"",u.source.column=i.column||"",u.target.table=n.target.parentName||"",u.target.column=n.target.column||"";var d=ky(s.flat).findById(l);if(!d)throw new Error("cannot find table dbo id '".concat(l,"'"));u.source.db=d.database,u.source.schema=d.schema,u.source.table=d.table,ky(e.dbo).findById(d.id)||r.add(d.id);var h=ky(s.flat).findById(c);if(!h)throw new Error("cannot find table dbo id '".concat(l,"'"));if(u.target.db=h.database,u.target.schema=h.schema,u.target.table=h.table,ky(e.dbo).findById(h.id)||r.add(h.id),ky(e.relations).push(u),ky(s.flat).findByIds(wy()(r)).forEach((function(t){ky(e.dbo).push(t);var n={id:t.id,dboId:t.id,selectId:"",index:[0,0],title:Oy.dbo.getTableTitle(t),titleFixWidth:Oy.dbo.getTableTitle(t),type:t.type,visible:!0,database:"",schema:"",height:{origin:0,calculate:0},width:{origin:0,calculate:0,max:0},left:{origin:0,calculate:0},top:{origin:0,calculate:0},fields:[],backwards:Oy.backwardsOrForwards.init(),forwards:Oy.backwardsOrForwards.init(),more:{exist:t.more,expand:!1},source:{refnum:0,edges:[]},target:{refnum:0,edges:[]},icon:0};ky(e.graph).push(n),t.children.forEach((function(t){if(Oy.dbo.isColumn(t)){var r={id:t.id,graphId:n.id,selectId:"",title:t.title,titleFixWidth:t.title,coordinates:[],visible:!0,pin:!1,highlight:!1,mouseover:!1,source:[],backwards:Oy.backwardsOrForwards.init(),target:[],forwards:Oy.backwardsOrForwards.init()};t.fieldId=r.id,ky(e.field).push(r),n.fields.push(r.id)}})),Oy.graph.util.setGraphWidthAndHeight(e,n)})),!ky(e.field).findByIds([o,a])||!ky(e.graph).findByIds([l,c]))throw new Error("cannot find relation");var f={id:u.id,relationId:u.id,type:"fdd",visible:!0,pin:!1,highlight:!1,source:{fieldId:o,graphId:l,port:""},target:{fieldId:a,graphId:c,port:""},svg:{text:{x:"",y:"",value:"",title:""},path:"",pathCX:"",pathCY:"",arrow:"",isDash:!1,isJoin:!1,isSelfJoin:!1},refnum:0,transform:u.source.transforms};ky(e.edge).push(f);var p=ky(e.field).findById(o),g=ky(e.field).findById(a),m=ky(e.graph).findById(l),v=ky(e.graph).findById(c);if(!(p&&g&&m&&v))throw new Error("cannot find field or graph");p.target.push({field:{id:a,edgeId:f.id}}),g.source.push({field:{id:o,edgeId:f.id}}),f.source.graphId=p.graphId,f.target.graphId=g.graphId,m.target.edges.push(f.id),v.source.edges.push(f.id),m.target.refnum++,v.source.refnum++,t.selectStream.direction===Og.up&&m.target.refnum>0&&(m.visible=!0,m.source.edges.length>0&&Oy.stream.toggle({sqlflow:e,graph:m,visible:!0,selectStream:t.selectStream})),t.selectStream.direction===Og.down&&v.source.refnum>0&&(v.visible=!0,v.target.edges.length>0&&Oy.stream.toggle({sqlflow:e,graph:v,visible:!0,selectStream:t.selectStream}))}}))})),ky(e.graph).forEach((function(e){0===e.source.refnum&&0===e.target.refnum&&(e.visible=!1)})),a&&Oy.backwardsOrForwards.clear(e),Oy.backwardsOrForwards.set(e)},toggle:function(e){var t=e.selectStream.direction===Og.up?"source":"target",n="source"===t?"target":"source",r=e.visible,i=function(e){return e.more.exist&&!1===e.more.expand};if(!r){for(var o=[e.graph];o.length;){var a=o.shift();if(!a)throw new Error("never");ky(e.sqlflow.edge).findByIds(a[t].edges).forEach((function(r){if(!1!==r.visible){r.visible=!1;var a=ky(e.sqlflow.graph).queryById(r[t].graphId);a[n].refnum--,0===a[n].refnum&&(a.visible=!1,i(a)||o.push(a))}}))}e.graph.more.expand=!1}else if(r){for(var s=[e.graph];s.length;){var l=s.shift();if(!l)throw new Error("never");ky(e.sqlflow.edge).findByIds(l[t].edges).forEach((function(r){if(!0!==r.visible){r.visible=!0;var o=ky(e.sqlflow.graph).queryById(r[t].graphId);o[n].refnum++,o[n].refnum>0&&(o.visible=!0,i(o)||s.push(o))}}))}e.graph.more.expand=!0}Oy.graph.util.setEdgesSVG(e.sqlflow)}},graph:{draw:function(e){if(e.visualize.type!==yg.sessionSelectStreamByStep){if(e.select.dbo){var t=e.select.dbo,n=ky(e.graph).findById(null==t?void 0:t.graphId);if(!n)throw new Error("cannot find graph");ky(e.field).forEach((function(e){return e.visible=!1})),ky(e.graph).forEach((function(e){return e.visible=!1})),ky(e.edge).forEach((function(e){return e.visible=!1}));var r=new(xy().graphlib.Graph);if(r.setGraph({rankdir:"LR",ranksep:100,nodesep:50,edgesep:1}),r.setDefaultEdgeLabel((function(){return{}})),Oy.dbo.isColumn(t)){ky(e.field).forEach((function(e){return e.visible=!1}));var i=ky(e.field).findById(t.fieldId);Oy.backwardsOrForwards.iterate({sqlflow:e,field:i,current:{field:function(e){e.visible=!0},graph:function(t){t.visible=!0,t.height.calculate=Oy.graph.util.getGraphHeight(e,t),r.setNode(t.id,{width:t.width.calculate,height:t.height.calculate})}},backforwards:{field:function(e){e.visible=!0},graph:function(t){t.visible=!0,t.height.calculate=Oy.graph.util.getGraphHeight(e,t),r.setNode(t.id,{width:t.width.calculate,height:t.height.calculate})},edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.visible=!0,r.setEdge(e.source.graphId,e.target.graphId)}))}})}else Oy.backwardsOrForwards.iterate({sqlflow:e,graph:n,current:{graph:function(t){t.visible=!0,ky(e.field).iterateByIds(t.fields,(function(e){e.visible=!0})),t.height.calculate=Oy.graph.util.getGraphHeight(e,t),r.setNode(t.id,{width:t.width.calculate,height:t.height.calculate})}},backforwards:{graph:function(t){t.visible=!0,ky(e.field).iterateByIds(t.fields,(function(e){e.visible=!0})),t.height.calculate=Oy.graph.util.getGraphHeight(e,t),r.setNode(t.id,{width:t.width.calculate,height:t.height.calculate})},edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.visible=!0,r.setEdge(e.source.graphId,e.target.graphId)}))}});xy().layout(r),r.nodes().forEach((function(t){var n=r.node(t),i=ky(e.graph).findById(t);i&&(i.left.calculate=n.x-i.width.calculate/2+Qg.sqlflow.canvas.paddingLeft,i.top.calculate=n.y-i.height.calculate/2+Qg.sqlflow.canvas.paddingTop)}))}else ky(e.field).forEach((function(e){e.visible=!0})),ky(e.graph).forEach((function(t){t.visible=!0,t.top.calculate=t.top.origin,t.left.calculate=t.left.origin,t.height.calculate=Oy.graph.util.getGraphHeight(e,t)})),ky(e.edge).forEach((function(e){e.visible=!0}));Oy.field.pin.cancel(e),e.layout?Oy.graph.layout(e):(Oy.graph.util.setEdgesSVG(e),Oy.graph.util.setCanvasWidthAndHeight(e,250),Oy.util.setWidgetVisibility(e))}else Oy.graph.layout(e)},layout:function(e){var t=new(xy().graphlib.Graph);t.setGraph({rankdir:"LR",ranksep:100,nodesep:20,edgesep:1}),t.setDefaultEdgeLabel((function(){return{}})),ky(e.graph).forEach((function(e){t.setNode(e.id,{width:e.width.calculate,height:e.height.calculate})})),ky(e.edge).forEach((function(e){t.setEdge(e.source.graphId,e.target.graphId)})),xy().layout(t),t.nodes().forEach((function(n){var r=t.node(n),i=ky(e.graph).findById(n);i&&(i.left.calculate=r.x-i.width.calculate/2,i.top.calculate=r.y-i.height.calculate/2)})),Oy.graph.util.setEdgesSVG(e),Oy.graph.util.setCanvasWidthAndHeight(e,0),Oy.util.setWidgetVisibility(e)},util:{setEdgesSVG:function(e){ky(e.edge).forEach((function(t){t.visible&&Oy.graph.util.setEdgeSVG(e,t)}))},setEdgeSVG:function(e,t){var n=Oy.graph.util.getEdgeSVGPosition(e,t),r={path:"",arrow:"",text:{x:"",y:"",value:"",title:""}},i=n.endX,o=n.startX,a=n.startH,s=n.startY,l=n.middleX,c=n.endY,u=n.endAt;if(t.type!==pg.join&&e.type!==vg.er){r.arrow="".concat(i,",").concat(c," ").concat(i-10,",").concat(c-3.5," ").concat(i-10,",").concat(c+3.5),i-=10}if("left"===u){var d=o+50,h=s,f=d,p=s+a+(t.svg.isSelfJoin?-5:25),g=i-30,m=c-10,v=p;r.path="M".concat(o,",").concat(s," C").concat(d,",").concat(h," ").concat(f,",").concat(p," ").concat(l,",").concat(v," S").concat(g,",").concat(m," ").concat(i,",").concat(c)}else{r.path="M".concat(o,",").concat(s," C").concat(l,",").concat(s," ").concat(l,",").concat(c," ").concat(i,",").concat(c),t.x6_segmanet=!0;var y=function(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]},b=y([o,s],[l,s],.5),w=y([l,c],[i,c],.5),_=y(b,w,.5);t.svg.pathCX=_[0].toFixed(10),t.svg.pathCY=_[1].toFixed(10)}if("join"===t.type){var x,E=ky(e.field).findById(t.target.fieldId),C=null===(x=ky(e.graph).findById(null==E?void 0:E.graphId))||void 0===x?void 0:x.title,k=o+(i-o)/2-60,S=t.joinType+" join "+C+" "+t.clause+" "+t.condition,T=S.substr(0,15)+"...";if("right"===u){var M=s+(c-s)/2-7;r.text={x:k.toString(),y:M.toString(),value:T,title:S}}else{var O=s+a+(t.svg.isSelfJoin?-12:17);r.text={x:k.toString(),y:O.toString(),value:T,title:S}}}t.svg.text=r.text,t.svg.path=r.path,t.svg.arrow=r.arrow,t.x6={source:{cell:t.source.graphId,port:t.source.port},target:{cell:t.target.graphId,port:t.target.port}}},setCanvasWidthAndHeight:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,n=Oy.util.getCanvasRange(e);e.canvas.height=n.height+(t||0),e.canvas.width=n.width+(t||0)},getEdgeSVGPosition:function(e,t){var n=0,r=0,i=0,o=0,a=0,s=0,l="left",c=0;if(t.source.fieldId&&t.target.fieldId){var u=ky(e.field).findById(t.source.fieldId),d=ky(e.field).findById(t.target.fieldId),h=ky(e.graph).findById(null==u?void 0:u.graphId),f=ky(e.graph).findById(null==d?void 0:d.graphId);if(!(h&&f&&u&&d))throw new Error("undefiend");return n=h.left.calculate+h.width.calculate,r=h.height.calculate,o=f.left.calculate,a=f.height.calculate,c=sy(n+(o-n)/2,3),l=o>=n?"right":"left",{startX:n,startH:r,startY:i=sy(Oy.graph.util.getFieldPosition(e,u).y,3),middleX:c,endX:o,endH:a,endY:s=sy(Oy.graph.util.getFieldPosition(e,d).y,3),endAt:l}}return{startX:n,startH:r,startY:i,middleX:c,endX:o,endH:a,endY:s,endAt:l}},getFieldPosition:function(e,t){var n=ky(e.graph).findById(t.graphId),r={x:0,y:0},i=e.type===vg.sqlflow?Qg.sqlflow.canvas.graph.name.height:Qg.er.graph.title.height;if(n){var o=ky(e.field).findByIds(n.fields).filter((function(e){return e.visible})).findIndex((function(e){return e.id===t.id}));return o>-1?{x:n.left,y:n.top.calculate+i+(o+.5)*Qg.sqlflow.canvas.graph.field.height}:r}return r},getGraphHeight:function(e,t){return Qg.sqlflow.canvas.graph.name.height+ky(e.field).findByIds(t.fields).filter((function(e){return e.visible})).length*Qg.sqlflow.canvas.graph.field.height},setGraphWidthAndHeight:function(e,t){var n=cg.get50CharWidth(t.title);t.fields.forEach((function(t){var r=ky(e.field).findById(t);r&&(n=Math.max(n,cg.get50CharWidth(r.title)))})),t.width.calculate=n,t.height.calculate=22+16*t.fields.length,cg.getStringWidth(t.title)>t.width.calculate&&(t.titleFixWidth=t.title.slice(0,25)+"..."+t.title.slice(-25)),t.fields.forEach((function(n){var r=ky(e.field).findById(n);r&&cg.getStringWidth(r.title)>t.width.calculate&&(r.titleFixWidth=r.title.slice(0,25)+"..."+r.title.slice(-25))}))}}},field:{hover:function(e,t,n){var r=ky(e.field).findById(t.id),i=!0===n,o=!1===n;r&&(r.pin||(r.mouseover=n,Oy.backwardsOrForwards.iterate({sqlflow:e,field:t,backforwards:{edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t){if(t.visible){var n=function(n){var r=function(e){e.pin||e.click||(e.highlight=n)},i={source:ky(e.field).findById(t.source.fieldId),target:ky(e.field).findById(t.target.fieldId)};i.source&&i.target&&(r(i.source),r(i.target))};i?(t.highlight=!0,n(!0)):!o||t.pin||t.click||(t.highlight=!1,n(!1))}}))}}),Oy.util.setEdgeZIndexLayer(e)))},cancel:function(e){Oy.field.pin.cancel(e),Oy.edge.pin.cancel(e)},pin:{set:function(e,t){var n=ky(e.field).findById(t.id);n&&(e.current.pin&&Oy.field.pin.cancel(e),n.pin=!0,n.mouseover=!0,e.current.pin=n,Oy.backwardsOrForwards.iterate({sqlflow:e,field:t,backforwards:{field:function(e){e.pin=!0,e.highlight=!0},edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.pin=!0,e.highlight=!0}))}}),Oy.util.setEdgeZIndexLayer(e))},cancel:function(e){if(e.current.pin){var t=ky(e.field).findById(e.current.pin.id);t&&(Oy.backwardsOrForwards.iterate({sqlflow:e,field:t,backforwards:{field:function(e){e.pin=!1,e.highlight=!1,e.mouseover=!1},edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.pin=!1,e.highlight=!1}))}}),t.pin=!1,t.highlight=!1,t.mouseover=!1,e.current.pin=null)}}},token:{hover:function(e,t){ky(e.field).forEach((function(e){e.pin||(e.highlight=t.includes(e.id))}))}},code:{getSQL:function(e){var t=e.sqlflow,n=e.field,r=e.type,i={index:0,token:[],file:{}};i.file[0]={name:"",content:t.visualize.sqltext.value};var o=Oy.field.code.util.getCoordinates({sqlflow:t,field:n,type:r});return i.token=o.map((function(e){return{coordinate:e,sqlId:"0"}})),i},getSQLFromText:function(e){var t={index:0,token:[],file:{}};return t.file[0]={name:"",content:e},t},getSQLFromText2:function(e,t){var n={index:0,list:(t?e:[e[0]]).map((function(e){var n,r,i="";if(t){var o=(null==e?void 0:e.sourceTable)&&(null==e?void 0:e.sourceColumn)&&(null==e?void 0:e.targetTable)&&(null==e?void 0:e.targetColumn),a="".concat((null==e?void 0:e.sourceTable)||"",".").concat((null==e?void 0:e.sourceColumn)||""),s="".concat((null==e?void 0:e.targetTable)||"",".").concat((null==e?void 0:e.targetColumn)||"");i=o?a+" ==> "+s:""}else{var l=(null==e?void 0:e.sourceTable)&&(null==e?void 0:e.targetTable),c="".concat((null==e?void 0:e.sourceTable)||""),u="".concat((null==e?void 0:e.targetTable)||"");i=l?c+" ==> "+u:""}return r=null===(n=e.sqls)||void 0===n?void 0:n.reduce((function(e,t){return e+t[0]+"\n\n"}),""),Ty(Ty({},e),{},{sqls:r||"",title:i})}))};return n},getJob:function(e){var t=e.response,n={index:0,token:[],file:{}};return t.data.forEach((function(e,t){n.token[t]={sqlId:t.toString(),coordinate:e.positions.map((function(e){return Ty(Ty({},e),{},{hashCode:""})}))},n.file[t]={name:e.file,content:e.sql}})),n},util:{getCoordinates:function(e){var t=e.sqlflow,n=e.field,r=e.type,i=ky(t.graph).findById(null==n?void 0:n.graphId);if(!n||!i)return[];var o=n[r],a=[].concat(wy()(ky(t.field).findByIds(Object.keys(o.field))),[n]).map((function(e){return e.coordinates})).reduce((function(e,t){return e.concat(t)}),[]),s={},l=a.filter((function(e){var t="$".concat(e[0].x,"-").concat(e[0].y,"-").concat(e[1].x,"-").concat(e[1].y);return!s[t]&&(s[t]=!0,!0)}));return l}}}},edge:{hover:function(e,t){var n=t.value,r=!n,i=Oy.edge.util.get(e,t.edge);i&&(n&&(i.edge.highlight=!0,i.field.source.highlight=!0,i.field.target.highlight=!0),r&&(i.edge.click||i.edge.pin||(i.edge.highlight=!1),i.field.source.click||i.field.source.pin||(i.field.source.highlight=!1),i.field.target.click||i.field.target.pin||(i.field.target.highlight=!1)),Oy.util.setEdgeZIndexLayer(e))},pin:{set:function(e,t){var n=Oy.edge.util.get(e,t.edge);n&&(e.current.click&&Oy.edge.pin.cancel(e),e.current.click=n.edge,n.edge.click=!0,n.edge.highlight=!0,n.field.source.click=!0,n.field.source.highlight=!0,n.field.target.click=!0,n.field.target.highlight=!0)},cancel:function(e){if(e.current.click){var t=ky(e.edge).findById(e.current.click.id),n=Oy.edge.util.get(e,t);if(!n)return;n.edge.click=!1,n.field.source.click=!1,n.field.target.click=!1,n.edge.pin||(n.edge.highlight=!1),n.field.source.pin||(n.field.source.highlight=!1),n.field.target.pin||(n.field.target.highlight=!1),e.current.click=null}}},cancel:function(e){Oy.edge.pin.cancel(e)},util:{get:function(e,t){if(e){var n=ky(e.edge).findById(null==t?void 0:t.id);if(n){var r=ky(e.field).findById(n.source.fieldId),i=ky(e.field).findById(n.target.fieldId);if(r&&i)return{edge:n,field:{source:r,target:i}}}}}}},dbo:{init:function(e){var t,n=e.dbobjs,r=e.dbvendor,i=(e.process,[]),o=[],a=ky.init(),s=[];null==n||null===(t=n.servers)||void 0===t||t.forEach((function(e,t){var n={id:"server:[".concat(e.name,"]"),key:"server:[".concat(e.name,"]"),title:e.name,path:e.name,type:"server",level:"server",dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,children:[]};o.push(n.key),i.push(n);var l,c=function(t){return function(n,r){var i=yy()(n,2),o=i[0],l=i[1];if("packages"===o){var c=Oy.dbo.group.init({parent:t,title:o});t.children.push(c),l.forEach((function(n){var r={id:n.id,key:n.id,title:n.name||"",path:t.path+"."+n.name,type:"package",level:"table",dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:n.name,isOthers:c.isOthers,children:[]};if(c.children.push(r),ky(a).find(r))throw new Error("duplicate table dbo id ".concat(r.id));ky(a).push(r),Object.entries(n).forEach(function(t){return function(n,r){var i=yy()(n,2),o=i[0],a=i[1];if(Array.isArray(a)&&a.length>0&&a[0].id){var s=Oy.dbo.group.init({parent:t,title:o});t.children.push(s),a.forEach((function(n,r){var i,o={id:n.id,key:n.id,title:n.name||"",path:t.path+"."+n.name,type:n.type,level:"unknow",dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:n.name,isOthers:t.isOthers,isUnderPackage:!0,children:[]};s.children.push(o),null===(i=n.arguments)||void 0===i||i.forEach((function(r){var i={id:r.id,key:r.id,title:r.name||"",path:t.path+"."+r.name,type:"argument",level:"unknow",dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:n.name,isOthers:t.isOthers,children:[],dataType:r.dataType,inout:r.inout,coordinates:r.coordinates};o.children.push(i)}))}))}}}(r))}))}else if(Array.isArray(l)&&l.length>0&&l[0].id){var u=Oy.dbo.group.init({parent:t,title:o});"processes"===o||"others"===o||t.children.push(u),l.forEach((function(n){var r,i="processes"===o?"process":n.type,l={id:n.id,key:n.id,title:n.name||"",displayTitle:n.displayName,path:t.path+"."+n.name,type:i,level:"table",dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:n.name,more:n.more,isOthers:u.isOthers,coordinates:n.coordinates,children:[]};if(l.title.startsWith("#")||u.children.push(l),s.push(l),ky(a).find(l))throw new Error("duplicate table dbo id ".concat(l.id));ky(a).push(l),null===(r=n.columns)||void 0===r||r.forEach((function(n){var r={id:n.id,key:n.id,title:n.name,path:l.path+"."+n.name,type:"column",level:"column",dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:l.table,column:n.name,isOthers:u.isOthers,children:[],fieldId:"",coordinates:n.coordinates,source:n.source,dataType:n.dataType,isPrimaryKey:n.primaryKey,isForeignKey:n.foreignKey,isUniqueKey:n.unqiueKey,isIndexKey:n.indexKey,isUnderTable:"table"===l.type||void 0};"system"===r.source||"*"===r.title||l.children.push(r),ky(a).find(r)?console.warn("duplicate column dbo id ".concat(r.id)):ky(a).push(r)}))}))}}},u=function(t){return function(n,r){var i={id:"".concat(t.key," schema:[").concat(n.name,"]"),key:"".concat(t.key," schema:[").concat(n.name,"]"),title:n.name,path:t.path+"."+n.name,type:"schema",level:"schema",dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:n.name,children:[]};o.push(i.key),t.children.push(i),Object.entries(n).forEach(c(i))}};if(e.databases)null===(l=e.databases)||void 0===l||l.forEach((function(t,i){var a={id:"".concat(n.key," database:[").concat(t.name,"]"),key:"".concat(n.key," database:[").concat(t.name,"]"),title:t.name,path:n.path+"."+t.name,type:"database",level:"database",dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.name,children:[]};if(o.push(a.key),r===hg.dbvredshift&&"__FILE__"===t.name||n.children.push(a),[hg.dbvmysql,hg.dbvteradata,hg.dbvhive,hg.dbvimpala].includes(r))Object.entries(t).forEach(c(a));else if(t.schemas){var s;null===(s=t.schemas)||void 0===s||s.forEach(u(a))}}));else if(e.schemas){var d;null===(d=e.schemas)||void 0===d||d.forEach(u(n))}}));var l={id:"_empty",key:"_empty",title:"",path:"",type:"_empty",dbVendor:hg.dbvoracle,supportsCatalogs:!1,supportsSchemas:!1,children:[]};return i.push(l),{tree:i,expandKeys:o,flat:a,tableLevel:s}},group:{init:function(e){var t=e.parent,n=e.title;return{id:"".concat(t.id," group:[").concat(n,"]"),key:"".concat(t.id," group:[").concat(n,"]"),title:n,path:"",type:"group",dbVendor:t.dbVendor,supportsCatalogs:t.supportsCatalogs,supportsSchemas:t.supportsSchemas,isOthers:"others"===n,children:[]}}},getTableName:function(e){var t=[];return e.database&&"DEFAULT"!==e.database&&t.push(e.database),e.schema&&"DEFAULT"!==e.schema&&t.push(e.schema),e.name.replace(t.join(".")+".","")},getPath:function(e){var t=[];return e.database&&"DEFAULT"!==e.database&&t.push(e.database),e.schema&&"DEFAULT"!==e.schema&&t.push(e.schema),t.push(Oy.dbo.getTableName(e)),t.join(".")},getTableTitlePath:function(e){var t=[];return e.server&&"DEFAULT_SERVER"!==e.server&&t.push(e.server),e.database&&"DEFAULT"!==e.database&&t.push(e.database),e.schema&&"DEFAULT"!==e.schema&&t.push(e.schema),e.table&&t.push(e.table),t.join(".")},isColumn:function(e){return"column"===(null==e?void 0:e.level)},isTable:function(e){return"table"===(null==e?void 0:e.level)},isPackage:function(e){return"package"===(null==e?void 0:e.type)},isProcedure:function(e){return"procedure"===(null==e?void 0:e.type)},isFunction:function(e){return"function"===(null==e?void 0:e.type)},isTrigger:function(e){return"trigger"===(null==e?void 0:e.type)},getTableTitle:function(e){var t=[];return e.database&&"DEFAULT"!==e.database&&t.push(e.database),e.schema&&"DEFAULT"!==e.schema&&t.push(e.schema),e.table&&t.push(e.table),t.join(".")},getTableNamePattern:function(e){var t=e.supportsCatalogs,n=e.supportsSchemas,r=[];return t&&n?(e.database&&r.push(e.database),e.schema&&r.push(e.schema),e.table&&r.push(e.table)):t?(e.database&&r.push(e.database),e.table&&r.push(e.table)):n&&(e.schema&&r.push(e.schema),e.table&&r.push(e.table)),r.join(".")},getExportName:function(e){var t=e.supportsCatalogs,n=e.supportsSchemas,r=[];return t&&n?(e.database&&r.push(e.database),e.schema&&r.push(e.schema),e.table&&r.push(e.table)):t?(e.database&&r.push(e.database),e.table&&r.push(e.table)):n&&(e.schema&&r.push(e.schema),e.table&&r.push(e.table)),r.filter((function(e){return"DEFAULT"!==e})).join(".")}},backwardsOrForwards:{init:function(){return{graph:{},edge:{},field:{}}},get:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{graph:{},edge:{},field:{}};return e.field[e.direction].forEach((function(n){var r=ky(e.sqlflow.field).findById(n.field.id),i=ky(e.sqlflow.edge).findById(n.field.edgeId);r&&i&&(t.edge[i.id]=!0,t.graph[r.graphId]=!0,t.field[r.id]||(t.field[r.id]=!0,Oy.backwardsOrForwards.get(Ty(Ty({},e),{},{field:r}),t)))})),t},set:function(e){ky(e.field).forEach((function(t){t.backwards=Oy.backwardsOrForwards.get({sqlflow:e,field:t,direction:"source"}),t.forwards=Oy.backwardsOrForwards.get({sqlflow:e,field:t,direction:"target"});var n=ky(e.graph).findById(t.graphId);n&&(n.backwards.graph=Ty(Ty({},n.backwards.graph),t.backwards.graph),n.backwards.field=Ty(Ty({},n.backwards.field),t.backwards.field),n.backwards.edge=Ty(Ty({},n.backwards.edge),t.backwards.edge),n.forwards.graph=Ty(Ty({},n.forwards.graph),t.forwards.graph),n.forwards.field=Ty(Ty({},n.forwards.field),t.forwards.field),n.forwards.edge=Ty(Ty({},n.forwards.edge),t.forwards.edge))}))},clear:function(e){ky(e.graph).forEach((function(t){t.backwards=Oy.backwardsOrForwards.init(),t.forwards=Oy.backwardsOrForwards.init(),ky(e.field).forEach((function(e){e.backwards=Oy.backwardsOrForwards.init(),e.forwards=Oy.backwardsOrForwards.init()}))}))},iterate:function(e){var t=e.sqlflow,n=e.field,r=e.graph,i=e.current,o=e.backforwards;if(n&&r||!n&&!r)throw new Error("invalid parameter");n&&(ky(t.field).iterateByIds([n.id],null==i?void 0:i.field),ky(t.graph).iterateByIds([n.graphId],null==i?void 0:i.graph),ky(t.field).iterateByIds(Object.keys(n.backwards.field),o.field),ky(t.field).iterateByIds(Object.keys(n.forwards.field),o.field),ky(t.graph).iterateByIds(Object.keys(n.backwards.graph),o.graph),ky(t.graph).iterateByIds(Object.keys(n.forwards.graph),o.graph),ky(t.edge).iterateByIds(Object.keys(n.backwards.edge),o.edge),ky(t.edge).iterateByIds(Object.keys(n.forwards.edge),o.edge)),r&&(ky(t.graph).iterateByIds([r.id],null==i?void 0:i.graph),ky(t.field).iterateByIds(Object.keys(r.backwards.field),o.field),ky(t.field).iterateByIds(Object.keys(r.forwards.field),o.field),ky(t.graph).iterateByIds(Object.keys(r.backwards.graph),o.graph),ky(t.graph).iterateByIds(Object.keys(r.forwards.graph),o.graph),ky(t.edge).iterateByIds(Object.keys(r.backwards.edge),o.edge),ky(t.edge).iterateByIds(Object.keys(r.forwards.edge),o.edge))}},util:{getCanvasRange:function(e){var t={width:0,height:0};return ky(e.graph).forEach((function(e){e.visible&&(e.left.calculate+e.width.calculate>t.width&&(t.width=e.left.calculate+e.width.calculate),e.top.calculate+e.height.calculate>t.height&&(t.height=e.top.calculate+e.height.calculate))})),t},setEdgeZIndexLayer:function(e){ky(e.edge).sort((function(e,t){return e.highlight>t.highlight?1:-1}))},setWidgetVisibility:function(e){e.canvas.visible=!1,e.summary.visible=!1,e.scale.visible=!1,e.fail.visible=!1,e.map.visible=!1;var t=Boolean(e.graph.all.length);switch(e.mode){case kg.summary:e.select.current_deprecated?e.select.isBackForwardsOutOfRange?e.fail.visible=!0:(e.canvas.visible=!0,e.scale.visible=t,e.map.visible=t):e.summary.visible=!0;break;case kg.ignoreRecordSet:case kg.global:e.select.current_deprecated&&e.select.isBackForwardsOutOfRange?e.fail.visible=!0:(e.canvas.visible=!0,e.scale.visible=t,e.map.visible=t);break;default:throw new Error("unknown sqlflow mode: ".concat(e.mode))}},getDefaultType:function(e){return{schema:e(),table:e(),view:e(),procedure:e(),function:e(),select_list:e(),"insert-select":e(),"update-set":e(),"merge-insert":e(),"merge-update":e(),select_union:e(),with_cte:e(),"update-select":e(),process:e(),package:e(),path:e()}},getDefaultGroup:function(e){return{schema:e(),table:e(),view:e(),select_list:e(),temp_result:e(),procedure:e(),function:e(),other:e()}}},explorer:{search:function(e,t,n){for(var r=!1,i=e.length-1;i>=0;i--){var o=e[i],a=t.includes(".")?o.path.toLowerCase():o.title.toLowerCase();Oy.explorer.search(o.children,t,n)||a.includes(t.toLowerCase())?(r=!0,n.push(o.key)):e.splice(i,1)}return r},find:function(e,t){},expandDefault:function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];["server","database","schema"].includes(r.type)&&(t.push(r.key),Oy.explorer.expandDefault(r.children,t))}return t},addColumn:function(e){var t=e.sqlflow,n=e.table;e.columns.forEach((function(e){var r={id:e.id,key:e.id,title:e.name,path:n.path+"."+e.name,type:"column",level:"column",dbVendor:n.dbVendor,supportsCatalogs:n.supportsCatalogs,supportsSchemas:n.supportsSchemas,database:n.database,schema:n.schema,table:n.table,column:e.name,children:[],fieldId:"",coordinates:[],isUnderTable:"table"===n.type||void 0};ky(t.dbo).find(r)?console.warn("duplicate column dbo id ".concat(r.id)):ky(t.dbo).push(r),"*"===r.title||n.children.push(r)}))}}};function Ly(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ay(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ay(e,t)}(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ay(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}var Dy={search:{filter:function(e,t){Object.keys((null==t?void 0:t.search.resultIdMap)||{}).forEach((function(e){var n=ky(null==t?void 0:t.nodes).findById(e);n&&(n.searchCount=0)}));var n=e.search.word;if(n){if(t){t.search.resultIdMap={};var r=n.lastIndexOf("."),i=function(e){if(-1===r)return e.name.toLowerCase().includes(n.toLowerCase());var t=e.path.lastIndexOf(".");if(-1==t)return!1;for(var i=0;;){var o=r-i,a=t-i;if(o>=0){if(a<0)return!1;if(n[o].toLowerCase()!==e.path[a].toLowerCase())return!1}var s=r+i,l=t+i;if(s<n.length){if(l>=e.path.length)return!1;if(n[s].toLowerCase()!==e.path[l].toLowerCase())return!1}if((o<0||a<0)&&(s>=n.length||l>=e.path.length))break;i++}return!0};!function e(n){var r,o=0,a=Ly(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(0===s.childrenIds.length)i(s)?(s.visible=!0,o++,t.search.resultIdMap[s.id]=!0):s.visible=!1;else{var l=e(ky(t.nodes).findByIds(s.childrenIds));l>0?(s.visible=!0,s.expand=!0,i(s)&&(o++,s.visible=!0)):null!=t&&t.rootIdMap[s.id]&&"group"===s.type?(s.visible=!1,s.expand=!1):i(s)?(o++,s.visible=!0,s.expand=!0):(s.visible=!1,s.expand=!1),s.visible&&(t.search.resultIdMap[s.id]=!0),o+=l,s.searchCount=l}}}catch(e){a.e(e)}finally{a.f()}return o}(ky(t.nodes).findByIds(Object.keys(t.rootIdMap)))}}else"lineage"===(null==t?void 0:t.type)?Dy.node.collapseAll(e,t,{level:2}):Dy.node.collapseAll(e,t)}},node:{toggle:function(e,t,n){n.childrenIds.forEach((function(r){if(!e.search.word||null!=t&&t.search.resultIdMap[r]){var i=ky(null==t?void 0:t.nodes).findById(r);i&&(n.visible&&n.expand?i.visible=!0:i.visible=!1,Dy.node.toggle(e,t,i))}}))},collapseAll:function(e,t,n){var r=(null==n?void 0:n.level)||1;e.search.word?Object.keys((null==t?void 0:t.search.resultIdMap)||{}).forEach((function(e){var n=ky(null==t?void 0:t.nodes).findById(e);n&&(n.parentIds.length<r?(n.expand=n.parentIds.length!==r-1,n.visible=!0):(n.expand=!1,n.visible=!1))})):ky(null==t?void 0:t.nodes).forEach((function(e){e.parentIds.length<r?(e.expand=e.parentIds.length!==r-1,e.visible=!0):(e.expand=!1,e.visible=!1)}))},getGraphId:function(e){var t=e.tree,n=e.node;if(("table"===(null==n?void 0:n.type)||"column"===(null==n?void 0:n.type))&&null!=n&&n.dropdownId){var r=Dy.getCurrent(t);if(r){if("table"===n.type)return r.graphIdMap[n.dropdownId];if("column"===n.type){var i=ky(r.nodes).findById(n.parentIds[n.parentIds.length-1]);if(null!=i&&i.dropdownId)return r.graphIdMap[i.dropdownId]}}}}},getSQLdep:function(e,t){var n,r=1,i={type:"schema",source:"sqldep",jobId:t.jobId,rootIdMap:{},loadingId:null,search:{resultIdMap:{}},context:{id:null,css:{left:0,top:0}},select:{id:null},sourceCode:{visible:!1,content:""},nodes:ky.init(),data:e,graphIdMap:{}},o={database:new Map};e.databaseModel.databases.forEach((function(e){var t=o.database.get(e.name);t||void 0===e.name||(t={schema:new Map},o.database.set(e.name,t)),e.tables.forEach((function(e){var n=t.schema.get(e.schema);n||void 0===e.schema||(n={table:new Map,view:new Map,function:new Map,procedure:new Map},t.schema.set(e.schema,n)),"true"===e.isView?n.view.set(e.name,e):n.table.set(e.name,e)}))})),null===(n=e.queries)||void 0===n||n.forEach((function(e){var t=o.database.get(e.database);t||void 0===e.database||(t={schema:new Map},o.database.set(e.database,t));var n=t.schema.get(e.schema);n||void 0===e.schema||(n={table:new Map,view:new Map,function:new Map,procedure:new Map},t.schema.set(e.schema,n)),n.procedure.set(e.name,e)}));var a,s=Ly(o.database.entries());try{var l=function(){var e=a.value,t={id:String(r++),type:"database",name:e[0],path:e[0],expand:!1,visible:!0,searchCount:0,parentIds:[],childrenIds:[]};i.rootIdMap[t.id]=!0,ky(i.nodes).push(t);var n,o=Ly(e[1].schema.entries());try{var s=function(){var e=n.value,o={id:String(r++),type:"schema",name:e[0],path:"".concat(t.name,".").concat(e[0]),expand:!1,visible:!1,searchCount:0,parentIds:[t.id],childrenIds:[]};t.childrenIds.push(o.id),ky(i.nodes).push(o);var a={};e[1].table.size>0&&(a={id:String(r++),type:"group",name:"tables",path:"",expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id],childrenIds:[]},o.childrenIds.push(a.id),ky(i.nodes).push(a));var s,l=Ly(e[1].table.entries());try{var c=function(){var e=s.value,n={id:String(r++),type:"table",name:e[0],path:"".concat(t.name,".").concat(o.name,".").concat(e[0]),expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id,a.id],childrenIds:[]};a.childrenIds.push(n.id),ky(i.nodes).push(n),e[1].columns.forEach((function(e){var s={id:String(r++),type:"column",name:e.name,path:"".concat(t.name,".").concat(o.name,".").concat(n.name,".").concat(e.name),expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id,a.id,n.id],childrenIds:[]};n.childrenIds.push(s.id),ky(i.nodes).push(s)}))};for(l.s();!(s=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}var u={};e[1].view.size>0&&(u={id:String(r++),type:"group",name:"views",path:"",expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id],childrenIds:[]},o.childrenIds.push(u.id),ky(i.nodes).push(u));var d,h=Ly(e[1].view.entries());try{var f=function(){var e=d.value,n={id:String(r++),type:"view",name:e[0],path:"".concat(t.name,".").concat(o.name,".").concat(e[0]),expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id,u.id],childrenIds:[]};u.childrenIds.push(n.id),ky(i.nodes).push(n),e[1].columns.forEach((function(e){var a={id:String(r++),type:"column",name:e.name,path:"".concat(t.name,".").concat(o.name,".").concat(n.name,".").concat(e.name),expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id,u.id,n.id],childrenIds:[]};n.childrenIds.push(a.id),ky(i.nodes).push(a)}))};for(h.s();!(d=h.n()).done;)f()}catch(e){h.e(e)}finally{h.f()}var p={};e[1].function.size>0&&(p={id:String(r++),type:"group",name:"functions",path:"",expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id],childrenIds:[]},o.childrenIds.push(p.id),ky(i.nodes).push(p));var g,m=Ly(e[1].function.entries());try{for(m.s();!(g=m.n()).done;){var v=g.value,y={id:String(r++),type:"function",name:v[0],path:"".concat(t.name,".").concat(o.name,".").concat(v[0]),expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id,p.id],childrenIds:[]};p.childrenIds.push(y.id),ky(i.nodes).push(y)}}catch(e){m.e(e)}finally{m.f()}var b={};e[1].procedure.size>0&&(b={id:String(r++),type:"group",name:"procedures",path:"",expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id],childrenIds:[]},o.childrenIds.push(b.id),ky(i.nodes).push(b));var w,_=Ly(e[1].procedure.entries());try{for(_.s();!(w=_.n()).done;){var x=w.value,E={id:String(r++),type:"procedure",name:x[0],path:"".concat(t.name,".").concat(o.name,".").concat(x[0]),expand:!1,visible:!1,searchCount:0,parentIds:[t.id,o.id,b.id],childrenIds:[]};b.childrenIds.push(E.id),ky(i.nodes).push(E)}}catch(e){_.e(e)}finally{_.f()}};for(o.s();!(n=o.n()).done;)s()}catch(e){o.e(e)}finally{o.f()}};for(s.s();!(a=s.n()).done;)l()}catch(e){s.e(e)}finally{s.f()}return i},getGrabit:function(e,t){var n,r=1,i={type:"schema",source:"grabit",jobId:t.jobId,rootIdMap:{},loadingId:null,search:{resultIdMap:{}},context:{id:null,css:{left:0,top:0}},select:{id:null},sourceCode:{visible:!1,content:""},nodes:ky.init(),data:e,graphIdMap:{}},o={database:new Map};null===(n=e.databases)||void 0===n||n.forEach((function(e){for(var t=function(){var t,i=r[n];null===(t=e[i])||void 0===t||t.forEach((function(e){var t=o.database.get(e.database);t||void 0===e.database||(t={schema:new Map},o.database.set(e.database,t));var n=t.schema.get(e.schema);switch(n||(n={table:new Map,view:new Map,function:new Map,procedure:new Map,package:new Map},t.schema.set(e.schema,n)),i){case"tables":"true"===e.isView?n.view.set(e.name,e):n.table.set(e.name,e);break;case"functions":n.function.set(e.name,e);break;case"procedures":n.procedure.set(e.name,e);break;case"packages":var r={count:{all:0,function:0,procedure:0},function:new Map,procedure:new Map};n.package.set(e.name,r),e.functions&&e.functions.forEach((function(e){r.function.set(e.name,e),r.count.all++,r.count.function++})),e.procedures&&e.procedures.forEach((function(e){r.procedure.set(e.name,e),r.count.all++,r.count.function++}));break;default:}}))},n=0,r=["tables","functions","procedures","packages"];n<r.length;n++)t()}));var a,s=Ly(o.database.entries());try{var l=function(){var e=yy()(a.value,2),t=e[0],n=e[1],o={id:String(r++),type:"database",name:t,path:t,expand:!1,visible:!0,searchCount:0,parentIds:[],childrenIds:[]};i.rootIdMap[o.id]=!0,ky(i.nodes).push(o);var s,l=Ly(n.schema.entries());try{var c=function(){var e=yy()(s.value,2),t=e[0],n=e[1],a={id:String(r++),type:"schema",name:t,path:"".concat(o.name,".").concat(t),expand:!1,visible:!1,searchCount:0,parentIds:[o.id],childrenIds:[]};o.childrenIds.push(a.id),ky(i.nodes).push(a),Object.keys(n).forEach((function(e){var t=e;switch(t){case"table":case"view":var s={};n[t].size>0&&(s={id:String(r++),type:"group",name:{table:"tables",view:"views"}[t],path:"",expand:!1,visible:!1,searchCount:0,parentIds:[o.id,a.id],childrenIds:[]},a.childrenIds.push(s.id),ky(i.nodes).push(s));var l,c=Ly(n[t].entries());try{var u=function(){var e,n=yy()(l.value,2),c=n[0],u=n[1],d={id:String(r++),type:t,name:c,path:"".concat(o.name,".").concat(a.name,".").concat(c),expand:!1,visible:!1,searchCount:0,parentIds:[o.id,a.id,s.id],childrenIds:[]};s.childrenIds.push(d.id),ky(i.nodes).push(d),null===(e=u.columns)||void 0===e||e.forEach((function(e){var t={id:String(r++),type:"column",name:e.name,path:"".concat(o.name,".").concat(a.name,".").concat(d.name,".").concat(e.name),expand:!1,visible:!1,searchCount:0,parentIds:[o.id,a.id,s.id,d.id],childrenIds:[]};d.childrenIds.push(t.id),ky(i.nodes).push(t)}))};for(c.s();!(l=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}break;case"function":case"procedure":var d={};n[t].size>0&&(d={id:String(r++),type:"group",name:{function:"functions",procedure:"procedures"}[t],path:"",expand:!1,visible:!1,searchCount:0,parentIds:[o.id,a.id],childrenIds:[]},a.childrenIds.push(d.id),ky(i.nodes).push(d));var h,f=Ly(n[t].entries());try{var p=function(){var e,n=yy()(h.value,2),s=n[0],l=n[1],c={id:String(r++),type:t,name:s,path:"".concat(o.name,".").concat(a.name,".").concat(s),expand:!1,visible:!1,searchCount:0,parentIds:[o.id,a.id,d.id],childrenIds:[]};d.childrenIds.push(c.id),ky(i.nodes).push(c),null===(e=l.arguments)||void 0===e||e.forEach((function(e){var t={id:String(r++),type:"arg",name:e.name+" (".concat(e.dataType,")"),path:"".concat(o.name,".").concat(a.name,".").concat(s,".").concat(e.name),expand:!1,visible:!1,searchCount:0,parentIds:[].concat(wy()(c.parentIds),[c.id]),childrenIds:[]};c.childrenIds.push(t.id),ky(i.nodes).push(t)}))};for(f.s();!(h=f.n()).done;)p()}catch(e){f.e(e)}finally{f.f()}break;case"package":if(0===n.package.size)return;var g={id:String(r++),type:"group",name:"packages",path:"",expand:!1,visible:!1,searchCount:0,parentIds:[o.id,a.id],childrenIds:[]};a.childrenIds.push(g.id),ky(i.nodes).push(g);var m,v=Ly(n.package.entries());try{for(v.s();!(m=v.n()).done;){var y=yy()(m.value,2),b=y[0],w=y[1];if(0!==w.count.all){var _={id:String(r++),type:"package",name:b,path:"",expand:!1,visible:!1,searchCount:0,parentIds:[].concat(wy()(g.parentIds),[g.id]),childrenIds:[]};g.childrenIds.push(_.id),ky(i.nodes).push(_);for(var x=0,E=["function","procedure"];x<E.length;x++){var C,k=E[x],S=Ly(w[k].entries());try{var T=function(){var e,t=yy()(C.value,2),n=t[0],s=t[1],l={id:String(r++),type:k,name:n,path:"".concat(o.name,".").concat(a.name,".").concat(n),expand:!1,visible:!1,searchCount:0,parentIds:[].concat(wy()(_.parentIds),[_.id]),childrenIds:[]};_.childrenIds.push(l.id),ky(i.nodes).push(l),null===(e=s.arguments)||void 0===e||e.forEach((function(e){var t={id:String(r++),type:"arg",name:e.name+" (".concat(e.dataType,")"),path:"".concat(o.name,".").concat(a.name,".").concat(n,".").concat(e.name),expand:!1,visible:!1,searchCount:0,parentIds:[].concat(wy()(l.parentIds),[l.id]),childrenIds:[]};l.childrenIds.push(t.id),ky(i.nodes).push(t)}))};for(S.s();!(C=S.n()).done;)T()}catch(e){S.e(e)}finally{S.f()}}}}}catch(e){v.e(e)}finally{v.f()}break;default:}}))};for(l.s();!(s=l.n()).done;)c()}catch(e){l.e(e)}finally{l.f()}};for(s.s();!(a=s.n()).done;)l()}catch(e){s.e(e)}finally{s.f()}return console.log(i),i},getLineage:function(e){var t=1,n=e.visualize.isJob,r={type:"lineage",jobId:"",rootIdMap:{},loadingId:null,isJob:n,search:{resultIdMap:{}},context:{id:null,css:{left:0,top:0}},select:{id:null},dropdown:{id:"",width:300,list:ky.init(),normal:{}},nodes:ky.init(),graphIdMap:{}},i=new Map;return ky(e.dbo_deprecated.list).forEach((function(t){switch(t.type){case"schema":case"table":case"view":case"select_list":case"function":case"procedure":Dy.util.groupByType({groupMap:i,dbo:t,group:t.type,sqlflow:e});break;case"insert-select":case"update-set":case"merge-insert":case"merge-update":case"select_union":case"with_cte":case"update-select":Dy.util.groupByType({groupMap:i,dbo:t,group:"temp_result",sqlflow:e});break;case"process":break;case"package":Dy.util.groupByType({groupMap:i,dbo:t,group:"package",sqlflow:e});break;case"path":Dy.util.groupByType({groupMap:i,dbo:t,group:"file",sqlflow:e});break;default:t.type;Dy.util.groupByType({groupMap:i,dbo:t,group:"other",sqlflow:e})}})),ky(e.dbo_deprecated.list).forEach((function(t){Dy.util.setDropdownItemFromDbo({sqlflow:e,dbo:t,lineage:r})})),["schema","table","view","select_list","temp_result","procedure","package","function","file","other"].forEach((function(n){var o=i.get(n);if(o){var a={id:String(t++),type:"group",name:n,path:"",expand:!0,visible:!0,searchCount:0,parentIds:[],childrenIds:[]};r.rootIdMap[a.id]=!0,ky(r.nodes).push(a);var s,l=!(1===o.size&&o.get("DEFAULT")),c=Ly(wy()(null==o?void 0:o.entries()).sort());try{var u=function(){var i,o,c=s.value,u=!(1===c[1].size&&c[1].get("DEFAULT"));l&&(i={id:String(t++),dropdownId:"",type:"database",name:c[0],path:c[0],expand:!1,visible:!0,hide:a.hide,searchCount:0,parentIds:[a.id],childrenIds:[]},a.childrenIds.push(i.id),ky(r.nodes).push(i),i.dropdownId=Dy.util.getNodePathString({node:i,sqlflow:e,lineage:r}),i.hide=null===(o=ky(r.nodes).findById(i.parentIds[i.parentIds.length-1]))||void 0===o?void 0:o.hide);var d,h=Ly(wy()(c[1].entries()).sort());try{var f=function(){var o,s,l,c,h=d.value;u&&(l={id:String(t++),dropdownId:"",type:"schema",name:h[0],path:i?"".concat(i.path,".").concat(h[0]):h[0],expand:!1,visible:!i,searchCount:0,parentIds:i?[a.id,i.id]:[a.id],childrenIds:[]},i?i.childrenIds.push(l.id):a.childrenIds.push(l.id),ky(r.nodes).push(l),l.dropdownId=Dy.util.getNodePathString({node:l,sqlflow:e,lineage:r}),l.hide=null===(c=ky(r.nodes).findById(l.parentIds[l.parentIds.length-1]))||void 0===c?void 0:c.hide);var f,p=null!==(o=null!==(s=l)&&void 0!==s?s:i)&&void 0!==o?o:a,g=Ly(wy()(h[1].entries()).sort());try{var m=function(){var o=yy()(f.value,2),a=o[0],s=o[1];s.forEach((function(o,c){var u,d={id:String(t++),dropdownId:"",type:s[c].type,name:a,path:l||i?"".concat(p.path,".").concat(a):a,expand:!1,visible:!l,searchCount:0,parentIds:[].concat(wy()(p.parentIds),[p.id]),childrenIds:[]};switch(p.childrenIds.push(d.id),ky(r.nodes).push(d),d.dropdownId=Dy.util.getNodePathString({node:d,sqlflow:e,lineage:r}),d.hide=null===(u=ky(r.nodes).findById(d.parentIds[d.parentIds.length-1]))||void 0===u?void 0:u.hide,d.dropdownId&&(r.graphIdMap[d.dropdownId]=s[c].graphId),n){case"package":var h;null===(h=s[c].procedures)||void 0===h||h.forEach((function(e){var n=e.name,i={id:String(t++),dropdownId:"",type:"procedure",name:n,path:"".concat(d.path,".").concat(n),expand:!1,visible:!1,searchCount:0,parentIds:[].concat(wy()(d.parentIds),[d.id]),childrenIds:[]};d.childrenIds.push(i.id),ky(r.nodes).push(i),e.arguments.forEach((function(e){var n=e.name,o={id:String(t++),dropdownId:"",type:"arg",name:n,path:"".concat(i.path,".").concat(n),expand:!1,visible:!1,searchCount:0,parentIds:[].concat(wy()(i.parentIds),[i.id]),childrenIds:[]};i.childrenIds.push(o.id),ky(r.nodes).push(o)}))}));break;case"procedure":var f,g;d.type="procedure",d.name+="(".concat(null===(f=o.arguments)||void 0===f?void 0:f.map((function(e){return e.datatype})).join(", "),")"),d.type="procedure",null===(g=s[c].arguments)||void 0===g||g.forEach((function(e){var n=e.name,i={id:String(t++),dropdownId:"",type:"arg",name:n,path:"".concat(d.path,".").concat(n),expand:!1,visible:!1,searchCount:0,parentIds:[].concat(wy()(d.parentIds),[d.id]),childrenIds:[]};d.childrenIds.push(i.id),ky(r.nodes).push(i)}));break;default:Array.from(new Set(s[c].columns.map((function(t){var n;return(null===(n=ky(e.column_deprecated).findById(t))||void 0===n?void 0:n.name)||""})))).sort((function(e,t){return e.toLowerCase()>t.toLowerCase()?1:-1})).forEach((function(n){var i,o={id:String(t++),dropdownId:"",type:"column",name:n,path:"".concat(d.path,".").concat(n),expand:!1,visible:!1,searchCount:0,parentIds:[].concat(wy()(d.parentIds),[d.id]),childrenIds:[]};d.childrenIds.push(o.id),ky(r.nodes).push(o),o.dropdownId=Dy.util.getNodePathString({node:o,sqlflow:e,lineage:r}),o.hide=null===(i=ky(r.nodes).findById(o.parentIds[o.parentIds.length-1]))||void 0===i?void 0:i.hide}))}}))};for(g.s();!(f=g.n()).done;)m()}catch(e){g.e(e)}finally{g.f()}};for(h.s();!(d=h.n()).done;)f()}catch(e){h.e(e)}finally{h.f()}};for(c.s();!(s=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}}})),r},getCurrent:function(e){return e.tab===Eg.lineage?e.lineage:e.meta},insertColumns:function(e){var t=e.tree,n=e.lineage,r=(e.sqlflow,e.node),i=e.columns,o=n.nodes.all.findIndex((function(e){return e===r.id})),a=n.nodes.all.length+1;if(o>0){var s,l=[];i.forEach((function(e){var t={id:String(a++),dropdownId:"",type:"column",name:e.name,path:"".concat(r.path,".").concat(e.name),expand:!1,visible:!0,hide:!1,searchCount:0,parentIds:[].concat(wy()(r.parentIds),[r.id]),childrenIds:[]};l.push(t)})),ky(n.nodes).insert(o+1,l),r.expand=!0;var c=l.map((function(e){return e.id}));(s=r.childrenIds).push.apply(s,wy()(c)),t.search.word&&c.forEach((function(e){n.search.resultIdMap[e]=!0}))}},util:{groupByType:function(e){var t=e.sqlflow,n=e.dbo,r=e.groupMap,i=Dy.util.getNormalName({sqlflow:t,dbo:n}),o=r.get(e.group);r.get(e.group)||(o=new Map,r.set(e.group,o));var a=o.get(i.database);a||(a=new Map,o.set(i.database,a));var s=a.get(i.schema);s||(s=new Map,a.set(i.schema,s));var l=s.get(i.table);l?l.push(n):s.set(i.table,[n])},getTableName:function(e){var t=[];return e.database&&"DEFAULT"!==e.database&&t.push(e.database),e.schema&&"DEFAULT"!==e.schema&&t.push(e.schema),e.name.replace(t.join(".")+".","")},getNormalName:function(e){var t=e.sqlflow,n=e.dbo;return{database:py(t.dbvendor,n.database),schema:py(t.dbvendor,n.schema),table:py(t.dbvendor,Dy.util.getTableName(n))}},setDropdownItemFromDbo:function(e){var t=e.sqlflow,n=e.dbo,r=e.lineage,i=new Set,o={},a={},s=function(e){if(!ky(r.dropdown.list).findById(e.id)&&"process"!==e.type){ky(r.dropdown.list).push(e);var t=Math.ceil(e.id.length/25*300);r.dropdown.width=cy(t,r.dropdown.width,600)}};if(n.database&&"DEFAULT"!==n.database){o.database=n.database,a.database=py(t.dbvendor,o.database);var l={id:n.database,type:"database",graphId:n.graphId,nodeIds:[]};s(l),r.dropdown.normal[a.database]=l.id}if(n.schema&&"DEFAULT"!==n.schema){o.schema=n.schema,a.schema=py(t.dbvendor,o.schema);var c={id:Dy.util.getPathString(o),type:"schema",graphId:n.graphId,nodeIds:[]};s(c),r.dropdown.normal[Dy.util.getPathString(a)]=c.id}o.table=Dy.util.getTableName(n),a.table=py(t.dbvendor,o.table);var u={id:Dy.util.getPathString(o),type:n.type,graphId:n.graphId,nodeIds:[]};s(u),r.dropdown.normal[Dy.util.getPathString(a)]=u.id,n.columns.length>0&&ky(t.column_deprecated).findByIds(n.columns).forEach((function(e){if(e.name&&!i.has(e.name)){i.add(e.name),o.column=e.name,a.column=py(t.dbvendor,o.column);var l={id:Dy.util.getPathString(o),type:"column",graphId:n.graphId,nodeIds:[]};s(l),r.dropdown.normal[Dy.util.getPathString(a)]=l.id}}))},getPathString:function(e){var t=[];return["database","schema","table","column"].forEach((function(n){var r=e[n];r&&t.push(r)})),t.join(".")},getNodePathString:function(e){var t=e.node,n=e.sqlflow,r=e.lineage,i=[];ky(r.nodes).findByIds([].concat(wy()(t.parentIds),[t.id])).forEach((function(e){switch(e.type){case"database":case"schema":case"table":case"view":case"procedure":case"function":case"column":case"path":var t=py(n.dbvendor,e.name);("database"!==e.type&&"schema"!==e.type||"DEFAULT"!==t)&&i.push(t);break;case"arg":case"group":case"empty":case"process":case"package":case"insert-select":case"merge-insert":case"merge-update":case"select_union":case"with_cte":case"update-select":case"update-set":case"select_list":break;default:e.type}}));var o=r.dropdown.normal[i.join(".")];if(o){var a=ky(r.dropdown.list).findById(o);a&&(a.nodeIds=wy()(new Set([].concat(wy()(a.nodeIds),[t.id]))))}return o},getSelectOfNode:function(e){var t=e.node,n=e.lineage,r={type:"lineage",nodeId:t.id,database:"DEFAULT",schema:"DEFAULT"};return ky(null==n?void 0:n.nodes).findByIds([].concat(wy()(null==t?void 0:t.parentIds),[t.id])).forEach((function(e){switch(e.type){case"database":r.database=e.name;break;case"schema":r.schema=e.name;break;case"view":case"table":r.table=e.name;break;case"column":r.column=e.name;break;case"function":r.func=e.name;break;case"procedure":r.procedure=e.name}})),r},getStreamTableName:function(e){var t=e.node,n=e.lineage,r=Dy.util.getSelectOfNode({node:t,lineage:n}),i=[];return r.database&&"DEFAULT"!==r.database&&i.push(r.database),r.schema&&"DEFAULT"!==r.schema&&i.push(r.schema),r.table&&i.push(r.table),i.join(".")}}};function Ny(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Py(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Py(e,t)}(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Py(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}var Iy=70,jy=40,Ry={init:function(e){var t,n=e.response,r=e.request,i=e.dbvendor,o=0,a=0,s=new Map([["other",[]],["column",[]],["process",[]]]),l={sessionId:n.sessionId,mode:n.data.mode,dbvendor:Ry.getDbvendor(n),pin:!1,graph:ky.init(),processIds:[],column:ky.init(),edge:ky.init(),select:{list:[],current:void 0,width:300,isBackForwardsOutOfRange:!1},canvas:{width:0,height:0,visible:!1},summary:{visible:!1},scale:{value:1,visible:!1},fail:{visible:!1},map:{visible:!1},code:{sql:"",visible:!1,loading:!1,height:0,title:"",coordinates:[]},request:r,response:n},c=new Map,u=new Map;null===(t=n.data.graph)||void 0===t||t.elements.tables.forEach((function(e){var t,r,i=null===(t=n.data.graph)||void 0===t||null===(r=t.listIdMap[e.id])||void 0===r?void 0:r[0];i&&c.set(i,e)})),n.data.sqlflow.relationships.forEach((function(e){u.set(e.target.id,!0),e.sources.forEach((function(e){u.set(e.id,!0)}))})),Oy.dbo.init({dbobjs:n.data.sqlflow.dbobjs,dbvendor:i,process:!0}).tableLevel.forEach((function(e){var t;if(u.get(e.id)){var n,r,i={id:e.id,type:e.type,title:e.displayTitle||"",titleFixWidth:e.displayTitle||"",pin:!1,visible:!0,highlight:!1,width:0,height:0,left:{origin:0,calculate:0},top:{origin:0,calculate:0},columnIds:[],source:[],target:[],backwards:{edge:{},graph:{}},forwards:{edge:{},graph:{}},isBackForwardsOutOfRange:!1,coordinates:e.coordinates};if(ky(l.graph).push(i),"process"===i.type)l.processIds.push(i.id),null===(n=s.get("process"))||void 0===n||n.push({id:"",type:e.type,graphId:i.id,name:i.title});else null===(r=s.get("other"))||void 0===r||r.push({id:"",type:e.type,graphId:i.id,name:i.title});if(null===(t=e.children)||void 0===t||t.forEach((function(e){var t={id:e.id,graphId:i.id,name:e.title,fullName:"".concat(i.title,".").concat(e.title)};i.columnIds.push(t.id),ky(l.column).push(t)})),l.mode===Cg.global){var o=c.get(i.id);o?(i.width=o.width,i.height=o.height,i.left.origin=o.x,i.left.calculate=o.x,i.top.origin=o.y,i.top.calculate=o.y):l.mode=Cg.summary}}}));var d,h=Ny(s.values());try{for(h.s();!(d=h.n()).done;){d.value.forEach((function(e){var t=Math.ceil(e.name.length/25*300);e.id=(o++).toString(),l.select.list.push(e),l.select.width=cy(t,l.select.width,600)}))}}catch(e){h.e(e)}finally{h.f()}if(n.data.sqlflow.relationships.forEach((function(e){var t=ky(l.graph).findById(e.target.id);e.sources.forEach((function(n){var r=ky(l.graph).findById(n.id);if(r&&t){var i={id:(a++).toString(),relationId:e.id,type:"lineage",pin:!1,visible:!0,highlight:!1,sourceId:r.id,targetId:t.id,svg:{path:"",arrow:""}};ky(l.edge).push(i),r.target.push({edgeId:i.id,graphId:t.id}),t.source.push({edgeId:i.id,graphId:r.id})}}))})),ky(l.graph).forEach((function(e){e.backwards=Ry.util.getBackwardsOrForwards(l,e,"source"),e.forwards=Ry.util.getBackwardsOrForwards(l,e,"target"),e.isBackForwardsOutOfRange=Object.keys(e.backwards.graph).length+Object.keys(e.forwards.graph).length>200})),l.mode===Cg.summary)return ky(l.graph).forEach((function(e){if("process"===e.type){e.width=e.height=40}else e.width=Ry.graph.util.getWidth(e.title),e.title.length>50&&(e.titleFixWidth=e.title.slice(0,25)+"..."+e.title.slice(-25)),e.height=26;e.left={origin:0,calculate:0},e.top={origin:0,calculate:0}})),Ry.util.setWidgetVisibility(l),l;var f=Ry.util.getCanvasRange(l);if(ky(l.graph).forEach((function(e){if(e.top.origin+=f.height,e.top.calculate+=f.height,"process"===e.type){var t={x:e.left.origin+e.width/2,y:e.top.origin+e.height/2};e.top.origin=t.y-20,e.left.origin=t.x-20,e.width=e.height=40,e.top.calculate=e.top.origin,e.left.calculate=e.left.origin}e.top.origin+=Iy,e.top.calculate+=Iy,e.left.origin+=jy,e.left.calculate+=jy})),"global"===l.mode){var p=new Map;ky(l.graph).forEach((function(e){var t=0;"process"===e.type?t=e.width:(t=Ry.graph.util.getWidth(e.title),e.title.length>50&&(e.titleFixWidth=e.title.slice(0,25)+"..."+e.title.slice(-25)));var n=p.get(e.left.origin);n?(t>n[0]&&(n[0]=t,n[1]=t-e.width),n[2].push(e.id)):p.set(e.left.origin,[t,t-e.width,[e.id]])}));for(var g=wy()(p.entries()).sort((function(e,t){return e[0]-t[0]})),m=function(){var e=g[v][1];ky(l.graph).findByIds(e[2]).forEach((function(t){"process"!==t.type&&(t.width=Ry.graph.util.getWidth(t.title),t.left.origin+=(e[0]-t.width)/2)}));for(var t=v+1;t<g.length;t++){var n=g[t][1];ky(l.graph).findByIds(n[2]).forEach((function(t){t.left.origin+=e[1]}))}},v=0;v<g.length;v++)m()}return Ry.graph.draw(l),l},getDbvendor:function(e){var t,n,r;return(null===(t=e.data.sqlflow.dbobjs)||void 0===t||null===(n=t.servers)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.dbVendor)||hg.dbvoracle},graph:{draw:function(e){if(e.select.current){var t=e.select.list[Number(e.select.current)],n=ky(e.graph).findById(t.graphId);if(!n)throw new Error("cannot find graph");if(e.select.isBackForwardsOutOfRange=n.isBackForwardsOutOfRange,e.select.isBackForwardsOutOfRange)return void Ry.util.setWidgetVisibility(e);ky(e.edge).forEach((function(e){return e.visible=!1})),ky(e.graph).forEach((function(e){return e.visible=!1}));var r=new(xy().graphlib.Graph);r.setGraph({rankdir:"LR",ranksep:100,nodesep:50,edgesep:1}),r.setDefaultEdgeLabel((function(){return{}})),r.setNode(n.id,{width:n.width,height:n.height}),n.visible=!0,Ry.util.iterateBackAndForwards({lineage:e,graph:n,action:{edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.visible=!0,r.setEdge(e.sourceId,e.targetId)})),graph:function(e){e.visible=!0,r.setNode(e.id,{width:e.width,height:e.height})}}}),xy().layout(r),r.nodes().forEach((function(t){var n=r.node(t),i=ky(e.graph).findById(t);i&&(i.left.calculate=n.x-i.width/2+jy,i.top.calculate=n.y-i.height/2+Iy+20)}))}else ky(e.graph).forEach((function(e){e.visible=!0,e.top.calculate=e.top.origin,e.left.calculate=e.left.origin})),ky(e.edge).forEach((function(e){e.visible=!0}));var i=Ry.util.getCanvasRange(e);e.canvas.height=i.height+Iy+20,e.canvas.width=i.width+jy,ky(e.edge).forEach((function(t){if(t.visible){var n=ky(e.graph).findById(t.sourceId),r=ky(e.graph).findById(t.targetId);if(n&&r){var i=Ry.util.getPosition(n,r),o=i.startX,a=i.startH,s=i.startY,l=i.middleX,c=i.endX,u=i.endY;if("left"===i.endAt){var d=o+50,h=s,f=d,p=s+a+25,g=c-30,m=u-10,v=p;t.svg.path="M".concat(o,",").concat(s," C").concat(d,",").concat(h," ").concat(f,",").concat(p," ").concat(l,",").concat(v," S").concat(g,",").concat(m," ").concat(c-4,",").concat(u+1)}else t.svg.path="M ".concat(o," ").concat(s," C ").concat(l," ").concat(s," ").concat(l," ").concat(u," ").concat(c-8," ").concat(u);t.svg.arrow="".concat(c,",").concat(u," ").concat(c-8,",").concat(u-4," ").concat(c-8,",").concat(u+4)}}})),Ry.util.setWidgetVisibility(e)},highlight:function(e,t,n){e.pin||(!0===n&&(ky(e.edge).findByIds(Object.keys(t.backwards.edge||{})).forEach((function(e){e.type="lineage"})),ky(e.edge).findByIds(Object.keys(t.forwards.edge||{})).forEach((function(e){e.type="impact"}))),Ry.util.iterateBackAndForwards({lineage:e,graph:t,action:{edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.highlight=n})),graph:function(e){e.highlight=n}}}),Ry.util.setEdgeZIndexLayer(e))},pin:function(e,t){Ry.util.iterateBackAndForwards({lineage:e,graph:t,action:{graph:function(t){Ry.util.iterateBackAndForwards({lineage:e,graph:t,action:{edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.pin=!1,e.highlight=!1})),graph:function(e){e.pin=!1,e.highlight=!1}}})}}}),e.pin=!0,t.pin=!0,Ry.util.iterateBackAndForwards({lineage:e,graph:t,action:{edge:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){e.pin=!0})),graph:function(e){e.pin=!0}}}),ky(e.edge).findByIds(Object.keys(t.backwards.edge)).forEach((function(e){e.type="lineage"})),ky(e.edge).findByIds(Object.keys(t.forwards.edge)).forEach((function(e){e.type="impact"})),Ry.util.setEdgeZIndexLayer(e)},cancel:function(e){e.pin&&(e.pin=!1,ky(e.graph).forEach((function(e){e.pin=!1,e.highlight=!1})),ky(e.edge).forEach((function(e){e.pin=!1,e.highlight=!1})))},util:{getWidth:function(e){return Math.max(cg.get50CharWidth(e)+20,162)},getName:function(e){return e.length>50?e.slice(0,25)+"..."+e.slice(-25):e}}},util:{iterateBackAndForwards:function(e){var t=e.lineage,n=e.graph,r=e.action;r.graph&&(ky(t.graph).findByIds(Object.keys(n.backwards.graph)).forEach((function(e){var t;null===(t=r.graph)||void 0===t||t.call(r,e)})),ky(t.graph).findByIds(Object.keys(n.forwards.graph)).forEach((function(e){var t;null===(t=r.graph)||void 0===t||t.call(r,e)}))),r.edge&&(ky(t.edge).findByIds(Object.keys(n.backwards.edge)).forEach((function(e){var t;null===(t=r.edge)||void 0===t||t.call(r,e)})),ky(t.edge).findByIds(Object.keys(n.forwards.edge)).forEach((function(e){var t;null===(t=r.edge)||void 0===t||t.call(r,e)})))},getCanvasRange:function(e){var t={width:0,height:0};return ky(e.graph).forEach((function(e){e.visible&&(Math.abs(e.left.calculate)+e.width>t.width&&(t.width=Math.abs(e.left.calculate)+e.width),Math.abs(e.top.calculate)>t.height&&(t.height=Math.abs(e.top.calculate)))})),t},getBackwardsOrForwards:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{edge:{},graph:{}};return t[n].forEach((function(t){r.edge[t.edgeId]=!0;var i=ky(e.graph).findById(t.graphId);i&&!r.graph[t.graphId]&&(r.graph[t.graphId]=!0,Ry.util.getBackwardsOrForwards(e,i,n,r))})),r},getPosition:function(e,t){var n,r,i,o,a,s;return n=e.left.calculate+e.width,i=e.top.calculate+e.height/2,r=e.height,o=t.left.calculate-1,s=t.top.calculate+t.height/2,a=t.height,{startX:n,startH:r,startY:i,middleX:sy(n+(o-n)/2,3),endX:o,endH:a,endY:s,endAt:o>=n?"right":"left"}},setEdgeZIndexLayer:function(e){var t=[],n=[],r=[];ky(e.edge).forEach((function(e){(e.highlight||e.pin)&&"impact"===e.type?t.push(e.id):(e.highlight||e.pin)&&"lineage"===e.type?n.push(e.id):r.push(e.id)})),e.edge.all=[].concat(r,n,t)},setWidgetVisibility:function(e){e.canvas.visible=!1,e.summary.visible=!1,e.scale.visible=!1,e.fail.visible=!1,e.map.visible=!1;var t=Boolean(e.graph.all.length);switch(e.mode){case Cg.summary:e.select.current?e.select.isBackForwardsOutOfRange?e.fail.visible=!0:(e.canvas.visible=!0,e.scale.visible=t,e.map.visible=t):e.summary.visible=!0;break;case Cg.global:e.select.current&&e.select.isBackForwardsOutOfRange?e.fail.visible=!0:(e.canvas.visible=!0,e.scale.visible=t,e.map.visible=t)}}}};function Fy(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return zy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zy(e,t)}(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function zy(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}var Yy,By,Hy,qy,Uy,Vy=function(){function e(){var t=this;ka()(this,e),tm()(this,"map",new Map),tm()(this,"observer",void 0),this.observer=new ResizeObserver((function(e){var n,r=Fy(e);try{var i=function(){var e=n.value.target;wy()(t.map.entries()).forEach((function(t){var n=yy()(t,2),r=(n[0],n[1]),i=r.el,o=r.callbacks;i===e&&o.forEach((function(e){e()}))}))};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}}))}return Ea()(e,[{key:"addListener",value:function(e,t,n){var r=this.map.get(e);t&&(r?(this.observer.unobserve(r.el),this.observer.observe(t),r.el=t):(r={el:t,callbacks:[]},this.observer.observe(r.el),this.map.set(e,r)),r.callbacks.push(n))}},{key:"removeListener",value:function(e,t){var n=this.map.get(e);if(n){if(!t)return this.map.delete(e),void this.observer.unobserve(n.el);var r=n.callbacks.findIndex((function(e){return e===t}));r>-1&&n.callbacks.splice(r,1)}}}]),e}(),Wy=new Vy;By=Yy||(Yy={}),Hy=function(e){return e.server="server",e.database="database",e.schema="schema",e.group="group",e.package="package",e.table="table",e.view="view",e.column="column",e.procedure="procedure",e.argument="argument",e._empty="_empty",e}({}),By.Type=Hy,By.init=function(e){var t=0,n=[],r=[],i=function(){return(t++).toString()},o=function(e){var t=e.parent,n=e.title;return{key:i(),title:n,type:Hy.group,dbVendor:t.dbVendor,supportsCatalogs:t.supportsCatalogs,supportsSchemas:t.supportsSchemas,children:[]}};return e.servers.forEach((function(e){var t={key:i(),title:e.name,type:Hy.server,dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,children:[]};n.push(t),r.push(t.key);var a,s,l=function(t){return function(n){var r=yy()(n,2),a=r[0],s=r[1];if("packages"===a){var l=o({parent:t,title:a});t.children.push(l),s.forEach((function(n,r){var a={key:i(),title:n.name||"",type:Hy.package,dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:n.name,children:[]};l.children.push(a),Object.entries(n).forEach(function(t){return function(n){var r=yy()(n,2),a=r[0],s=r[1];if(Array.isArray(s)&&s.length>0){var l=o({parent:t,title:a});t.children.push(l),s.forEach((function(n,r){var o,a={key:i(),title:n.name||"",type:Hy.procedure,dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:n.name,children:[]};l.children.push(a),null===(o=n.arguments)||void 0===o||o.forEach((function(r){var o={key:i(),title:r.name||"",type:Hy.argument,dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:n.name,children:[]};a.children.push(o)}))}))}}}(a))}))}else if(Array.isArray(s)&&s.length>0){var c=o({parent:t,title:a});t.children.push(c),s.forEach((function(n){var r,o={key:i(),title:n.name||"",type:n.type,dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:n.name,children:[]};c.children.push(o),null===(r=n.columns)||void 0===r||r.forEach((function(n){var r={key:i(),title:n.name,type:Hy.column,dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:t.database,schema:t.schema,table:o.table,column:n.name,children:[]};o.children.push(r)}))}))}}};e.schemas&&(null===(a=e.schemas)||void 0===a||a.forEach((s=t,function(t,n){var o={key:i(),title:t.name,type:Hy.schema,dbVendor:e.dbVendor,supportsCatalogs:e.supportsCatalogs,supportsSchemas:e.supportsSchemas,database:s.database,schema:t.name,children:[]};r.push(o.key),s.children.push(o),Object.entries(t).forEach(l(o))})))})),n.push({key:i(),title:"",type:Hy._empty,dbVendor:hg.dbvoracle,children:[]}),n},function(e){var t;!function(e){var t=function(e){return e.Function="function",e.MaterializedView="materialized view",e.Package="package",e.Procedure="procedure",e.Trigger="trigger",e.View="view",e}({});e.QueryType=t;var n=function(e){return e.table="table",e.view="view",e}({});e.TableType=n}(t||(t=e.JSON||(e.JSON={})))}(Yy||(Yy={})),(Uy=qy||(qy={})).parse=function(){var e=ty().parse(window.location.hash.slice(8));return{shareId:e.shareId,tab:"true"===e.tableLevel?xg.lineage:xg.sqlflow}},Uy.isShare=function(e){return void 0!==e.data.createTime||void 0!==e.data.spendTime},Uy.getUrl=function(e){var t=e.shareId,n=e.tableLevel,r=$p?"http://127.0.0.1:8250":location.origin;return"".concat(r,"/#/share?").concat(ty().stringify({shareId:t,tableLevel:!!n||void 0}))},qy||(qy={});var Gy=__webpack_require__(19755),$y=__webpack_require__.n(Gy);__webpack_require__(50450);let Ky=!1,Jy=!1,Xy=!1,Zy=!1,Qy=!1,eb=!1,tb=!1,nb=!1,rb=!1,ib=!1,ob=!1,ab=!1,sb=!1,lb=!1,cb=!1,ub=!1;if("object"==typeof navigator){const e=navigator.userAgent;Ky=e.indexOf("Macintosh")>=0,Jy=!!e.match(/(iPad|iPhone|iPod)/g),Xy=e.indexOf("Windows")>=0,Zy=e.indexOf("MSIE")>=0,Qy=!!e.match(/Trident\/7\./),eb=!!e.match(/Edge\//),tb=e.indexOf("Mozilla/")>=0&&e.indexOf("MSIE")<0&&e.indexOf("Edge/")<0,rb=e.indexOf("Chrome/")>=0&&e.indexOf("Edge/")<0,ib=e.indexOf("Opera/")>=0||e.indexOf("OPR/")>=0,ob=e.indexOf("Firefox/")>=0,ab=e.indexOf("AppleWebKit/")>=0&&e.indexOf("Chrome/")<0&&e.indexOf("Edge/")<0,"object"==typeof document&&(ub=!document.createElementNS||"[object SVGForeignObjectElement]"!=`${document.createElementNS("http://www.w3.org/2000/svg","foreignObject")}`||e.indexOf("Opera/")>=0)}if("object"==typeof window&&(nb=null!=window.chrome&&null!=window.chrome.app&&null!=window.chrome.app.runtime,lb=null!=window.PointerEvent&&!Ky),"object"==typeof document){sb="ontouchstart"in document.documentElement;try{const e=Object.defineProperty({},"passive",{get(){cb=!0}}),t=document.createElement("div");t.addEventListener&&t.addEventListener("click",(()=>{}),e)}catch(Oee){}}var db;if(function(e){e.IS_MAC=Ky,e.IS_IOS=Jy,e.IS_WINDOWS=Xy,e.IS_IE=Zy,e.IS_IE11=Qy,e.IS_EDGE=eb,e.IS_NETSCAPE=tb,e.IS_CHROME_APP=nb,e.IS_CHROME=rb,e.IS_OPERA=ib,e.IS_FIREFOX=ob,e.IS_SAFARI=ab,e.SUPPORT_TOUCH=sb,e.SUPPORT_POINTER=lb,e.SUPPORT_PASSIVE=cb,e.NO_FOREIGNOBJECT=ub,e.SUPPORT_FOREIGNOBJECT=!e.NO_FOREIGNOBJECT}(db||(db={})),function(e){function t(){const e=window.module;return null!=e&&null!=e.hot&&null!=e.hot.status?e.hot.status():"unkonwn"}e.getHMRStatus=t,e.isApplyingHMR=function(){return"apply"===t()};const n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};e.isEventSupported=function(e){const t=document.createElement(n[e]||"div"),r=`on${e}`;let i=r in t;return i||(t.setAttribute(r,"return;"),i="function"==typeof t[r]),i}}(db||(db={})),db.SUPPORT_PASSIVE){$y().event.special.touchstart={setup(e,t,n){if(!this.addEventListener)return!1;this.addEventListener("touchstart",n,{passive:!0})}};const e=$y().event.special.mousewheel;if(e){const t=e.setup;e.setup=function(){const e=this.addEventListener;if(!e)return!1;this.addEventListener=(t,n)=>{e.call(this,t,n,{passive:!0})},t.call(this),this.addEventListener=e}}}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((e=>{Object.prototype.hasOwnProperty.call(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)}})}));var hb=Array.isArray,fb="object"==typeof global&&global&&global.Object===Object&&global,pb="object"==typeof self&&self&&self.Object===Object&&self,gb=fb||pb||Function("return this")(),mb=gb.Symbol,vb=Object.prototype,yb=vb.hasOwnProperty,bb=vb.toString,wb=mb?mb.toStringTag:void 0;var _b=function(e){var t=yb.call(e,wb),n=e[wb];try{e[wb]=void 0;var r=!0}catch(e){}var i=bb.call(e);return r&&(t?e[wb]=n:delete e[wb]),i},xb=Object.prototype.toString;var Eb=function(e){return xb.call(e)},Cb=mb?mb.toStringTag:void 0;var kb=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Cb&&Cb in Object(e)?_b(e):Eb(e)};var Sb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Tb=function(e){if(!Sb(e))return!1;var t=kb(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var Mb=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ob=function(e){return null!=e&&Mb(e.length)&&!Tb(e)},Lb=gb["__core-js_shared__"],Ab=function(){var e=/[^.]+$/.exec(Lb&&Lb.keys&&Lb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var Db=function(e){return!!Ab&&Ab in e},Nb=Function.prototype.toString;var Pb=function(e){if(null!=e){try{return Nb.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ib=/^\[object .+?Constructor\]$/,jb=Function.prototype,Rb=Object.prototype,Fb=jb.toString,zb=Rb.hasOwnProperty,Yb=RegExp("^"+Fb.call(zb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Bb=function(e){return!(!Sb(e)||Db(e))&&(Tb(e)?Yb:Ib).test(Pb(e))};var Hb=function(e,t){return null==e?void 0:e[t]};var qb=function(e,t){var n=Hb(e,t);return Bb(n)?n:void 0},Ub=qb(Object,"create");var Vb=function(){this.__data__=Ub?Ub(null):{},this.size=0};var Wb=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Gb=Object.prototype.hasOwnProperty;var $b=function(e){var t=this.__data__;if(Ub){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Gb.call(t,e)?t[e]:void 0},Kb=Object.prototype.hasOwnProperty;var Jb=function(e){var t=this.__data__;return Ub?void 0!==t[e]:Kb.call(t,e)};var Xb=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ub&&void 0===t?"__lodash_hash_undefined__":t,this};function Zb(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])}}Zb.prototype.clear=Vb,Zb.prototype.delete=Wb,Zb.prototype.get=$b,Zb.prototype.has=Jb,Zb.prototype.set=Xb;var Qb=Zb;var ew=function(){this.__data__=[],this.size=0};var tw=function(e,t){return e===t||e!=e&&t!=t};var nw=function(e,t){for(var n=e.length;n--;)if(tw(e[n][0],t))return n;return-1},rw=Array.prototype.splice;var iw=function(e){var t=this.__data__,n=nw(t,e);return!(n<0)&&(n==t.length-1?t.pop():rw.call(t,n,1),--this.size,!0)};var ow=function(e){var t=this.__data__,n=nw(t,e);return n<0?void 0:t[n][1]};var aw=function(e){return nw(this.__data__,e)>-1};var sw=function(e,t){var n=this.__data__,r=nw(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function lw(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])}}lw.prototype.clear=ew,lw.prototype.delete=iw,lw.prototype.get=ow,lw.prototype.has=aw,lw.prototype.set=sw;var cw=lw,uw=qb(gb,"Map");var dw=function(){this.size=0,this.__data__={hash:new Qb,map:new(uw||cw),string:new Qb}};var hw=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var fw=function(e,t){var n=e.__data__;return hw(t)?n["string"==typeof t?"string":"hash"]:n.map};var pw=function(e){var t=fw(this,e).delete(e);return this.size-=t?1:0,t};var gw=function(e){return fw(this,e).get(e)};var mw=function(e){return fw(this,e).has(e)};var vw=function(e,t){var n=fw(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function yw(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])}}yw.prototype.clear=dw,yw.prototype.delete=pw,yw.prototype.get=gw,yw.prototype.has=mw,yw.prototype.set=vw;var bw=yw;var ww=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var _w=function(e){return this.__data__.has(e)};function xw(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new bw;++t<n;)this.add(e[t])}xw.prototype.add=xw.prototype.push=ww,xw.prototype.has=_w;var Ew=xw;var Cw=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1};var kw=function(e){return e!=e};var Sw=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var Tw=function(e,t,n){return t==t?Sw(e,t,n):Cw(e,kw,n)};var Mw=function(e,t){return!!(null==e?0:e.length)&&Tw(e,t,0)>-1};var Ow=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};var Lw=function(e,t){return e.has(t)},Aw=qb(gb,"Set");var Dw=function(){};var Nw=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Pw=Aw&&1/Nw(new Aw([,-0]))[1]==1/0?function(e){return new Aw(e)}:Dw;var Iw=function(e,t,n){var r=-1,i=Mw,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=Ow;else if(o>=200){var c=t?null:Pw(e);if(c)return Nw(c);a=!1,i=Lw,l=new Ew}else l=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s};var jw=function(e){return e&&e.length?Iw(e):[]};var Rw=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var Fw=function(e){return null!=e&&"object"==typeof e};var zw=function(e){return Fw(e)&&"[object Arguments]"==kb(e)},Yw=Object.prototype,Bw=Yw.hasOwnProperty,Hw=Yw.propertyIsEnumerable,qw=zw(function(){return arguments}())?zw:function(e){return Fw(e)&&Bw.call(e,"callee")&&!Hw.call(e,"callee")},Uw=qw,Vw=mb?mb.isConcatSpreadable:void 0;var Ww=function(e){return hb(e)||Uw(e)||!!(Vw&&e&&e[Vw])};var Gw=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=Ww),o||(o=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):Rw(o,l):i||(o[o.length]=l)}return o};var $w=function(e){return e};var Kw=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)},Jw=Math.max;var Xw=function(e,t,n){return t=Jw(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Jw(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Kw(e,this,s)}};var Zw=function(e){return function(){return e}},Qw=function(){try{var e=qb(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),e_=Qw?function(e,t){return Qw(e,"toString",{configurable:!0,enumerable:!1,value:Zw(t),writable:!0})}:$w,t_=e_,n_=Date.now;var r_=function(e){var t=0,n=0;return function(){var r=n_(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},i_=r_(t_);var o_=function(e,t){return i_(Xw(e,t,$w),e+"")};var a_=function(e){return Fw(e)&&Ob(e)},s_=o_((function(e){return Iw(Gw(e,1,a_,!0))}));var l_=function(e){return"symbol"==typeof e||Fw(e)&&"[object Symbol]"==kb(e)},c_=Math.floor,u_=Math.min;var d_=function(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,l=l_(t),c=void 0===t;i<o;){var u=c_((i+o)/2),d=n(e[u]),h=void 0!==d,f=null===d,p=d==d,g=l_(d);if(a)var m=r||p;else m=c?p&&(r||h):s?p&&h&&(r||!f):l?p&&h&&!f&&(r||!g):!f&&!g&&(r?d<=t:d<t);m?i=u+1:o=u}return u_(o,4294967294)};var h_=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 o=r+i>>>1,a=e[o];null!==a&&!l_(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return d_(e,t,$w,n)};var f_=function(e,t){return h_(e,t)};var p_=function(){this.__data__=new cw,this.size=0};var g_=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var m_=function(e){return this.__data__.get(e)};var v_=function(e){return this.__data__.has(e)};var y_=function(e,t){var n=this.__data__;if(n instanceof cw){var r=n.__data__;if(!uw||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new bw(r)}return n.set(e,t),this.size=n.size,this};function b_(e){var t=this.__data__=new cw(e);this.size=t.size}b_.prototype.clear=p_,b_.prototype.delete=g_,b_.prototype.get=m_,b_.prototype.has=v_,b_.prototype.set=y_;var w_=b_;var __=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};var x_=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=2&n?new Ew:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],g=t[d];if(r)var m=a?r(g,p,d,t,e,o):r(p,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!__(t,(function(e,t){if(!Lw(f,t)&&(p===e||i(p,e,n,r,o)))return f.push(t)}))){h=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h},E_=gb.Uint8Array;var C_=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},k_=mb?mb.prototype:void 0,S_=k_?k_.valueOf:void 0;var T_=function(e,t,n,r,i,o,a){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||!o(new E_(e),new E_(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return tw(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=C_;case"[object Set]":var l=1&r;if(s||(s=Nw),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=x_(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(S_)return S_.call(e)==S_.call(t)}return!1};var M_=function(e,t,n){var r=t(e);return hb(e)?r:Rw(r,n(e))};var O_=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o};var L_=function(){return[]},A_=Object.prototype.propertyIsEnumerable,D_=Object.getOwnPropertySymbols,N_=D_?function(e){return null==e?[]:(e=Object(e),O_(D_(e),(function(t){return A_.call(e,t)})))}:L_,P_=N_;var I_=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var j_=function(){return!1},R_="object"==typeof exports&&exports&&!exports.nodeType&&exports,F_=R_&&"object"==typeof module&&module&&!module.nodeType&&module,z_=F_&&F_.exports===R_?gb.Buffer:void 0,Y_=(z_?z_.isBuffer:void 0)||j_,B_=/^(?:0|[1-9]\d*)$/;var H_=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&B_.test(e))&&e>-1&&e%1==0&&e<t},q_={};q_["[object Float32Array]"]=q_["[object Float64Array]"]=q_["[object Int8Array]"]=q_["[object Int16Array]"]=q_["[object Int32Array]"]=q_["[object Uint8Array]"]=q_["[object Uint8ClampedArray]"]=q_["[object Uint16Array]"]=q_["[object Uint32Array]"]=!0,q_["[object Arguments]"]=q_["[object Array]"]=q_["[object ArrayBuffer]"]=q_["[object Boolean]"]=q_["[object DataView]"]=q_["[object Date]"]=q_["[object Error]"]=q_["[object Function]"]=q_["[object Map]"]=q_["[object Number]"]=q_["[object Object]"]=q_["[object RegExp]"]=q_["[object Set]"]=q_["[object String]"]=q_["[object WeakMap]"]=!1;var U_=function(e){return Fw(e)&&Mb(e.length)&&!!q_[kb(e)]};var V_=function(e){return function(t){return e(t)}},W_="object"==typeof exports&&exports&&!exports.nodeType&&exports,G_=W_&&"object"==typeof module&&module&&!module.nodeType&&module,$_=G_&&G_.exports===W_&&fb.process,K_=function(){try{var e=G_&&G_.require&&G_.require("util").types;return e||$_&&$_.binding&&$_.binding("util")}catch(e){}}(),J_=K_,X_=J_&&J_.isTypedArray,Z_=X_?V_(X_):U_,Q_=Object.prototype.hasOwnProperty;var ex=function(e,t){var n=hb(e),r=!n&&Uw(e),i=!n&&!r&&Y_(e),o=!n&&!r&&!i&&Z_(e),a=n||r||i||o,s=a?I_(e.length,String):[],l=s.length;for(var c in e)!t&&!Q_.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||H_(c,l))||s.push(c);return s},tx=Object.prototype;var nx=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||tx)};var rx=function(e,t){return function(n){return e(t(n))}},ix=rx(Object.keys,Object),ox=Object.prototype.hasOwnProperty;var ax=function(e){if(!nx(e))return ix(e);var t=[];for(var n in Object(e))ox.call(e,n)&&"constructor"!=n&&t.push(n);return t};var sx=function(e){return Ob(e)?ex(e):ax(e)};var lx=function(e){return M_(e,sx,P_)},cx=Object.prototype.hasOwnProperty;var ux=function(e,t,n,r,i,o){var a=1&n,s=lx(e),l=s.length;if(l!=lx(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:cx.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var v=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(e),o.delete(t),f},dx=qb(gb,"DataView"),hx=qb(gb,"Promise"),fx=qb(gb,"WeakMap"),px="[object Map]",gx="[object Promise]",mx="[object Set]",vx="[object WeakMap]",yx="[object DataView]",bx=Pb(dx),wx=Pb(uw),_x=Pb(hx),xx=Pb(Aw),Ex=Pb(fx),Cx=kb;(dx&&Cx(new dx(new ArrayBuffer(1)))!=yx||uw&&Cx(new uw)!=px||hx&&Cx(hx.resolve())!=gx||Aw&&Cx(new Aw)!=mx||fx&&Cx(new fx)!=vx)&&(Cx=function(e){var t=kb(e),n="[object Object]"==t?e.constructor:void 0,r=n?Pb(n):"";if(r)switch(r){case bx:return yx;case wx:return px;case _x:return gx;case xx:return mx;case Ex:return vx}return t});var kx=Cx,Sx="[object Arguments]",Tx="[object Array]",Mx="[object Object]",Ox=Object.prototype.hasOwnProperty;var Lx=function(e,t,n,r,i,o){var a=hb(e),s=hb(t),l=a?Tx:kx(e),c=s?Tx:kx(t),u=(l=l==Sx?Mx:l)==Mx,d=(c=c==Sx?Mx:c)==Mx,h=l==c;if(h&&Y_(e)){if(!Y_(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new w_),a||Z_(e)?x_(e,t,n,r,i,o):T_(e,t,l,n,r,i,o);if(!(1&n)){var f=u&&Ox.call(e,"__wrapped__"),p=d&&Ox.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,m=p?t.value():t;return o||(o=new w_),i(g,m,n,r,o)}}return!!h&&(o||(o=new w_),ux(e,t,n,r,i,o))};var Ax=function e(t,n,r,i,o){return t===n||(null==t||null==n||!Fw(t)&&!Fw(n)?t!=t&&n!=n:Lx(t,n,r,i,e,o))};var Dx=function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new w_;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?Ax(u,c,3,r,d):h))return!1}}return!0};var Nx=function(e){return e==e&&!Sb(e)};var Px=function(e){for(var t=sx(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Nx(i)]}return t};var Ix=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};var jx=function(e){var t=Px(e);return 1==t.length&&t[0][2]?Ix(t[0][0],t[0][1]):function(n){return n===e||Dx(n,e,t)}},Rx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fx=/^\w*$/;var zx=function(e,t){if(hb(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!l_(e))||(Fx.test(e)||!Rx.test(e)||null!=t&&e in Object(t))};function Yx(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],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Yx.Cache||bw),n}Yx.Cache=bw;var Bx=Yx;var Hx=function(e){var t=Bx(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},qx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ux=/\\(\\)?/g,Vx=Hx((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(qx,(function(e,n,r,i){t.push(r?i.replace(Ux,"$1"):n||e)})),t})),Wx=Vx;var Gx=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},$x=mb?mb.prototype:void 0,Kx=$x?$x.toString:void 0;var Jx=function e(t){if("string"==typeof t)return t;if(hb(t))return Gx(t,e)+"";if(l_(t))return Kx?Kx.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var Xx=function(e){return null==e?"":Jx(e)};var Zx=function(e,t){return hb(e)?e:zx(e,t)?[e]:Wx(Xx(e))};var Qx=function(e){if("string"==typeof e||l_(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var eE=function(e,t){for(var n=0,r=(t=Zx(t,e)).length;null!=e&&n<r;)e=e[Qx(t[n++])];return n&&n==r?e:void 0};var tE=function(e,t,n){var r=null==e?void 0:eE(e,t);return void 0===r?n:r};var nE=function(e,t){return null!=e&&t in Object(e)};var rE=function(e,t,n){for(var r=-1,i=(t=Zx(t,e)).length,o=!1;++r<i;){var a=Qx(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Mb(i)&&H_(a,i)&&(hb(e)||Uw(e))};var iE=function(e,t){return null!=e&&rE(e,t,nE)};var oE=function(e,t){return zx(e)&&Nx(t)?Ix(Qx(e),t):function(n){var r=tE(n,e);return void 0===r&&r===t?iE(n,e):Ax(t,r,3)}};var aE=function(e){return function(t){return null==t?void 0:t[e]}};var sE=function(e){return function(t){return eE(t,e)}};var lE=function(e){return zx(e)?aE(Qx(e)):sE(e)};var cE=function(e){return"function"==typeof e?e:null==e?$w:"object"==typeof e?hb(e)?oE(e[0],e[1]):jx(e):lE(e)};var uE=function(e,t,n){return d_(e,t,cE(n,2))};var dE=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}},hE=dE();var fE=function(e,t){return e&&hE(e,t,sx)};var pE=function(e,t){return function(n,r){if(null==n)return n;if(!Ob(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}},gE=pE(fE);var mE=function(e,t){var n=-1,r=Ob(e)?Array(e.length):[];return gE(e,(function(e,i,o){r[++n]=t(e,i,o)})),r};var vE=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var yE=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=l_(e),a=void 0!==t,s=null===t,l=t==t,c=l_(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0};var bE=function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=yE(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index};var wE=function(e,t,n){t=t.length?Gx(t,(function(e){return hb(e)?function(t){return eE(t,1===e.length?e[0]:e)}:e})):[$w];var r=-1;t=Gx(t,V_(cE));var i=mE(e,(function(e,n,i){return{criteria:Gx(t,(function(t){return t(e)})),index:++r,value:e}}));return vE(i,(function(e,t){return bE(e,t,n)}))};var _E=function(e,t,n){if(!Sb(n))return!1;var r=typeof t;return!!("number"==r?Ob(n)&&H_(t,n.length):"string"==r&&t in n)&&tw(n[t],e)},xE=o_((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_E(e,t[0],t[1])?t=[]:n>2&&_E(t[0],t[1],t[2])&&(t=[t[0]]),wE(e,Gw(t,1),[])}));var EE=function(e,t,n){"__proto__"==t&&Qw?Qw(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var CE=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r};var kE=function(e,t,n,r){return gE(e,(function(e,i,o){t(r,e,n(e),o)})),r};var SE=function(e,t){return function(n,r){var i=hb(n)?CE:kE,o=t?t():{};return i(n,e,cE(r,2),o)}},TE=Object.prototype.hasOwnProperty,ME=SE((function(e,t,n){TE.call(e,n)?e[n].push(t):EE(e,n,[t])})),OE=ME;var LE=function(e,t,n,r){var i=-1,o=Mw,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Gx(t,V_(n))),r?(o=Ow,a=!1):t.length>=200&&(o=Lw,a=!1,t=new Ew(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,r)||l.push(u)}return l},AE=o_((function(e,t){return a_(e)?LE(e,Gw(t,1,a_,!0)):[]})),DE=AE;var NE=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!l_(a):n(a,s)))var s=a,l=o}return l};var PE=function(e,t){return e>t};var IE=function(e){return e&&e.length?NE(e,$w,PE):void 0};var jE=Object.prototype.hasOwnProperty;var RE=function(e,t){return null!=e&&jE.call(e,t)};var FE=function(e,t){return null!=e&&rE(e,t,RE)},zE=Object.prototype.hasOwnProperty;var YE=function(e,t,n){var r=e[t];zE.call(e,t)&&tw(r,n)&&(void 0!==n||t in e)||EE(e,t,n)};var BE=function(e,t,n,r){if(!Sb(e))return e;for(var i=-1,o=(t=Zx(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=Qx(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=Sb(u)?u:H_(t[i+1])?[]:{})}YE(s,l,c),s=s[l]}return e};var HE=function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=eE(e,a);n(s,a)&&BE(o,Zx(a,e),s)}return o};var qE=function(e,t){return HE(e,t,(function(t,n){return iE(e,n)}))};var UE=function(e){return(null==e?0:e.length)?Gw(e,1):[]};var VE=function(e){return i_(Xw(e,void 0,UE),e+"")}((function(e,t){return null==e?{}:qE(e,t)})),WE=VE;var GE=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},$E=Object.prototype.hasOwnProperty;var KE=function(e){if(!Sb(e))return GE(e);var t=nx(e),n=[];for(var r in e)("constructor"!=r||!t&&$E.call(e,r))&&n.push(r);return n};var JE=function(e){return Ob(e)?ex(e,!0):KE(e)};var XE=function(e,t,n){(void 0!==n&&!tw(e[t],n)||void 0===n&&!(t in e))&&EE(e,t,n)},ZE="object"==typeof exports&&exports&&!exports.nodeType&&exports,QE=ZE&&"object"==typeof module&&module&&!module.nodeType&&module,eC=QE&&QE.exports===ZE?gb.Buffer:void 0,tC=eC?eC.allocUnsafe:void 0;var nC=function(e,t){if(t)return e.slice();var n=e.length,r=tC?tC(n):new e.constructor(n);return e.copy(r),r};var rC=function(e){var t=new e.constructor(e.byteLength);return new E_(t).set(new E_(e)),t};var iC=function(e,t){var n=t?rC(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var oC=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},aC=Object.create,sC=function(){function e(){}return function(t){if(!Sb(t))return{};if(aC)return aC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),lC=sC,cC=rx(Object.getPrototypeOf,Object);var uC=function(e){return"function"!=typeof e.constructor||nx(e)?{}:lC(cC(e))},dC=Function.prototype,hC=Object.prototype,fC=dC.toString,pC=hC.hasOwnProperty,gC=fC.call(Object);var mC=function(e){if(!Fw(e)||"[object Object]"!=kb(e))return!1;var t=cC(e);if(null===t)return!0;var n=pC.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&fC.call(n)==gC};var vC=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var yC=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?EE(n,s,l):YE(n,s,l)}return n};var bC=function(e){return yC(e,JE(e))};var wC=function(e,t,n,r,i,o,a){var s=vC(e,n),l=vC(t,n),c=a.get(l);if(c)XE(e,n,c);else{var u=o?o(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=hb(l),f=!h&&Y_(l),p=!h&&!f&&Z_(l);u=l,h||f||p?hb(s)?u=s:a_(s)?u=oC(s):f?(d=!1,u=nC(l,!0)):p?(d=!1,u=iC(l,!0)):u=[]:mC(l)||Uw(l)?(u=s,Uw(s)?u=bC(s):Sb(s)&&!Tb(s)||(u=uC(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l)),XE(e,n,u)}};var _C=function e(t,n,r,i,o){t!==n&&hE(n,(function(a,s){if(o||(o=new w_),Sb(a))wC(t,n,s,r,e,i,o);else{var l=i?i(vC(t,s),a,s+"",t,n,o):void 0;void 0===l&&(l=a),XE(t,s,l)}}),JE)};var xC=function(e){return o_((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&_E(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))},EC=xC((function(e,t,n){_C(e,t,n)})),CC=EC;xC((function(e,t){yC(t,JE(t),e)}));var kC=function(e,t){return Ax(e,t)},SC=Object.prototype.hasOwnProperty;var TC=function(e){if(null==e)return!0;if(Ob(e)&&(hb(e)||"string"==typeof e||"function"==typeof e.splice||Y_(e)||Z_(e)||Uw(e)))return!e.length;var t=kx(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(nx(e))return!ax(e).length;for(var n in e)if(SC.call(e,n))return!1;return!0};var MC=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var OC=function(e,t){return e&&yC(t,sx(t),e)};var LC=function(e,t){return e&&yC(t,JE(t),e)};var AC=function(e,t){return yC(e,P_(e),t)},DC=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Rw(t,P_(e)),e=cC(e);return t}:L_,NC=DC;var PC=function(e,t){return yC(e,NC(e),t)};var IC=function(e){return M_(e,JE,NC)},jC=Object.prototype.hasOwnProperty;var RC=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&jC.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var FC=function(e,t){var n=t?rC(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},zC=/\w*$/;var YC=function(e){var t=new e.constructor(e.source,zC.exec(e));return t.lastIndex=e.lastIndex,t},BC=mb?mb.prototype:void 0,HC=BC?BC.valueOf:void 0;var qC=function(e){return HC?Object(HC.call(e)):{}};var UC=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return rC(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return FC(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 iC(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 YC(e);case"[object Symbol]":return qC(e)}};var VC=function(e){return Fw(e)&&"[object Map]"==kx(e)},WC=J_&&J_.isMap,GC=WC?V_(WC):VC;var $C=function(e){return Fw(e)&&"[object Set]"==kx(e)},KC=J_&&J_.isSet,JC=KC?V_(KC):$C,XC="[object Arguments]",ZC="[object Function]",QC="[object Object]",ek={};ek[XC]=ek["[object Array]"]=ek["[object ArrayBuffer]"]=ek["[object DataView]"]=ek["[object Boolean]"]=ek["[object Date]"]=ek["[object Float32Array]"]=ek["[object Float64Array]"]=ek["[object Int8Array]"]=ek["[object Int16Array]"]=ek["[object Int32Array]"]=ek["[object Map]"]=ek["[object Number]"]=ek[QC]=ek["[object RegExp]"]=ek["[object Set]"]=ek["[object String]"]=ek["[object Symbol]"]=ek["[object Uint8Array]"]=ek["[object Uint8ClampedArray]"]=ek["[object Uint16Array]"]=ek["[object Uint32Array]"]=!0,ek["[object Error]"]=ek[ZC]=ek["[object WeakMap]"]=!1;var tk=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!Sb(t))return t;var d=hb(t);if(d){if(s=RC(t),!l)return oC(t,s)}else{var h=kx(t),f=h==ZC||"[object GeneratorFunction]"==h;if(Y_(t))return nC(t,l);if(h==QC||h==XC||f&&!o){if(s=c||f?{}:uC(t),!l)return c?PC(t,LC(s,t)):AC(t,OC(s,t))}else{if(!ek[h])return o?t:{};s=UC(t,h,l)}}a||(a=new w_);var p=a.get(t);if(p)return p;a.set(t,s),JC(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):GC(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?IC:lx:c?JE:sx)(t);return MC(g||t,(function(i,o){g&&(i=t[o=i]),YE(s,o,e(i,n,r,o,t,a))})),s};var nk=function(e){return tk(e,4)};var rk=function(e){return tk(e,5)},ik=Object.prototype,ok=ik.hasOwnProperty,ak=o_((function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&_E(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=JE(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||tw(u,ik[c])&&!ok.call(e,c))&&(e[c]=o[c])}return e})),sk=ak;var lk=function e(t,n,r,i,o,a){return Sb(t)&&Sb(n)&&(a.set(n,t),_C(t,n,void 0,e,a),a.delete(n)),t},ck=xC((function(e,t,n,r){_C(e,t,n,r)})),uk=ck,dk=o_((function(e){return e.push(void 0,lk),Kw(uk,void 0,e)}));function hk(e,...t){t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((n=>{"constructor"!==n&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))}))}))}const fk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};const pk=/^\s*class\s+/.test(`${class{}}`)||/^\s*class\s*\{/.test(`${class{}}`);function gk(e,t){let n;return pk?n=class extends t{}:(n=function(){return t.apply(this,arguments)},function(e,t){function n(){this.constructor=e}fk(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,t)),Object.defineProperty(n,"name",{value:e}),n}function mk(e){return"__proto__"===e}function vk(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 yk(e,t,n,r="/"){const i=Array.isArray(t)?t:t.split(r),o=i.pop();if(o&&!mk(o)){let t=e;i.forEach((e=>{mk(e)||(null==t[e]&&(t[e]={}),t=t[e])})),t[o]=n}return e}function bk(e,t,n="/"){const r=Array.isArray(t)?t.slice():t.split(n),i=r.pop();if(i)if(r.length>0){const t=vk(e,r);t&&delete t[i]}else delete e[i];return e}var wk=function(e){return function(t){return null==e?void 0:e[t]}},_k=wk({"&":"&","<":"<",">":">",'"':""","'":"'"}),xk=/[&<>"']/g,Ek=RegExp(xk.source);var Ck=function(e){return(e=Xx(e))&&Ek.test(e)?e.replace(xk,_k):e},kk=(wk({"&":"&","<":"<",">":">",""":'"',"'":"'"}),/&(?:amp|lt|gt|quot|#39);/g);RegExp(kk.source);var Sk=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e},Tk=/\s/;var Mk=function(e){for(var t=e.length;t--&&Tk.test(e.charAt(t)););return t},Ok=/^\s+/;var Lk=function(e){return e?e.slice(0,Mk(e)+1).replace(Ok,""):e},Ak=/^[-+]0x[0-9a-f]+$/i,Dk=/^0b[01]+$/i,Nk=/^0o[0-7]+$/i,Pk=parseInt;var Ik=function(e){if("number"==typeof e)return e;if(l_(e))return NaN;if(Sb(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Sb(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Lk(e);var n=Dk.test(e);return n||Nk.test(e)?Pk(e.slice(2),n?2:8):Ak.test(e)?NaN:+e};var jk=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 o=Array(i);++r<i;)o[r]=e[r+t];return o};var Rk=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:jk(e,t,n)},Fk=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var zk=function(e){return Fk.test(e)};var Yk=function(e){return Fw(e)&&"[object RegExp]"==kb(e)},Bk=J_&&J_.isRegExp;Bk&&V_(Bk);var Hk=function(e){return e.split("")},qk="\\ud800-\\udfff",Uk="["+qk+"]",Vk="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Wk="\\ud83c[\\udffb-\\udfff]",Gk="[^"+qk+"]",$k="(?:\\ud83c[\\udde6-\\uddff]){2}",Kk="[\\ud800-\\udbff][\\udc00-\\udfff]",Jk="(?:"+Vk+"|"+Wk+")"+"?",Xk="[\\ufe0e\\ufe0f]?",Zk=Xk+Jk+("(?:\\u200d(?:"+[Gk,$k,Kk].join("|")+")"+Xk+Jk+")*"),Qk="(?:"+[Gk+Vk+"?",Vk,$k,Kk,Uk].join("|")+")",eS=RegExp(Wk+"(?="+Wk+")|"+Qk+Zk,"g");var tS=function(e){return e.match(eS)||[]};var nS=function(e){return zk(e)?tS(e):Hk(e)};Math.floor;aE("length");var rS="\\ud800-\\udfff",iS="["+rS+"]",oS="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",aS="\\ud83c[\\udffb-\\udfff]",sS="[^"+rS+"]",lS="(?:\\ud83c[\\udde6-\\uddff]){2}",cS="[\\ud800-\\udbff][\\udc00-\\udfff]",uS="(?:"+oS+"|"+aS+")"+"?",dS="[\\ufe0e\\ufe0f]?",hS=dS+uS+("(?:\\u200d(?:"+[sS,lS,cS].join("|")+")"+dS+uS+")*"),fS="(?:"+[sS+oS+"?",oS,lS,cS,iS].join("|")+")";RegExp(aS+"(?="+aS+")|"+fS+hS,"g");Math.ceil;Math.ceil,Math.floor;var pS=xC((function(e,t,n,r){yC(t,JE(t),e,r)})),gS=pS;var mS=function(e){if(!Fw(e))return!1;var t=kb(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!mC(e)},vS=o_((function(e,t){try{return Kw(e,void 0,t)}catch(e){return mS(e)?e:new Error(e)}})),yS=vS;var bS=function(e,t){return Gx(t,(function(t){return e[t]}))},wS=Object.prototype,_S=wS.hasOwnProperty;var xS=function(e,t,n,r){return void 0===e||tw(e,wS[n])&&!_S.call(r,n)?t:e},ES={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};var CS=function(e){return"\\"+ES[e]},kS=/<%=([\s\S]+?)%>/g,SS={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:kS,variable:"",imports:{_:{escape:Ck}}},TS=/\b__p \+= '';/g,MS=/\b(__p \+=) '' \+/g,OS=/(__e\(.*?\)|\b__t\)) \+\n'';/g,LS=/[()=,{}\[\]\/\s]/,AS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,DS=/($^)/,NS=/['\n\r\u2028\u2029\\]/g,PS=Object.prototype.hasOwnProperty;var IS=function(e,t,n){var r=SS.imports._.templateSettings||SS;n&&_E(e,t,n)&&(t=void 0),e=Xx(e),t=gS({},t,r,xS);var i,o,a=gS({},t.imports,r.imports,xS),s=sx(a),l=bS(a,s),c=0,u=t.interpolate||DS,d="__p += '",h=RegExp((t.escape||DS).source+"|"+u.source+"|"+(u===kS?AS:DS).source+"|"+(t.evaluate||DS).source+"|$","g"),f=PS.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(h,(function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(c,l).replace(NS,CS),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),d+="';\n";var p=PS.call(t,"variable")&&t.variable;if(p){if(LS.test(p))throw new Error("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(TS,""):d).replace(MS,"$1").replace(OS,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=yS((function(){return Function(s,f+"return "+d).apply(void 0,l)}));if(g.source=d,mS(g))throw g;return g},jS=0;var RS=function(e){var t=++jS;return Xx(e)+t};var FS=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n},zS=wk({"À":"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"}),YS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,BS=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var HS=function(e){return(e=Xx(e))&&e.replace(YS,zS).replace(BS,"")},qS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var US=function(e){return e.match(qS)||[]},VS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var WS=function(e){return VS.test(e)},GS="\\ud800-\\udfff",$S="\\u2700-\\u27bf",KS="a-z\\xdf-\\xf6\\xf8-\\xff",JS="A-Z\\xc0-\\xd6\\xd8-\\xde",XS="\\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",ZS="["+XS+"]",QS="\\d+",eT="["+$S+"]",tT="["+KS+"]",nT="[^"+GS+XS+QS+$S+KS+JS+"]",rT="(?:\\ud83c[\\udde6-\\uddff]){2}",iT="[\\ud800-\\udbff][\\udc00-\\udfff]",oT="["+JS+"]",aT="(?:"+tT+"|"+nT+")",sT="(?:"+oT+"|"+nT+")",lT="(?:['’](?:d|ll|m|re|s|t|ve))?",cT="(?:['’](?:D|LL|M|RE|S|T|VE))?",uT="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",dT="[\\ufe0e\\ufe0f]?",hT=dT+uT+("(?:\\u200d(?:"+["[^"+GS+"]",rT,iT].join("|")+")"+dT+uT+")*"),fT="(?:"+[eT,rT,iT].join("|")+")"+hT,pT=RegExp([oT+"?"+tT+"+"+lT+"(?="+[ZS,oT,"$"].join("|")+")",sT+"+"+cT+"(?="+[ZS,oT+aT,"$"].join("|")+")",oT+"?"+aT+"+"+lT,oT+"+"+cT,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",QS,fT].join("|"),"g");var gT=function(e){return e.match(pT)||[]};var mT=function(e,t,n){return e=Xx(e),void 0===(t=n?void 0:t)?WS(e)?gT(e):US(e):e.match(t)||[]},vT=RegExp("['’]","g");var yT=function(e){return function(t){return FS(mT(HS(t).replace(vT,"")),e,"")}};var bT=function(e){return function(t){t=Xx(t);var n=zk(t)?nS(t):void 0,r=n?n[0]:t.charAt(0),i=n?Rk(n,1).join(""):t.slice(1);return r[e]()+i}},wT=bT("toUpperCase"),_T=yT((function(e,t,n){return e+(n?" ":"")+wT(t)})),xT=_T;var ET=function(e){return wT(Xx(e).toLowerCase())},CT=yT((function(e,t,n){return t=t.toLowerCase(),e+(n?ET(t):t)})),kT=CT,ST=yT((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),TT=ST,MT=yT((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),OT=MT,LT=bT("toLowerCase");const AT=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},DT=AT((e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase())),NT=AT((e=>xT(kT(e)).replace(/ /g,"")));AT((e=>TT(e).replace(/ /g,"_"))),AT((e=>OT(e).replace(/ /g,"."))),AT((e=>OT(e).replace(/ /g,"/"))),AT((e=>wT(OT(e)))),AT((e=>xT(kT(e))));function PT(e){let t=2166136261,n=!1,r=e;for(let e=0,i=r.length;e<i;e+=1){let i=r.charCodeAt(e);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}function IT(){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}function jT(e,t={}){const n=$y().parseHTML(e,null,!1);return n.forEach((e=>{const t=e;if(t){const e=t.attributes;if(e)for(let n=0,r=e.length;n<r;n+=1){const r=e.item(n);if(r){const e=r.value.toLowerCase(),n=r.name.toLowerCase();(n.startsWith("on")||e.startsWith("javascript:")||e.startsWith("data:")||e.startsWith("vbscript:"))&&t.removeAttribute(n)}}}})),t.raw?n:$y()("<div/>").append(n).html()}function RT(e,t,n){let r=new Array(t.length+1),i=new Array(t.length+1);const o=n+1;for(let e=0;e<=t.length;e+=1)r[e]=e;for(let a=1;a<=e.length;a+=1){const s=e.charCodeAt(a-1),l=a>n?a-n:1,c=t.length>n+a?n+a:t.length;i[0]=a;let u=a;for(let e=1;e<l;e+=1)i[e]=o;for(let e=l;e<=c;e+=1){const n=s===t.charCodeAt(e-1)?r[e-1]:Math.min(r[e]+1,i[e-1]+1,r[e-1]+2);i[e]=n,u=Math.min(u,n)}for(let e=c+1;e<=t.length;e+=1)i[e]=o;if(u>n)return;const d=r;r=i,i=d}const a=r[t.length];return a>n?void 0:a}var FT=function(e){return"number"==typeof e||Fw(e)&&"[object Number]"==kb(e)};gb.isFinite;var zT=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=Ik(n))==n?n:0),void 0!==t&&(t=(t=Ik(t))==t?t:0),Sk(Ik(e),t,n)};Math.max,Math.min;gb.parseInt;function YT(e){return"string"==typeof e&&"%"===e.slice(-1)}function BT(e,t){if(null==e)return 0;let n;if("string"==typeof e){if(n=parseFloat(e),YT(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 HT(e,t){const n=parseFloat(e);if(Number.isNaN(n))return null;let r;if(null==t)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 qT(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}}var UT=function(){return gb.Date.now()},VT=Math.max,WT=Math.min;var GT=function(e,t,n){var r,i,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function p(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e=UT();if(p(e))return m(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?WT(n,o-(e-c)):n}(e))}function m(e){return s=void 0,h&&r?f(e):(r=i=void 0,a)}function v(){var e=UT(),n=p(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(g,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Ik(t)||0,Sb(n)&&(u=!!n.leading,o=(d="maxWait"in n)?VT(Ik(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:m(UT())},v};var $T=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)},KT=o_((function(e,t){return $T(e,1,t)}));function JT(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 XT(e,t,...n){return JT(e,t,n)}function ZT(e){return null!=e&&(e instanceof Promise||function(e){return"object"==typeof e&&e.then&&"function"==typeof e.then}(e))}function QT(...e){const t=[];e.forEach((e=>{Array.isArray(e)?t.push(...e):t.push(e)}));if(t.some((e=>ZT(e)))){const e=t.map((e=>ZT(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))}const eM=/[\t\r\n\f]/g,tM=/\S+/g,nM=e=>` ${e} `;function rM(e){return e&&e.getAttribute&&e.getAttribute("class")||""}function iM(e,t){if(null==e||null==t)return!1;const n=nM(rM(e)),r=nM(t);return 1===e.nodeType&&n.replace(eM," ").includes(r)}function oM(e,t){if(null!=e&&null!=t){if("function"==typeof t)return oM(e,t(rM(e)));if("string"==typeof t&&1===e.nodeType){const n=t.match(tM)||[],r=nM(rM(e)).replace(eM," ");let i=n.reduce(((e,t)=>e.indexOf(nM(t))<0?`${e}${t} `:e),r);i=i.trim(),r!==i&&e.setAttribute("class",i)}}}function aM(e,t){if(null!=e){if("function"==typeof t)return aM(e,t(rM(e)));if((!t||"string"==typeof t)&&1===e.nodeType){const n=(t||"").match(tM)||[],r=nM(rM(e)).replace(eM," ");let i=n.reduce(((e,t)=>{const n=nM(t);return e.indexOf(n)>-1?e.replace(n," "):e}),r);i=t?i.trim():"",r!==i&&e.setAttribute("class",i)}}}function sM(e,t,n){if(null!=e&&null!=t)if(null==n||"string"!=typeof t){if("function"==typeof t)return sM(e,t(rM(e),n),n);if("string"==typeof t){(t.match(tM)||[]).forEach((t=>{iM(e,t)?aM(e,t):oM(e,t)}))}}else n?oM(e,t):aM(e,t)}let lM=0;function cM(e){return null!=e.id&&""!==e.id||(e.id=(lM+=1,`v${lM}`)),e.id}function uM(e){return null!=e&&("function"==typeof e.getScreenCTM&&e instanceof SVGElement)}const dM={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"};function hM(e,t=document){return t.createElement(e)}function fM(e,t=dM.xhtml,n=document){return n.createElementNS(t,e)}function pM(e,t=document){return fM(e,dM.svg,t)}function gM(e){if(e){const t=`<svg xmlns="${dM.svg}" xmlns:xlink="${dM.xlink}" version="1.1">${e}</svg>`,{documentElement:n}=mM(t,{async:!1});return n}const t=document.createElementNS(dM.svg,"svg");return t.setAttributeNS(dM.xmlns,"xmlns:xlink",dM.xlink),t.setAttribute("version","1.1"),t}function mM(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 vM(e,t=!0){const n=e.nodeName;return t?n.toLowerCase():n.toUpperCase()}function yM(e){let t=0,n=e.previousSibling;for(;n;)1===n.nodeType&&(t+=1),n=n.previousSibling;return t}function bM(e,t){return e.querySelector(t)}function wM(e,t,n){const r=e.ownerSVGElement;let i=e.parentNode;for(;i&&i!==n&&i!==r;){if(iM(i,t))return i;i=i.parentNode}return null}function _M(e,t){const n=t&&t.parentNode;return e===n||!!(n&&1===n.nodeType&&16&e.compareDocumentPosition(n))}function xM(e){e.parentNode&&e.parentNode.removeChild(e)}function EM(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function CM(e,t){(Array.isArray(t)?t:[t]).forEach((t=>{null!=t&&e.appendChild(t)}))}function kM(e,t){const n=e.parentNode;if(n){(Array.isArray(t)?t:[t]).forEach((t=>{null!=t&&n.insertBefore(t,e)}))}}function SM(e){try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}function TM(e){return!(!e||!SM(e))&&(!!["a","button"].includes(vM(e))||("button"===e.getAttribute("role")||"button"===e.getAttribute("type")||TM(e.parentNode)))}function MM(e){if("input"===vM(e)){const t=e.getAttribute("type");if(null==t||["text","password","number","email","search","tel","url"].includes(t))return!0}return!1}const OM=["viewBox","attributeName","attributeType","repeatCount"];function LM(e,t){const n=PM(t);n.ns?e.hasAttributeNS(n.ns,n.local)&&e.removeAttributeNS(n.ns,n.local):e.hasAttribute(t)&&e.removeAttribute(t)}function AM(e,t,n){if(null==n)return LM(e,t);const r=PM(t);r.ns&&"string"==typeof n?e.setAttributeNS(r.ns,t,n):"id"===t?e.id=`${n}`:e.setAttribute(t,`${n}`)}function DM(e,t){Object.keys(t).forEach((n=>{AM(e,n,t[n])}))}function NM(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?DM(e,t):AM(e,t,n)}function PM(e){if(-1!==e.indexOf(":")){const t=e.split(":");return{ns:dM[t[0]],local:t[1]}}return{ns:null,local:e}}function IM(e){const t={};return Object.keys(e).forEach((n=>{const r=OM.includes(n)?n:DT(n);t[r]=e[n]})),t}function jM(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 RM(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 o,a;r&&i?(o=e[n],a=t[n]):r?(o=e[n],a=jM(t[n])):i?(o=jM(e[n]),a=t[n]):(o=jM(e[n]),a=jM(t[n])),e[n]=RM(o,a)}else e[n]=t[n]})),e}function FM(e,t,n={}){const r=n.offset||0,i=[],o=[];let a,s,l=null;for(let c=0;c<e.length;c+=1){a=o[c]=e[c];for(let i=0,s=t.length;i<s;i+=1){const s=t[i],l=s.start+r,u=s.end+r;c>=l&&c<u&&("string"==typeof a?a=o[c]={t:e[c],attrs:s.attrs}:a.attrs=RM(RM({},a.attrs),s.attrs),n.includeAnnotationIndices&&(null==a.annotations&&(a.annotations=[]),a.annotations.push(i)))}s=o[c-1],s?Sb(a)&&Sb(s)?JSON.stringify(a.attrs)===JSON.stringify(s.attrs)?l.t+=a.t:(i.push(l),l=a):Sb(a)||Sb(s)?(i.push(l),l=a):l=(l||"")+a:l=a}return null!=l&&i.push(l),i}var zM,YM;let BM;!function(e){function t(e){return null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e}function n(e){return Array.isArray(e)}function r(e,i){if(e===i)return!0;if(t(e)||t(i))return!1;const o=n(e),a=n(i);return o===a&&(o&&a?function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n+=1)if(!r(e[n],t[n]))return!1;return!0}(e,i):function(e,t){if(e===t)return!0;for(const n in e)if(!(n in t))return!1;for(const n in t)if(!(n in e))return!1;for(const n in e)if(!r(e[n],t[n]))return!1;return!0}(e,i))}function i(e){return t(e)?e:n(e)?function(e){const t=new Array(e.length);for(let n=0,r=e.length;n<r;n+=1)t[n]=i(e[n]);return t}(e):function(e){const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}(e)}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=function(e){return!t(e)&&!n(e)},e.deepEqual=r,e.deepCopy=i}(zM||(zM={})),function(e){function t(e){const t="data:";return e.substr(0,5)===t}function n(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],o=t.slice(n+1);let a;a=r.indexOf("base64")>=0?atob(o):unescape(encodeURIComponent(o));const s=new Uint8Array(a.length);for(let e=0;e<a.length;e+=1)s[e]=a.charCodeAt(e);return new Blob([s],{type:i})}function r(e,t){const n=window.navigator.msSaveBlob;if(n)n(e,t);else{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),window.URL.revokeObjectURL(n)}}function i(e){const t=parseFloat(e);return Number.isNaN(t)?null:t}e.isDataUrl=t,e.imageToDataUri=function(e,n){if(!e||t(e))return void setTimeout((()=>n(null,e)));const r=()=>{n(new Error(`Failed to load image: ${e}`))},i=window.FileReader?e=>{if(200===e.status){const t=new FileReader;t.onload=e=>{const t=e.target.result;n(null,t)},t.onerror=r,t.readAsDataURL(e.response)}else r()}:t=>{if(200===t.status){let r=e.split(".").pop()||"png";"svg"===r&&(r="svg+xml");const i=`data:image/${r};base64,`,o=new Uint8Array(t.response),a=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("")})(o));n(null,a)}else r()},o=new XMLHttpRequest;o.responseType=window.FileReader?"blob":"arraybuffer",o.open("GET",e,!0),o.addEventListener("error",r),o.addEventListener("load",(()=>i(o))),o.send()},e.dataUriToBlob=n,e.downloadBlob=r,e.downloadDataUri=function(e,t){r(n(e),t)},e.svgToDataUrl=function(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?i(n[t]):null),o=t=>{const n=e.match(t);return n&&n[2]?i(n[2]):null};let a=t.width;if(null==a&&(a=o(/<svg[^>]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==a&&(a=r(2)),null==a)throw new Error("Can not parse width from svg string");let s=t.height;if(null==s&&(s=o(/<svg[^>]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==s&&(s=r(3)),null==s)throw new Error("Can not parse height from svg string");return`data:image/svg+xml,${encodeURIComponent(e).replace(/'/g,"%27").replace(/"/g,"%22")}`}}(YM||(YM={}));const HM={px(e){return e},mm(e){return BM*e},cm(e){return BM*e*10},in(e){return BM*e*25.4},pt(e){return BM*(25.4*e/72)},pc(e){return BM*(25.4*e/6)}};var qM;!function(e){function t(e,t,n){const r=$y()("<div/>").css({display:"inline-block",position:"absolute",left:-15e3,top:-15e3,width:e+(n||""),height:t+(n||"")}).appendTo(document.body),i={width:r.width()||0,height:r.height()||0};return r.remove(),i}e.measure=t,e.toPx=function(e,n){null==BM&&(BM=t("1","1","mm").width);const r=n?HM[n]:null;return r?r(e):e}}(qM||(qM={}));const UM=function(){let e;const t=window;if(null!=t&&(e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame,null!=e&&(e=e.bind(t))),null==e){let t=0;e=e=>{const n=(new Date).getTime(),r=Math.max(0,16-(n-t)),i=setTimeout((()=>{e(n+r)}),r);return t=n+r,i}}return e}(),VM=function(){let e;const t=window;return null!=t&&(e=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame||t.msCancelAnimationFrame||t.msCancelRequestAnimationFrame||t.oCancelAnimationFrame||t.oCancelRequestAnimationFrame||t.mozCancelAnimationFrame||t.mozCancelRequestAnimationFrame,e&&(e=e.bind(t))),null==e&&(e=clearTimeout),e}();document&&document.createElement("div").style;function WM(e,t){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(){const e=document;e.selection||window.getSelection}();var GM;function $M(e,t=0){return Number.isInteger(e)?e:+e.toFixed(t)}function KM(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 JM(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 XM(e,t){return t*Math.round(e/t)}function ZM(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 QM(e,t){const n=e.x-t.x,r=e.y-t.y;return n*n+r*r}!function(e){e.toDeg=function(e){return 180*e/Math.PI%360},e.toRad=function(e,t=!1){return(t?e:e%360)*Math.PI/180},e.normalize=function(e){return e%360+(e<0?360:0)}}(GM||(GM={}));class eO{valueOf(){return this.toJSON()}toString(){return JSON.stringify(this.toJSON())}}class tO extends eO{constructor(e,t){super(),this.x=null==e?0:e,this.y=null==t?0:t}get[Symbol.toStringTag](){return tO.toStringTag}round(e=0){return this.x=$M(this.x,e),this.y=$M(this.y,e),this}add(e,t){const n=tO.create(e,t);return this.x+=n.x,this.y+=n.y,this}update(e,t){const n=tO.create(e,t);return this.x=n.x,this.y=n.y,this}translate(e,t){const n=tO.create(e,t);return this.x+=n.x,this.y+=n.y,this}rotate(e,t){const n=tO.rotate(this,e,t);return this.x=n.x,this.y=n.y,this}scale(e,t,n=new tO){const r=tO.create(n);return this.x=r.x+e*(this.x-r.x),this.y=r.y+t*(this.y-r.y),this}closest(e){if(1===e.length)return tO.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?tO.create(t):null}distance(e){return Math.sqrt(this.squaredDistance(e))}squaredDistance(e){const t=tO.create(e),n=this.x-t.x,r=this.y-t.y;return n*n+r*r}manhattanDistance(e){const t=tO.create(e);return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}magnitude(){return Math.sqrt(this.x*this.x+this.y*this.y)||.01}theta(e=new tO){const t=tO.create(e),n=-(t.y-this.y),r=t.x-this.x;let i=Math.atan2(n,r);return i<0&&(i=2*Math.PI+i),180*i/Math.PI}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}vectorAngle(e){return new tO(0,0).angleBetween(this,e)}toPolar(e){return this.update(tO.toPolar(this,e)),this}changeInAngle(e,t,n=new tO){return this.clone().translate(-e,-t).theta(n)-this.theta(n)}adhereToRect(e){return ZM(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}bearing(e){const t=tO.create(e),n=GM.toRad(this.y),r=GM.toRad(t.y),i=this.x,o=t.x,a=GM.toRad(o-i),s=Math.sin(a)*Math.cos(r),l=Math.cos(n)*Math.sin(r)-Math.sin(n)*Math.cos(r)*Math.cos(a);let c=GM.toDeg(Math.atan2(s,l))-22.5;return c<0&&(c+=360),c=parseInt(c/45,10),["NE","E","SE","S","SW","W","NW","N"][c]}cross(e,t){if(null!=e&&null!=t){const n=tO.create(e),r=tO.create(t);return(r.x-this.x)*(n.y-this.y)-(r.y-this.y)*(n.x-this.x)}return NaN}dot(e){const t=tO.create(e);return this.x*t.x+this.y*t.y}diff(e,t){if("number"==typeof e)return new tO(this.x-e,this.y-t);const n=tO.create(e);return new tO(this.x-n.x,this.y-n.y)}lerp(e,t){const n=tO.create(e);return new tO((1-t)*this.x+t*n.x,(1-t)*this.y+t*n.y)}normalize(e=1){const t=e/this.magnitude();return this.scale(t,t)}move(e,t){const n=tO.create(e),r=GM.toRad(n.theta(this));return this.translate(Math.cos(r)*t,-Math.sin(r)*t)}reflection(e){return tO.create(e).move(this,this.distance(e))}snapToGrid(e,t){return this.x=XM(this.x,e),this.y=XM(this.y,null==t?e:t),this}equals(e){const t=tO.create(e);return null!=t&&t.x===this.x&&t.y===this.y}clone(){return tO.clone(this)}toJSON(){return tO.toJSON(this)}serialize(){return`${this.x} ${this.y}`}}!function(e){e.toStringTag=`X6.Geometry.${e.name}`,e.isPoint=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"number"==typeof r.x&&"number"==typeof r.y&&"function"==typeof r.toPolar}}(tO||(tO={})),function(e){e.isPointLike=function(e){return null!=e&&"object"==typeof e&&"number"==typeof e.x&&"number"==typeof e.y},e.isPointData=function(e){return null!=e&&Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}}(tO||(tO={})),function(e){function t(t){return e.isPoint(t)?new e(t.x,t.y):Array.isArray(t)?new e(t[0],t[1]):new e(t.x,t.y)}function n(e,t){return e===t||null!=e&&null!=t&&(e.x===t.x&&e.y===t.y)}function r(n,r,i,o=new e){const a=t(n),s=t(o),l=a.x-s.x,c=a.y-s.y,u=c*r+l*i;return new e(l*r-c*i+s.x,u+s.y)}e.create=function(n,r){return null==n||"number"==typeof n?new e(n,r):t(n)},e.clone=t,e.toJSON=function(t){return e.isPoint(t)?{x:t.x,y:t.y}:Array.isArray(t)?{x:t[0],y:t[1]}:{x:t.x,y:t.y}},e.fromPolar=function(n,r,i=new e){let o=Math.abs(n*Math.cos(r)),a=Math.abs(n*Math.sin(r));const s=t(i),l=GM.normalize(GM.toDeg(r));return l<90?a=-a:l<180?(o=-o,a=-a):l<270&&(o=-o),new e(s.x+o,s.y+a)},e.toPolar=function(n,r=new e){const i=t(n),o=t(r),a=i.x-o.x,s=i.y-o.y;return new e(Math.sqrt(a*a+s*s),GM.toRad(o.theta(i)))},e.equals=n,e.equalPoints=function(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 r=0,i=e.length;r<i;r+=1)if(!n(e[r],t[r]))return!1;return!0},e.random=function(t,n,r,i){return new e(KM(t,n),KM(r,i))},e.rotate=function(e,t,n){const i=GM.toRad(GM.normalize(-t)),o=Math.sin(i);return r(e,Math.cos(i),o,n)},e.rotateEx=r}(tO||(tO={}));class nO extends eO{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}get[Symbol.toStringTag](){return nO.toStringTag}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 tO(this.x,this.y)}get topLeft(){return new tO(this.x,this.y)}get topCenter(){return new tO(this.x+this.width/2,this.y)}get topRight(){return new tO(this.x+this.width,this.y)}get center(){return new tO(this.x+this.width/2,this.y+this.height/2)}get bottomLeft(){return new tO(this.x,this.y+this.height)}get bottomCenter(){return new tO(this.x+this.width/2,this.y+this.height)}get bottomRight(){return new tO(this.x+this.width,this.y+this.height)}get corner(){return new tO(this.x+this.width,this.y+this.height)}get rightMiddle(){return new tO(this.x+this.width,this.y+this.height/2)}get leftMiddle(){return new tO(this.x,this.y+this.height/2)}get topLine(){return new rO(this.topLeft,this.topRight)}get rightLine(){return new rO(this.topRight,this.bottomRight)}get bottomLine(){return new rO(this.bottomLeft,this.bottomRight)}get leftLine(){return new rO(this.topLeft,this.bottomLeft)}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(e){if(!e)return this.clone();const t=GM.toRad(e),n=Math.abs(Math.sin(t)),r=Math.abs(Math.cos(t)),i=this.width*r+this.height*n,o=this.width*n+this.height*r;return new nO(this.x+(this.width-i)/2,this.y+(this.height-o)/2,i,o)}round(e=0){return this.x=$M(this.x,e),this.y=$M(this.y,e),this.width=$M(this.width,e),this.height=$M(this.height,e),this}add(e,t,n,r){const i=nO.create(e,t,n,r),o=Math.min(this.x,i.x),a=Math.min(this.y,i.y),s=Math.max(this.x+this.width,i.x+i.width),l=Math.max(this.y+this.height,i.y+i.height);return this.x=o,this.y=a,this.width=s-o,this.height=l-a,this}update(e,t,n,r){const i=nO.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=tO.create(e,t);return this.x+=n.x,this.y+=n.y,this}scale(e,t,n=new tO){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=GM.toRad(e),r=Math.cos(n),i=Math.sin(n);let o=this.getOrigin(),a=this.getTopRight(),s=this.getBottomRight(),l=this.getBottomLeft();o=tO.rotateEx(o,r,i,t),a=tO.rotateEx(a,r,i,t),s=tO.rotateEx(s,r,i,t),l=tO.rotateEx(l,r,i,t);const c=new nO(o.x,o.y,0,0);c.add(a.x,a.y,0,0),c.add(s.x,s.y,0,0),c.add(l.x,l.y,0,0),this.update(c)}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}moveAndExpand(e){const t=nO.clone(e);return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this}getMaxScaleToFit(e,t=this.center){const n=nO.clone(e),r=t.x,i=t.y;let o=1/0,a=1/0,s=1/0,l=1/0,c=1/0,u=1/0,d=1/0,h=1/0;const f=n.topLeft;f.x<r&&(o=(this.x-r)/(f.x-r)),f.y<i&&(c=(this.y-i)/(f.y-i));const p=n.bottomRight;p.x>r&&(a=(this.x+this.width-r)/(p.x-r)),p.y>i&&(u=(this.y+this.height-i)/(p.y-i));const g=n.topRight;g.x>r&&(s=(this.x+this.width-r)/(g.x-r)),g.y<i&&(d=(this.y-i)/(g.y-i));const m=n.bottomLeft;return m.x<r&&(l=(this.x-r)/(m.x-r)),m.y>i&&(h=(this.y+this.height-i)/(m.y-i)),{sx:Math.min(o,a,s,l),sy:Math.min(c,u,d,h)}}getMaxUniformScaleToFit(e,t=this.center){const n=this.getMaxScaleToFit(e,t);return Math.min(n.sx,n.sy)}containsPoint(e,t){return ZM(this,tO.create(e,t))}containsRect(e,t,n,r){const i=nO.create(e,t,n,r),o=this.x,a=this.y,s=this.width,l=this.height,c=i.x,u=i.y,d=i.width,h=i.height;return 0!==s&&0!==l&&0!==d&&0!==h&&(c>=o&&u>=a&&c+d<=o+s&&u+h<=a+l)}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}intersectsWithLineFromCenterToPoint(e,t){const n=tO.clone(e),r=this.center;let i=null;null!=t&&0!==t&&n.rotate(t,r);const o=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],a=new rO(r,n);for(let e=o.length-1;e>=0;e-=1){const t=o[e].intersectsWithLine(a);if(null!==t){i=t;break}}return i&&null!=t&&0!==t&&i.rotate(-t,r),i}intersectsWithRect(e,t,n,r){const i=nO.create(e,t,n,r);if(!this.isIntersectWithRect(i))return null;const o=this.origin,a=this.corner,s=i.origin,l=i.corner,c=Math.max(o.x,s.x),u=Math.max(o.y,s.y);return new nO(c,u,Math.min(a.x,l.x)-c,Math.min(a.y,l.y)-u)}isIntersectWithRect(e,t,n,r){const i=nO.create(e,t,n,r),o=this.origin,a=this.corner,s=i.origin,l=i.corner;return!(l.x<=o.x||l.y<=o.y||s.x>=a.x||s.y>=a.y)}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}union(e){const t=nO.clone(e),n=this.origin,r=this.corner,i=t.origin,o=t.corner,a=Math.min(n.x,i.x),s=Math.min(n.y,i.y),l=Math.max(r.x,o.x),c=Math.max(r.y,o.y);return new nO(a,s,l-a,c-s)}getNearestSideToPoint(e){const t=tO.clone(e),n=t.x-this.x,r=this.x+this.width-t.x,i=t.y-this.y;let o=n,a="left";return r<o&&(o=r,a="right"),i<o&&(o=i,a="top"),this.y+this.height-t.y<o&&(a="bottom"),a}getNearestPointToPoint(e){const t=tO.clone(e);if(this.containsPoint(t)){switch(this.getNearestSideToPoint(t)){case"right":return new tO(this.x+this.width,t.y);case"left":return new tO(this.x,t.y);case"bottom":return new tO(t.x,this.y+this.height);case"top":return new tO(t.x,this.y)}}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 nO(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}`}}!function(e){e.toStringTag=`X6.Geometry.${e.name}`,e.isRectangle=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"number"==typeof r.x&&"number"==typeof r.y&&"number"==typeof r.width&&"number"==typeof r.height&&"function"==typeof r.inflate&&"function"==typeof r.moveAndExpand}}(nO||(nO={})),function(e){e.isRectangleLike=function(e){return null!=e&&"object"==typeof e&&"number"==typeof e.x&&"number"==typeof e.y&&"number"==typeof e.width&&"number"==typeof e.height}}(nO||(nO={})),function(e){function t(t){return e.isRectangle(t)?t.clone():Array.isArray(t)?new e(t[0],t[1],t[2],t[3]):new e(t.x,t.y,t.width,t.height)}e.create=function(n,r,i,o){return null==n||"number"==typeof n?new e(n,r,i,o):t(n)},e.clone=t,e.fromSize=function(t){return new e(0,0,t.width,t.height)},e.fromPositionAndSize=function(t,n){return new e(t.x,t.y,n.width,n.height)},e.fromEllipse=function(t){return new e(t.x-t.a,t.y-t.b,2*t.a,2*t.b)}}(nO||(nO={}));class rO extends eO{constructor(e,t,n,r){super(),"number"==typeof e&&"number"==typeof t?(this.start=new tO(e,t),this.end=new tO(n,r)):(this.start=tO.create(e),this.end=tO.create(t))}get[Symbol.toStringTag](){return rO.toStringTag}get center(){return new tO((this.start.x+this.end.x)/2,(this.start.y+this.end.y)/2)}getCenter(){return this.center}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(e,t){return this.start.rotate(e,t),this.end.rotate(e,t),this}scale(e,t,n){return this.start.scale(e,t,n),this.end.scale(e,t,n),this}length(){return Math.sqrt(this.squaredLength())}squaredLength(){const e=this.start.x-this.end.x,t=this.start.y-this.end.y;return e*e+t*t}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),o=r.clone().rotate(90,n);return n.move(o,e),r.move(i,e),t}vector(){return new tO(this.end.x-this.start.x,this.end.y-this.start.y)}angle(){const e=new tO(this.start.x+1,this.start.y);return this.start.angleBetween(this.end,e)}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 nO(e,t,n-e,r-t)}bearing(){return this.start.bearing(this.end)}closestPoint(e){return this.pointAt(this.closestPointNormalizedLength(e))}closestPointLength(e){return this.closestPointNormalizedLength(e)*this.length()}closestPointTangent(e){return this.tangentAt(this.closestPointNormalizedLength(e))}closestPointNormalizedLength(e){const t=this.vector().dot(new rO(this.start,e).vector()),n=Math.min(1,Math.max(0,t/this.squaredLength()));return Number.isNaN(n)?0:n}pointAt(e){const t=this.start,n=this.end;return e<=0?t.clone():e>=1?n.clone():t.lerp(n,e)}pointAtLength(e){const t=this.start,n=this.end;let r=!0;e<0&&(r=!1,e=-e);const i=this.length();if(e>=i)return r?n.clone():t.clone();const o=(r?e:i-e)/i;return this.pointAt(o)}divideAt(e){const t=this.pointAt(e);return[new rO(this.start,t),new rO(t,this.end)]}divideAtLength(e){const t=this.pointAtLength(e);return[new rO(this.start,t),new rO(t,this.end)]}containsPoint(e){const t=this.start,n=this.end;if(0!==t.cross(e,n))return!1;const r=this.length();return!(new rO(t,e).length()>r)&&!(new rO(e,n).length()>r)}intersect(e,t){const n=e.intersectsWithLine(this,t);return n?Array.isArray(n)?n:[n]:null}intersectsWithLine(e){const t=new tO(this.end.x-this.start.x,this.end.y-this.start.y),n=new tO(e.end.x-e.start.x,e.end.y-e.start.y),r=t.x*n.y-t.y*n.x,i=new tO(e.start.x-this.start.x,e.start.y-this.start.y),o=i.x*n.y-i.y*n.x,a=i.x*t.y-i.y*t.x;if(0===r||o*r<0||a*r<0)return null;if(r>0){if(o>r||a>r)return null}else if(o<r||a<r)return null;return new tO(this.start.x+o*t.x/r,this.start.y+o*t.y/r)}isDifferentiable(){return!this.start.equals(this.end)}pointOffset(e){const t=tO.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=tO.create(e,t);return this.closestPoint(n).squaredDistance(n)}pointDistance(e,t){const n=tO.create(e,t);return this.closestPoint(n).distance(n)}tangentAt(e){if(!this.isDifferentiable())return null;const t=this.start,n=this.end,r=this.pointAt(e),i=new rO(t,n);return i.translate(r.x-t.x,r.y-t.y),i}tangentAtLength(e){if(!this.isDifferentiable())return null;const t=this.start,n=this.end,r=this.pointAtLength(e),i=new rO(t,n);return i.translate(r.x-t.x,r.y-t.y),i}relativeCcw(e,t){const n=tO.create(e,t);let r=n.x-this.start.x,i=n.y-this.start.y;const o=this.end.x-this.start.x,a=this.end.y-this.start.y;let s=r*a-i*o;return 0===s&&(s=r*o+i*a,s>0&&(r-=o,i-=a,s=r*o+i*a,s<0&&(s=0))),s<0?-1:s>0?1:0}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}clone(){return new rO(this.start,this.end)}toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return[this.start.serialize(),this.end.serialize()].join(" ")}}!function(e){e.toStringTag=`X6.Geometry.${e.name}`,e.isLine=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;try{if((null==n||n===e.toStringTag)&&tO.isPoint(r.start)&&tO.isPoint(r.end)&&"function"==typeof r.vector&&"function"==typeof r.bearing&&"function"==typeof r.parallel&&"function"==typeof r.intersect)return!0}catch(e){return!1}return!1}}(rO||(rO={}));class iO extends eO{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}get[Symbol.toStringTag](){return iO.toStringTag}get center(){return new tO(this.x,this.y)}bbox(){return nO.fromEllipse(this)}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=tO.create(e,t),r=n.x-this.x,i=n.y-this.y,o=this.a,a=this.b;return r*r/(o*o)+i*i/(a*a)}containsPoint(e,t){return this.normalizedDistance(e,t)<=1}intersectsWithLine(e){const t=[],n=this.a,r=this.b,i=e.start,o=e.end,a=e.vector(),s=i.diff(new tO(this.x,this.y)),l=new tO(a.x/(n*n),a.y/(r*r)),c=new tO(s.x/(n*n),s.y/(r*r)),u=a.dot(l),d=a.dot(c),h=d*d-u*(s.dot(c)-1);if(h<0)return null;if(h>0){const e=Math.sqrt(h),n=(-d-e)/u,r=(-d+e)/u;if((n<0||n>1)&&(r<0||r>1))return null;n>=0&&n<=1&&t.push(i.lerp(o,n)),r>=0&&r<=1&&t.push(i.lerp(o,r))}else{const e=-d/u;if(!(e>=0&&e<=1))return null;t.push(i.lerp(o,e))}return t}intersectsWithLineFromCenterToPoint(e,t=0){const n=tO.clone(e);t&&n.rotate(t,this.getCenter());const r=n.x-this.x,i=n.y-this.y;let o;if(0===r)return o=this.bbox().getNearestPointToPoint(n),t?o.rotate(-t,this.getCenter()):o;const a=i/r,s=a*a,l=this.a*this.a,c=this.b*this.b;let u=Math.sqrt(1/(1/l+s/c));u=r<0?-u:u;const d=a*u;return o=new tO(this.x+u,this.y+d),t?o.rotate(-t,this.getCenter()):o}tangentTheta(e){const t=tO.clone(e),n=t.x,r=t.y,i=this.a,o=this.b,a=this.bbox().center,s=a.x,l=a.y,c=n>a.x+i/2,u=n<a.x-i/2;let d,h;return c||u?(h=n>a.x?r-30:r+30,d=i*i/(n-s)-i*i*(r-l)*(h-l)/(o*o*(n-s))+s):(d=r>a.y?n+30:n-30,h=o*o/(r-l)-o*o*(n-s)*(d-s)/(i*i*(r-l))+l),new tO(d,h).theta(t)}scale(e,t){return this.a*=e,this.b*=t,this}rotate(e,t){const n=nO.fromEllipse(this);n.rotate(e,t);const r=iO.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=tO.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 iO(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}`}}!function(e){e.toStringTag=`X6.Geometry.${e.name}`,e.isEllipse=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"number"==typeof r.x&&"number"==typeof r.y&&"number"==typeof r.a&&"number"==typeof r.b&&"function"==typeof r.inflate&&"function"==typeof r.normalizedDistance}}(iO||(iO={})),function(e){function t(t){return e.isEllipse(t)?t.clone():Array.isArray(t)?new e(t[0],t[1],t[2],t[3]):new e(t.x,t.y,t.a,t.b)}e.create=function(n,r,i,o){return null==n||"number"==typeof n?new e(n,r,i,o):t(n)},e.parse=t,e.fromRect=function(t){const n=t.center;return new e(n.x,n.y,t.width/2,t.height/2)}}(iO||(iO={}));class oO extends eO{constructor(e){if(super(),null!=e){if("string"==typeof e)return oO.parse(e);this.points=e.map((e=>tO.create(e)))}else this.points=[]}get[Symbol.toStringTag](){return oO.toStringTag}get start(){return 0===this.points.length?null:this.points[0]}get end(){return 0===this.points.length?null:this.points[this.points.length-1]}scale(e,t,n=new tO){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=tO.create(e,t);return this.points.forEach((e=>e.translate(n.x,n.y))),this}bbox(){if(0===this.points.length)return new nO;let e=1/0,t=-1/0,n=1/0,r=-1/0;const i=this.points;for(let o=0,a=i.length;o<a;o+=1){const a=i[o],s=a.x,l=a.y;s<e&&(e=s),s>t&&(t=s),l<n&&(n=l),l>r&&(r=l)}return new nO(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,o=1/0;for(let a=0,s=n-1;a<s;a+=1){const n=new rO(t[a],t[a+1]),s=n.length(),l=n.closestPointNormalizedLength(e),c=n.pointAt(l).squaredDistance(e);c<o&&(o=c,i=r+l*s),r+=s}return i}closestPointNormalizedLength(e){const t=this.closestPointLength(e);if(0===t)return 0;const n=this.length();return 0===n?0:t/n}closestPointTangent(e){const t=this.closestPointLength(e);return this.tangentAtLength(t)}containsPoint(e){if(0===this.points.length)return!1;const t=tO.clone(e),n=t.x,r=t.y,i=this.points,o=i.length;let a=o-1,s=0;for(let l=0;l<o;l+=1){const o=i[a],c=i[l];if(t.equals(o))return!0;const u=new rO(o,c);if(u.containsPoint(e))return!0;if(r<=o.y&&r>c.y||r>o.y&&r<=c.y){const t=o.x-n>c.x-n?o.x-n:c.x-n;if(t>=0){const i=new tO(n+t,r),o=new rO(e,i);u.intersectsWithLine(o)&&(s+=1)}}a=l}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],o=e.intersectsWithLine(new rO(r,i));o&&t.push(o)}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 rO(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 o=0,a=n-1;o<a;o+=1){const n=r?o:a-1-o,s=t[n],l=t[n+1],c=new rO(s,l),u=s.distance(l);if(e<=i+u)return c.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 o=0;for(let a=0,s=n-1;a<s;a+=1){const n=i?a:s-1-a,l=t[n],c=t[n+1],u=new rO(l,c),d=l.distance(c);if(u.isDifferentiable()){if(e<=o+d)return u.tangentAtLength((i?1:-1)*(e-o));r=u}o+=d}if(r){const e=i?1:0;return r.tangentAt(e)}return null}simplify(e={}){const t=this.points;if(t.length<3)return this;const n=e.threshold||0;let r=0;for(;t[r+2];){const e=r+1,i=r+2,o=t[r],a=t[e],s=t[i];new rO(o,s).closestPoint(a).distance(a)<=n?t.splice(e,1):r+=1}return this}toHull(){const e=this.points,t=e.length;if(0===t)return new oO;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]);const r=[];for(let i=0;i<t;i+=1){let t=n.theta(e[i]);0===t&&(t=360),r.push([e[i],i,t])}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)}const i={},o=[],a=e=>`${e[0].toString()}@${e[1]}`;for(;0!==r.length;){const e=r.pop(),t=e[0];if(i[a(e)])continue;let n=!1;for(;!n;)if(o.length<2)o.push(e),n=!0;else{const s=o.pop(),l=s[0],c=o.pop(),u=c[0],d=u.cross(l,t);if(d<0)o.push(c),o.push(s),o.push(e),n=!0;else if(0===d){const e=1e-10,n=l.angleBetween(u,t);Math.abs(n-180)<e||l.equals(t)||u.equals(l)?(i[a(s)]=l,o.push(c)):Math.abs((n+1)%360-1)<e&&(o.push(c),r.push(s))}else i[a(s)]=l,o.push(c)}}let s;o.length>2&&o.pop();let l=-1;for(let e=0,t=o.length;e<t;e+=1){const t=o[e][1];(void 0===s||t<s)&&(s=t,l=e)}let c=[];if(l>0){const e=o.slice(l),t=o.slice(0,l);c=e.concat(t)}else c=o;const u=[];for(let e=0,t=c.length;e<t;e+=1)u.push(c[e][0]);return new oO(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 oO(this.points.map((e=>e.clone())))}toJSON(){return this.points.map((e=>e.toJSON()))}serialize(){return this.points.map((e=>`${e.x}, ${e.y}`)).join(" ")}}!function(e){e.toStringTag=`X6.Geometry.${e.name}`,e.isPolyline=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"==typeof r.toHull&&"function"==typeof r.simplify}}(oO||(oO={})),function(e){e.parse=function(t){const n=t.trim();if(""===n)return new e;const r=[],i=n.split(/\s*,\s*|\s+/);for(let e=0,t=i.length;e<t;e+=2)r.push({x:+i[e],y:+i[e+1]});return new e(r)}}(oO||(oO={}));class aO extends eO{constructor(e,t,n,r){super(),this.PRECISION=3,this.start=tO.create(e),this.controlPoint1=tO.create(t),this.controlPoint2=tO.create(n),this.end=tO.create(r)}get[Symbol.toStringTag](){return aO.toStringTag}bbox(){const e=this.start,t=this.controlPoint1,n=this.controlPoint2,r=this.end,i=e.x,o=e.y,a=t.x,s=t.y,l=n.x,c=n.y,u=r.x,d=r.y,h=[],f=[],p=[[],[]];let g,m,v,y,b,w,_,x,E,C,k;for(let e=0;e<2;e+=1)if(0===e?(m=6*i-12*a+6*l,g=-3*i+9*a-9*l+3*u,v=3*a-3*i):(m=6*o-12*s+6*c,g=-3*o+9*s-9*c+3*d,v=3*s-3*o),Math.abs(g)<1e-12){if(Math.abs(m)<1e-12)continue;y=-v/m,y>0&&y<1&&f.push(y)}else _=m*m-4*v*g,x=Math.sqrt(_),_<0||(b=(-m+x)/(2*g),b>0&&b<1&&f.push(b),w=(-m-x)/(2*g),w>0&&w<1&&f.push(w));let S=f.length;const T=S;for(;S;)S-=1,y=f[S],k=1-y,E=k*k*k*i+3*k*k*y*a+3*k*y*y*l+y*y*y*u,p[0][S]=E,C=k*k*k*o+3*k*k*y*s+3*k*y*y*c+y*y*y*d,p[1][S]=C,h[S]={X:E,Y:C};f[T]=0,f[T+1]=1,h[T]={X:i,Y:o},h[T+1]={X:u,Y:d},p[0][T]=i,p[1][T]=o,p[0][T+1]=u,p[1][T+1]=d,f.length=T+2,p[0].length=T+2,p[1].length=T+2,h.length=T+2;const M=Math.min.apply(null,p[0]),O=Math.min.apply(null,p[1]),L=Math.max.apply(null,p[0]),A=Math.max.apply(null,p[1]);return new nO(M,O,L-M,A-O)}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);let o=null,a=0,s=0,l=0,c=0,u=0,d=null;const h=r.length;let f=h>0?1/h:0;for(r.forEach(((t,n)=>{const r=t.start.distance(e),i=t.end.distance(e),h=r+i;(null==d||h<d)&&(o=t,a=n*f,s=(n+1)*f,l=r,c=i,d=h,u=t.endpointDistance())}));;){const t=l?Math.abs(l-c)/l:0,n=null!=c?Math.abs(l-c)/c:0;if(t<i||n<i||(!l||l<u*i||(!c||c<u*i)))return l<=c?a:s;const r=o.divide(.5);f/=2;const d=r[0].start.distance(e),h=r[0].end.distance(e),p=d+h,g=r[1].start.distance(e),m=r[1].end.distance(e);p<=g+m?(o=r[0],s-=f,l=d,c=h):(o=r[1],a+=f,l=g,c=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 aO(t,t,t,t),new aO(t,n,r,i)];if(e>=1)return[new aO(t,n,r,i),new aO(i,i,i,i)];const o=this.getSkeletonPoints(e),a=o.startControlPoint1,s=o.startControlPoint2,l=o.divider,c=o.dividerControlPoint1,u=o.dividerControlPoint2;return[new aO(t,a,s,l),new aO(l,c,u,i)]}endpointDistance(){return this.start.distance(this.end)}getSkeletonPoints(e){const t=this.start,n=this.controlPoint1,r=this.controlPoint2,i=this.end;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 o=new rO(t,n).pointAt(e),a=new rO(n,r).pointAt(e),s=new rO(r,i).pointAt(e),l=new rO(o,a).pointAt(e),c=new rO(a,s).pointAt(e);return{startControlPoint1:o,startControlPoint2:l,divider:new rO(l,c).pointAt(e),dividerControlPoint1:c,dividerControlPoint2:s}}getSubdivisions(e={}){const t=this.getPrecision(e);let n=[new aO(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===t)return n;let r=this.endpointDistance();const i=Math.pow(10,-t);let o=0;for(;;){o+=1;const e=[];n.forEach((t=>{const n=t.divide(.5);e.push(n[0],n[1])}));const t=e.reduce(((e,t)=>e+t.endpointDistance()),0);if(o>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,o=new rO(n,r);return o.translate(i.x-n.x,i.y-n.y),o}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),o={precision:r,subdivisions:i};let a,s,l=null,c=0,u=0,d=0;const h=i.length;let f=h>0?1/h:0;for(let t=0;t<h;t+=1){const r=n?t:h-1-t,o=i[t],p=o.endpointDistance();if(e<=d+p){l=o,a=r*f,s=(r+1)*f,c=n?e-d:p+d-e,u=n?p+d-e:e-d;break}d+=p}if(null==l)return n?1:0;const p=this.length(o),g=Math.pow(10,-r);for(;;){let e,t,n;if(e=0!==p?c/p:0,e<g)return a;if(e=0!==p?u/p:0,e<g)return s;const r=l.divide(.5);f/=2;const i=r[0].endpointDistance(),o=r[1].endpointDistance();c<=i?(l=r[0],s-=f,t=c,n=i-t):(l=r[1],a+=f,t=c-i,n=o-t),c=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 oO(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 aO(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(e){e.toStringTag=`X6.Geometry.${e.name}`,e.isCurve=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;try{if((null==n||n===e.toStringTag)&&tO.isPoint(r.start)&&tO.isPoint(r.controlPoint1)&&tO.isPoint(r.controlPoint2)&&tO.isPoint(r.end)&&"function"==typeof r.toPoints&&"function"==typeof r.toPolyline)return!0}catch(e){return!1}return!1}}(aO||(aO={})),function(e){function t(e){const t=e.length,n=[],r=[];let i=2;n[0]=e[0]/i;for(let o=1;o<t;o+=1)r[o]=1/i,i=(o<t-1?4:3.5)-r[o],n[o]=(e[o]-n[o-1])/i;for(let e=1;e<t;e+=1)n[t-e-1]-=r[t-e]*n[t-e];return n}e.throughPoints=function(n){if(null==n||Array.isArray(n)&&n.length<2)throw new Error("At least 2 points are required");const r=function(e){const n=e.map((e=>tO.clone(e))),r=[],i=[],o=n.length-1;if(1===o)return r[0]=new tO((2*n[0].x+n[1].x)/3,(2*n[0].y+n[1].y)/3),i[0]=new tO(2*r[0].x-n[0].x,2*r[0].y-n[0].y),[r,i];const a=[];for(let e=1;e<o-1;e+=1)a[e]=4*n[e].x+2*n[e+1].x;a[0]=n[0].x+2*n[1].x,a[o-1]=(8*n[o-1].x+n[o].x)/2;const s=t(a);for(let e=1;e<o-1;e+=1)a[e]=4*n[e].y+2*n[e+1].y;a[0]=n[0].y+2*n[1].y,a[o-1]=(8*n[o-1].y+n[o].y)/2;const l=t(a);for(let e=0;e<o;e+=1)r.push(new tO(s[e],l[e])),e<o-1?i.push(new tO(2*n[e+1].x-s[e+1],2*n[e+1].y-l[e+1])):i.push(new tO((n[o].x+s[o-1])/2,(n[o].y+l[o-1])/2));return[r,i]}(n),i=[];for(let t=0,o=r[0].length;t<o;t+=1){const o=new tO(r[0][t].x,r[0][t].y),a=new tO(r[1][t].x,r[1][t].y);i.push(new e(n[t],o,a,n[t+1]))}return i}}(aO||(aO={}));class sO extends eO{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.")}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.")}}class lO extends sO{constructor(e,t){super(),rO.isLine(e)?this.endPoint=e.end.clone().round(2):this.endPoint=tO.create(e,t).round(2)}get type(){return"L"}get line(){return new rO(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 lO(t[0]),new lO(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[new lO(t[0]),new lO(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 lO(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}`}}!function(e){e.create=function(...t){const n=t.length,r=t[0];if(rO.isLine(r))return new e(r);if(tO.isPointLike(r))return 1===n?new e(r):t.map((t=>new e(t)));if(2===n)return new e(+t[0],+t[1]);const i=[];for(let r=0;r<n;r+=2){const n=+t[r],o=+t[r+1];i.push(new e(n,o))}return i}}(lO||(lO={}));class cO extends sO{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 rO(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[t[1].isDifferentiable()?new lO(t[0]):this.clone(),new lO(t[1])]}divideAtLength(e){const t=this.line.divideAtLength(e);return[t[1].isDifferentiable()?new lO(t[0]):this.clone(),new lO(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 cO}toJSON(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}serialize(){return this.type}}!function(e){e.create=function(){return new e}}(cO||(cO={}));class uO extends sO{constructor(e,t){super(),this.isVisible=!1,this.isSubpathStart=!0,rO.isLine(e)||aO.isCurve(e)?this.endPoint=e.end.clone().round(2):this.endPoint=tO.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 uO(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}`}}!function(e){e.create=function(...t){const n=t.length,r=t[0];if(rO.isLine(r))return new e(r);if(aO.isCurve(r))return new e(r);if(tO.isPointLike(r)){if(1===n)return new e(r);const i=[];for(let r=0;r<n;r+=1)0===r?i.push(new e(t[r])):i.push(new lO(t[r]));return i}if(2===n)return new e(+t[0],+t[1]);const i=[];for(let r=0;r<n;r+=2){const n=+t[r],o=+t[r+1];0===r?i.push(new e(n,o)):i.push(new lO(n,o))}return i}}(uO||(uO={}));class dO extends sO{constructor(e,t,n,r,i,o){super(),aO.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 tO(e,t).round(2),this.controlPoint2=new tO(n,r).round(2),this.endPoint=new tO(i,o).round(2)):(this.controlPoint1=tO.create(e).round(2),this.controlPoint2=tO.create(t).round(2),this.endPoint=tO.create(n).round(2))}get type(){return"C"}get curve(){return new aO(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={}){const n=this.curve.divideAt(e,t);return[new dO(n[0]),new dO(n[1])]}divideAtLength(e,t={}){const n=this.curve.divideAtLength(e,t);return[new dO(n[0]),new dO(n[1])]}divideAtT(e){const t=this.curve.divideAtT(e);return[new dO(t[0]),new dO(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 dO(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(" ")}}function hO(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}}function fO(e,t,n,r,i,o){const a=1/3,s=2/3;return[a*e+s*n,a*t+s*r,a*i+s*n,a*o+s*r,i,o]}function pO(e,t,n,r,i,o,a,s,l,c){const u=120*Math.PI/180,d=Math.PI/180*(+i||0);let h,f,p,g,m,v=[];if(c)f=c[0],p=c[1],g=c[2],m=c[3];else{h=hO(e,t,-d),e=h.x,t=h.y,h=hO(s,l,-d);const i=(e-(s=h.x))/2,c=(t-(l=h.y))/2;let u=i*i/(n*n)+c*c/(r*r);u>1&&(u=Math.sqrt(u),n*=u,r*=u);const v=n*n,y=r*r,b=(o===a?-1:1)*Math.sqrt(Math.abs((v*y-v*c*c-y*i*i)/(v*c*c+y*i*i)));g=b*n*c/r+(e+s)/2,m=b*-r*i/n+(t+l)/2,f=Math.asin((t-m)/r),p=Math.asin((l-m)/r),f=e<g?Math.PI-f:f,p=s<g?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),a&&f>p&&(f-=2*Math.PI),!a&&p>f&&(p-=2*Math.PI)}let y=p-f;if(Math.abs(y)>u){const e=p,t=s,o=l;p=f+u*(a&&p>f?1:-1),v=pO(s=g+n*Math.cos(p),l=m+r*Math.sin(p),n,r,i,0,a,t,o,[p,e,g,m])}y=p-f;const b=Math.cos(f),w=Math.sin(f),_=Math.cos(p),x=Math.sin(p),E=Math.tan(y/4),C=4/3*(n*E),k=4/3*(r*E),S=[e,t],T=[e+C*w,t-k*b],M=[s+C*x,l-k*_],O=[s,l];if(T[0]=2*S[0]-T[0],T[1]=2*S[1]-T[1],c)return[T,M,O].concat(v);{v=[T,M,O].concat(v).join().split(",");const e=[],t=v.length;for(let n=0;n<t;n+=1)e[n]=n%2?hO(+v[n-1],+v[n],d).y:hO(+v[n],+v[n+1],d).x;return e}}function gO(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}]*)+)`,"ig"),r=new RegExp(`(-?\\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},o=[];return e.replace(n,((e,t,n)=>{const a=[];let s=t.toLowerCase();n.replace(r,((e,t)=>(t&&a.push(+t),e))),"m"===s&&a.length>2&&(o.push([t,...a.splice(0,2)]),s="l",t="m"===t?"l":"L");const l=i[s];for(;a.length>=l&&(o.push([t,...a.splice(0,l)]),l););return e})),o}(e);if(!t||!t.length)return[["M",0,0]];let n=0,r=0,i=0,o=0;const a=[];for(let e=0,s=t.length;e<s;e+=1){const s=[];a.push(s);const l=t[e],c=l[0];if(c!==c.toUpperCase())switch(s[0]=c.toUpperCase(),s[0]){case"A":s[1]=l[1],s[2]=l[2],s[3]=l[3],s[4]=l[4],s[5]=l[5],s[6]=+l[6]+n,s[7]=+l[7]+r;break;case"V":s[1]=+l[1]+r;break;case"H":s[1]=+l[1]+n;break;case"M":i=+l[1]+n,o=+l[2]+r;for(let e=1,t=l.length;e<t;e+=1)s[e]=+l[e]+(e%2?n:r);break;default:for(let e=1,t=l.length;e<t;e+=1)s[e]=+l[e]+(e%2?n:r)}else for(let e=0,t=l.length;e<t;e+=1)s[e]=l[e];switch(s[0]){case"Z":n=+i,r=+o;break;case"H":n=s[1];break;case"V":r=s[1];break;case"M":i=s[s.length-2],o=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 a}function mO(e){const t=gO(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(pO.apply(0,[t.x,t.y].concat(e.slice(1))));case"S":return"C"===n||"S"===n?(r=2*t.x-t.bx,i=2*t.y-t.by):(r=t.x,i=t.y),["C",r,i].concat(e.slice(1));case"T":return"Q"===n||"T"===n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),["C"].concat(fO(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(fO(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;)o[n]="A",n+=1,e.splice(n,0,["C"].concat(r.splice(0,6)));e.splice(n,1),s=t.length}}const o=[];let a="",s=t.length;for(let e=0;e<s;e+=1){let s="";t[e]&&(s=t[e][0]),"C"!==s&&(o[e]=s,e>0&&(a=o[e-1])),t[e]=r(t[e],n,a),"A"!==o[e]&&"C"===s&&(o[e]="C"),i(t,e);const l=t[e],c=l.length;n.x=l[c-2],n.y=l[c-1],n.bx=parseFloat(l[c-4])||n.x,n.by=parseFloat(l[c-3])||n.y}return t[0][0]&&"M"===t[0][0]||t.unshift(["M",0,0]),t}function vO(e){return mO(e).map((e=>e.map((e=>"string"==typeof e?e:$M(e,2))))).join(",").split(",").join(" ")}!function(e){e.create=function(...t){const n=t.length,r=t[0];if(aO.isCurve(r))return new e(r);if(tO.isPointLike(r)){if(3===n)return new e(t[0],t[1],t[2]);const r=[];for(let i=0;i<n;i+=3)r.push(new e(t[i],t[i+1],t[i+2]));return r}if(6===n)return new e(t[0],t[1],t[2],t[3],t[4],t[5]);const i=[];for(let r=0;r<n;r+=6)i.push(new e(t[r],t[r+1],t[r+2],t[r+3],t[r+4],t[r+5]));return i}}(dO||(dO={}));const yO=new RegExp("^[\\s\\dLMCZz,.]*$");function bO(e){return"string"==typeof e&&yO.test(e)}function wO(e,t){return(e%t+t)%t}function _O(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){const o=[],a=e[e.length-1],s=null!=t&&t>0,l=t||0;if(r&&s){const t=(e=e.slice())[0],n=new tO(a.x+(t.x-a.x)/2,a.y+(t.y-a.y)/2);e.splice(0,0,n)}let c=e[0],u=1;for(n?o.push("M",c.x,c.y):o.push("L",c.x,c.y);u<(r?e.length:e.length-1);){let t=e[wO(u,e.length)],n=c.x-t.x,r=c.y-t.y;if(s&&(0!==n||0!==r)&&(null==i||i.indexOf(u-1)<0)){let i=Math.sqrt(n*n+r*r);const a=n*Math.min(l,i/2)/i,s=r*Math.min(l,i/2)/i,c=t.x+a,d=t.y+s;o.push("L",c,d);let h=e[wO(u+1,e.length)];for(;u<e.length-2&&0===Math.round(h.x-t.x)&&0===Math.round(h.y-t.y);)h=e[wO(u+2,e.length)],u+=1;n=h.x-t.x,r=h.y-t.y,i=Math.max(1,Math.sqrt(n*n+r*r));const f=n*Math.min(l,i/2)/i,p=r*Math.min(l,i/2)/i,g=t.x+f,m=t.y+p;o.push("Q",t.x,t.y,g,m),t=new tO(g,m)}else o.push("L",t.x,t.y);c=t,u+=1}return r?o.push("Z"):o.push("L",a.x,a.y),o.map((e=>"string"==typeof e?e:+e.toFixed(3))).join(" ")}(n,t.round,null==t.initialMove||t.initialMove,t.close,t.exclude)}function xO(e,t,n,r,i=0,o=0,a=0,s,l){if(0===n||0===r)return[];s-=e,l-=t,n=Math.abs(n),r=Math.abs(r);const c=-s/2,u=-l/2,d=Math.cos(i*Math.PI/180),h=Math.sin(i*Math.PI/180),f=d*c+h*u,p=-1*h*c+d*u,g=f*f,m=p*p,v=n*n,y=r*r,b=g/v+m/y;let w;if(b>1)n=Math.sqrt(b)*n,r=Math.sqrt(b)*r,w=0;else{let e=1;o===a&&(e=-1),w=e*Math.sqrt((v*y-v*m-y*g)/(v*m+y*g))}const _=w*n*p/r,x=-1*w*r*f/n,E=d*_-h*x+s/2,C=h*_+d*x+l/2;let k=Math.atan2((p-x)/r,(f-_)/n)-Math.atan2(0,1),S=k>=0?k:2*Math.PI+k;k=Math.atan2((-p-x)/r,(-f-_)/n)-Math.atan2((p-x)/r,(f-_)/n);let T=k>=0?k:2*Math.PI+k;0===a&&T>0?T-=2*Math.PI:0!==a&&T<0&&(T+=2*Math.PI);const M=2*T/Math.PI,O=Math.ceil(M<0?-1*M:M),L=T/O,A=8/3*Math.sin(L/4)*Math.sin(L/4)/Math.sin(L/2),D=d*n,N=d*r,P=h*n,I=h*r;let j=Math.cos(S),R=Math.sin(S),F=-A*(D*R+I*j),z=-A*(P*R-N*j),Y=0,B=0;const H=[];for(let n=0;n<O;n+=1){S+=L,j=Math.cos(S),R=Math.sin(S),Y=D*j-I*R+E,B=P*j+N*R+C;const r=-A*(D*R+I*j),i=-A*(P*R-N*j),o=6*n;H[o]=Number(F+e),H[o+1]=Number(z+t),H[o+2]=Number(Y-r+e),H[o+3]=Number(B-i+t),H[o+4]=Number(Y+e),H[o+5]=Number(B+t),F=Y+r,z=B+i}return H.map((e=>+e.toFixed(2)))}function EO(e,t,n,r,i=0,o=0,a=0,s,l){const c=[],u=xO(e,t,n,r,i,o,a,s,l);if(null!=u)for(let e=0,t=u.length;e<t;e+=6)c.push("C",u[e],u[e+1],u[e+2],u[e+3],u[e+4],u[e+5]);return c.join(" ")}class CO extends eO{constructor(e){if(super(),this.PRECISION=3,this.segments=[],Array.isArray(e))if(rO.isLine(e[0])||aO.isCurve(e[0])){let t=null;e.forEach(((e,n)=>{0===n&&this.appendSegment(CO.createSegment("M",e.start)),null==t||t.end.equals(e.start)||this.appendSegment(CO.createSegment("M",e.start)),rO.isLine(e)?this.appendSegment(CO.createSegment("L",e.end)):aO.isCurve(e)&&this.appendSegment(CO.createSegment("C",e.controlPoint1,e.controlPoint2,e.end)),t=e}))}else{e.forEach((e=>{e.isSegment&&this.appendSegment(e)}))}else null!=e&&(rO.isLine(e)?(this.appendSegment(CO.createSegment("M",e.start)),this.appendSegment(CO.createSegment("L",e.end))):aO.isCurve(e)?(this.appendSegment(CO.createSegment("M",e.start)),this.appendSegment(CO.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):oO.isPolyline(e)?e.points&&e.points.length&&e.points.forEach(((e,t)=>{const n=0===t?CO.createSegment("M",e):CO.createSegment("L",e);this.appendSegment(n)})):e.isSegment&&this.appendSegment(e))}get[Symbol.toStringTag](){return CO.toStringTag}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}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}return e[t-1].end}moveTo(...e){return this.appendSegment(uO.create.call(null,...e))}lineTo(...e){return this.appendSegment(lO.create.call(null,...e))}curveTo(...e){return this.appendSegment(dO.create.call(null,...e))}arcTo(e,t,n,r,i,o,a){const s=this.end||new tO,l="number"==typeof o?xO(s.x,s.y,e,t,n,r,i,o,a):xO(s.x,s.y,e,t,n,r,i,o.x,o.y);if(null!=l)for(let e=0,t=l.length;e<t;e+=6)this.curveTo(l[e],l[e+1],l[e+2],l[e+3],l[e+4],l[e+5]);return this}quadTo(e,t,n,r){const i=this.end||new tO,o=["M",i.x,i.y];if("number"==typeof e)o.push("Q",e,t,n,r);else{const n=t;o.push("Q",e.x,e.y,n.x,n.y)}const a=CO.parse(o.join(" "));return this.appendSegment(a.segments.slice(1)),this}close(){return this.appendSegment(cO.create())}drawPoints(e,t={}){const n=_O(e,t),r=CO.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;const r=e[t-1];return new nO(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,o=null;if(0!==n&&(e>=1?(i=this.segments[e-1],o=i.nextSegment):(i=null,o=this.segments[0])),Array.isArray(t))for(let n=0,a=t.length;n<a;n+=1){const a=t[n];r=this.prepareSegment(a,i,o),this.segments.splice(e+n,0,r),i=r}else r=this.prepareSegment(t,i,o),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;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 o=i.previousSegment;const a=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,o,a),this.segments.splice(e+n,0,r),o=r,s&&r.isSubpathStart&&(s=!1)}}else r=this.prepareSegment(t,o,a),this.segments.splice(n,1,r),s&&r.isSubpathStart&&(s=!1);s&&a&&this.updateSubpathStartSegment(a)}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=JM(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),o=this.getSubdivisions(t);let a=0,s=null;for(let t=0;t<n;t+=1){const l=r?t:n-1-t,c=this.segments[l],u=o[l],d=c.length({precision:i,subdivisions:u});if(c.isVisible){if(e<=a+d)return l;s=l}a+=d}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;)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&&(e.subpathStartSegment=e,r=n),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,o=1/0;for(let t=0,a=this.segments.length;t<a;t+=1){const a=this.segments[t],s=r[t];if(a.isVisible){const r=a.closestPointT(e,{precision:n,subdivisions:s}),l=QM(a.pointAtT(r),e);l<o&&(i={segmentIndex:t,value:r},o=l)}}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,o=1/0;for(let t=0,a=this.segments.length;t<a;t+=1){const a=this.segments[t],s=r[t];if(a.isDifferentiable()){const t=a.closestPointT(e,{precision:n,subdivisions:s}),r=QM(a.pointAtT(t),e);r<o&&(i=a.tangentAtT(t),o=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)}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 o,a=0;for(let t=0,s=this.segments.length;t<s;t+=1){const l=n?t:s-1-t,c=this.segments[l],u=i[l],d=c.length({precision:r,subdivisions:u});if(c.isVisible){if(e<=a+d)return c.pointAtLength((n?1:-1)*(e-a),{precision:r,subdivisions:u});o=c}a+=d}if(o)return n?o.end:o.start;return this.segments[this.segments.length-1].end.clone()}pointAtT(e){const t=this.segments,n=t.length;if(0===n)return null;const r=e.segmentIndex;if(r<0)return t[0].pointAtT(0);if(r>=n)return t[n-1].pointAtT(1);const i=JM(e.value,0,1);return t[r].pointAtT(i)}divideAt(e,t={}){if(0===this.segments.length)return null;const n=JM(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 o,a,s,l,c,u=0;for(let t=0,c=this.segments.length;t<c;t+=1){const d=n?t:c-1-t,h=this.getSegment(d),f={precision:r,subdivisions:i[d]},p=h.length(f);if(h.isDifferentiable()&&(s=h,l=d,e<=u+p)){a=d,o=h.divideAtLength((n?1:-1)*(e-u),f);break}u+=p}if(!s)return null;o||(a=l,c=n?1:0,o=s.divideAtT(c));const d=this.clone(),h=a;d.replaceSegment(h,o);const f=h;let p=h+1,g=h+2;o[0].isDifferentiable()||(d.removeSegment(f),p-=1,g-=1);const m=d.getSegment(p).start;d.insertSegment(p,CO.createSegment("M",m)),g+=1,o[1].isDifferentiable()||(d.removeSegment(g-1),g-=1);const v=g-f-1;for(let e=g,t=d.segments.length;e<t;e+=1){const t=this.getSegment(e-v),n=d.getSegment(e);if("Z"===n.type&&!t.subpathStartSegment.end.equals(n.subpathStartSegment.end)){const n=CO.createSegment("L",t.end);d.replaceSegment(e,n)}}return[new CO(d.segments.slice(0,p)),new CO(d.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],o=e.intersect(i);o&&(null==r&&(r=[]),Array.isArray(o)?r.push(...o):r.push(o))}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=JM(e.value,0,1);r>=n&&(r=n-1,i=1);const o=this.getPrecision(t),a=this.getSubdivisions(t);let s=0;for(let e=0;e<r;e+=1){const t=this.segments[e],n=a[e];s+=t.length({precision:o,subdivisions:n})}const l=this.segments[r],c=a[r];return s+=l.lengthAtT(i,{precision:o,subdivisions:c}),s}tangentAt(e,t={}){if(0===this.segments.length)return null;const n=JM(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 o,a=0;for(let t=0,s=this.segments.length;t<s;t+=1){const l=n?t:s-1-t,c=this.segments[l],u=i[l],d=c.length({precision:r,subdivisions:u});if(c.isDifferentiable()){if(e<=a+d)return c.tangentAtLength((n?1:-1)*(e-a),{precision:r,subdivisions:u});o=c}a+=d}if(o){const e=n?1:0;return o.tangentAtT(e)}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=JM(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 o=[];for(let e=0;e<n;e+=1){const n=t[e];if(n.isVisible){const t=r[e];t.length>0?t.forEach((e=>o.push(e.start))):o.push(n.start)}else o.length>0&&(o.push(t[e-1].end),i.push(o),o=[])}return o.length>0&&(o.push(this.end),i.push(o)),i}toPolylines(e={}){const t=this.toPoints(e);return t?t.map((e=>new oO(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 CO;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()}}!function(e){e.toStringTag=`X6.Geometry.${e.name}`,e.isPath=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return!(null!=n&&n!==e.toStringTag||!Array.isArray(r.segments)||"function"!=typeof r.moveTo||"function"!=typeof r.lineTo||"function"!=typeof r.curveTo)}}(CO||(CO={})),function(e){function t(e,...t){if("M"===e)return uO.create.call(null,...t);if("L"===e)return lO.create.call(null,...t);if("C"===e)return dO.create.call(null,...t);if("z"===e||"Z"===e)return cO.create();throw new Error(`Invalid path segment type "${e}"`)}e.parse=function(n){if(!n)return new e;const r=new e,i=e.normalize(n).match(/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g);if(null!=i)for(let e=0,n=i.length;e<n;e+=1){const n=/(?:[a-zA-Z])|(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)?))|(?:(?:-?\.\d+))/g,o=i[e].match(n);if(null!=o){const e=o[0],n=o.slice(1).map((e=>+e)),i=t.call(null,e,...n);r.appendSegment(i)}}return r},e.createSegment=t}(CO||(CO={})),function(e){e.normalize=vO,e.isValid=bO,e.drawArc=EO,e.drawPoints=_O,e.arcToCurves=xO}(CO||(CO={}));class kO{constructor(e,t,n){if(!e)throw new TypeError("Invalid element to create vector");let r;if(kO.isVector(e))r=e.node;else if("string"==typeof e)if("svg"===e.toLowerCase())r=gM();else if("<"===e[0]){const t=gM(e);r=document.importNode(t.firstChild,!0)}else r=document.createElementNS(dM.svg,e);else r=e;this.node=r,t&&this.setAttributes(t),n&&this.append(n)}get[Symbol.toStringTag](){return kO.toStringTag}get type(){return this.node.nodeName}get id(){return this.node.id}set id(e){this.node.id=e}transform(e,t){return null==e?oL(this.node):(oL(this.node,e,t),this)}translate(e,t=0,n={}){return null==e?aL(this.node):(aL(this.node,e,t,n),this)}rotate(e,t,n,r={}){return null==e?sL(this.node):(sL(this.node,e,t,n,r),this)}scale(e,t){return null==e?lL(this.node):(lL(this.node,e,t),this)}getTransformToElement(e){const t=kO.toNode(e);return tL(this.node,t)}removeAttribute(e){return LM(this.node,e),this}getAttribute(e){return function(e,t){return e.getAttribute(t)}(this.node,e)}setAttribute(e,t){return AM(this.node,e,t),this}setAttributes(e){return DM(this.node,e),this}attr(e,t){return null==e?NM(this.node):"string"==typeof e&&void 0===t?NM(this.node,e):("object"==typeof e?NM(this.node,e):NM(this.node,e,t),this)}svg(){return this.node instanceof SVGSVGElement?this:kO.create(this.node.ownerSVGElement)}defs(){const e=this.svg()||this,t=e.node.getElementsByTagName("defs")[0];return t?kO.create(t):kO.create("defs").appendTo(e)}text(e,t={}){return OO(this.node,e,t),this}tagName(){return vM(this.node)}clone(){return kO.create(this.node.cloneNode(!0))}remove(){return xM(this.node),this}empty(){return EM(this.node),this}append(e){return CM(this.node,kO.toNodes(e)),this}appendTo(e){return function(e,t){null!=t&&t.appendChild(e)}(this.node,kO.isVector(e)?e.node:e),this}prepend(e){return function(e,t){const n=e.firstChild;n?kM(n,t):CM(e,t)}(this.node,kO.toNodes(e)),this}before(e){return kM(this.node,kO.toNodes(e)),this}replace(e){return this.node.parentNode&&this.node.parentNode.replaceChild(kO.toNode(e),this.node),kO.create(e)}first(){return this.node.firstChild?kO.create(this.node.firstChild):null}last(){return this.node.lastChild?kO.create(this.node.lastChild):null}get(e){const t=this.node.childNodes[e];return t?kO.create(t):null}indexOf(e){return Array.prototype.slice.call(this.node.childNodes).indexOf(kO.toNode(e))}find(e){const t=[],n=function(e,t){return e.querySelectorAll(t)}(this.node,e);if(n)for(let e=0,r=n.length;e<r;e+=1)t.push(kO.create(n[e]));return t}findOne(e){const t=bM(this.node,e);return t?kO.create(t):null}findParentByClass(e,t){const n=wM(this.node,e,t);return n?kO.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 _M(this.node,kO.isVector(e)?e.node:e)}wrap(e){const t=kO.create(e),n=this.node.parentNode;return null!=n&&n.insertBefore(t.node,this.node),t.append(this)}parent(e){let t=this;if(null==t.node.parentNode)return null;if(t=kO.create(t.node.parentNode),null==e)return t;do{if("string"==typeof e?t.matches(e):t instanceof e)return t}while(t=kO.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(kO.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 yM(this.node)}hasClass(e){return iM(this.node,e)}addClass(e){return oM(this.node,e),this}removeClass(e){return aM(this.node,e),this}toggleClass(e,t){return sM(this.node,e,t),this}toLocalPoint(e,t){return function(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()),o=tL(e,r).inverse();return n.matrixTransform(o)}catch(e){return i}}(this.node,e,t)}toGeometryShape(){return nL(this.node)}translateCenterToPoint(e){const t=this.getBBox({target:this.svg()}).getCenter();return this.translate(e.x-t.x,e.y-t.y),this}translateAndAutoOrient(e,t,n){return cL(this.node,e,t,n),this}animate(e){return function(e,t){return rL(e,t,"animate")}(this.node,e)}animateTransform(e){return function(e,t){return rL(e,t,"animateTransform")}(this.node,e)}animateAlongPath(e,t){return function(e,t,n){const r=cM(n),i=pM("animateMotion"),o=pM("mpath");NM(o,{"xlink:href":`#${r}`}),i.appendChild(o),e.appendChild(i);try{return iL(i,t)}catch(e){if("fake"===document.documentElement.getAttribute("smiling")){const e=i;e.animators=[];const t=window,n=e.getAttribute("id");n&&(t.id2anim[n]=e);const r=t.getTargets(e);for(let n=0,i=r.length;n<i;n+=1){const i=r[n],o=new t.Animator(e,i,n);t.animators.push(o),e.animators[n]=o,o.register()}}}return()=>{}}(this.node,e,t)}normalizePath(){return"path"===this.tagName()&&this.attr("d",CO.normalize(this.attr("d"))),this}bbox(e,t){return function(e,t,n){let r;const i=e.ownerSVGElement;if(!i)return new nO(0,0,0,0);try{r=e.getBBox()}catch(t){r={x:e.clientLeft,y:e.clientTop,width:e.clientWidth,height:e.clientHeight}}if(t)return nO.create(r);const o=tL(e,n||i);return ZO(r,o)}(this.node,e,t)}getBBox(e={}){return eL(this.node,{recursive:e.recursive,target:e.target?kO.toNode(e.target):null})}sample(e=1){return this.node instanceof SVGPathElement?NO(this.node,e):[]}toPath(){return kO.create(RO(this.node))}toPathData(){return FO(this.node)}}function SO(e,t,n){const r=n.eol,i=n.baseSize,o=n.lineHeight;let a,s=0;const l={},c=t.length-1;for(let o=0;o<=c;o+=1){let l=t[o],u=null;if("object"==typeof l){const e=l.attrs,t=kO.create("tspan",e);a=t.node;let d=l.t;r&&o===c&&(d+=r),a.textContent=d;const h=e.class;h&&t.addClass(h),n.includeAnnotationIndices&&t.attr("annotations",l.annotations.join(",")),u=parseFloat(e["font-size"]),void 0===u&&(u=i),u&&u>s&&(s=u)}else r&&o===c&&(l+=r),a=document.createTextNode(l||" "),i&&i>s&&(s=i);e.appendChild(a)}return s&&(l.maxFontSize=s),o?l.lineHeight=o:s&&(l.lineHeight=1.2*s),l}!function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&r.node instanceof SVGElement&&"function"==typeof r.animate&&"function"==typeof r.sample&&"function"==typeof r.normalizePath&&"function"==typeof r.toPath}function n(t,n,r){return new e(t,n,r)}function r(e){return t(e)?e.node:e}e.toStringTag=`X6.${e.name}`,e.isVector=t,e.create=n,e.createVectors=function(e){if("<"===e[0]){const t=gM(e),r=[];for(let e=0,i=t.childNodes.length;e<i;e+=1){const i=t.childNodes[e];r.push(n(document.importNode(i,!0)))}return r}return[n(e)]},e.toNode=r,e.toNodes=function(e){return Array.isArray(e)?e.map((e=>r(e))):[r(e)]}}(kO||(kO={}));const TO=/em$/;function MO(e,t){const n=parseFloat(e);return TO.test(e)?n*t:n}function OO(e,t,n={}){t=t.replace(/ /g," ");const r=n.eol;let i=n.textPath;const o=n.textVerticalAnchor,a="middle"===o||"bottom"===o||"top"===o;let s=n.x;void 0===s&&(s=e.getAttribute("x")||0);const l=n.includeAnnotationIndices;let c=n.annotations;c&&!Array.isArray(c)&&(c=[c]);const u=n.lineHeight,d="auto"===u,h=d?"1.5em":u||"1em";EM(e),NM(e,{"xml:space":"preserve",display:t||n.displayEmpty?null:"none"});const f=NM(e,"font-size");let p,g,m=parseFloat(f);m||(m=16,!a&&!c||f||NM(e,"font-size",`${m}`)),i?("string"==typeof i&&(i={d:i}),p=function(e,t){const n=kO.create(t),r=kO.create("textPath"),i=e.d;if(i&&void 0===e["xlink:href"]){const e=kO.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)):p=document.createDocumentFragment();let v,y=0;const b=t.split("\n"),w=[],_=b.length-1;for(let e=0;e<=_;e+=1){g=h;let t="v-line";const n=pM("tspan");let o,a=b[e];if(a)if(c){o=SO(n,FM(a,c,{offset:-y,includeAnnotationIndices:l}),{eol:e!==_&&r,baseSize:m,lineHeight:d?null:h,includeAnnotationIndices:l});const t=o.lineHeight;t&&d&&0!==e&&(g=t),0===e&&(v=.8*o.maxFontSize)}else r&&e!==_&&(a+=r),n.textContent=a;else{n.textContent="-",t+=" v-empty-line";const e=n.style;e.fillOpacity=0,e.strokeOpacity=0,c&&(o={})}o&&w.push(o),e>0&&n.setAttribute("dy",g),(e>0||i)&&n.setAttribute("x",s),n.className.baseVal=t,p.appendChild(n),y+=a.length+1}if(a)if(c)g=function(e,t,n,r){if(!Array.isArray(t))return 0;const i=t.length;if(!i)return 0;let o=t[0];const a=MO(o.maxFontSize,n)||n;let s=0;const l=MO(r,n);for(let e=1;e<i;e+=1)o=t[e],s+=MO(o.lineHeight,n)||l;const c=MO(o.maxFontSize,n)||n;let u;switch(e){case"middle":u=a/2-.15*c-s/2;break;case"bottom":u=-.25*c-s;break;default:u=.8*a}return u}(o,w,m,h);else if("top"===o)g="0.8em";else{let e;switch(_>0?(e=parseFloat(h)||1,e*=_,TO.test(h)||(e/=m)):e=0,o){case"middle":g=.3-e/2+"em";break;case"bottom":g=-e-.3+"em"}}else 0===o?g="0em":o?g=o:(g=0,null==e.getAttribute("y")&&e.setAttribute("y",`${v||"0.8em"}`));p.firstChild.setAttribute("dy",g),e.appendChild(p)}function LO(e,t,n={},r={}){const i=t.width,o=t.height,a=r.svgDocument||pM("svg"),s=pM("text"),l=pM("tspan"),c=document.createTextNode("");NM(s,n),s.appendChild(l),s.style.opacity="0",s.style.display="block",l.style.display="block",l.appendChild(c),a.appendChild(s);const u=null==a.parentNode;u&&document.body.appendChild(a);const d=r.eol||"\n",h=r.separator||" ",f=r.hyphen?new RegExp(r.hyphen):/[^\w\d]/,p=!1!==r.breakWord,g=[],m={};let v,y,b,w=[];const{words:_,separators:x}=function(e,t,n,r){const i=[],o=[];if(null!=t){const n=e.split(t);if(i.push(...n),"string"==typeof t)for(let e=0,r=n.length-1;e<r;e+=1)o.push(t);else{const r=e.match(new RegExp(t,"g"));for(let e=0,t=n.length-1;e<t;e+=1)o.push(r?r[e]:"")}}else{let t="";for(let n=0,r=e.length;n<r;n+=1){const r=e[n];" "===r?(i.push(t),o.push(" "),t=""):r.match(/[^\x00-\xff]/)?(t.length&&(i.push(t),o.push("")),i.push(r),o.push(""),t=""):t+=r}t.length&&i.push(t)}for(let e=0;e<i.length;e+=1){const t=i[e];if(t.indexOf(n)>=0&&t.length>1){const r=t.split(n);for(let e=0,t=r.length-1;e<t;e+=1)r.splice(2*e+1,0,n);const a=r.filter((e=>""!==e));i.splice(e,1,...a);const s=a.map((()=>""));s.pop(),o.splice(e,0,...s)}}for(let e=0;e<i.length;e+=1){const t=i[e],n=t.search(r);n>0&&n<t.length-1&&(i.splice(e,1,t.substring(0,n+1),t.substring(n+1)),o.splice(e,0,""))}return{words:i,separators:o}}(e,r.separator,d,f);for(let e=0,t=0,a=_.length;e<a;e+=1){const u=_[e];if(u)if(u!==d){if(null!=w[t]?(b=x[e-1]||"",c.data=`${w[t]}${b}${u}`):c.data=u,l.getComputedTextLength()<=i)w[t]=c.data,m[t]=x[e],v&&(g[t]=!0,t+=1,v=0);else{if(p){if(!w[t]||v){const n=!!v,r=1===u.length;if(v=u.length-1,n||r){if(r){if(!w[t]){w=[];break}_.splice(e,2,u+_[e+1]),x.splice(e+1,1),g[t]=!0,t+=1,a-=1,e-=1;continue}_[e]=u.substring(0,v),_[e+1]=u.substring(v)+_[e+1]}else _.splice(e,1,u.substring(0,v),u.substring(v)),x.splice(e,0,""),a+=1,t&&!g[t-1]&&(t-=1);e-=1;continue}}else if(!w[t]){w[t]=u,g[t]=!0,t+=1;continue}t+=1,e-=1}if(null!=o){if(null==y){let e;e="auto"===n.lineHeight?{value:1.5,unit:"em"}:HT(n.lineHeight,["em"])||{value:1,unit:"em"},y=e.value,"em"===e.unit&&(db.IS_FIREFOX?y*=l.getBBox().height:y*=s.getBBox().height)}if(y*w.length>o){const e=Math.floor(o/y)-1,t=w[e],n=w[e+1];if(w.splice(e+1),null==t)break;let a=r.ellipsis;if(!a)break;"string"!=typeof a&&(a="…");let s=t;n&&p&&(s+=b+n);let u,d,f=s.length;do{if(d=s[f],u=s.substring(0,f),d?d.match(h)&&(u+=d):u+=m[e],u+=a,c.data=u,l.getComputedTextLength()<=i){w[e]=u;break}f-=1}while(f>=0);break}}}else g[t]=!0,t+=1,w[t]=""}return xM(u?a:s),w.join(d)}const AO=.551784;function DO(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 NO(e,t=1){const n=e.getTotalLength(),r=[];let i,o=0;for(;o<n;)i=e.getPointAtLength(o),r.push({distance:o,x:i.x,y:i.y}),o+=t;return r}function PO(e){const t=e.map((e=>`${e.x} ${e.y}`));return`M ${t.join(" L")}`}function IO(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 jO(e){let t;const n=e.x,r=e.y,i=e.width,o=e.height,a=Math.min(e.rx||e["top-rx"]||0,i/2),s=Math.min(e.rx||e["bottom-rx"]||0,i/2),l=Math.min(e.ry||e["top-ry"]||0,o/2),c=Math.min(e.ry||e["bottom-ry"]||0,o/2);return t=a||s||l||c?["M",n,r+l,"v",o-l-c,"a",s,c,0,0,0,s,c,"h",i-2*s,"a",s,c,0,0,0,s,-c,"v",-(o-c-l),"a",a,l,0,0,0,-a,-l,"h",-(i-2*a),"a",a,l,0,0,0,-a,l,"Z"]:["M",n,r,"H",n+i,"V",r+o,"H",n,"V",r,"Z"],t.join(" ")}function RO(e){const t=pM("path");NM(t,NM(e));const n=FO(e);return n&&t.setAttribute("d",n),t}function FO(e){const t=e.tagName.toLowerCase();switch(t){case"path":return e.getAttribute("d");case"line":return function(e){return["M",DO(e,"x1"),DO(e,"y1"),"L",DO(e,"x2"),DO(e,"y2")].join(" ")}(e);case"polygon":return function(e){const t=IO(e);return 0===t.length?null:`${PO(t)} Z`}(e);case"polyline":return function(e){const t=IO(e);return 0===t.length?null:PO(t)}(e);case"ellipse":return function(e){const t=DO(e,"cx",0),n=DO(e,"cy",0),r=DO(e,"rx"),i=DO(e,"ry")||r,o=r*AO,a=i*AO;return["M",t,n-i,"C",t+o,n-i,t+r,n-a,t+r,n,"C",t+r,n+a,t+o,n+i,t,n+i,"C",t-o,n+i,t-r,n+a,t-r,n,"C",t-r,n-a,t-o,n-i,t,n-i,"Z"].join(" ")}(e);case"circle":return function(e){const t=DO(e,"cx",0),n=DO(e,"cy",0),r=DO(e,"r"),i=r*AO;return["M",t,n-r,"C",t+i,n-r,t+r,n-i,t+r,n,"C",t+r,n+i,t+i,n+r,t,n+r,"C",t-i,n+r,t-r,n+i,t-r,n,"C",t-r,n-i,t-i,n-r,t,n-r,"Z"].join(" ")}(e);case"rect":return function(e){return jO({x:DO(e,"x",0),y:DO(e,"y",0),width:DO(e,"width",0),height:DO(e,"height",0),rx:DO(e,"rx",0),ry:DO(e,"ry",0)})}(e)}throw new Error(`"${t}" cannot be converted to svg path element.`)}const zO=pM("svg"),YO=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,BO=/[ ,]+/,HO=/^(\w+)\((.*)\)/;function qO(e,t){const n=zO.createSVGPoint();return n.x=e,n.y=t,n}function UO(e){const t=zO.createSVGMatrix();if(null!=e){const n=e,r=t;for(const e in n)r[e]=n[e]}return t}function VO(e){return null!=e?(e instanceof DOMMatrix||(e=UO(e)),zO.createSVGTransformFromMatrix(e)):zO.createSVGTransform()}function WO(e){let t=UO();const n=null!=e&&e.match(YO);if(!n)return t;for(let e=0,r=n.length;e<r;e+=1){const r=n[e].match(HO);if(r){let e,n,i,o,a,s=UO();const l=r[2].split(BO);switch(r[1].toLowerCase()){case"scale":e=parseFloat(l[0]),n=void 0===l[1]?e:parseFloat(l[1]),s=s.scaleNonUniform(e,n);break;case"translate":i=parseFloat(l[0]),o=parseFloat(l[1]),s=s.translate(i,o);break;case"rotate":a=parseFloat(l[0]),i=parseFloat(l[1])||0,o=parseFloat(l[2])||0,s=0!==i||0!==o?s.translate(i,o).rotate(a).translate(-i,-o):s.rotate(a);break;case"skewx":a=parseFloat(l[0]),s=s.skewX(a);break;case"skewy":a=parseFloat(l[0]),s=s.skewY(a);break;case"matrix":s.a=parseFloat(l[0]),s.b=parseFloat(l[1]),s.c=parseFloat(l[2]),s.d=parseFloat(l[3]),s.e=parseFloat(l[4]),s.f=parseFloat(l[5]);break;default:continue}t=t.multiply(s)}}return t}function GO(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 $O(e){let t,n,r;if(e){const i=BO;if(e.trim().indexOf("matrix")>=0){const i=JO(WO(e));t=[i.translateX,i.translateY],n=[i.rotation],r=[i.scaleX,i.scaleY];const o=[];0===t[0]&&0===t[1]||o.push(`translate(${t.join(",")})`),1===r[0]&&1===r[1]||o.push(`scale(${r.join(",")})`),0!==n[0]&&o.push(`rotate(${n[0]})`),e=o.join(" ")}else{const o=e.match(/translate\((.*?)\)/);o&&(t=o[1].split(i));const a=e.match(/rotate\((.*?)\)/);a&&(n=a[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 KO(e,t){return{x:t.x*e.a+t.y*e.c+0,y:t.x*e.b+t.y*e.d+0}}function JO(e){const t=KO(e,{x:0,y:1}),n=KO(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 XO(e,t){const n=qO(e.x,e.y).matrixTransform(t);return new tO(n.x,n.y)}function ZO(e,t){const n=zO.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 o=n.matrixTransform(t);n.x=e.x,n.y=e.y+e.height;const a=n.matrixTransform(t),s=Math.min(r.x,i.x,o.x,a.x),l=Math.max(r.x,i.x,o.x,a.x),c=Math.min(r.y,i.y,o.y,a.y),u=Math.max(r.y,i.y,o.y,a.y);return new nO(s,c,l-s,u-c)}var QO=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};function eL(e,t={}){let n;if(!e.ownerSVGElement||!uM(e)){if(SM(e)){const{left:t,top:n,width:r,height:i}=function(e){let t=0,n=0,r=0,i=0;if(e){let o=e;for(;o;)t+=o.offsetLeft,n+=o.offsetTop,o=o.offsetParent,o&&(t+=parseInt(WM(o,"borderLeft"),10),n+=parseInt(WM(o,"borderTop"),10));r=e.offsetWidth,i=e.offsetHeight}return{left:t,top:n,width:r,height:i}}(e);return new nO(t,n,r,i)}return new nO(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 nO.create(n);return ZO(n,tL(e,r))}{const t=e.childNodes,i=t.length;if(0===i)return eL(e,{target:r});r||(r=e);for(let e=0;e<i;e+=1){const i=t[e];let o;o=0===i.childNodes.length?eL(i,{target:r}):eL(i,{target:r,recursive:!0}),n=n?n.union(o):o}return n}}function tL(e,t){if(uM(t)&&uM(e)){const n=t.getScreenCTM(),r=e.getScreenCTM();if(n&&r)return n.inverse().multiply(r)}return UO()}function nL(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 nO(t("x"),t("y"),t("width"),t("height"));case"circle":return new iO(t("cx"),t("cy"),t("r"),t("r"));case"ellipse":return new iO(t("cx"),t("cy"),t("rx"),t("ry"));case"polyline":{const t=IO(e);return new oO(t)}case"polygon":{const t=IO(e);return t.length>1&&t.push(t[0]),new oO(t)}case"path":{let t=e.getAttribute("d");return CO.isValid(t)||(t=CO.normalize(t)),CO.parse(t)}case"line":return new rO(t("x1"),t("y1"),t("x2"),t("y2"))}return eL(e)}function rL(e,t,n){const r=pM(n);e.appendChild(r);try{return iL(r,t)}catch(e){}return()=>{}}function iL(e,t){const{start:n,complete:r,repeat:i}=t;NM(e,QO(t,["start","complete","repeat"])),n&&e.addEventListener("beginEvent",n),r&&e.addEventListener("endEvent",r),i&&e.addEventListener("repeatEvent",i);const o=e;return setTimeout((()=>{o.beginElement()})),()=>o.endElement()}function oL(e,t,n={}){if(null==t)return WO(NM(e,"transform"));if(n.absolute)return void e.setAttribute("transform",GO(t));const r=e.transform,i=VO(t);r.baseVal.appendItem(i)}function aL(e,t,n=0,r={}){let i=NM(e,"transform");const o=$O(i);if(null==t)return o.translation;i=o.raw,i=i.replace(/translate\([^)]*\)/g,"").trim();const a=`translate(${r.absolute?t:o.translation.tx+t},${r.absolute?n:o.translation.ty+n})`;e.setAttribute("transform",`${a} ${i}`.trim())}function sL(e,t,n,r,i={}){let o=NM(e,"transform");const a=$O(o);if(null==t)return a.rotation;o=a.raw,o=o.replace(/rotate\([^)]*\)/g,"").trim(),t%=360;const s=`rotate(${i.absolute?t:a.rotation.angle+t}${null!=n&&null!=r?`,${n},${r}`:""})`;e.setAttribute("transform",`${o} ${s}`.trim())}function lL(e,t,n){let r=NM(e,"transform");const i=$O(r);if(null==t)return i.scale;n=null==n?t:n,r=i.raw,r=r.replace(/scale\([^)]*\)/g,"").trim();const o=`scale(${t},${n})`;e.setAttribute("transform",`${r} ${o}`.trim())}function cL(e,t,n,r){const i=tO.create(t),o=tO.create(n);if(!r){r=e instanceof SVGSVGElement?e:e.ownerSVGElement}const a=lL(e);e.setAttribute("transform","");const s=eL(e,{target:r}).scale(a.sx,a.sy),l=VO();l.setTranslate(-s.x-s.width/2,-s.y-s.height/2);const c=VO(),u=i.angleBetween(o,i.clone().translate(1,0));u&&c.setRotate(u,0,0);const d=VO(),h=i.clone().move(o,s.width/2);d.setTranslate(2*i.x-h.x,2*i.y-h.y);const f=tL(e,r),p=VO();p.setMatrix(d.matrix.multiply(c.matrix.multiply(l.matrix.multiply(f.scale(a.sx,a.sy))))),e.setAttribute("transform",GO(p.matrix))}class uL{constructor(e,t,n){this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=db.isEventSupported("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(){db.SUPPORT_PASSIVE?this.target.addEventListener(this.eventName,this.onWheel,{passive:!1}):$y()(this.target).on("mousewheel",this.onWheel)}disable(){db.SUPPORT_PASSIVE?this.target.removeEventListener(this.eventName,this.onWheel):$y()(this.target).off("mousewheel")}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}}kO.isVector,kO.create,kO.createVectors;function dL(e,t=60){let n=null;return(...r)=>{n&&clearTimeout(n),n=window.setTimeout((()=>{e.apply(this,r)}),t)}}const hL="undefined"!=typeof ResizeObserver?function(e){let t=null,n=[];const r=dL((()=>{n.forEach((t=>{t(e)}))})),i=()=>{t&&(t.disconnect(),n=[],t=null)};return{element:e,bind:i=>{t||(t=(()=>{const t=new ResizeObserver(r);return t.observe(e),r(),t})()),-1===n.indexOf(i)&&n.push(i)},destroy:i,unbind:e=>{const r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&t&&i()}}}:function(e){let t=null,n=[];const r=dL((()=>{n.forEach((t=>t(e)))})),i=()=>{t&&t.parentNode&&(t.contentDocument&&t.contentDocument.defaultView.removeEventListener("resize",r),t.parentNode.removeChild(t),t=null,n=[])};return{element:e,bind:i=>{t||(t=(()=>{"static"===getComputedStyle(e).position&&(e.style.position="relative");const t=document.createElement("object");return t.onload=()=>{t.contentDocument.defaultView.addEventListener("resize",r),r()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("tabindex","-1"),t.type="text/html",e.appendChild(t),t.data="about:blank",t})()),-1===n.indexOf(i)&&n.push(i)},destroy:i,unbind:e=>{const r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&t&&i()}}};var fL,pL;!function(e){const t=new WeakMap;function n(e){let n=t.get(e);return n||(n=hL(e),t.set(e,n),n)}e.bind=(e,t)=>{const r=n(e);return r.bind(t),()=>r.unbind(t)},e.clear=e=>{!function(e){e.destroy(),t.delete(e.element)}(n(e))}}(fL||(fL={})),function(e){const t=[],n=[];let r=0;const i=()=>performance.now(),o=e=>e[0],a=e=>1===n.push(e)&&s(),s=(()=>{const e=()=>{var e,t;return null===(t=(e=n.splice(0,n.length))[0])||void 0===t?void 0:t.call(e)};if("undefined"!=typeof MessageChannel){const{port1:t,port2:n}=new MessageChannel;return t.onmessage=e,()=>n.postMessage(null)}return()=>setTimeout(e)})(),l=()=>{r=i()+16.666666666666668;let n=o(t);for(;n&&!e.shouldYield();){const{callback:e,data:r}=n;n.callback=null;const i=e&&e(r);i?n.callback=i:t.shift(),n=o(t)}n&&a(l)};e.scheduleTask=(e,n)=>{const r={callback:e,data:n};t.push(r),a(l)},e.shouldYield=()=>{var e,t;return(null===(t=null===(e=navigator)||void 0===e?void 0:e.scheduling)||void 0===t?void 0:t.isInputPending())||i()>=r}}(pL||(pL={}));class gL{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.keys(e).forEach((n=>{this.register(n,e[n],t)}));!this.exist(e)||n||db.isApplyingHMR()||this.onDuplicated(e);const r=this.options.process,i=r?XT(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){try{throw this.options.onConflict&&XT(this.options.onConflict,this,e),new Error(`${wT(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} ${LT(this.options.type)}`:this.options.type;return`${wT(r)} with name '${e}' does not exist.${n?` Did you mean '${n}'?`:""}`}getSpellingSuggestionForName(e){return function(e,t,n){const r=Math.min(2,Math.floor(.34*e.length));let i,o=Math.floor(.4*e.length)+1,a=!1;const s=e.toLowerCase();for(const l of t){const t=n(l);if(void 0!==t&&Math.abs(t.length-s.length)<=r){const n=t.toLowerCase();if(n===s){if(t===e)continue;return l}if(a)continue;if(t.length<3)continue;const r=RT(s,n,o-1);if(void 0===r)continue;r<3?(a=!0,i=l):(o=r,i=l)}}return i}(e,Object.keys(this.data),(e=>e))}}!function(e){e.create=function(t){return new e(t)}}(gL||(gL={}));const mL={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"},vL={},yL={position:BL("x","width","origin")},bL={position:BL("y","height","origin")},wL={position:BL("x","width","corner")},_L={position:BL("y","height","corner")},xL={set:HL("width","width")},EL={set:HL("height","height")},CL={set:HL("rx","width")},kL={set:HL("ry","height")},SL={set:(e=>{const t=HL("r","width"),n=HL("r","height");return function(e,r){const i=r.refBBox;return XT(i.height>i.width?t:n,this,e,r)}})()},TL={set(e,{refBBox:t}){let n=parseFloat(e);const r=YT(e);r&&(n/=100);const i=Math.sqrt(t.height*t.height+t.width*t.width);let o;return Number.isFinite(n)&&(o=r||n>=0&&n<=1?n*i:Math.max(n+i,0)),{r:o}}},ML={set:HL("cx","width")},OL={set:HL("cy","height")},LL={set:UL({resetOffset:!0})},AL={set:UL({resetOffset:!1})},DL={set:VL({resetOffset:!0})},NL={set:VL({resetOffset:!1})},PL=SL,IL=LL,jL=DL,RL=yL,FL=bL,zL=xL,YL=EL;function BL(e,t,n){return(r,{refBBox:i})=>{if(null==r)return null;let o=parseFloat(r);const a=YT(r);let s;if(a&&(o/=100),Number.isFinite(o)){const r=i[n];s=a||o>0&&o<1?r[e]+i[t]*o:r[e]+o}const l=new tO;return l[e]=s||0,l}}function HL(e,t){return function(n,{refBBox:r}){let i=parseFloat(n);const o=YT(n);o&&(i/=100);const a={};if(Number.isFinite(i)){const n=o||i>=0&&i<=1?i*r[t]:Math.max(i+r[t],0);a[e]=n}return a}}function qL(e,t){const n="x6-shape",r=t&&t.resetOffset;return function(t,{view:i,elem:o,refBBox:a}){const s=i.$(o);let l=s.data(n);if(!l||l.value!==t){const r=e(t);l={value:t,shape:r,shapeBBox:r.bbox()},s.data(n,l)}const c=l.shape.clone(),u=l.shapeBBox.clone(),d=u.getOrigin(),h=a.getOrigin();u.x=h.x,u.y=h.y;const f=a.getMaxScaleToFit(u,h),p=0===u.width||0===a.width?1:f.sx,g=0===u.height||0===a.height?1:f.sy;return c.scale(p,g,d),r&&c.translate(-d.x,-d.y),c}}function UL(e){const t=qL((function(e){return CO.parse(e)}),e);return(e,n)=>({d:t(e,n).serialize()})}function VL(e){const t=qL((e=>new oO(e)),e);return(e,n)=>({points:t(e,n).serialize()})}const WL={qualify:mC,set(e,{view:t}){return`url(#${t.graph.defineGradient(e)})`}},GL={qualify:mC,set(e,{view:t}){const n=t.cell,r=Object.assign({},e);if(n.isEdge()&&"linearGradient"===r.type){const e=t,i=e.sourcePoint,o=e.targetPoint;r.id=`gradient-${r.type}-${n.id}`,r.attrs=Object.assign(Object.assign({},r.attrs),{x1:i.x,y1:i.y,x2:o.x,y2:o.y,gradientUnits:"userSpaceOnUse"}),t.graph.defs.remove(r.id)}return`url(#${t.graph.defineGradient(r)})`}},$L={qualify(e,{attrs:t}){return null==t.textWrap||!mC(t.textWrap)},set(e,{view:t,elem:n,attrs:r}){const i="x6-text",o=t.$(n),a=o.data(i),s=e=>{try{return JSON.parse(e)}catch(t){return e}},l={x:r.x,eol:r.eol,annotations:s(r.annotations),textPath:s(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,u=JSON.stringify([e,l]);if(c&&n.setAttribute("font-size",c),null==a||a!==u){const r=l.textPath;if(null!=r&&"object"==typeof r){const e=r.selector;if("string"==typeof e){const n=t.find(e)[0];n instanceof SVGPathElement&&(cM(n),l.textPath=Object.assign({"xlink:href":`#${n.id}`},r))}}OO(n,`${e}`,l),o.data(i,u)}}},KL={qualify:mC,set(e,{view:t,elem:n,attrs:r,refBBox:i}){const o=e,a=o.width||0;YT(a)?i.width*=parseFloat(a)/100:a<=0?i.width+=a:i.width=a;const s=o.height||0;let l;YT(s)?i.height*=parseFloat(s)/100:s<=0?i.height+=s:i.height=s;let c=o.text;null==c&&(c=r.text),l=null!=c?LO(`${c}`,i,{"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:t.graph.view.svg,ellipsis:o.ellipsis,hyphen:o.hyphen,breakWord:o.breakWord}):"",XT($L.set,this,l,{view:t,elem:n,attrs:r,refBBox:i,cell:t.cell})}},JL=(e,{attrs:t})=>void 0!==t.text,XL={qualify:JL},ZL={qualify:JL},QL={qualify:JL},eA={qualify:JL},tA={qualify:JL},nA={qualify:JL},rA={qualify(e,{elem:t}){return t instanceof SVGElement},set(e,{view:t,elem:n}){const r="x6-title",i=`${e}`,o=t.$(n),a=o.data(r);if(null==a||a!==i){o.data(r,i);const e=n.firstChild;if(e&&"TITLE"===e.tagName.toUpperCase()){e.textContent=i}else{const t=document.createElementNS(n.namespaceURI,"title");t.textContent=i,n.insertBefore(t,e)}}}},iA={offset:sA("x","width","right")},oA={offset:sA("y","height","bottom")},aA={offset(e,{refBBox:t}){return e?{x:-t.x,y:-t.y}:{x:0,y:0}}};function sA(e,t,n){return(r,{refBBox:i})=>{const o=new tO;let a;return a="middle"===r?i[t]/2:r===n?i[t]:"number"==typeof r&&Number.isFinite(r)?r>-1&&r<1?-i[t]*r:-r:YT(r)?i[t]*parseFloat(r)/100:0,o[e]=-(i[e]+a),o}}const lA={qualify:mC,set(e,{view:t,elem:n}){t.$(n).css(e)}},cA={set(e,{view:t,elem:n}){t.$(n).html(`${e}`)}},uA={qualify:mC,set(e,{view:t}){return`url(#${t.graph.defineFilter(e)})`}},dA={set(e){return null!=e&&"object"==typeof e&&e.id?e.id:e}};function hA(e,t,n){let r,i;"object"==typeof t?(r=t.x,i=t.y):(r=t,i=n);const o=CO.parse(e),a=o.bbox();if(a){let e=-a.height/2-a.y,t=-a.width/2-a.x;"number"==typeof r&&(t-=r),"number"==typeof i&&(e-=i),o.translate(t,e)}return o.serialize()}var fA=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};const pA=e=>{var{size:t,width:n,height:r,offset:i,open:o}=e;return mA({size:t,width:n,height:r,offset:i},!0===o,!0,void 0,fA(e,["size","width","height","offset","open"]))},gA=e=>{var{size:t,width:n,height:r,offset:i,factor:o}=e;return mA({size:t,width:n,height:r,offset:i},!1,!1,o,fA(e,["size","width","height","offset","factor"]))};function mA(e,t,n,r=3/4,i={}){const o=e.size||10,a=e.width||o,s=e.height||o,l=new CO,c={};if(t)l.moveTo(a,0).lineTo(0,s/2).lineTo(a,s),c.fill="none";else{if(l.moveTo(0,s/2),l.lineTo(a,0),!n){const e=zT(r,0,1);l.lineTo(a*e,s/2)}l.lineTo(a,s),l.close()}return Object.assign(Object.assign(Object.assign({},c),i),{tagName:"path",d:hA(l.serialize(),{x:null!=e.offset?e.offset:-a/2})})}var vA=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};const yA=e=>{var{size:t,width:n,height:r,offset:i}=e,o=vA(e,["size","width","height","offset"]);const a=t||10,s=n||a,l=r||a,c=new CO;return c.moveTo(0,l/2).lineTo(s/2,0).lineTo(s,l/2).lineTo(s/2,l).close(),Object.assign(Object.assign({},o),{tagName:"path",d:hA(c.serialize(),null==i?-s/2:i)})};var bA=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};const wA=e=>{var{d:t,offsetX:n,offsetY:r}=e,i=bA(e,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},i),{tagName:"path",d:hA(t,n,r)})};var _A=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};const xA=e=>{var{size:t,width:n,height:r,offset:i}=e,o=_A(e,["size","width","height","offset"]);const a=t||10,s=n||a,l=r||a,c=new CO;return c.moveTo(0,0).lineTo(s,l).moveTo(0,l).lineTo(s,0),Object.assign(Object.assign({},o),{tagName:"path",fill:"none",d:hA(c.serialize(),i||-s/2)})};var EA=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};const CA=e=>{var{width:t,height:n,offset:r,open:i,flip:o}=e,a=EA(e,["width","height","offset","open","flip"]);let s=n||6;const l=t||10,c=!0===i,u=!0===o,d=Object.assign(Object.assign({},a),{tagName:"path"});u&&(s=-s);const h=new CO;return h.moveTo(0,s).lineTo(l,0),c?d.fill="none":(h.lineTo(l,s),h.close()),d.d=hA(h.serialize(),{x:r||-l/2,y:s/2}),d};var kA=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};const SA=e=>{var{r:t}=e,n=kA(e,["r"]);const r=t||5;return Object.assign(Object.assign({cx:r},n),{tagName:"circle",r:r})},TA=e=>{var{r:t}=e,n=kA(e,["r"]);const r=t||5,i=new CO;return i.moveTo(r,0).lineTo(r,2*r),i.moveTo(0,r).lineTo(2*r,r),{children:[Object.assign(Object.assign({},SA({r:r})),{fill:"none"}),Object.assign(Object.assign({},n),{tagName:"path",d:hA(i.serialize(),-r)})]}};var MA=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};const OA=e=>{var{rx:t,ry:n}=e,r=MA(e,["rx","ry"]);const i=t||5,o=n||5;return Object.assign(Object.assign({cx:i},r),{tagName:"ellipse",rx:i,ry:o})};var LA;!function(t){t.presets=e,t.registry=gL.create({type:"marker"}),t.registry.register(t.presets,!0)}(LA||(LA={})),function(e){e.normalize=hA}(LA||(LA={}));var AA=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};function DA(e){return"string"==typeof e||mC(e)}const NA={qualify:DA,set(e,{view:t,attrs:n}){return jA("marker-start",e,t,n)}},PA={qualify:DA,set(e,{view:t,attrs:n}){return jA("marker-end",e,t,n,{transform:"rotate(180)"})}},IA={qualify:DA,set(e,{view:t,attrs:n}){return jA("marker-mid",e,t,n)}};function jA(e,t,n,r,i={}){const o="string"==typeof t?{name:t}:t,{name:a,args:s}=o,l=AA(o,["name","args"]);let c=l;if(a&&"string"==typeof a){const e=LA.registry.get(a);if(!e)return LA.registry.onNotFound(a);c=e(Object.assign(Object.assign({},l),s))}const u=Object.assign(Object.assign(Object.assign({},function(e,t){const n={},r=e.stroke;"string"==typeof r&&(n.stroke=r,n.fill=r);let i=e.strokeOpacity;null==i&&(i=e["stroke-opacity"]);null==i&&(i=e.opacity);null!=i&&(n["stroke-opacity"]=i,n["fill-opacity"]=i);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}(r,e)),i),c);return{[e]:`url(#${n.graph.defineMarker(u)})`}}const RA=(e,{view:t})=>t.cell.isEdge(),FA={qualify:RA,set(e,t){var n,r,i,o;const a=t.view,s=e.reverse||!1,l=e.stubs||0;let c;if(Number.isFinite(l)&&0!==l)if(s){let e,t;const s=a.getConnectionLength()||0;l<0?(e=(s+l)/2,t=-l):(e=l,t=s-2*l);const u=a.getConnection();c=null===(o=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===o?void 0:o.serialize()}else{let e;if(l<0){e=((a.getConnectionLength()||0)+l)/2}else e=l;const t=a.getConnection();if(t){const n=t.divideAtLength(e),r=t.divideAtLength(-e);n&&r&&(c=`${n[0].serialize()} ${r[1].serialize()}`)}}return{d:c||a.getConnectionPathData()}}},zA={qualify:RA,set:VA("getTangentAtLength",{rotate:!0})},YA={qualify:RA,set:VA("getTangentAtLength",{rotate:!1})},BA={qualify:RA,set:VA("getTangentAtRatio",{rotate:!0})},HA={qualify:RA,set:VA("getTangentAtRatio",{rotate:!1})},qA=zA,UA=BA;function VA(e,t){const n={x:1,y:0};return(r,i)=>{let o,a;const s=i.view,l=s[e](Number(r));return l?(a=t.rotate?l.vector().vectorAngle(n):0,o=l.start):(o=s.path.start,a=0),0===a?{transform:`translate(${o.x},${o.y}')`}:{transform:`translate(${o.x},${o.y}') rotate(${a})`}}}var WA;!function(e){e.isValidDefinition=function(e,t,n){if(null!=e){if("string"==typeof e)return!0;if("function"!=typeof e.qualify||XT(e.qualify,this,t,n))return!0}return!1}}(WA||(WA={})),function(e){e.presets=Object.assign(Object.assign({},mL),t),e.registry=gL.create({type:"attribute definition"}),e.registry.register(e.presets,!0)}(WA||(WA={}));const GA={color:"#aaaaaa",thickness:1,markup:"rect",update(e,t){const n=t.thickness*t.sx,r=t.thickness*t.sy;NM(e,{width:n,height:r,rx:n,ry:r,fill:t.color})}},$A={color:"#aaaaaa",thickness:1,markup:"rect",update(e,t){const n=t.sx<=1?t.thickness*t.sx:t.thickness;NM(e,{width:n,height:n,rx:n,ry:n,fill:t.color})}},KA={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(e,t){let n;const r=t.width,i=t.height,o=t.thickness;n=r-o>=0&&i-o>=0?["M",r,0,"H0 M0 0 V0",i].join(" "):"M 0 0 0 0",NM(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},JA=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update(e,t){let n;const r=t.width,i=t.height,o=t.thickness;n=r-o>=0&&i-o>=0?["M",r,0,"H0 M0 0 V0",i].join(" "):"M 0 0 0 0",NM(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,o=t.height*r,a=t.thickness;n=i-a>=0&&o-a>=0?["M",i,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",t.width=i,t.height=o,NM(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}}];class XA{constructor(){this.patterns={},this.root=kO.create(gM(),{width:"100%",height:"100%"},[pM("defs")]).node}add(e,t){const n=this.root.childNodes[0];n&&n.appendChild(t),this.patterns[e]=t,kO.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]}}function ZA(e,t){return null!=e?e:t}function QA(e,t){return null!=e&&Number.isFinite(e)?e:t}function eD(e={}){const t=ZA(e.color,"blue"),n=QA(e.width,1),r=QA(e.margin,2);return`\n <filter>\n <feFlood flood-color="${t}" flood-opacity="${QA(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()}function tD(e={}){const t=ZA(e.color,"red"),n=QA(e.blur,0),r=QA(e.width,1);return`\n <filter>\n <feFlood flood-color="${t}" flood-opacity="${QA(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()}function nD(e={}){const t=QA(e.x,2);return`\n <filter>\n <feGaussianBlur stdDeviation="${null!=e.y&&Number.isFinite(e.y)?[t,e.y]:t}"/>\n </filter>\n `.trim()}function rD(e={}){const t=QA(e.dx,0),n=QA(e.dy,0),r=ZA(e.color,"black"),i=QA(e.blur,4),o=QA(e.opacity,1);return"SVGFEDropShadowElement"in window?`<filter>\n <feDropShadow stdDeviation="${i}" dx="${t}" dy="${n}" flood-color="${r}" flood-opacity="${o}" />\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="${o}" />\n </feComponentTransfer>\n <feMerge>\n <feMergeNode/>\n <feMergeNode in="SourceGraphic"/>\n </feMerge>\n </filter>`.trim()}function iD(e={}){const t=QA(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()}function oD(e={}){const t=QA(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()}function aD(e={}){return`\n <filter>\n <feColorMatrix type="saturate" values="${1-QA(e.amount,1)}"/>\n </filter>\n `.trim()}function sD(e={}){return`\n <filter>\n <feColorMatrix type="hueRotate" values="${QA(e.angle,0)}"/>\n </filter>\n `.trim()}function lD(e={}){const t=QA(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()}function cD(e={}){const t=QA(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()}function uD(e={}){const t=QA(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()}var dD;!function(e){e.presets=n,e.registry=gL.create({type:"grid"}),e.registry.register(e.presets,!0)}(XA||(XA={})),function(e){e.presets=r,e.registry=gL.create({type:"filter"}),e.registry.register(e.presets,!0)}(dD||(dD={}));const hD=function(e){const t=document.createElement("canvas"),n=e.width,r=e.height;t.width=2*n,t.height=r;const i=t.getContext("2d");return i.drawImage(e,0,0,n,r),i.translate(2*n,0),i.scale(-1,1),i.drawImage(e,0,0,n,r),t},fD=function(e){const t=document.createElement("canvas"),n=e.width,r=e.height;t.width=n,t.height=2*r;const i=t.getContext("2d");return i.drawImage(e,0,0,n,r),i.translate(0,2*r),i.scale(1,-1),i.drawImage(e,0,0,n,r),t},pD=function(e){const t=document.createElement("canvas"),n=e.width,r=e.height;t.width=2*n,t.height=2*r;const i=t.getContext("2d");return i.drawImage(e,0,0,n,r),i.setTransform(-1,0,0,-1,t.width,t.height),i.drawImage(e,0,0,n,r),i.setTransform(-1,0,0,1,t.width,0),i.drawImage(e,0,0,n,r),i.setTransform(1,0,0,-1,0,t.height),i.drawImage(e,0,0,n,r),t},gD=function(e,t){const n=e.width,r=e.height,i=document.createElement("canvas");i.width=3*n,i.height=3*r;const o=i.getContext("2d"),a=null!=t.angle?-t.angle:-20,s=GM.toRad(a),l=i.width/4,c=i.height/4;for(let t=0;t<4;t+=1)for(let i=0;i<4;i+=1)(t+i)%2>0&&(o.setTransform(1,0,0,1,(2*t-1)*l,(2*i-1)*c),o.rotate(s),o.drawImage(e,-n/2,-r/2,n,r));return i};var mD;!function(e){e.presets=Object.assign({},i),e.presets["flip-x"]=hD,e.presets["flip-y"]=fD,e.presets["flip-xy"]=pD,e.registry=gL.create({type:"background pattern"}),e.registry.register(e.presets,!0)}(mD||(mD={}));const vD={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,trackable:!1,trackInfo:{},track(e){vD.trackable=e}};var yD;!function(e){e.snapToGrid=XM,e.normalizeMarker=hA,e.prefix=function(e){return`${vD.prefixCls}-${e}`}}(yD||(yD={})),function(e){e.makeTree=function(e,t,n,r=[]){const i="function"==typeof t.children?t.children(e):e[t.children||"children"];return n||(n=t.createNode(e),r.push(n)),Array.isArray(i)&&i.forEach((e=>{const i=t.createNode(e),o=t.createEdge(n,i);r.push(i,o),this.makeTree(e,t,i,r)})),r}}(yD||(yD={}));const bD=yD.prefix("highlighted"),wD={highlight(e,t,n){oM(t,n&&n.className||bD)},unhighlight(e,t,n){aM(t,n&&n.className||bD)}},_D=yD.prefix("highlight-opacity"),xD={highlight(e,t){oM(t,_D)},unhighlight(e,t){aM(t,_D)}},ED={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},CD={highlight(e,t,n){const r=kD.getHighlighterId(t,n);if(kD.hasCache(r))return;n=dk({},n,ED);const i=kO.create(t);let o,a;try{o=i.toPathData()}catch(e){a=i.bbox(!0),o=jO(Object.assign(Object.assign({},n),a))}const s=pM("path");if(NM(s,Object.assign({d:o,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},n.attrs?IM(n.attrs):null)),e.isEdgeElement(t))NM(s,"d",e.getConnectionPathData());else{let t=i.getTransformToElement(e.container);const r=n.padding;if(r){null==a&&(a=i.bbox(!0));const e=a.x+a.width/2,n=a.y+a.height/2;a=ZO(a,t);const o=Math.max(a.width,1),s=Math.max(a.height,1),l=(o+r)/o,c=(s+r)/s,u=UO({a:l,b:0,c:0,d:c,e:e-l*e,f:n-c*n});t=t.multiply(u)}oL(s,t)}oM(s,yD.prefix("highlight-stroke"));const l=e.cell,c=()=>kD.removeHighlighter(r);l.on("removed",c),l.model&&l.model.on("reseted",c),e.container.appendChild(s),kD.setCache(r,s)},unhighlight(e,t,n){kD.removeHighlighter(kD.getHighlighterId(t,n))}};var kD,SD;function TD(e,t={}){return new tO(BT(t.x,e.width),BT(t.y,e.height))}function MD(e,t,n){return Object.assign({angle:t,position:e.toJSON()},n)}!function(e){e.getHighlighterId=function(e,t){return cM(e),e.id+JSON.stringify(t)};const t={};e.setCache=function(e,n){t[e]=n},e.hasCache=function(e){return null!=t[e]},e.removeHighlighter=function(e){const n=t[e];n&&(xM(n),delete t[e])}}(kD||(kD={})),function(e){e.check=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`)}}(SD||(SD={})),function(e){e.presets=o,e.registry=gL.create({type:"highlighter"}),e.registry.register(e.presets,!0)}(SD||(SD={}));const OD=(e,t)=>e.map((({x:e,y:n,angle:r})=>MD(TD(t,{x:e,y:n}),r||0))),LD=(e,t,n)=>{const r=n.start||0,i=n.step||20;return DD(e,t,r,((e,t)=>(e+.5-t/2)*i))},AD=(e,t,n)=>{const r=n.start||0,i=n.step||360/e.length;return DD(e,t,r,(e=>e*i))};function DD(e,t,n,r){const i=t.getCenter(),o=t.getTopCenter(),a=t.width/t.height,s=iO.fromRect(t),l=e.length;return e.map(((e,t)=>{const c=n+r(t,l),u=o.clone().rotate(-c,i).scale(a,1,i),d=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),MD(u.round(),d,e)}))}var ND=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};const PD=(e,t,n)=>zD(e,TD(t,n.start||t.getOrigin()),TD(t,n.end||t.getCorner()),n),ID=(e,t,n)=>zD(e,t.getTopLeft(),t.getBottomLeft(),n),jD=(e,t,n)=>zD(e,t.getTopRight(),t.getBottomRight(),n),RD=(e,t,n)=>zD(e,t.getTopLeft(),t.getTopRight(),n),FD=(e,t,n)=>zD(e,t.getBottomLeft(),t.getBottomRight(),n);function zD(e,t,n,r){const i=new rO(t,n),o=e.length;return e.map(((e,t)=>{var{strict:n}=e,a=ND(e,["strict"]);const s=n||r.strict?(t+1)/(o+1):(t+.5)/o,l=i.pointAt(s);return(a.dx||a.dy)&&l.translate(a.dx||0,a.dy||0),MD(l.round(),0,a)}))}var YD;!function(e){e.presets=a,e.registry=gL.create({type:"port layout"}),e.registry.register(e.presets,!0)}(YD||(YD={}));const BD={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function HD(e,t){const{x:n,y:r,angle:i,attrs:o}=t||{};return dk({},{angle:i,attrs:o,position:{x:n,y:r}},e,BD)}const qD=(e,t,n)=>HD({position:t.getTopLeft()},n),UD=(e,t,n)=>HD({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},n),VD=(e,t,n)=>HD({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},n),WD=(e,t,n)=>HD({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},n),GD=(e,t,n)=>HD({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},n),$D=(e,t,n)=>ZD(e,t,!1,n),KD=(e,t,n)=>ZD(e,t,!0,n),JD=(e,t,n)=>QD(e,t,!1,n),XD=(e,t,n)=>QD(e,t,!0,n);function ZD(e,t,n,r){const i=null!=r.offset?r.offset:15,o=t.getCenter().theta(e),a=eN(t);let s,l,c,u,d=0;return o<a[1]||o>a[2]?(s=".3em",l=i,c=0,u="start"):o<a[0]?(s="0",l=0,c=-i,n?(d=-90,u="start"):u="middle"):o<a[3]?(s=".3em",l=-i,c=0,u="end"):(s=".6em",l=0,c=i,n?(d=90,u="start"):u="middle"),HD({position:{x:Math.round(l),y:Math.round(c)},angle:d,attrs:{".":{y:s,"text-anchor":u}}},r)}function QD(e,t,n,r){const i=null!=r.offset?r.offset:15,o=t.getCenter().theta(e),a=eN(t);let s,l,c,u,d=0;return o<a[1]||o>a[2]?(s=".3em",l=-i,c=0,u="end"):o<a[0]?(s=".6em",l=0,c=i,n?(d=90,u="start"):u="middle"):o<a[3]?(s=".3em",l=i,c=0,u="start"):(s="0em",l=0,c=-i,n?(d=-90,u="start"):u="middle"),HD({position:{x:Math.round(l),y:Math.round(c)},angle:d,attrs:{".":{y:s,"text-anchor":u}}},r)}function eN(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]}const tN=(e,t,n)=>rN(e.diff(t.getCenter()),!1,n),nN=(e,t,n)=>rN(e.diff(t.getCenter()),!0,n);function rN(e,t,n){const r=null!=n.offset?n.offset:20,i=new tO(0,0),o=-e.theta(i);let a,s=".3em",l=o;return(o+90)%180==0?(a=t?"end":"middle",t||-270!==o||(s="0em")):o>-270&&o<-90?(a="start",l=o-180):a="end",HD({position:e.clone().move(i,r).diff(e).round().round().toJSON(),angle:t?l:0,attrs:{".":{y:s,"text-anchor":a}}},n)}var iN,oN;!function(e){e.presets=s,e.registry=gL.create({type:"port label layout"}),e.registry.register(e.presets,!0)}(iN||(iN={}));class aN{constructor(e,t,n,r){return null==e?this.set(255,255,255,1):"number"==typeof e?this.set(e,t,n,r):"string"==typeof e?aN.fromString(e)||this:Array.isArray(e)?this.set(e):void this.set(e.r,e.g,e.b,null==e.a?1:e.a)}blend(e,t,n){this.set(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}lighten(e){const t=aN.lighten(this.toArray(),e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}darken(e){this.lighten(-e)}set(e,t,n,r){const i=Array.isArray(e)?e[0]:e,o=Array.isArray(e)?e[1]:t,a=Array.isArray(e)?e[2]:n,s=Array.isArray(e)?e[3]:r;return this.r=Math.round(zT(i,0,255)),this.g=Math.round(zT(o,0,255)),this.b=Math.round(zT(a,0,255)),this.a=null==s?1:zT(s,0,1),this}toHex(){const e=["r","g","b"].map((e=>{const t=this[e].toString(16);return t.length<2?`0${t}`:t}));return`#${e.join("")}`}toRGBA(){return this.toArray()}toHSLA(){return aN.rgba2hsla(this.r,this.g,this.b,this.a)}toCSS(e){const t=`${this.r},${this.g},${this.b},`;return e?`rgb(${t})`:`rgba(${t},${this.a})`}toGrey(){return aN.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}toArray(){return[this.r,this.g,this.b,this.a]}toString(){return this.toCSS()}}!function(e){function t(t){return new e([...s(t),1])}function n(t){const n=t.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(n){const t=n[1].split(/\s*,\s*/).map((e=>parseInt(e,10)));return new e(t)}return null}function r(e,t,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function i(t){const n=t.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),r=(parseFloat(t[0])%360+360)%360/360,i=parseFloat(t[1])/100,a=parseFloat(t[2])/100,s=null==t[3]?1:parseInt(t[3],10);return new e(o(r,i,a,s))}return null}function o(e,t,n,i){const o=Array.isArray(e)?e[0]:e,a=Array.isArray(e)?e[1]:t,s=Array.isArray(e)?e[2]:n,l=Array.isArray(e)?e[3]:i,c=s<=.5?s*(a+1):s+a-s*a,u=2*s-c;return[256*r(u,c,o+1/3),256*r(u,c,o),256*r(u,c,o-1/3),null==l?1:l]}function a(t){return new e(Math.round(256*Math.random()),Math.round(256*Math.random()),Math.round(256*Math.random()),t?void 0:parseFloat(Math.random().toFixed(2)))}function s(e){const t=0===e.indexOf("#")?e:`#${e}`;let n=Number(`0x${t.substr(1)}`);if(4!==t.length&&7!==t.length||Number.isNaN(n))throw new Error("Invalid hex color.");const r=4===t.length?4:8,i=(1<<r)-1,o=["b","g","r"].map((()=>{const e=n&i;return n>>=r,4===r?17*e:e}));return[o[2],o[1],o[0]]}function l(e,t,n){const r=e=>e.length<2?`0${e}`:e;return`${r(e.toString(16))}${r(t.toString(16))}${r(n.toString(16))}`}function c(e,t){if("string"==typeof e){const n="#"===e[0],r=parseInt(n?e.substr(1):e,16),i=zT((r>>16)+t,0,255),o=zT((r>>8&255)+t,0,255);return`${n?"#":""}${(zT((255&r)+t,0,255)|o<<8|i<<16).toString(16)}`}const n=s(c(l(e[0],e[1],e[2]),t));return[n[0],n[1],n[2],e[3]]}e.fromArray=function(t){return new e(t)},e.fromHex=t,e.fromRGBA=n,e.fromHSLA=i,e.fromString=function(r){if(r.startsWith("#"))return t(r);if(r.startsWith("rgb"))return n(r);const o=e.named[r];return o?t(o):i(r)},e.makeGrey=function(t,n){return e.fromArray([t,t,t,n])},e.rgba2hsla=function(e,t,n,r){const i=Array.isArray(e)?e[0]:e,o=Array.isArray(e)?e[1]:t,a=Array.isArray(e)?e[2]:n,s=Array.isArray(e)?e[3]:r,l=Math.max(i,o,a),c=Math.min(i,o,a),u=(l+c)/2;let d=0,h=0;if(c!==l){const e=l-c;switch(h=u>.5?e/(2-l-c):e/(l+c),l){case i:d=(o-a)/e+(o<a?6:0);break;case o:d=(a-i)/e+2;break;case a:d=(i-o)/e+4}d/=6}return[d,h,u,null==s?1:s]},e.hsla2rgba=o,e.random=a,e.randomHex=function(){let e="#";for(let t=0;t<6;t+=1)e+="0123456789ABCDEF"[Math.floor(16*Math.random())];return e},e.randomRGBA=function(e){return a(e).toString()},e.invert=function(e,t){if("string"==typeof e){const n="#"===e[0],[r,i,o]=s(e);return t?.299*r+.587*i+.114*o>186?"#000000":"#ffffff":`${n?"#":""}${l(255-r,255-i,255-o)}`}const n=e[0],r=e[1],i=e[2],o=e[3];return t?.299*n+.587*r+.114*i>186?[0,0,0,o]:[255,255,255,o]:[255-n,255-r,255-i,o]},e.lighten=function(e,t){return c(e,t)},e.darken=function(e,t){return c(e,-t)}}(aN||(aN={})),function(e){e.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",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:"#ff00ff",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(aN||(aN={}));class sN{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),oN.call([t,n],i));return this.on(e,r,this)}off(e,t,n){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)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=oN.call([...r],t))}const r=this.listeners["*"];return null!=r?QT([n,oN.call([...r],[e,...t])]):n}emit(e,...t){return this.trigger(e,...t)}}!function(e){e.call=function(e,t){const n=[];for(let r=0;r<e.length;r+=2){const i=JT(e[r],e[r+1],Array.isArray(t)?t:[t]);n.push(i)}return QT(n)}}(oN||(oN={}));class lN{get disposed(){return!0===this._disposed}dispose(){this._disposed=!0}}!function(e){e.dispose=function(){return(e,t,n)=>{const r=n.value,i=e.__proto__;n.value=function(){this.disposed||(r.call(this),i.dispose.call(this))}}}}(lN||(lN={}));class cN{constructor(){this.isDisposed=!1,this.items=new Set}get disposed(){return this.isDisposed}dispose(){this.isDisposed||(this.isDisposed=!0,this.items.forEach((e=>{e.dispose()})),this.items.clear())}contains(e){return this.items.has(e)}add(e){this.items.add(e)}remove(e){this.items.delete(e)}clear(){this.items.clear()}}!function(e){e.from=function(t){const n=new e;return t.forEach((e=>{n.add(e)})),n}}(cN||(cN={}));class uN extends sN{}!function(e){e.dispose=lN.dispose}(uN||(uN={})),hk(uN,lN);class dN extends uN{get disabled(){return!0===this._disabled}enable(){delete this._disabled}disable(){this._disabled=!0}}var hN,fN,pN,gN,mN,vN=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class yN extends lN{constructor(){super(),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()}}vN([lN.dispose()],yN.prototype,"dispose",null);class bN{constructor(e={}){this.comparator=e.comparator||bN.defaultComparator,this.index={},this.data=e.data||[],this.heapify()}isEmpty(){return 0===this.data.length}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}peek(){return this.data[0]?this.data[0].value:null}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,o=this.comparator(t,i);o<0?(r[n].priority=t,this.bubbleUp(n)):o>0&&(r[n].priority=t,this.bubbleDown(n))}remove(){const e=this.data,t=e[0],n=e.pop();return 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;for(;;){const e=1+(r<<1),i=e+1;let o=r;if(e<=n&&this.comparator(t[e].priority,t[o].priority)<0&&(o=e),i<=n&&this.comparator(t[i].priority,t[o].priority)<0&&(o=i),o===r)break;{const e=t[o];t[o]=t[r];let n=t[r].id;null!=n&&(this.index[n]=o),t[r]=e,n=t[r].id,null!=n&&(this.index[n]=r),r=o}}}}!function(e){e.defaultComparator=(e,t)=>e-t}(bN||(bN={})),function(e){e.run=function(e,t,n=((e,t)=>1)){const r={},i={},o={},a=new bN;for(r[t]=0,Object.keys(e).forEach((e=>{e!==t&&(r[e]=1/0),a.insert(r[e],e,e)}));!a.isEmpty();){const t=a.remove();o[t]=!0;const s=e[t]||[];for(let e=0;e<s.length;e+=1){const l=s[e];if(!o[l]){const e=r[t]+n(t,l);e<r[l]&&(r[l]=e,i[l]=t,a.updatePriority(l,e))}}}return i}}(hN||(hN={})),function(e){e.linear=e=>e,e.quad=e=>e*e,e.cubic=e=>e*e*e,e.inout=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)},e.exponential=e=>Math.pow(2,10*(e-1)),e.bounce=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}}}(fN||(fN={})),function(e){e.decorators={reverse(e){return t=>1-e(1-t)},reflect(e){return t=>.5*(t<.5?e(2*t):2-e(2-2*t))},clamp(e,t=0,n=1){return r=>{const i=e(r);return i<t?t:i>n?n:i}},back(e=1.70158){return t=>t*t*((e+1)*t-e)},elastic(e=1.5){return t=>Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e/3*t)}}}(fN||(fN={})),function(e){function t(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}}function n(e){return 1-t(1-e)}e.easeInSine=function(e){return-1*Math.cos(e*(Math.PI/2))+1},e.easeOutSine=function(e){return Math.sin(e*(Math.PI/2))},e.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)},e.easeInQuad=function(e){return e*e},e.easeOutQuad=function(e){return e*(2-e)},e.easeInOutQuad=function(e){return e<.5?2*e*e:(4-2*e)*e-1},e.easeInCubic=function(e){return e*e*e},e.easeOutCubic=function(e){const t=e-1;return t*t*t+1},e.easeInOutCubic=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},e.easeInQuart=function(e){return e*e*e*e},e.easeOutQuart=function(e){const t=e-1;return 1-t*t*t*t},e.easeInOutQuart=function(e){const t=e-1;return e<.5?8*e*e*e*e:1-8*t*t*t*t},e.easeInQuint=function(e){return e*e*e*e*e},e.easeOutQuint=function(e){const t=e-1;return 1+t*t*t*t*t},e.easeInOutQuint=function(e){const t=e-1;return e<.5?16*e*e*e*e*e:1+16*t*t*t*t*t},e.easeInExpo=function(e){return 0===e?0:Math.pow(2,10*(e-1))},e.easeOutExpo=function(e){return 1===e?1:1-Math.pow(2,-10*e)},e.easeInOutExpo=function(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))},e.easeInCirc=function(e){const t=e/1;return-1*(Math.sqrt(1-t*e)-1)},e.easeOutCirc=function(e){const t=e-1;return Math.sqrt(1-t*t)},e.easeInOutCirc=function(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)},e.easeInBack=function(e,t=1.70158){return e*e*((t+1)*e-t)},e.easeOutBack=function(e,t=1.70158){const n=e/1-1;return n*n*((t+1)*n+t)+1},e.easeInOutBack=function(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)},e.easeInElastic=function(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)*Math.sin((n-i)*(2*Math.PI)/r)},e.easeOutElastic=function(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)*Math.sin((r-i)*(2*Math.PI)/n)+1},e.easeInOutElastic=function(e,t=.65){const n=1-t;if(0===e||1===e)return e;const r=2*e,i=r-1,o=n/(2*Math.PI)*Math.asin(1);return r<1?Math.pow(2,10*i)*Math.sin((i-o)*(2*Math.PI)/n)*-.5:Math.pow(2,-10*i)*Math.sin((i-o)*(2*Math.PI)/n)*.5+1},e.easeOutBounce=t,e.easeInBounce=n,e.easeInOutBounce=function(e){return e<.5?.5*n(2*e):.5*t(2*e-1)+.5}}(fN||(fN={})),function(e){e.number=(e,t)=>{const n=t-e;return t=>e+n*t},e.object=(e,t)=>{const n=Object.keys(e);return r=>{const i={};for(let o=n.length-1;-1!==o;o-=1){const a=n[o];i[a]=e[a]+(t[a]-e[a])*r}return i}},e.unit=(e,t)=>{const n=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,r=n.exec(e),i=n.exec(t),o=i?i[1]:"",a=r?+r[1]:0,s=i?+i[1]:0,l=o.indexOf("."),c=l>0?o[1].length-l-1:0,u=s-a,d=r?r[2]:"";return e=>(a+u*e).toFixed(c)+d},e.color=(e,t)=>{const n=parseInt(e.slice(1),16),r=parseInt(t.slice(1),16),i=255&n,o=(255&r)-i,a=65280&n,s=(65280&r)-a,l=16711680&n,c=(16711680&r)-l;return e=>`#${(1<<24|i+o*e&255|a+s*e&65280|l+c*e&16711680).toString(16).slice(1)}`}}(pN||(pN={})),function(e){const t=`${vD.prefixCls}.storage`;function n(e,t,n){e&&KT((()=>{e(t,n)}))}function r(e,t){localStorage.setItem(e,JSON.stringify(t))}function i(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}function o(e){const t=i(s(e));return t?(null==t.keys&&(t.keys=[]),t):{keys:[]}}function a(e,n){return`${t}.${e}.docs.${n}`}function s(e){return`${t}.${e}.index`}e.insert=function(e,t,i){const l=t.id||RS("doc-"),c=o(e);c.keys.push(l),r(a(e,l),t),r(s(e),c),n(i,null,Object.assign(Object.assign({},t),{id:l}))},e.find=function(e,t,r){const s=o(e),l=[];if(null==t)s.keys.forEach((t=>{const o=i(a(e,t));o?l.push(o):n(r,new Error(`No document found for an ID '${t}' from index.`))})),n(r,null,l);else if(t.id){const o=i(a(e,t.id));n(r,null,o?[o]:[])}else n(r,null,[])},e.remove=function(e,t,i){const l=o(e);if(null==t)l.keys.forEach((t=>{localStorage.removeItem(a(e,t))})),localStorage.removeItem(s(e)),n(i,null);else if(t.id){const o=l.keys.indexOf(t.id);o>=0&&l.keys.splice(o,1),localStorage.removeItem(a(e,t.id)),r(s(e),l),n(i,null)}}}(gN||(gN={}));class wN extends uN{constructor(){super(),this.cid=mN.uniqueId(),wN.views[this.cid]=this}get priority(){return 2}confirmUpdate(e,t){return 0}$(e){return wN.$(e)}empty(e=this.container){return this.$(e).empty(),this}unmount(e=this.container){return this.$(e).remove(),this}remove(e=this.container){return e===this.container&&(this.removeEventListeners(document),this.onRemove(),delete wN.views[this.cid]),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 this.$(t).addClass(Array.isArray(e)?e.join(" "):e),this}removeClass(e,t=this.container){return this.$(t).removeClass(Array.isArray(e)?e.join(" "):e),this}setStyle(e,t=this.container){return this.$(t).css(e),this}setAttrs(e,t=this.container){return null!=e&&null!=t&&(t instanceof SVGElement?NM(t,e):this.$(t).attr(e)),this}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 wN.find(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(;n&&n.getAttribute;){const t=n.getAttribute(e);if((null!=t||n===this.container)&&"false"!==t)return n;n=n.parentNode}return null}getSelector(e,t){let n;if(e===this.container)return"string"==typeof t&&(n=`> ${t}`),n;if(e){const r=yM(e)+1;n=`${e.tagName.toLowerCase()}:nth-child(${r})`,t&&(n+=` > ${t}`),n=this.getSelector(e.parentNode,n)}return n}prefixClassName(e){return yD.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 this.$(this.container).off(this.getEventNamespace()),this}delegateDocumentEvents(e,t){return this.addEventListeners(document,e,t),this}undelegateDocumentEvents(){return this.removeEventListeners(document),this}delegateEvent(e,t,n){return this.$(this.container).on(e+this.getEventNamespace(),t,n),this}undelegateEvent(e,t,n){const r=e+this.getEventNamespace();return null==t?this.$(this.container).off(r):"string"==typeof t?this.$(this.container).off(r,t,n):this.$(this.container).off(r,t),this}addEventListeners(e,t,n){if(null==t)return this;const r=this.getEventNamespace(),i=this.$(e);return Object.keys(t).forEach((e=>{const o=this.getEventHandler(t[e]);"function"==typeof o&&i.on(e+r,n,o)})),this}removeEventListeners(e){return null!=e&&this.$(e).off(this.getEventNamespace()),this}getEventNamespace(){return`.${vD.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={}){const{target:n,type:r,clientX:i=0,clientY:o=0}=e;return t.fromPoint||"touchmove"===r||"touchend"===r?document.elementFromPoint(i,o):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}__`;return null==t?null==n?{}:n[r]||{}:(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 wN.normalizeEvent(e)}}!function(e){function t(e){return $y()(e)}e.$=t,e.createElement=function(e,t){return t?pM(e||"g"):fM(e||"div")},e.find=function(e,n,r){if(!e||"."===e)return{elems:[n]};if(r){const t=r[e];if(t)return{elems:Array.isArray(t)?t:[t]}}return vD.useCSSSelector?{isCSSSelector:!0,elems:t(n).find(e).toArray()}:{elems:[]}},e.normalizeEvent=function(e){let t=e;const n=e.originalEvent,r=n&&n.changedTouches&&n.changedTouches[0];if(r){for(const t in e)void 0===r[t]&&(r[t]=e[t]);t=r}const i=t.target;if(i){const e=i.correspondingUseElement;e&&(t.target=e)}return t}}(wN||(wN={})),function(e){e.views={},e.getView=function(t){return e.views[t]||null}}(wN||(wN={})),function(e){let t=0;e.uniqueId=function(){const e=`v${t}`;return t+=1,e}}(mN||(mN={}));const _N=e=>e;function xN(e,t){return 0===t?"0%":`${Math.round(e/t*100)}%`}function EN(e){return(t,n,r,i)=>n.isEdgeElement(r)?function(e,t,n,r,i){const o=n.getConnection();if(!o)return t;const a=o.closestPointLength(i);if(e){const e=o.length();t.anchor={name:"ratio",args:{ratio:a/e}}}else t.anchor={name:"length",args:{length:a}};return t}(e,t,n,0,i):function(e,t,n,r,i){const o=n.cell,a=o.getAngle(),s=n.getUnrotatedBBoxOfElement(r),l=o.getBBox().getCenter(),c=tO.create(i).rotate(a,l);let u=c.x-s.x,d=c.y-s.y;e&&(u=xN(u,s.width),d=xN(d,s.height));return t.anchor={name:"topLeft",args:{dx:u,dy:d,rotate:!0}},t}(e,t,n,r,i)}const CN=EN(!0),kN=EN(!1);var SN,TN;!function(e){e.presets=l,e.registry=gL.create({type:"connection strategy"}),e.registry.register(e.presets,!0)}(SN||(SN={}));class MN{constructor(e){this.view=e,this.clean()}clean(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new yN,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.rotatableNode||this.view.container;t.matrix=tL(e,n)}return UO(t.matrix)}getShape(e){const t=this.get(e);return null==t.shape&&(t.shape=nL(e)),t.shape.clone()}getBoundingRect(e){const t=this.get(e);return null==t.boundingRect&&(t.boundingRect=eL(e)),t.boundingRect.clone()}}!function(e){function t(e){return null!=e&&"string"==typeof e}function n(e){return`${e}`.trim().replace(/[\r|\n]/g," ").replace(/>\s+</g,"><")}function r(e,t={ns:dM.svg}){const n=document.createDocumentFragment(),r={},i={},o=[{markup:Array.isArray(e)?e:[e],parent:n,ns:t.ns}];for(;o.length>0;){const e=o.pop();let t=e.ns||dM.svg;const n=e.markup,a=e.parent;n.forEach((e=>{const n=e.tagName;if(!n)throw new TypeError("Invalid tagName");e.ns&&(t=e.ns);const s=t===dM.svg,l=t?fM(n,t):hM(n),c=e.attrs;c&&(s?NM(l,IM(c)):$y()(l).attr(c));const u=e.style;u&&$y()(l).css(u);const d=e.className;null!=d&&l.setAttribute("class",Array.isArray(d)?d.join(" "):d),e.textContent&&(l.textContent=e.textContent);const h=e.selector;if(null!=h){if(i[h])throw new TypeError("Selector must be unique");i[h]=l}if(e.groupSelector){let t=e.groupSelector;Array.isArray(t)||(t=[t]),t.forEach((e=>{r[e]||(r[e]=[]),r[e].push(l)}))}a.appendChild(l);const f=e.children;Array.isArray(f)&&o.push({ns:t,markup:f,parent:l})}))}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 i(e){return e instanceof SVGElement?pM("g"):hM("div")}e.isJSONMarkup=function(e){return null!=e&&!t(e)},e.isStringMarkup=t,e.clone=function(e){return null==e||t(e)?e:rk(e)},e.sanitize=n,e.parseStringMarkup=function(e){const t=document.createDocumentFragment();return jT(n(e),{raw:!0}).forEach((e=>{t.appendChild(e)})),{fragment:t,selectors:{},groups:{}}},e.parseJSONMarkup=r,e.renderMarkup=function(e){if(t(e)){const t=kO.createVectors(e),n=t.length;if(1===n)return{elem:t[0].node};if(n>1){const e=i(t[0].node);return t.forEach((t=>{e.appendChild(t.node)})),{elem:e}}return{}}const n=r(e),o=n.fragment;let a=null;return o.childNodes.length>1?(a=i(o.firstChild),a.appendChild(o)):a=o.firstChild,{elem:a,selectors:n.selectors}},e.parseLabelStringMarkup=function(e){const t=kO.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:{}}}}(TN||(TN={})),function(e){function t(e,n,r){if(null!=e){let i;const o=e.tagName.toLowerCase();if(e===n)return i="string"==typeof r?`> ${o} > ${r}`:`> ${o}`,i;const a=e.parentNode;if(a&&a.childNodes.length>1){i=`${o}:nth-child(${yM(e)+1})`}else i=o;return r&&(i+=` > ${r}`),t(e.parentNode,n,i)}return r}e.getSelector=t,e.xml2json=function(n){const r=mM(e.sanitize(n),{mimeType:"image/svg+xml"}),i=Array.prototype.slice.call(r.childNodes),o={},a=new WeakMap,s=(e,n,r)=>{const i=function(e,n,r){if("#text"===e.nodeName)return null;let i=null,o=null,a=null,s=!1;const l={tagName:e.tagName};if(e.attributes){a={};for(let t=0,n=e.attributes.length;t<n;t+=1){const n=e.attributes[t],r=n.nodeName,s=n.nodeValue;"selector"===r?i=s:"groupSelector"===r?o=s:"class"===r?l.attrs={class:s}:a[r]=s}}return null==i&&(s=!0,i=t(e,n)),e.namespaceURI&&(l.ns=e.namespaceURI),null==l.ns&&(["body","div","section","main","nav","footer","span","p","h1","h2","h3","h4","h5","h6","ul","ol","dl","center","strong","pre","form","select","textarea","fieldset","marquee","bgsound","iframe","frameset"].includes(e.tagName)?l.ns=dM.xhtml:r&&(l.ns=r)),i&&(l.selector=i),null!=o&&(l.groupSelector=o),{markup:l,attrs:a,isCSSSelector:s}}(e,n,r);if(null!=i){const{markup:t,attrs:r,isCSSSelector:l}=i;if(a.set(e,t),t.selector&&null!=r&&(Object.keys(r).length&&(o[t.selector]=r),l&&delete t.selector),e.childNodes&&e.childNodes.length>0)for(let r=0,i=e.childNodes.length;r<i;r+=1){const i=e.childNodes[r],o=s(i,n,t.ns);o&&(null==t.children&&(t.children=[]),t.children.push(o))}return t}{const t=a.get(e.parentNode);t&&e.textContent&&(t.textContent=e.textContent)}},l=i.map((e=>s(e,e))).filter((e=>null!=e));return{markup:l,attrs:o}}}(TN||(TN={})),function(e){e.getPortContainerMarkup=function(){return"g"},e.getPortMarkup=function(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}},e.getPortLabelMarkup=function(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}}}(TN||(TN={})),function(e){e.getEdgeMarkup=function(){return e.sanitize('\n <path class="connection" stroke="black" d="M 0 0 0 0"/>\n <path class="source-marker" fill="black" stroke="black" d="M 0 0 0 0"/>\n <path class="target-marker" fill="black" stroke="black" d="M 0 0 0 0"/>\n <path class="connection-wrap" d="M 0 0 0 0"/>\n <g class="labels"/>\n <g class="vertices"/>\n <g class="arrowheads"/>\n <g class="tools"/>\n ')},e.getEdgeToolMarkup=function(){return e.sanitize('\n <g class="edge-tool">\n <g class="tool-remove" event="edge:remove">\n <circle r="11" />\n <path transform="scale(.8) translate(-16, -16)" d="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z" />\n <title>Remove edge.</title>\n </g>\n <g class="tool-options" event="edge:options">\n <circle r="11" transform="translate(25)"/>\n <path fill="white" transform="scale(.55) translate(29, -16)" d="M31.229,17.736c0.064-0.571,0.104-1.148,0.104-1.736s-0.04-1.166-0.104-1.737l-4.377-1.557c-0.218-0.716-0.504-1.401-0.851-2.05l1.993-4.192c-0.725-0.91-1.549-1.734-2.458-2.459l-4.193,1.994c-0.647-0.347-1.334-0.632-2.049-0.849l-1.558-4.378C17.165,0.708,16.588,0.667,16,0.667s-1.166,0.041-1.737,0.105L12.707,5.15c-0.716,0.217-1.401,0.502-2.05,0.849L6.464,4.005C5.554,4.73,4.73,5.554,4.005,6.464l1.994,4.192c-0.347,0.648-0.632,1.334-0.849,2.05l-4.378,1.557C0.708,14.834,0.667,15.412,0.667,16s0.041,1.165,0.105,1.736l4.378,1.558c0.217,0.715,0.502,1.401,0.849,2.049l-1.994,4.193c0.725,0.909,1.549,1.733,2.459,2.458l4.192-1.993c0.648,0.347,1.334,0.633,2.05,0.851l1.557,4.377c0.571,0.064,1.148,0.104,1.737,0.104c0.588,0,1.165-0.04,1.736-0.104l1.558-4.377c0.715-0.218,1.399-0.504,2.049-0.851l4.193,1.993c0.909-0.725,1.733-1.549,2.458-2.458l-1.993-4.193c0.347-0.647,0.633-1.334,0.851-2.049L31.229,17.736zM16,20.871c-2.69,0-4.872-2.182-4.872-4.871c0-2.69,2.182-4.872,4.872-4.872c2.689,0,4.871,2.182,4.871,4.872C20.871,18.689,18.689,20.871,16,20.871z"/>\n <title>Edge options.</title>\n </g>\n </g>\n ')},e.getEdgeVertexMarkup=function(){return e.sanitize('\n <g class="vertex-group" transform="translate(<%= x %>, <%= y %>)">\n <circle class="vertex" data-index="<%= index %>" r="10" />\n <path class="vertex-remove-area" data-index="<%= index %>" d="M16,5.333c-7.732,0-14,4.701-14,10.5c0,1.982,0.741,3.833,2.016,5.414L2,25.667l5.613-1.441c2.339,1.317,5.237,2.107,8.387,2.107c7.732,0,14-4.701,14-10.5C30,10.034,23.732,5.333,16,5.333z" transform="translate(5, -33)"/>\n <path class="vertex-remove" data-index="<%= index %>" transform="scale(.8) translate(9.5, -37)" d="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z">\n <title>Remove vertex.</title>\n </path>\n </g>\n ')},e.getEdgeArrowheadMarkup=function(){return e.sanitize('\n <g class="arrowhead-group arrowhead-group-<%= end %>">\n <path class="arrowhead" data-terminal="<%= end %>" d="M 26 0 L 0 13 L 26 26 z" />\n </g>\n ')}}(TN||(TN={})),function(e){e.getForeignObjectMarkup=function(e=!1){return{tagName:"foreignObject",selector:"fo",children:[{ns:dM.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:dM.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:e?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}}(TN||(TN={}));class ON{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,o,a;const s=[];return Object.keys(t).forEach((r=>{const i=t[r],o=this.getDefinition(r),a=XT(WA.isValidDefinition,this.view,o,i,{elem:e,attrs:t,cell:this.cell,view:this.view});if(o&&a)"string"==typeof o?(null==n&&(n={}),n[o]=i):null!==i&&s.push({name:r,definition:o});else{null==n&&(n={});const e=OM.includes(r)?r:DT(r);n[e]=i}})),s.forEach((({name:n,definition:s})=>{const l=t[n];"function"==typeof s.set&&(!SM(e)&&ON.DELAY_ATTRS.includes(n)?(null==a&&(a={}),a[n]=l):(null==r&&(r={}),r[n]=l));"function"==typeof s.offset&&(null==i&&(i={}),i[n]=l);"function"==typeof s.position&&(null==o&&(o={}),o[n]=l)})),{raw:t,normal:n,set:r,offset:i,position:o,delay:a}}mergeProcessedAttrs(e,t){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);const n=e.normal&&e.normal.transform;null!=n&&t.normal&&(t.normal.transform=n),e.normal=t.normal}findAttrs(e,t,n,r){const i=[],o=new yN;return Object.keys(e).forEach((a=>{const s=e[a];if(!mC(s))return;const{isCSSSelector:l,elems:c}=wN.find(a,t,r);n[a]=c;for(let e=0,t=c.length;e<t;e+=1){const n=c[e],u=r&&r[a]===n,d=o.get(n);if(d){d.array||(i.push(n),d.array=!0,d.attrs=[d.attrs],d.priority=[d.priority]);const e=d.attrs,r=d.priority;if(u)e.unshift(s),r.unshift(-1);else{const n=f_(r,l?-1:t);e.splice(n,0,s),r.splice(n,0,t)}}else o.set(n,{elem:n,attrs:s,priority:u?-1:t,array:!1})}})),i.forEach((e=>{const t=o.get(e),n=t.attrs;t.attrs=n.reduceRight(((e,t)=>CC(e,t)),{})})),o}updateRelativeAttrs(e,t,n,r){const i=t.raw||{};let o=t.normal||{};const a=t.set,s=t.position,l=t.offset,c=t.delay,u=()=>({elem:e,cell:this.cell,view:this.view,attrs:i,refBBox:n.clone()});if(null!=a&&Object.keys(a).forEach((e=>{const t=a[e],n=this.getDefinition(e);if(null!=n){const r=XT(n.set,this.view,t,u());"object"==typeof r?o=Object.assign(Object.assign({},o),r):null!=r&&(o[e]=r)}})),SM(e))return void this.view.setAttrs(o,e);const d=o.transform,h=WO(d?`${d}`:null),f=new tO(h.e,h.f);d&&(delete o.transform,h.e=0,h.f=0);let p=1,g=1;if(s||l){const t=this.view.getScaleOfElement(e,r.scalableNode);p=t.sx,g=t.sy}let m=!1;null!=s&&Object.keys(s).forEach((e=>{const t=s[e],n=this.getDefinition(e);if(null!=n){const e=XT(n.position,this.view,t,u());null!=e&&(m=!0,f.translate(tO.create(e).scale(p,g)))}})),this.view.setAttrs(o,e);let v=!1;if(null!=l){const t=this.view.getBoundingRectOfElement(e);if(t.width>0&&t.height>0){const n=ZO(t,h).scale(1/p,1/g);Object.keys(l).forEach((t=>{const r=l[t],o=this.getDefinition(t);if(null!=o){const t=XT(o.offset,this.view,r,{elem:e,cell:this.cell,view:this.view,attrs:i,refBBox:n});null!=t&&(v=!0,f.translate(tO.create(t).scale(p,g)))}}))}}(null!=d||m||v)&&(f.round(1),h.e=f.x,h.f=f.y,e.setAttribute("transform",GO(h)));const y=()=>{null!=c&&Object.keys(c).forEach((t=>{const n=c[t],r=this.getDefinition(t);if(null!=r){const i=XT(r.set,this.view,n,u());"object"==typeof i?this.view.setAttrs(i,e):null!=i&&this.view.setAttrs({[t]:i},e)}}))};r.forceSync?y():pL.scheduleTask(y)}update(e,t,n){const r={},i=this.findAttrs(n.attrs||t,e,r,n.selectors),o=n.attrs?this.findAttrs(t,e,r,n.selectors):i,a=[];i.each((t=>{const i=t.elem,s=t.attrs,l=this.processAttrs(i,s);if(null==l.set&&null==l.position&&null==l.offset&&null==l.delay)this.view.setAttrs(l.normal,i);else{const t=o.get(i),c=t?t.attrs:null,u=c&&null==s.ref?c.ref:s.ref;let d;if(u){if(d=(r[u]||this.view.find(u,e,n.selectors))[0],!d)throw new Error(`"${u}" reference does not exist.`)}else d=null;const h={node:i,refNode:d,attributes:c,processedAttributes:l},f=a.findIndex((e=>e.refNode===i));f>-1?a.splice(f,0,h):a.push(h)}}));const s=new yN;let l;a.forEach((t=>{const r=t.node,i=t.refNode;let o;const c=null!=i&&null!=n.rotatableNode&&_M(n.rotatableNode,i);if(i&&(o=s.get(i)),!o){const t=c?n.rotatableNode:e;o=i?eL(i,{target:t}):n.rootBBox,i&&s.set(i,o)}let u;n.attrs&&t.attributes?(u=this.processAttrs(r,t.attributes),this.mergeProcessedAttrs(u,t.processedAttributes)):u=t.processedAttributes;let d=o;c&&null!=n.rotatableNode&&!n.rotatableNode.contains(r)&&(l||(l=WO(NM(n.rotatableNode,"transform"))),d=ZO(o,l));const h=a.find((e=>e.refNode===r));h&&(n.forceSync=!0),this.updateRelativeAttrs(r,u,d,n)}))}}!function(e){e.DELAY_ATTRS=["text","textWrap","sourceMarker","targetMarker"]}(ON||(ON={}));class LN{constructor(e,t,n=[]){this.view=e;const r={},i={};let o=0;Object.keys(t).forEach((e=>{let n=t[e];Array.isArray(n)||(n=[n]),n.forEach((t=>{let n=r[t];n||(o+=1,n=r[t]=1<<o),i[e]|=n}))}));let a=n;if(Array.isArray(a)||(a=[a]),a.forEach((e=>{r[e]||(o+=1,r[e]=1<<o)})),o>25)throw new Error("Maximum number of flags exceeded.");this.flags=r,this.attrs=i,this.bootstrap=n}get cell(){return this.view.cell}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}}var AN=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};class DN extends wN{constructor(e,t={}){super(),this.cell=e,this.options=this.ensureOptions(t),this.graph=this.options.graph,this.attr=new ON(this),this.flag=new LN(this,this.options.actions,this.options.bootstrap),this.cache=new MN(this),this.setContainer(this.ensureContainer()),this.setup(),this.$(this.container).data("view",this),this.init()}static getDefaults(){return this.defaults}static config(e){this.defaults=this.getOptions(e)}static getOptions(e){const t=(e,t)=>null!=t?jw([...Array.isArray(e)?e:[e],...Array.isArray(t)?t:[t]]):Array.isArray(e)?[...e]:[e],n=rk(this.getDefaults()),{bootstrap:r,actions:i,events:o,documentEvents:a}=e,s=AN(e,["bootstrap","actions","events","documentEvents"]);return r&&(n.bootstrap=t(n.bootstrap,r)),i&&Object.keys(i).forEach((e=>{const r=i[e],o=n.actions[e];r&&o?n.actions[e]=t(o,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),a)),CC(n,s)}get[Symbol.toStringTag](){return DN.toStringTag}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 wN.createElement(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",(({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")),e.toolId&&(e.async=!1),null!=this.graph&&this.graph.renderer.requestViewUpdate(this,t,this.priority,e))}parseJSONMarkup(e,t){const n=TN.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=XT(t,this.graph,this)),"object"==typeof t){let n=t[e];return"function"==typeof n&&(n=XT(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)}getScaleOfElement(e,t){let n,r;if(t&&t.contains(e)){const e=lL(t);n=1/e.sx,r=1/e.sy}else n=1,r=1;return{sx:n,sy:r}}getBoundingRectOfElement(e){return this.cache.getBoundingRect(e)}getBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),r=this.getRootRotatedMatrix();return ZO(t,this.getRootTranslatedMatrix().multiply(r).multiply(n))}getUnrotatedBBoxOfElement(e){const t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e);return ZO(t,this.getRootTranslatedMatrix().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.localToGraph(t)}getRootTranslatedMatrix(){const e=this.cell,t=e.isNode()?e.getPosition():{x:0,y:0};return UO().translate(t.x,t.y)}getRootRotatedMatrix(){let e=UO();const t=this.cell,n=t.isNode()?t.getAngle():0;if(n){const r=t.getBBox(),i=r.width/2,o=r.height/2;e=e.translate(i,o).rotate(n).translate(-i,-o)}return e}findMagnet(e=this.container){return this.findByAttr("magnet",e)}updateAttrs(e,t,n={}){null==n.rootBBox&&(n.rootBBox=new nO),null==n.selectors&&(n.selectors=this.selectors),this.attr.update(e,t,n)}isEdgeElement(e){return this.cell.isEdge()&&(null==e||e===this.container)}prepareHighlight(e,t={}){const n=e&&this.$(e)[0]||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}notifyUnhighlight(e,t){}getEdgeTerminal(e,t,n,r,i){const o=this.cell,a=this.findAttr("port",e),s=e.getAttribute("data-selector"),l={cell:o.id};return null!=s&&(l.magnet=s),null!=a?(l.port=a,o.isNode()&&(o.hasPort(a)||null!=s||(l.selector=this.getSelector(e)))):null==s&&this.container!==e&&(l.selector=this.getSelector(e)),this.customizeEdgeTerminal(l,e,t,n,r,i)}customizeEdgeTerminal(e,t,n,r,i,o){const a=i.getStrategy()||this.graph.options.connecting.strategy;if(a){const s="string"==typeof a?a:a.name,l="string"==typeof a?{}:a.args||{},c=SN.registry;if(s){const a=c.get(s);if(null==a)return c.onNotFound(s);const u=XT(a,this.graph,e,this,t,new tO(n,r),i,o,l);if(u)return u}}return e}getMagnetFromEdgeTerminal(e){const t=this.cell,n=this.container,r=e.port;let i,o=e.magnet;return null!=r&&t.isNode()&&t.hasPort(r)?i=this.findPortElem(r,o)||n:(o||(o=e.selector),o||null==r||(o=`[port="${r}"]`),i=this.findOne(o,n,this.selectors)),i}animate(e,t){const n="string"==typeof e?this.findOne(e):e;if(null==n)throw new Error("Invalid animation element.");const r=n.parentNode,i=kO.create(n);r||i.appendTo(this.graph.view.stage);const o=t.complete;return t.complete=e=>{r||xM(n),o&&o(e)},i.animate(t)}animateTransform(e,t){const n="string"==typeof e?this.findOne(e):e;if(null==n)throw new Error("Invalid animation element.");const r=n.parentNode,i=kO.create(n);r||i.appendTo(this.graph.view.stage);const o=t.complete;return t.complete=e=>{r||xM(n),o&&o(e)},i.animateTransform(t)}hasTools(e){const t=this.tools;return null!=t&&(null==e||t.name===e)}addTools(e){if(!this.can("toolsAddable"))return this;if(this.removeTools(),e){const t=NN.isToolsView(e)?e:new NN(e);this.tools=t,this.graph.on("tools:hide",this.hideTools,this),this.graph.on("tools:show",this.showTools,this),this.graph.on("tools:remove",this.removeTools,this),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.graph.off("tools:hide",this.hideTools,this),this.graph.off("tools:show",this.showTools,this),this.graph.off("tools:remove",this.removeTools,this),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;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.graph;t.renderer.isAsync()&&t.renderer.dumpView(this);const n=this.getEventTarget(e,{fromPoint:!0}),r=t.renderer.findViewByElem(n);r!==this&&(this.onMouseLeave(e),r&&r.onMouseEnter(e))}}DN.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}},function(e){e.Flag=LN,e.Attr=ON}(DN||(DN={})),function(e){e.toStringTag=`X6.${e.name}`,e.isCellView=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"==typeof r.isNodeView&&"function"==typeof r.isEdgeView&&"function"==typeof r.confirmUpdate}}(DN||(DN={})),function(e){e.priority=function(e){return function(t){t.config({priority:e})}},e.bootstrap=function(e){return function(t){t.config({bootstrap:e})}}}(DN||(DN={})),function(e){e.registry=gL.create({type:"view"})}(DN||(DN={}));class NN extends wN{constructor(e={}){super(),this.svgContainer=this.createContainer(!0,e),this.htmlContainer=this.createContainer(!1,e),this.config(e)}get name(){return this.options.name}get graph(){return this.cellView.graph}get cell(){return this.cellView.cell}get[Symbol.toStringTag](){return NN.toStringTag}createContainer(e,t){const n=e?wN.createElement("g",!0):wN.createElement("div",!1);return oM(n,this.prefixClassName("cell-tools")),t.className&&oM(n,t.className),n}config(e){if(this.options=Object.assign(Object.assign({},this.options),e),!DN.isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(oM(this.svgContainer,this.prefixClassName("edge-tools")),oM(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(oM(this.svgContainer,this.prefixClassName("node-tools")),oM(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(NN.ToolItem.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(NN.ToolItem.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=KN.registry.get(e);if(!t)return KN.registry.onNotFound(e);r=new t(n)}else if(this.cell.isEdge()){const t=JN.registry.get(e);if(!t)return JN.registry.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),xM(this.svgContainer),xM(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}}function PN(e,t,n,r){return XT(SN.presets.pinRelative,this.graph,{},t,n,e,this.cell,r,{}).anchor}function IN(e,t){return t?e.cell.getBBox():e.cell.isEdge()?e.getConnection().bbox():e.getUnrotatedBBoxOfElement(e.container)}!function(e){e.toStringTag=`X6.${e.name}`,e.isToolsView=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&null!=r.graph&&null!=r.cell&&"function"==typeof r.config&&"function"==typeof r.update&&"function"==typeof r.focus&&"function"==typeof r.blur&&"function"==typeof r.show&&"function"==typeof r.hide}}(NN||(NN={})),function(e){class t extends wN{constructor(e={}){super(),this.visible=!0,this.options=this.getOptions(e),this.container=wN.createElement(this.options.tagName||"g",!1!==this.options.isSVGElement),oM(this.container,this.prefixClassName("cell-tool")),"string"==typeof this.options.className&&oM(this.container,this.options.className),this.init()}static getDefaults(){return this.defaults}static config(e){this.defaults=this.getOptions(e)}static getOptions(e){return CC(rk(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 t.toStringTag}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()?oM(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&oM(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=TN.isStringMarkup(e)?TN.parseStringMarkup(e):TN.parseJSONMarkup(e);this.container.appendChild(t.fragment),this.childNodes=t.selectors}return this.onRender(),this}onRender(){}update(){return this}stamp(e=this.container){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)}}t.defaults={isSVGElement:!0,tagName:"g"},e.ToolItem=t,function(e){let t=0;e.define=function(e){const n=gk((r=e.name)?NT(r):(t+=1,`CustomTool${t}`),this);var r;return n.config(e),n}}(t=e.ToolItem||(e.ToolItem={})),function(e){e.toStringTag=`X6.${e.name}`,e.isToolItem=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&null!=r.graph&&null!=r.cell&&"function"==typeof r.config&&"function"==typeof r.update&&"function"==typeof r.focus&&"function"==typeof r.blur&&"function"==typeof r.show&&"function"==typeof r.hide&&"function"==typeof r.isVisible}}(t=e.ToolItem||(e.ToolItem={}))}(NN||(NN={}));class jN extends NN.ToolItem{onRender(){oM(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();oL(this.container,e,{absolute:!0})}getNodeMatrix(){const e=this.cellView,t=this.options;let{x:n=0,y:r=0}=t;const{offset:i,useCellGeometry:o,rotate:a}=t;let s=IN(e,o);const l=e.cell.getAngle();a||(s=s.bbox(l));let c=0,u=0;"number"==typeof i?(c=i,u=i):"object"==typeof i&&(c=i.x,u=i.y),n=BT(n,s.width),r=BT(r,s.height);let d=UO().translate(s.x+s.width/2,s.y+s.height/2);return a&&(d=d.rotate(l)),d=d.translate(n+c-s.width/2,r+u-s.height/2),d}getEdgeMatrix(){const e=this.cellView,t=this.options,{offset:n=0,distance:r=0,rotate:i}=t;let o,a,s;const l=BT(r,1);o=l>=0&&l<=1?e.getTangentAtRatio(l):e.getTangentAtLength(l),o?(a=o.start,s=o.vector().vectorAngle(new tO(1,0))||0):(a=e.getConnection().start,s=0);let c=UO().translate(a.x,a.y).rotate(s);return c="object"==typeof n?c.translate(n.x||0,n.y||0):c.translate(0,n),i||(c=c.rotate(-s)),c}onMouseDown(e){if(this.guard(e))return;e.stopPropagation(),e.preventDefault();const t=this.options.onClick;"function"==typeof t&&XT(t,this.cellView,{e:e,view:this.cellView,cell:this.cellView.cell,btn:this})}}!function(e){e.config({name:"button",events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}})}(jN||(jN={})),function(e){e.Remove=e.define({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,onClick({view:e,btn:t}){t.parent.remove(),e.cell.remove({ui:!0,toolId:t.cid})}})}(jN||(jN={}));var RN=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};class FN extends NN.ToolItem{onRender(){if(oM(this.container,this.prefixClassName("cell-tool-boundary")),this.options.attrs){const e=this.options.attrs,{class:t}=e,n=RN(e,["class"]);NM(this.container,IM(n)),t&&oM(this.container,t)}this.update()}update(){const e=this.cellView,t=this.options,{useCellGeometry:n,rotate:r}=t,i=qT(t.padding);let o=IN(e,n).moveAndExpand({x:-i.left,y:-i.top,width:i.left+i.right,height:i.top+i.bottom});const a=e.cell;if(a.isNode()){const e=a.getAngle();if(e)if(r){const t=a.getBBox().getCenter();sL(this.container,e,t.x,t.y,{absolute:!0})}else o=o.bbox(e)}return NM(this.container,o.toJSON()),this}}!function(e){e.config({name:"boundary",tagName:"rect",padding:10,attrs:{fill:"none",stroke:"#333","stroke-width":.5,"stroke-dasharray":"5, 5","pointer-events":"none"}})}(FN||(FN={}));class zN extends NN.ToolItem{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,o=r({index:t,graph:this.graph,guard:e=>this.guard(e),attrs:this.options.attrs||{}});i&&i(o),this.graph.hook.onToolItemCreated({name:"vertices",cell:this.cell,view:this.cellView,tool:o}),o.updatePosition(n.x,n.y),this.stamp(o.container),this.container.appendChild(o.container),this.handles.push(o),this.startHandleListening(o)}}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:tO.create(r),next:tO.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);t.notifyMouseDown(n,r,i)}}onHandleChanging({handle:e,e:t}){const n=this.cellView,r=e.options.index,{e:i,x:o,y:a}=this.getMouseEventArgs(t),s={x:o,y:a};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,o,a)}onHandleChanged({e:e}){const t=this.options,n=this.cellView;if(t.addable&&this.updatePath(),!t.removeRedundancies)return;n.removeRedundantLinearVertices({ui:!0,toolId:this.cid})&&this.render(),this.blur(),n.cell.stopBatch("move-vertex",{ui:!0,toolId:this.cid}),this.eventData(e).vertexAdded&&n.cell.stopBatch("add-vertex",{ui:!0,toolId:this.cid});const{e:r,x:i,y:o}=this.getMouseEventArgs(e);this.options.stopPropagation||n.notifyMouseUp(r,i,o),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,o=r.next;Math.abs(e.x-i.x)<n?e.x=i.x:Math.abs(e.x-o.x)<n&&(e.x=o.x),Math.abs(e.y-i.y)<n?e.y=r.prev.y:Math.abs(e.y-o.y)<n&&(e.y=o.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))}}onPathMouseDown(e){const t=this.cellView;if(this.guard(e)||!this.options.addable||!t.can("vertexAddable"))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 o=this.handles[i];this.eventData(n,{vertexAdded:!0}),o.onMouseDown(n)}onRemove(){this.resetHandles()}}!function(e){e.Handle=class extends wN{constructor(e){super(),this.options=e,this.render(),this.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDoubleClick"})}get graph(){return this.options.graph}render(){this.container=wN.createElement("circle",!0);const t=this.options.attrs;if("function"==typeof t){const n=e.getDefaults();this.setAttrs(Object.assign(Object.assign({},n.attrs),t(this)))}else this.setAttrs(t);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})}}}(zN||(zN={})),function(e){const t=yD.prefix("edge-tool-vertex-path");e.config({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:t=>new e.Handle(t),markup:[{tagName:"path",selector:"connection",className:t,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:{[`mousedown .${t}`]:"onPathMouseDown",[`touchstart .${t}`]:"onPathMouseDown"}})}(zN||(zN={}));class YN extends NN.ToolItem{constructor(){super(...arguments),this.handles=[]}get vertices(){return this.cellView.cell.getVertices()}update(){return this.render(),this}onRender(){oM(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();const e=this.cellView,t=[...this.vertices];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.graph.hook.onToolItemCreated({name:"segments",cell:this.cell,view:this.cellView,tool: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,o=this.cellView.cell.getVertices(),a=o[i-2]||n.sourceAnchor,s=o[i+1]||n.targetAnchor,l=this.options.snapRadius;return Math.abs(t[r]-a[r])<l?t[r]=a[r]:Math.abs(t[r]-s[r])<l&&(t[r]=s[r]),t}onHandleChanging({handle:e,e:t}){const n=this.graph,r=this.options,i=this.cellView,o=r.anchor,a=e.options.axis,s=e.options.index-1,l=this.getEventData(t),c=this.normalizeEvent(t),u=n.snapToGrid(c.clientX,c.clientY),d=this.snapHandle(e,u.clone(),l),h=rk(this.vertices);let f=h[s],p=h[s+1];const g=i.sourceView,m=i.sourceBBox;let v=!1,y=!1;if(f?0===s?m.containsPoint(f)?(h.shift(),this.shiftHandleIndexes(-1),v=!0):(f[a]=d[a],y=!0):f[a]=d[a]:(f=i.sourceAnchor.toJSON(),f[a]=d[a],m.containsPoint(f)?v=!0:(h.unshift(f),this.shiftHandleIndexes(1),y=!0)),"function"==typeof o&&g){if(v){const e=l.sourceAnchor.clone();e[a]=d[a];const t=XT(o,i,e,g,i.sourceMagnet||g.container,"source",i,this);this.resetAnchor("source",t)}y&&this.resetAnchor("source",l.sourceAnchorDef)}const b=i.targetView,w=i.targetBBox;let _=!1,x=!1;if(p?s===h.length-2?w.containsPoint(p)?(h.pop(),_=!0):(p[a]=d[a],x=!0):p[a]=d[a]:(p=i.targetAnchor.toJSON(),p[a]=d[a],w.containsPoint(p)?_=!0:(h.push(p),x=!0)),"function"==typeof o&&b){if(_){const e=l.targetAnchor.clone();e[a]=d[a];const t=XT(o,i,e,b,i.targetMagnet||b.container,"target",i,this);this.resetAnchor("target",t)}x&&this.resetAnchor("target",l.targetAnchorDef)}tO.equalPoints(h,this.vertices)||this.cellView.cell.setVertices(h,{ui:!0,toolId:this.cid}),this.updateHandle(e,f,p,0),r.stopPropagation||i.notifyMouseMove(c,u.x,u.y)}onHandleChange({handle:e,e:t}){const n=this.options,r=this.handles,i=this.cellView,o=e.options.index;if(Array.isArray(r)){for(let e=0,t=r.length;e<t;e+=1)e!==o&&r[e].hide();if(this.focus(),this.setEventData(t,{sourceAnchor:i.sourceAnchor.clone(),targetAnchor:i.targetAnchor.clone(),sourceAnchorDef:rk(this.cell.prop(["source","anchor"])),targetAnchorDef:rk(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,o=Math.abs(t.x-n.x)<i,a=Math.abs(t.y-n.y)<i;if(o||a){const i=new rO(t,n);if(i.length()<this.options.threshold)e.hide();else{const t=i.getCenter(),n=o?"x":"y";t[n]+=r||0;const a=i.vector().vectorAngle(new tO(1,0));e.updatePosition(t.x,t.y,a,this.cellView),e.show(),e.options.axis=n}}else e.hide()}onRemove(){this.resetHandles()}}!function(e){e.Handle=class extends wN{constructor(e){super(),this.options=e,this.render(),this.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown"})}render(){this.container=wN.createElement("rect",!0);const t=this.options.attrs;if("function"==typeof t){const n=e.getDefaults();this.setAttrs(Object.assign(Object.assign({},n.attrs),t(this)))}else this.setAttrs(t);this.addClass(this.prefixClassName("edge-tool-segment"))}updatePosition(e,t,n,r){const i=r.getClosestPoint(new tO(e,t))||new tO(e,t);let o=UO().translate(i.x,i.y);if(i.equals({x:e,y:t}))o=o.rotate(n);else{let n=new rO(e,t,i.x,i.y).vector().vectorAngle(new tO(1,0));0!==n&&(n+=90),o=o.rotate(n)}this.setAttrs({transform:GO(o),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"}}}(YN||(YN={})),function(e){e.config({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:t=>new e.Handle(t),anchor:PN})}(YN||(YN={}));class BN extends NN.ToolItem{get type(){return this.options.type}onRender(){oM(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,o=r.getTerminalAnchor(n),a=r.cell.prop([n,"anchor"]);t.setAttribute("transform",`translate(${o.x}, ${o.y})`);const s=a?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,o=r.getTerminalMagnet(n);let a,s,l,c=this.options.areaPadding||0;Number.isFinite(c)||(c=0),i.isEdgeElement(o)?(a=i.getBBox(),s=0,l=a.getCenter()):(a=i.getUnrotatedBBoxOfElement(o),s=e.getAngle(),l=a.getCenter(),s&&l.rotate(-s,e.getBBox().getCenter())),a.inflate(c),NM(t,{x:-a.width/2,y:-a.height/2,width:a.width,height:a.height,transform:`translate(${l.x}, ${l.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),o=r.cell,a=n.getTerminalMagnet(t);let s=this.graph.clientToLocal(i.clientX,i.clientY);const l=this.options.snap;if("function"==typeof l){const e=XT(l,n,s,r,a,t,n,this);s=tO.create(e)}if(this.options.restrictArea)if(r.isEdgeElement(a)){const e=r.getClosestPoint(s);e&&(s=e)}else{const e=r.getUnrotatedBBoxOfElement(a),t=o.getAngle(),n=o.getBBox().getCenter(),i=s.clone().rotate(t,n);e.containsPoint(i)||(s=e.getNearestPointToPoint(i).rotate(-t,n))}let c;const u=this.options.anchor;"function"==typeof u&&(c=XT(u,n,s,r,a,t,n,this)),this.resetAnchor(c),this.update()}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()}}!function(e){e.config({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:PN,snap(e,t,n,r,i,o){const a=o.options.snapRadius||0,s="source"===r,l=s?0:-1,c=this.cell.getVertexAt(l)||this.getTerminalAnchor(s?"target":"source");return c&&(Math.abs(c.x-e.x)<a&&(e.x=c.x),Math.abs(c.y-e.y)<a&&(e.y=c.y)),e}})}(BN||(BN={}));const HN=BN.define({name:"source-anchor",type:"source"}),qN=BN.define({name:"target-anchor",type:"target"});var UN=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};class VN extends NN.ToolItem{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=UN(e,["class"]);this.setAttrs(n,this.container),t&&oM(this.container,t)}}onRender(){oM(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 tO(1,0))||0;if(!r)return this;const o=UO().translate(r.x,r.y).rotate(i);return oL(this.container,o,{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:{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})}}!function(e){e.config({tagName:"path",isSVGElement:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}})}(VN||(VN={}));const WN=VN.define({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"}}),GN=VN.define({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"}});class $N extends NN.ToolItem{constructor(){super(...arguments),this.labelIndex=-1,this.distance=.5}render(){return this.createElement(),this.updateEditor(),this.autoFocus(),this.delegateDocumentEvents(this.options.documentEvents),this}createElement(){const{cell:e}=this,t=[this.prefixClassName((e.isEdge()?"edge":"node")+"-tool-editor"),this.prefixClassName("cell-tool-editor")];this.editor=NN.createElement("div",!1),this.addClass(t,this.editor),this.editor.contentEditable="true",this.container.appendChild(this.editor)}updateEditor(){const{graph:e,cell:t,editor:n}=this,r=n.style;let i=new tO,o=20;if(t.isNode())i=t.getBBox().center,o=t.size().width-4;else if(t.isEdge()){const t=this.options.event,n=t.target,r=n.parentElement;if(r&&iM(r,this.prefixClassName("edge-label"))){const e=r.getAttribute("data-index")||"0";this.labelIndex=parseInt(e,10);const t=r.getAttribute("transform"),{translation:a}=$O(t);i=new tO(a.tx,a.ty),o=eL(n).width}else{if(!this.options.labelAddable)return this;i=e.clientToLocal(tO.create(t.clientX,t.clientY));const n=this.cellView.path.closestPointLength(i);this.distance=n}}i=e.localToGraph(i),r.left=`${i.x}px`,r.top=`${i.y}px`,r.minWidth=`${o}px`;const a=e.scale();r.transform=`scale(${a.sx}, ${a.sy}) translate(-50%, -50%)`;const s=this.options.attrs;r.fontSize=`${s.fontSize}px`,r.fontFamily=s.fontFamily,r.color=s.color,r.backgroundColor=s.backgroundColor;const l=this.options.getText;let c;return"function"==typeof l&&(c=XT(l,this.cellView,{cell:this.cell,index:this.labelIndex})),n.innerText=c||"",this}onDocumentMouseDown(e){if(e.target!==this.editor){const e=this.cell,t=this.editor.innerText.replace(/\n$/,"")||"",n=this.options.setText;"function"==typeof n&&XT(n,this.cellView,{cell:this.cell,value:t,index:this.labelIndex,distance:this.distance}),e.removeTool(e.isEdge()?"edge-editor":"node-editor"),this.undelegateDocumentEvents()}}onDblClick(e){e.stopPropagation()}onMouseDown(e){e.stopPropagation()}autoFocus(){setTimeout((()=>{this.editor.focus(),this.selectText()}))}selectText(){if(window.getSelection){const e=document.createRange(),t=window.getSelection();e.selectNodeContents(this.editor),t.removeAllRanges(),t.addRange(e)}}}!function(e){e.config({tagName:"div",isSVGElement:!1,events:{dblclick:"onDblClick",mousedown:"onMouseDown"},documentEvents:{mousedown:"onDocumentMouseDown"}})}($N||($N={})),function(e){e.NodeEditor=e.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText({cell:e}){return e.attr("text/text")},setText({cell:e,value:t}){e.attr("text/text",t)}}),e.EdgeEditor=e.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},labelAddable:!0,getText({cell:e,index:t}){return-1===t?"":e.prop(`labels/${t}/attrs/label/text`)},setText({cell:e,value:t,index:n,distance:r}){const i=e;-1===n?i.appendLabel({position:{distance:r},attrs:{label:{text:t}}}):t?i.prop(`labels/${n}/attrs/label/text`,t):"number"==typeof n&&i.removeLabelAt(n)}})}($N||($N={}));var KN,JN,XN=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};!function(e){e.presets={boundary:FN,button:jN,"button-remove":jN.Remove,"node-editor":$N.NodeEditor},e.registry=gL.create({type:"node tool",process(e,t){if("function"==typeof t)return t;let n=NN.ToolItem;const{inherit:r}=t,i=XN(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)}}),e.registry.register(e.presets,!0)}(KN||(KN={})),function(e){e.presets={boundary:FN,vertices:zN,segments:YN,button:jN,"button-remove":jN.Remove,"source-anchor":HN,"target-anchor":qN,"source-arrowhead":WN,"target-arrowhead":GN,"edge-editor":$N.EdgeEditor},e.registry=gL.create({type:"edge tool",process(e,t){if("function"==typeof t)return t;let n=NN.ToolItem;const{inherit:r}=t,i=XN(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)}}),e.registry.register(e.presets,!0)}(JN||(JN={}));const ZN=sP("center"),QN=sP("topCenter"),eP=sP("bottomCenter"),tP=sP("leftMiddle"),nP=sP("rightMiddle"),rP=sP("topLeft"),iP=sP("topRight"),oP=sP("bottomLeft"),aP=sP("bottomRight");function sP(e){return function(t,n,r,i={}){const o=i.rotate?t.getUnrotatedBBoxOfElement(n):t.getBBoxOfElement(n),a=o[e];a.x+=BT(i.dx,o.width),a.y+=BT(i.dy,o.height);const s=t.cell;return i.rotate?a.rotate(-s.getAngle(),s.getBBox().getCenter()):a}}function lP(e){return function(t,n,r,i){if(r instanceof Element){const o=this.graph.renderer.findViewByElem(r);let a;if(o)if(o.isEdgeElement(r)){a=cP(o,null!=i.fixedAt?i.fixedAt:"50%")}else a=o.getBBoxOfElement(r).getCenter();else a=new tO;return e.call(this,t,n,a,i)}return e.apply(this,arguments)}}function cP(e,t){const n=YT(t),r="string"==typeof t?parseFloat(t):t;return n?e.getPointAtRatio(r/100):e.getPointAtLength(r)}const uP=lP((function(e,t,n,r){const i=e.cell.getAngle(),o=e.getBBoxOfElement(t),a=o.getCenter(),s=o.getTopLeft(),l=o.getBottomRight();let c=r.padding;if(Number.isFinite(c)||(c=0),s.y+c<=n.y&&n.y<=l.y-c){const e=n.y-a.y;a.x+=0===i||180===i?0:1*e/Math.tan(GM.toRad(i)),a.y+=e}else if(s.x+c<=n.x&&n.x<=l.x-c){const e=n.x-a.x;a.y+=90===i||270===i?0:e*Math.tan(GM.toRad(i)),a.x+=e}return a})),dP=function(e,t,n,r,i){const o=e.cell.getConnectionPoint(this.cell,i);return(r.dx||r.dy)&&o.translate(r.dx||0,r.dy||0),o},hP=lP((function(e,t,n,r){let i,o,a=0;const s=e.cell;r.rotate?(i=e.getUnrotatedBBoxOfElement(t),o=s.getBBox().getCenter(),a=s.getAngle()):i=e.getBBoxOfElement(t);const l=r.padding;null!=l&&Number.isFinite(l)&&i.inflate(l),r.rotate&&n.rotate(a,o);const c=i.getNearestSideToPoint(n);let u;switch(c){case"left":u=i.getLeftMiddle();break;case"right":u=i.getRightMiddle();break;case"top":u=i.getTopCenter();break;case"bottom":u=i.getBottomCenter()}const d=r.direction;return"H"===d?"top"!==c&&"bottom"!==c||(u=n.x<=i.x+i.width?i.getLeftMiddle():i.getRightMiddle()):"V"===d&&(u=n.y<=i.y+i.height?i.getTopCenter():i.getBottomCenter()),r.rotate?u.rotate(-a,o):u}));var fP;!function(e){e.presets=c,e.registry=gL.create({type:"node endpoint"}),e.registry.register(e.presets,!0)}(fP||(fP={}));const pP=function(e,t,n,r){let i=null!=r.ratio?r.ratio:.5;return i>1&&(i/=100),e.getPointAtRatio(i)},gP=function(e,t,n,r){const i=null!=r.length?r.length:20;return e.getPointAtLength(i)},mP=function(e,t,n,r){const i=e.getClosestPoint(n);return null!=i?i:new tO},vP=lP(mP),yP=lP((function(e,t,n,r){const i=1e6,o=e.getConnection(),a=e.getConnectionSubdivisions(),s=new rO(n.clone().translate(0,i),n.clone().translate(0,-i)),l=new rO(n.clone().translate(i,0),n.clone().translate(-i,0)),c=s.intersect(o,{segmentSubdivisions:a}),u=l.intersect(o,{segmentSubdivisions:a}),d=[];return c&&d.push(...c),u&&d.push(...u),d.length>0?n.closest(d):null!=r.fallbackAt?cP(e,r.fallbackAt):XT(mP,this,e,t,n,r)}));var bP;function wP(e,t,n){let r;if("object"==typeof n){if(Number.isFinite(n.y)){const r=new rO(t,e),{start:i,end:o}=r.parallel(n.y);t=i,e=o}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 _P(e){const t=e.getAttribute("stroke-width");return null===t?0:parseFloat(t)||0}!function(e){e.presets=u,e.registry=gL.create({type:"edge endpoint"}),e.registry.register(e.presets,!0)}(bP||(bP={}));const xP=function(e,t,n,r){const i=t.getBBoxOfElement(n);r.stroked&&i.inflate(_P(n)/2);const o=e.intersect(i);return wP(o&&o.length?e.start.closest(o):e.end,e.start,r.offset)},EP=function(e,t,n,r,i){const o=t.cell,a=o.isNode()?o.getAngle():0;if(0===a)return XT(xP,this,e,t,n,r,i);const s=t.getUnrotatedBBoxOfElement(n);r.stroked&&s.inflate(_P(n)/2);const l=s.getCenter(),c=e.clone().rotate(a,l),u=c.setLength(1e6).intersect(s);return wP(u&&u.length?c.start.closest(u).rotate(-a,l):e.end,e.start,r.offset)},CP=function(e,t,n,r){let i,o;const a=e.end,s=r.selector;if(i="string"==typeof s?t.findOne(s):Array.isArray(s)?vk(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),!uM(i)){if(i===n||!uM(n))return a;i=n}const l=t.getShapeOfElement(i),c=t.getMatrixOfElement(i),u=t.getRootTranslatedMatrix(),d=t.getRootRotatedMatrix(),h=u.multiply(d).multiply(c),f=function(e,t){return new rO(XO(e.start,t),XO(e.end,t))}(e,h.inverse()),p=f.start.clone(),g=t.getDataOfElement(i);if(!1===r.insideout){null==g.shapeBBox&&(g.shapeBBox=l.bbox());const e=g.shapeBBox;if(null!=e&&e.containsPoint(p))return a}let m;if(!0===r.extrapolate&&f.setLength(1e6),CO.isPath(l)){const e=r.precision||2;null==g.segmentSubdivisions&&(g.segmentSubdivisions=l.getSegmentSubdivisions({precision:e})),m={precision:e,segmentSubdivisions:g.segmentSubdivisions},o=f.intersect(l,m)}else o=f.intersect(l);o?Array.isArray(o)&&(o=p.closest(o)):!0===r.sticky&&(o=nO.isRectangle(l)?l.getNearestPointToPoint(p):iO.isEllipse(l)?l.intersectsWithLineFromCenterToPoint(p):l.closestPoint(p,m));const v=o?XO(o,h):a;let y=r.offset||0;return!1!==r.stroked&&("object"==typeof y?(y=Object.assign({},y),null==y.x&&(y.x=0),y.x+=_P(i)/2):y+=_P(i)/2),wP(v,e.start,y)};const kP=function(e,t,n,r){const{alignOffset:i,align:o}=r;return o&&function(e,t,n=0){const{start:r,end:i}=e;let o,a,s,l;switch(t){case"left":l="x",o=i,a=r,s=-1;break;case"right":l="x",o=r,a=i,s=1;break;case"top":l="y",o=i,a=r,s=-1;break;case"bottom":l="y",o=r,a=i,s=1;break;default:return}r[l]<i[l]?o[l]=a[l]:a[l]=o[l],Number.isFinite(n)&&(o[l]+=s*n,a[l]+=s*n)}(e,o,i),wP(e.end,e.start,r.offset)};var SP;!function(e){e.presets=d,e.registry=gL.create({type:"connection point"}),e.registry.register(e.presets,!0)}(SP||(SP={}));const TP=function(e){return[...e]},MP=function(e,t,n){const r=t.side||"bottom",i=qT(t.padding||40),o=n.sourceBBox,a=n.targetBBox,s=o.getCenter(),l=a.getCenter();let c,u,d;switch(r){case"top":d=-1,c="y",u="height";break;case"left":d=-1,c="x",u="width";break;case"right":d=1,c="x",u="width";break;default:d=1,c="y",u="height"}return s[c]+=d*(o[u]/2+i[r]),l[c]+=d*(a[u]/2+i[r]),d*(s[c]-l[c])>0?l[c]=s[c]:s[c]=l[c],[s.toJSON(),...e,l.toJSON()]};function OP(e){return new nO(e.x,e.y,0,0)}function LP(e={}){const t=qT(e.padding||20);return{x:-t.left,y:-t.top,width:t.left+t.right,height:t.top+t.bottom}}function AP(e,t={}){return e.sourceBBox.clone().moveAndExpand(LP(t))}function DP(e,t={}){return e.targetBBox.clone().moveAndExpand(LP(t))}const NP=function(e,t,n){let r=AP(n,t),i=DP(n,t);const o=function(e,t={}){return e.sourceAnchor?e.sourceAnchor:AP(e,t).getCenter()}(n,t),a=function(e,t={}){return e.targetAnchor?e.targetAnchor:DP(e,t).getCenter()}(n,t);r=r.union(OP(o)),i=i.union(OP(a));const s=e.map((e=>tO.create(e)));s.unshift(o),s.push(a);let l=null;const c=[];for(let e=0,n=s.length-1;e<n;e+=1){let o=null;const a=s[e],u=s[e+1],d=null!=PP.getBearing(a,u);if(0===e)e+1===n?r.intersectsWithRect(i.clone().inflate(1))?o=PP.insideNode(a,u,r,i):d||(o=PP.nodeToNode(a,u,r,i)):r.containsPoint(u)?o=PP.insideNode(a,u,r,OP(u).moveAndExpand(LP(t))):d||(o=PP.nodeToVertex(a,u,r));else if(e+1===n){const e=d&&PP.getBearing(u,a)===l;i.containsPoint(a)||e?o=PP.insideNode(a,u,OP(a).moveAndExpand(LP(t)),i,l):d||(o=PP.vertexToNode(a,u,i,l))}else d||(o=PP.vertexToVertex(a,u,l));o?(c.push(...o.points),l=o.direction):l=PP.getBearing(a,u),e+1<n&&c.push(u)}return c};var PP;!function(e){const t={N:"S",S:"N",E:"W",W:"E"},n={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function r(e,t,n){let r=new tO(e.x,t.y);return n.containsPoint(r)&&(r=new tO(t.x,e.y)),r}function i(e,t){return e["W"===t||"E"===t?"width":"height"]}function o(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 a(e,n,r){const i=new tO(e.x,n.y),a=new tO(n.x,e.y),s=o(e,i),l=o(e,a),c=r?t[r]:null,u=s===r||s!==c&&(l===c||l!==r)?i:a;return{points:[u],direction:o(u,n)}}function s(e,t,n){const i=r(e,t,n);return{points:[i],direction:o(i,t)}}e.getBBoxSize=i,e.getBearing=o,e.vertexToVertex=a,e.nodeToVertex=s,e.vertexToNode=function(e,t,n,a){const s=[new tO(e.x,t.y),new tO(t.x,e.y)],l=s.filter((e=>!n.containsPoint(e))),c=l.filter((t=>o(t,e)!==a));let u;if(c.length>0)return u=c.filter((t=>o(e,t)===a)).pop(),u=u||c[0],{points:[u],direction:o(u,t)};{u=DE(s,l)[0];const c=tO.create(t).move(u,-i(n,a)/2);return{points:[r(c,e,n),c],direction:o(c,t)}}},e.nodeToNode=function(e,t,n,r){let l=s(t,e,r);const c=l.points[0];if(n.containsPoint(c)){l=s(e,t,n);const u=l.points[0];if(r.containsPoint(u)){const d=tO.create(e).move(u,-i(n,o(e,u))/2),h=tO.create(t).move(c,-i(r,o(t,c))/2),f=new rO(d,h).getCenter(),p=s(e,f,n),g=a(f,t,p.direction);l.points=[p.points[0],g.points[0]],l.direction=g.direction}}return l},e.insideNode=function(e,t,i,a,s){const l=i.union(a).inflate(1),c=l.getCenter(),u=c.distance(t)>c.distance(e),d=u?t:e,h=u?e:t;let f,p,g,m;return s?(f=tO.fromPolar(l.width+l.height,n[s],d),f=l.getNearestPointToPoint(f).move(f,-1)):f=l.getNearestPointToPoint(d).move(d,1),p=r(f,h,l),f.round().equals(p.round())?(p=tO.fromPolar(l.width+l.height,GM.toRad(f.theta(d))+Math.PI/2,h),p=l.getNearestPointToPoint(p).move(h,1).round(),g=r(f,p,l),m=u?[p,g,f]:[f,g,p]):m=u?[p,f]:[f,p],{points:m,direction:o(u?f:p,t)}}}(PP||(PP={}));const IP={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeShapes:[],excludeNodes:[],excludeHiddenNodes:!1,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 jP(this.step,this)},directions(){const e=jP(this.step,this),t=jP(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=jP(this.step,this);return{0:0,45:e/2,90:e/2}},paddingBox(){const e=jP(this.step,this);return{x:-e,y:-e,width:2*e,height:2*e}},fallbackRouter:NP,draggingRouter:null};function jP(e,t){return"function"==typeof e?e.call(t):e}class RP{constructor(){this.items=[],this.hash={},this.values={}}add(e,t){this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=1,this.values[e]=t;const n=uE(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}}class FP{constructor(e){this.options=e,this.mapGridSize=100,this.map={}}build(e,t){const n=this.options,r=n.excludeTerminals.reduce(((n,r)=>{const i=t[r];if(i){const t=e.getCell(i.cell);t&&n.push(t)}return n}),[]);let i=[];const o=e.getCell(t.getSourceCellId());o&&(i=s_(i,o.getAncestors().map((e=>e.id))));const a=e.getCell(t.getTargetCellId());a&&(i=s_(i,a.getAncestors().map((e=>e.id))));const s=this.mapGridSize;return e.getNodes().reduce(((e,t)=>{const o=t.shape,a=n.excludeShapes,l=!!o&&a.includes(o),c=r.some((e=>e.id===t.id)),u=n.excludeNodes.includes(t),d=i.includes(t.id),h=n.excludeHiddenNodes&&!t.isVisible();if(!(l||c||u||d||h)){const r=t.getBBox().moveAndExpand(n.paddingBox),i=r.getOrigin().snapToGrid(s),o=r.getCorner().snapToGrid(s);for(let t=i.x;t<=o.x;t+=s)for(let n=i.y;n<=o.y;n+=s){const i=new tO(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)))}}function zP(e,t){const n=e.sourceBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function YP(e,t){const n=e.targetBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function BP(e,t){if(e.sourceAnchor)return e.sourceAnchor;return zP(e,t).getCenter()}function HP(e,t,n,r,i){const o=360/n,a=e.theta(function(e,t,n,r){const i=r.step,o=t.x-e.x,a=t.y-e.y,s=o/n.x,l=a/n.y,c=s*i,u=l*i;return new tO(e.x+c,e.y+u)}(e,t,r,i)),s=GM.normalize(a+o/2);return o*Math.floor(s/o)}function qP(e,t){const n=Math.abs(e-t);return n>180?360-n:n}function UP(e,t){if(!e)return t;const n=Math.abs(e),r=Math.round(n/t);if(!r)return n;return t+(n-r*t)/r}function VP(e,t){return e.round(t)}function WP(e,t,n){return VP(function(e,t){const n=t.source,r=yD.snapToGrid(e.x-n.x,t.x)+n.x,i=yD.snapToGrid(e.y-n.y,t.y)+n.y;return new tO(r,i)}(e.clone(),t),n)}function GP(e){return e.toString()}function $P(e){return new tO(0===e.x?0:Math.abs(e.x)/e.x,0===e.y?0:Math.abs(e.y)/e.y)}function KP(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}function JP(e,t,n,r,i){const o=i.precision,a=i.directionMap,s=e.diff(t.getCenter()),l=Object.keys(a).reduce(((i,l)=>{if(n.includes(l)){const n=a[l],c=new tO(e.x+n.x*(Math.abs(s.x)+t.width),e.y+n.y*(Math.abs(s.y)+t.height)),u=new rO(e,c).intersect(t)||[];let d,h=null;for(let t=0;t<u.length;t+=1){const n=u[t],r=e.squaredDistance(n);(null==d||r>d)&&(d=r,h=n)}if(h){let e=WP(h,r,o);t.containsPoint(e)&&(e=WP(e.translate(n.x*r.x,n.y*r.y),r,o)),i.push(e)}}return i}),[]);return t.containsPoint(e)||l.push(WP(e,r,o)),l}function XP(e,t,n,r,i){const o=[];let a,s=$P(i.diff(n)),l=GP(n),c=e[l];for(;c;){a=t[l];const n=$P(a.diff(c));n.equals(s)||(o.unshift(a),s=n),l=GP(c),c=e[l]}const u=t[l];return $P(u.diff(r)).equals(s)||o.unshift(u),o}function ZP(e,t,n,r,i){const o=i.precision;let a,s;a=nO.isRectangle(t)?VP(BP(e,i).clone(),o):VP(t.clone(),o),s=nO.isRectangle(n)?VP(function(e,t){return e.targetAnchor?e.targetAnchor:YP(e,t).getCenter()}(e,i).clone(),o):VP(n.clone(),o);const l=(c=i.step,d=s,{source:(u=a).clone(),x:UP(d.x-u.x,c),y:UP(d.y-u.y,c)});var c,u,d;const h=a,f=s;let p,g;if(p=nO.isRectangle(t)?JP(h,t,i.startDirections,l,i):[h],g=nO.isRectangle(n)?JP(s,n,i.endDirections,l,i):[f],p=p.filter((e=>r.isAccessible(e))),g=g.filter((e=>r.isAccessible(e))),p.length>0&&g.length>0){const e=new RP,t={},n={},a={};for(let n=0,r=p.length;n<r;n+=1){const r=p[n],i=GP(r);e.add(i,KP(r,g)),t[i]=r,a[i]=0}const s=i.previousDirectionAngle,c=void 0===s;let u,d;const m=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=m.length,y=g.reduce(((e,t)=>{const n=GP(t);return e.push(n),e}),[]),b=tO.equalPoints(p,g);let w=i.maxLoopCount;for(;!e.isEmpty()&&w>0;){const p=e.pop(),_=t[p],x=n[p],E=a[p],C=_.equals(h),k=null==x;let S;S=k?c?C?null:HP(h,_,v,l,i):s:HP(x,_,v,l,i);if(!(k&&b)&&y.indexOf(p)>=0)return i.previousDirectionAngle=S,XP(n,t,_,h,f);for(let s=0;s<v;s+=1){u=m[s];const h=u.angle;if(d=qP(S,h),(!c||!C)&&d>i.maxDirectionChange)continue;const p=WP(_.clone().translate(u.gridOffsetX||0,u.gridOffsetY||0),l,o),b=GP(p);if(e.isClose(b)||!r.isAccessible(p))continue;if(y.indexOf(b)>=0){if(!p.equals(f)){if(qP(h,HP(p,f,v,l,i))>i.maxDirectionChange)continue}}const w=E+u.cost+(C?0:i.penalties[d]);(!e.isOpen(b)||w<a[b])&&(t[b]=p,n[b]=_,a[b]=w,e.add(b,w+KP(p,g)))}w-=1}}return i.fallbackRoute?XT(i.fallbackRoute,this,h,f,i):null}const QP=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]:jP(e[n],e),t)),{});if(t.padding){const e=qT(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 tO(0,0),n=new tO(e.offsetX,e.offsetY);e.angle=GM.normalize(t.theta(n))})),t}(t),i=zP(n,r),o=YP(n,r),a=BP(n,r),s=new FP(r).build(n.graph.model,n.cell),l=e.map((e=>tO.create(e))),c=[];let u,d,h=a;for(let t=0,f=l.length;t<=f;t+=1){let f=null;if(u=d||i,d=l[t],null==d){d=o;const e=n.cell;if((null==e.getSourceCellId()||null==e.getTargetCellId())&&"function"==typeof r.draggingRouter){const e=u===i?a:u,t=d.getOrigin();f=XT(r.draggingRouter,n,e,t,r)}}if(null==f&&(f=ZP(n,u,d,s,r)),null===f)return console.warn("Unable to execute manhattan algorithm, use orth instead"),XT(r.fallbackRouter,this,e,r,n);const p=f[0];p&&p.equals(h)&&f.shift(),h=f[f.length-1]||h,c.push(...f)}return c},eI=function(e,t,n){return XT(QP,this,e,Object.assign(Object.assign({},IP),t),n)},tI={maxDirectionChange:45,directions(){const e=jP(this.step,this),t=jP(this.cost,this),n=Math.ceil(Math.sqrt(e*e<<1));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}]},fallbackRoute(e,t,n){const r=e.theta(t),i=[];let o={x:t.x,y:e.y},a={x:e.x,y:t.y};if(r%180>90){const e=o;o=a,a=e}const s=r%90<45?o:a,l=new rO(e,s),c=90*Math.ceil(r/90),u=tO.fromPolar(l.squaredLength(),GM.toRad(c+135),s),d=new rO(t,u),h=l.intersectsWithLine(d),f=h||t,p=h?f:e,g=360/n.directions.length,m=p.theta(t),v=GM.normalize(m+g/2),y=g*Math.floor(v/g);return n.previousDirectionAngle=y,f&&i.push(f.round()),i.push(t),i}},nI=function(e,t,n){return XT(eI,this,e,Object.assign(Object.assign({},tI),t),n)},rI=function(e,t,n){const r=t.offset||32,i=null==t.min?16:t.min;let o=0,a=t.direction;const s=n.sourceBBox,l=n.targetBBox,c=s.getCenter(),u=l.getCenter();if("number"==typeof r&&(o=r),null==a){let e=l.left-s.right,t=l.top-s.bottom;e>=0&&t>=0?a=e>=t?"L":"T":e<=0&&t>=0?(e=s.left-l.right,a=e>=0&&e>=t?"R":"T"):e>=0&&t<=0?(t=s.top-l.bottom,a=t>=0?e>=t?"L":"B":"L"):(e=s.left-l.right,t=s.top-l.bottom,a=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 d,h,f;"H"===a?a=u.x-c.x>=0?"L":"R":"V"===a&&(a=u.y-c.y>=0?"T":"B"),"center"===r&&("L"===a?o=(l.left-s.right)/2:"R"===a?o=(s.left-l.right)/2:"T"===a?o=(l.top-s.bottom)/2:"B"===a&&(o=(s.top-l.bottom)/2));const p="L"===a||"R"===a;if(p){if(u.y===c.y)return[...e];f="L"===a?1:-1,d="x",h="width"}else{if(u.x===c.x)return[...e];f="T"===a?1:-1,d="y",h="height"}const g=c.clone(),m=u.clone();if(g[d]+=f*(s[h]/2+o),m[d]-=f*(l[h]/2+o),p){const e=g.x,t=m.x,n=s.width/2+i,r=l.width/2+i;u.x>c.x?t<=e&&(g.x=Math.max(t,c.x+n),m.x=Math.min(e,u.x-r)):t>=e&&(g.x=Math.min(t,c.x-n),m.x=Math.max(e,u.x+r))}else{const e=g.y,t=m.y,n=s.height/2+i,r=l.height/2+i;u.y>c.y?t<=e&&(g.y=Math.max(t,c.y+n),m.y=Math.min(e,u.y-r)):t>=e&&(g.y=Math.min(t,c.y-n),m.y=Math.max(e,u.y+r))}return[g.toJSON(),...e,m.toJSON()]};function iI(e,t){if(null!=t&&!1!==t){const n="boolean"==typeof t?0:t;if(n>0){const t=tO.create(e[1]).move(e[2],n),r=tO.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 oI=function(e,t,n){const r=t.width||50,i=(t.height||80)/2,o=t.angle||"auto",a=n.sourceAnchor,s=n.targetAnchor,l=n.sourceBBox,c=n.targetBBox;if(a.equals(s)){const e=e=>{const t=GM.toRad(e),n=Math.sin(t),o=Math.cos(t),s=new tO(a.x+o*r,a.y+n*r),l=new tO(s.x-o*i,s.y-n*i),c=l.clone().rotate(-90,s),u=l.clone().rotate(90,s);return[c.toJSON(),s.toJSON(),u.toJSON()]},n=e=>{const t=a.clone().move(e,-1),n=new rO(t,e);return!l.containsPoint(e)&&!l.intersectsWithLine(n)},s=[0,90,180,270,45,135,225,315];if("number"==typeof o)return iI(e(o),t.merge);const c=l.getCenter();if(c.equals(a))return iI(e(0),t.merge);const u=c.angleBetween(a,c.clone().translate(1,0));let d=e(u);if(n(d[1]))return iI(d,t.merge);for(let r=1,i=s.length;r<i;r+=1)if(d=e(u+s[r]),n(d[1]))return iI(d,t.merge);return iI(d,t.merge)}{const e=new rO(a,s);let o=e.parallel(-r),u=o.getCenter(),d=o.start.clone().move(o.end,i),h=o.end.clone().move(o.start,i);const f=e.parallel(-1),p=new rO(f.start,u),g=new rO(f.end,u);if((l.containsPoint(u)||c.containsPoint(u)||l.intersectsWithLine(p)||l.intersectsWithLine(g)||c.intersectsWithLine(p)||c.intersectsWithLine(g))&&(o=e.parallel(r),u=o.getCenter(),d=o.start.clone().move(o.end,i),h=o.end.clone().move(o.start,i)),t.merge){const e=new rO(a,s),t=new rO(u,e.center).setLength(Number.MAX_SAFE_INTEGER),r=l.intersectsWithLine(t),i=c.intersectsWithLine(t),o=r?Array.isArray(r)?r:[r]:[];i&&(Array.isArray(i)?o.push(...i):o.push(i));const d=e.center.closest(o);d?(n.sourceAnchor=d.clone(),n.targetAnchor=d.clone()):(n.sourceAnchor=e.center.clone(),n.targetAnchor=e.center.clone())}return iI([d.toJSON(),u.toJSON(),h.toJSON()],t.merge)}};var aI;!function(e){e.presets=h,e.registry=gL.create({type:"router"}),e.registry.register(e.presets,!0)}(aI||(aI={}));const sI=function(e,t,n,r={}){const i=[e,...n,t],o=new oO(i),a=new CO(o);return r.raw?a:a.serialize()},lI=function(e,t,n,r={}){const i=3===n.length?0:1,o=tO.create(n[0+i]),a=tO.create(n[2+i]),s=tO.create(n[1+i]);if(!tO.equals(e,t)){const n=new tO((e.x+t.x)/2,(e.y+t.y)/2),r=n.angleBetween(tO.create(e).rotate(90,n),s);r>1&&(o.rotate(180-r,n),a.rotate(180-r,n),s.rotate(180-r,n))}const l=`\n M ${e.x} ${e.y}\n Q ${o.x} ${o.y} ${s.x} ${s.y}\n Q ${a.x} ${a.y} ${t.x} ${t.y}\n `;return r.raw?CO.parse(l):l},cI=function(e,t,n,r={}){const i=new CO;i.appendSegment(CO.createSegment("M",e));const o=1/3,a=2/3,s=r.radius||10;let l,c;for(let r=0,u=n.length;r<u;r+=1){const u=tO.create(n[r]),d=n[r-1]||e,h=n[r+1]||t;l=c||u.distance(d)/2,c=u.distance(h)/2;const f=-Math.min(s,l),p=-Math.min(s,c),g=u.clone().move(d,f).round(),m=u.clone().move(h,p).round(),v=new tO(o*g.x+a*u.x,a*u.y+o*g.y),y=new tO(o*m.x+a*u.x,a*u.y+o*m.y);i.appendSegment(CO.createSegment("L",g)),i.appendSegment(CO.createSegment("C",v,y,m))}return i.appendSegment(CO.createSegment("L",t)),r.raw?i:i.serialize()},uI=function(e,t,n,r={}){let i,o=r.direction;if(n&&0!==n.length){const r=[e,...n,t],o=aO.throughPoints(r);i=new CO(o)}else if(i=new CO,i.appendSegment(CO.createSegment("M",e)),o||(o=Math.abs(e.x-t.x)>=Math.abs(e.y-t.y)?"H":"V"),"H"===o){const n=(e.x+t.x)/2;i.appendSegment(CO.createSegment("C",n,e.y,n,t.y,t.x,t.y))}else{const n=(e.y+t.y)/2;i.appendSegment(CO.createSegment("C",e.x,n,t.x,n,t.x,t.y))}return r.raw?i:i.serialize()},dI=1/3,hI=2/3;function fI(e,t,n=[]){const r=[e,...n,t],i=[];return r.forEach(((e,t)=>{const n=r[t+1];null!=n&&i.push(new rO(e,n))})),i}function pI(e,t){return new rO(e,t).squaredLength()}function gI(e,t,n,r){const i=new CO;let o;return o=CO.createSegment("M",e[0].start),i.appendSegment(o),e.forEach(((a,s)=>{if(mI.includes(a)){let e,r,s,l;if("arc"===n){e=-90,r=a.start.diff(a.end);(r.x<0||0===r.x&&r.y<0)&&(e+=180);const t=a.getCenter(),n=new rO(t,a.end).rotate(e,t);let c;c=new rO(a.start,t),s=c.pointAt(2/3).rotate(e,a.start),l=n.pointAt(1/3).rotate(-e,n.end),o=CO.createSegment("C",s,l,n.end),i.appendSegment(o),c=new rO(t,a.end),s=n.pointAt(1/3).rotate(e,n.end),l=c.pointAt(1/3).rotate(-e,a.end),o=CO.createSegment("C",s,l,a.end),i.appendSegment(o)}else if("gap"===n)o=CO.createSegment("M",a.end),i.appendSegment(o);else if("cubic"===n){e=a.start.theta(a.end);const n=.6*t;let c=1.35*t;r=a.start.diff(a.end);(r.x<0||0===r.x&&r.y<0)&&(c*=-1),s=new tO(a.start.x+n,a.start.y+c).rotate(e,a.start),l=new tO(a.end.x-n,a.end.y+c).rotate(e,a.end),o=CO.createSegment("C",s,l,a.end),i.appendSegment(o)}}else{const t=e[s+1];0===r||!t||mI.includes(t)?(o=CO.createSegment("L",a.end),i.appendSegment(o)):function(e,t,n,r,i){const o=n.distance(r)/2,a=n.distance(i)/2,s=-Math.min(e,o),l=-Math.min(e,a),c=n.clone().move(r,s).round(),u=n.clone().move(i,l).round(),d=new tO(dI*c.x+hI*n.x,hI*n.y+dI*c.y),h=new tO(dI*u.x+hI*n.x,hI*n.y+dI*u.y);let f;f=CO.createSegment("L",c),t.appendSegment(f),f=CO.createSegment("C",d,h,u),t.appendSegment(f)}(r,i,a.end,a.start,t.end)}})),i}let mI,vI;const yI=function(e,t,n,r={}){mI=[],vI=[],function(e){let t=e.graph._jumpOverUpdateList;if(null==t&&(t=e.graph._jumpOverUpdateList=[],e.graph.on("cell:mouseup",(()=>{const t=e.graph._jumpOverUpdateList;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);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,o=r.type||"arc",a=r.radius||0,s=r.ignoreConnectors||["smooth"],l=this.graph,c=l.model.getEdges();if(1===c.length)return gI(fI(e,t,n),i,o,a);const u=this.cell,d=c.indexOf(u),h=l.options.connecting.connector||{},f=c.filter(((e,t)=>{const n=e.getConnector()||h;return!s.includes(n.name)&&(!(t>d)||"jumpover"!==n.name)})),p=f.map((e=>l.renderer.findViewByCell(e))),g=fI(e,t,n),m=p.map((e=>null==e?[]:e===this?g:fI(e.sourcePoint,e.targetPoint,e.routePoints))),v=[];g.forEach((e=>{const t=f.reduce(((t,n,r)=>{if(n!==u){const n=function(e,t){const n=[];return t.forEach((t=>{const r=e.intersectsWithLine(t);r&&n.push(r)})),n}(e,m[r]);t.push(...n)}return t}),[]).sort(((t,n)=>pI(e.start,t)-pI(e.start,n)));t.length>0?v.push(...function(e,t,n){return t.reduce(((r,i,o)=>{if(vI.includes(i))return r;const a=r.pop()||e,s=tO.create(i).move(a.start,-n);let l=tO.create(i).move(a.start,+n);const c=t[o+1];if(null!=c){const e=l.distance(c);e<=n&&(l=c.move(a.start,e),vI.push(c))}else if(s.distance(a.end)<2*n+1)return r.push(a),r;if(l.distance(a.start)<2*n+1)return r.push(a),r;const u=new rO(s,l);return mI.push(u),r.push(new rO(a.start,s),u,new rO(l,a.end)),r}),[])}(e,t,i)):v.push(e)}));const y=gI(v,i,o,a);return mI=[],vI=[],r.raw?y:y.serialize()};var bI;!function(e){e.presets=f,e.registry=gL.create({type:"connector"}),e.registry.register(e.presets,!0)}(bI||(bI={}));const wI=gL.create;class _I{constructor(e){this.cell=e,this.ids={},this.cache={}}get(){return Object.keys(this.ids)}start(e,t,n={},r="/"){const i=this.cell.getPropByPath(e),o=sk(n,_I.defaultOptions),a=this.getTiming(o.timing),s=this.getInterp(o.interp,i,t);let l=0;const c=Array.isArray(e)?e.join(r):e,u=Array.isArray(e)?e:e.split(r),d=()=>{const e=(new Date).getTime();0===l&&(l=e);let t=(e-l)/o.duration;t<1?this.ids[c]=UM(d):t=1;const r=s(a(t));this.cell.setPropByPath(u,r),n.progress&&n.progress(Object.assign({progress:t,currentValue:r},this.getArgs(c))),1===t&&(this.cell.notify("transition:end",this.getArgs(c)),this.cell.notify("transition:complete",this.getArgs(c)),n.complete&&n.complete(this.getArgs(c)),this.cell.notify("transition:finish",this.getArgs(c)),n.finish&&n.finish(this.getArgs(c)),this.clean(c))};return setTimeout((()=>{this.stop(e,void 0,r),this.cache[c]={startValue:i,targetValue:t,options:o},this.ids[c]=UM(d),this.cell.notify("transition:begin",this.getArgs(c)),this.cell.notify("transition:start",this.getArgs(c)),n.start&&n.start(this.getArgs(c))}),n.delay),this.stop.bind(this,e,r,n)}stop(e,t={},n="/"){const r=Array.isArray(e)?e:e.split(n);return Object.keys(this.ids).filter((e=>kC(r,e.split(n).slice(0,r.length)))).forEach((e=>{VM(this.ids[e]);const n=this.cache[e],r=this.getArgs(e),i=Object.assign(Object.assign({},n.options),t),o=i.jumpedToEnd;o&&null!=n.targetValue&&(this.cell.setPropByPath(e,n.targetValue),this.cell.notify("transition:end",Object.assign({},r)),this.cell.notify("transition:complete",Object.assign({},r)),i.complete&&i.complete(Object.assign({},r)));const a=Object.assign({jumpedToEnd:o},r);this.cell.notify("transition:stop",Object.assign({},a)),i.stop&&i.stop(Object.assign({},a)),this.cell.notify("transition:finish",Object.assign({},r)),i.finish&&i.finish(Object.assign({},r)),this.clean(e)})),this}clean(e){delete this.ids[e],delete this.cache[e]}getTiming(e){return"string"==typeof e?fN[e]:e}getInterp(e,t,n){return e?e(t,n):"number"==typeof n?pN.number(t,n):"string"==typeof n?"#"===n[0]?pN.color(t,n):pN.unit(t,n):pN.object(t,n)}getArgs(e){const t=this.cache[e];return{path:e,startValue:t.startValue,targetValue:t.targetValue,cell:this.cell}}}!function(e){e.defaultOptions={delay:10,duration:100,timing:"linear"}}(_I||(_I={}));var xI=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class EI extends uN{constructor(e={}){super(),this.pending=!1,this.changing=!1,this.data={},this.mutate(rk(e)),this.changed={}}mutate(e,t={}){const n=!0===t.unset,r=!0===t.silent,i=[],o=this.changing;this.changing=!0,o||(this.previous=rk(this.data),this.changed={});const a=this.data,s=this.previous,l=this.changed;if(Object.keys(e).forEach((t=>{const r=t,o=e[r];kC(a[r],o)||i.push(r),kC(s[r],o)?delete l[r]:l[r]=o,n?delete a[r]:a[r]=o})),!r&&i.length>0&&(this.pending=!0,this.pendingOptions=t,i.forEach((e=>{this.emit("change:*",{key:e,options:t,store:this,current:a[e],previous:s[e]})}))),o)return this;if(!r)for(;this.pending;)this.pending=!1,this.emit("changed",{current:a,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{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 vk(this.data,e,"/")}setByPath(e,t,n={}){const r="/",i=Array.isArray(e)?[...e]:e.split(r),o=Array.isArray(e)?e.join(r):e,a=i[0],s=i.length;if(n.propertyPath=o,n.propertyValue=t,n.propertyPathArray=i,1===s)this.set(a,t,n);else{const o={};let l=o,c=a;for(let e=1;e<s;e+=1){const t=i[e],n=Number.isFinite(Number(t));l=l[c]=n?[]:{},c=t}yk(o,i,t,r);const u=rk(this.data);n.rewrite&&bk(u,e,r);const d=CC(u,o);this.set(a,d[a],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=rk(this.get(r));i&&bk(i,e),this.set(r,i,t)}return this}hasChanged(e){return null==e?Object.keys(this.changed).length>0:e in this.changed}getChanges(e){if(null==e)return this.hasChanged()?rk(this.changed):null;const t=this.changing?this.previous:this.data,n={};let r;for(const i in e){const o=e[i];kC(t[i],o)||(n[i]=o,r=!0)}return r?rk(n):null}toJSON(){return rk(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})}}xI([uN.dispose()],EI.prototype,"dispose",null);var CI,kI=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},SI=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};class TI extends uN{constructor(e={}){super();const t=this.constructor.getDefaults(!0),n=CC({},this.preprocess(t),this.preprocess(e));this.id=n.id||IT(),this.store=new EI(n),this.animation=new _I(this),this.setup(),this.init(),this.postprocess(e)}static config(e){const{markup:t,propHooks:n,attrHooks:r}=e,i=SI(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.keys(n).forEach((e=>{const t=n[e];"function"==typeof t&&this.propHooks.push(t)}))),r&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),r)),this.defaults=CC({},this.defaults,i)}static getMarkup(){return this.markup}static getDefaults(e){return e?this.defaults:rk(this.defaults)}static getAttrHooks(){return this.attrHooks}static applyPropHooks(e,t){return this.propHooks.reduce(((t,n)=>n?XT(n,e,t):t),t)}get[Symbol.toStringTag](){return TI.toStringTag}init(){}get model(){return this._model}set model(e){this._model!==e&&(this._model=e)}preprocess(e,t){const n=e.id,r=this.constructor.applyPropHooks(this,e);return null==n&&!0!==t&&(r.id=IT()),r}postprocess(e){}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 o=t;"source"!==o&&"target"!==o||this.notify("change:terminal",{type:o,current:n,previous:r,options:i,cell:this})})),this.store.on("changed",(({options:e})=>this.notify("changed",{options:e,cell:this})))}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(CC({},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&&("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("/");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)}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 o=t.indexOf(this)!==i-n.length;o||(o=n.some(((e,t)=>e.getZIndex()!==r+t))),o&&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}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}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(CC({},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]||WA.registry.get(e);if(!n){const r=kT(e);n=t[r]||WA.registry.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||{})}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}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(CC({},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}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){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}{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 TI.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 TI.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 o=t;if(null==o&&(o=this.getChildCount(),i||(o-=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 a=this.children;if(null==a?(a=[],a.push(e)):a.splice(o,0,e),e.setParent(this,n),this.setChildren(a,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}transition(e,t,n={},r="/"){return this.animation.start(e,t,n,r)}stopTransition(e,t,n="/"){return this.animation.stop(e,t,n),this}getTransitions(){return this.animation.get()}translate(e,t,n){return this}scale(e,t,n,r){return this}addTools(e,t,n){const r=Array.isArray(e)?e:[e],i="string"==typeof t?t:null,o="object"==typeof t?t:"object"==typeof n?n:{};if(o.reset)return this.setTools({name:i,items:r,local:o.local},o);let a=rk(this.getTools());return null==a||null==i||a.name===i?(null==a&&(a={}),a.items||(a.items=[]),a.name=i,a.items=[...a.items,...r],this.setTools(Object.assign({},a),o)):void 0}setTools(e,t={}){return null==e?this.removeTools():this.store.set("tools",TI.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=rk(this.getTools());if(n){let r=!1;const i=n.items.slice(),o=e=>{i.splice(e,1),r=!0};if("number"==typeof e)o(e);else for(let t=i.length-1;t>=0;t-=1){const n=i[t];("string"==typeof n?n===e:n.name===e)&&o(t)}r&&(n.items=i,this.setTools(n,t))}return this}getBBox(e){return new nO}getConnectionPoint(e,t){return new tO}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,o=!0===e.diff,a=t.attrs||{},s=i.getDefaults(!0),l=o?this.preprocess(s,!0):s,c=l.attrs||{},u={};Object.keys(t).forEach((e=>{const i=t[e];if(null!=i&&!Array.isArray(i)&&"object"==typeof i&&!mC(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&&o){const n=l[e];kC(i,n)&&delete t[e]}})),Object.keys(a).forEach((e=>{const t=a[e],n=c[e];Object.keys(t).forEach((r=>{const i=t[r],o=n?n[r]:null;null==i||"object"!=typeof i||Array.isArray(i)?null!=n&&kC(o,i)||(null==u[e]&&(u[e]={}),u[e][r]=i):Object.keys(i).forEach((t=>{const a=i[t];if(null==n||null==o||!Sb(o)||!kC(o[t],a)){null==u[e]&&(u[e]={}),null==u[e][r]&&(u[e][r]={});u[e][r][t]=a}}))}))}));const d=Object.assign(Object.assign({},t),{attrs:TC(u)?void 0:u});null==d.attrs&&delete d.attrs;const h=d;return 0===h.angle&&delete h.angle,rk(h)}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)}return TI.deepClone(this)[this.id]}findView(e){return e.renderer.findViewByCell(this)}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){const r=this.model;this.startBatch(e,n,r);const i=t();return this.stopBatch(e,n,r),i}dispose(){this.removeFromParent(),this.store.dispose()}}TI.defaults={},TI.attrHooks={},TI.propHooks=[],kI([uN.dispose()],TI.prototype,"dispose",null),function(e){e.normalizeTools=function(e){return"string"==typeof e?{items:[e]}:Array.isArray(e)?{items:e}:e.items?e:{items:[e]}}}(TI||(TI={})),function(e){e.toStringTag=`X6.${e.name}`,e.isCell=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"==typeof r.isNode&&"function"==typeof r.isEdge&&"function"==typeof r.prop&&"function"==typeof r.attr}}(TI||(TI={})),function(e){e.getCommonAncestor=function(...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},e.getCellsBBox=function(e,t={}){let n=null;for(let r=0,i=e.length;r<i;r+=1){const i=e[r];let o=i.getBBox(t);if(o){if(i.isNode()){const e=i.getAngle();null!=e&&0!==e&&(o=o.bbox(e))}n=null==n?o:n.union(o)}}return n},e.deepClone=function(t){const n=[t,...t.getDescendants({deep:!0})];return e.cloneCells(n)},e.cloneCells=function(e){const t=jw(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]&&t.setSource(Object.assign(Object.assign({},t.getSource()),{cell:n[e].id})),r&&n[r]&&t.setTarget(Object.assign(Object.assign({},t.getTarget()),{cell:n[r].id}))}const r=e.getParent();r&&n[r.id]&&t.setParent(n[r.id]);const i=e.getChildren();if(i&&i.length){const e=i.reduce(((e,t)=>(n[t.id]&&e.push(n[t.id]),e)),[]);e.length>0&&t.setChildren(e)}})),n}}(TI||(TI={})),function(e){e.config({propHooks(t){var{tools:n}=t,r=SI(t,["tools"]);return n&&(r.tools=e.normalizeTools(n)),r}})}(TI||(TI={})),function(e){let t,n;e.exist=function(e,r){return r?null!=t&&t.exist(e):null!=n&&n.exist(e)},e.setEdgeRegistry=function(e){t=e},e.setNodeRegistry=function(e){n=e}}(CI||(CI={}));class MI{constructor(e){this.ports=[],this.groups={},this.init(rk(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,o=i?i.name:null;let a;if(null!=o){const e=YD.registry.get(o);if(null==e)return YD.registry.onNotFound(o);a=e}else a=YD.presets.left;const s=n.map((e=>e&&e.position&&e.position.args||{})),l=i&&i.args||{};return a(s,t,l).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,tO.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=CC({},n.attrs,t.attrs),t.position=this.createPosition(n,t),t.label=CC({},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 CC({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||{},o=iN.registry.get(r)||iN.presets.left;return o?o(t,n,i):null}}var OI=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};class LI extends TI{constructor(e={}){super(e),this.initPorts()}get[Symbol.toStringTag](){return LI.toStringTag}preprocess(e,t){const{x:n,y:r,width:i,height:o}=e,a=OI(e,["x","y","width","height"]);if(null!=n||null!=r){const e=a.position;a.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!=o){const e=a.size;a.size=Object.assign(Object.assign({},e),{width:null!=i?i:e?e.width:0,height:null!=o?o:e?e.height:0})}return super.preprocess(a,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":t=i.height;break;case"top":case"bottom":e=i.width}let o={right:0,"top-right":0,top:1,"top-left":1,left:2,"bottom-left":2,bottom:3,"bottom-right":3}[r];const a=GM.normalize(this.getAngle()||0);n.absolute&&(o+=Math.floor((a+45)/90),o%=4);const s=this.getBBox();let l;l=0===o?s.getBottomLeft():1===o?s.getCorner():2===o?s.getTopRight():s.getOrigin();const c=l.clone().rotate(-a,s.getCenter()),u=Math.sqrt(e*e+t*t)/2;let d=o*Math.PI/2;d+=Math.atan(o%2==0?t/e:e/t),d-=GM.toRad(a);const h=tO.fromPolar(u,d,c).clone().translate(e/-2,t/-2);this.store.set("size",{width:e,height:t},n),this.setPosition(h.x,h.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,o;if("object"==typeof e?(r=e.x,i=e.y,o=t||{}):(r=e,i=t,o=n||{}),o.relative){const e=this.getParent();if(null!=e&&e.isNode()){const t=e.getPosition();r+=t.x,i+=t.y}}if(o.deep){const e=this.getPosition();this.translate(r-e.x,i-e.y,o)}else this.store.set("position",{x:r,y:i},o);return this}translate(e=0,t=0,n={}){if(0===e&&0===t)return this;n.translateBy=n.translateBy||this.id;const r=this.getPosition();if(null!=n.restrict&&n.translateBy===this.id){const i=this.getBBox({deep:!0}),o=n.restrict,a=r.x-i.x,s=r.y-i.y,l=Math.max(o.x+a,Math.min(o.x+o.width+a-i.width,r.x+e)),c=Math.max(o.y+s,Math.min(o.y+o.height+s-i.height,r.y+t));e=l-r.x,t=c-r.y}const i={x:r.x+e,y:r.y+t};return n.tx=e,n.ty=t,n.transition?("object"!=typeof n.transition&&(n.transition={}),this.transition("position",i,Object.assign(Object.assign({},n.transition),{interp:pN.object})),this.eachChild((r=>{var i;(null===(i=n.exclude)||void 0===i?void 0:i.includes(r))||r.translate(e,t,n)}))):(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)),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(),o=this.getBBox().getCenter();o.rotate(n-e,t.center);const a=o.x-r.width/2-i.x,s=o.y-r.height/2-i.y;this.startBatch("rotate",{angle:e,options:t}),this.setPosition(i.x+a,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}getBBox(e={}){if(e.deep){const e=this.getDescendants({deep:!0,breadthFirst:!0});return e.push(this),TI.getCellsBBox(e)}return nO.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 o=i.port;if(!o||!this.hasPort(o))return r;const a=this.getPort(o);if(!a||!a.group)return r;const s=this.getPortsPosition(a.group)[o].position,l=tO.create(s).translate(n.getOrigin()),c=this.getAngle();return c&&l.rotate(-c,r),l}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:i,height:o}=TI.getCellsBBox(t);const a=qT(e.padding);return n-=a.left,r-=a.top,i+=a.left+a.right,o+=a.bottom+a.top,this.store.set({position:{x:n,y:r},size:{width:i,height:o}},e),this.stopBatch("fit-embeds"),this}get portContainerMarkup(){return this.getPortContainerMarkup()}set portContainerMarkup(e){this.setPortContainerMarkup(e)}getDefaultPortContainerMarkup(){return this.store.get("defaultPortContainerMarkup")||TN.getPortContainerMarkup()}getPortContainerMarkup(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}setPortContainerMarkup(e,t={}){return this.store.set("portContainerMarkup",TN.clone(e),t),this}get portMarkup(){return this.getPortMarkup()}set portMarkup(e){this.setPortMarkup(e)}getDefaultPortMarkup(){return this.store.get("defaultPortMarkup")||TN.getPortMarkup()}getPortMarkup(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}setPortMarkup(e,t={}){return this.store.set("portMarkup",TN.clone(e),t),this}get portLabelMarkup(){return this.getPortLabelMarkup()}set portLabelMarkup(e){this.setPortLabelMarkup(e)}getDefaultPortLabelMarkup(){return this.store.get("defaultPortLabelMarkup")||TN.getPortLabelMarkup()}getPortLabelMarkup(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}setPortLabelMarkup(e,t={}){return this.store.set("portLabelMarkup",TN.clone(e),t),this}get ports(){const e=this.store.get("ports",{items:[]});return null==e.items&&(e.items=[]),e}getPorts(){return rk(this.ports.items)}getPortsByGroup(e){return this.getPorts().filter((t=>t.group===e))}getPort(e){return rk(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 nO(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),o=n;return this.setPropByPath(i,o,r)}const i=this.prefixPortPath(e),o=t;return this.setPropByPath(i,o,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&&!TC(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 IT()}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 MI(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})}}LI.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}},function(e){e.toStringTag=`X6.${e.name}`,e.isNode=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"==typeof r.isNode&&"function"==typeof r.isEdge&&"function"==typeof r.prop&&"function"==typeof r.attr&&"function"==typeof r.size&&"function"==typeof r.position}}(LI||(LI={})),function(e){e.config({propHooks(e){var{ports:t}=e,n=OI(e,["ports"]);return t&&(n.ports=Array.isArray(t)?{items:t}:t),n}})}(LI||(LI={})),function(e){e.registry=gL.create({type:"node",process(t,n){if(CI.exist(t,!0))throw new Error(`Node with name '${t}' was registered by anthor Edge`);if("function"==typeof n)return n.config({shape:t}),n;let r=e;const{inherit:i}=n,o=OI(n,["inherit"]);if(i)if("string"==typeof i){const e=this.get(i);null==e?this.onNotFound(i,"inherited"):r=e}else r=i;null==o.constructorName&&(o.constructorName=t);const a=r.define.call(r,o);return a.config({shape:t}),a}}),CI.setNodeRegistry(e.registry)}(LI||(LI={})),function(e){let t=0;e.define=function(n){const{constructorName:r,overwrite:i}=n,o=OI(n,["constructorName","overwrite"]),a=gk((s=r||o.shape)?NT(s):(t+=1,`CustomNode${t}`),this);var s;return a.config(o),o.shape&&e.registry.register(o.shape,a,i),a},e.create=function(t){const n=t.shape||"rect",r=e.registry.get(n);return r?new r(t):e.registry.onNotFound(n)}}(LI||(LI={}));var AI=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};class DI extends LI{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}}!function(e){e.bodyAttr={fill:"#ffffff",stroke:"#333333",strokeWidth:2},e.labelAttr={fontSize:14,fill:"#000000",refX:.5,refY:.5,textAnchor:"middle",textVerticalAnchor:"middle",fontFamily:"Arial, helvetica, sans-serif"},e.config({attrs:{text:Object.assign({},e.labelAttr)},propHooks(e){const{label:t}=e,n=AI(e,["label"]);return t&&yk(n,"attrs/text/text",t),n},visible:!0})}(DI||(DI={}));var NI=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};function PI(e){return`basic.${e}`}function II(e="xlink:href"){return t=>{const{imageUrl:n,imageWidth:r,imageHeight:i}=t,o=NI(t,["imageUrl","imageWidth","imageHeight"]);if(null!=n||null!=r||null!=i){const t=()=>{if(o.attrs){const t=o.attrs.image;null!=n&&(t[e]=n),null!=r&&(t.width=r),null!=i&&(t.height=i),o.attrs.image=t}};o.attrs?(null==o.attrs.image&&(o.attrs.image={}),t()):(o.attrs={image:{}},t())}return o}}function jI(e,t,n={}){const r=PI(e),i={constructorName:r,attrs:{".":{fill:"#ffffff",stroke:"none"},[e]:{fill:"#ffffff",stroke:"#000000"}}};n.ignoreMarkup||(i.markup=function(e,t=!1){return`<g class="rotatable"><g class="scalable"><${e}/></g>${t?"":"<text/>"}</g>`}(e,!0===n.noText));return(n.parent||DI).define(CC(i,t,{shape:r}))}jI("rect",{attrs:{rect:{width:100,height:60}}}),jI("circle",{width:60,height:60,attrs:{circle:{r:30,cx:30,cy:30}}}),jI("ellipse",{width:60,height:40,attrs:{ellipse:{rx:30,ry:20,cx:30,cy:20}}}),jI("polygon",{width:60,height:40,attrs:{text:{refY:null,refDy:16}}}),jI("polyline",{width:60,height:40,attrs:{text:{refY:null,refDy:16}}}),jI("image",{attrs:{text:{refY:null,refDy:16}},propHooks:II()});var RI=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};const FI=jI("path",{width:60,height:60,attrs:{text:{ref:"path",refY:null,refDy:16}},propHooks(e){const{d:t}=e,n=RI(e,["d"]);return null!=t&&yk(n,"attrs/path/d",t),n}});jI("rhombus",{d:"M 30 0 L 60 30 30 60 0 30 z",attrs:{text:{refY:.5,refDy:null}}},{parent:FI,ignoreMarkup:!0}),jI("cylinder",{width:40,height:40,attrs:{path:{fill:"#FFFFFF",stroke:"#cbd2d7",strokeWidth:3,d:["M 0 10 C 10 5, 30 5, 40 10 C 30 15, 10 15, 0 10","L 0 20","C 10 25, 30 25, 40 20","L 40 10"].join(" ")},text:{refY:.7,refDy:null,fill:"#435460"}}},{parent:FI,ignoreMarkup:!0});var zI=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};class YI extends TI{constructor(e={}){super(e)}get[Symbol.toStringTag](){return YI.toStringTag}preprocess(e,t){const{source:n,sourceCell:r,sourcePort:i,sourcePoint:o,target:a,targetCell:s,targetPort:l,targetPoint:c}=e,u=zI(e,["source","sourceCell","sourcePort","sourcePoint","target","targetCell","targetPort","targetPoint"]),d=e=>"string"==typeof e||"number"==typeof e;if(null!=n)if(TI.isCell(n))u.source={cell:n.id};else if(d(n))u.source={cell:n};else if(tO.isPoint(n))u.source=n.toJSON();else if(Array.isArray(n))u.source={x:n[0],y:n[1]};else{const e=n.cell;TI.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=d(r)?r:r.id;e?e.cell=t:e=u.source={cell:t}}null!=i&&e&&(e.port=i)}else null!=o&&(u.source=tO.create(o).toJSON());if(null!=a)if(TI.isCell(a))u.target={cell:a.id};else if(d(a))u.target={cell:a};else if(tO.isPoint(a))u.target=a.toJSON();else if(Array.isArray(a))u.target={x:a[0],y:a[1]};else{const e=a.cell;TI.isCell(e)?u.target=Object.assign(Object.assign({},a),{cell:e.id}):u.target=a}if(null!=s||null!=l){let e=u.target;if(null!=s){const t=d(s)?s:s.id;e?e.cell=t:e=u.target={cell:t}}null!=l&&e&&(e.port=l)}else null!=c&&(u.target=tO.create(c).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}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={}){if(TI.isCell(t))return this.store.set(e,CC({},n,{cell:t.id}),r),this;const i=t;return tO.isPoint(t)||null!=i.x&&null!=i.y?(this.store.set(e,CC({},n,{x:i.x,y:i.y}),r),this):(this.store.set(e,rk(t),r),this)}getSourcePoint(){return this.getTerminalPoint("source")}getTargetPoint(){return this.getTerminalPoint("target")}getTerminalPoint(e){const t=this[e];if(tO.isPointLike(t))return tO.create(t);const n=this.getTerminalCell(e);return n?n.getConnectionPoint(this,e):new tO}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;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}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}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)}get strategy(){return this.getStrategy()}set strategy(e){null==e?this.removeStrategy():this.setStrategy(e)}getStrategy(){return this.store.get("strategy")}setStrategy(e,t,n){return"object"==typeof e?this.store.set("strategy",e,t):this.store.set("strategy",{name:e,args:t},n),this}removeStrategy(e={}){return this.store.remove("strategy",e)}getDefaultLabel(){const e=this.constructor,t=this.store.get("defaultLabel")||e.defaultLabel||{};return rk(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 o=null!=t&&Number.isFinite(t)?t:i;return o<0&&(o=i+o+1),r.splice(o,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||kC(t,e)))?null:t)):t?[...t]:[],r=e&&t?e.filter((e=>t.find((t=>e===t||kC(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})}get vertexMarkup(){return this.getVertexMarkup()}set vertexMarkup(e){this.setVertexMarkup(e)}getDefaultVertexMarkup(){return this.store.get("defaultVertexMarkup")||TN.getEdgeVertexMarkup()}getVertexMarkup(){return this.store.get("vertexMarkup")||this.getDefaultVertexMarkup()}setVertexMarkup(e,t={}){return this.store.set("vertexMarkup",TN.clone(e),t),this}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=>tO.toJSON(e))),t),this}insertVertex(e,t,n={}){const r=this.getVertices(),i=r.length;let o=null!=t&&Number.isFinite(t)?t:i;return o<0&&(o=i+o+1),r.splice(o,0,tO.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=>tO.equals(t,e)))?null:t)):t?[...t]:[],r=e&&t?e.filter((e=>t.find((t=>tO.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})}getDefaultMarkup(){return this.store.get("defaultMarkup")||TN.getEdgeMarkup()}getMarkup(){return super.getMarkup()||this.getDefaultMarkup()}get toolMarkup(){return this.getToolMarkup()}set toolMarkup(e){this.setToolMarkup(e)}getDefaultToolMarkup(){return this.store.get("defaultToolMarkup")||TN.getEdgeToolMarkup()}getToolMarkup(){return this.store.get("toolMarkup")||this.getDefaultToolMarkup()}setToolMarkup(e,t={}){return this.store.set("toolMarkup",e,t),this}get doubleToolMarkup(){return this.getDoubleToolMarkup()}set doubleToolMarkup(e){this.setDoubleToolMarkup(e)}getDefaultDoubleToolMarkup(){return this.store.get("defaultDoubleToolMarkup")}getDoubleToolMarkup(){return this.store.get("doubleToolMarkup")||this.getDefaultDoubleToolMarkup()}setDoubleToolMarkup(e,t={}){return this.store.set("doubleToolMarkup",e,t),this}get arrowheadMarkup(){return this.getArrowheadMarkup()}set arrowheadMarkup(e){this.setArrowheadMarkup(e)}getDefaultArrowheadMarkup(){return this.store.get("defaultArrowheadMarkup")||TN.getEdgeArrowheadMarkup()}getArrowheadMarkup(){return this.store.get("arrowheadMarkup")||this.getDefaultArrowheadMarkup()}setArrowheadMarkup(e,t={}){return this.store.set("arrowheadMarkup",e,t),this}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)}scale(e,t,n,r={}){return this.applyToPoints((r=>tO.create(r).scale(e,t,n).toJSON()),r)}applyToPoints(e,t={}){const n={},r=this.getSource(),i=this.getTarget();tO.isPointLike(r)&&(n.source=e(r)),tO.isPointLike(i)&&(n.target=e(i));const o=this.getVertices();return o.length>0&&(n.vertices=o.map(e)),this.store.set(n,t),this}getBBox(){return this.getPolyline().bbox()}getConnectionPoint(){return this.getPolyline().pointAt(.5)}getPolyline(){const e=[this.getSourcePoint(),...this.getVertices().map((e=>tO.create(e))),this.getTargetPoint()];return new oO(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:TI.getCommonAncestor(n,r)),!i||t&&t.id===i.id||i.unembed(this,e),t&&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 o=r===i;if(!o&&e.deep&&this._model){const t=this.getSourceCell(),n=this.getTargetCell();t&&n&&(o=t.isAncestorOf(n,e)||n.isAncestorOf(t,e))}return o}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))}}YI.defaults={},function(e){e.equalTerminals=function(e,t){const n=e,r=t;return n.cell===r.cell&&(n.port===r.port||null==n.port&&null==r.port)}}(YI||(YI={})),function(e){e.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}},e.parseStringLabel=function(e){return{attrs:{label:{text:e}}}}}(YI||(YI={})),function(e){e.toStringTag=`X6.${e.name}`,e.isEdge=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"==typeof r.isNode&&"function"==typeof r.isEdge&&"function"==typeof r.prop&&"function"==typeof r.attr&&"function"==typeof r.disconnect&&"function"==typeof r.getSource&&"function"==typeof r.getTarget}}(YI||(YI={})),function(e){e.registry=gL.create({type:"edge",process(t,n){if(CI.exist(t,!1))throw new Error(`Edge with name '${t}' was registered by anthor Node`);if("function"==typeof n)return n.config({shape:t}),n;let r=e;const{inherit:i="edge"}=n,o=zI(n,["inherit"]);if("string"==typeof i){const e=this.get(i||"edge");null==e&&i?this.onNotFound(i,"inherited"):r=e}else r=i;null==o.constructorName&&(o.constructorName=t);const a=r.define.call(r,o);return a.config({shape:t}),a}}),CI.setEdgeRegistry(e.registry)}(YI||(YI={})),function(e){let t=0;e.define=function(n){const{constructorName:r,overwrite:i}=n,o=zI(n,["constructorName","overwrite"]),a=gk((s=r||o.shape)?NT(s):(t+=1,`CustomEdge${t}`),this);var s;return a.config(o),o.shape&&e.registry.register(o.shape,a,i),a},e.create=function(t){const n=t.shape||"edge",r=e.registry.get(n);return r?new r(t):e.registry.onNotFound(n)}}(YI||(YI={})),function(e){const t="basic.edge";e.config({shape:t,propHooks(t){const{label:n,vertices:r}=t,i=zI(t,["label","vertices"]);if(n){null==i.labels&&(i.labels=[]);const t="string"==typeof n?e.parseStringLabel(n):n;i.labels.push(t)}return r&&Array.isArray(r)&&(i.vertices=r.map((e=>tO.create(e).toJSON()))),i}}),e.registry.register(t,e)}(YI||(YI={}));var BI=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};class HI extends DN{constructor(){super(...arguments),this.POINT_ROUNDING=2,this.markerCache={}}get[Symbol.toStringTag](){return HI.toStringTag}getContainerClassName(){return[super.getContainerClassName(),this.prefixClassName("edge")].join(" ")}get sourceBBox(){const e=this.sourceView;if(!e){const e=this.cell.getSource();return new nO(e.x,e.y)}const t=this.sourceMagnet;return e.isEdgeElement(t)?new nO(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 nO(e.x,e.y)}const t=this.targetMagnet;return e.isEdgeElement(t)?new nO(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")}const r=this.graph,i=this.sourceView,o=this.targetView;return r&&(i&&!r.renderer.isViewMounted(i)||o&&!r.renderer.isViewMounted(o))?n:this.hasAction(n,"render")?(this.render(),n=this.removeAction(n,["render","update","vertices","labels","tools","widget"]),n):(n=this.handleAction(n,"vertices",(()=>this.renderVertexMarkers())),n=this.handleAction(n,"update",(()=>this.update(null,t))),n=this.handleAction(n,"labels",(()=>this.onLabelsChange(t))),n=this.handleAction(n,"tools",(()=>{this.renderTools(),this.updateToolsPosition()})),n=this.handleAction(n,"widget",(()=>this.renderExternalTools())),n)}onLabelsChange(e={}){this.shouldRerenderLabels(e)?this.renderLabels():this.updateLabels(),this.updateLabelPositions()}shouldRerenderLabels(e={}){const t=this.cell.previous("labels");if(null==t)return!0;if("propertyPathArray"in e&&"propertyValue"in e){const n=e.propertyPathArray||[],r=n.length;if(r>1){if(t[n[1]]){if(2===r)return"object"==typeof e.propertyValue&&FE(e.propertyValue,"markup");if("markup"!==n[2])return!1}}}return!0}render(){return this.empty(),this.containers={},this.renderMarkup(),this.renderLabels(),this.update(),this.renderExternalTools(),this}renderMarkup(){const e=this.cell.markup;if(e)return"string"==typeof e?this.renderStringMarkup(e):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)}renderStringMarkup(e){const t=this.containers,n=kO.createVectors(e);n.forEach((e=>{const n=e.attr("class");n&&(t[kT(n)]=e.node)})),this.renderTools(),this.renderVertexMarkers(),this.renderArrowheadMarkers(),CM(this.container,n.map((e=>e.node)))}renderLabels(){const e=this.cell,t=e.getLabels(),n=t.length;let r=this.containers.labels;if(this.labelCache={},this.labelSelectors={},n<=0)return r&&r.parentNode&&r.parentNode.removeChild(r),this;r?this.empty(r):(r=pM("g"),this.addClass(this.prefixClassName("edge-labels"),r),this.containers.labels=r);for(let n=0,i=t.length;n<i;n+=1){const i=t[n],o=this.normalizeLabelMarkup(this.parseLabelMarkup(i.markup));let a,s;if(o)a=o.node,s=o.selectors;else{const t=e.getDefaultLabel(),n=this.normalizeLabelMarkup(this.parseLabelMarkup(t.markup));a=n.node,s=n.selectors}a.setAttribute("data-index",`${n}`),r.appendChild(a);const l=this.rootSelector;if(s[l])throw new Error("Ambiguous label root selector.");s[l]=a,this.labelCache[n]=a,this.labelSelectors[n]=s}return null==r.parentNode&&this.container.appendChild(r),this.updateLabels(),this.customizeLabels(),this}parseLabelMarkup(e){return e?"string"==typeof e?this.parseLabelStringMarkup(e):this.parseJSONMarkup(e):null}parseLabelStringMarkup(e){const t=kO.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()?kO.create("g").append(t):kO.create(r[0]),n.addClass(this.prefixClassName("edge-label")),{node:n.node,selectors:e.selectors}}updateLabels(){if(this.containers.labels){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],o=this.labelSelectors[e];i.setAttribute("cursor",n?"move":"default");const a=t[e],s=CC({},r.attrs,a.attrs);this.updateAttrs(i,s,{selectors:o,rootBBox:a.size?nO.fromSize(a.size):void 0})}}}mergeLabelAttrs(e,t,n){if(null===t)return null;if(void 0===t){if(null===n)return null;if(void 0===n)return;return e?n:CC({},n)}return e?CC({},n,t):void 0}customizeLabels(){if(this.containers.labels){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],o=this.labelSelectors[n];this.graph.hook.onEdgeLabelRendered({edge:e,label:r,container:i,selectors:o})}}}renderTools(){const e=this.containers.tools;if(null==e)return this;const t=this.cell.toolMarkup,n=this.$(e).empty();if(TN.isStringMarkup(t)){let e=IS(t);const r=kO.create(e());if(n.append(r.node),this.toolCache=r.node,this.options.doubleTools){let t;const i=this.cell.doubleToolMarkup;TN.isStringMarkup(i)?(e=IS(i),t=kO.create(e())):t=r.clone(),n.append(t.node),this.tool2Cache=t.node}}return this}renderExternalTools(){const e=this.cell.getTools();return this.addTools(e),this}renderVertexMarkers(){const e=this.containers.vertices;if(null==e)return this;const t=this.cell.vertexMarkup,n=this.$(e).empty();if(TN.isStringMarkup(t)){const e=IS(t);this.cell.getVertices().forEach(((t,r)=>{n.append(kO.create(e(Object.assign({index:r},t))).node)}))}return this}renderArrowheadMarkers(){const e=this.containers.arrowheads;if(null==e)return this;const t=this.cell.arrowheadMarkup,n=this.$(e).empty();if(TN.isStringMarkup(t)){const e=IS(t),r=kO.create(e({end:"source"})).node,i=kO.create(e({end:"target"})).node;this.containers.sourceArrowhead=r,this.containers.targetArrowhead=i,n.append(r,i)}return this}update(e,t={}){this.cleanCache(),this.updateConnection(t);const n=this.cell.getAttrs();return null!=n&&this.updateAttrs(this.container,n,{attrs:e===n?null:e,selectors:this.selectors}),this.updateConnectionPath(),this.updateLabelPositions(),this.updateToolsPosition(),this.updateArrowheadMarkers(),this.updateTools(t),this}removeRedundantLinearVertices(e={}){const t=this.cell,n=t.getVertices(),r=[this.sourceAnchor,...n,this.targetAnchor],i=r.length,o=new oO(r);o.simplify({threshold:.01});const a=o.points.map((e=>e.toJSON())),s=a.length;return i===s?0:(t.setVertices(a.slice(1,s-1),e),i-s)}updateConnectionPath(){const e=this.containers;if(e.connection){const t=this.getConnectionPathData();e.connection.setAttribute("d",t)}if(e.connectionWrap){const t=this.getConnectionPathData();e.connectionWrap.setAttribute("d",t)}e.sourceMarker&&e.targetMarker&&this.translateAndAutoOrientArrows(e.sourceMarker,e.targetMarker)}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 tO.create(this.sourceAnchor);case"target":return tO.create(this.targetAnchor);default:throw new Error(`Unknown terminal type '${e}'`)}}getTerminalConnectionPoint(e){switch(e){case"source":return tO.create(this.sourcePoint);case"target":return tO.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;if(e.translateBy&&t.isFragmentDescendantOf(e.translateBy)){const t=e.tx||0,n=e.ty||0;this.routePoints=new oO(this.routePoints).translate(t,n).points,this.translateConnectionPoints(t,n),this.path.translate(t,n)}else{const e=t.getVertices(),n=this.findAnchors(e);this.sourceAnchor=n.source,this.targetAnchor=n.target,this.routePoints=this.findRoutePoints(e);const r=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=r.source,this.targetPoint=r.target;const i=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);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],o=e[e.length-1];return r.priority&&!n.priority?this.findAnchorsOrdered("target",o,"source",i):this.findAnchorsOrdered("source",i,"target",o)}findAnchorsOrdered(e,t,n,r){let i,o;const a=this.cell,s=a[e],l=a[n],c=this.getTerminalView(e),u=this.getTerminalView(n),d=this.getTerminalMagnet(e),h=this.getTerminalMagnet(n);if(c){let n;n=t?tO.create(t):u?h:tO.create(l),i=this.getAnchor(s.anchor,c,d,n,e)}else i=tO.create(s);if(u){const e=tO.create(r||i);o=this.getAnchor(l.anchor,u,h,e,n)}else o=tO.isPointLike(l)?tO.create(l):new tO;return{[e]:i,[n]:o}}getAnchor(e,t,n,r,i){const o=t.isEdgeElement(n),a=this.graph.options.connecting;let s,l="string"==typeof e?{name:e}:e;if(!l){const e=o?("source"===i?a.sourceEdgeAnchor:a.targetEdgeAnchor)||a.edgeAnchor:("source"===i?a.sourceAnchor:a.targetAnchor)||a.anchor;l="string"==typeof e?{name:e}:e}if(!l)throw new Error("Anchor should be specified.");const c=l.name;if(o){const e=bP.registry.get(c);if("function"!=typeof e)return bP.registry.onNotFound(c);s=XT(e,this,t,n,r,l.args||{},i)}else{const e=fP.registry.get(c);if("function"!=typeof e)return fP.registry.onNotFound(c);s=XT(e,this,t,n,r,l.args||{},i)}return s?s.round(this.POINT_ROUNDING):new tO}findRoutePoints(e=[]){const t=this.graph.options.connecting.router||aI.presets.normal,n=this.cell.getRouter()||t;let r;if("function"==typeof n)r=XT(n,this,e,{},this);else{const t="string"==typeof n?n:n.name,i="string"==typeof n?{}:n.args||{},o=t?aI.registry.get(t):aI.presets.normal;if("function"!=typeof o)return aI.registry.onNotFound(t);r=XT(o,this,e,i,this)}return null==r?e.map((e=>tO.create(e))):r.map((e=>tO.create(e)))}findConnectionPoints(e,t,n){const r=this.cell,i=this.graph.options.connecting,o=r.getSource(),a=r.getTarget(),s=this.sourceView,l=this.targetView,c=e[0],u=e[e.length-1];let d,h;if(s&&!s.isEdgeElement(this.sourceMagnet)){const e=this.sourceMagnet||s.container,r=new rO(c||n,t),a=o.connectionPoint||i.sourceConnectionPoint||i.connectionPoint;d=this.getConnectionPoint(a,s,e,r,"source")}else d=t;if(l&&!l.isEdgeElement(this.targetMagnet)){const e=this.targetMagnet||l.container,r=a.connectionPoint||i.targetConnectionPoint||i.connectionPoint,o=new rO(u||t,n);h=this.getConnectionPoint(r,l,e,o,"target")}else h=n;return{source:d,target:h}}getConnectionPoint(e,t,n,r,i){const o=r.end;if(null==e)return o;const a="string"==typeof e?e:e.name,s="string"==typeof e?{}:e.args,l=SP.registry.get(a);if("function"!=typeof l)return SP.registry.onNotFound(a);const c=XT(l,this,r,t,n,s||{},i);return c?c.round(this.POINT_ROUNDING):o}updateMarkerAttr(e){const t=this.cell.getAttrs(),n=`.${e}-marker`,r=t&&t[n];r&&this.updateAttrs(this.container,{},{attrs:{[n]:r},selectors:this.selectors})}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],o=e[e.length-1],a=this.containers.sourceMarker,s=this.containers.targetMarker,l=this.markerCache;let c,u;if(a){if(this.updateMarkerAttr("source"),l.sourceBBox=l.sourceBBox||eL(a),l.sourceBBox.width>0){const e=lL(a);c=t.clone().move(i||n,l.sourceBBox.width*e.sx*-1)}}else{const e=r("source");e&&(c=t.clone().move(i||n,-e))}if(s){if(this.updateMarkerAttr("target"),l.targetBBox=l.targetBBox||eL(s),l.targetBBox.width>0){const e=lL(s);u=n.clone().move(o||t,l.targetBBox.width*e.sx*-1)}}else{const e=r("target");e&&(u=n.clone().move(o||t,-e))}return l.sourcePoint=c||t.clone(),l.targetPoint=u||n.clone(),{source:c,target:u}}findPath(e,t,n){const r=this.cell.getConnector()||this.graph.options.connecting.connector;let i,o,a;if("string"==typeof r?i=r:(i=r.name,o=r.args),i){const e=bI.registry.get(i);if("function"!=typeof e)return bI.registry.onNotFound(i);a=e}else a=bI.presets.normal;const s=XT(a,this,t,n,e,Object.assign(Object.assign({},o),{raw:!0}),this);return"string"==typeof s?CO.parse(s):s}translateConnectionPoints(e,t){const n=this.markerCache;n.sourcePoint&&n.sourcePoint.translate(e,t),n.targetPoint&&n.targetPoint.translate(e,t),this.sourcePoint.translate(e,t),this.targetPoint.translate(e,t),this.sourceAnchor.translate(e,t),this.targetAnchor.translate(e,t)}updateLabelPositions(){if(null==this.containers.labels)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.normalizeLabelPosition(n.position),o=CC({},r,i),a=this.getLabelTransformationMatrix(o);this.labelCache[e].setAttribute("transform",GO(a))}return this}updateToolsPosition(){if(null==this.containers.tools)return this;let e="",t=this.options.toolsOffset;const n=this.getConnectionLength();if(null!=n){n<this.options.shortLength&&(e="scale(.5)",t/=2);let r=this.getPointAtLength(t);if(null!=r&&NM(this.toolCache,"transform",`translate(${r.x},${r.y}) ${e}`),this.options.doubleTools&&n>=this.options.longLength){const i=this.options.doubleToolsOffset||t;r=this.getPointAtLength(n-i),null!=r&&NM(this.tool2Cache,"transform",`translate(${r.x},${r.y}) ${e}`),NM(this.tool2Cache,"visibility","visible")}else this.options.doubleTools&&NM(this.tool2Cache,"visibility","hidden")}return this}updateArrowheadMarkers(){const e=this.containers.arrowheads;if(null==e)return this;if("none"===e.style.display)return this;const t=this.containers.sourceArrowhead,n=this.containers.targetArrowhead;if(t&&n){const e=(this.getConnectionLength()||0)<this.options.shortLength?.5:1;lL(t,e),lL(n,e),this.translateAndAutoOrientArrows(t,n)}return this}updateTerminalProperties(e){const t=this.cell,n=this.graph,r=t[e],i=r&&r.cell,o=`${e}View`;if(!i)return this[o]=null,this.updateTerminalMagnet(e),!0;const a=n.getCellById(i);if(!a)throw new Error(`Edge's ${e} node with id "${i}" not exists`);const s=a.findView(n);return!!s&&(this[o]=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}translateAndAutoOrientArrows(e,t){const n=this.routePoints;e&&cL(e,this.sourcePoint,n[0]||this.targetPoint,this.graph.view.stage),t&&cL(t,this.targetPoint,n[n.length-1]||this.sourcePoint,this.graph.view.stage)}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:CC({},t,e)}addLabel(e,t,n,r){let i,o,a,s=0;"number"!=typeof e?(i=e.x,o=e.y,"number"==typeof t?(s=t,a=n):a=t):(i=e,o=t,"number"==typeof n?(s=n,a=r):a=n);const l=this.getDefaultLabelPositionArgs(),c=a,u=this.mergeLabelPositionArgs(c,l),d={position:this.getLabelPosition(i,o,s,u)};return this.cell.insertLabel(d,-1,a),-1}addVertex(e,t,n){const r="number"!=typeof e,i=r?e.x:e,o=r?e.y:t,a=r?t:n,s={x:i,y:o},l=this.getVertexIndex(i,o);return this.cell.insertVertex(s,l,a),l}sendToken(e,t,n){let r,i,o,a,s="linear";"object"==typeof t?(r=t.duration,i=!0===t.reversed,o=t.selector,!1===t.rotate?a="":!0===t.rotate?a="auto":null!=t.rotate&&(a=`${t.rotate}`),t.timing&&(s=t.timing)):(r=t,i=!1,o=null),r=r||1e3;const l={dur:`${r}ms`,repeatCount:"1",calcMode:s,fill:"freeze"};if(a&&(l.rotate=a),i&&(l.keyPoints="1;0",l.keyTimes="0;1"),"object"==typeof t){const{duration:e,reversed:n,selector:r,rotate:i,timing:o}=t,a=BI(t,["duration","reversed","selector","rotate","timing"]);Object.keys(a).forEach((e=>{l[e]=a[e]}))}let c;if(c="string"==typeof o?this.findOne(o,this.container,this.selectors):this.containers.connection?this.containers.connection:this.container.querySelector("path"),!(c instanceof SVGPathElement))throw new Error("Token animation requires a valid connection path.");const u="string"==typeof e?this.findOne(e):e;if(null==u)throw new Error("Token animation requires a valid token element.");const d=u.parentNode,h=()=>{d||xM(u)},f=kO.create(u);d||f.appendTo(this.graph.view.stage);const p=l.complete;l.complete=e=>{h(),n&&n(),p&&p(e)};const g=f.animateAlongPath(l,c);return()=>{h(),g()}}getConnection(){return null!=this.path?this.path.clone():null}getConnectionPathData(){if(null==this.path)return"";const e=this.cache.pathCache;return FE(e,"data")||(e.data=this.path.serialize()),e.data||""}getConnectionSubdivisions(){if(null==this.path)return null;const e=this.cache.pathCache;return FE(e,"segmentSubdivisions")||(e.segmentSubdivisions=this.path.getSegmentSubdivisions()),e.segmentSubdivisions}getConnectionLength(){if(null==this.path)return 0;const e=this.cache.pathCache;return FE(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:(YT(e)&&(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};let o,a=0;"number"==typeof n?(a=n,o=r):o=n,null!=o&&(i.options=o);const s=o&&o.absoluteOffset,l=!(o&&o.absoluteDistance),c=o&&o.absoluteDistance&&o.reverseDistance,u=this.path,d={segmentSubdivisions:this.getConnectionSubdivisions()},h=new tO(e,t),f=u.closestPointT(h,d),p=this.getConnectionLength()||0;let g,m,v=u.lengthAtT(f,d);if(l&&(v=p>0?v/p:0),c&&(v=-1*(p-v)||1),i.distance=v,s||(g=u.tangentAtT(f)),g)m=g.pointOffset(h);else{const e=u.pointAtT(f),t=h.diff(e);m={x:t.x,y:t.y}}return i.offset=m,i.angle=a,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,o=i>0&&i<=1;let a=0;const s={x:0,y:0},l=t.offset;l&&("number"==typeof l?a=l:(null!=l.x&&(s.x=l.x),null!=l.y&&(s.y=l.y)));const c=0!==s.x||0!==s.y||0===a,u=n.keepGradient,d=n.ensureLegibility,h=this.path,f={segmentSubdivisions:this.getConnectionSubdivisions()},p=o?i*this.getConnectionLength():i,g=h.tangentAtLength(p,f);let m,v=r;if(g){if(c)m=g.start,m.translate(s);else{const e=g.clone();e.rotate(-90,g.start),e.setLength(a),m=e.end}u&&(v=g.angle()+r,d&&(v=GM.normalize((v+90)%180-90)))}else m=h.start,c&&m.translate(s);return UO().translate(m.x,m.y).rotate(v)}getLabelCoordinates(e){const t=this.getLabelTransformationMatrix(e);return new tO(t.e,t.f)}getVertexIndex(e,t){const n=this.cell.getVertices(),r=this.getClosestPointLength(new tO(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;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);switch(e.target.getAttribute("class")){case"vertex":return void this.startVertexDragging(e,t,n);case"vertex-remove":case"vertex-remove-area":return void this.handleVertexRemoving(e,t,n);case"connection":case"connection-wrap":return void this.handleVertexAdding(e,t,n);case"arrowhead":return void this.startArrowheadDragging(e,t,n);case"source-marker":case"target-marker":return void this.notifyUnhandledMouseDown(e,t,n)}this.startEdgeDragging(e,t,n)}onMouseMove(e,t,n){const r=this.getEventData(e);switch(r.action){case"drag-vertex":this.dragVertex(e,t,n);break;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-vertex":this.stopVertexDragging(e,t,n);break;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(wM(e.target,"edge-tool",this.container)){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()}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}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:nk(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 o=this.cell[n],a=o.cell;if(a){let e;const n=t[r]=this.graph.renderer.findViewByCell(a);n&&(e=n.getMagnetFromEdgeTerminal(o),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)}arrowheadDragging(e,t,n,r){r.x=t,r.y=n,r.currentTarget!==e&&(r.currentMagnet&&r.currentView&&r.currentView.unhighlight(r.currentMagnet,{type:"magnetAdsorbed"}),r.currentView=this.graph.renderer.findViewByElem(e),r.currentView?(r.currentMagnet=r.currentView.findMagnet(e),r.currentMagnet&&this.graph.hook.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"}):r.currentMagnet=null):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 o=e.terminalType,a=r.getEdgeTerminal(i,t,n,this.cell,o);this.cell.setTerminal(o,a,{ui:!0})}snapArrowhead(e,t,n){const r=this.graph,{snap:i,allowEdge:o}=r.options.connecting,a="object"==typeof i&&i.radius||50,s={x:e-a,y:t-a,width:2*a,height:2*a},l=r.renderer.findViewsInArea(s);if(o){const e=r.renderer.findEdgeViewsInArea(s).filter((e=>e!==this));l.push(...e)}const c=n.closestView||null,u=n.closestMagnet||null;let d;n.closestView=null,n.closestMagnet=null;let h=Number.MAX_SAFE_INTEGER;const f=new tO(e,t);let p;l.forEach((i=>{"false"!==i.container.getAttribute("magnet")&&(d=i.cell.getBBox().getCenter().distance(f),d<a&&d<h&&(u===i.container||r.hook.validateConnection(...n.getValidateConnectionArgs(i,null),i.getEdgeTerminal(i.container,e,t,this.cell,n.terminalType)))&&(h=d,n.closestView=i,n.closestMagnet=i.container)),i.container.querySelectorAll("[magnet]").forEach((o=>{if("false"!==o.getAttribute("magnet")){const s=i.getBBoxOfElement(o);d=f.distance(s.getCenter()),d<a&&d<h&&(u===o||r.hook.validateConnection(...n.getValidateConnectionArgs(i,o),i.getEdgeTerminal(o,e,t,this.cell,n.terminalType)))&&(h=d,n.closestView=i,n.closestMagnet=o)}}))}));const g=n.terminalType,m=n.closestView,v=n.closestMagnet,y=u!==v;if(c&&y&&c.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){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){this.graph.options.embedding.enabled&&this.cell.updateParent()&&(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&&!YI.equalTerminals(r,i)){const o=this.graph,a=r,s=a.cell?o.getCellById(a.cell):null,l=a.port,c=s?o.findViewByCell(s):null,u=s||e.isNewEdge?null:tO.create(r).toJSON(),d=i,h=d.cell?o.getCellById(d.cell):null,f=d.port,p=h?o.findViewByCell(h):null,g=h?null:tO.create(i).toJSON();this.notify("edge:connected",{e:t,previousCell:s,previousPort:l,previousView:c,previousPoint:u,currentCell:h,currentView:p,currentPort:f,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.renderer.findViewByCell(n[r]);if(!i)continue;const o=Array.prototype.slice.call(i.container.querySelectorAll("[magnet]"));"false"!==i.container.getAttribute("magnet")&&o.push(i.container);const a=o.filter((n=>t.hook.validateConnection(...e.getValidateConnectionArgs(i,n),i.getEdgeTerminal(n,e.x,e.y,this.cell,e.terminalType))));if(a.length>0){for(let e=0,t=a.length;e<t;e+=1)i.highlight(a[e],{type:"magnetAvailable"});i.highlight(null,{type:"nodeAvailable"}),e.marked[i.cell.id]=a}}}unhighlightAvailableMagnets(e){const t=e.marked||{};Object.keys(t).forEach((e=>{const n=this.graph.renderer.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);r.hook.validateEdge(this.cell,i.terminalType,i.initialTerminal)?(this.finishEmbedding(i),this.notifyConnectionEvent(i,e)):this.fallbackConnection(i),this.afterArrowheadDragging(i)}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),o=this.getDefaultLabelPositionArgs(),a=this.mergeLabelPositionArgs(i,o);this.setEventData(e,{index:n,positionAngle:r,positionArgs:a,stopPropagation:!0,action:"drag-label"})}else 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),o=CC({},i,{position:this.getLabelPosition(t,n,r.positionAngle,r.positionArgs)});this.cell.setLabelAt(r.index,o)}stopLabelDragging(e,t,n){}handleVertexAdding(e,t,n){if(!this.can("vertexAddable"))return void this.notifyUnhandledMouseDown(e,t,n);const r=this.addVertex({x:t,y:n},{ui:!0});this.setEventData(e,{index:r,action:"drag-vertex"})}handleVertexRemoving(e,t,n){if(!this.can("vertexDeletable"))return void this.notifyUnhandledMouseDown(e,t,n);const r=e.target,i=parseInt(r.getAttribute("idx"),10);this.cell.removeVertexAt(i)}startVertexDragging(e,t,n){if(!this.can("vertexMovable"))return void this.notifyUnhandledMouseDown(e,t,n);const r=e.target,i=parseInt(r.getAttribute("idx"),10);this.setEventData(e,{index:i,action:"drag-vertex"})}dragVertex(e,t,n){const r=this.getEventData(e);this.cell.setVertexAt(r.index,{x:t,y:n},{ui:!0})}stopVertexDragging(e,t,n){}}!function(e){e.toStringTag=`X6.${e.name}`,e.isEdgeView=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"==typeof r.isNodeView&&"function"==typeof r.isEdgeView&&"function"==typeof r.confirmUpdate&&"function"==typeof r.update&&"function"==typeof r.getConnection}}(HI||(HI={})),HI.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"],vertices:["vertices","update"],vertexMarkup:["vertices"],toolMarkup:["tools"],tools:["widget"]},shortLength:105,longLength:155,toolsOffset:40,doubleTools:!1,doubleToolsOffset:65,sampleInterval:50}),HI.registry.register("edge",HI,!0);class qI extends DN{constructor(){super(...arguments),this.scalableNode=null,this.rotatableNode=null,this.scalableSelector="scalable",this.rotatableSelector="rotatable",this.defaultPortMarkup=TN.getPortMarkup(),this.defaultPortLabelMarkup=TN.getPortLabelMarkup(),this.defaultPortContainerMarkup=TN.getPortContainerMarkup(),this.portsCache={}}get[Symbol.toStringTag](){return qI.toStringTag}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")){const e=this.prefixClassName("port-unconnectable");this.can("magnetConnectable")?aM(t,e):oM(t,e)}else{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(t)),"update"),n=this.handleAction(n,"update",(()=>this.update()),vD.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.renderTools()))),n}update(e){this.cleanCache(),vD.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 nO(0,0,n.width,n.height),selectors:this.selectors,scalableNode:this.scalableNode,rotatableNode:this.rotatableNode}),vD.useCSSSelector&&this.renderPorts()}renderMarkup(){const e=this.cell.markup;if(e)return"string"==typeof e?this.renderStringMarkup(e):this.renderJSONMarkup(e);throw new TypeError("Invalid node markup.")}renderJSONMarkup(e){const t=this.parseJSONMarkup(e,this.container),n=e=>Array.isArray(e)?e[0]:e;this.selectors=t.selectors,this.rotatableNode=n(this.selectors[this.rotatableSelector]),this.scalableNode=n(this.selectors[this.scalableSelector]),this.container.appendChild(t.fragment)}renderStringMarkup(e){CM(this.container,kO.toNodes(kO.createVectors(e))),this.rotatableNode=bM(this.container,`.${this.rotatableSelector}`),this.scalableNode=bM(this.container,`.${this.scalableSelector}`),this.selectors={},this.rootSelector&&(this.selectors[this.rootSelector]=this.container)}render(){return this.empty(),this.renderMarkup(),this.scalableNode&&this.update(),this.resize(),this.rotatableNode?(this.rotate(),this.translate()):this.updateTransform(),vD.useCSSSelector||this.renderPorts(),this.renderTools(),this}resize(e={}){if(this.scalableNode)return this.updateSize(e);this.cell.getAngle()&&this.rotate(),this.update()}translate(){if(this.rotatableNode)return this.updateTranslation();this.updateTransform()}rotate(){if(this.rotatableNode)return this.updateRotation(),void this.update();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)}updateRotation(){if(null!=this.rotatableNode){const e=this.getRotationString();null!=e?this.rotatableNode.setAttribute("transform",e):this.rotatableNode.removeAttribute("transform")}}updateTranslation(){this.container.setAttribute("transform",this.getTranslationString())}updateSize(e={}){const t=this.cell,n=t.getSize(),r=t.getAngle(),i=this.scalableNode;let o=!1;i.getElementsByTagName("path").length>0&&(o=!0);const a=eL(i,{recursive:o}),s=n.width/(a.width||1),l=n.height/(a.height||1);i.setAttribute("transform",`scale(${s},${l})`);const c=this.rotatableNode;if(null!=c){const o=c.getAttribute("transform");if(o){c.setAttribute("transform",`${o} rotate(${-r},${n.width/2},${n.height/2})`);const a=eL(i,{target:this.graph.view.stage});t.prop("position",{x:a.x,y:a.y},Object.assign({updated:!0},e)),this.translate(),this.rotate()}}this.update()}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)}initializePorts(){this.cleanPortsCache()}refreshPorts(){this.removePorts(),this.cleanPortsCache(),this.renderPorts()}cleanPortsCache(){this.portsCache={}}removePorts(){Object.keys(this.portsCache).forEach((e=>{xM(this.portsCache[e].portElement)}))}renderPorts(){const e=this.getPortsContainer(),t=[];e.childNodes.forEach((e=>{t.push(e)}));const n=OE(this.cell.getParsedPorts(),"zIndex"),r="auto";n[r]&&n[r].forEach((n=>{const r=this.getPortElement(n);e.append(r),t.push(r)})),Object.keys(n).forEach((e=>{if(e!==r){const r=parseInt(e,10);this.appendPorts(n[e],r,t)}})),this.updatePorts()}getPortsContainer(){return this.rotatableNode||this.container}appendPorts(e,t,n){const r=e.map((e=>this.getPortElement(e)));n[t]||t<0?kM(n[Math.max(t,0)],r):CM(this.getPortsContainer(),r)}getPortElement(e){const t=this.portsCache[e.id];return t?t.portElement:this.createPortElement(e)}createPortElement(e){let t=TN.renderMarkup(this.getPortContainerMarkup());const n=t.elem;if(null==n)throw new Error("Invalid port container markup.");t=TN.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),t=TN.renderMarkup(this.getPortLabelMarkup(e.label));const o=t.elem,a=t.selectors;if(null==o)throw new Error("Invalid port label markup.");let s;if(i&&a){for(const e in a)if(i[e]&&e!==this.rootSelector)throw new Error("Selectors within port must be unique.");s=Object.assign(Object.assign({},i),a)}else s=i||a;let l="x6-port";return e.group&&(l+=` x6-port-${e.group}`),oM(n,l),oM(r,"x6-port-body"),oM(o,"x6-port-label"),n.appendChild(r),n.appendChild(o),this.portsCache[e.id]={portElement:n,portSelectors:s,portLabelElement:o,portLabelSelectors:a,portContentElement:r,portContentSelectors:i},this.graph.hook.onPortRendered({port:e,node:this.cell,container:n,selectors:s,labelContainer:o,labelSelectors:a,contentContainer:r,contentSelectors:i}),n}updatePorts(){this.updatePortGroup();const e=this.cell.getParsedGroups();Object.keys(e).forEach((e=>this.updatePortGroup(e)))}updatePortGroup(e){const t=nO.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]||{},o=t.portLayout;if(this.applyPortTransform(i.portElement,o),null!=t.portAttrs){const e={selectors:i.portSelectors||{}};t.portSize&&(e.rootBBox=nO.fromSize(t.portSize)),this.updateAttrs(i.portElement,t.portAttrs,e)}const a=t.labelLayout;if(a&&(this.applyPortTransform(i.portLabelElement,a,-(o.angle||0)),a.attrs)){const e={selectors:i.portLabelSelectors||{}};t.labelSize&&(e.rootBBox=nO.fromSize(t.labelSize)),this.updateAttrs(i.portLabelElement,a.attrs,e)}}}applyPortTransform(e,t,n=0){const r=t.angle,i=t.position;oL(e,UO().rotate(n).translate(i.x||0,i.y||0).rotate(r||0),{absolute:!0})}getPortContainerMarkup(){return this.cell.getPortContainerMarkup()||this.defaultPortContainerMarkup}getPortMarkup(e){return e.markup||this.cell.portMarkup||this.defaultPortMarkup}getPortLabelMarkup(e){return e.markup||this.cell.portLabelMarkup||this.defaultPortLabelMarkup}getEventArgs(e,t,n){const r=this,i=r.cell;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}}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))}onClick(e,t,n){super.onClick(e,t,n),this.notify("node:click",this.getEventArgs(e,t,n))}onDblClick(e,t,n){super.onDblClick(e,t,n),this.notify("node:dblclick",this.getEventArgs(e,t,n))}onContextMenu(e,t,n){super.onContextMenu(e,t,n),this.notify("node:contextmenu",this.getEventArgs(e,t,n))}onMouseDown(e,t,n){if(this.isPropagationStopped(e))return;const r=e.target;TM(r)||MM(r)||(this.notifyMouseDown(e,t,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.setEventData(e,r)}onMouseUp(e,t,n){const r=this.getEventData(e),i=r.action;if("magnet"===i)this.stopMagnetDragging(e,t,n);else{const o=e.target;if(TM(o)||MM(o))return;if(this.notifyMouseUp(e,t,n),"move"===i){(r.targetView||this).stopNodeDragging(e,t,n)}}const o=r.targetMagnet;o&&this.onMagnetClick(e,o,t,n),this.checkMouseleave(e)}onMouseOver(e){super.onMouseOver(e),this.notify("node:mouseover",this.getEventArgs(e))}onMouseOut(e){super.onMouseOut(e),this.notify("node:mouseout",this.getEventArgs(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){this.graph.view.getMouseMovedCount(e)>this.graph.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.getEventData(e).cell||this.cell,n=this.graph.findViewByCell(t),r=this.graph.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e:e,node:t,view:n,cell:t,x:r.x,y:r.y,currentParent:t.getParent()})}processEmbedding(e,t){const n=t.cell||this.cell,r=t.graph||this.graph,i=r.options.embedding,o=i.findParent;let a="function"==typeof o?XT(o,r,{view:this,node:this.cell}).filter((e=>TI.isCell(e)&&this.cell.id!==e.id&&!e.isDescendantOf(this.cell))):r.model.getNodesUnderNode(n,{by:o});if(i.frontOnly&&a.length>0){const e=OE(a,"zIndex"),t=IE(Object.keys(e));t&&(a=e[t])}a=a.filter((e=>e.visible));let s=null;const l=t.candidateEmbedView,c=i.validate;for(let e=a.length-1;e>=0;e-=1){const t=a[e];if(l&&l.cell.id===t.id){s=l;break}{const e=t.findView(r);if(XT(c,r,{child:this.cell,parent:e.cell,childView:this,parentView:e})){s=e;break}}}this.clearEmbedding(t),s&&s.highlight(null,{type:"embedding"}),t.candidateEmbedView=s;const u=r.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e:e,cell:n,node:n,view:r.findViewByCell(n),x:u.x,y:u.y,currentParent:n.getParent(),candidateParent:s?s.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),o=n.getParent(),a=t.candidateEmbedView;if(a?(a.unhighlight(null,{type:"embedding"}),t.candidateEmbedView=null,null!=o&&o.id===a.cell.id||a.cell.insertChild(n,void 0,{ui:!0})):o&&o.unembed(n,{ui:!0}),r.model.getConnectedEdges(n,{deep:!0}).forEach((e=>{e.updateParent({ui:!0})})),i&&a){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:o,currentParent:n.getParent()})}this.graph.stopBatch("embedding")}getDelegatedView(){let e=this.cell,t=this;for(;t&&!e.isEdge();){if(!e.hasParent()||t.can("stopDelegateOnDragging"))return t;e=e.getParent(),t=this.graph.renderer.findViewByCell(e)}return null}startMagnetDragging(e,t,n){if(!this.can("magnetConnectable"))return;e.stopPropagation();const r=e.currentTarget,i=this.graph;this.setEventData(e,{targetMagnet:r}),i.hook.validateMagnet(this,r,e)?(i.options.magnetThreshold<=0&&this.startConnectting(e,r,t,n),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):((iM(r,"x6-port-body")||$y()(r).closest(".x6-port-body").length>0)&&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.notifyMouseDown(e,n,r),i.setEventData(e,i.prepareArrowheadDragging("target",{x:n,y:r,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:i})}createEdgeFromMagnet(e,t,n){const r=this.graph,i=r.model,o=r.hook.getDefaultEdge(this,e);return o.setSource(Object.assign(Object.assign({},o.getSource()),this.getEdgeTerminal(e,t,n,o,"source"))),o.setTarget(Object.assign(Object.assign({},o.getTarget()),{x:t,y:n})),o.addTo(i,{async:!1,ui:!0}),o.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,o=i.options.magnetThreshold,a=this.getEventTarget(e),s=r.targetMagnet;if("onleave"===o){if(s===a||s.contains(a))return}else if(i.view.getMouseMovedCount(e)<=o)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 o=[i];const a=this.graph.selection.widget;if(a&&a.options.movable){const e=this.graph.getSelectedCells();e.includes(i)&&(o=e.filter((e=>e.isNode())))}o.forEach((i=>{this.notify(e,{e:t,x:n,y:r,cell:i,node:i,view:i.findView(this.graph)})}))}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=tO.create(r.cell.getPosition());r.setEventData(e,{moving:!1,offset:i.diff(t,n),restrict:this.graph.hook.getRestrictArea(r)})}dragNode(e,t,n){const r=this.cell,i=this.graph,o=i.getGridSize(),a=this.getEventData(e),s=a.offset,l=a.restrict;a.moving||(a.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",e,t,n,this.cell)),this.autoScrollGraph(e.clientX,e.clientY);const c=yD.snapToGrid(t+s.x,o),u=yD.snapToGrid(n+s.y,o);r.setPosition(c,u,{restrict:l,deep:!0,ui:!0}),i.options.embedding.enabled&&(a.embedding||(this.prepareEmbedding(e),a.embedding=!0),this.processEmbedding(e,a))}stopNodeDragging(e,t,n){const r=this.getEventData(e);r.embedding&&this.finalizeEmbedding(e,r),r.moving&&(this.removeClass("node-moving"),this.notifyNodeMove("node:moved",e,t,n,this.cell)),r.moving=!1,r.embedding=!1}autoScrollGraph(e,t){const n=this.graph.scroller.widget;n&&n.autoScroll(e,t)}}!function(e){e.toStringTag=`X6.${e.name}`,e.isNodeView=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"==typeof r.isNodeView&&"function"==typeof r.isEdgeView&&"function"==typeof r.confirmUpdate&&"function"==typeof r.update&&"function"==typeof r.findPortElem&&"function"==typeof r.resize&&"function"==typeof r.rotate&&"function"==typeof r.translate}}(qI||(qI={})),qI.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"]}}),qI.registry.register("node",qI,!0);const UI=PI("text");class VI extends(jI("text",{view:UI,attrs:{text:{fontSize:18,fill:"#000000",stroke:null,refX:.5,refY:.5}}},{noText:!0})){}!function(e){class t extends qI{confirmUpdate(e,t={}){let n=super.confirmUpdate(e,t);return this.hasAction(n,"scale")&&(this.resize(),n=this.removeAction(n,"scale")),n}}e.View=t,t.config({actions:{attrs:["scale"]}}),qI.registry.register(UI,t)}(VI||(VI={}));class WI extends uN{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 o=Array.isArray(e)?e:[e],a=this.comparator&&"number"!=typeof t&&!1!==i.sort,s=this.comparator||null;let l=!1;const c=[],u=[];return o.forEach((e=>{const t=this.get(e);t?i.merge&&!e.isSameStore(t)&&(t.setProp(e.getProp(),n),u.push(t),a&&!l&&(l=null==s||"function"==typeof s?t.hasChanged():"string"==typeof s?t.hasChanged(s):s.some((e=>t.hasChanged(e))))):(c.push(e),this.reference(e))})),c.length&&(a&&(l=!0),this.cells.splice(r,0,...c),this.length=this.cells.length),l&&this.sort({silent:!0}),i.silent||(c.forEach(((e,t)=>{const n={cell:e,index:r+t,options:i};this.trigger("added",n),i.dryrun||e.notify("added",Object.assign({},n))})),l&&this.trigger("sorted"),(c.length||u.length)&&this.trigger("updated",{added:c,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 o=this.cells.indexOf(i);this.cells.splice(o,1),this.length-=1,delete this.map[i.id],n.push(i),this.unreference(i),t.dryrun||i.remove(),t.silent||(this.trigger("removed",{cell:i,index:o,options:t}),t.dryrun||i.notify("removed",{cell:i,index:o,options:t}))}return n}reset(e,t={}){const n=this.cells.slice();if(n.forEach((e=>this.unreference(e))),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=>{const t=n.some((t=>t.id===e.id));t||r.push(e)})),n.forEach((t=>{const n=e.some((e=>e.id===t.id));n||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 this.remove(t,e)}unshift(e,t){return this.add(e,0,t)}shift(e){const t=this.at(0);return this.remove(t,e)}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=xE(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={}}}class GI extends uN{constructor(e=[]){super(),this.batches={},this.addings=new WeakMap,this.nodes={},this.edges={},this.outgoings={},this.incomings={},this.collection=new WI(e),this.setup()}get[Symbol.toStringTag](){return GI.toStringTag}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),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()?(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(t&&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(r&&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(r&&r.cell){const t=TI.isCell(r.cell)?r.cell.id:r.cell,i=n[t],o=i?i.indexOf(e.id):-1;o>=0&&(i.splice(o,1),0===i.length&&delete n[t])}const i=e.getTerminal(t);if(i&&i.cell){const t=TI.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={}){return e.map((e=>this.prepareCell(e,Object.assign(Object.assign({},t),{dryrun:!0})))),this.collection.reset(e,t),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",(()=>{const e=t.sort(((e,t)=>(e.isEdge()?1:2)-(t.isEdge()?1:2)));for(;e.length>0;){const t=e.shift();t&&t.remove(n)}}),n),this}addNode(e,t={}){const n=LI.isNode(e)?e:this.createNode(e);return this.addCell(n,t),n}createNode(e){return LI.create(e)}addEdge(e,t={}){const n=YI.isEdge(e)?e:this.createEdge(e);return this.addCell(n,t),n}createEdge(e){return YI.create(e)}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}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){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.getSourceCell(),i=e.getTargetCell();r&&r.id===n&&e.setSource({x:0,y:0},t),i&&i.id===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)}getCell(e){return this.collection.get(e)}getCells(){return this.collection.toArray()}getFirstCell(){return this.collection.first()}getLastCell(){return this.collection.last()}getMinZIndex(){const e=this.collection.first();return e&&e.getZIndex()||0}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)):[]}getNodes(){return this.getCellsFromCache(this.nodes)}getEdges(){return this.getCellsFromCache(this.edges)}getOutgoingEdges(e){const t="string"==typeof e?e:e.id,n=this.outgoings[t];return n?n.map((e=>this.getCell(e))).filter((e=>e&&e.isEdge())):null}getIncomingEdges(e){const t="string"==typeof e?e:e.id,n=this.incomings[t];return n?n.map((e=>this.getCell(e))).filter((e=>e&&e.isEdge())):null}getConnectedEdges(e,t={}){const n=[],r="string"==typeof e?this.getCell(e):e;if(null==r)return n;const i={},o=t.indirect;let a=t.incoming,s=t.outgoing;null==a&&null==s&&(a=s=!0);const l=(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,o&&(a&&l(e,!1),s&&l(e,!0)))})),o&&e.isEdge()){const r=t?e.getTargetCell():e.getSourceCell();r&&r.isEdge()&&(i[r.id]||(n.push(r),l(r,t)))}};if(s&&l(r,!0),a&&l(r,!1),t.deep){const e=r.getDescendants({deep:!0}),o={};e.forEach((e=>{e.isNode()&&(o[e.id]=!0)}));const l=(e,r)=>{const a=r?this.getOutgoingEdges(e.id):this.getIncomingEdges(e.id);null!=a&&a.forEach((e=>{if(!i[e.id]){const r=e.getSourceCell(),a=e.getTargetCell();if(!t.enclosed&&r&&o[r.id]&&a&&o[a.id])return;n.push(e),i[e.id]=!0}}))};e.forEach((e=>{e.isEdge()||(s&&l(e,!0),a&&l(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}getRoots(){return this.getBoundaryNodes(!0)}getLeafs(){return this.getBoundaryNodes(!1)}isRoot(e){return this.isBoundary(e,!0)}isLeaf(e){return this.isBoundary(e,!1)}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,o)=>{const a=o.hasLoop(t),s=o.getSourceCell(),l=o.getTargetCell();return n&&s&&s.isNode()&&!i[s.id]&&(!a&&(s===e||t.deep&&s.isDescendantOf(e))||(i[s.id]=s)),r&&l&&l.isNode()&&!i[l.id]&&(!a&&(l===e||t.deep&&l.isDescendantOf(e))||(i[l.id]=l)),i}),{});if(e.isEdge()){if(n){const t=e.getSourceCell();t&&t.isNode()&&!i[t.id]&&(i[t.id]=t)}if(r){const t=e.getTargetCell();t&&t.isNode()&&!i[t.id]&&(i[t.id]=t)}}return Object.keys(i).map((e=>i[e]))}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(),o=e.getTargetCell();return!(!r||!n||n.id!==t.id)||!(!i||!o||o.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}isSuccessor(e,t,n={}){let r=!1;return this.search(e,((i,o)=>{if(i===t&&i!==e&&this.matchDistance(o,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}isPredecessor(e,t,n={}){let r=!1;return this.search(e,((i,o)=>{if(i===t&&i!==e&&this.matchDistance(o,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)}getCommonAncestor(...e){const t=[];return e.forEach((e=>{e&&(Array.isArray(e)?t.push(...e):t.push(e))})),TI.getCommonAncestor(...t)}getSubGraph(e,t={}){const n=[],r={},i=[],o=[],a=e=>{r[e.id]||(n.push(e),r[e.id]=e,e.isEdge()&&o.push(e),e.isNode()&&i.push(e))};return e.forEach((e=>{if(a(e),t.deep){e.getDescendants({deep:!0}).forEach((e=>a(e)))}})),o.forEach((e=>{const t=e.getSourceCell(),o=e.getTargetCell();t&&!r[t.id]&&(n.push(t),r[t.id]=t,t.isNode()&&i.push(t)),o&&!r[o.id]&&(n.push(o),r[o.id]=o,o.isNode()&&i.push(o))})),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}cloneSubGraph(e,t={}){const n=this.getSubGraph(e,t);return this.cloneCells(n)}cloneCells(e){return TI.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 o="number"==typeof e?new nO(e,t,n,r):nO.create(e),a="number"==typeof e?i:t,s=a&&a.strict;return this.getNodes().filter((e=>{const t=e.getBBox();return s?o.containsRect(t):o.isIntersectWithRect(t)}))}getEdgesInArea(e,t,n,r,i){const o="number"==typeof e?new nO(e,t,n,r):nO.create(e),a="number"==typeof e?i:t,s=a&&a.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?o.containsRect(t):o.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)))}getAllCellsBBox(){return this.getCellsBBox(this.getCells())}getCellsBBox(e,t={}){return TI.getCellsBBox(e,t)}search(e,t,n={}){n.breadthFirst?this.breadthFirstSearch(e,t,n):this.depthFirstSearch(e,t,n)}breadthFirstSearch(e,t,n={}){const r=[],i={},o={};for(r.push(e),o[e.id]=0;r.length>0;){const e=r.shift();if(null==e||i[e.id])continue;if(i[e.id]=!0,!1===XT(t,this,e,o[e.id]))continue;this.getNeighbors(e,n).forEach((t=>{o[t.id]=o[e.id]+1,r.push(t)}))}}depthFirstSearch(e,t,n={}){const r=[],i={},o={};for(r.push(e),o[e.id]=0;r.length>0;){const e=r.pop();if(null==e||i[e.id])continue;if(i[e.id]=!0,!1===XT(t,this,e,o[e.id]))continue;const a=this.getNeighbors(e,n),s=r.length;a.forEach((t=>{o[t.id]=o[e.id]+1,r.splice(s,0,t)}))}}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,o=hN.run(r,i,n.weight),a=[];let s="string"==typeof t?t:t.id;for(o[s]&&a.push(s);s=o[s];)a.unshift(s);return a}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 o=Math.max(e/i.width,0),a=Math.max(t/i.height,0),s=i.getOrigin();n.forEach((e=>e.scale(o,a,s,r)))}return this}toJSON(e={}){return GI.toJSON(this.getCells(),e)}parseJSON(e){return GI.fromJSON(e)}fromJSON(e,t={}){const n=this.parseJSON(e);return this.resetCells(n,t),this}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))}}!function(e){e.toStringTag=`X6.${e.name}`,e.isModel=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"==typeof r.addNode&&"function"==typeof r.addEdge&&null!=r.collection}}(GI||(GI={})),function(e){e.toJSON=function(e,t={}){return{cells:e.map((e=>e.toJSON(t)))}},e.fromJSON=function(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(LI.registry.exist(t))return LI.create(e);if(YI.registry.exist(t))return YI.create(e)}throw new Error("The `shape` should be specified when creating a node/edge instance")}))}}(GI||(GI={}));const $I=".text-block-content",KI=PI("text-block");class JI extends LI{get content(){return this.getContent()}set content(e){this.setContent(e)}getContent(){return this.store.get("content","")}setContent(e,t={}){this.store.set("content",e,t)}setup(){super.setup(),this.store.on("change:*",(e=>{const t=e.key;"content"===t?this.updateContent(this.getContent()):"size"===t&&this.updateSize(this.getSize())})),this.updateSize(this.getSize()),this.updateContent(this.getContent())}updateSize(e){db.SUPPORT_FOREIGNOBJECT&&this.setAttrs({foreignObject:Object.assign({},e),[$I]:{style:Object.assign({},e)}})}updateContent(e){db.SUPPORT_FOREIGNOBJECT?this.setAttrs({[$I]:{html:e?jT(e):""}}):this.setAttrs({[$I]:{text:e}})}}!function(e){e.config({type:KI,view:KI,markup:['<g class="rotatable">','<g class="scalable"><rect/></g>',db.SUPPORT_FOREIGNOBJECT?["<foreignObject>",'<body xmlns="http://www.w3.org/1999/xhtml">',`<div class="${$I.substr(1)}" />`,"</body>","</foreignObject>"].join(""):`<text class="${$I.substr(1)}"/>`,"</g>"].join(""),attrs:{".":{fill:"#ffffff",stroke:"none"},rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000",fontSize:14,fontFamily:"Arial, helvetica, sans-serif"},body:{style:{background:"transparent",position:"static",margin:0,padding:0}},foreignObject:{style:{overflow:"hidden"}},[$I]:{refX:.5,refY:.5,yAlign:"middle",xAlign:"middle",style:{textAlign:"center",verticalAlign:"middle",display:"table-cell",padding:"0 5px",margin:0}}}}),LI.registry.register(KI,e)}(JI||(JI={})),function(e){const t="content";class n extends qI{confirmUpdate(e,n={}){let r=super.confirmUpdate(e,n);return this.hasAction(r,t)&&(this.updateContent(),r=this.removeAction(r,t)),r}update(e){if(db.SUPPORT_FOREIGNOBJECT)super.update(e);else{const t=this.cell,n=Object.assign({},e||t.getAttrs());delete n[$I],super.update(n),e&&!FE(e,$I)||this.updateContent(e)}}updateContent(e){if(db.SUPPORT_FOREIGNOBJECT)super.update(e);else{const t=this.cell,n=(e||t.getAttrs())[$I],r=LO(t.getContent(),t.getSize(),n,{svgDocument:this.graph.view.svg}),i={[$I]:CC({},n,{text:r})};super.update(i)}}}e.View=n,function(e){e.config({bootstrap:["render",t],actions:db.SUPPORT_FOREIGNOBJECT?{}:{size:t,content:t}}),qI.registry.register(KI,e)}(n=e.View||(e.View={}))}(JI||(JI={}));DI.define({shape:"empty"});function XI(e,t="body"){return[{tagName:e,selector:t},{tagName:"text",selector:"label"}]}function ZI(e,t,n={}){const r={constructorName:e,markup:XI(e,n.selector),attrs:{[e]:Object.assign({},DI.bodyAttr)}};return(n.parent||DI).define(CC(r,t,{shape:e}))}ZI("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}}),LI.define({shape:"rect-headered",markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}],attrs:{body:Object.assign(Object.assign({},DI.bodyAttr),{refWidth:"100%",refHeight:"100%"}),header:Object.assign(Object.assign({},DI.bodyAttr),{refWidth:"100%",height:30,stroke:"#000000"}),headerText:Object.assign(Object.assign({},DI.labelAttr),{refX:"50%",refY:15,fontSize:16}),bodyText:Object.assign(Object.assign({},DI.labelAttr),{refY2:15})}}),ZI("circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%"}}}),DI.define({shape:"cylinder",overwrite:!0,markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],attrs:{body:Object.assign(Object.assign({},DI.bodyAttr),{lateral:10}),top:Object.assign(Object.assign({},DI.bodyAttr),{refCx:"50%",refRx:"50%",cy:10,ry:10})},attrHooks:{lateral:{set(e,{refBBox:t}){const n=YT(e);n&&(e=parseFloat(e)/100);const r=t.x,i=t.y,o=t.width,a=t.height,s=n?a*e:e,l=.551784,c=l*(o/2),u=l*s,d=r+o/2,h=r+o,f=i+s,p=f-s,g=i+a-s,m=i+a;return{d:["M",r,f,"L",r,g,"C",r,g+u,d-c,m,d,m,"C",d+c,m,h,g+u,h,g,"L",h,f,"C",h,f-u,d+c,p,d,p,"C",d-c,p,r,f-u,r,f,"Z"].join(" ")}}}},knob:{enabled:!0,position({node:e}){return{x:0,y:e.attr("body/lateral")}},onMouseMove({node:e,data:t,deltaY:n}){if(0!==n){const r=e.getBBox(),i=e.attr("body/lateral");null==t.round&&(t.round=i);const o=0,a=r.height/2,s=zT(t.round+n,o,a);s!==i&&e.attr({body:{lateral:s},top:{cy:s,ry:s}})}}}}),ZI("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}});var QI=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};class ej extends DI{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",ej.pointsToString(e),t),this}removePoints(){return this.removeAttrByPath("body/refPoints"),this}}!function(e){function t(e){return"string"==typeof e?e:e.map((e=>Array.isArray(e)?e.join(","):tO.isPointLike(e)?`${e.x}, ${e.y}`:"")).join(" ")}e.pointsToString=t,e.config({propHooks(e){const{points:n}=e,r=QI(e,["points"]);if(n){const e=t(n);e&&yk(r,"attrs/body/refPoints",e)}return r}})}(ej||(ej={}));ZI("polygon",{},{parent:ej}),ZI("polyline",{},{parent:ej});var tj=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};DI.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=tj(e,["path"]);return t&&yk(n,"attrs/body/refD",t),n}});var nj=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};DI.define({shape:"text-block",markup:[{tagName:"rect",selector:"body"},db.SUPPORT_FOREIGNOBJECT?{tagName:"foreignObject",selector:"foreignObject",children:[{tagName:"div",ns:dM.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({},DI.bodyAttr),{refWidth:"100%",refHeight:"100%"}),foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}},propHooks(e){const{text:t}=e,n=nj(e,["text"]);return t&&yk(n,"attrs/label/text",t),n},attrHooks:{text:{set(e,{cell:t,view:n,refBBox:r,elem:i,attrs:o}){if(!(i instanceof HTMLElement)){const a=o.style||{},s={text:e,width:-5,height:"100%"},l=Object.assign({textVerticalAnchor:"middle"},a);return XT(WA.presets.textWrap.set,this,s,{cell:t,view:n,elem:i,refBBox:r,attrs:l}),{fill:a.color||null}}i.textContent=e},position(e,{refBBox:t,elem:n}){if(n instanceof SVGElement)return t.getCenter()}}}}),ZI("image",{attrs:{image:{refWidth:"100%",refHeight:"100%"}},propHooks:II()},{selector:"image"}),ZI("image-bordered",{markup:[{tagName:"rect",selector:"background",attrs:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attrs:{fill:"none"}},{tagName:"text",selector:"label"}],attrs:{background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#ffffff"},border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},image:{refWidth:-1,refHeight:-1,x:.5,y:.5}},propHooks:II()}),ZI("image-embedded",{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}],attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"}},propHooks:II()}),ZI("image-inscribed",{propHooks:II(),markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attrs:{fill:"none"}},{tagName:"text",selector:"label"}],attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#ffffff"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"}}});const rj=YI.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"}}});YI.define({shape:"shadow-edge",markup:[{tagName:"path",selector:"shadow",attrs:{fill:"none"}},{tagName:"path",selector:"line",attrs:{fill:"none",cursor:"pointer"}}],attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{name:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z",offsetX:-5},sourceMarker:{name:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z",offsetX:-5}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{name:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none",offsetX:-5},sourceMarker:{name:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z",offsetX:-5}}}}),YI.define({shape:"double-edge",markup:[{tagName:"path",selector:"outline",attrs:{fill:"none"}},{tagName:"path",selector:"line",attrs:{fill:"none",cursor:"pointer"}}],attrs:{line:{connection:!0,stroke:"#dddddd",strokeWidth:4,strokeLinejoin:"round",targetMarker:{tagName:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}});class ij extends DI{get html(){return this.getHTML()}set html(e){this.setHTML(e)}getHTML(){return this.store.get("html")}setHTML(e,t={}){return null==e?this.removeHTML(t):this.store.set("html",e,t),this}removeHTML(e={}){return this.store.remove("html",e)}}!function(e){class t extends qI{init(){super.init(),this.cell.on("change:*",(()=>{this.graph.hook.shouldUpdateHTMLComponent(this.cell)&&this.renderHTMLComponent()}))}confirmUpdate(e){const n=super.confirmUpdate(e);return this.handleAction(n,t.action,(()=>this.renderHTMLComponent()))}renderHTMLComponent(){const e=this.selectors.foContent;if(e){const t=this.$(e).empty(),n=this.graph.hook.getHTMLComponent(this.cell);n&&("string"==typeof n?t.html(n):t.append(n))}}}e.View=t,function(e){e.action="html",e.config({bootstrap:[e.action],actions:{html:e.action}}),qI.registry.register("html-view",e)}(t=e.View||(e.View={}))}(ij||(ij={})),function(e){e.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},TN.getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),LI.registry.register("html",e)}(ij||(ij={})),function(e){e.componentRegistry=gL.create({type:"html componnet"})}(ij||(ij={}));var oj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class aj extends dN{constructor(e){super(),this.delay=10,this.throttle=2,this.threshold=5,this.changeCount=0,this.timestamp=0,this.options=Object.assign(Object.assign({},aj.defaultOptions),e),this.graph.model.on("cell:change:*",this.onModelChanged,this)}get graph(){return this.options.graph}onModelChanged(){if(this.disabled)return;const e=((new Date).getTime()-this.timestamp)/1e3;e>this.delay||this.changeCount>=this.threshold&&e>this.throttle?(this.save(),this.reset()):this.changeCount+=1}save(){this.trigger("save")}reset(){this.changeCount=0,this.timestamp=(new Date).getTime()}dispose(){this.graph.model.off("cell:change:*",this.onModelChanged,this)}}oj([dN.dispose()],aj.prototype,"dispose",null),function(e){e.defaultOptions={delay:10,throttle:2,threshold:5}}(aj||(aj={}));class sj extends lN{constructor(e){super(),this.graph=e,this.init()}get options(){return this.graph.options}get model(){return this.graph.model}get view(){return this.graph.view}init(){}}var lj,cj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class uj extends wN{constructor(e){super(),this.graph=e;const{selectors:t,fragment:n}=TN.parseJSONMarkup(uj.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=uj.snapshoot(this.container),this.$(this.container).addClass(this.prefixClassName("graph")).append(n),this.delegateEvents()}get model(){return this.graph.model}get options(){return this.graph.options}delegateEvents(){const e=this.constructor;return super.delegateEvents(e.events),this}guard(e,t){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&&TI.isCell(t.cell))&&(this.svg!==e.target&&this.container!==e.target&&!$y().contains(this.svg,e.target))))}findView(e){return this.graph.renderer.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,t){let n=this.options.preventDefaultContextMenu;return"function"==typeof n&&(n=XT(n,this.graph,{view:t})),n}onContextMenu(e){const t=this.normalizeEvent(e),n=this.findView(t.target);if(this.isPreventDefaultContextMenu(t,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&&t.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)&&t.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),o=t.currentView;o?o.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;r?r.onMouseUp(t,n.x,n.y):this.graph.trigger("blank:mouseup",{e:t,x:n.x,y:n.y}),e.isPropagationStopped()||this.onClick($y().Event(e,{type:"click",data:e.data})),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{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.renderer.findViewByElem(t.relatedTarget);if(n){if(r===n)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.renderer.findViewByElem(t.relatedTarget);if(n){if(r===n)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),o=Math.max(-1,Math.min(1,r.wheelDelta||-r.detail));n?n.onMouseWheel(t,i.x,i.y,o):this.graph.trigger("blank:mousewheel",{e:t,delta:o,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 o=this.graph.snapToGrid(i.clientX,i.clientY);XT(t,this.graph,r,i,n,o.x,o.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.normalizeEvent(e),n=this.findView(t.target);this.isPreventDefaultContextMenu(t,n)&&t.preventDefault(),this.handleMagnetEvent(t,((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(){return!1}dispose(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=()=>{}}}cj([wN.dispose()],uj.prototype,"dispose",null),function(e){const t=`${vD.prefixCls}-graph`;e.markup=[{ns:dM.xhtml,tagName:"div",selector:"background",className:`${t}-background`},{ns:dM.xhtml,tagName:"div",selector:"grid",className:`${t}-grid`},{ns:dM.svg,tagName:"svg",selector:"svg",className:`${t}-svg`,attrs:{width:"100%",height:"100%","xmlns:xlink":dM.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:`${t}-svg-viewport`,children:[{tagName:"g",selector:"primer",className:`${t}-svg-primer`},{tagName:"g",selector:"stage",className:`${t}-svg-stage`},{tagName:"g",selector:"decorator",className:`${t}-svg-decorator`},{tagName:"g",selector:"overlay",className:`${t}-svg-overlay`}]}]}],e.snapshoot=function(e){const t=e.cloneNode();return e.childNodes.forEach((e=>t.appendChild(e))),()=>{for(EM(e);e.attributes.length>0;)e.removeAttribute(e.attributes[0].name);for(let n=0,r=t.attributes.length;n<r;n+=1){const r=t.attributes[n];e.setAttribute(r.name,r.value)}t.childNodes.forEach((t=>e.appendChild(t)))}}}(uj||(uj={})),function(e){const t=vD.prefixCls;e.events={dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onMouseDown",mousedown:"onMouseDown",mouseover:"onMouseOver",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousewheel:"onMouseWheel",DOMMouseScroll:"onMouseWheel",[`mouseenter .${t}-cell`]:"onMouseEnter",[`mouseleave .${t}-cell`]:"onMouseLeave",[`mouseenter .${t}-cell-tools`]:"onMouseEnter",[`mouseleave .${t}-cell-tools`]:"onMouseLeave",[`mousedown .${t}-cell [event]`]:"onCustomEvent",[`touchstart .${t}-cell [event]`]:"onCustomEvent",[`mousedown .${t}-cell [data-event]`]:"onCustomEvent",[`touchstart .${t}-cell [data-event]`]:"onCustomEvent",[`dblclick .${t}-cell [magnet]`]:"onMagnetDblClick",[`contextmenu .${t}-cell [magnet]`]:"onMagnetContextMenu",[`mousedown .${t}-cell [magnet]`]:"onMagnetMouseDown",[`touchstart .${t}-cell [magnet]`]:"onMagnetMouseDown",[`dblclick .${t}-cell [data-magnet]`]:"onMagnetDblClick",[`contextmenu .${t}-cell [data-magnet]`]:"onMagnetContextMenu",[`mousedown .${t}-cell [data-magnet]`]:"onMagnetMouseDown",[`touchstart .${t}-cell [data-magnet]`]:"onMagnetMouseDown",[`dragstart .${t}-cell image`]:"onImageDragStart",[`mousedown .${t}-edge .${t}-edge-label`]:"onLabelMouseDown",[`touchstart .${t}-edge .${t}-edge-label`]:"onLabelMouseDown"},e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}}(uj||(uj={})),function(e){e.checkScroller=function(e,t){return(n,r,i)=>{const o=i.value;i.value=function(...n){if(null==this.scroller.widget){const n=`Shoule enable scroller to use method '${r}'`;if(!1!==e)throw console.error(n),new Error(n);return!1!==t&&console.warn(n),this}return o.call(this,...n)}}}}(lj||(lj={}));var dj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class hj extends sj{init(){vD.autoInsertCSS&&hj.ensure()}dispose(){hj.clean()}}dj([hj.dispose()],hj.prototype,"dispose",null),function(e){let t,n=0;e.ensure=function(){if(n+=1,!(n>1||db.isApplyingHMR())){t=document.createElement("style"),t.setAttribute("type","text/css"),t.textContent=".x6-graph {\n position: relative;\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@keyframes halo-pie-visibility {\n 0% {\n visibility: hidden;\n }\n 100% {\n visibility: visible;\n }\n}\n@keyframes halo-pie-opening {\n 0% {\n transform: scale(0.4) rotate(-20deg);\n }\n 100% {\n transform: scale(1) rotate(0);\n }\n}\n.x6-widget-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: 0 0;\n background-size: 20px 20px;\n cursor: pointer;\n user-select: none;\n pointer-events: auto;\n -webkit-user-drag: none;\n user-drag: none;\n /* stylelint-disable-line */\n}\n.x6-widget-handle.hidden {\n display: none;\n}\n.x6-widget-handle-selected {\n background-color: rgba(0, 0, 0, 0.1);\n border-radius: 3px;\n}\n.x6-widget-handle-remove {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15.386%2C3.365c-3.315-3.314-8.707-3.313-12.021%2C0c-3.314%2C3.315-3.314%2C8.706%2C0%2C12.02%20c3.314%2C3.314%2C8.707%2C3.314%2C12.021%2C0S18.699%2C6.68%2C15.386%2C3.365L15.386%2C3.365z%20M4.152%2C14.598C1.273%2C11.719%2C1.273%2C7.035%2C4.153%2C4.154%20c2.88-2.88%2C7.563-2.88%2C10.443%2C0c2.881%2C2.88%2C2.881%2C7.562%2C0%2C10.443C11.716%2C17.477%2C7.032%2C17.477%2C4.152%2C14.598L4.152%2C14.598z%22%2F%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.157%2C11.371L7.38%2C6.593C7.162%2C6.375%2C6.809%2C6.375%2C6.592%2C6.592c-0.218%2C0.219-0.218%2C0.572%2C0%2C0.79%20l4.776%2C4.776c0.218%2C0.219%2C0.571%2C0.219%2C0.79%2C0C12.375%2C11.941%2C12.375%2C11.588%2C12.157%2C11.371L12.157%2C11.371z%22%2F%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M11.369%2C6.593l-4.777%2C4.778c-0.217%2C0.217-0.217%2C0.568%2C0%2C0.787c0.219%2C0.219%2C0.571%2C0.217%2C0.788%2C0l4.777-4.777%20c0.218-0.218%2C0.218-0.571%2C0.001-0.789C11.939%2C6.375%2C11.587%2C6.375%2C11.369%2C6.593L11.369%2C6.593z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: pointer;\n}\n.x6-widget-handle-remove:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15.386%2C3.365c-3.315-3.314-8.707-3.313-12.021%2C0c-3.314%2C3.315-3.314%2C8.706%2C0%2C12.02%20c3.314%2C3.314%2C8.707%2C3.314%2C12.021%2C0S18.699%2C6.68%2C15.386%2C3.365L15.386%2C3.365z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M12.157%2C11.371L7.38%2C6.593C7.162%2C6.375%2C6.809%2C6.375%2C6.592%2C6.592c-0.218%2C0.219-0.218%2C0.572%2C0%2C0.79%20l4.776%2C4.776c0.218%2C0.219%2C0.571%2C0.219%2C0.79%2C0C12.375%2C11.941%2C12.375%2C11.588%2C12.157%2C11.371L12.157%2C11.371z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M11.369%2C6.593l-4.777%2C4.778c-0.217%2C0.217-0.217%2C0.568%2C0%2C0.787c0.219%2C0.219%2C0.571%2C0.217%2C0.788%2C0l4.777-4.777%20c0.218-0.218%2C0.218-0.571%2C0.001-0.789C11.939%2C6.375%2C11.587%2C6.375%2C11.369%2C6.593L11.369%2C6.593z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-rotate {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M9.374%2C17.592c-4.176%2C0-7.57-3.401-7.57-7.575c0-4.175%2C3.395-7.574%2C7.57-7.574c0.28%2C0%2C0.56%2C0.018%2C0.837%2C0.05%20V1.268c0-0.158%2C0.099-0.3%2C0.239-0.36c0.151-0.058%2C0.315-0.026%2C0.428%2C0.086l2.683%2C2.688c0.152%2C0.154%2C0.152%2C0.399%2C0%2C0.553l-2.68%2C2.693%20c-0.115%2C0.112-0.279%2C0.147-0.431%2C0.087c-0.141-0.063-0.239-0.205-0.239-0.361V5.296C9.934%2C5.243%2C9.654%2C5.22%2C9.374%2C5.22%20c-2.646%2C0-4.796%2C2.152-4.796%2C4.797s2.154%2C4.798%2C4.796%2C4.798c2.645%2C0%2C4.798-2.153%2C4.798-4.798c0-0.214%2C0.174-0.391%2C0.391-0.391h1.991%20c0.217%2C0%2C0.394%2C0.177%2C0.394%2C0.391C16.947%2C14.19%2C13.549%2C17.592%2C9.374%2C17.592L9.374%2C17.592z%20M9.374%2C17.592%22%2F%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-rotate:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M9.374%2C17.592c-4.176%2C0-7.57-3.401-7.57-7.575c0-4.175%2C3.395-7.574%2C7.57-7.574c0.28%2C0%2C0.56%2C0.018%2C0.837%2C0.05%20V1.268c0-0.158%2C0.099-0.3%2C0.239-0.36c0.151-0.058%2C0.315-0.026%2C0.428%2C0.086l2.683%2C2.688c0.152%2C0.154%2C0.152%2C0.399%2C0%2C0.553l-2.68%2C2.693%20c-0.115%2C0.112-0.279%2C0.147-0.431%2C0.087c-0.141-0.063-0.239-0.205-0.239-0.361V5.296C9.934%2C5.243%2C9.654%2C5.22%2C9.374%2C5.22%20c-2.646%2C0-4.796%2C2.152-4.796%2C4.797s2.154%2C4.798%2C4.796%2C4.798c2.645%2C0%2C4.798-2.153%2C4.798-4.798c0-0.214%2C0.174-0.391%2C0.391-0.391h1.991%20c0.217%2C0%2C0.394%2C0.177%2C0.394%2C0.391C16.947%2C14.19%2C13.549%2C17.592%2C9.374%2C17.592L9.374%2C17.592z%20M9.374%2C17.592%22%2F%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-resize {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20height%3D%2224px%22%20version%3D%221.1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%2F%3E%3Cdesc%2F%3E%3Cdefs%2F%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20id%3D%22miu%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%3E%3Cg%20id%3D%22Artboard-1%22%20transform%3D%22translate(-251.000000%2C%20-443.000000)%22%3E%3Cg%20id%3D%22slice%22%20transform%3D%22translate(215.000000%2C%20119.000000)%22%2F%3E%3Cpath%20d%3D%22M252%2C448%20L256%2C448%20L256%2C444%20L252%2C444%20L252%2C448%20Z%20M257%2C448%20L269%2C448%20L269%2C446%20L257%2C446%20L257%2C448%20Z%20M257%2C464%20L269%2C464%20L269%2C462%20L257%2C462%20L257%2C464%20Z%20M270%2C444%20L270%2C448%20L274%2C448%20L274%2C444%20L270%2C444%20Z%20M252%2C462%20L252%2C466%20L256%2C466%20L256%2C462%20L252%2C462%20Z%20M270%2C462%20L270%2C466%20L274%2C466%20L274%2C462%20L270%2C462%20Z%20M254%2C461%20L256%2C461%20L256%2C449%20L254%2C449%20L254%2C461%20Z%20M270%2C461%20L272%2C461%20L272%2C449%20L270%2C449%20L270%2C461%20Z%22%20fill%3D%22%236A6C8A%22%20id%3D%22editor-crop-glyph%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n cursor: se-resize;\n}\n.x6-widget-handle-resize:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20height%3D%2224px%22%20version%3D%221.1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%2F%3E%3Cdesc%2F%3E%3Cdefs%2F%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20id%3D%22miu%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%3E%3Cg%20id%3D%22Artboard-1%22%20transform%3D%22translate(-251.000000%2C%20-443.000000)%22%3E%3Cg%20id%3D%22slice%22%20transform%3D%22translate(215.000000%2C%20119.000000)%22%2F%3E%3Cpath%20d%3D%22M252%2C448%20L256%2C448%20L256%2C444%20L252%2C444%20L252%2C448%20Z%20M257%2C448%20L269%2C448%20L269%2C446%20L257%2C446%20L257%2C448%20Z%20M257%2C464%20L269%2C464%20L269%2C462%20L257%2C462%20L257%2C464%20Z%20M270%2C444%20L270%2C448%20L274%2C448%20L274%2C444%20L270%2C444%20Z%20M252%2C462%20L252%2C466%20L256%2C466%20L256%2C462%20L252%2C462%20Z%20M270%2C462%20L270%2C466%20L274%2C466%20L274%2C462%20L270%2C462%20Z%20M254%2C461%20L256%2C461%20L256%2C449%20L254%2C449%20L254%2C461%20Z%20M270%2C461%20L272%2C461%20L272%2C449%20L270%2C449%20L270%2C461%20Z%22%20fill%3D%22%23FD6EB6%22%20id%3D%22editor-crop-glyph%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n}\n.x6-widget-handle-clone {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.852%2C0.875h-9.27c-0.853%2C0-1.547%2C0.694-1.547%2C1.547v10.816h1.547V2.422h9.27V0.875z%20M15.172%2C3.965h-8.5%20c-0.849%2C0-1.547%2C0.698-1.547%2C1.547v10.816c0%2C0.849%2C0.698%2C1.547%2C1.547%2C1.547h8.5c0.85%2C0%2C1.543-0.698%2C1.543-1.547V5.512%20C16.715%2C4.663%2C16.021%2C3.965%2C15.172%2C3.965L15.172%2C3.965z%20M15.172%2C16.328h-8.5V5.512h8.5V16.328z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-clone:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M12.852%2C0.875h-9.27c-0.853%2C0-1.547%2C0.694-1.547%2C1.547v10.816h1.547V2.422h9.27V0.875z%20M15.172%2C3.965h-8.5%20c-0.849%2C0-1.547%2C0.698-1.547%2C1.547v10.816c0%2C0.849%2C0.698%2C1.547%2C1.547%2C1.547h8.5c0.849%2C0%2C1.543-0.698%2C1.543-1.547V5.512%20C16.715%2C4.663%2C16.021%2C3.965%2C15.172%2C3.965L15.172%2C3.965z%20M15.172%2C16.328h-8.5V5.512h8.5V16.328z%20M15.172%2C16.328%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-link {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M9.884%2C9.838c0.54-0.551%2C1.005-0.955%2C1.384-1.201c0.463-0.308%2C0.749-0.352%2C0.887-0.352h1.34v1.367%20c0%2C0.104%2C0.061%2C0.2%2C0.154%2C0.242s0.204%2C0.027%2C0.284-0.038l3.168-2.669c0.06-0.051%2C0.096-0.125%2C0.096-0.203S17.16%2C6.83%2C17.101%2C6.781%20l-3.168-2.677c-0.08-0.067-0.19-0.081-0.284-0.038c-0.094%2C0.045-0.154%2C0.139-0.154%2C0.242v1.414h-1.343%20c-1.24%2C0.014-2.215%2C0.67-2.927%2C1.242c-0.797%2C0.65-1.533%2C1.447-2.245%2C2.217c-0.361%2C0.391-0.7%2C0.759-1.044%2C1.1%20c-0.541%2C0.549-1.011%2C0.951-1.395%2C1.199c-0.354%2C0.231-0.678%2C0.357-0.921%2C0.357h-1.8c-0.146%2C0-0.266%2C0.12-0.266%2C0.265v2.029%20c0%2C0.148%2C0.12%2C0.268%2C0.266%2C0.268h1.8l0%2C0c1.255-0.014%2C2.239-0.667%2C2.958-1.24c0.82-0.661%2C1.572-1.475%2C2.297-2.256%20C9.225%2C10.524%2C9.555%2C10.169%2C9.884%2C9.838z%22%2F%3E%3C%2Fsvg%3E%20');\n cursor: move;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}\n.x6-widget-handle-link:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M9.884%2C9.838c0.54-0.551%2C1.005-0.955%2C1.384-1.201c0.463-0.308%2C0.749-0.352%2C0.887-0.352h1.34v1.367%20c0%2C0.104%2C0.061%2C0.2%2C0.154%2C0.242s0.204%2C0.027%2C0.284-0.038l3.168-2.669c0.06-0.051%2C0.096-0.125%2C0.096-0.203S17.16%2C6.83%2C17.101%2C6.781%20l-3.168-2.677c-0.08-0.067-0.19-0.081-0.284-0.038c-0.094%2C0.045-0.154%2C0.139-0.154%2C0.242v1.414h-1.343%20c-1.24%2C0.014-2.215%2C0.67-2.927%2C1.242c-0.797%2C0.65-1.533%2C1.447-2.245%2C2.217c-0.361%2C0.391-0.7%2C0.759-1.044%2C1.1%20c-0.541%2C0.549-1.011%2C0.951-1.395%2C1.199c-0.354%2C0.231-0.678%2C0.357-0.921%2C0.357h-1.8c-0.146%2C0-0.266%2C0.12-0.266%2C0.265v2.029%20c0%2C0.148%2C0.12%2C0.268%2C0.266%2C0.268h1.8l0%2C0c1.255-0.014%2C2.239-0.667%2C2.958-1.24c0.82-0.661%2C1.572-1.475%2C2.297-2.256%20C9.225%2C10.524%2C9.555%2C10.169%2C9.884%2C9.838z%22%2F%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-fork {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%236A6C8A%22%20d%3D%22M13.307%2C11.593c-0.69%2C0-1.299%2C0.33-1.693%2C0.835l-4.136-2.387%20C7.552%2C9.82%2C7.602%2C9.589%2C7.602%2C9.344c0-0.25-0.051-0.487-0.129-0.71l4.097-2.364c0.393%2C0.536%2C1.022%2C0.888%2C1.737%2C0.888%20c1.193%2C0%2C2.16-0.967%2C2.16-2.159s-0.967-2.159-2.16-2.159c-1.191%2C0-2.158%2C0.967-2.158%2C2.159c0%2C0.076%2C0.014%2C0.149%2C0.021%2C0.223%20L6.848%2C7.716C6.469%2C7.39%2C5.982%2C7.185%2C5.442%2C7.185c-1.191%2C0-2.158%2C0.967-2.158%2C2.159s0.967%2C2.159%2C2.158%2C2.159%20c0.545%2C0%2C1.037-0.208%2C1.417-0.541l4.319%2C2.493c-0.014%2C0.098-0.029%2C0.194-0.029%2C0.296c0%2C1.193%2C0.967%2C2.159%2C2.158%2C2.159%20c1.193%2C0%2C2.16-0.966%2C2.16-2.159C15.467%2C12.559%2C14.5%2C11.593%2C13.307%2C11.593z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n cursor: move;\n}\n.x6-widget-handle-fork:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FD6EB6%22%20d%3D%22M13.307%2C11.593c-0.69%2C0-1.299%2C0.33-1.693%2C0.835l-4.136-2.387%20c0.075-0.22%2C0.125-0.452%2C0.125-0.697c0-0.25-0.051-0.487-0.129-0.71l4.097-2.365c0.394%2C0.536%2C1.022%2C0.888%2C1.737%2C0.888%20c1.193%2C0%2C2.16-0.967%2C2.16-2.159s-0.967-2.159-2.16-2.159c-1.191%2C0-2.158%2C0.967-2.158%2C2.159c0%2C0.076%2C0.015%2C0.148%2C0.022%2C0.223%20L6.848%2C7.716C6.469%2C7.39%2C5.981%2C7.185%2C5.442%2C7.185c-1.191%2C0-2.158%2C0.967-2.158%2C2.159s0.967%2C2.159%2C2.158%2C2.159%20c0.545%2C0%2C1.037-0.208%2C1.417-0.541l4.319%2C2.493c-0.013%2C0.098-0.029%2C0.194-0.029%2C0.296c0%2C1.193%2C0.967%2C2.159%2C2.158%2C2.159%20c1.193%2C0%2C2.16-0.966%2C2.16-2.159C15.467%2C12.559%2C14.5%2C11.593%2C13.307%2C11.593z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-unlink {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.285%2C9.711l-2.104-0.302L9.243%2C8.568L6.669%2C7.095C6.948%2C6.6%2C6.995%2C6.026%2C6.845%2C5.474%20c-0.191-0.698-0.695-1.36-1.438-1.786C4.068%2C2.922%2C2.464%2C3.214%2C1.82%2C4.338C1.536%2C4.836%2C1.489%2C5.414%2C1.64%2C5.97%20c0.189%2C0.698%2C0.694%2C1.36%2C1.438%2C1.787c0.328%2C0.187%2C0.67%2C0.31%2C1.01%2C0.372c0.002%2C0%2C0.006%2C0.002%2C0.008%2C0.004%20c0.027%2C0.004%2C0.057%2C0.009%2C0.088%2C0.011c2.12%2C0.316%2C3.203%2C0.915%2C3.73%2C1.337c-0.527%2C0.424-1.61%2C1.021-3.731%2C1.339%20c-0.029%2C0.003-0.058%2C0.007-0.087%2C0.012c-0.002%2C0.002-0.004%2C0.002-0.007%2C0.003c-0.341%2C0.062-0.684%2C0.187-1.013%2C0.374%20c-0.74%2C0.425-1.246%2C1.089-1.437%2C1.787c-0.149%2C0.555-0.105%2C1.133%2C0.181%2C1.632c0.011%2C0.018%2C0.021%2C0.033%2C0.033%2C0.049l0.883%2C0.783%20c0.765%2C0.366%2C1.775%2C0.328%2C2.67-0.184c0.744-0.425%2C1.248-1.088%2C1.439-1.786c0.148-0.552%2C0.104-1.126-0.176-1.62l2.573-1.473%20c0.573%2C0.287%2C2.299%2C1.292%2C2.299%2C1.292s3.602%2C1.445%2C4.241%2C1.812c0.773%2C0.191%2C0.566-0.151%2C0.566-0.151L12.285%2C9.711z%20M5.571%2C6.482%20C5.279%2C6.993%2C4.425%2C7.076%2C3.705%2C6.664C3.282%2C6.424%2C2.966%2C6.039%2C2.856%2C5.64C2.81%2C5.464%2C2.778%2C5.203%2C2.917%2C4.963%20c0.291-0.51%2C1.146-0.593%2C1.866-0.182C5.21%2C5.027%2C5.521%2C5.4%2C5.632%2C5.807C5.679%2C5.98%2C5.708%2C6.242%2C5.571%2C6.482z%20M5.632%2C13.159%20c-0.111%2C0.406-0.422%2C0.778-0.848%2C1.025c-0.719%2C0.409-1.576%2C0.327-1.867-0.184c-0.137-0.239-0.106-0.499-0.06-0.676%20c0.108-0.398%2C0.426-0.781%2C0.847-1.022c0.72-0.412%2C1.574-0.329%2C1.866%2C0.181C5.708%2C12.723%2C5.679%2C12.983%2C5.632%2C13.159z%20M16.181%2C5.139%20c-0.448%2C0.258-4.435%2C1.9-4.435%2C1.9s-1.556%2C0.855-2.104%2C1.13l0.937%2C0.843l2.057-0.229l4.11-3.638%20C16.745%2C5.146%2C17.013%2C4.664%2C16.181%2C5.139z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-unlink:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M12.285%2C9.711l-2.104-0.302L9.243%2C8.568L6.669%2C7.095C6.948%2C6.6%2C6.995%2C6.026%2C6.845%2C5.474%20c-0.191-0.698-0.695-1.36-1.438-1.786C4.068%2C2.922%2C2.464%2C3.214%2C1.82%2C4.338C1.536%2C4.836%2C1.489%2C5.414%2C1.64%2C5.97%20c0.189%2C0.698%2C0.694%2C1.36%2C1.438%2C1.787c0.328%2C0.187%2C0.67%2C0.31%2C1.01%2C0.372c0.002%2C0%2C0.006%2C0.002%2C0.008%2C0.004%20c0.027%2C0.004%2C0.057%2C0.009%2C0.088%2C0.011c2.12%2C0.316%2C3.203%2C0.915%2C3.73%2C1.337c-0.527%2C0.424-1.61%2C1.021-3.731%2C1.339%20c-0.029%2C0.003-0.058%2C0.007-0.087%2C0.012c-0.002%2C0.002-0.004%2C0.002-0.007%2C0.003c-0.341%2C0.062-0.684%2C0.187-1.013%2C0.374%20c-0.74%2C0.425-1.246%2C1.089-1.437%2C1.787c-0.149%2C0.555-0.105%2C1.133%2C0.181%2C1.632c0.011%2C0.018%2C0.021%2C0.033%2C0.033%2C0.049l0.883%2C0.783%20c0.765%2C0.366%2C1.775%2C0.328%2C2.67-0.184c0.744-0.425%2C1.248-1.088%2C1.439-1.786c0.148-0.552%2C0.104-1.126-0.176-1.62l2.573-1.473%20c0.573%2C0.287%2C2.299%2C1.292%2C2.299%2C1.292s3.602%2C1.445%2C4.241%2C1.812c0.773%2C0.191%2C0.566-0.151%2C0.566-0.151L12.285%2C9.711z%20M5.571%2C6.482%20C5.279%2C6.993%2C4.425%2C7.076%2C3.705%2C6.664C3.282%2C6.424%2C2.966%2C6.039%2C2.856%2C5.64C2.81%2C5.464%2C2.778%2C5.203%2C2.917%2C4.963%20c0.291-0.51%2C1.146-0.593%2C1.866-0.182C5.21%2C5.027%2C5.521%2C5.4%2C5.632%2C5.807C5.679%2C5.98%2C5.708%2C6.242%2C5.571%2C6.482z%20M5.632%2C13.159%20c-0.111%2C0.406-0.422%2C0.778-0.848%2C1.025c-0.719%2C0.409-1.576%2C0.327-1.867-0.184c-0.137-0.239-0.106-0.499-0.06-0.676%20c0.108-0.398%2C0.426-0.781%2C0.847-1.022c0.72-0.412%2C1.574-0.329%2C1.866%2C0.181C5.708%2C12.723%2C5.679%2C12.983%2C5.632%2C13.159z%20M16.181%2C5.139%20c-0.448%2C0.258-4.435%2C1.9-4.435%2C1.9s-1.556%2C0.855-2.104%2C1.13l0.937%2C0.843l2.057-0.229l4.11-3.638%20C16.745%2C5.146%2C17.013%2C4.664%2C16.181%2C5.139z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-direction {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20%20PUBLIC%20'-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN'%20%20'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%236A6C8A%3Bstroke%3A%236A6C8A%3Bstroke-width%3A30%7D%0A%09.dot%7Bfill%3A%236A6C8A%3B%7D%0A%3C%2Fstyle%3E%3Cg%3E%3Cg%20id%3D%22XMLID_475_%22%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M133.1%2C277.1c1.8%2C0%2C3.7-0.6%2C5.4-1.7c4.1-3%2C5-8.7%2C2-12.8c-3-4.1-8.7-5-12.8-2c0%2C0%2C0%2C0%2C0%2C0%20%20%20%20%20c-4.1%2C3-5%2C8.7-2%2C12.8C127.5%2C275.8%2C130.3%2C277.1%2C133.1%2C277.1z%22%20id%3D%22XMLID_489_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M138.5%2C359.6c-4.1-3-9.8-2.1-12.8%2C2c-3%2C4.1-2.1%2C9.8%2C2%2C12.8c1.6%2C1.2%2C3.5%2C1.7%2C5.4%2C1.7%20%20%20%20%20c2.8%2C0%2C5.6-1.3%2C7.4-3.7C143.5%2C368.3%2C142.6%2C362.6%2C138.5%2C359.6z%22%20id%3D%22XMLID_726_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C327.7c-4.8%2C1.6-7.4%2C6.7-5.9%2C11.5c1.3%2C3.9%2C4.8%2C6.3%2C8.7%2C6.3c0.9%2C0%2C1.9-0.1%2C2.8-0.4%20%20%20%20%20c4.8-1.6%2C7.4-6.7%2C5.9-11.5C118%2C328.8%2C112.9%2C326.2%2C108.1%2C327.7z%22%20id%3D%22XMLID_776_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C307.3c0.9%2C0.3%2C1.9%2C0.4%2C2.8%2C0.4c3.8%2C0%2C7.4-2.4%2C8.7-6.3c1.6-4.8-1.1-9.9-5.9-11.5%20%20%20%20%20c-4.8-1.6-9.9%2C1.1-11.5%2C5.9C100.7%2C300.6%2C103.3%2C305.7%2C108.1%2C307.3z%22%20id%3D%22XMLID_777_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M169.2%2C265.4c2.4%2C0%2C4.7-1%2C6.5-2.6c1.7-1.7%2C2.7-4.1%2C2.7-6.5c0-2.4-1-4.8-2.7-6.5%20%20%20%20%20c-1.7-1.7-4.1-2.7-6.5-2.7s-4.7%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.5C164.4%2C264.4%2C166.8%2C265.4%2C169.2%2C265.4z%22%20id%3D%22XMLID_797_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M247.7%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C243.7%2C265.4%2C247.7%2C261.3%2C247.7%2C256.3z%22%20id%3D%22XMLID_798_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M213%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C208.9%2C265.4%2C213%2C261.3%2C213%2C256.3z%22%20id%3D%22XMLID_799_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M317.2%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C313.1%2C265.4%2C317.2%2C261.3%2C317.2%2C256.3z%22%20id%3D%22XMLID_800_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M282.5%2C256.3c0-5-4.1-9.1-9.1-9.1s-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20S282.5%2C261.3%2C282.5%2C256.3z%22%20id%3D%22XMLID_801_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M401.1%2C185.2c0.9%2C0%2C1.9-0.1%2C2.8-0.5c4.8-1.6%2C7.4-6.7%2C5.9-11.5c-1.6-4.8-6.7-7.4-11.5-5.8%20%20%20%20%20c-4.8%2C1.6-7.4%2C6.7-5.8%2C11.5C393.6%2C182.8%2C397.2%2C185.2%2C401.1%2C185.2z%22%20id%3D%22XMLID_802_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M403.9%2C205.2c-4.8-1.6-9.9%2C1-11.5%2C5.9l0%2C0c-1.6%2C4.8%2C1.1%2C9.9%2C5.9%2C11.5%20%20%20%20%20c0.9%2C0.3%2C1.9%2C0.5%2C2.8%2C0.5c3.9%2C0%2C7.4-2.5%2C8.7-6.3c0%2C0%2C0%2C0%2C0%2C0C411.3%2C211.9%2C408.7%2C206.8%2C403.9%2C205.2z%22%20id%3D%22XMLID_803_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C237.2L373.5%2C237.2c-4.1%2C3-5%2C8.7-2%2C12.8c1.8%2C2.4%2C4.6%2C3.7%2C7.4%2C3.7%20%20%20%20%20c1.8%2C0%2C3.7-0.6%2C5.4-1.8c4.1-3%2C4.9-8.7%2C2-12.8C383.3%2C235.1%2C377.6%2C234.2%2C373.5%2C237.2z%22%20id%3D%22XMLID_804_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C152.9c1.6%2C1.2%2C3.5%2C1.8%2C5.4%2C1.8c2.8%2C0%2C5.6-1.3%2C7.4-3.8c3-4.1%2C2.1-9.8-2-12.7%20%20%20%20%20c-4.1-3-9.8-2.1-12.7%2C2C368.5%2C144.2%2C369.4%2C149.9%2C373.5%2C152.9z%22%20id%3D%22XMLID_805_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M342.8%2C247.1c-2.4%2C0-4.8%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.4%20%20%20%20%20c1.7%2C1.7%2C4%2C2.7%2C6.5%2C2.7c2.4%2C0%2C4.7-1%2C6.5-2.7c1.7-1.7%2C2.7-4%2C2.7-6.4c0-2.4-1-4.8-2.7-6.5C347.6%2C248.1%2C345.2%2C247.1%2C342.8%2C247.1z%22%20id%3D%22XMLID_806_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M342.8%2C124.7H206.6l36.4-36.4c3.6-3.6%2C3.6-9.3%2C0-12.9c-3.6-3.6-9.3-3.6-12.9%2C0l-51.5%2C51.5%20%20%20%20%20c-1.9%2C1.9-2.8%2C4.4-2.7%2C6.9c-0.1%2C2.5%2C0.7%2C5%2C2.7%2C6.9l51.5%2C51.5c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7%20%20%20%20%20c3.6-3.6%2C3.6-9.3%2C0-12.9l-36.4-36.4h136.1c0%2C0%2C0.1%2C0%2C0.1%2C0c0.6%2C0%2C1.2-0.1%2C1.8-0.2c0.2%2C0%2C0.4-0.1%2C0.6-0.1c0.1%2C0%2C0.2%2C0%2C0.3-0.1%20%20%20%20%20c3.2-1%2C5.6-3.6%2C6.3-6.9c0.1-0.6%2C0.2-1.2%2C0.2-1.8c0-0.6-0.1-1.2-0.2-1.8C351%2C127.8%2C347.3%2C124.7%2C342.8%2C124.7z%22%20id%3D%22XMLID_807_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M322.1%2C371.3l-51.5-51.5c-3.6-3.6-9.3-3.6-12.9%2C0c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9l36.9%2C36.9H169.2%20%20%20%20%20c-2.8%2C0-5.4%2C1.3-7%2C3.3c-0.1%2C0.1-0.2%2C0.2-0.3%2C0.4c-0.1%2C0.1-0.2%2C0.2-0.2%2C0.3c-0.1%2C0.1-0.1%2C0.2-0.2%2C0.4c-0.1%2C0.1-0.2%2C0.3-0.2%2C0.4%20%20%20%20%20c0%2C0.1-0.1%2C0.2-0.1%2C0.2c-0.1%2C0.2-0.2%2C0.4-0.3%2C0.6c0%2C0%2C0%2C0%2C0%2C0.1c-0.4%2C1.1-0.7%2C2.2-0.7%2C3.4c0%2C1.5%2C0.4%2C2.9%2C1%2C4.2c0%2C0%2C0%2C0.1%2C0.1%2C0.1%20%20%20%20%20c0.1%2C0.1%2C0.1%2C0.2%2C0.2%2C0.3c0.4%2C0.7%2C0.9%2C1.3%2C1.4%2C1.8c0.4%2C0.4%2C0.7%2C0.7%2C1.2%2C1c0.1%2C0.1%2C0.1%2C0.1%2C0.2%2C0.2c0%2C0%2C0.1%2C0%2C0.1%2C0.1%20%20%20%20%20c1.4%2C0.9%2C3.1%2C1.5%2C5%2C1.5h124.4l-36%2C36c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7l51.5-51.5%20%20%20%20%20c1.9-1.9%2C2.8-4.4%2C2.7-6.9C324.8%2C375.7%2C324%2C373.2%2C322.1%2C371.3z%22%20id%3D%22XMLID_808_%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n.x6-widget-handle-direction:hover {\n background-image: url(\"data:image/svg+xml;charset=UTF-8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20%20PUBLIC%20'-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN'%20%20'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%23FD6EB6%3Bstroke%3A%23FD6EB6%3Bstroke-width%3A30%7D%0A%09.dot%7Bfill%3A%23FD6EB6%3B%7D%0A%3C%2Fstyle%3E%3Cg%3E%3Cg%20id%3D%22XMLID_475_%22%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M133.1%2C277.1c1.8%2C0%2C3.7-0.6%2C5.4-1.7c4.1-3%2C5-8.7%2C2-12.8c-3-4.1-8.7-5-12.8-2c0%2C0%2C0%2C0%2C0%2C0%20%20%20%20%20c-4.1%2C3-5%2C8.7-2%2C12.8C127.5%2C275.8%2C130.3%2C277.1%2C133.1%2C277.1z%22%20id%3D%22XMLID_489_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M138.5%2C359.6c-4.1-3-9.8-2.1-12.8%2C2c-3%2C4.1-2.1%2C9.8%2C2%2C12.8c1.6%2C1.2%2C3.5%2C1.7%2C5.4%2C1.7%20%20%20%20%20c2.8%2C0%2C5.6-1.3%2C7.4-3.7C143.5%2C368.3%2C142.6%2C362.6%2C138.5%2C359.6z%22%20id%3D%22XMLID_726_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C327.7c-4.8%2C1.6-7.4%2C6.7-5.9%2C11.5c1.3%2C3.9%2C4.8%2C6.3%2C8.7%2C6.3c0.9%2C0%2C1.9-0.1%2C2.8-0.4%20%20%20%20%20c4.8-1.6%2C7.4-6.7%2C5.9-11.5C118%2C328.8%2C112.9%2C326.2%2C108.1%2C327.7z%22%20id%3D%22XMLID_776_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C307.3c0.9%2C0.3%2C1.9%2C0.4%2C2.8%2C0.4c3.8%2C0%2C7.4-2.4%2C8.7-6.3c1.6-4.8-1.1-9.9-5.9-11.5%20%20%20%20%20c-4.8-1.6-9.9%2C1.1-11.5%2C5.9C100.7%2C300.6%2C103.3%2C305.7%2C108.1%2C307.3z%22%20id%3D%22XMLID_777_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M169.2%2C265.4c2.4%2C0%2C4.7-1%2C6.5-2.6c1.7-1.7%2C2.7-4.1%2C2.7-6.5c0-2.4-1-4.8-2.7-6.5%20%20%20%20%20c-1.7-1.7-4.1-2.7-6.5-2.7s-4.7%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.5C164.4%2C264.4%2C166.8%2C265.4%2C169.2%2C265.4z%22%20id%3D%22XMLID_797_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M247.7%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C243.7%2C265.4%2C247.7%2C261.3%2C247.7%2C256.3z%22%20id%3D%22XMLID_798_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M213%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C208.9%2C265.4%2C213%2C261.3%2C213%2C256.3z%22%20id%3D%22XMLID_799_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M317.2%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C313.1%2C265.4%2C317.2%2C261.3%2C317.2%2C256.3z%22%20id%3D%22XMLID_800_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M282.5%2C256.3c0-5-4.1-9.1-9.1-9.1s-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20S282.5%2C261.3%2C282.5%2C256.3z%22%20id%3D%22XMLID_801_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M401.1%2C185.2c0.9%2C0%2C1.9-0.1%2C2.8-0.5c4.8-1.6%2C7.4-6.7%2C5.9-11.5c-1.6-4.8-6.7-7.4-11.5-5.8%20%20%20%20%20c-4.8%2C1.6-7.4%2C6.7-5.8%2C11.5C393.6%2C182.8%2C397.2%2C185.2%2C401.1%2C185.2z%22%20id%3D%22XMLID_802_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M403.9%2C205.2c-4.8-1.6-9.9%2C1-11.5%2C5.9l0%2C0c-1.6%2C4.8%2C1.1%2C9.9%2C5.9%2C11.5%20%20%20%20%20c0.9%2C0.3%2C1.9%2C0.5%2C2.8%2C0.5c3.9%2C0%2C7.4-2.5%2C8.7-6.3c0%2C0%2C0%2C0%2C0%2C0C411.3%2C211.9%2C408.7%2C206.8%2C403.9%2C205.2z%22%20id%3D%22XMLID_803_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C237.2L373.5%2C237.2c-4.1%2C3-5%2C8.7-2%2C12.8c1.8%2C2.4%2C4.6%2C3.7%2C7.4%2C3.7%20%20%20%20%20c1.8%2C0%2C3.7-0.6%2C5.4-1.8c4.1-3%2C4.9-8.7%2C2-12.8C383.3%2C235.1%2C377.6%2C234.2%2C373.5%2C237.2z%22%20id%3D%22XMLID_804_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C152.9c1.6%2C1.2%2C3.5%2C1.8%2C5.4%2C1.8c2.8%2C0%2C5.6-1.3%2C7.4-3.8c3-4.1%2C2.1-9.8-2-12.7%20%20%20%20%20c-4.1-3-9.8-2.1-12.7%2C2C368.5%2C144.2%2C369.4%2C149.9%2C373.5%2C152.9z%22%20id%3D%22XMLID_805_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M342.8%2C247.1c-2.4%2C0-4.8%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.4%20%20%20%20%20c1.7%2C1.7%2C4%2C2.7%2C6.5%2C2.7c2.4%2C0%2C4.7-1%2C6.5-2.7c1.7-1.7%2C2.7-4%2C2.7-6.4c0-2.4-1-4.8-2.7-6.5C347.6%2C248.1%2C345.2%2C247.1%2C342.8%2C247.1z%22%20id%3D%22XMLID_806_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M342.8%2C124.7H206.6l36.4-36.4c3.6-3.6%2C3.6-9.3%2C0-12.9c-3.6-3.6-9.3-3.6-12.9%2C0l-51.5%2C51.5%20%20%20%20%20c-1.9%2C1.9-2.8%2C4.4-2.7%2C6.9c-0.1%2C2.5%2C0.7%2C5%2C2.7%2C6.9l51.5%2C51.5c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7%20%20%20%20%20c3.6-3.6%2C3.6-9.3%2C0-12.9l-36.4-36.4h136.1c0%2C0%2C0.1%2C0%2C0.1%2C0c0.6%2C0%2C1.2-0.1%2C1.8-0.2c0.2%2C0%2C0.4-0.1%2C0.6-0.1c0.1%2C0%2C0.2%2C0%2C0.3-0.1%20%20%20%20%20c3.2-1%2C5.6-3.6%2C6.3-6.9c0.1-0.6%2C0.2-1.2%2C0.2-1.8c0-0.6-0.1-1.2-0.2-1.8C351%2C127.8%2C347.3%2C124.7%2C342.8%2C124.7z%22%20id%3D%22XMLID_807_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M322.1%2C371.3l-51.5-51.5c-3.6-3.6-9.3-3.6-12.9%2C0c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9l36.9%2C36.9H169.2%20%20%20%20%20c-2.8%2C0-5.4%2C1.3-7%2C3.3c-0.1%2C0.1-0.2%2C0.2-0.3%2C0.4c-0.1%2C0.1-0.2%2C0.2-0.2%2C0.3c-0.1%2C0.1-0.1%2C0.2-0.2%2C0.4c-0.1%2C0.1-0.2%2C0.3-0.2%2C0.4%20%20%20%20%20c0%2C0.1-0.1%2C0.2-0.1%2C0.2c-0.1%2C0.2-0.2%2C0.4-0.3%2C0.6c0%2C0%2C0%2C0%2C0%2C0.1c-0.4%2C1.1-0.7%2C2.2-0.7%2C3.4c0%2C1.5%2C0.4%2C2.9%2C1%2C4.2c0%2C0%2C0%2C0.1%2C0.1%2C0.1%20%20%20%20%20c0.1%2C0.1%2C0.1%2C0.2%2C0.2%2C0.3c0.4%2C0.7%2C0.9%2C1.3%2C1.4%2C1.8c0.4%2C0.4%2C0.7%2C0.7%2C1.2%2C1c0.1%2C0.1%2C0.1%2C0.1%2C0.2%2C0.2c0%2C0%2C0.1%2C0%2C0.1%2C0.1%20%20%20%20%20c1.4%2C0.9%2C3.1%2C1.5%2C5%2C1.5h124.4l-36%2C36c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7l51.5-51.5%20%20%20%20%20c1.9-1.9%2C2.8-4.4%2C2.7-6.9C324.8%2C375.7%2C324%2C373.2%2C322.1%2C371.3z%22%20id%3D%22XMLID_808_%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n.x6-widget-handle-surround .x6-widget-handle-animate .x6-widget-handle {\n transition: background-size 80ms, width 80ms, height 80ms, top 150ms, left 150ms, bottom 150ms, right 150ms;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-se {\n right: -25px;\n bottom: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-nw {\n top: -21px;\n left: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-n {\n top: -22px;\n left: 50%;\n margin-left: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-e {\n top: -webkit-calc(40%);\n top: calc(50% - 10px);\n right: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-ne {\n top: -21px;\n right: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-w {\n top: 50%;\n left: -25px;\n margin-top: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-sw {\n bottom: -25px;\n left: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-s {\n bottom: -24px;\n left: 50%;\n margin-left: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle {\n width: 15px;\n height: 15px;\n font-size: 15px;\n background-size: 15px 15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-se {\n right: -19px;\n bottom: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-nw {\n top: -19px;\n left: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-n {\n top: -19px;\n margin-left: -7.5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-e {\n top: -webkit-calc(42%);\n top: calc(50% - 8px);\n right: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-ne {\n top: -19px;\n right: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-w {\n left: -19px;\n margin-top: -8px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-sw {\n bottom: -19px;\n left: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-s {\n bottom: -19px;\n margin-left: -7.5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle {\n width: 10px;\n height: 10px;\n font-size: 10px;\n background-size: 10px 10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-se {\n right: -15px;\n bottom: -13px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-nw {\n top: -13px;\n left: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-n {\n top: -13px;\n margin-left: -5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-e {\n top: -webkit-calc(45%);\n top: calc(50% - 5px);\n right: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-ne {\n top: -13px;\n right: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-w {\n left: -15px;\n margin-top: -5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-sw {\n bottom: -13px;\n left: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-s {\n bottom: -13px;\n margin-left: -5px;\n}\n.x6-widget-handle-toolbar {\n position: absolute;\n top: -50px;\n display: table-row;\n padding: 7px 5px;\n}\n.x6-widget-handle-toolbar::after {\n position: absolute;\n top: 100%;\n left: 10px;\n width: 0;\n height: 0;\n margin-top: 4px;\n border-right: 10px solid transparent;\n border-left: 10px solid transparent;\n content: '';\n}\n.x6-widget-handle-toolbar .x6-widget-handle {\n position: relative;\n display: table-cell;\n min-width: 20px;\n margin: 0 2px;\n background-position: 3px 3px;\n background-size: 16px 16px;\n}\n.x6-widget-handle-toolbar .x6-widget-handle::after {\n position: absolute;\n bottom: -11px;\n width: 100%;\n content: '';\n}\n.x6-widget-handle-pie {\n position: absolute;\n top: -webkit-calc(0%);\n top: calc(50% - 50px);\n right: -50px;\n z-index: 1;\n display: none;\n width: 100px;\n height: 100px;\n margin: -2px -2px 0 0;\n border-radius: 50%;\n cursor: default;\n pointer-events: visiblePainted;\n}\n.x6-widget-handle-pie .x6-widget-handle {\n width: 1px;\n height: auto;\n pointer-events: visiblePainted;\n}\n.x6-widget-handle-pie-slice-svg {\n width: 100%;\n height: 100%;\n overflow: visible !important;\n}\n.x6-widget-handle-pie-slice-img,\n.x6-widget-handle-pie-slice-txt {\n display: none;\n pointer-events: none;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='e'] {\n top: calc(50% - 50px);\n right: -50px;\n left: auto;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='w'] {\n top: calc(50% - 50px);\n right: auto;\n left: -52px;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='n'] {\n top: -50px;\n right: auto;\n bottom: auto;\n left: calc(50% - 52px);\n}\n.x6-widget-handle-pie[data-pie-toggle-position='s'] {\n top: auto;\n right: auto;\n bottom: -52px;\n left: calc(50% - 52px);\n}\n.x6-widget-handle-pie-opened {\n display: block;\n animation: halo-pie-visibility 0.1s, halo-pie-opening 0.1s;\n animation-timing-function: step-end, ease;\n animation-delay: 0s, 0.1s;\n}\n.x6-widget-handle-pie-toggle {\n position: absolute;\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: -15px;\n z-index: 2;\n display: block;\n box-sizing: border-box;\n width: 30px;\n height: 30px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 20px 20px;\n border-radius: 50%;\n cursor: pointer;\n user-select: none;\n pointer-events: visiblePainted;\n -webkit-user-drag: none;\n user-drag: none;\n /* stylelint-disable-line */\n}\n.x6-widget-handle-pie-toggle-pos-e {\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: -15px;\n bottom: auto;\n left: auto;\n}\n.x6-widget-handle-pie-toggle-pos-w {\n top: -webkit-calc(35%);\n top: calc(50% - 15px);\n right: auto;\n bottom: auto;\n left: -15px;\n}\n.x6-widget-handle-pie-toggle-pos-n {\n top: -15px;\n right: auto;\n bottom: auto;\n left: -webkit-calc(35%);\n left: calc(50% - 15px);\n}\n.x6-widget-handle-pie-toggle-pos-s {\n top: auto;\n right: auto;\n bottom: -15px;\n left: -webkit-calc(35%);\n left: calc(50% - 15px);\n}\n.x6-widget-handle-pie-toggle-opened {\n transition: 0.1s background-image;\n}\n.x6-widget-handle-toolbar {\n position: static;\n display: inline-block;\n margin-top: -50px;\n margin-left: 45px;\n white-space: nowrap;\n vertical-align: top;\n background-color: #f5f5f5;\n border-bottom: 3px solid #333;\n border-radius: 5px;\n box-shadow: 0 1px 2px #222;\n}\n.x6-widget-handle-toolbar::after {\n top: -12px;\n left: 55px;\n margin-top: 0;\n border-top: 6px solid #333;\n border-right: 10px solid transparent;\n border-left: 10px solid transparent;\n}\n.x6-widget-handle-toolbar .x6-widget-handle {\n display: inline-block;\n vertical-align: top;\n}\n.x6-widget-handle-toolbar .x6-widget-handle:hover::after {\n border-bottom: 4px solid #fc6cb8;\n}\n.x6-widget-handle-toolbar .x6-widget-handle-rotate {\n position: absolute;\n top: 100%;\n right: 100%;\n margin-top: 3px;\n margin-right: 6px;\n}\n.x6-widget-handle-toolbar .x6-widget-handle-remove:hover::after,\n.x6-widget-handle-toolbar .x6-widget-handle-rotate:hover::after {\n border-bottom: none;\n}\n.x6-widget-handle-toolbar .x6-widget-handle + .x6-widget-handle {\n margin-left: 4px;\n}\n.x6-widget-handle-pie {\n box-sizing: content-box;\n background-color: #f5f5f5;\n border: 2px solid #404040;\n}\n.x6-widget-handle-pie-slice {\n fill: transparent;\n stroke: #e9e9e9;\n stroke-width: 1;\n}\n.x6-widget-handle-pie-slice:hover {\n fill: #fff;\n}\n.x6-widget-handle-pie-slice-img {\n display: block;\n}\n.x6-widget-handle-selected .x6-widget-handle-pie-slice {\n fill: #fff;\n}\n.x6-widget-handle-pie-toggle {\n background-color: #f6f6f6;\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20height%3D%2216px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20width%3D%2216px%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15%2C6h-5V1c0-0.55-0.45-1-1-1H7C6.45%2C0%2C6%2C0.45%2C6%2C1v5H1C0.45%2C6%2C0%2C6.45%2C0%2C7v2c0%2C0.55%2C0.45%2C1%2C1%2C1h5v5c0%2C0.55%2C0.45%2C1%2C1%2C1h2%20c0.55%2C0%2C1-0.45%2C1-1v-5h5c0.55%2C0%2C1-0.45%2C1-1V7C16%2C6.45%2C15.55%2C6%2C15%2C6z%22%2F%3E%3C%2Fsvg%3E');\n background-size: 16px 16px;\n border: 2px solid #3b425f;\n}\n.x6-widget-handle-pie-toggle:hover {\n background-color: #fff;\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20height%3D%2216px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20width%3D%2216px%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M15%2C6h-5V1c0-0.55-0.45-1-1-1H7C6.45%2C0%2C6%2C0.45%2C6%2C1v5H1C0.45%2C6%2C0%2C6.45%2C0%2C7v2c0%2C0.55%2C0.45%2C1%2C1%2C1h5v5c0%2C0.55%2C0.45%2C1%2C1%2C1h2%20c0.55%2C0%2C1-0.45%2C1-1v-5h5c0.55%2C0%2C1-0.45%2C1-1V7C16%2C6.45%2C15.55%2C6%2C15%2C6z%22%2F%3E%3C%2Fsvg%3E');\n border-color: #fd6eb6;\n}\n.x6-widget-handle-pie-toggle-opened {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Asvg%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20id%3D%22Layer_1%22%20xml%3Aspace%3D%22preserve%22%3E%3Cmetadata%20id%3D%22metadata9%22%3E%3Crdf%3ARDF%3E%3Ccc%3AWork%20rdf%3Aabout%3D%22%22%3E%3Cdc%3Aformat%3Eimage%2Fsvg%2Bxml%3C%2Fdc%3Aformat%3E%3Cdc%3Atype%20rdf%3Aresource%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fdcmitype%2FStillImage%22%20%2F%3E%3Cdc%3Atitle%3E%3C%2Fdc%3Atitle%3E%3C%2Fcc%3AWork%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cdefs%20id%3D%22defs7%22%20%2F%3E%3Cpath%20d%3D%22M%2015%2C6%2010%2C6%20C%201.0301983%2C6.00505%2015.002631%2C6.011353%206%2C6%20L%201%2C6%20C%200.45%2C6%200%2C6.45%200%2C7%20l%200%2C2%20c%200%2C0.55%200.45%2C1%201%2C1%20l%205%2C0%20c%208.988585%2C-0.019732%20-5.02893401%2C-0.018728%204%2C0%20l%205%2C0%20c%200.55%2C0%201%2C-0.45%201%2C-1%20L%2016%2C7%20C%2016%2C6.45%2015.55%2C6%2015%2C6%20z%22%20id%3D%22path3%22%20style%3D%22fill%3A%236a6c8a%22%20%2F%3E%3C%2Fsvg%3E');\n}\n.x6-widget-handle-pie-toggle-opened:hover {\n background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Asvg%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20id%3D%22Layer_1%22%20xml%3Aspace%3D%22preserve%22%3E%3Cmetadata%20id%3D%22metadata9%22%3E%3Crdf%3ARDF%3E%3Ccc%3AWork%20rdf%3Aabout%3D%22%22%3E%3Cdc%3Aformat%3Eimage%2Fsvg%2Bxml%3C%2Fdc%3Aformat%3E%3Cdc%3Atype%20rdf%3Aresource%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fdcmitype%2FStillImage%22%20%2F%3E%3Cdc%3Atitle%3E%3C%2Fdc%3Atitle%3E%3C%2Fcc%3AWork%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cdefs%20id%3D%22defs7%22%20%2F%3E%3Cpath%20d%3D%22M%2015%2C6%2010%2C6%20C%201.0301983%2C6.00505%2015.002631%2C6.011353%206%2C6%20L%201%2C6%20C%200.45%2C6%200%2C6.45%200%2C7%20l%200%2C2%20c%200%2C0.55%200.45%2C1%201%2C1%20l%205%2C0%20c%208.988585%2C-0.019732%20-5.02893401%2C-0.018728%204%2C0%20l%205%2C0%20c%200.55%2C0%201%2C-0.45%201%2C-1%20L%2016%2C7%20C%2016%2C6.45%2015.55%2C6%2015%2C6%20z%22%20id%3D%22path3%22%20style%3D%22fill%3A%23FD6EB6%22%20%2F%3E%3C%2Fsvg%3E');\n}\n.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-halo {\n position: absolute;\n pointer-events: none;\n}\n.x6-widget-halo-content {\n position: absolute;\n top: 100%;\n padding: 6px;\n font-size: 10px;\n line-height: 14px;\n text-align: center;\n border-radius: 6px;\n}\n.x6-widget-halo-handles + .x6-widget-halo-content {\n right: -20px;\n left: -20px;\n margin-top: 30px;\n}\n.x6-widget-halo-handles.x6-widget-handle-small + .x6-widget-halo-content {\n margin-top: 25px;\n}\n.x6-widget-halo-handles.x6-widget-handle-small + .x6-widget-halo-content {\n margin-top: 20px;\n}\n.x6-widget-halo-handles.x6-widget-handle-pie + .x6-widget-halo-content {\n right: 0;\n left: 0;\n margin-top: 10px;\n}\n.x6-widget-halo-content {\n color: #fff;\n background-color: #6a6b8a;\n}\n.x6-widget-halo.type-node .x6-widget-handle-toolbar .x6-widget-handle-remove {\n position: absolute;\n right: 100%;\n bottom: 100%;\n margin-right: 6px;\n margin-bottom: 3px;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-surround .x6-widget-handle-remove {\n background-color: #fff;\n border-radius: 50%;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-toolbar {\n margin-top: -60px;\n margin-left: -18px;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-toolbar::after {\n top: -22px;\n left: -9px;\n}\n.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.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 cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='true'] {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-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.x6-widget-selection {\n position: absolute;\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.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.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}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-content {\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.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 -webkit-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 -webkit-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.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.x6-widget-knob {\n position: absolute;\n box-sizing: border-box;\n width: 16px;\n height: 16px;\n margin-top: -8px;\n margin-left: -8px;\n cursor: pointer;\n user-select: none;\n}\n.x6-widget-knob::before,\n.x6-widget-knob::after {\n position: absolute;\n transform: rotate(45deg);\n content: '';\n}\n.x6-widget-knob::before {\n top: 4px;\n left: 4px;\n box-sizing: border-box;\n width: 8px;\n height: 8px;\n background-color: #fff;\n}\n.x6-widget-knob::after {\n top: 5px;\n left: 5px;\n box-sizing: border-box;\n width: 6px;\n height: 6px;\n background-color: #fca000;\n}\n.x6-graph-print {\n position: relative;\n}\n.x6-graph-print .x6-graph-print-ready {\n display: none;\n}\n.x6-graph-print .x6-graph-print-preview {\n overflow: hidden !important;\n background: #fff !important;\n}\n@media print {\n html,\n html > body.x6-graph-printing {\n position: relative !important;\n width: 100% !important;\n height: 100% !important;\n margin: 0 !important;\n padding: 0 !important;\n }\n html > body.x6-graph-printing > * {\n display: none !important;\n }\n html > body.x6-graph-printing > .x6-graph-print {\n display: block !important;\n }\n .x6-graph-print {\n top: 0 !important;\n left: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden !important;\n page-break-after: always;\n background: #fff !important;\n }\n .x6-graph-print .x6-graph-print-ready {\n display: none;\n }\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";const e=document.querySelector("head");e&&e.insertBefore(t,e.firstChild)}},e.clean=function(){n-=1,n>0||(t&&t.parentNode&&t.parentNode.removeChild(t),t=null)}}(hj||(hj={}));var fj,pj=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};class gj{get handleClassName(){return fj.handle}get pie(){return Object.assign(Object.assign({},gj.defaultPieOptions),this.handleOptions.pie)}initHandles(){if(this.handles=[],this.handleOptions.handles&&this.handleOptions.handles.forEach((e=>this.addHandle(e))),"pie"===this.handleOptions.type){if(this.pie.toggles){const e=fj.pieToggle;this.$pieToggles={},this.pie.toggles.forEach((t=>{const n=this.$("<div/>");this.applyAttrs(n,t.attrs),n.addClass(e).addClass(`${e}-pos-${t.position||"e"}`).attr("data-name",t.name).appendTo(this.container),this.$pieToggles[t.name]=n}))}this.setPieIcons()}if(this.$handleContainer){const e=this.handleOptions.type||"surround";this.$handleContainer.addClass(fj.wrap).addClass(fj.animate).addClass(`${fj.handle}-${e}`)}this.delegateEvents({[`mousedown .${fj.handle}`]:"onHandleMouseDown",[`touchstart .${fj.handle}`]:"onHandleMouseDown",[`mousedown .${fj.pieToggle}`]:"onPieToggleMouseDown",[`touchstart .${fj.pieToggle}`]:"onPieToggleMouseDown"})}onHandleMouseDown(e){const t=this.$(e.currentTarget).closest(`.${fj.handle}`).attr("data-action");t&&(e.preventDefault(),e.stopPropagation(),this.setEventData(e,{action:t,clientX:e.clientX,clientY:e.clientY,startX:e.clientX,startY:e.clientY}),"mousedown"===e.type&&2===e.button?this.triggerHandleAction(t,"contextmenu",e):(this.triggerHandleAction(t,"mousedown",e),this.delegateDocumentEvents({mousemove:"onHandleMouseMove",touchmove:"onHandleMouseMove",mouseup:"onHandleMouseUp",touchend:"onHandleMouseUp",touchcancel:"onHandleMouseUp"},e.data)))}onHandleMouseMove(e){const t=this.getEventData(e).action;t&&this.triggerHandleAction(t,"mousemove",e)}onHandleMouseUp(e){const t=this.getEventData(e).action;t&&(this.triggerHandleAction(t,"mouseup",e),this.undelegateDocumentEvents())}triggerHandleAction(e,t,n,r){n.preventDefault(),n.stopPropagation();const i=this.normalizeEvent(n),o=this.getEventData(i),a=this.graph.snapToGrid(i.clientX,i.clientY),s=this.graph.snapToGrid(o.clientX,o.clientY),l=a.x-s.x,c=a.y-s.y;this.trigger(`action:${e}:${t}`,Object.assign({e:i,dx:l,dy:c,x:a.x,y:a.y,offsetX:n.clientX-o.startX,offsetY:n.clientY-o.startY},r)),o.clientX=n.clientX,o.clientY=n.clientY}onPieToggleMouseDown(e){e.stopPropagation();const t=this.$(e.target).closest(`.${fj.pieToggle}`).attr("data-name");this.isOpen(t)||this.isOpen()&&this.toggleState(),this.toggleState(t)}setPieIcons(){"pie"===this.handleOptions.type&&this.$handleContainer.find(`.${fj.handle}`).each(((e,t)=>{const n=this.$(t),r=n.attr("data-action"),i=fj.pieSlice,o=this.getHandle(r);if(!o||!o.icon){const e=window.getComputedStyle(t,":before").getPropertyValue("content");if(e&&"none"!==e){const t=n.find(`.${i}-txt`);t.length&&kO.create(t[0]).text(e.replace(/['"]/g,""))}const r=n.css("background-image");if(r){const e=r.match(/url\(['"]?([^'"]+)['"]?\)/);if(e){const t=e[1],r=n.find(`.${i}-img`);r.length>0&&kO.create(r[0]).attr("xlink:href",t)}}}}))}getHandleIdx(e){return this.handles.findIndex((t=>t.name===e))}hasHandle(e){return this.getHandleIdx(e)>=0}getHandle(e){return this.handles.find((t=>t.name===e))}renderHandle(e){const t=this.$("<div/>").addClass(`${fj.handle} ${fj.handle}-${e.name}`).attr("data-action",e.name).prop("draggable",!1);if("pie"===this.handleOptions.type){const n=this.getHandleIdx(e.name),r=this.pie,i=r.outerRadius,o=r.innerRadius,a=(i+o)/2,s=new tO(i,i),l=GM.toRad(r.sliceAngle),c=n*l+GM.toRad(r.startAngle),u=function(e,t,n,r){const i=2*Math.PI-1e-6,o=e,a=t;let s=n,l=r;if(l<s){const e=s;s=l,l=e}const c=l-s,u=c<Math.PI?"0":"1",d=Math.cos(s),h=Math.sin(s),f=Math.cos(l),p=Math.sin(l);return c>=i?o?`M0,${a}A${a},${a} 0 1,1 0,${-a}A${a},${a} 0 1,1 0,${a}M0,${o}A${o},${o} 0 1,0 0,${-o}A${o},${o} 0 1,0 0,${o}Z`:`M0,${a}A${a},${a} 0 1,1 0,${-a}A${a},${a} 0 1,1 0,${a}Z`:o?`M${a*d},${a*h}A${a},${a} 0 ${u},1 ${a*f},${a*p}L${o*f},${o*p}A${o},${o} 0 ${u},0 ${o*d},${o*h}Z`:`M${a*d},${a*h}A${a},${a} 0 ${u},1 ${a*f},${a*p}L0,0Z`}(o,i,c,c+l),d=kO.create("svg").addClass(`${fj.pieSlice}-svg`),h=kO.create("path").addClass(fj.pieSlice).attr("d",u).translate(i,i),f=tO.fromPolar(a,-c-l/2,s).toJSON(),p=r.iconSize,g=kO.create("image").attr(f).addClass(`${fj.pieSlice}-img`);f.y=f.y+p-2;const m=kO.create("text",{"font-size":p}).attr(f).addClass(`${fj.pieSlice}-txt`);g.attr({width:p,height:p}),g.translate(-p/2,-p/2),m.translate(-p/2,-p/2),d.append([h,g,m]),t.append(d.node)}else t.addClass(`${fj.handle}-pos-${e.position}`),e.content&&("string"==typeof e.content?t.html(e.content):t.append(e.content));return this.updateHandleIcon(t,e.icon),this.applyAttrs(t,e.attrs),t}addHandle(e){if(!this.hasHandle(e.name)){this.handles.push(e);const t=e.events;t&&Object.keys(t).forEach((n=>{const r=t[n],i=`action:${e.name}:${n}`;"string"==typeof r?this.on(i,this[r],this):this.on(i,r)})),this.$handleContainer&&this.$handleContainer.append(this.renderHandle(e))}return this}addHandles(e){return e.forEach((e=>this.addHandle(e))),this}removeHandles(){for(;this.handles.length;)this.removeHandle(this.handles[0].name);return this}removeHandle(e){const t=this.getHandleIdx(e),n=this.handles[t];return n&&(n.events&&Object.keys(n.events).forEach((t=>{this.off(`action:${e}:${t}`)})),this.getHandleElem(e).remove(),this.handles.splice(t,1)),this}changeHandle(e,t){const n=this.getHandle(e);return n&&(this.removeHandle(e),this.addHandle(Object.assign(Object.assign({},n),t))),this}toggleHandle(e,t){const n=this.getHandle(e);if(n){const r=this.getHandleElem(e),i=`${fj.handle}-selected`;void 0===t&&(t=!r.hasClass(i)),r.toggleClass(i,t);const o=t?n.iconSelected:n.icon;o&&this.updateHandleIcon(r,o)}return this}selectHandle(e){return this.toggleHandle(e,!0)}deselectHandle(e){return this.toggleHandle(e,!1)}deselectAllHandles(){return this.handles.forEach((e=>this.deselectHandle(e.name))),this}getHandleElem(e){return this.$handleContainer.find(`.${fj.handle}-${e}`)}updateHandleIcon(e,t){if("pie"===this.handleOptions.type){const n=e.find(`.${fj.pieSliceImg}`);this.$(n[0]).attr("xlink:href",t||"")}else e.css("background-image",t?`url(${t})`:"")}isRendered(){return null!=this.$handleContainer}isOpen(e){return!!this.isRendered()&&(e?this.$pieToggles[e].hasClass(fj.pieToggleOpened):this.$handleContainer.hasClass(`${fj.pieOpended}`))}toggleState(e){if(this.isRendered()){const t=this.$handleContainer;if(Object.keys(this.$pieToggles).forEach((e=>{this.$pieToggles[e].removeClass(fj.pieToggleOpened)})),this.isOpen())this.trigger("pie:close",{name:e}),t.removeClass(fj.pieOpended);else{if(this.trigger("pie:open",{name:e}),e){const n=this.pie.toggles,r=n&&n.find((t=>t.name===e));r&&t.attr({"data-pie-toggle-name":r.name,"data-pie-toggle-position":r.position}),this.$pieToggles[e].addClass(fj.pieToggleOpened)}t.addClass(fj.pieOpended)}}}applyAttrs(e,t){if(t){const n=wN.$(e);Object.keys(t).forEach((e=>{const r=n.find(e).addBack().filter(e),i=t[e],{class:o}=i,a=pj(i,["class"]);o&&r.addClass(o),r.attr(a)}))}}}!function(e){e.defaultPieOptions={innerRadius:20,outerRadius:50,sliceAngle:45,startAngle:0,iconSize:14,toggles:[{name:"default",position:"e"}]}}(gj||(gj={})),function(e){e.handle=wN.prototype.prefixClassName("widget-handle"),e.wrap=`${e.handle}-wrap`,e.animate=`${e.handle}-animate`,e.pieOpended=`${e.handle}-pie-opened`,e.pieToggle=`${e.handle}-pie-toggle`,e.pieToggleOpened=`${e.handle}-pie-toggle-opened`,e.pieSlice=`${e.handle}-pie-slice`,e.pieSliceImg=`${e.handle}-pie-slice-img`}(fj||(fj={}));var mj,vj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},yj=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};class bj extends wN{constructor(e){super();const t=e,{view:n,cell:r,node:i,edge:o,graph:a}=t,s=yj(t,["view","cell","node","edge","graph"]);n?(this.view=n,this.cell=n.cell,this.graph=n.graph,this.model=this.graph.model):(r||o||i)&&a&&(this.cell=i||o||r,this.view=a.renderer.findViewByCell(this.cell),this.graph=a,this.model=this.graph.model);const l=this.constructor;!1!==e.clearAll&&l.removeInstances(this.graph),l.register(this),this.init(s)}static ensureCache(){return this.instanceCache.has(this)||this.instanceCache.set(this,{}),this.instanceCache.get(this)}static register(e,t){null==t&&(t=e.graph);const n=this.ensureCache();let r=n[t.view.cid];null==r&&(r=n[t.view.cid]={}),r[e.cid]=e}static unregister(e,t){null==t&&(t=e.graph);const n=this.ensureCache();n[t.view.cid]&&delete n[t.view.cid][e.cid]}static removeInstances(e){const t=this.ensureCache()[e.view.cid];t&&Object.keys(t).forEach((e=>{const n=t[e];n&&n.remove()}))}static getInstances(e){return this.ensureCache()[e.view.cid]||{}}init(e){}render(){return this}startListening(){!1!==this.options.clearOnBlankMouseDown&&this.graph.on("blank:mousedown",this.remove,this)}stopListening(){!1!==this.options.clearOnBlankMouseDown&&this.graph.off("blank:mousedown",this.remove,this)}remove(){this.stopListening();return this.constructor.unregister(this),super.remove()}dispose(){this.remove()}}bj.instanceCache=new WeakMap,vj([wN.dispose()],bj.prototype,"dispose",null);class wj extends bj{get node(){return this.cell}get metadata(){const e=this.cell.prop("knob");return Array.isArray(e)?null!=this.options.index?e[this.options.index]:null:e}init(e){this.options=Object.assign({},e),this.render(),this.startListening()}startListening(){this.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown"}),this.model.on("*",this.update,this),this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this),this.model.on("reseted",this.remove,this),this.node.on("removed",this.remove,this),this.view.on("node:resize:mousedown",this.onTransform,this),this.view.on("node:rotate:mousedown",this.onTransform,this),this.view.on("node:resize:mouseup",this.onTransformed,this),this.view.on("node:rotate:mouseup",this.onTransformed,this),this.view.on("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.on("cell:knob:mouseup",this.onKnobMouseUp,this),super.startListening()}stopListening(){this.undelegateEvents(),this.model.off("*",this.update,this),this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this),this.model.off("reseted",this.remove,this),this.node.off("removed",this.remove,this),this.view.off("node:resize:mousedown",this.onTransform,this),this.view.off("node:rotate:mousedown",this.onTransform,this),this.view.off("node:resize:mouseup",this.onTransformed,this),this.view.off("node:rotate:mouseup",this.onTransformed,this),this.view.off("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.off("cell:knob:mouseup",this.onKnobMouseUp,this),super.stopListening()}render(){return this.container=document.createElement("div"),oM(this.container,this.prefixClassName("widget-knob")),this.options.className&&oM(this.container,this.options.className),this.view.addClass(mj.KNOB),this.graph.container.appendChild(this.container),this.update(),this}remove(){return this.view.removeClass(mj.KNOB),super.remove()}update(){if(this.metadata){const{update:e,position:t}=this.metadata,n={knob:this,cell:this.cell,node:this.node};if(t){const e=t.call(this.graph,Object.assign({},n));if(e){const t=this.graph.matrix(),n=this.node.getBBox(),r=GM.normalize(this.node.getAngle()),i=tO.create(e);0!==r&&i.rotate(-r,{x:n.width/2,y:n.height/2}),i.translate(n).scale(t.a,t.d).translate(t.e,t.f),this.container.style.left=`${i.x}px`,this.container.style.top=`${i.y}px`}}e&&e.call(this.graph,Object.assign({},n))}}hide(){this.container.style.display="none"}show(){this.container.style.display=""}onTransform(){this.hide()}onTransformed(){this.show()}onKnobMouseDown({knob:e}){this.cid!==e.cid&&this.hide()}onKnobMouseUp(){this.show()}notify(e,t){if(this.view){const n=this.view.normalizeEvent(t),r=this.graph.snapToGrid(n.clientX,n.clientY);this.view.notify(`cell:${e}`,{e:n,view:this.view,node:this.node,cell:this.cell,x:r.x,y:r.y,knob:this}),this.cell.isNode()?this.view.notify(`node:${e}`,{e:n,view:this.view,node:this.node,cell:this.cell,x:r.x,y:r.y,knob:this}):this.cell.isEdge()&&this.view.notify(`edge:${e}`,{e:n,view:this.view,edge:this.cell,cell:this.cell,x:r.x,y:r.y,knob:this})}}onMouseDown(e){e.stopPropagation(),this.setEventData(e,{knobbing:!1,originX:e.clientX,originY:e.clientY,clientX:e.clientX,clientY:e.clientY}),this.graph.view.undelegateEvents(),this.delegateDocumentEvents(mj.documentEvents,e.data),this.metadata&&this.metadata.onMouseDown&&this.metadata.onMouseDown.call(this.graph,{e:e,data:this.getEventData(e),knob:this,cell:this.cell,node:this.node}),this.notify("knob:mousedown",e)}onMouseMove(e){const t=this.getEventData(e),n=this.graph.findViewByCell(this.node);if(t.knobbing||(t.knobbing=!0,n&&(n.addClass(mj.KNOBBING),this.notify("knob",e)),this.model.startBatch("knob",{cid:this.cid})),t.clientX=e.clientX,t.clientY=e.clientY,this.metadata&&this.metadata.onMouseMove){const n=this.graph.matrix(),r=(e.clientX-t.originX)/n.a,i=(e.clientY-t.originY)/n.d,o=this.node.getAngle(),a=new tO(r,i).rotate(o);this.metadata.onMouseMove.call(this.graph,{e:e,data:t,deltaX:a.x,deltaY:a.y,knob:this,cell:this.cell,node:this.node})}this.notify("knobbing",e),this.notify("knob:mousemove",e)}onMouseUp(e){this.undelegateDocumentEvents(),this.graph.view.delegateEvents();const t=this.getEventData(e),n=this.graph.findViewByCell(this.node);t.knobbing&&(n&&n.removeClass(mj.KNOBBING),this.metadata&&this.metadata.onMouseUp&&this.metadata.onMouseUp.call(this.graph,{e:e,data:t,knob:this,cell:this.cell,node:this.node}),this.model.stopBatch("knob",{cid:this.cid}),this.notify("knobbed",e)),this.notify("knob:mouseup",e)}}!function(e){e.KNOB="has-widget-knob",e.KNOBBING="node-knobbing",e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp"}}(mj||(mj={}));var _j,xj,Ej=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e.root="widget-minimap",e.viewport=`${e.root}-viewport`,e.zoom=`${e.viewport}-zoom`}(_j||(_j={}));class Cj extends wN{constructor(e){super(),this.options=Object.assign(Object.assign({},xj.defaultOptions),e),this.updateViewport=GT(this.updateViewport.bind(this),0),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName(_j.root));const t=document.createElement("div");this.container.appendChild(t),this.$viewport=this.$("<div>").addClass(this.prefixClassName(_j.viewport)),this.options.scalable&&(this.zoomHandle=this.$("<div>").addClass(this.prefixClassName(_j.zoom)).appendTo(this.$viewport).get(0)),this.$container.append(this.$viewport).css({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,frozen:!0,async:this.sourceGraph.isAsync(),interacting:!1,grid:!1,background:!1,rotating:!1,resizing:!1,embedding:!1,selecting:!1,snapline:!1,clipboard:!1,history:!1,scroller:!1});this.targetGraph=this.options.createGraph?this.options.createGraph(n):new RR(n),this.targetGraph.renderer.unfreeze(),this.updatePaper(this.sourceGraph.options.width,this.sourceGraph.options.height),this.startListening()}get graph(){return this.options.graph}get scroller(){return this.graph.scroller.widget}get graphContainer(){return this.scroller?this.scroller.container:this.graph.container}get $graphContainer(){return this.scroller?this.scroller.$container:this.$(this.graph.container)}startListening(){this.scroller?this.$graphContainer.on(`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?this.$graphContainer.off(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.targetGraph.view.remove(),this.stopListening(),this.targetGraph.dispose()}onTransform(e){(e.ui||this.targetGraphTransforming)&&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,o=this.sourceGraph.transform.getScale(),a=this.options.width-2*this.options.padding,s=this.options.height-2*this.options.padding;n/=o.sx,r/=o.sy,this.ratio=Math.min(a/n,s/r);const l=this.ratio,c=i.x*l/o.sx,u=i.y*l/o.sy;return n*=l,r*=l,this.targetGraph.resizeGraph(n,r),this.targetGraph.translate(c,u),this.scroller?this.targetGraph.scale(l,l):this.targetGraph.zoomToFit(),this.updateViewport(),this}updateViewport(){const e=this.sourceGraph.transform.getScale(),t=this.targetGraph.transform.getScale();let n=null;n=this.scroller?this.scroller.clientToLocalPoint(0,0):this.graph.graphToLocal(0,0);const r=this.$(this.targetGraph.container).position(),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.innerWidth()*t.sx/e.sx,height:this.$graphContainer.innerHeight()*t.sy/e.sy},this.$viewport.css(this.geometry)}startAction(e){const t=this.normalizeEvent(e),n=t.target===this.zoomHandle?"zooming":"panning",{tx:r,ty:i}=this.sourceGraph.translate(),o={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(xj.documentEvents,o)}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,o=(r-i.clientY)*e.sy;this.scroller?(this.graphContainer.scrollLeft=i.scrollLeft+t/this.ratio,this.graphContainer.scrollTop=i.scrollTop+o/this.ratio):this.sourceGraph.translate(i.translateX-t/this.ratio,i.translateY-o/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=this.$(this.targetGraph.container).offset();n=t.pageX-e.left,r=t.pageY-e.top}else n=t.offsetX,r=t.offsetY;const o=(n-i.tx)/this.ratio,a=(r-i.ty)/this.ratio;this.sourceGraph.centerPoint(o,a)}dispose(){this.remove()}}Ej([wN.dispose()],Cj.prototype,"dispose",null),function(e){e.defaultOptions={width:300,height:200,padding:10,scalable:!0,minScale:.01,maxScale:16,graphOptions:{},createGraph:e=>new RR(e)},e.documentEvents={mousemove:"doAction",touchmove:"doAction",mouseup:"stopAction",touchend:"stopAction"}}(xj||(xj={}));var kj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Sj=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};class Tj extends wN{constructor(e){super();const{graph:t}=e,n=Sj(e,["graph"]);this.graph=t,this.options=Object.assign({tolerance:10},n),this.offset={x:0,y:0},this.render(),this.parseFilter(),this.disabled||this.startListening()}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`}get disabled(){return!0!==this.options.enabled||!0!==this.graph.options.snapline.enabled}enable(){this.disabled&&(this.options.enabled=!0,this.graph.options.snapline.enabled=!0,this.startListening())}disable(){this.disabled||(this.options.enabled=!1,this.graph.options.snapline.enabled=!1,this.stopListening())}setFilter(e){this.options.filter=e,this.parseFilter()}render(){const e=this.containerWrapper=new kO("svg"),t=this.horizontal=new kO("line"),n=this.vertical=new kO("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()}parseFilter(){this.filterShapes={},this.filterCells={},this.filterFunction=null;const e=this.options.filter;Array.isArray(e)?e.forEach((e=>{"string"==typeof e?this.filterShapes[e]=!0:this.filterCells[e.id]=!0})):"function"==typeof e&&(this.filterFunction=e)}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")}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 r=e.getBBox(),i=r.bbox(e.getAngle()),o=i.getTopLeft(),a=i.getBottomRight(),s=GM.normalize(e.getAngle()),l=this.options.tolerance||0;let c,u,d,h,f,p;const g={vertical:0,horizontal:0},m=t.direction,v=t.trueDirection,y=t.relativeDirection;-1!==v.indexOf("right")?g.vertical=a.x:g.vertical=o.x,-1!==v.indexOf("bottom")?g.horizontal=a.y:g.horizontal=o.y,this.model.getNodes().some((t=>{if(this.isIgnored(e,t))return!1;const n=t.getBBox().bbox(t.getAngle()),r=n.getTopLeft(),o=n.getBottomRight(),s={vertical:[r.x,o.x],horizontal:[r.y,o.y]},m={};return Object.keys(s).forEach((e=>{const t=e,n=s[t].map((e=>({position:e,distance:Math.abs(e-g[t])}))).filter((e=>e.distance<=l));m[t]=xE(n,(e=>e.distance))})),null==c&&m.vertical.length>0&&(c=m.vertical[0].position,u=Math.min(i.y,n.y),d=Math.max(a.y,o.y)-u),null==h&&m.horizontal.length>0&&(h=m.horizontal[0].position,f=Math.min(i.x,n.x),p=Math.max(a.x,o.x)-f),null!=c&&null!=h})),this.hide();let b=0,w=0;null==h&&null==c||(null!=c&&(b=-1!==v.indexOf("right")?c-a.x:o.x-c),null!=h&&(w=-1!==v.indexOf("bottom")?h-a.y:o.y-h));let _=0,x=0;if(s%90==0)90===s||270===s?(_=w,x=b):(_=b,x=w);else{const e=s>=0&&s<90?1:s>=90&&s<180?4:s>=180&&s<270?3:2;null!=h&&null!=c&&(b<w?(w=0,h=void 0):(b=0,c=void 0));const t=GM.toRad(s%90);b&&(_=3===e?b/Math.cos(t):b/Math.sin(t)),w&&(x=3===e?w/Math.cos(t):w/Math.sin(t));const n=1===e||3===e;switch(y){case"top":case"bottom":x=w?w/(n?Math.cos(t):Math.sin(t)):b/(n?Math.sin(t):Math.cos(t));break;case"left":case"right":_=b?b/(n?Math.cos(t):Math.sin(t)):w/(n?Math.sin(t):Math.cos(t))}}switch(y){case"top":case"bottom":_=0;break;case"left":case"right":x=0}const E=this.graph.getGridSize();let C=Math.max(r.width+_,E),k=Math.max(r.height+x,E);t.minWidth&&t.minWidth>E&&(C=Math.max(C,t.minWidth)),t.minHeight&&t.minHeight>E&&(k=Math.max(k,t.minHeight)),t.maxWidth&&(C=Math.min(C,t.maxWidth)),t.maxHeight&&(k=Math.min(k,t.maxHeight)),t.preserveAspectRatio&&(x<_?k=C*(r.height/r.width):C=k*(r.width/r.height)),C===r.width&&k===r.height||(e.resize(C,k,{direction:m,relativeDirection:y,trueDirection:v,snapped:!0,snaplines:this.cid,restrict:this.graph.hook.getRestrictArea(n)}),d&&(d+=k-r.height),p&&(p+=C-r.width));const S=e.getBBox().bbox(s);c&&Math.abs(S.x-c)>1&&Math.abs(S.width+S.x-c)>1&&(c=void 0),h&&Math.abs(S.y-h)>1&&Math.abs(S.height+S.y-h)>1&&(h=void 0),this.update({verticalLeft:c,verticalTop:u,verticalHeight:d,horizontalTop:h,horizontalLeft:f,horizontalWidth:p})}}}snapOnMoving({view:e,e:t,x:n,y:r}){const i=e.getEventData(t).delegatedView||e;if(!this.isNodeMovable(i))return;const o=i.cell,a=o.getSize(),s=o.getPosition(),l=new nO(n-this.offset.x,r-this.offset.y,a.width,a.height),c=o.getAngle(),u=l.getCenter(),d=l.bbox(c),h=d.getTopLeft(),f=d.getBottomRight(),p=this.options.tolerance||0;let g,m,v,y,b,w,_=0,x=0;if(this.model.getNodes().some((e=>{if(this.isIgnored(o,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,_=.5):Math.abs(r.x-h.x)<p?(g=r.x,_=0):Math.abs(r.x-f.x)<p?(g=r.x,_=1):Math.abs(i.x-f.x)<p?(g=i.x,_=1):Math.abs(i.x-h.x)<p&&(g=i.x),null!=g&&(m=Math.min(d.y,t.y),v=Math.max(f.y,i.y)-m)),null==y&&(Math.abs(n.y-u.y)<p?(y=n.y,x=.5):Math.abs(r.y-h.y)<p?y=r.y:Math.abs(r.y-f.y)<p?(y=r.y,x=1):Math.abs(i.y-f.y)<p?(y=i.y,x=1):Math.abs(i.y-h.y)<p&&(y=i.y),null!=y&&(b=Math.min(d.x,t.x),w=Math.max(f.x,i.x)-b)),null!=g&&null!=y})),this.hide(),null!=y||null!=g){null!=y&&(d.y=y-x*d.height),null!=g&&(d.x=g-_*d.width);const e=d.getCenter(),t=e.x-l.width/2,n=e.y-l.height/2,r=t-s.x,a=n-s.y;0===r&&0===a||(o.translate(r,a,{snapped:!0,restrict:this.graph.hook.getRestrictArea(i)}),w&&(w+=r),v&&(v+=a)),this.update({verticalLeft:g,verticalTop:m,verticalHeight:v,horizontalTop:y,horizontalLeft:b,horizontalWidth:w})}}isIgnored(e,t){return t.id===e.id||t.isDescendantOf(e)||this.filterShapes[t.shape]||this.filterCells[t.id]||this.filterFunction&&XT(this.filterFunction,this.graph,t)}update(e){if(e.horizontalTop){const t=this.graph.localToGraph(new tO(e.horizontalLeft,e.horizontalTop)),n=this.graph.localToGraph(new tO(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 tO(e.verticalLeft,e.verticalTop)),n=this.graph.localToGraph(new tO(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()}}kj([wN.dispose()],Tj.prototype,"dispose",null);var Mj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Oj extends sj{init(){this.resetUpdates(),this.startListening(),this.resetViews(this.model.getCells()),!this.isFrozen()&&this.isAsync()&&this.updateViewsAsync()}startListening(){this.model.on("sorted",this.onSortModel,this),this.model.on("reseted",this.onModelReseted,this),this.model.on("batch:stop",this.onBatchStop,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("sorted",this.onSortModel,this),this.model.off("reseted",this.onModelReseted,this),this.model.off("batch:stop",this.onBatchStop,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)}resetUpdates(){this.updates={priorities:[{},{},{}],mounted:{},mountedCids:[],unmounted:{},unmountedCids:[],count:0,sort:!1,frozen:!1,freezeKey:null,animationId:null}}onSortModel(){this.model.hasActiveBatch(Oj.SORT_DELAYING_BATCHES)||this.sortViews()}onModelReseted({options:e}){this.removeZPivots(),this.resetViews(this.model.getCells(),e)}onBatchStop({name:e,data:t}){if(this.isFrozen())return;const n=this.model;if(!this.isAsync()){const r=Oj.UPDATE_DELAYING_BATCHES;r.includes(e)&&!n.hasActiveBatch(r)&&this.updateViews(t)}const r=Oj.SORT_DELAYING_BATCHES;r.includes(e)&&!n.hasActiveBatch(r)&&this.sortViews()}onCellAdded({cell:e,options:t}){const n=t.position;this.isAsync()||"number"!=typeof n?this.renderView(e,t):(t.maxPosition===n&&this.freeze({key:"addCells"}),this.renderView(e,t),0===n&&this.unfreeze({key:"addCells"}))}onCellRemoved({cell:e,options:t}){const n=this.findViewByCell(e);n&&this.requestViewUpdate(n,Oj.FLAG_REMOVE,n.priority,t)}onCellZIndexChanged({cell:e,options:t}){if("approx"===this.options.sorting){const n=this.findViewByCell(e);n&&this.requestViewUpdate(n,Oj.FLAG_INSERT,n.priority,t)}}onCellVisibleChanged({cell:e,current:t,options:n}){t||this.processEdgeOnTerminalVisibleChanged(e,!1);const r=this.findViewByCell(e);!t&&r?this.removeView(e):t&&null==r&&this.renderView(e,n),t&&this.processEdgeOnTerminalVisibleChanged(e,!0)}processEdgeOnTerminalVisibleChanged(e,t){this.model.getConnectedEdges(e).forEach((n=>{const r=((e,t)=>e.getSourceCellId()!==t.id?e.getSourceCell():e.getTargetCellId()!==t.id?e.getTargetCell():null)(n,e);(null==r||r.isVisible())&&(t?n.show():n.hide())}))}isEdgeTerminalVisible(e,t){const n="source"===t?e.getSourceCellId():e.getTargetCellId(),r=n?this.model.getCell(n):null;return!(r&&!r.isVisible())}requestConnectedEdgesUpdate(e,t={}){if(DN.isCellView(e)){const n=e.cell,r=this.model.getConnectedEdges(n);for(let e=0,i=r.length;e<i;e+=1){const i=r[e],o=this.findViewByCell(i);if(!o)continue;const a=["update"];i.getTargetCell()===n&&a.push("target"),i.getSourceCell()===n&&a.push("source"),this.scheduleViewUpdate(o,o.getFlag(a),o.priority,t)}}}forcePostponedViewUpdate(e,t){if(!e||!DN.isCellView(e))return!1;const n=e.cell;if(n.isNode())return!1;const r=e;if(n.isEdge()&&0==(t&e.getFlag(["source","target"]))){let e=0;const t=this.findViewByCell(n.getSourceCell());t&&!this.isViewMounted(t)&&(e=this.dumpView(t),r.updateTerminalMagnet("source"));let i=0;const o=this.findViewByCell(n.getTargetCell());if(o&&!this.isViewMounted(o)&&(i=this.dumpView(o),r.updateTerminalMagnet("target")),0===e&&0===i)return!this.dumpView(r)}return!1}scheduleViewUpdate(e,t,n,r={}){const i=e.cid,o=this.updates;let a=o.priorities[n];a||(a=o.priorities[n]={});const s=a[i]||0;(s&t)!==t&&(s||(o.count+=1),t&Oj.FLAG_REMOVE&&s&Oj.FLAG_INSERT?a[i]^=Oj.FLAG_INSERT:t&Oj.FLAG_INSERT&&s&Oj.FLAG_REMOVE&&(a[i]^=Oj.FLAG_REMOVE),a[i]|=t,this.graph.hook.onViewUpdated(e,t,r))}requestViewUpdate(e,t,n,r={}){this.scheduleViewUpdate(e,t,n,r);const i=this.isAsync();if(this.isFrozen()||i&&!1!==r.async||this.model.hasActiveBatch(Oj.UPDATE_DELAYING_BATCHES))return;const o=this.updateViews(r);i&&this.graph.trigger("render:done",{stats:o,options:r})}dumpView(e,t={}){if(null==e)return 0;const n=e.cid,r=this.updates.priorities[e.priority],i=this.registerMountedView(e)|r[n];return delete r[n],i?this.updateView(e,i,t):0}dumpViews(e={}){this.checkView(e),this.updateViews(e)}requireView(e,t={}){const n=this.findViewByCell(e);return null==n?null:(this.dumpView(n,t),n)}updateView(e,t,n={}){if(null==e)return 0;if(DN.isCellView(e)){if(t&Oj.FLAG_REMOVE)return this.removeView(e.cell),0;t&Oj.FLAG_INSERT&&(this.insertView(e),t^=Oj.FLAG_INSERT)}return t?e.confirmUpdate(t,n):0}updateViews(e={}){let t,n=0,r=0,i=Oj.MIN_PRIORITY;do{t=this.updateViewsBatch(e),n+=1,r+=t.updatedCount,i=Math.min(t.priority,i)}while(!t.empty);return{priority:i,batchCount:n,updatedCount:r}}updateViewsBatch(e={}){const t=this.updates,n=t.priorities,r=e.batchSize||Oj.UPDATE_BATCH_SIZE;let i=!0,o=Oj.MIN_PRIORITY,a=0,s=0,l=0,c=0,u=e.checkView||this.options.checkView;"function"!=typeof u&&(u=null);e:for(let d=0,h=n.length;d<h;d+=1){const h=n[d];for(const n in h){if(l>=r){i=!1;break e}const f=wN.views[n];if(!f){delete h[n];continue}let p=h[n];if(0==(p&Oj.FLAG_REMOVE)){const e=n in t.unmounted;if(u&&!XT(u,this.graph,{view:f,unmounted:e})){e||(this.registerUnmountedView(f),f.unmount()),t.unmounted[n]|=p,delete h[n],s+=1;continue}e&&(p|=Oj.FLAG_INSERT,a+=1),p|=this.registerMountedView(f)}const g=f;let m=this.updateView(f,p,e);if(m>0){const e=g.cell;e&&e.isEdge()&&(g.hasAction(m,"source")&&!this.isEdgeTerminalVisible(e,"source")&&(m=g.removeAction(m,"source"),m|=Oj.FLAG_REMOVE),g.hasAction(m,"target")&&!this.isEdgeTerminalVisible(e,"target")&&(m=g.removeAction(m,"target"),m|=Oj.FLAG_REMOVE))}m>0&&(h[n]=m,!this.graph.hook.onViewPostponed(g,m,e)||h[n])?(c+=1,i=!1):(o>d&&(o=d),l+=1,delete h[n])}}return{empty:i,priority:o,mountedCount:a,unmountedCount:s,updatedCount:l,postponedCount:c}}updateViewsAsync(e={},t={processed:0,priority:Oj.MIN_PRIORITY}){const n=this.updates,r=n.animationId;if(r){if(VM(r),0===t.processed){const t=e.before;"function"==typeof t&&XT(t,this.graph,this.graph)}const i=this.updateViewsBatch(e),o=this.checkViewImpl({checkView:e.checkView,mountedBatchSize:Oj.MOUNT_BATCH_SIZE-i.mountedCount,unmountedBatchSize:Oj.MOUNT_BATCH_SIZE-i.unmountedCount});let a=t.processed;const s=n.count,l=o.mountedCount,c=o.unmountedCount;i.updatedCount>0&&(a+=i.updatedCount+i.unmountedCount,t.priority=Math.min(i.priority,t.priority),i.empty&&0===l?(i.priority=t.priority,i.mountedCount+=l,i.unmountedCount+=c,this.graph.trigger("render:done",{stats:i,options:e}),t.processed=0,n.count=0):t.processed=a);const u=e.progress;if(s&&"function"==typeof u&&XT(u,this.graph,{total:s,done:i.empty,current:a}),n.animationId!==r)return}n.animationId=UM((()=>{this.updateViewsAsync(e,t)}))}registerMountedView(e){const t=e.cid,n=this.updates;if(t in n.mounted)return 0;n.mounted[t]=!0,n.mountedCids.push(t);const r=n.unmounted[t]||0;return delete n.unmounted[t],r}registerUnmountedView(e){const t=e.cid,n=this.updates;if(t in n.unmounted)return 0;n.unmounted[t]|=Oj.FLAG_INSERT;const r=n.unmounted[t];return n.unmountedCids.push(t),delete n.mounted[t],r}isViewMounted(e){if(null==e)return!1;return e.cid in this.updates.mounted}getMountedViews(){return Object.keys(this.updates.mounted).map((e=>DN.views[e]))}getUnmountedViews(){return Object.keys(this.updates.unmounted).map((e=>DN.views[e]))}checkMountedViews(e,t){let n=0;if("function"!=typeof e)return n;const r=this.updates,i=r.mounted,o=r.mountedCids,a=null==t?o.length:Math.min(o.length,t);for(let t=0;t<a;t+=1){const r=o[t];if(!(r in i))continue;const a=DN.views[r];if(null==a)continue;if(XT(e,this.graph,{view:a,unmounted:!0})){o.push(r);continue}n+=1;this.registerUnmountedView(a)&&a.unmount()}return o.splice(0,a),n}checkUnmountedViews(e,t){let n=0;"function"!=typeof e&&(e=null);const r=this.updates,i=r.unmounted,o=r.unmountedCids,a=null==t?o.length:Math.min(o.length,t);for(let t=0;t<a;t+=1){const r=o[t];if(!(r in i))continue;const a=DN.views[r];if(null==a)continue;if(e&&!XT(e,this.graph,{view:a,unmounted:!1})){o.push(r);continue}n+=1;const s=this.registerMountedView(a);s&&this.scheduleViewUpdate(a,s,a.priority,{mounting:!0})}return o.splice(0,a),n}checkViewImpl(e={mountedBatchSize:Number.MAX_SAFE_INTEGER,unmountedBatchSize:Number.MAX_SAFE_INTEGER}){const t=e.checkView||this.options.checkView,n=this.checkMountedViews(t,e.unmountedBatchSize);return{mountedCount:this.checkUnmountedViews(t,n>0?Math.min(this.updates.unmountedCids.length-n,e.mountedBatchSize):e.mountedBatchSize),unmountedCount:n}}checkView(e={}){return this.checkViewImpl(e)}isFrozen(){return!!this.options.frozen}freeze(e={}){const t=e.key,n=this.updates,r=this.options.frozen,i=n.freezeKey;if(t&&t!==i){if(r&&i)return;n.frozen=r,n.freezeKey=t}this.options.frozen=!0;const o=n.animationId;n.animationId=null,this.isAsync()&&null!=o&&VM(o),this.graph.trigger("freeze",{key:t})}unfreeze(e={}){const t=e.key,n=this.updates,r=n.freezeKey;if(t&&r&&t!==r)return;if(n.freezeKey=null,t&&t===r&&n.frozen)return;const i=()=>{this.options.frozen=n.frozen=!1,n.sort&&(this.sortViews(),n.sort=!1);const r=e.after;r&&XT(r,this.graph,this.graph),this.graph.trigger("unfreeze",{key:t})};if(this.isAsync()){this.freeze();const t=e.progress;this.updateViewsAsync(Object.assign(Object.assign({},e),{progress:({done:e,current:n,total:r})=>{t&&XT(t,this.graph,{done:e,current:n,total:r}),e&&i()}}))}else this.updateViews(e),i()}isAsync(){return!!this.options.async}setAsync(e){this.options.async=e}onRemove(){this.freeze(),this.removeViews()}resetViews(e=[],t={}){this.resetUpdates(),this.removeViews(),this.freeze({key:"reset"});for(let n=0,r=e.length;n<r;n+=1)this.renderView(e[n],t);this.unfreeze({key:"reset"}),this.sortViews()}removeView(e){const t=this.views[e.id];if(t){const n=t.cid,r=this.updates,i=r.mounted,o=r.unmounted;t.remove(),delete this.views[e.id],delete i[n],delete o[n]}return t}removeViews(){this.views&&Object.keys(this.views).forEach((e=>{const t=this.views[e];t&&this.removeView(t.cell)})),this.views={}}renderView(e,t={}){const n=e.id,r=this.views;let i=0,o=r[n];if(e.isVisible()&&(!e.isEdge()||this.isEdgeTerminalVisible(e,"source")&&this.isEdgeTerminalVisible(e,"target"))){if(o)i=Oj.FLAG_INSERT;else{const t=this.graph.hook.createCellView(e);t&&(o=r[e.id]=t,o.graph=this.graph,i=this.registerUnmountedView(o)|o.getBootstrapFlag())}o&&this.requestViewUpdate(o,i,o.priority,t)}}isExactSorting(){return"exact"===this.options.sorting}sortViews(){this.isExactSorting()&&(this.isFrozen()?this.updates.sort=!0:this.sortViewsExact())}sortElements(e,t){const n=e.map((e=>{const t=e.parentNode,n=t.insertBefore(document.createTextNode(""),e.nextSibling);return e=>{if(t===e)throw new Error("You can't sort elements if any one is a descendant of another.");t.insertBefore(e,n),t.removeChild(n)}}));e.sort(t).forEach(((e,t)=>n[t](e)))}sortViewsExact(){const e=this.view.$(this.view.stage).children("[data-cell-id]").toArray(),t=this.model;this.sortElements(e,((e,n)=>{const r=t.getCell(e.getAttribute("data-cell-id")||""),i=t.getCell(n.getAttribute("data-cell-id")||""),o=r.getZIndex()||0,a=i.getZIndex()||0;return o===a?0:o<a?-1:1}))}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;for(const n in t){const t=+n;t<e&&t>r&&(r=t)}const i=this.view.stage;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.keys(this.zPivots).forEach((e=>{const t=this.zPivots[e];t&&t.parentNode&&t.parentNode.removeChild(t)})),this.zPivots={}}insertView(e){const t=this.view.stage;switch(this.options.sorting){case"approx":{const n=e.cell.getZIndex(),r=this.addZPivot(n);t.insertBefore(e.container,r);break}default:t.appendChild(e.container)}}findViewByCell(e){if(null==e)return null;const t=TI.isCell(e)?e.id:e;return this.views[t]}findViewByElem(e){if(null==e)return null;const t="string"==typeof e?this.view.stage.querySelector(e):e instanceof Element?e:e[0];if(t){const e=this.view.findAttr("data-cell-id",t);if(e)return this.views[e]}return null}findViewsFromPoint(e){const t={x:e.x,y:e.y};return this.model.getCells().map((e=>this.findViewByCell(e))).filter((e=>null!=e&&eL(e.container,{target:this.view.stage}).containsPoint(t)))}findEdgeViewsInArea(e,t={}){const n=nO.create(e);return this.model.getEdges().map((e=>this.findViewByCell(e))).filter((e=>{if(e){const r=eL(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}))}findViewsInArea(e,t={}){const n=nO.create(e);return this.model.getNodes().map((e=>this.findViewByCell(e))).filter((e=>{if(e){const r=eL(e.container,{target:this.view.stage});return t.strict?n.containsRect(r):n.isIntersectWithRect(r)}return!1}))}dispose(){this.resetUpdates(),this.stopListening()}}Mj([sj.dispose()],Oj.prototype,"dispose",null),function(e){e.FLAG_INSERT=1<<30,e.FLAG_REMOVE=1<<29,e.MOUNT_BATCH_SIZE=1e3,e.UPDATE_BATCH_SIZE=1e3,e.MIN_PRIORITY=2,e.SORT_DELAYING_BATCHES=["add","to-front","to-back"],e.UPDATE_DELAYING_BATCHES=["translate"]}(Oj||(Oj={}));var Lj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Aj extends sj{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();if("object"==typeof n){n=`${i.tx+r.sx*(n.x||0)}px ${i.ty+r.sy*(n.y||0)}px`}"object"==typeof t&&(t=nO.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="");const n=this.optionsCache;if(n&&n.image!==t.image)return;let r;const i=t.opacity,o=t.size;let a=t.repeat||"no-repeat";const s=mD.registry.get(a);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"),a=t.repeat&&a!==t.repeat?t.repeat:"repeat","object"==typeof o?(o.width*=i.width/e.width,o.height*=i.height/e.height):void 0===o&&(t.size={width:i.width/n,height:i.height/n})}else r=e.src,void 0===o&&(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=nk(t.size));const l=this.elem.style;l.backgroundImage=`url(${r})`,l.backgroundRepeat=a,l.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=nk(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()}}Lj([sj.dispose()],Aj.prototype,"dispose",null);var Dj,Nj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Pj=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};class Ij extends wN{constructor(e){super(),this.padding={left:0,top:0,right:0,bottom:0},this.options=Dj.getOptions(e);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"),this.$container=this.$(this.container).addClass(this.prefixClassName(Dj.containerClass)).css({width:n,height:r}),this.options.pageVisible&&this.$container.addClass(this.prefixClassName(Dj.pagedClass)),this.options.className&&this.$container.addClass(this.options.className);const i=this.graph.container;i.parentNode&&this.$container.insertBefore(i);const o=i.getAttribute("style");if(o){const e={};o.split(";").forEach((t=>{const n=t.trim();if(n){const t=n.split(":");t.length&&(e[t[0].trim()]=t[1]?t[1].trim():"")}})),Object.keys(e).forEach((t=>{"width"!==t&&"height"!==t&&(i.style[t]="",this.container.style[t]=e[t])}))}this.content=document.createElement("div"),this.$content=this.$(this.content).addClass(this.prefixClassName(Dj.contentClass)).css({width:this.graph.options.width,height:this.graph.options.height}),this.background=document.createElement("div"),this.$background=this.$(this.background).addClass(this.prefixClassName(Dj.backgroundClass)),this.$content.append(this.background),this.options.pageVisible||this.$content.append(this.graph.view.grid),this.$content.append(i),this.$content.appendTo(this.container),this.startListening(),this.options.pageVisible||this.graph.grid.update(),this.backgroundManager=new Ij.Background(this),this.options.autoResize||this.update()}get graph(){return this.options.graph}get model(){return this.graph.model}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),e.on("render:done",this.onRenderDone,this),e.on("unfreeze",this.onUpdate,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),t.on("batch:stop",this.onBatchStop,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),e.off("render:done",this.onRenderDone,this),e.off("unfreeze",this.onUpdate,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),t.off("batch:stop",this.onBatchStop,this),this.undelegateBackgroundEvents()}enableAutoResize(){this.options.autoResize=!0}disableAutoResize(){this.options.autoResize=!1}onUpdate(){!this.graph.isAsync()&&this.options.autoResize&&this.update()}onBatchStop(e){!this.graph.isAsync()&&this.options.autoResize&&Oj.UPDATE_DELAYING_BATCHES.includes(e.name)&&this.update()}delegateBackgroundEvents(e){const t=e||uj.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)}}onRenderDone({stats:e}){this.options.autoResize&&e.priority<2&&this.update()}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.options.fitTocontentOptions)&&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(){(db.IS_IE||db.IS_EDGE)&&this.$container.css("visibility","hidden")}afterManipulation(){(db.IS_IE||db.IS_EDGE)&&this.$container.css("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 o=document.createElement("div");for(let t=1,r=Math.floor(e/n);t<r;t+=1)this.$("<div/>").addClass(this.prefixClassName("graph-pagebreak-vertical")).css({left:t*n}).appendTo(o),i=!0;for(let e=1,n=Math.floor(t/r);e<n;e+=1)this.$("<div/>").addClass(this.prefixClassName("graph-pagebreak-horizontal")).css({top:e*r}).appendTo(o),i=!0;i&&(oM(o,this.prefixClassName("graph-pagebreak")),this.$(this.graph.view.grid).after(o),this.pageBreak=o)}}}update(){const e=this.getClientSize();this.cachedCenterPoint=this.clientToLocalPoint(e.width/2,e.height/2);let t=this.options.autoResizeOptions||this.options.fitTocontentOptions;"function"==typeof t&&(t=XT(t,this,this));const n=Object.assign({gridWidth:this.options.pageWidth,gridHeight:this.options.pageHeight,allowNewOrigin:"negative",contentArea:this.calcContextArea(t)},t);this.graph.fitToContent(this.getFitToContentOptions(n))}calcContextArea(e){const t=null==e?void 0:e.direction;if(!t)return this.graph.transform.getContentArea(e);function n(e){let t=e.getBBox();if(t&&e.isNode()){const n=e.getAngle();null!=n&&0!==n&&(t=t.bbox(n))}return t}const r=this.options.pageWidth||1,i=this.options.pageHeight||1;let o=this.graph.getCells();return t.includes("top")||(o=o.filter((e=>n(e).y>=0))),t.includes("left")||(o=o.filter((e=>n(e).x>=0))),t.includes("right")||(o=o.filter((e=>{const t=n(e);return t.x+t.width<=r}))),t.includes("bottom")||(o=o.filter((e=>{const t=n(e);return t.y+t.height<=i}))),this.model.getCellsBBox(o)||new nO}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=nO.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.resizeGraph(n.width*r,n.height*i)}scrollbarPosition(e,t,n){if(null==e&&null==t)return{left:this.container.scrollLeft,top:this.container.scrollTop};const r={};return"number"==typeof e&&(r.scrollLeft=e),"number"==typeof t&&(r.scrollTop=t),n&&n.animation?this.$container.animate(r,n.animation):this.$container.prop(r),this}scrollToPoint(e,t,n){const r=this.getClientSize(),i=this.graph.matrix(),o={};return"number"==typeof e&&(o.scrollLeft=e-r.width/2+i.e+(this.padding.left||0)),"number"==typeof t&&(o.scrollTop=t-r.height/2+i.f+(this.padding.top||0)),n&&n.animation?this.$container.animate(o,n.animation):this.$container.prop(o),this}scrollToContent(e){const t=this.sx,n=this.sy,r=this.graph.getContentArea().getCenter();return this.scrollToPoint(r.x*t,r.y*n,e)}scrollToCell(e,t){const n=this.sx,r=this.sy,i=e.getBBox().getCenter();return this.scrollToPoint(i.x*n,i.y*r,t)}center(e){return this.centerPoint(e)}centerPoint(e,t,n){const r=this.graph.matrix(),i=r.a,o=r.d,a=-r.e,s=-r.f,l=a+this.graph.options.width,c=s+this.graph.options.height;let u;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*=o:t=r.y}else u=e,e=(a+l)/2,t=(s+c)/2;if(u&&u.padding)return this.positionPoint({x:e,y:t},"50%","50%",u);const d=this.getPadding(),h=this.getClientSize(),f=h.width/2,p=h.height/2,g=f-d.left-e+a,m=f-d.right+e-l,v=p-d.top-t+s,y=p-d.bottom+t-c;this.addPadding(Math.max(g,0),Math.max(m,0),Math.max(v,0),Math.max(y,0));const b=this.scrollToPoint(e,t,u||void 0);return this.restoreClientSize(),b}centerContent(e){return this.positionContent("center",e)}centerCell(e,t){return this.positionCell(e,"center",t)}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=nO.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:i}=r,o=Pj(r,["padding"]),a=qT(i),s=nO.fromSize(this.getClientSize()),l=s.clone().moveAndExpand({x:a.left,y:a.top,width:-a.right-a.left,height:-a.top-a.bottom});(t=BT(t,Math.max(0,l.width)))<0&&(t=l.width+t),(n=BT(n,Math.max(0,l.height)))<0&&(n=l.height+n);const c=l.getTopLeft().translate(t,n),u=s.getCenter().diff(c),d=this.zoom(),h=u.scale(1/d,1/d),f=tO.create(e).translate(h);return this.centerPoint(f.x,f.y,o)}zoom(e,t){if(null==e)return this.sx;let n,r;t=t||{};const i=this.getClientSize(),o=this.clientToLocalPoint(i.width/2,i.height/2);let a=e,s=e;if(t.absolute||(a+=this.sx,s+=this.sy),t.scaleGrid&&(a=Math.round(a/t.scaleGrid)*t.scaleGrid,s=Math.round(s/t.scaleGrid)*t.scaleGrid),t.maxScale&&(a=Math.min(t.maxScale,a),s=Math.min(t.maxScale,s)),t.minScale&&(a=Math.max(t.minScale,a),s=Math.max(t.minScale,s)),a=this.graph.transform.clampScale(a),s=this.graph.transform.clampScale(s),t.center){const e=a/this.sx,i=s/this.sy;n=t.center.x-(t.center.x-o.x)/e,r=t.center.y-(t.center.y-o.y)/i}else n=o.x,r=o.y;return this.beforeManipulation(),this.graph.transform.scale(a,s),this.centerPoint(n,r),this.afterManipulation(),this}zoomToRect(e,t={}){const n=nO.create(e),r=this.graph;t.contentArea=n,null==t.viewportArea&&(t.viewportArea={x:r.options.x,y:r.options.y,width:this.$container.width(),height:this.$container.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,t=e.y,e=e.x),null==n&&(n={});const o=this.sx,a=Math.max(n.scale||o,1e-6),s=this.getClientSize(),l=new tO(e,t),c=this.clientToLocalPoint(s.width/2,s.height/2);if(o===a){const e=c.diff(l).scale(o,o).round();r=`translate(${e.x}px,${e.y}px)`}else{const e=a/(o-a)*l.distance(c),t=c.clone().move(l,e),n=this.localToBackgroundPoint(t).round();r=`scale(${a/o})`,i=`${n.x}px ${n.y}px`}const u=n.onTransitionEnd;return this.$container.addClass(Dj.transitionClassName),this.$content.off(Dj.transitionEventName).on(Dj.transitionEventName,(n=>{this.syncTransition(a,{x:e,y:t}),"function"==typeof u&&XT(u,this,n.originalEvent)})).css({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 this.$container.removeClass(Dj.transitionClassName),this.$content.off(Dj.transitionEventName).css({transform:"",transformOrigin:"",transition:"",transitionDuration:"",transitionDelay:"",transitionTimingFunction:""}),this}transitionToRect(e,t={}){const n=nO.create(e),r=t.maxScale||1/0,i=t.minScale||Number.MIN_VALUE,o=t.scaleGrid||null,a=t.visibility||1,s=t.center?tO.create(t.center):n.getCenter(),l=this.getClientSize(),c=l.width*a,u=l.height*a;let d=new nO(s.x-c/2,s.y-u/2,c,u).getMaxUniformScaleToFit(n,s);return d=Math.min(d,r),o&&(d=Math.floor(d/o)*o),d=Math.max(i,d),this.transitionToPoint(s,Object.assign({scale:d},t))}startPanning(e){const t=this.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("pan:start",{e:t}),this.$(document.body).on({"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this),"mouseleave.panning":this.stopPanning.bind(this)}),this.$(window).on("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){this.$(document.body).off(".panning"),this.$(window).off(".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 tO(n/i.a,r/i.d)}localToBackgroundPoint(e,t){const n="object"==typeof e?tO.create(e):new tO(e,t),r=this.graph.matrix(),i=this.padding;return XO(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,this.$container.css({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 o=0,a=0;return e<=i.left+n&&(o=-10),t<=i.top+n&&(a=-10),e>=i.right-n&&(o=n),t>=i.bottom-n&&(a=n),0!==o&&(r.scrollLeft+=o),0!==a&&(r.scrollTop+=a),{scrollerX:o,scrollerY:a}}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,this.$content.css({width:i.left+this.graph.options.width+i.right,height:i.top+this.graph.options.height+i.bottom});const o=this.graph.container;return o.style.left=`${this.padding.left}px`,o.style.top=`${this.padding.top}px`,this}getPadding(){const e=this.options.padding;return qT("function"==typeof e?XT(e,this,this):e)}getVisibleArea(){const e=this.graph.matrix(),t=this.getClientSize(),n=ZO({x:this.container.scrollLeft||0,y:this.container.scrollTop||0,width:t.width,height:t.height},e.inverse());return n.x-=(this.padding.left||0)/this.sx,n.y-=(this.padding.top||0)/this.sy,n}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(){return this.$container.css("overflow","hidden"),this}unlock(){return this.$container.css("overflow","scroll"),this}onRemove(){this.stopListening()}dispose(){this.$(this.graph.container).insertBefore(this.$container),this.remove()}}function jj(e,t,n,r={}){if(n){const i=n.graph,o=i.view.normalizeEvent(t),a=i.snapToGrid(o.clientX,o.clientY);n.notify(e,Object.assign({e:o,view:n,node:n.cell,cell:n.cell,x:a.x,y:a.y},r))}}Nj([wN.dispose()],Ij.prototype,"dispose",null),function(e){e.Background=class extends Aj{constructor(e){super(e.graph),this.scroller=e,e.options.background&&this.draw(e.options.background)}get elem(){return this.scroller.background}init(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}updateBackgroundOptions(e){this.scroller.options.background=e}}}(Ij||(Ij={})),function(e){e.containerClass="graph-scroller",e.panningClass=`${e.containerClass}-panning`,e.pannableClass=`${e.containerClass}-pannable`,e.pagedClass=`${e.containerClass}-paged`,e.contentClass=`${e.containerClass}-content`,e.backgroundClass=`${e.containerClass}-background`,e.transitionClassName="transition-in-progress",e.transitionEventName="transitionend.graph-scroller-transition",e.defaultOptions={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},e.getOptions=function(t){const n=CC({},e.defaultOptions,t);return null==n.pageWidth&&(n.pageWidth=t.graph.options.width),null==n.pageHeight&&(n.pageHeight=t.graph.options.height),n}}(Dj||(Dj={}));var Rj,Fj,zj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Yj extends wN{constructor(e){super(),this.options=CC({},Rj.defaultOptions,e),this.options.model&&(this.options.collection=this.options.model.collection),this.options.collection?this.collection=this.options.collection:(this.collection=new WI([],{comparator:Rj.depthComparator}),this.options.collection=this.collection),this.boxCount=0,this.createContainer(),this.initHandles(),this.startListening()}get graph(){return this.options.graph}get boxClassName(){return this.prefixClassName(Rj.classNames.box)}get $boxes(){return this.$container.children(`.${this.boxClassName}`)}get handleOptions(){return this.options}startListening(){const e=this.graph,t=this.collection;this.delegateEvents({[`mousedown .${this.boxClassName}`]:"onSelectionBoxMouseDown",[`touchstart .${this.boxClassName}`]:"onSelectionBoxMouseDown"},!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),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.updateSelectionBoxes({async:!1})}onCellChanged(){this.updateSelectionBoxes()}onNodePositionChanged({node:e,options:t}){const{showNodeSelectionBox:n,pointerEvents:r}=this.options,{ui:i,selection:o,translateBy:a,snapped:s}=t,l=!(!0===n&&"none"!==r||this.translating||o),c=i&&a&&e.id===a;if(l&&(c||s)){this.translating=!0;const n=e.position(),r=e.previous("position"),i=n.x-r.x,o=n.y-r.y;0===i&&0===o||this.translateSelectedNodes(i,o,e,t),this.translating=!1}}onModelUpdated({removed:e}){e&&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={}){return t.dryrun=!0,this.collection.remove(Array.isArray(e)?e:[e],t),this}reset(e,t={}){if(e){if(t.batch){const n=this.filter(Array.isArray(e)?e:[e]);return this.collection.reset(n,Object.assign(Object.assign({},t),{ui:!0})),this}const n=this.cells,r=this.filter(Array.isArray(e)?e:[e]),i={},o={};n.forEach((e=>i[e.id]=e)),r.forEach((e=>o[e.id]=e));const a=[],s=[];return r.forEach((e=>{i[e.id]||a.push(e)})),n.forEach((e=>{o[e.id]||s.push(e)})),s.length&&this.unselect(s,Object.assign(Object.assign({},t),{ui:!0})),a.length&&this.select(a,Object.assign(Object.assign({},t),{ui:!0})),0===s.length&&0===a.length&&this.updateContainer(),this}return this.clean(t)}clean(e={}){return this.length&&(!1===e.batch?this.unselect(this.cells,e):this.collection.reset([],Object.assign(Object.assign({},e),{ui:!0}))),this}setFilter(e){this.options.filter=e}setContent(e){this.options.content=e}startSelecting(e){let t,n;e=this.normalizeEvent(e),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=this.$(r).offset(),o=r.scrollLeft,a=r.scrollTop;t=e.clientX-i.left+window.pageXOffset+o,n=e.clientY-i.top+window.pageYOffset+a}this.$container.css({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(Rj.documentEvents,e.data)}filter(e){const t=this.options.filter;return Array.isArray(t)?e.filter((e=>!t.includes(e)&&!t.includes(e.shape))):"function"==typeof t?e.filter((e=>XT(t,this.graph,e))):e}stopSelecting(e){const t=this.graph,n=this.getEventData(e);switch(n.action){case"selecting":{let e=this.$container.width(),n=this.$container.height();const r=this.$container.offset(),i=t.pageToLocal(r.left,r.top),o=t.transform.getScale();e/=o.sx,n/=o.sy;const a=new nO(i.x,i.y,e,n),s=this.getCellViewsInArea(a).map((e=>e.cell));this.reset(s,{batch:!0}),this.hideRubberband();break}case"translating":{const r=t.snapToGrid(e.clientX,e.clientY);if(!this.options.following){const e=n;this.updateSelectedNodesPosition({dx:e.clientX-e.originX,dy:e.clientY-e.originY})}this.graph.model.stopBatch("move-selection"),this.notifyBoxEvent("box:mouseup",e,r.x,r.y);break}default:this.clean()}}onMouseUp(e){this.getEventData(e).action&&(this.stopSelecting(e),this.undelegateDocumentEvents())}onSelectionBoxMouseDown(e){this.options.following||e.stopPropagation();const t=this.normalizeEvent(e);this.options.movable&&this.startTranslating(t);const n=this.getCellViewFromElem(t.target);this.setEventData(t,{activeView:n});const r=this.graph.snapToGrid(t.clientX,t.clientY);this.notifyBoxEvent("box:mousedown",t,r.x,r.y),this.delegateDocumentEvents(Rj.documentEvents,t.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})}getSelectionOffset(e,t){let n=e.x-t.clientX,r=e.y-t.clientY;const i=this.graph.hook.getRestrictArea();if(i){const o=this.collection.toArray(),a=TI.getCellsBBox(o,{deep:!0})||nO.create(),s=i.x-a.x,l=i.y-a.y,c=i.x+i.width-(a.x+a.width),u=i.y+i.height-(a.y+a.height);if(n<s&&(n=s),r<l&&(r=l),c<n&&(n=c),u<r&&(r=u),!this.options.following){const i=e.x-t.originX,o=e.y-t.originY;n=i<=s||i>=c?0:n,r=o<=l||o>=u?0:r}}return{dx:n,dy:r}}updateSelectedNodesPosition(e){const{dx:t,dy:n}=e;if(t||n)if(this.translateSelectedNodes(t,n),this.boxesUpdated)this.collection.length>1&&this.updateSelectionBoxes();else{const e=this.graph.transform.getScale();this.$boxes.add(this.$selectionContainer).css({left:"+="+t*e.sx,top:"+="+n*e.sy})}}autoScrollGraph(e,t){const n=this.graph.scroller.widget;return n?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&&(this.$container.appendTo(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 o=t.clientX-e.clientX+e.scrollerX,a=t.clientY-e.clientY+e.scrollerY,s=parseInt(this.$container.css("left"),10),l=parseInt(this.$container.css("top"),10);this.$container.css({left:o<0?e.offsetX+o:s,top:a<0?e.offsetY+a:l,width:Math.abs(o),height:Math.abs(a)});break}case"translating":{const r=this.graph.snapToGrid(t.clientX,t.clientY),i=n,o=this.getSelectionOffset(r,i);this.options.following?this.updateSelectedNodesPosition(o):this.updateContainerPosition(o),o.dx&&(i.clientX=r.x),o.dy&&(i.clientY=r.y),this.notifyBoxEvent("box:mousemove",e,r.x,r.y);break}}this.boxesUpdated=!1}translateSelectedNodes(e,t,n,r){const i={},o=[];if(n&&(i[n.id]=!0),this.collection.toArray().forEach((e=>{e.getDescendants({deep:!0}).forEach((e=>{i[e.id]=!0}))})),r&&r.translateBy){const e=this.graph.getCellById(r.translateBy);e&&(i[e.id]=!0,e.getDescendants({deep:!0}).forEach((e=>{i[e.id]=!0})),o.push(e))}this.collection.toArray().forEach((n=>{if(!i[n.id]){const a=Object.assign(Object.assign({},r),{selection:this.cid,exclude:o});n.translate(e,t,a),this.graph.model.getConnectedEdges(n).forEach((n=>{i[n.id]||(n.translate(e,t,a),i[n.id]=!0)}))}}))}getCellViewsInArea(e){const t=this.graph,n={strict:this.options.strict};let r=[];return this.options.rubberNode&&(r=this.options.useCellGeometry?r.concat(t.model.getNodesInArea(e,n).map((e=>t.renderer.findViewByCell(e))).filter((e=>null!=e))):r.concat(t.renderer.findViewsInArea(e,n))),this.options.rubberEdge&&(r=this.options.useCellGeometry?r.concat(t.model.getEdgesInArea(e,n).map((e=>t.renderer.findViewByCell(e))).filter((e=>null!=e))):r.concat(t.renderer.findEdgeViewsInArea(e,n))),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)&&(this.$container.find(`[data-cell-id="${e.id}"]`).remove(),0===this.$boxes.length&&this.hide(),this.boxCount=Math.max(0,this.boxCount-1))}destroyAllSelectionBoxes(e){e.forEach((e=>this.removeCellUnSelectedClassName(e))),this.hide(),this.$boxes.remove(),this.boxCount=0}hide(){this.$container.removeClass(this.prefixClassName(Rj.classNames.rubberband)).removeClass(this.prefixClassName(Rj.classNames.selected))}showRubberband(){this.$container.addClass(this.prefixClassName(Rj.classNames.rubberband))}hideRubberband(){this.$container.removeClass(this.prefixClassName(Rj.classNames.rubberband))}showSelected(){this.$container.removeAttr("style").addClass(this.prefixClassName(Rj.classNames.selected))}createContainer(){this.container=document.createElement("div"),this.$container=this.$(this.container),this.$container.addClass(this.prefixClassName(Rj.classNames.root)),this.options.className&&this.$container.addClass(this.options.className),this.$selectionContainer=this.$("<div/>").addClass(this.prefixClassName(Rj.classNames.inner)),this.$selectionContent=this.$("<div/>").addClass(this.prefixClassName(Rj.classNames.content)),this.$selectionContainer.append(this.$selectionContent),this.$selectionContainer.attr("data-selection-length",this.collection.length),this.$container.prepend(this.$selectionContainer),this.$handleContainer=this.$selectionContainer}updateContainerPosition(e){(e.dx||e.dy)&&this.$selectionContainer.css({left:`+=${e.dx}`,top:`+=${e.dy}`})}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:this.options.useCellGeometry});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)}})),this.$selectionContainer.css({position:"absolute",pointerEvents:"none",left:e.x,top:e.y,width:t.x-e.x,height:t.y-e.y}).attr("data-selection-length",this.collection.length);const n=this.options.content;if(n)if("function"==typeof n){const e=XT(n,this.graph,this,this.$selectionContent[0]);e&&this.$selectionContent.html(e)}else this.$selectionContent.html(n);this.collection.length>0&&!this.container.parentNode?this.$container.appendTo(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}createSelectionBox(e){if(this.addCellSelectedClassName(e),this.canShowSelectionBox(e)){const t=this.graph.renderer.findViewByCell(e);if(t){const n=t.getBBox({useCellGeometry:this.options.useCellGeometry}),r=this.boxClassName;this.$("<div/>").addClass(r).addClass(`${r}-${e.isNode()?"node":"edge"}`).attr("data-cell-id",e.id).css({position:"absolute",left:n.x,top:n.y,width:n.width,height:n.height,pointerEvents:this.options.pointerEvents||"auto"}).appendTo(this.container),this.showSelected(),this.boxCount+=1}}}updateSelectionBoxes(e={}){this.collection.length>0&&(this.boxesUpdated=!0,this.graph.renderer.requestViewUpdate(this,1,2,e))}confirmUpdate(){return this.boxCount&&(this.hide(),this.$boxes.each(((e,t)=>{const n=this.$(t).remove().attr("data-cell-id"),r=this.collection.get(n);r&&this.createSelectionBox(r)})),this.updateContainer()),0}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.updateContainer()}onReseted({previous:e,current:t}){this.destroyAllSelectionBoxes(e),t.forEach((e=>{this.listenCellRemoveEvent(e),this.createSelectionBox(e)})),this.updateContainer()}onCellAdded({cell:e}){this.listenCellRemoveEvent(e),this.createSelectionBox(e),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}),this.graph.trigger("cell:selected",{cell:e,options:n}),e.isNode()?(this.trigger("node:selected",{cell:e,options:n,node:e}),this.graph.trigger("node:selected",{cell:e,options:n,node:e})):e.isEdge()&&(this.trigger("edge:selected",{cell:e,options:n,edge:e}),this.graph.trigger("edge:selected",{cell:e,options:n,edge:e}))})),t.forEach((e=>{this.trigger("cell:unselected",{cell:e,options:n}),this.graph.trigger("cell:unselected",{cell:e,options:n}),e.isNode()?(this.trigger("node:unselected",{cell:e,options:n,node:e}),this.graph.trigger("node:unselected",{cell:e,options:n,node:e})):e.isEdge()&&(this.trigger("edge:unselected",{cell:e,options:n,edge:e}),this.graph.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),this.graph.trigger("selection:changed",r)}deleteSelectedCells(){const e=this.collection.toArray();this.clean(),this.graph.model.removeCells(e,{selection:this.cid})}startRotate({e:e}){const t=this.collection.toArray(),n=TI.getCellsBBox(t).getCenter(),r=this.graph.snapToGrid(e.clientX,e.clientY),i=t.reduce(((e,t)=>(e[t.id]=GM.normalize(t.getAngle()),e)),{});this.setEventData(e,{center:n,angles:i,start:r.theta(n)})}doRotate({e:e}){const t=this.getEventData(e),n=this.graph.options.rotating.grid,r="function"==typeof n?XT(n,this.graph,null):n,i=this.graph.snapToGrid(e.clientX,e.clientY),o=t.start-i.theta(t.center);t.rotated||(t.rotated=!0),Math.abs(o)>.001&&(this.collection.toArray().forEach((e=>{const n=yD.snapToGrid(t.angles[e.id]+o,r||15);e.rotate(n,{absolute:!0,center:t.center,selection:this.cid})})),this.updateSelectionBoxes())}stopRotate({e:e}){const t=this.getEventData(e);t.rotated&&(t.rotated=!1,this.collection.toArray().forEach((t=>{jj("node:rotated",e,this.graph.findViewByCell(t))})))}startResize({e:e}){const t=this.graph.getGridSize(),n=this.collection.toArray(),r=TI.getCellsBBox(n),i=n.map((e=>e.getBBox())),o=i.reduce(((e,t)=>t.width<e?t.width:e),1/0),a=i.reduce(((e,t)=>t.height<e?t.height:e),1/0);this.setEventData(e,{bbox:r,cells:this.graph.model.getSubGraph(n),minWidth:t*r.width/o,minHeight:t*r.height/a})}doResize({e:e,dx:t,dy:n}){const r=this.eventData(e),i=r.bbox,o=i.width,a=i.height,s=Math.max(o+t,r.minWidth),l=Math.max(a+n,r.minHeight);r.resized||(r.resized=!0),(Math.abs(o-s)>.001||Math.abs(a-l)>.001)&&(this.graph.model.resizeCells(s,l,r.cells,{selection:this.cid}),i.width=s,i.height=l,this.updateSelectionBoxes())}stopResize({e:e}){const t=this.eventData(e);t.resized&&(t.resized=!1,this.collection.toArray().forEach((t=>{jj("node:resized",e,this.graph.findViewByCell(t))})))}dispose(){this.clean(),this.remove()}}zj([wN.dispose()],Yj.prototype,"dispose",null),hk(Yj,gj),function(e){const t="widget-selection";e.classNames={root:t,inner:`${t}-inner`,box:`${t}-box`,content:`${t}-content`,rubberband:`${t}-rubberband`,selected:`${t}-selected`},e.documentEvents={mousemove:"adjustSelection",touchmove:"adjustSelection",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},e.defaultOptions={movable:!0,following:!0,strict:!1,useCellGeometry:!1,content(e){return IS('<%= length %> node<%= length > 1 ? "s":"" %> selected.')({length:e.length})},handles:[{name:"remove",position:"nw",events:{mousedown:"deleteSelectedCells"}},{name:"rotate",position:"sw",events:{mousedown:"startRotate",mousemove:"doRotate",mouseup:"stopRotate"}},{name:"resize",position:"se",events:{mousedown:"startResize",mousemove:"doResize",mouseup:"stopResize"}}]},e.depthComparator=function(e){return e.getAncestors().length}}(Rj||(Rj={}));class Bj extends bj{get node(){return this.cell}get containerClassName(){return this.prefixClassName("widget-transform")}get resizeClassName(){return`${this.containerClassName}-resize`}get rotateClassName(){return`${this.containerClassName}-rotate`}init(e){this.options=Object.assign(Object.assign({},Fj.defaultOptions),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),super.startListening()}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),super.stopListening()}renderHandles(){this.container=document.createElement("div"),this.$container=this.$(this.container);const e=this.$("<div/>").prop("draggable",!1),t=e.clone().addClass(this.rotateClassName),n=Fj.POSITIONS.map((t=>e.clone().addClass(this.resizeClassName).attr("data-position",t)));this.empty(),this.$container.append(n,t)}render(){return this.renderHandles(),this.view.addClass(Fj.NODE_CLS),this.$container.addClass(this.containerClassName).toggleClass("no-orth-resize",this.options.preserveAspectRatio||!this.options.orthogonalResizing).toggleClass("no-resize",!this.options.resizable).toggleClass("no-rotate",!this.options.rotatable),this.options.className&&this.$container.addClass(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=GM.normalize(this.node.getAngle()),r=0!==n?`rotate(${n}deg)`:"";return this.$container.css({transform:r,width:t.width,height:t.height,left:t.x,top:t.y}),this.updateResizerDirections(),this}remove(){return this.view.removeClass(Fj.NODE_CLS),super.remove()}onKnobMouseDown(){this.startHandle()}onKnobMouseUp(){this.stopHandle()}updateResizerDirections(){const e=GM.normalize(this.node.getAngle()),t=Math.floor(e*(Fj.DIRECTIONS.length/360));if(t!==this.prevShift){const e=Fj.DIRECTIONS.slice(t).concat(Fj.DIRECTIONS.slice(0,t)),n=e=>`${this.containerClassName}-cursor-${e}`;this.$container.find(`.${this.resizeClassName}`).removeClass(Fj.DIRECTIONS.map((e=>n(e))).join(" ")).each(((t,r)=>{this.$(r).addClass(n(e[t]))})),this.prevShift=t}}getTrueDirection(e){const t=GM.normalize(this.node.getAngle());let n=Fj.POSITIONS.indexOf(e);return n+=Math.floor(t*(Fj.POSITIONS.length/360)),n%=Fj.POSITIONS.length,Fj.POSITIONS[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=this.$(e.target).attr("data-position"),n=this.graph.findViewByCell(this.node);this.prepareResizing(e,t),this.startAction(e),jj("node:resize:mousedown",e,n)}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 o=this.toValidResizeDirection(t),a={"top-right":"bottomLeft","top-left":"bottomRight","bottom-left":"topRight","bottom-right":"topLeft"}[o],s=GM.normalize(this.node.getAngle());this.setEventData(e,{selector:a,direction:o,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.graph.findViewByCell(this.node),n=this.node.getBBox().getCenter(),r=this.normalizeEvent(e),i=this.graph.snapToGrid(r.clientX,r.clientY);this.setEventData(e,{center:n,action:"rotating",angle:GM.normalize(this.node.getAngle()),start:tO.create(i).theta(n)}),this.startAction(e),jj("node:rotate:mousedown",e,t)}onMouseMove(e){const t=this.graph.findViewByCell(this.node);let n=this.getEventData(e);if(n.action){const r=this.normalizeEvent(e);let i=r.clientX,o=r.clientY;const a=this.graph.scroller.widget,s=this.options.restrictedResizing;if(!0===s||"number"==typeof s){const e=!0===s?0:s,t=a?Math.max(e,8):e,n=this.graph.container.getBoundingClientRect();i=zT(i,n.left+t,n.right-t),o=zT(o,n.top+t,n.bottom-t)}else this.options.autoScrollOnResizing&&a&&a.autoScroll(i,o);const l=this.graph.snapToGrid(i,o),c=this.graph.getGridSize(),u=this.node,d=this.options;if("resizing"===n.action){n.resized||(t&&(t.addClass("node-resizing"),jj("node:resize",e,t)),n.resized=!0);const r=u.getBBox(),i=tO.create(l).rotate(n.angle,r.getCenter()).diff(r[n.selector]);let o=n.resizeX?i.x*n.resizeX:r.width,a=n.resizeY?i.y*n.resizeY:r.height;const s=o,h=a;if(o=yD.snapToGrid(o,c),a=yD.snapToGrid(a,c),o=Math.max(o,d.minWidth||c),a=Math.max(a,d.minHeight||c),o=Math.min(o,d.maxWidth||1/0),a=Math.min(a,d.maxHeight||1/0),d.preserveAspectRatio){const e=r.width*a/r.height,t=r.height*o/r.width;o<e?a=t:o=e}const f=n.relativeDirection;if(d.allowReverse&&(s<=-o||h<=-a)){let t;"left"===f?s<=-o&&(t="right"):"right"===f?s<=-o&&(t="left"):"top"===f?h<=-a&&(t="bottom"):"bottom"===f?h<=-a&&(t="top"):"top-left"===f?s<=-o&&h<=-a?t="bottom-right":s<=-o?t="top-right":h<=-a&&(t="bottom-left"):"top-right"===f?s<=-o&&h<=-a?t="bottom-left":s<=-o?t="top-left":h<=-a&&(t="bottom-right"):"bottom-left"===f?s<=-o&&h<=-a?t="top-right":s<=-o?t="bottom-right":h<=-a&&(t="top-left"):"bottom-right"===f&&(s<=-o&&h<=-a?t="top-left":s<=-o?t="bottom-left":h<=-a&&(t="top-right"));const n=t;this.stopHandle();const r=this.$container.find(`.${this.resizeClassName}[data-position="${n}"]`);this.startHandle(r[0]),this.prepareResizing(e,n),this.onMouseMove(e)}if(r.width!==o||r.height!==a){const r={ui:!0,direction:n.direction,relativeDirection:n.relativeDirection,trueDirection:n.trueDirection,minWidth:d.minWidth,minHeight:d.minHeight,maxWidth:d.maxWidth,maxHeight:d.maxHeight,preserveAspectRatio:!0===d.preserveAspectRatio};u.resize(o,a,r),jj("node:resizing",e,t)}jj("node:resize:mousemove",e,t)}else if("rotating"===n.action){n.rotated||(t&&(t.addClass("node-rotating"),jj("node:rotate",e,t)),n.rotated=!0);const r=u.getAngle(),i=n.start-tO.create(l).theta(n.center);let o=n.angle+i;d.rotateGrid&&(o=yD.snapToGrid(o,d.rotateGrid)),o=GM.normalize(o),r!==o&&(u.rotate(o,{absolute:!0}),jj("node:rotating",e,t)),jj("node:rotate:mousemove",e,t)}}}onMouseUp(e){const t=this.graph.findViewByCell(this.node),n=this.getEventData(e);n.action&&(this.stopAction(e),this.model.stopBatch("resizing"===n.action?"resize":"rotate",{cid:this.cid}),"resizing"===n.action?jj("node:resize:mouseup",e,t):"rotating"===n.action&&jj("node:rotate:mouseup",e,t))}startHandle(e){if(this.handle=e||null,this.$container.addClass(`${this.containerClassName}-active`),e){this.$(e).addClass(`${this.containerClassName}-active-handle`);const t=e.getAttribute("data-position");if(t){const e=Fj.DIRECTIONS[Fj.POSITIONS.indexOf(t)];this.$container.addClass(`${this.containerClassName}-cursor-${e}`)}}}stopHandle(){if(this.$container.removeClass(`${this.containerClassName}-active`),this.handle){this.$(this.handle).removeClass(`${this.containerClassName}-active-handle`);const e=this.handle.getAttribute("data-position");if(e){const t=Fj.DIRECTIONS[Fj.POSITIONS.indexOf(e)];this.$container.removeClass(`${this.containerClassName}-cursor-${t}`)}this.handle=null}}startAction(e){this.startHandle(e.target),this.graph.view.undelegateEvents(),this.delegateDocumentEvents(Fj.documentEvents,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?jj("node:resized",e,t):"rotating"===n.action&&n.rotated&&jj("node:rotated",e,t))}}!function(e){e.NODE_CLS="has-widget-transform",e.DIRECTIONS=["nw","n","ne","e","se","s","sw","w"],e.POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp"},e.defaultOptions={minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,rotateGrid:15,rotatable:!0,preserveAspectRatio:!1,orthogonalResizing:!0,restrictedResizing:!1,autoScrollOnResizing:!0,allowReverse:!0}}(Fj||(Fj={}));var Hj,qj=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};!function(e){e.parseOptionGroup=function(e,t,n){const r={};return Object.keys(n||{}).forEach((i=>{const o=n[i];r[i]="function"==typeof o?o.call(e,t):o})),r}}(Hj||(Hj={})),function(e){e.get=function(t){const{grid:n,panning:r,selecting:i,embedding:o,snapline:a,resizing:s,rotating:l,knob:c,clipboard:u,history:d,scroller:h,minimap:f,keyboard:p,mousewheel:g}=t,m=qj(t,["grid","panning","selecting","embedding","snapline","resizing","rotating","knob","clipboard","history","scroller","minimap","keyboard","mousewheel"]),v=t.container;if(null==v)throw new Error("Ensure the container of the graph is specified and valid");null==m.width&&(m.width=v.clientWidth),null==m.height&&(m.height=v.clientHeight);const y=CC({},e.defaults,m),b={size:10,visible:!1};return y.grid="number"==typeof n?{size:n,visible:!1}:"boolean"==typeof n?Object.assign(Object.assign({},b),{visible:n}):Object.assign(Object.assign({},b),n),["panning","selecting","embedding","snapline","resizing","rotating","knob","clipboard","history","scroller","minimap","keyboard","mousewheel"].forEach((e=>{const n=t[e];"boolean"==typeof n?y[e].enabled=n:y[e]=Object.assign(Object.assign({},y[e]),n)})),y.background&&y.scroller.enabled&&null==y.scroller.background&&(y.scroller.background=y.background,delete y.background),y}}(Hj||(Hj={})),function(e){e.defaults={x:0,y:0,grid:{size:10,visible:!1},scaling:{min:.01,max:16},background:!1,highlighting:{default:{name:"stroke",args:{padding:3}},nodeAvailable:{name:"className",args:{className:yD.prefix("available-node")}},magnetAvailable:{name:"className",args:{className:yD.prefix("available-magnet")}}},connecting:{snap:!1,multi:!0,dangling:!0,allowLoop:!0,allowNode:!0,allowEdge:!1,allowPort:!0,highlight:!1,anchor:"center",edgeAnchor:"ratio",connectionPoint:"boundary",strategy:null,router:"normal",connector:"normal",validateConnection({type:e,sourceView:t,targetView:n}){return null!=("target"===e?n:t)},createEdge(){return new rj}},transforming:{clearAll:!0,clearOnBlankMouseDown:!0},resizing:{enabled:!1,minWidth:0,minHeight:0,maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,orthogonal:!0,restricted:!1,autoScroll:!0,preserveAspectRatio:!1,allowReverse:!0},rotating:{enabled:!1,grid:15},translating:{restrict:!1},knob:{enabled:!1,clearAll:!0,clearOnBlankMouseDown:!0},embedding:{enabled:!1,findParent:"bbox",frontOnly:!0,validate:()=>!0},selecting:{enabled:!1,rubberband:!1,rubberNode:!0,rubberEdge:!1,pointerEvents:"auto",multiple:!0,multipleSelectionModifiers:["ctrl","meta"],movable:!0,strict:!1,useCellGeometry:!1,selectCellOnMoved:!1,selectNodeOnMoved:!1,selectEdgeOnMoved:!1,content:null,handles:null},panning:{enabled:!1,eventTypes:["leftMouseDown"]},snapline:{enabled:!1},clipboard:{enabled:!1},history:{enabled:!1},scroller:{enabled:!1},keyboard:{enabled:!1},mousewheel:{enabled:!1,factor:1.2,zoomAtMousePosition:!0},async:!1,frozen:!1,sorting:"exact",moveThreshold:0,clickThreshold:0,magnetThreshold:0,preventDefaultDblClick:!0,preventDefaultMouseDown:!1,preventDefaultContextMenu:!0,preventDefaultBlankAction:!0,interacting:{edgeLabelMovable:!1},guard:()=>!1}}(Hj||(Hj={}));var Uj=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};class Vj extends sj{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}-${PT(JSON.stringify(e))}`),!this.isDefined(t)){const r=dD.registry.get(n);if(null==r)return dD.registry.onNotFound(n);const i=r(e.args||{}),o=Object.assign(Object.assign({x:-1,y:-1,width:3,height:3,filterUnits:"objectBoundingBox"},e.attrs),{id:t});kO.create(TN.sanitize(i),o).appendTo(this.defs)}return t}gradient(e){let t=e.id;const n=e.type;if(t||(t=`gradient-${n}-${this.cid}-${PT(JSON.stringify(e))}`),!this.isDefined(t)){const r=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}"/>`})),i=`<${n}>${r.join("")}</${n}>`,o=Object.assign({id:t},e.attrs);kO.create(i,o).appendTo(this.defs)}return t}marker(e){const{id:t,refX:n,refY:r,markerUnits:i,markerOrient:o,tagName:a,children:s}=e,l=Uj(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]);let c=t;if(c||(c=`marker-${this.cid}-${PT(JSON.stringify(e))}`),!this.isDefined(c)){"path"!==a&&delete l.d;const e=kO.create("marker",{refX:n,refY:r,id:c,overflow:"visible",orient:null!=o?o:"auto",markerUnits:i||"userSpaceOnUse"},s?s.map((e=>{var{tagName:t}=e,n=Uj(e,["tagName"]);return kO.create(`${t}`||"path",IM(Object.assign(Object.assign({},l),n)))})):[kO.create(a||"path",IM(l))]);this.defs.appendChild(e.node)}return c}remove(e){const t=this.svg.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}var Wj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Gj=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};class $j extends sj{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,o)=>{const a=`pattern_${o}`,s=n.a||1,l=n.d||1,{update:c,markup:u}=e,d=Gj(e,["update","markup"]),h=Object.assign(Object.assign(Object.assign({},d),i[o]),{sx:s,sy:l,ox:n.e||0,oy:n.f||0,width:t*s,height:t*l});r.has(a)||r.add(a,kO.create("pattern",{id:a,patternUnits:"userSpaceOnUse"},kO.createVectors(u)).node);const f=r.get(a);"function"==typeof c&&c(f.childNodes[0],h);let p=h.ox%h.width;p<0&&(p+=h.width);let g=h.oy%h.height;g<0&&(g+=h.height),NM(f,{x:p,y:g,width:h.width,height:h.height})}));const o=(new XMLSerializer).serializeToString(r.root),a=`url(data:image/svg+xml;base64,${btoa(o)})`;this.elem.style.backgroundImage=a}getInstance(){return this.instance||(this.instance=new XA),this.instance}resolveGrid(e){if(!e)return[];const t=e.type;if(null==t)return[Object.assign(Object.assign({},XA.presets.dot),e.args)];const n=XA.registry.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 XA.registry.onNotFound(t)}dispose(){this.stopListening(),this.clear()}}Wj([sj.dispose()],$j.prototype,"dispose",null);class Kj extends sj{getClientMatrix(){return UO(this.view.stage.getScreenCTM())}getClientOffset(){const e=this.view.svg.getBoundingClientRect();return new tO(e.left,e.top)}getPageOffset(){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){return XO(tO.create(e,t),this.graph.matrix())}localToClientPoint(e,t){return XO(tO.create(e,t),this.getClientMatrix())}localToPagePoint(e,t){return("number"==typeof e?this.localToGraphPoint(e,t):this.localToGraphPoint(e)).translate(this.getPageOffset())}localToGraphRect(e,t,n,r){return ZO(nO.create(e,t,n,r),this.graph.matrix())}localToClientRect(e,t,n,r){return ZO(nO.create(e,t,n,r),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){return XO(tO.create(e,t),this.graph.matrix().inverse())}clientToLocalPoint(e,t){return XO(tO.create(e,t),this.getClientMatrix().inverse())}clientToGraphPoint(e,t){return XO(tO.create(e,t),this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalPoint(e,t){const n=tO.create(e,t).diff(this.getPageOffset());return this.graphToLocalPoint(n)}graphToLocalRect(e,t,n,r){return ZO(nO.create(e,t,n,r),this.graph.matrix().inverse())}clientToLocalRect(e,t,n,r){return ZO(nO.create(e,t,n,r),this.getClientMatrix().inverse())}clientToGraphRect(e,t,n,r){return ZO(nO.create(e,t,n,r),this.graph.matrix().multiply(this.getClientMatrix().inverse()))}pageToLocalRect(e,t,n,r){const i=nO.create(e,t,n,r),o=this.getPageOffset();return i.x-=o.x,i.y-=o.y,this.graphToLocalRect(i)}}var Jj,Xj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class Zj extends sj{constructor(){super(...arguments),this.widget=this.graph.hook.createSnapline()}dispose(){this.widget.dispose()}}Xj([sj.dispose()],Zj.prototype,"dispose",null),function(e){function t(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}}e.parse=t,e.equals=function(e,n){if(null!=e&&null!=n){const r=t(e),i=t(n),o=r.or.sort(),a=i.or.sort(),s=r.and.sort(),l=i.and.sort(),c=(e,t)=>e.length===t.length&&(0===e.length||e.every(((e,n)=>e===t[n])));return c(o,a)&&c(s,l)}return null==e&&null==n},e.isMatch=function(e,n,r){if(null==n||Array.isArray(n)&&0===n.length)return!r||!0!==e.altKey&&!0!==e.ctrlKey&&!0!==e.metaKey&&!0!==e.shiftKey;const{or:i,and:o}=t(n),a=t=>{const n=`${t.toLowerCase()}Key`;return!0===e[n]};return i.some((e=>a(e)))&&o.every((e=>a(e)))}}(Jj||(Jj={}));var Qj=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class eR extends sj{get widgetOptions(){return this.options.scroller}get pannable(){return!!this.widgetOptions&&("object"==typeof this.widgetOptions.pannable?this.widgetOptions.pannable.enabled:!!this.widgetOptions.pannable)}init(){this.widget=this.graph.hook.createScroller(),this.startListening(),this.updateClassName(),this.widget&&this.widget.center()}startListening(){let e=[];const t=this.widgetOptions.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),this.view.$(this.widget.container).on("mousedown",this.onRightMouseDown))}stopListening(){let e=[];const t=this.widgetOptions.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")&&this.view.$(this.widget.container).off("mousedown",this.onRightMouseDown)}onRightMouseDown(e){2===e.button&&this.allowPanning(e,!0)&&this.widget&&(this.updateClassName(!0),this.widget.startPanning(e),this.widget.once("pan:stop",(()=>this.updateClassName(!1))))}preparePanning({e:e}){this.widget&&(this.allowPanning(e,!0)||this.allowPanning(e)&&!this.graph.selection.allowRubberband(e,!0))&&(this.updateClassName(!0),this.widget.startPanning(e),this.widget.once("pan:stop",(()=>this.updateClassName(!1))))}allowPanning(e,t){return this.widget&&this.pannable&&Jj.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowPanning(e)}updateClassName(e){if(null==this.widget)return;const t=this.widget.container,n=this.view.prefixClassName("graph-scroller-pannable");this.pannable?(oM(t,n),t.dataset.panning=(!!e).toString()):aM(t,n)}enablePanning(){this.pannable||(this.widgetOptions.pannable=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.pannable=!1,this.updateClassName())}lock(){this.widget&&this.widget.lock()}unlock(){this.widget&&this.widget.unlock()}update(){this.widget&&this.widget.update()}enableAutoResize(){this.widget&&this.widget.enableAutoResize()}disableAutoResize(){this.widget&&this.widget.disableAutoResize()}resize(e,t){this.widget&&this.widget.resize(e,t)}dispose(){this.widget&&this.widget.dispose(),this.stopListening()}}Qj([sj.dispose()],eR.prototype,"dispose",null);var tR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},nR=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};class rR extends sj{get commonOptions(){const e=this.instanceOptions,{enabled:t}=e;return nR(e,["enabled"])}get instanceOptions(){return this.options.clipboard}get cells(){return this.widget.cells}get disabled(){return!0!==this.instanceOptions.enabled}init(){this.widget=this.graph.hook.createClipboard(),this.widget.deserialize(this.instanceOptions)}enable(){this.disabled&&(this.instanceOptions.enabled=!0)}disable(){this.disabled||(this.instanceOptions.enabled=!1)}copy(e,t={}){this.disabled||(this.widget.copy(e,this.graph,Object.assign(Object.assign({},this.commonOptions),t)),this.graph.trigger("clipboard:changed",{cells:e}))}cut(e,t={}){this.disabled||(this.widget.cut(e,this.graph,Object.assign(Object.assign({},this.commonOptions),t)),this.graph.trigger("clipboard:changed",{cells:e}))}paste(e={},t=this.graph){return this.disabled?[]:this.widget.paste(t,Object.assign(Object.assign({},this.commonOptions),e))}clean(e){this.disabled&&!e||(this.widget.clean(),this.graph.trigger("clipboard:changed",{cells:[]}))}isEmpty(){return this.widget.isEmpty()}dispose(){this.clean(!0)}}tR([sj.dispose()],rR.prototype,"dispose",null);var iR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class oR extends sj{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){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,o=SD.registry.get(i);return null==o?SD.registry.onNotFound(i):(SD.check(i,o),{name:i,highlighter:o,args:r.args||{}})}getHighlighterId(e,t){return cM(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()}}iR([oR.dispose()],oR.prototype,"dispose",null);var aR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class sR extends sj{constructor(){super(...arguments),this.widgets=new Map}get container(){return this.graph.view.container}get viewport(){return this.graph.view.viewport}get isSelectionEnabled(){return!0===this.options.selecting.enabled}init(){this.startListening(),this.resize()}startListening(){this.graph.on("node:mouseup",this.onNodeMouseUp,this),this.graph.on("node:selected",this.onNodeSelected,this),this.graph.on("node:unselected",this.onNodeUnSelected,this)}stopListening(){this.graph.off("node:mouseup",this.onNodeMouseUp,this),this.graph.off("node:selected",this.onNodeSelected,this),this.graph.off("node:unselected",this.onNodeUnSelected,this)}onNodeMouseUp({node:e}){if(!this.isSelectionEnabled){const t=this.graph.hook.createTransform(e,{clearAll:!0});t&&this.widgets.set(e,t)}}onNodeSelected({node:e}){if(this.isSelectionEnabled){const t=this.graph.hook.createTransform(e,{clearAll:!1});t&&this.widgets.set(e,t)}}onNodeUnSelected({node:e}){if(this.isSelectionEnabled){const t=this.widgets.get(e);t&&t.dispose(),this.widgets.delete(e)}}getMatrix(){const e=this.viewport.getAttribute("transform");return e!==this.viewportTransformString&&(this.viewportMatrix=this.viewport.getCTM(),this.viewportTransformString=e),UO(this.viewportMatrix)}setMatrix(e){const t=UO(e),n=GO(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 FT(e)||(e=this.container.clientWidth),FT(t)||(t=this.container.clientHeight),{width:e,height:t}}getScale(){return function(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}}(this.getMatrix())}scale(e,t=e,n=0,r=0,i={}){if(e=this.clampScale(e),t=this.clampScale(t),n||r){const i=this.getTranslation(),o=i.tx-n*(e-1),a=i.ty-r*(t-1);o===i.tx&&a===i.ty||this.translate(o,a)}const o=this.getMatrix();return o.a=e,o.d=t,this.setMatrix(o),this.graph.trigger("scale",Object.assign({sx:e,sy:t,ox:n,oy:r},i)),this}clampScale(e){const t=this.graph.options.scaling;return zT(e,t.min||.01,t.max||16)}getZoom(){return this.getScale().sx}zoom(e,t){t=t||{};let n=e,r=e;const i=this.getScale(),o=this.getComputedSize();let a=o.width/2,s=o.height/2;if(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&&(a=t.center.x,s=t.center.y),n=this.clampScale(n),r=this.clampScale(r),a||s){const e=this.getTranslation(),o=a-(a-e.tx)*(n/i.sx),l=s-(s-e.ty)*(r/i.sy);o===e.tx&&l===e.ty||this.translate(o,l,{ui:t.ui})}return this.scale(n,r,0,0,{ui:t.ui}),this}getRotation(){return function(e){let t={x:0,y:1};return e&&(t=KO(e,t)),{angle:GM.normalize(GM.toDeg(Math.atan2(t.y,t.x))-90)}}(this.getMatrix())}rotate(e,t,n){if(null==t||null==n){const e=eL(this.graph.view.stage);t=e.width/2,n=e.height/2}const r=this.getMatrix().translate(t,n).rotate(e).translate(-t,-n);return this.setMatrix(r),this}getTranslation(){return{tx:(e=this.getMatrix())&&e.e||0,ty:e&&e.f||0};var e}translate(e,t,n={}){const r=this.getMatrix();r.e=e||0,r.f=t||0,this.setMatrix(r);const i=this.getTranslation();return this.options.x=i.tx,this.options.y=i.ty,this.graph.trigger("translate",Object.assign(Object.assign({},i),n)),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,t=i.gridHeight||1,n=i.padding||0,r=i}else e=e||1,t=t||1,n=n||0,null==r&&(r={});const i=qT(n),o=r.border||0,a=r.contentArea?nO.create(r.contentArea):this.getContentArea(r);o>0&&a.inflate(o);const s=this.getScale(),l=this.getTranslation(),c=s.sx,u=s.sy;a.x*=c,a.y*=u,a.width*=c,a.height*=u;let d=Math.max(Math.ceil((a.width+a.x)/e),1)*e,h=Math.max(Math.ceil((a.height+a.y)/t),1)*t,f=0,p=0;("negative"===r.allowNewOrigin&&a.x<0||"positive"===r.allowNewOrigin&&a.x>=0||"any"===r.allowNewOrigin)&&(f=Math.ceil(-a.x/e)*e,f+=i.left,d+=f),("negative"===r.allowNewOrigin&&a.y<0||"positive"===r.allowNewOrigin&&a.y>=0||"any"===r.allowNewOrigin)&&(p=Math.ceil(-a.y/t)*t,p+=i.top,h+=p),d+=i.right,h+=i.bottom,d=Math.max(d,r.minWidth||0),h=Math.max(h,r.minHeight||0),d=Math.min(d,r.maxWidth||Number.MAX_SAFE_INTEGER),h=Math.min(h,r.maxHeight||Number.MAX_SAFE_INTEGER);const g=this.getComputedSize(),m=d!==g.width||h!==g.height;return(f!==l.tx||p!==l.ty)&&this.translate(f,p),m&&this.resize(d,h),new nO(-f/c,-p/u,d/c,h/u)}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=tO.create(t)}else n=this.getContentBBox(e),r=this.graph.graphToLocal(n);if(!n.width||!n.height)return;const i=qT(e.padding),o=e.minScale||0,a=e.maxScale||Number.MAX_SAFE_INTEGER,s=e.minScaleX||o,l=e.maxScaleX||a,c=e.minScaleY||o,u=e.maxScaleY||a;let d;if(e.viewportArea)d=e.viewportArea;else{const e=this.getComputedSize(),t=this.getTranslation();d={x:t.tx,y:t.ty,width:e.width,height:e.height}}d=nO.create(d).moveAndExpand({x:i.left,y:i.top,width:-i.left-i.right,height:-i.top-i.bottom});const h=this.getScale();let f=d.width/n.width*h.sx,p=d.height/n.height*h.sy;!1!==e.preserveAspectRatio&&(f=p=Math.min(f,p));const g=e.scaleGrid;if(g&&(f=g*Math.floor(f/g),p=g*Math.floor(p/g)),f=zT(f,s,l),p=zT(p,c,u),this.scale(f,p),t){const e=this.options,t=d.x-r.x*f-e.x,n=d.y-r.y*p-e.y;this.translate(t,n)}}getContentArea(e={}){return e.useCellGeometry?this.model.getAllCellsBBox()||new nO:eL(this.graph.view.stage)}getContentBBox(e={}){return this.graph.localToGraph(this.getContentArea(e))}getGraphArea(){const e=nO.fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}zoomToRect(e,t={}){const n=nO.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(),o=n.width/2,a=n.height/2;t="number"==typeof t?t:a,e=o-(e="number"==typeof e?e:o)*r.sx,t=a-t*r.sy,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();(t=BT(t,Math.max(0,r.width)))<0&&(t=r.width+t),(n=BT(n,Math.max(0,r.height)))<0&&(n=r.height+n);const i=this.getTranslation(),o=this.getScale(),a=t-e.x*o.sx,s=n-e.y*o.sy;i.tx===a&&i.ty===s||this.translate(a,s)}positionRect(e,t){const n=nO.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)}dispose(){this.widgets.forEach((e=>e.dispose())),this.widgets.clear(),this.stopListening()}}aR([sR.dispose()],sR.prototype,"dispose",null);var lR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class cR extends sj{constructor(){super(...arguments),this.movedMap=new WeakMap,this.unselectMap=new WeakMap}get widgetOptions(){return this.options.selecting}get rubberbandDisabled(){return!0!==this.widgetOptions.enabled||!0!==this.widgetOptions.rubberband}get disabled(){return!0!==this.widgetOptions.enabled}get length(){return this.widget.length}get cells(){return this.widget.cells}init(){this.widget=this.graph.hook.createSelection(),this.startListening()}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.widget.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.widget.off("box:mousedown",this.onBoxMouseDown,this)}onBlankMouseDown({e:e}){(this.allowRubberband(e,!0)||this.allowRubberband(e)&&!this.graph.scroller.allowPanning(e,!0)&&!this.graph.panning.allowPanning(e,!0))&&this.startRubberband(e)}onBlankClick(){this.clean()}allowRubberband(e,t){return!this.rubberbandDisabled&&Jj.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowRubberband(e)}allowMultipleSelection(e){return this.isMultiple()&&Jj.isMatch(e,this.widgetOptions.multipleSelectionModifiers)}onCellMouseMove({cell:e}){this.movedMap.set(e,!0)}onCellMouseUp({e:e,cell:t}){const n=this.widgetOptions;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))}isEmpty(){return this.length<=0}isSelected(e){return this.widget.isSelected(e)}getCells(e){return(Array.isArray(e)?e:[e]).map((e=>"string"==typeof e?this.graph.getCellById(e):e)).filter((e=>null!=e))}select(e,t={}){const n=this.getCells(e);return n.length&&(this.isMultiple()?this.widget.select(n,t):this.reset(n.slice(0,1),t)),this}unselect(e,t={}){return this.widget.unselect(this.getCells(e),t),this}reset(e,t={}){return this.widget.reset(e?this.getCells(e):[],t),this}clean(e={}){return this.widget.clean(e),this}enable(){return this.disabled&&(this.widgetOptions.enabled=!0),this}disable(){return this.disabled||(this.widgetOptions.enabled=!1),this}startRubberband(e){return this.rubberbandDisabled||this.widget.startSelecting(e),this}enableRubberband(){return this.rubberbandDisabled&&(this.widgetOptions.rubberband=!0),this}disableRubberband(){return this.rubberbandDisabled||(this.widgetOptions.rubberband=!1),this}isMultiple(){return!1!==this.widgetOptions.multiple}enableMultiple(){return this.widgetOptions.multiple=!0,this}disableMultiple(){return this.widgetOptions.multiple=!1,this}setModifiers(e){return this.widgetOptions.modifiers=e,this}setContent(e){return this.widget.setContent(e),this}setFilter(e){return this.widget.setFilter(e),this}dispose(){this.stopListening(),this.widget.dispose()}}lR([sj.dispose()],cR.prototype,"dispose",null);var uR,dR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},hR=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};class fR extends uN{constructor(e){super(),this.batchCommands=null,this.batchLevel=0,this.lastBatchIndex=-1,this.freezed=!1,this.handlers=[],this.graph=e.graph,this.model=e.graph.model,this.options=uR.getOptions(e),this.validator=new fR.Validator({history:this,cancelInvalid:this.options.cancelInvalid}),this.clean(),this.startListening()}get disabled(){return!0!==this.options.enabled}enable(){this.disabled&&(this.options.enabled=!0)}disable(){this.disabled||(this.options.enabled=!1)}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.undoStack.push(t),this.notify("redo",t,e))}return this}cancel(e={}){if(!this.disabled){const t=this.undoStack.pop();t&&(this.revertCommand(t,e),this.redoStack=[],this.notify("cancel",t,e))}return this}clean(e={}){return this.undoStack=[],this.redoStack=[],this.notify("clean",null,e),this}canUndo(){return!this.disabled&&this.undoStack.length>0}canRedo(){return!this.disabled&&this.redoStack.length>0}validate(e,...t){return this.validator.validate(e,...t),this}dispose(){this.validator.dispose(),this.clean(),this.stopListening()}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)?uR.sortBatchCommands(e):[e];for(let e=n.length-1;e>=0;e-=1){const r=n[e],i=Object.assign(Object.assign({},t),WE(r.options,this.options.revertOptionsList||[]));this.executeCommand(r,!0,i)}this.freezed=!1}applyCommand(e,t){this.freezed=!0;const n=Array.isArray(e)?uR.sortBatchCommands(e):[e];for(let e=0;e<n.length;e+=1){const r=n[e],i=Object.assign(Object.assign({},t),WE(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),o=e.event;if(uR.isAddEvent(o)&&t||uR.isRemoveEvent(o)&&!t)i&&i.remove(n);else if(uR.isAddEvent(o)&&!t||uR.isRemoveEvent(o)&&t){const t=e.data;t.node?r.addNode(t.props,n):t.edge&&r.addEdge(t.props,n)}else if(uR.isChangeEvent(o)){const r=e.data,o=r.key;if(o&&i){const e=t?r.prev[o]:r.next[o];i.prop(o,e,n)}}else{const r=this.options.executeCommand;r&&XT(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(uR.isAddEvent(e)&&this.options.ignoreAdd||uR.isRemoveEvent(e)&&this.options.ignoreRemove||uR.isChangeEvent(e)&&this.options.ignoreChange)return;const i=this.options.beforeAddCommand;if(null!=i&&!1===XT(i,this,e,t))return;"cell:change:*"===e&&(e=`cell:change:${n.key}`);const o=n.cell,a=GI.isModel(o);let s;if(this.batchCommands){s=this.batchCommands[Math.max(this.lastBatchIndex,0)];const t=a&&!s.modelChange||s.data.id!==o.id,n=s.event!==e;if(this.lastBatchIndex>=0&&(t||n)){const t=this.batchCommands.findIndex((t=>(a&&t.modelChange||t.data.id===o.id)&&t.event===e));t<0||uR.isAddEvent(e)||uR.isRemoveEvent(e)?s=this.createCommand({batch:!0}):(s=this.batchCommands[t],this.batchCommands.splice(t,1)),this.batchCommands.push(s),this.lastBatchIndex=this.batchCommands.length-1}}else s=this.createCommand({batch:!1});if(uR.isAddEvent(e)||uR.isRemoveEvent(e)){const t=s.data;return s.event=e,s.options=r,t.id=o.id,t.props=rk(o.toJSON()),o.isEdge()?t.edge=!0:o.isNode()&&(t.node=!0),this.push(s,r)}if(uR.isChangeEvent(e)){const n=t.key,i=s.data;return s.batch&&s.event||(s.event=e,s.options=r,i.key=n,null==i.prev&&(i.prev={}),i.prev[n]=nk(o.previous(n)),a?s.modelChange=!0:i.id=o.id),null==i.next&&(i.next={}),i.next[n]=nk(o.prop(n)),this.push(s,r)}const l=this.options.afterAddCommand;l&&XT(l,this,e,t,s),this.push(s,r)}initBatchCommand(e){this.freezed||(this.batchCommands?this.batchLevel+=1:(this.batchCommands=[this.createCommand({batch:!0})],this.batchLevel=0,this.lastBatchIndex=-1))}storeBatchCommand(e){if(!this.freezed)if(this.batchCommands&&this.batchLevel<=0){const t=this.filterBatchCommand(this.batchCommands);t.length>0&&(this.redoStack=[],this.undoStack.push(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(uR.isAddEvent(r)){const e=t.findIndex((e=>uR.isRemoveEvent(e.event)&&e.data.id===i));if(e>=0){t=t.filter(((t,n)=>e<n||t.data.id!==i));continue}}else if(uR.isRemoveEvent(r)){const e=t.findIndex((e=>uR.isAddEvent(e.event)&&e.data.id===i));if(e>=0){t.splice(e,1);continue}}else if(uR.isChangeEvent(r)){const t=e.data;if(kC(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.emit("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.undoStack.push(e),this.consolidateCommands(),this.notify("add",e,t))}consolidateCommands(){var e;const t=this.undoStack[this.undoStack.length-1],n=this.undoStack[this.undoStack.length-2];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;if(!t.every((e=>{var t;return e.batch&&(null===(t=e.options)||void 0===t?void 0:t.ui)})))return;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)&&(n.push(...t),this.undoStack.pop())}}dR([uN.dispose()],fR.prototype,"dispose",null),function(e){class t extends uN{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=o=>{const a=t[r];r+=1;try{if(!a)return void(n=o);a(o,e,i)}catch(o){i(o)}};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)}}dR([uN.dispose()],t.prototype,"dispose",null),e.Validator=t}(fR||(fR={})),function(e){e.isAddEvent=function(e){return"cell:added"===e},e.isRemoveEvent=function(e){return"cell:removed"===e},e.isChangeEvent=function(e){return null!=e&&e.startsWith("cell:change:")},e.getOptions=function(t){const{graph:n}=t,r=hR(t,["graph"]),i=["cell:added","cell:removed","cell:change:*"],o=["batch:start","batch:stop"],a=t.eventNames?t.eventNames.filter((t=>!(e.isChangeEvent(t)||i.includes(t)||o.includes(t)))):i;return Object.assign(Object.assign({},r),{eventNames:a,applyOptionsList:t.applyOptionsList||["propertyPath"],revertOptionsList:t.revertOptionsList||["propertyPath"]})},e.sortBatchCommands=function(t){const n=[];for(let r=0,i=t.length;r<i;r+=1){const i=t[r];let o=null;if(e.isAddEvent(i.event)){const e=i.data.id;for(let n=0;n<r;n+=1)if(t[n].data.id===e){o=n;break}}null!==o?n.splice(o,0,i):n.push(i)}return n}}(uR||(uR={}));var pR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class gR extends sj{get widgetOptions(){return this.options.minimap}init(){this.widget=this.graph.hook.createMiniMap()}dispose(){this.widget&&this.widget.dispose()}}pR([sj.dispose()],gR.prototype,"dispose",null);var mR=__webpack_require__(42441),vR=__webpack_require__.n(mR),yR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class bR extends lN{constructor(e){super(),this.options=e;const t=this.graph.scroller.widget;this.container=t?t.container:this.graph.container,e.global?this.target=document:(this.target=this.container,this.disabled||this.target.setAttribute("tabindex","-1"),this.graph.on("cell:mouseup",this.focus,this),this.graph.on("blank:mouseup",this.focus,this)),this.mousetrap=bR.createMousetrap(this)}get graph(){return this.options.graph}get disabled(){return!0!==this.options.enabled}enable(){this.disabled&&(this.options.enabled=!0,this.graph.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&this.target.setAttribute("tabindex","-1"))}disable(){this.disabled||(this.options.enabled=!1,this.graph.options.keyboard.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)}focus(e){if(this.isInputEvent(e.e))return;this.target.focus({preventScroll:!0})}getKeys(e){return(Array.isArray(e)?e:[e]).map((e=>this.formatkey(e)))}formatkey(e){const t=e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command"),n=this.options.format;return n?XT(n,this.graph,t):t}isGraphEvent(e){const t=e.srcElement||e.target,n=e.currentTarget;return!!t&&(t===this.target||n===this.target||t===document.body||_M(this.container,t))}isInputEvent(e){var t;const n=e.target,r=null===(t=null==n?void 0:n.tagName)||void 0===t?void 0:t.toLowerCase();return["input","textarea"].includes(r)}isEnabledForEvent(e){const t=!this.disabled&&this.isGraphEvent(e),n=this.isInputEvent(e);if(t){const t=e.keyCode||e.which;if(n&&(8===t||46===t))return!1;if(this.options.guard)return XT(this.options.guard,this.graph,e)}return t}dispose(){this.mousetrap.reset()}}yR([lN.dispose()],bR.prototype,"dispose",null),function(e){e.createMousetrap=function(e){const t=new(vR())(e.target),n=t.stopCallback;return t.stopCallback=(r,i,o)=>!e.isEnabledForEvent(r)||!!n&&n.call(t,r,i,o),t}}(bR||(bR={}));var wR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class _R extends lN{constructor(e){super(),this.options=e,this.cumulatedFactor=1;const t=this.graph.scroller.widget;this.container=t?t.container:this.graph.container,this.target=this.options.global?document:this.container,this.mousewheelHandle=new uL(this.target,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.options.enabled&&this.enable(!0)}get graph(){return this.options.graph}get disabled(){return!0!==this.options.enabled}enable(e){(this.disabled||e)&&(this.options.enabled=!0,this.graph.options.mousewheel.enabled=!0,this.mousewheelHandle.enable())}disable(){this.disabled||(this.options.enabled=!1,this.graph.options.mousewheel.enabled=!1,this.mousewheelHandle.disable())}allowMouseWheel(e){const t=e.originalEvent||e,n=this.options.guard;return(null==n||n.call(this.graph,t))&&Jj.isMatch(t,this.options.modifiers)}onMouseWheel(e){const t=e.originalEvent||e,n=this.options.guard;if((null==n||n.call(this.graph,t))&&Jj.isMatch(t,this.options.modifiers)){const t=this.options.factor||1.2;null==this.currentScale&&(this.startPos={x:e.clientX,y:e.clientY},this.currentScale=this.graph.scroller.widget?this.graph.scroller.widget.zoom():this.graph.transform.getScale().sx);e.deltaY<0?this.currentScale<.15?this.cumulatedFactor=(this.currentScale+.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*t*20)/20/this.currentScale:this.currentScale<=.15?this.cumulatedFactor=(this.currentScale-.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*(1/t)*20)/20/this.currentScale,this.cumulatedFactor=Math.max(.01,Math.min(this.currentScale*this.cumulatedFactor,160)/this.currentScale);const n=this.graph.scroller.widget,r=this.currentScale;let i=this.graph.transform.clampScale(r*this.cumulatedFactor);const o=this.options.minScale||Number.MIN_SAFE_INTEGER,a=this.options.maxScale||Number.MAX_SAFE_INTEGER;if(i=zT(i,o,a),i!==r)if(n)if(this.options.zoomAtMousePosition){const e=this.graph.coord.clientToLocalPoint(this.startPos);n.zoom(i,{absolute:!0,center:e.clone()})}else n.zoom(i,{absolute:!0});else if(this.options.zoomAtMousePosition){const e=this.graph.coord.clientToGraphPoint(this.startPos);this.graph.transform.zoom(i,{absolute:!0,center:e.clone(),ui:!0})}else this.graph.transform.zoom(i,{absolute:!0,ui:!0});this.currentScale=null,this.cumulatedFactor=1}}dispose(){this.disable()}}wR([lN.dispose()],_R.prototype,"dispose",null);var xR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class ER extends sj{show(e={}){const t=Object.assign(Object.assign({},ER.defaultOptions),e),n=this.createPrintPages(t);t.ready(n,(e=>this.showPrintWindow(e,t)),{sheetSize:this.getSheetSize(t)})}get className(){return this.view.prefixClassName("graph-print")}showPrintWindow(e,t){if(e){const n=$y()(document.body),r=$y()(this.view.container),i=this.view.prefixClassName("graph-printing");n.addClass(i);const o=r.children().detach();e.forEach((e=>{e.removeClass(`${this.className}-preview`).addClass(`${this.className}-ready`).appendTo(n)}));let a=!1;const s=()=>{a||(a=!0,n.removeClass(i),e.forEach((e=>e.remove())),r.append(o),$y()(`#${this.styleSheetId}`).remove(),this.graph.trigger("after:print",t),$y()(window).off("afterprint",s))};$y()(window).one("afterprint",s),setTimeout(s,200),window.print()}}createPrintPage(e,t){this.graph.trigger("before:print",t);const n=$y()("<div/>").addClass(this.className),r=$y()("<div/>").addClass(this.view.prefixClassName("graph-print-inner")).css("position","relative");t.size&&n.addClass(`${this.className}-size-${t.size}`);const i=kO.create(this.view.svg).clone(),o=i.findOne(`.${this.view.prefixClassName("graph-svg-stage")}`);r.append(i.node);const a=this.getSheetSize(t),s=this.graph.transform.getGraphArea(),l=this.graph.transform.getScale(),c=this.graph.translate(),u=UO().translate(c.tx/l.sx,c.ty/l.sy),d=this.getPageInfo(s,e,a),h=d.scale,f=d.bbox;return r.css({left:0,top:0}),i.attr({width:f.width*h,height:f.height*h,style:"position:relative",viewBox:[f.x,f.y,f.width,f.height].join(" ")}),o.attr("transform",GO(u)),n.append(r),n.addClass(`${this.className}-preview`),{$page:n,sheetSize:a}}createPrintPages(e){let t;const n=this.getPrintArea(e),r=[];if(e.page){const i=this.getPageSize(n,e.page);this.getPageAreas(n,i).forEach((n=>{t=this.createPrintPage(n,e),r.push(t.$page)}))}else t=this.createPrintPage(n,e),r.push(t.$page);if(t){const n={width:t.sheetSize.cssWidth,height:t.sheetSize.cssHeight};this.updatePrintStyle(n,e)}return r}get styleSheetId(){return this.view.prefixClassName("graph-print-style")}updatePrintStyle(e,t){const n=Object.keys(e).reduce(((t,n)=>`${t} ${n}:${e[n]};`),""),r=qT(t.margin),i=t.marginUnit||"",o=t.sheetUnit||"",a=`\n @media print {\n .${this.className}.${this.className}-ready {\n ${n}\n }\n\n @page {\n margin:\n ${[r.top+i,r.right+i,r.bottom+i,r.left+i].join(" ")};\n size: ${t.sheet.width+o} ${t.sheet.height+o};\n\n .${this.className}.${this.className}-preview {\n ${n}\n }\n }`,s=this.styleSheetId,l=$y()(`#${s}`);l.length?l.html(a):$y()("head").append(`'<style type="text/css" id="${s}">${a}</style>'`)}getPrintArea(e){let t=e.area;if(!t){const n=qT(e.padding);t=this.graph.getContentArea().moveAndExpand({x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom})}return t}getPageSize(e,t){if("object"==typeof t){const n=t,r={width:n.width,height:n.height};return null==r.width&&(r.width=Math.ceil(e.width/(n.columns||1))),null==r.height&&(r.height=Math.ceil(e.height/(n.rows||1))),r}return{width:e.width,height:e.height}}getPageAreas(e,t){const n=[],r=t.width,i=t.height;for(let t=0,o=0;t<e.height&&o<200;t+=i,o+=1)for(let o=0,a=0;o<e.width&&a<200;o+=r,a+=1)n.push(new nO(e.x+o,e.y+t,r,i));return n}getSheetSize(e){const t=e.sheet,n=qT(e.margin),r=e.marginUnit||"",i=e.sheetUnit||"",o=`calc(${t.width}${i} - ${n.left+n.right}${r})`,a=`calc(${t.height}${i} - ${n.top+n.bottom}${r})`,s=qM.measure(o,a);return{cssWidth:o,cssHeight:a,width:s.width,height:s.height}}getPageInfo(e,t,n){const r=new nO(t.x-e.x,t.y-e.y,t.width,t.height),i=r.width/r.height,o=n.width/n.height;return{bbox:r,scale:o<i?n.width/r.width:n.height/r.height,fitHorizontal:o<i}}dispose(){}}xR([sj.dispose()],ER.prototype,"dispose",null),function(e){e.defaultOptions={page:!1,sheet:{width:210,height:297},sheetUnit:"mm",margin:.4,marginUnit:"in",padding:5,ready:(e,t)=>t(e)}}(ER||(ER={}));class CR extends sj{toSVG(e,t={}){this.graph.trigger("before:export",t);const n=this.view.svg,r=kO.create(n).clone();let i=r.node;const o=r.findOne(`.${this.view.prefixClassName("graph-svg-stage")}`),a=t.viewBox||this.graph.graphToLocal(this.graph.getContentBBox()),s=t.preserveDimensions;if(s){const e="boolean"==typeof s?a:s;r.attr({width:e.width,height:e.height})}if(r.removeAttribute("style").attr("viewBox",[a.x,a.y,a.width,a.height].join(" ")),o.removeAttribute("transform"),!1!==t.copyStyles){const e=n.ownerDocument,t=Array.from(n.querySelectorAll("*")),r=Array.from(i.querySelectorAll("*")),o=e.styleSheets.length,a=[];for(let t=o-1;t>=0;t-=1)a[t]=e.styleSheets[t],e.styleSheets[t].disabled=!0;const s={};t.forEach(((e,t)=>{const n=window.getComputedStyle(e,null),r={};Object.keys(n).forEach((e=>{r[e]=n.getPropertyValue(e)})),s[t]=r})),o!==e.styleSheets.length&&a.forEach(((t,n)=>{e.styleSheets[n]=t}));for(let t=0;t<o;t+=1)e.styleSheets[t].disabled=!1;const l={};t.forEach(((e,t)=>{const n=window.getComputedStyle(e,null),r=s[t],i={};Object.keys(n).forEach((e=>{(e=>!Array.isArray(e)&&e-parseFloat(e)+1>=0)(e)||n.getPropertyValue(e)===r[e]||(i[e]=n.getPropertyValue(e))})),l[t]=i})),r.forEach(((e,t)=>{$y()(e).css(l[t])}))}const l=t.stylesheet;if("string"==typeof l){const e=n.ownerDocument.implementation.createDocument(null,"xml",null).createCDATASection(l);r.prepend(kO.create("style",{type:"text/css"},[e]))}const c=()=>{const n=t.beforeSerialize;if("function"==typeof n){const e=XT(n,this.graph,i);e instanceof SVGSVGElement&&(i=e)}const r=(new XMLSerializer).serializeToString(i).replace(/ /g," ");this.graph.trigger("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");YM.imageToDataUri(n,((n,r)=>{!n&&r&&e.attr("xlink:href",r),t()}))}))));Promise.all(e).then(c)}else c()}toDataURL(e,t){let n=t.viewBox||this.graph.getContentBBox();const r=qT(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 i=new nO(-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,o=n.height+r.top+r.bottom;i.scale(e/t.width,o/t.height)}n=nO.create(n).moveAndExpand(i);const o="number"==typeof t.width&&"number"==typeof t.height?{width:t.width,height:t.height}:n;let a=t.ratio?parseFloat(t.ratio):1;Number.isFinite(a)&&0!==a||(a=1);const s={width:Math.max(Math.round(o.width*a),1),height:Math.max(Math.round(o.height*a),1)};{const e=document.createElement("canvas"),t=e.getContext("2d");e.width=s.width,e.height=s.height;const n=s.width-1,r=s.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=s.width,n.height=s.height;const r=n.getContext("2d");r.fillStyle=t.backgroundColor||"white",r.fillRect(0,0,s.width,s.height);try{r.drawImage(l,0,0,s.width,s.height);const i=n.toDataURL(t.type,t.quality);e(i)}catch(e){}},this.toSVG((e=>{l.src=`data:image/svg+xml,${encodeURIComponent(e)}`}),Object.assign(Object.assign({},t),{viewBox:n,serializeImages:!0,preserveDimensions:Object.assign({},s)}))}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"}))}}class kR extends sj{constructor(){super(...arguments),this.widgets=new Map}get isSelectionEnabled(){return!0===this.options.selecting.enabled}init(){this.startListening()}startListening(){this.graph.on("node:mouseup",this.onNodeMouseUp,this),this.graph.on("node:selected",this.onNodeSelected,this),this.graph.on("node:unselected",this.onNodeUnSelected,this)}stopListening(){this.graph.off("node:mouseup",this.onNodeMouseUp,this),this.graph.off("node:selected",this.onNodeSelected,this),this.graph.off("node:unselected",this.onNodeUnSelected,this)}onNodeMouseUp({node:e}){if(!this.isSelectionEnabled){const t=this.graph.hook.createKnob(e,{clearAll:!0});t&&this.widgets.set(e,t)}}onNodeSelected({node:e}){if(this.isSelectionEnabled){const t=this.graph.hook.createKnob(e,{clearAll:!1});t&&this.widgets.set(e,t)}}onNodeUnSelected({node:e}){if(this.isSelectionEnabled){const t=this.widgets.get(e);t&&t.forEach((e=>e.dispose())),this.widgets.delete(e)}}}var SR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class TR extends sj{get widgetOptions(){return this.options.panning}get pannable(){return this.widgetOptions&&!0===this.widgetOptions.enabled}init(){this.startListening(),this.updateClassName()}startListening(){const e=this.widgetOptions.eventTypes;e&&(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),this.view.$(this.graph.container).on("mousedown",this.onRightMouseDown)),e.includes("mouseWheel")&&(this.mousewheelHandle=new uL(this.graph.container,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.mousewheelHandle.enable()))}stopListening(){const e=this.widgetOptions.eventTypes;e&&(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")&&this.view.$(this.graph.container).off("mousedown",this.onRightMouseDown),e.includes("mouseWheel")&&this.mousewheelHandle&&this.mousewheelHandle.disable())}preparePanning({e:e}){(this.allowPanning(e,!0)||this.allowPanning(e)&&!this.graph.selection.allowRubberband(e,!0))&&this.startPanning(e)}allowPanning(e,t){return this.pannable&&Jj.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowPanning(e)}startPanning(e){const t=this.view.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.panning=!0,this.updateClassName(),this.view.$(document.body).on({"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this),"mouseleave.panning":this.stopPanning.bind(this)}),this.view.$(window).on("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;const i=this.graph.transform.getTranslation(),o=i.tx+n,a=i.ty+r;this.graph.transform.translate(o,a,{ui:!0})}stopPanning(e){this.panning=!1,this.updateClassName(),this.view.$(document.body).off(".panning"),this.view.$(window).off(".panning")}updateClassName(){const e=this.view.container,t=this.view.prefixClassName("graph-panning"),n=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(oM(e,t),aM(e,n)):(aM(e,t),oM(e,n)):(aM(e,t),aM(e,n))}onRightMouseDown(e){2===e.button&&this.allowPanning(e,!0)&&this.startPanning(e)}allowMouseWheel(e){return this.pannable&&!e.ctrlKey}onMouseWheel(e,t,n){e.ctrlKey||this.graph.translateBy(-t,-n)}autoPanning(e,t){const n=10,r=this.graph.getGraphArea();let i=0,o=0;e<=r.left+n&&(i=-10),t<=r.top+n&&(o=-10),e>=r.right-n&&(i=n),t>=r.bottom-n&&(o=n),0===i&&0===o||this.graph.translateBy(-i,-o)}enablePanning(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}disablePanning(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}dispose(){this.stopListening()}}SR([sj.dispose()],TR.prototype,"dispose",null);var MR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class OR extends sj{hasScroller(){return null!=this.graph.scroller.widget}getContainer(){return this.hasScroller()?this.graph.scroller.widget.container:this.graph.container}init(){const e=this.options.autoResize;if(e){const t="boolean"==typeof e?this.getContainer():e;fL.bind(t,(()=>{const e=this.getContainer(),t=e.offsetWidth,n=e.offsetHeight;this.resize(t,n)}))}}resize(e,t){this.hasScroller()?this.resizeScroller(e,t):this.resizeGraph(e,t)}resizeGraph(e,t){this.graph.transform.resize(e,t)}resizeScroller(e,t){this.graph.scroller.resize(e,t)}resizePage(e,t){const n=this.graph.scroller.widget;n&&n.updatePageSize(e,t)}dispose(){fL.clear(this.getContainer())}}MR([sj.dispose()],OR.prototype,"dispose",null);var LR,AR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},DR=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};!function(e){e.hook=function(e,t){return(n,r,i)=>{const o=i.value,a=t||r;i.value=function(...t){const n=this.options[a];if(null!=n){this.getNativeValue=o.bind(this,...t);const r=XT(n,this.graph,...t);if(this.getNativeValue=null,null!=r||!0===e&&null===r)return r}return o.call(this,...t)}}},e.after=function(e){return(t,n,r)=>{const i=r.value,o=e||n;r.value=function(...e){let t=i.call(this,...e);const n=this.options[o];return null!=n&&(t=XT(n,this.graph,...e)&&t),t}}}}(LR||(LR={}));class NR extends sj{createModel(){if(this.options.model)return this.options.model;const e=new GI;return e.graph=this.graph,e}createView(){return new uj(this.graph)}createRenderer(){return new Oj(this.graph)}createDefsManager(){return new Vj(this.graph)}createGridManager(){return new $j(this.graph)}createCoordManager(){return new Kj(this.graph)}createKnobManager(){return new kR(this.graph)}createTransform(e,t){const n=this.getTransformOptions(e);return n.resizable||n.rotatable?new Bj(Object.assign(Object.assign({node:e,graph:this.graph},n),t)):(n.clearAll&&Bj.removeInstances(this.graph),null)}createKnob(e,t){const n=Hj.parseOptionGroup(this.graph,e,this.options.knob),r=Object.assign(Object.assign({},n),t);r.clearAll&&wj.removeInstances(this.graph),r.clearAll=!1;const i=e.prop("knob"),o=[];return(Array.isArray(i)?i:[i]).forEach(((t,i)=>{t&&!1!==t.enabled&&("function"==typeof t.enabled&&!1===t.enabled.call(this.graph,e)||n.enabled&&o.push(new wj(Object.assign({node:e,index:i,graph:this.graph},r))))})),o}getTransformOptions(e){const t=Hj.parseOptionGroup(this.graph,e,this.options.resizing),n=Hj.parseOptionGroup(this.graph,e,this.options.rotating),r=Hj.parseOptionGroup(this.graph,e,this.options.transforming);return Object.assign(Object.assign({},r),{resizable:t.enabled,minWidth:t.minWidth,maxWidth:t.maxWidth,minHeight:t.minHeight,maxHeight:t.maxHeight,orthogonalResizing:t.orthogonal,restrictedResizing:null!=t.restrict?t.restrict:t.restricted,autoScrollOnResizing:t.autoScroll,preserveAspectRatio:t.preserveAspectRatio,allowReverse:t.allowReverse,rotatable:n.enabled,rotateGrid:n.grid})}createTransformManager(){return new sR(this.graph)}createHighlightManager(){return new oR(this.graph)}createBackgroundManager(){return new Aj(this.graph)}createClipboard(){return new FR}createClipboardManager(){return new rR(this.graph)}createSnapline(){return new Tj(Object.assign({graph:this.graph},this.options.snapline))}createSnaplineManager(){return new Zj(this.graph)}createSelection(){return new Yj(Object.assign({graph:this.graph},this.options.selecting))}createSelectionManager(){return new cR(this.graph)}allowRubberband(e){return!0}createHistoryManager(){return new fR(Object.assign({graph:this.graph},this.options.history))}createScroller(){return this.options.scroller.enabled?new Ij(Object.assign({graph:this.graph},this.options.scroller)):null}createScrollerManager(){return new eR(this.graph)}allowPanning(e){return!0}createMiniMap(){const e=this.options.minimap,{enabled:t}=e,n=DR(e,["enabled"]);return t?new Cj(Object.assign({graph:this.graph},n)):null}createMiniMapManager(){return new gR(this.graph)}createKeyboard(){return new bR(Object.assign({graph:this.graph},this.options.keyboard))}createMouseWheel(){return new _R(Object.assign({graph:this.graph},this.options.mousewheel))}createPrintManager(){return new ER(this.graph)}createFormatManager(){return new CR(this.graph)}createPanningManager(){return new TR(this.graph)}createSizeManager(){return new OR(this.graph)}allowConnectToBlank(e){const t=this.options.connecting,n=null!=t.allowBlank?t.allowBlank:t.dangling;if("function"!=typeof n)return!!n;const r=this.graph.findViewByCell(e),i=e.getSourceCell(),o=e.getTargetCell(),a=this.graph.findViewByCell(i),s=this.graph.findViewByCell(o);return XT(n,this.graph,{edge:e,edgeView:r,sourceCell:i,targetCell:o,sourceView:a,targetView:s,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:r.sourceMagnet,targetMagnet:r.targetMagnet})}validateEdge(e,t,n){if(!this.allowConnectToBlank(e)){const t=e.getSourceCellId(),n=e.getTargetCellId();if(!t||!n)return!1}const r=this.options.connecting.validateEdge;return!r||XT(r,this.graph,{edge:e,type:t,previous:n})}validateMagnet(e,t,n){if("passive"!==t.getAttribute("magnet")){const r=this.options.connecting.validateMagnet;return!r||XT(r,this.graph,{e:n,magnet:t,view:e,cell:e.cell})}return!1}getDefaultEdge(e,t){let n;const r=this.options.connecting.createEdge;return r&&(n=XT(r,this.graph,{sourceMagnet:t,sourceView:e,sourceCell:e.cell})),null==n&&(n=new rj),n}validateConnection(e,t,n,r,i,o,a){const s=this.options.connecting,l=s.allowLoop,c=s.allowNode,u=s.allowEdge,d=s.allowPort,h=null!=s.allowMulti?s.allowMulti:s.multi,f=s.validateConnection,p=o?o.cell:null,g="target"===i?n:e,m="target"===i?r:t;let v=!0;const y=s=>{const l="source"===i?a?a.port:null:p?p.getSourcePortId():null,c="target"===i?a?a.port:null:p?p.getTargetPortId():null;return XT(s,this.graph,{edge:p,edgeView:o,sourceView:e,targetView:n,sourcePort:l,targetPort:c,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||(v=!1):v=y(l)),v&&null!=d&&("boolean"==typeof d?!d&&m&&(v=!1):v=y(d)),v&&null!=u&&("boolean"==typeof u?!u&&HI.isEdgeView(g)&&(v=!1):v=y(u)),v&&null!=c&&null==m&&("boolean"==typeof c?!c&&qI.isNodeView(g)&&(v=!1):v=y(c)),v&&null!=h&&o){const e=o.cell,t="source"===i?a:e.getSource(),n="target"===i?a:e.getTarget(),r=a?this.graph.getCellById(a.cell):null;if(t&&n&&t.cell&&n.cell&&r)if("function"==typeof h)v=y(h);else{const e=this.model.getConnectedEdges(r,{outgoing:"source"===i,incoming:"target"===i});if(e.length)if("withPort"===h){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}))&&(v=!1)}else if(!h){e.some((e=>{const r=e.getSource(),i=e.getTarget();return r&&i&&r.cell===t.cell&&i.cell===n.cell}))&&(v=!1)}}}return v&&null!=f&&(v=y(f)),v}getRestrictArea(e){const t=this.options.translating.restrict,n="function"==typeof t?XT(t,this.graph,e):t;return"number"==typeof n?this.graph.transform.getGraphArea().inflate(n):!0===n?this.graph.transform.getGraphArea():n||null}onViewUpdated(e,t,n){t&Oj.FLAG_INSERT||n.mounting||this.graph.renderer.requestConnectedEdgesUpdate(e,n)}onViewPostponed(e,t,n){return this.graph.renderer.forcePostponedViewUpdate(e,t)}getCellView(e){return null}createCellView(e){const t={graph:this.graph},n=this.getCellView(e);if(n)return new n(e,t);const r=e.view;if(null!=r&&"string"==typeof r){const n=DN.registry.get(r);return n?new n(e,t):DN.registry.onNotFound(r)}return e.isNode()?new qI(e,t):e.isEdge()?new HI(e,t):null}getHTMLComponent(e){let t=e.getHTML();return"string"==typeof t&&(t=ij.componentRegistry.get(t)||t),mC(t)&&(t=t.render),"function"==typeof t?XT(t,this.graph,e):t}shouldUpdateHTMLComponent(e){let t=e.getHTML();if("string"==typeof t&&(t=ij.componentRegistry.get(t)||t),mC(t)){const n=t.shouldComponentUpdate;return"function"==typeof n?XT(n,this.graph,e):!!n}return!1}onEdgeLabelRendered(e){}onPortRendered(e){}onToolItemCreated(e){}}AR([LR.hook()],NR.prototype,"createModel",null),AR([LR.hook()],NR.prototype,"createView",null),AR([LR.hook()],NR.prototype,"createRenderer",null),AR([LR.hook()],NR.prototype,"createDefsManager",null),AR([LR.hook()],NR.prototype,"createGridManager",null),AR([LR.hook()],NR.prototype,"createCoordManager",null),AR([LR.hook()],NR.prototype,"createKnobManager",null),AR([LR.hook()],NR.prototype,"createTransform",null),AR([LR.hook()],NR.prototype,"createKnob",null),AR([LR.hook()],NR.prototype,"createTransformManager",null),AR([LR.hook()],NR.prototype,"createHighlightManager",null),AR([LR.hook()],NR.prototype,"createBackgroundManager",null),AR([LR.hook()],NR.prototype,"createClipboard",null),AR([LR.hook()],NR.prototype,"createClipboardManager",null),AR([LR.hook()],NR.prototype,"createSnapline",null),AR([LR.hook()],NR.prototype,"createSnaplineManager",null),AR([LR.hook()],NR.prototype,"createSelection",null),AR([LR.hook()],NR.prototype,"createSelectionManager",null),AR([LR.hook()],NR.prototype,"allowRubberband",null),AR([LR.hook()],NR.prototype,"createHistoryManager",null),AR([LR.hook()],NR.prototype,"createScroller",null),AR([LR.hook()],NR.prototype,"createScrollerManager",null),AR([LR.hook()],NR.prototype,"allowPanning",null),AR([LR.hook()],NR.prototype,"createMiniMap",null),AR([LR.hook()],NR.prototype,"createMiniMapManager",null),AR([LR.hook()],NR.prototype,"createKeyboard",null),AR([LR.hook()],NR.prototype,"createMouseWheel",null),AR([LR.hook()],NR.prototype,"createPrintManager",null),AR([LR.hook()],NR.prototype,"createFormatManager",null),AR([LR.hook()],NR.prototype,"createPanningManager",null),AR([LR.hook()],NR.prototype,"createSizeManager",null),AR([LR.after()],NR.prototype,"onViewUpdated",null),AR([LR.after()],NR.prototype,"onViewPostponed",null),AR([LR.hook()],NR.prototype,"getCellView",null),AR([LR.hook(!0)],NR.prototype,"createCellView",null),AR([LR.hook()],NR.prototype,"getHTMLComponent",null),AR([LR.hook()],NR.prototype,"shouldUpdateHTMLComponent",null),AR([LR.hook()],NR.prototype,"onEdgeLabelRendered",null),AR([LR.hook()],NR.prototype,"onPortRendered",null),AR([LR.hook()],NR.prototype,"onToolItemCreated",null);var PR,IR,jR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class RR extends uN{constructor(e){super(),this.options=Hj.get(e),this.css=new hj(this),this.hook=new NR(this),this.view=this.hook.createView(),this.defs=this.hook.createDefsManager(),this.coord=this.hook.createCoordManager(),this.transform=this.hook.createTransformManager(),this.knob=this.hook.createKnobManager(),this.highlight=this.hook.createHighlightManager(),this.grid=this.hook.createGridManager(),this.background=this.hook.createBackgroundManager(),this.model=this.hook.createModel(),this.renderer=this.hook.createRenderer(),this.clipboard=this.hook.createClipboardManager(),this.snapline=this.hook.createSnaplineManager(),this.selection=this.hook.createSelectionManager(),this.history=this.hook.createHistoryManager(),this.scroller=this.hook.createScrollerManager(),this.minimap=this.hook.createMiniMapManager(),this.keyboard=this.hook.createKeyboard(),this.mousewheel=this.hook.createMouseWheel(),this.print=this.hook.createPrintManager(),this.format=this.hook.createFormatManager(),this.panning=this.hook.createPanningManager(),this.size=this.hook.createSizeManager()}get container(){return this.view.container}get[Symbol.toStringTag](){return RR.toStringTag}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=>LI.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=>YI.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)}getCell(e){return this.model.getCell(e)}getCells(){return this.model.getCells()}getCellCount(){return this.model.total()}getNodes(){return this.model.getNodes()}getEdges(){return this.model.getEdges()}getOutgoingEdges(e){return this.model.getOutgoingEdges(e)}getIncomingEdges(e){return this.model.getIncomingEdges(e)}getConnectedEdges(e,t={}){return this.model.getConnectedEdges(e,t)}getRootNodes(){return this.model.getRoots()}getLeafNodes(){return this.model.getLeafs()}isRootNode(e){return this.model.isRoot(e)}isLeafNode(e){return this.model.isLeaf(e)}getNeighbors(e,t={}){return this.model.getNeighbors(e,t)}isNeighbor(e,t,n={}){return this.model.isNeighbor(e,t,n)}getSuccessors(e,t={}){return this.model.getSuccessors(e,t)}isSuccessor(e,t,n={}){return this.model.isSuccessor(e,t,n)}getPredecessors(e,t={}){return this.model.getPredecessors(e,t)}isPredecessor(e,t,n={}){return this.model.isPredecessor(e,t,n)}getCommonAncestor(...e){return this.model.getCommonAncestor(...e)}getSubGraph(e,t={}){return this.model.getSubGraph(e,t)}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}getShortestPath(e,t,n={}){return this.model.getShortestPath(e,t,n)}getAllCellsBBox(){return this.model.getAllCellsBBox()}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,o="function"==typeof t?n:t;this.startBatch(r,o);const a=i();return this.stopBatch(r,o),a}updateCellId(e,t){return this.model.updateCellId(e,t)}isFrozen(){return this.renderer.isFrozen()}freeze(e={}){return this.renderer.freeze(e),this}unfreeze(e={}){return this.renderer.unfreeze(e),this}isAsync(){return this.renderer.isAsync()}setAsync(e){return this.renderer.setAsync(e),this}findView(e){return TI.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}findViews(e){return nO.isRectangleLike(e)?this.findViewsInArea(e):tO.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 o="number"==typeof e?{x:e,y:t,width:n,height:r}:e,a="number"==typeof e?i:t;return this.renderer.findViewsInArea(o,a)}isViewMounted(e){return this.renderer.isViewMounted(e)}getMountedViews(){return this.renderer.getMountedViews()}getUnmountedViews(){return this.renderer.getUnmountedViews()}matrix(e){return void 0===e?this.transform.getMatrix():(this.transform.setMatrix(e),this)}resize(e,t){return this.size.resize(e,t),this}resizeGraph(e,t){return this.size.resizeGraph(e,t),this}resizeScroller(e,t){return this.size.resizeScroller(e,t),this}resizePage(e,t){return this.size.resizePage(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.scroller.widget;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.scroller.widget;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.scroller.widget;return n?n.zoomToRect(e,t):this.transform.zoomToRect(e,t),this}zoomToFit(e={}){const t=this.scroller.widget;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)}getArea(){return this.transform.getGraphArea()}getGraphArea(){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}center(e){return this.centerPoint(e)}centerPoint(e,t,n){const r=this.scroller.widget;return r?r.centerPoint(e,t,n):this.transform.centerPoint(e,t),this}centerContent(e){const t=this.scroller.widget;return t?t.centerContent(e):this.transform.centerContent(e),this}centerCell(e,t){const n=this.scroller.widget;return n?n.centerCell(e,t):this.transform.centerCell(e),this}positionPoint(e,t,n,r={}){const i=this.scroller.widget;return i?i.positionPoint(e,t,n,r):this.transform.positionPoint(e,t,n),this}positionRect(e,t,n){const r=this.scroller.widget;return r?r.positionRect(e,t,n):this.transform.positionRect(e,t),this}positionCell(e,t,n){const r=this.scroller.widget;return r?r.positionCell(e,t,n):this.transform.positionCell(e,t),this}positionContent(e,t){const n=this.scroller.widget;return n?n.positionContent(e,t):this.transform.positionContent(e,t),this}getClientMatrix(){return this.coord.getClientMatrix()}getClientOffset(){return this.coord.getClientOffset()}getPageOffset(){return this.coord.getPageOffset()}snapToGrid(e,t){return this.coord.snapToGrid(e,t)}pageToLocal(e,t,n,r){return nO.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 nO.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 nO.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 nO.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 nO.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 nO.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 nO.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)}defineFilter(e){return this.defs.filter(e)}defineGradient(e){return this.defs.gradient(e)}defineMarker(e){return this.defs.marker(e)}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}updateBackground(){return this.background.update(),this}drawBackground(e,t){const n=this.scroller.widget;return null==n||null!=this.options.background&&t?this.background.draw(e):n.backgroundManager.draw(e),this}clearBackground(e){const t=this.scroller.widget;return null==t||null!=this.options.background&&e?this.background.clear():t.backgroundManager.clear(),this}isClipboardEnabled(){return!this.clipboard.disabled}enableClipboard(){return this.clipboard.enable(),this}disableClipboard(){return this.clipboard.disable(),this}toggleClipboard(e){return null!=e?e!==this.isClipboardEnabled()&&(e?this.enableClipboard():this.disableClipboard()):this.isClipboardEnabled()?this.disableClipboard():this.enableClipboard(),this}isClipboardEmpty(){return this.clipboard.isEmpty()}getCellsInClipboard(){return this.clipboard.cells}cleanClipboard(){return this.clipboard.clean(),this}copy(e,t={}){return this.clipboard.copy(e,t),this}cut(e,t={}){return this.clipboard.cut(e,t),this}paste(e={},t=this){return this.clipboard.paste(e,t)}isHistoryEnabled(){return!this.history.disabled}enableHistory(){return this.history.enable(),this}disableHistory(){return this.history.disable(),this}toggleHistory(e){return null!=e?e!==this.isHistoryEnabled()&&(e?this.enableHistory():this.disableHistory()):this.isHistoryEnabled()?this.disableHistory():this.enableHistory(),this}undo(e={}){return this.history.undo(e),this}undoAndCancel(e={}){return this.history.cancel(e),this}redo(e={}){return this.history.redo(e),this}canUndo(){return this.history.canUndo()}canRedo(){return this.history.canRedo()}cleanHistory(e={}){this.history.clean(e)}isKeyboardEnabled(){return!this.keyboard.disabled}enableKeyboard(){return this.keyboard.enable(),this}disableKeyboard(){return this.keyboard.disable(),this}toggleKeyboard(e){return null!=e?e!==this.isKeyboardEnabled()&&(e?this.enableKeyboard():this.disableKeyboard()):this.isKeyboardEnabled()?this.disableKeyboard():this.enableKeyboard(),this}bindKey(e,t,n){return this.keyboard.on(e,t,n),this}unbindKey(e,t){return this.keyboard.off(e,t),this}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}isPannable(){return this.scroller.widget?this.scroller.pannable:this.panning.pannable}enablePanning(){return this.scroller.widget?this.scroller.enablePanning():this.panning.enablePanning(),this}disablePanning(){return this.scroller.widget?this.scroller.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}lockScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.lock()}unlockScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.unlock()}updateScroller(){var e;null===(e=this.scroller.widget)||void 0===e||e.update()}getScrollbarPosition(){return this.scroller.widget.scrollbarPosition()}setScrollbarPosition(e,t,n){return this.scroller.widget.scrollbarPosition(e,t,n),this}scrollToPoint(e,t,n){return this.scroller.widget.scrollToPoint(e,t,n),this}scrollToContent(e){return this.scroller.widget.scrollToContent(e),this}scrollToCell(e,t){return this.scroller.widget.scrollToCell(e,t),this}transitionToPoint(e,t,n){return this.scroller.widget.transitionToPoint(e,t,n),this}transitionToRect(e,t={}){return this.scroller.widget.transitionToRect(e,t),this}isSelectionEnabled(){return!this.selection.disabled}enableSelection(){return this.selection.enable(),this}disableSelection(){return this.selection.disable(),this}toggleSelection(e){return null!=e?e!==this.isSelectionEnabled()&&(e?this.enableSelection():this.disableSelection()):this.isSelectionEnabled()?this.disableSelection():this.enableSelection(),this}isMultipleSelection(){return this.selection.isMultiple()}enableMultipleSelection(){return this.selection.enableMultiple(),this}disableMultipleSelection(){return this.selection.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.selection.widget.options.movable}enableSelectionMovable(){return this.selection.widget.options.movable=!0,this}disableSelectionMovable(){return this.selection.widget.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.selection.rubberbandDisabled}enableRubberband(){return this.selection.enableRubberband(),this}disableRubberband(){return this.selection.disableRubberband(),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.selection.widget.options.strict}enableStrictRubberband(){return this.selection.widget.options.strict=!0,this}disableStrictRubberband(){return this.selection.widget.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.selection.setModifiers(e)}setSelectionFilter(e){return this.selection.setFilter(e),this}setSelectionDisplayContent(e){return this.selection.setContent(e),this}isSelectionEmpty(){return this.selection.isEmpty()}cleanSelection(e){return this.selection.clean(e),this}resetSelection(e,t){return this.selection.reset(e,t),this}getSelectedCells(){return this.selection.cells}getSelectedCellCount(){return this.selection.length}isSelected(e){return this.selection.isSelected(e)}select(e,t){return this.selection.select(e,t),this}unselect(e,t){return this.selection.unselect(e,t),this}isSnaplineEnabled(){return!this.snapline.widget.disabled}enableSnapline(){return this.snapline.widget.enable(),this}disableSnapline(){return this.snapline.widget.disable(),this}toggleSnapline(e){if(null==e)return this.isSnaplineEnabled()?this.disableSnapline():this.enableSnapline(),this;e!==this.isSnaplineEnabled()&&(e?this.enableSnapline():this.disableSnapline())}hideSnapline(){return this.snapline.widget.hide(),this}setSnaplineFilter(e){return this.snapline.widget.setFilter(e),this}isSnaplineOnResizingEnabled(){return!0===this.snapline.widget.options.resizing}enableSnaplineOnResizing(){return this.snapline.widget.options.resizing=!0,this}disableSnaplineOnResizing(){return this.snapline.widget.options.resizing=!1,this}toggleSnaplineOnResizing(e){return null!=e?e!==this.isSnaplineOnResizingEnabled()&&(e?this.enableSnaplineOnResizing():this.disableSnaplineOnResizing()):this.isSnaplineOnResizingEnabled()?this.disableSnaplineOnResizing():this.enableSnaplineOnResizing(),this}isSharpSnapline(){return!0===this.snapline.widget.options.sharp}enableSharpSnapline(){return this.snapline.widget.options.sharp=!0,this}disableSharpSnapline(){return this.snapline.widget.options.sharp=!1,this}toggleSharpSnapline(e){return null!=e?e!==this.isSharpSnapline()&&(e?this.enableSharpSnapline():this.disableSharpSnapline()):this.isSharpSnapline()?this.disableSharpSnapline():this.enableSharpSnapline(),this}getSnaplineTolerance(){return this.snapline.widget.options.tolerance}setSnaplineTolerance(e){return this.snapline.widget.options.tolerance=e,this}removeTools(){return this.emit("tools:remove"),this}hideTools(){return this.emit("tools:hide"),this}showTools(){return this.emit("tools:show"),this}toSVG(e,t={}){this.format.toSVG(e,t)}toDataURL(e,t){this.format.toDataURL(e,t)}toPNG(e,t={}){this.format.toPNG(e,t)}toJPEG(e,t={}){this.format.toJPEG(e,t)}printPreview(e){this.print.show(e)}dispose(){this.clearCells(),this.off(),this.css.dispose(),this.hook.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.knob.dispose(),this.highlight.dispose(),this.background.dispose(),this.clipboard.dispose(),this.snapline.dispose(),this.selection.dispose(),this.history.dispose(),this.keyboard.dispose(),this.mousewheel.dispose(),this.print.dispose(),this.format.dispose(),this.minimap.dispose(),this.panning.dispose(),this.scroller.dispose(),this.view.dispose(),this.renderer.dispose(),this.size.dispose()}}jR([lj.checkScroller()],RR.prototype,"lockScroller",null),jR([lj.checkScroller()],RR.prototype,"unlockScroller",null),jR([lj.checkScroller()],RR.prototype,"updateScroller",null),jR([lj.checkScroller()],RR.prototype,"getScrollbarPosition",null),jR([lj.checkScroller()],RR.prototype,"setScrollbarPosition",null),jR([lj.checkScroller()],RR.prototype,"scrollToPoint",null),jR([lj.checkScroller()],RR.prototype,"scrollToContent",null),jR([lj.checkScroller()],RR.prototype,"scrollToCell",null),jR([lj.checkScroller()],RR.prototype,"transitionToPoint",null),jR([lj.checkScroller()],RR.prototype,"transitionToRect",null),jR([uN.dispose()],RR.prototype,"dispose",null),function(e){e.View=uj,e.Hook=NR,e.Renderer=Oj,e.Keyboard=bR,e.MouseWheel=_R,e.BaseManager=sj,e.DefsManager=Vj,e.GridManager=$j,e.CoordManager=Kj,e.PrintManager=ER,e.FormatManager=CR,e.MiniMapManager=gR,e.HistoryManager=fR,e.SnaplineManager=Zj,e.ScrollerManager=eR,e.ClipboardManager=rR,e.TransformManager=sR,e.HighlightManager=oR,e.BackgroundManager=Aj,e.SelectionManager=cR}(RR||(RR={})),function(e){e.toStringTag=`X6.${e.name}`,e.isGraph=function(t){if(null==t)return!1;if(t instanceof e)return!0;const n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&null!=r.hook&&null!=r.view&&null!=r.model}}(RR||(RR={})),function(e){e.render=function(t,n){const r=t instanceof HTMLElement?new e({container:t}):new e(t);return null!=n&&r.fromJSON(n),r}}(RR||(RR={})),function(e){e.registerNode=LI.registry.register,e.registerEdge=YI.registry.register,e.registerView=DN.registry.register,e.registerAttr=WA.registry.register,e.registerGrid=XA.registry.register,e.registerFilter=dD.registry.register,e.registerNodeTool=KN.registry.register,e.registerEdgeTool=JN.registry.register,e.registerBackground=mD.registry.register,e.registerHighlighter=SD.registry.register,e.registerPortLayout=YD.registry.register,e.registerPortLabelLayout=iN.registry.register,e.registerMarker=LA.registry.register,e.registerRouter=aI.registry.register,e.registerConnector=bI.registry.register,e.registerAnchor=fP.registry.register,e.registerEdgeAnchor=bP.registry.register,e.registerConnectionPoint=SP.registry.register,e.registerConnectionStrategy=SN.registry.register,e.registerHTMLComponent=ij.componentRegistry.register}(RR||(RR={})),function(e){e.unregisterNode=LI.registry.unregister,e.unregisterEdge=YI.registry.unregister,e.unregisterView=DN.registry.unregister,e.unregisterAttr=WA.registry.unregister,e.unregisterGrid=XA.registry.unregister,e.unregisterFilter=dD.registry.unregister,e.unregisterNodeTool=KN.registry.unregister,e.unregisterEdgeTool=JN.registry.unregister,e.unregisterBackground=mD.registry.unregister,e.unregisterHighlighter=SD.registry.unregister,e.unregisterPortLayout=YD.registry.unregister,e.unregisterPortLabelLayout=iN.registry.unregister,e.unregisterMarker=LA.registry.unregister,e.unregisterRouter=aI.registry.unregister,e.unregisterConnector=bI.registry.unregister,e.unregisterAnchor=fP.registry.unregister,e.unregisterEdgeAnchor=bP.registry.unregister,e.unregisterConnectionPoint=SP.registry.unregister,e.unregisterConnectionStrategy=SN.registry.unregister,e.unregisterHTMLComponent=ij.componentRegistry.unregister}(RR||(RR={}));class FR{constructor(){this.cells=[]}copy(e,t,n={}){this.options=Object.assign({},n);const r=(GI.isModel(t)?t:t.model).cloneSubGraph(e,n);this.cells=xE(Object.keys(r).map((e=>r[e])),(e=>e.isEdge()?2:1)),this.serialize(n)}cut(e,t,n={}){this.copy(e,t,n);(RR.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:o}=n;let a=20,s=20;r&&(a="number"==typeof r?r:r.dx,s="number"==typeof r?r:r.dy),this.deserialize(n);const l=this.cells;l.forEach((e=>{e.model=null,e.removeProp("zIndex"),(a||s)&&e.translate(a,s),o&&e.isNode()&&e.prop(o),i&&e.isEdge()&&e.prop(i)}));const c=RR.isGraph(e)?e.model:e;return c.batchUpdate("paste",(()=>{c.addCells(this.cells)})),this.copy(l,e,t),l}serialize(e){!1!==e.useLocalStorage&&PR.save(this.cells)}deserialize(e){if(e.useLocalStorage){const e=PR.fetch();e&&(this.cells=e)}}isEmpty(){return this.cells.length<=0}clean(){this.options={},this.cells=[],PR.clean()}}!function(e){const t=`${vD.prefixCls}.clipboard.cells`;e.save=function(e){if(window.localStorage){const n=e.map((e=>e.toJSON()));localStorage.setItem(t,JSON.stringify(n))}},e.fetch=function(){if(window.localStorage){const e=localStorage.getItem(t),n=e?JSON.parse(e):[];if(n)return GI.fromJSON(n)}},e.clean=function(){window.localStorage&&localStorage.removeItem(t)}}(PR||(PR={}));class zR{constructor(e){this.halo=e}get options(){return this.halo.options}get graph(){return this.halo.graph}get model(){return this.halo.model}get view(){return this.halo.view}get cell(){return this.halo.cell}get node(){return this.cell}getPresets(){return{className:"type-node",handles:[{name:"remove",position:"nw",events:{mousedown:this.removeCell.bind(this)},icon:null},{name:"resize",position:"se",events:{mousedown:this.startResize.bind(this),mousemove:this.doResize.bind(this),mouseup:this.stopResize.bind(this)},icon:null},{name:"clone",position:"n",events:{mousedown:this.startClone.bind(this),mousemove:this.doClone.bind(this),mouseup:this.stopClone.bind(this)},icon:null},{name:"link",position:"e",events:{mousedown:this.startLink.bind(this),mousemove:this.doLink.bind(this),mouseup:this.stopLink.bind(this)},icon:null},{name:"fork",position:"ne",events:{mousedown:this.startFork.bind(this),mousemove:this.doFork.bind(this),mouseup:this.stopFork.bind(this)},icon:null},{name:"unlink",position:"w",events:{mousedown:this.unlink.bind(this)},icon:null},{name:"rotate",position:"sw",events:{mousedown:this.startRotate.bind(this),mousemove:this.doRotate.bind(this),mouseup:this.stopRotate.bind(this)},icon:null}],bbox(e){if(this.options.useCellGeometry){return e.cell.getBBox()}return e.getBBox()},content(e){const t=IS("x: <%= x %>, y: <%= y %>, width: <%= width %>, height: <%= height %>, angle: <%= angle %>"),n=e.cell,r=n.getBBox();return t({x:Math.floor(r.x),y:Math.floor(r.y),width:Math.floor(r.width),height:Math.floor(r.height),angle:Math.floor(n.getAngle())})},magnet(e){return e.container},tinyThreshold:40,smallThreshold:80,loopEdgePreferredSide:"top",loopEdgeWidth:40,rotateGrid:15,rotateEmbeds:!1}}removeCell(){this.model.removeConnectedEdges(this.cell),this.cell.remove()}startLink({x:e,y:t}){this.halo.startBatch();const n=this.graph,r=this.createEdgeConnectedToSource();r.setTarget({x:e,y:t}),this.model.addEdge(r,{validation:!1,halo:this.halo.cid,async:!1}),n.view.undelegateEvents(),this.edgeView=n.renderer.findViewByCell(r),this.edgeView.prepareArrowheadDragging("target",{x:e,y:t,fallbackAction:"remove"})}createEdgeConnectedToSource(){const e=this.getMagnet(this.view,"source"),t=this.getEdgeTerminal(this.view,e),n=this.graph.hook.getDefaultEdge(this.view,e);return n.setSource(t),n}getMagnet(e,t){const n=this.options.magnet;if("function"==typeof n){const r=XT(n,this.halo,e,t);if(r instanceof SVGElement)return r}throw new Error("`magnet()` has to return an SVGElement")}getEdgeTerminal(e,t){const n={cell:e.cell.id};if(t!==e.container){const r=t.getAttribute("port");r?n.port=r:n.selector=e.getSelector(t)}return n}doLink({e:e,x:t,y:n}){this.edgeView&&this.edgeView.onMouseMove(e,t,n)}stopLink({e:e,x:t,y:n}){const r=this.edgeView;if(r){r.onMouseUp(e,t,n);const i=r.cell;i.hasLoop()&&this.makeLoopEdge(i),this.halo.stopBatch(),this.halo.trigger("action:edge:addde",{edge:i}),this.edgeView=null}this.graph.view.delegateEvents()}makeLoopEdge(e){let t=null,n=null;const r=this.options.loopEdgeWidth,i=this.graph.options,o=new nO(0,0,i.width,i.height),a=this.graph.graphToLocal(this.view.getBBox());[this.options.loopEdgePreferredSide,"top","bottom","left","right"].some((e=>{let i=null,s=0,l=0;switch(e){case"top":i=new tO(a.x+a.width/2,a.y-r),s=r/2;break;case"bottom":i=new tO(a.x+a.width/2,a.y+a.height+r),s=r/2;break;case"left":i=new tO(a.x-r,a.y+a.height/2),l=r/2;break;case"right":i=new tO(a.x+a.width+r,a.y+a.height/2),l=r/2}return!!i&&(t=i.translate(-s,-l),n=i.translate(s,l),o.containsPoint(t)&&o.containsPoint(n))}))&&t&&n&&e.setVertices([t,n])}startResize({e:e}){this.halo.startBatch(),this.flip=[1,0,0,1,1,0,0,1][Math.floor(GM.normalize(this.node.getAngle())/45)],this.view.addClass("node-resizing"),jj("node:resize",e,this.view)}doResize({e:e,dx:t,dy:n}){const r=this.node.getSize(),i=Math.max(r.width+(this.flip?t:n),1),o=Math.max(r.height+(this.flip?n:t),1);this.node.resize(i,o,{absolute:!0}),jj("node:resizing",e,this.view)}stopResize({e:e}){this.view.removeClass("node-resizing"),jj("node:resized",e,this.view),this.halo.stopBatch()}startClone({e:e,x:t,y:n}){this.halo.startBatch();const r=this.options.clone(this.cell,{clone:!0});if(!TI.isCell(r))throw new Error("option 'clone()' has to return a cell");this.centerNodeAtCursor(r,t,n),this.model.addCell(r,{halo:this.halo.cid,async:!1});const i=this.graph.renderer.findViewByCell(r);i.onMouseDown(e,t,n),this.halo.setEventData(e,{cloneView:i})}centerNodeAtCursor(e,t,n){const r=e.getBBox().getCenter(),i=t-r.x,o=n-r.y;e.translate(i,o)}doClone({e:e,x:t,y:n}){const r=this.halo.getEventData(e).cloneView;r&&r.onMouseMove(e,t,n)}stopClone({e:e,x:t,y:n}){const r=this.halo.getEventData(e).cloneView;r&&r.onMouseUp(e,t,n),this.halo.stopBatch()}startFork({e:e,x:t,y:n}){this.halo.startBatch();const r=this.options.clone(this.cell,{fork:!0});if(!TI.isCell(r))throw new Error("option 'clone()' has to return a cell");this.centerNodeAtCursor(r,t,n),this.model.addCell(r,{halo:this.halo.cid,async:!1});const i=this.createEdgeConnectedToSource(),o=this.graph.renderer.findViewByCell(r),a=this.getMagnet(o,"target"),s=this.getEdgeTerminal(o,a);i.setTarget(s),this.model.addEdge(i,{halo:this.halo.cid,async:!1}),o.onMouseDown(e,t,n),this.halo.setEventData(e,{cloneView:o})}doFork({e:e,x:t,y:n}){const r=this.halo.getEventData(e).cloneView;r&&r.onMouseMove(e,t,n)}stopFork({e:e,x:t,y:n}){const r=this.halo.getEventData(e).cloneView;r&&r.onMouseUp(e,t,n),this.halo.stopBatch()}startRotate({e:e,x:t,y:n}){this.halo.startBatch();const r=this.node.getBBox().getCenter(),i=[this.node];this.options.rotateEmbeds&&this.node.getDescendants({deep:!0}).reduce(((e,t)=>(t.isNode()&&e.push(t),e)),i),this.halo.setEventData(e,{center:r,nodes:i,rotateStartAngles:i.map((e=>e.getAngle())),clientStartAngle:new tO(t,n).theta(r)}),i.forEach((t=>{const n=this.graph.findViewByCell(t);n&&(n.addClass("node-rotating"),jj("node:rotate",e,n))}))}doRotate({e:e,x:t,y:n}){const r=this.halo.getEventData(e),i=r.clientStartAngle-new tO(t,n).theta(r.center);r.nodes.forEach(((t,n)=>{const o=r.rotateStartAngles[n],a=yD.snapToGrid(o+i,this.options.rotateGrid);t.rotate(a,{absolute:!0,center:r.center,halo:this.halo.cid}),jj("node:rotating",e,this.graph.findViewByCell(t))}))}stopRotate({e:e}){this.halo.getEventData(e).nodes.forEach((t=>{const n=this.graph.findViewByCell(t);n.removeClass("node-rotating"),jj("node:rotated",e,n)})),this.halo.stopBatch()}unlink(){this.halo.startBatch(),this.model.removeConnectedEdges(this.cell),this.halo.stopBatch()}}class YR{constructor(e){this.halo=e}get options(){return this.halo.options}get graph(){return this.halo.graph}get model(){return this.halo.model}get view(){return this.halo.view}get cell(){return this.halo.cell}get edge(){return this.cell}getPresets(){return{className:"type-edge",handles:[{name:"remove",position:"nw",icon:null,events:{mousedown:this.removeEdge.bind(this)}},{name:"direction",position:"se",icon:null,events:{mousedown:this.directionSwap.bind(this)}}],content:!1,bbox(e){return e.graph.localToGraph(e.getPointAtRatio(.5))},tinyThreshold:-1,smallThreshold:-1}}removeEdge(){this.cell.remove()}directionSwap(){const e=this.edge.getSource(),t=this.edge.getTarget();this.edge.prop({source:t,target:e})}}class BR extends bj{get type(){return this.options.type||"surround"}get handleOptions(){return this.options}init(e){this.options=CC(BR.defaultOptions,this.cell.isNode()?new zR(this).getPresets():this.cell.isEdge()?new YR(this).getPresets():null,e),this.render(),this.initHandles(),this.update(),this.startListening()}startListening(){const e=this.model,t=this.graph;this.view.cell.on("removed",this.remove,this),e.on("reseted",this.remove,this),t.on("halo:destroy",this.remove,this),e.on("*",this.update,this),t.on("scale",this.update,this),t.on("translate",this.update,this),super.startListening()}stopListening(){const e=this.model,t=this.graph,n=this.view.cell;this.undelegateEvents(),n.off("removed",this.remove,this),e.off("reseted",this.remove,this),t.off("halo:destroy",this.remove,this),e.off("*",this.update,this),t.off("scale",this.update,this),t.off("translate",this.update,this),super.stopListening()}render(){const e=this.options,t=this.prefixClassName("widget-halo");return this.view.addClass(IR.NODE_CLS),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(t).attr("data-shape",this.view.cell.shape),e.className&&this.$container.addClass(e.className),this.$handleContainer=this.$("<div/>").addClass(`${t}-handles`).appendTo(this.container),this.$content=this.$("<div/>").addClass(`${t}-content`).appendTo(this.container),this.$container.appendTo(this.graph.container),this}remove(){return this.stopBatch(),this.view.removeClass(IR.NODE_CLS),super.remove()}update(){if(this.isRendered()){this.updateContent();const e=this.getBBox(),t=this.options.tinyThreshold||0,n=this.options.smallThreshold||0;this.$handleContainer.toggleClass(`${this.handleClassName}-tiny`,e.width<t&&e.height<t);const r=`${this.handleClassName}-small`;this.$handleContainer.toggleClass(r,!this.$handleContainer.hasClass(r)&&e.width<n&&e.height<n),this.$container.css({width:e.width,height:e.height,left:e.x,top:e.y}),this.hasHandle("unlink")&&this.toggleUnlink(),"surround"!==this.type&&"toolbar"!==this.type||this.hasHandle("fork")&&this.toggleFork()}}updateContent(){const e=this.options.content;if("function"==typeof e){const t=XT(e,this,this.view,this.$content[0]);t&&this.$content.html(t)}else e?this.$content.html(e):this.$content.remove()}getBBox(){const e=this.view,t=this.options.bbox,n="function"==typeof t?XT(t,this,e):t;return nO.create(Object.assign({x:0,y:0,width:1,height:1},n))}removeCell(){this.cell.remove()}toggleFork(){const e=this.view.cell.clone(),t=this.graph.hook.createCellView(e),n=this.graph.hook.validateConnection(this.view,null,t,null,"target");this.$handleContainer.children(".fork").toggleClass("hidden",!n),t.remove()}toggleUnlink(){const e=this.model.getConnectedEdges(this.view.cell).length>0;this.$handleContainer.children(".unlink").toggleClass("hidden",!e)}startBatch(){this.model.startBatch("halo",{halo:this.cid})}stopBatch(){this.model.hasActiveBatch("halo")&&this.model.stopBatch("halo",{halo:this.cid})}}!function(e){e.defaultOptions={type:"surround",clearAll:!0,clearOnBlankMouseDown:!0,useCellGeometry:!1,clone:e=>e.clone().removeZIndex()}}(BR||(BR={})),Object.getOwnPropertyNames(gj.prototype).forEach((e=>{"constructor"!==e&&Object.defineProperty(BR.prototype,e,Object.getOwnPropertyDescriptor(gj.prototype,e))})),function(e){e.NODE_CLS="has-widget-halo"}(IR||(IR={}));var HR,qR,UR,VR=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class WR extends wN{constructor(e){super(),this.options=Object.assign(Object.assign({},WR.defaults),e),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName("widget-dnd")),this.draggingGraph=new RR(Object.assign(Object.assign({},this.options.delegateGraphOptions),{container:document.createElement("div"),width:1,height:1})),this.$container.append(this.draggingGraph.container)}get targetScroller(){const e=this.options.target;return RR.isGraph(e)?e.scroller.widget:e}get targetGraph(){const e=this.options.target;return RR.isGraph(e)?e:e.graph}get targetModel(){return this.targetGraph.model}get snapline(){return this.targetGraph.snapline.widget}start(e,t){const n=t;n.preventDefault(),this.targetModel.startBatch("dnd"),this.$container.addClass("dragging").appendTo(this.options.draggingContainer||document.body),this.sourceNode=e,this.prepareDragging(e,n.clientX,n.clientY);const r=this.updateNodePosition(n.clientX,n.clientY);this.isSnaplineEnabled()&&(this.snapline.captureCursorOffset({e:n,node:e,cell:e,view:this.draggingView,x:r.x,y:r.y}),this.draggingNode.on("change:position",this.snap,this)),this.delegateDocumentEvents(WR.documentEvents,n.data)}isSnaplineEnabled(){return this.snapline&&!this.snapline.disabled}prepareDragging(e,t,n){const r=this.draggingGraph,i=r.model,o=this.options.getDragNode(e,{sourceNode:e,draggingGraph:r,targetGraph:this.targetGraph});o.position(0,0);let a=5;if(this.isSnaplineEnabled()&&(a+=this.snapline.options.tolerance||0),this.isSnaplineEnabled()||this.options.scaled){const e=this.targetGraph.transform.getScale();r.scale(e.sx,e.sy),a*=Math.max(e.sx,e.sy)}else r.scale(1,1);this.clearDragging(),this.options.animation&&this.$container.stop(!0,!0),i.resetCells([o]);const s=r.findViewByCell(o);s.undelegateEvents(),s.cell.off("changed"),r.fitToContent({padding:a,allowNewOrigin:"any"});const l=s.getBBox();this.geometryBBox=s.getBBox({useCellGeometry:!0}),this.delta=this.geometryBBox.getTopLeft().diff(l.getTopLeft()),this.draggingNode=o,this.draggingView=s,this.draggingBBox=o.getBBox(),this.padding=a,this.originOffset=this.updateGraphPosition(t,n)}updateGraphPosition(e,t){const n=document.body.scrollTop||document.documentElement.scrollTop,r=this.delta,i=this.geometryBBox,o=this.padding||5,a={left:e-r.x-i.width/2-o,top:t-r.y-i.height/2-o+n};return this.draggingGraph&&this.$container.offset(a),a}updateNodePosition(e,t){const n=this.targetGraph.clientToLocal(e,t),r=this.draggingBBox;return 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}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 o=this.updateNodePosition(r,i),a=this.targetGraph.options.embedding.enabled,s=(a||this.isSnaplineEnabled())&&this.isInsideValidArea({x:r,y:i});if(a){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}this.isSnaplineEnabled()&&(s?this.snapline.snapOnMoving({e:n,view:t,x:o.x,y:o.y}):this.snapline.hide())}}onDragEnd(e){const t=this.draggingNode;if(t){const n=this.normalizeEvent(e),r=this.draggingView,i=this.draggingBBox,o=this.snapOffset;let a=i.x,s=i.y;o&&(a+=o.x,s+=o.y),t.position(a,s,{silent:!0});const l=this.drop(t,{x:n.clientX,y:n.clientY}),c=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")};ZT(l)?(this.undelegateDocumentEvents(),l.then(c)):c(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.originOffset=null,this.undelegateDocumentEvents())}onDropped(e){this.draggingNode===e&&(this.clearDragging(),this.$container.removeClass("dragging").remove())}onDropInvalid(){const e=this.draggingNode;if(e){const t=this.options.animation;if(t){const n="object"==typeof t&&t.duration||150,r="object"==typeof t&&t.easing||"swing";this.draggingView=null,this.$container.animate(this.originOffset,n,r,(()=>this.onDropped(e)))}else 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 o=n&&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!o&&t&&t.containsPoint(e)}getDropArea(e){const t=this.$(e),n=t.offset(),r=document.body.scrollTop||document.documentElement.scrollTop,i=document.body.scrollLeft||document.documentElement.scrollLeft;return nO.create({x:n.left+parseInt(t.css("border-left-width"),10)-i,y:n.top+parseInt(t.css("border-top-width"),10)-r,width:t.innerWidth(),height:t.innerHeight()})}drop(e,t){if(this.isInsideValidArea(t)){const n=this.targetGraph,r=n.model,i=n.clientToLocal(t),o=this.sourceNode,a=this.options.getDropNode(e,{sourceNode:o,draggingNode:e,targetGraph:this.targetGraph,draggingGraph:this.draggingGraph}),s=a.getBBox();i.x+=s.x-s.width/2,i.y+=s.y-s.height/2;const l=this.snapOffset?1:n.getGridSize();a.position(yD.snapToGrid(i.x,l),yD.snapToGrid(i.y,l)),a.removeZIndex();const c=this.options.validateNode,u=!c||c(a,{sourceNode:o,draggingNode:e,droppingNode:a,targetGraph:n,draggingGraph:this.draggingGraph});return"boolean"==typeof u?u?(r.addCell(a,{stencil:this.cid}),a):null:function(...e){const t=QT(e);return"boolean"==typeof t?Promise.resolve(t):t}(u).then((e=>e?(r.addCell(a,{stencil:this.cid}),a):null))}return null}onRemove(){this.draggingGraph&&(this.draggingGraph.view.remove(),this.draggingGraph.dispose())}dispose(){this.remove()}}VR([wN.dispose()],WR.prototype,"dispose",null),function(e){e.defaults={animation:!1,getDragNode:e=>e.clone(),getDropNode:e=>e.clone()},e.documentEvents={mousemove:"onDragging",touchmove:"onDragging",mouseup:"onDragEnd",touchend:"onDragEnd",touchcancel:"onDragEnd"}}(WR||(WR={})),function(e){e.getMaxDim=function(e,t){return e.reduce(((e,n)=>Math.max(n.getSize()[t],e)),0)},e.getNodesInRow=function(e,t,n){const r=[];for(let i=n*t,o=i+n;i<o;i+=1)r.push(e[i]);return r},e.getNodesInColumn=function(e,t,n){const r=[];for(let i=t,o=e.length;i<o;i+=n)r.push(e[i]);return r},e.accumulate=function(e,t){return e.reduce(((e,t,n)=>(e.push(e[n]+t),e)),[t||0])}}(HR||(HR={}));class GR extends wN{constructor(e){if(super(),this.graphs={},this.$groups={},this.options=Object.assign(Object.assign({},GR.defaultOptions),e),this.dnd=new WR(this.options),this.onSearch=GT(this.onSearch,200),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(this.prefixClassName(qR.base)).attr("data-not-found-text",this.options.notFoundText||"No matches found"),this.options.collapsable=e.collapsable&&e.groups&&e.groups.some((e=>!1!==e.collapsable)),this.options.collapsable){this.$container.addClass("collapsable");const t=e.groups&&e.groups.every((e=>e.collapsed||!1===e.collapsable));t&&this.$container.addClass("collapsed")}this.$("<div/>").addClass(this.prefixClassName(qR.title)).html(this.options.title).appendTo(this.$container),e.search&&this.$container.addClass("searchable").append(this.renderSearch()),this.$content=this.$("<div/>").addClass(this.prefixClassName(qR.content)).appendTo(this.$container);const t=e.stencilGraphOptions||{};if(e.groups&&e.groups.length)e.groups.forEach((n=>{const r=this.$("<div/>").addClass(this.prefixClassName(qR.group)).attr("data-name",n.name);(null==n.collapsable&&e.collapsable||!1!==n.collapsable)&&r.addClass("collapsable"),r.toggleClass("collapsed",!0===n.collapsed);const i=this.$("<h3/>").addClass(this.prefixClassName(qR.groupTitle)).html(n.title||n.name),o=this.$("<div/>").addClass(this.prefixClassName(qR.groupContent)),a=n.graphOptions,s=new RR(Object.assign(Object.assign(Object.assign({},t),a),{container:document.createElement("div"),model:t.model||new GI,width:n.graphWidth||e.stencilGraphWidth,height:n.graphHeight||e.stencilGraphHeight,interacting:!1,preventDefaultBlankAction:!1}));o.append(s.container),r.append(i,o).appendTo(this.$content),this.$groups[n.name]=r,this.graphs[n.name]=s}));else{const n=new RR(Object.assign(Object.assign({},t),{container:document.createElement("div"),model:t.model||new GI,width:e.stencilGraphWidth,height:e.stencilGraphHeight,interacting:!1,preventDefaultBlankAction:!1}));this.$content.append(n.container),this.graphs[UR.defaultGroupName]=n}return this.startListening(),this}get targetScroller(){const e=this.options.target;return RR.isGraph(e)?e.scroller.widget:e}get targetGraph(){const e=this.options.target;return RR.isGraph(e)?e:e.graph}get targetModel(){return this.targetGraph.model}renderSearch(){return this.$("<div/>").addClass(this.prefixClassName(qR.search)).append(this.$("<input/>").attr({type:"search",placeholder:this.options.placeholder||"Search"}).addClass(this.prefixClassName(qR.searchText)))}startListening(){const e=this.prefixClassName(qR.title),t=this.prefixClassName(qR.searchText),n=this.prefixClassName(qR.groupTitle);this.delegateEvents({[`click .${e}`]:"onTitleClick",[`touchstart .${e}`]:"onTitleClick",[`click .${n}`]:"onGroupTitleClick",[`touchstart .${n}`]:"onGroupTitleClick",[`input .${t}`]:"onSearch",[`focusin .${t}`]:"onSearchFocusIn",[`focusout .${t}`]:"onSearchFocusOut"}),Object.keys(this.graphs).forEach((e=>{this.graphs[e].on("cell:mousedown",this.onDragStart,this)}))}stopListening(){this.undelegateEvents(),Object.keys(this.graphs).forEach((e=>{this.graphs[e].off("cell:mousedown",this.onDragStart,this)}))}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}loadGroup(e,t){const n=this.getModel(t);if(n){const t=e.map((e=>LI.isNode(e)?e:LI.create(e)));n.resetCells(t)}const r=this.getGroup(t);let i=this.options.stencilGraphHeight;r&&null!=r.graphHeight&&(i=r.graphHeight);const o=r&&r.layout||this.options.layout;if(o&&n&&XT(o,this,n,r),!i){const e=this.getGraph(t);e.fitToContent({minWidth:e.options.width,gridHeight:1,padding:r&&r.graphPadding||this.options.stencilGraphPadding||10})}return this}onDragStart(e){const{e:t,node:n}=e;this.dnd.start(n,t)}filter(e,t){const n=Object.keys(this.graphs).reduce(((n,r)=>{const i=this.graphs[r],o=r===UR.defaultGroupName?null:r,a=i.model.getNodes().filter((n=>{let r=!1;r="function"==typeof t?XT(t,this,n,e,o,this):"boolean"==typeof t?t:this.isCellMatched(n,e,t,e.toLowerCase()!==e);const a=i.renderer.findViewByCell(n);return a&&a.$(a.container).toggleClass("unmatched",!r),r})),s=a.length>0,l=this.options,c=new GI;return c.resetCells(a),l.layout&&XT(l.layout,this,c,this.getGroup(r)),this.$groups[r]&&this.$groups[r].toggleClass("unmatched",!s),i.fitToContent({gridWidth:1,gridHeight:1,padding:l.stencilGraphPadding||10}),n||s}),!1);this.$container.toggleClass("not-found",!n)}isCellMatched(e,t,n,r){return!t||!n||Object.keys(n).some((i=>{if("*"===i||e.shape===i){const o=n[i];if("boolean"==typeof o)return o;return(Array.isArray(o)?o:[o]).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(){this.$container.addClass("is-focused")}onSearchFocusOut(){this.$container.removeClass("is-focused")}onTitleClick(){this.options.collapsable&&(this.$container.toggleClass("collapsed"),this.$container.hasClass("collapsed")?this.collapseGroups():this.expandGroups())}onGroupTitleClick(e){const t=this.$(e.target).closest(`.${this.prefixClassName(qR.group)}`);this.toggleGroup(t.attr("data-name")||"");const n=Object.keys(this.$groups).every((e=>{const t=this.getGroup(e),n=this.$groups[e];return t&&!1===t.collapsable||n.hasClass("collapsed")}));this.$container.toggleClass("collapsed",n)}getModel(e){const t=this.getGraph(e);return t?t.model:null}getGraph(e){return this.graphs[e||UR.defaultGroupName]}getGroup(e){const t=this.options.groups;return null!=e&&t&&t.length?t.find((t=>t.name===e)):null}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}),t.addClass("collapsed"))}return this}expandGroup(e){if(this.isGroupCollapsable(e)){const t=this.$groups[e];t&&this.isGroupCollapsed(e)&&(this.trigger("group:expand",{name:e}),t.removeClass("collapsed"))}return this}isGroupCollapsable(e){return this.$groups[e].hasClass("collapsable")}isGroupCollapsed(e){const t=this.$groups[e];return t&&t.hasClass("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}onRemove(){Object.keys(this.graphs).forEach((e=>{this.graphs[e].view.remove(),delete this.graphs[e]})),this.dnd.remove(),this.stopListening(),this.undelegateDocumentEvents()}}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 KR(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){tm()(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(e){e.defaultOptions=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=GI.isModel(e)?e:(new GI).resetCells(e,{sort:!1,dryrun:!0}),r=n.getNodes(),i=t.columns||1,o=Math.ceil(r.length/i),a=t.dx||0,s=t.dy||0,l=!1!==t.center,c=!0===t.resizeToFit,u=t.marginX||0,d=t.marginY||0,h=[];let f=t.columnWidth;if("compact"===f)for(let e=0;e<i;e+=1){const t=HR.getNodesInColumn(r,e,i);h.push(HR.getMaxDim(t,"width")+a)}else{null!=f&&"auto"!==f||(f=HR.getMaxDim(r,"width")+a);for(let e=0;e<i;e+=1)h.push(f)}const p=HR.accumulate(h,u),g=[];let m=t.rowHeight;if("compact"===m)for(let e=0;e<o;e+=1){const t=HR.getNodesInRow(r,e,i);g.push(HR.getMaxDim(t,"height")+s)}else{null!=m&&"auto"!==m||(m=HR.getMaxDim(r,"height")+s);for(let e=0;e<o;e+=1)g.push(m)}const v=HR.accumulate(g,d);n.startBatch("layout"),r.forEach(((e,n)=>{const r=n%i,o=Math.floor(n/i),u=h[r],d=g[o];let f=0,m=0,y=e.getSize();if(c){let n=u-2*a,r=d-2*s;const i=y.height*(y.width?n/y.width:1),o=y.width*(y.height?r/y.height:1);d<i?n=o:r=i,y={width:n,height:r},e.setSize(y,t)}l&&(f=(u-y.width)/2,m=(d-y.height)/2),e.position(p[r]+a+f,v[o]+s+m,t)})),n.stopBatch("layout")}(e,Object.assign(Object.assign(Object.assign({},n),this.options.layoutOptions),t?t.layoutOptions:{}))}},WR.defaults)}(GR||(GR={})),function(e){e.base="widget-stencil",e.title=`${e.base}-title`,e.search=`${e.base}-search`,e.searchText=`${e.search}-text`,e.content=`${e.base}-content`,e.group=`${e.base}-group`,e.groupTitle=`${e.group}-title`,e.groupContent=`${e.group}-content`}(qR||(qR={})),function(e){e.defaultGroupName="__default__"}(UR||(UR={})),RR.registerConnector("bezier",(function(e,t,n,r){var i=e.x,o=e.y,a=t.x,s=t.y,l=i+(a-i)/2,c=new CO(CO.createSegment("M",e));return c.appendSegment(CO.createSegment("C",l,o,l,s,a,s)),r.raw?c:c.serialize()}));var JR=function(e){var t,n,r=null===(t=e.response)||void 0===t?void 0:t.data,i=Oy.initEmpty(KR(KR({},e),{},{type:vg.er})),o=Oy.dbo.init({dbobjs:null===(n=r.sqlflow)||void 0===n?void 0:n.dbobjs,dbvendor:i.dbvendor});i.dbo=o.flat;var a,s,l,c=-1;if(null===(a=r.graph)||void 0===a||a.elements.tables.forEach((function(e){Math.abs(e.y)>c&&(c=Math.abs(e.y))})),null===(s=r.graph)||void 0===s||s.elements.tables.forEach((function(e){var t=e.x+Qg.sqlflow.canvas.paddingLeft,n=e.y+Qg.sqlflow.canvas.paddingTop+c,o=Qg.er.graph.field.height*e.columns.length+Qg.er.graph.title.height+4,a={id:e.id,dboId:"",selectId:"",index:[0,0],title:e.label.content,titleFixWidth:"",type:"table",visible:!0,database:"",schema:"",height:{origin:o,calculate:o},width:{origin:e.width,calculate:e.width,max:e.width},left:{origin:t,calculate:t},top:{origin:n,calculate:n},fields:[],backwards:Oy.backwardsOrForwards.init(),forwards:Oy.backwardsOrForwards.init(),more:{},source:{refnum:0,edges:[]},target:{refnum:0,edges:[]},icon:0};if(ky(i.graph).find(a))throw new Error("duplicate ".concat(a.type," id."));ky(i.graph).push(a),e.columns.forEach((function(t,n){var o,s,l,c,u={id:t.id,graphId:e.id,selectId:"",title:null!==(o=null===(s=r.graph)||void 0===s?void 0:s.tooltip[t.label.content])&&void 0!==o?o:t.label.content,titleFixWidth:null!==(l=null===(c=r.graph)||void 0===c?void 0:c.tooltip[t.label.content])&&void 0!==l?l:t.label.content,coordinates:[],visible:!0,pin:!1,highlight:!1,mouseover:!1,source:[],backwards:Oy.backwardsOrForwards.init(),target:[],forwards:Oy.backwardsOrForwards.init()};if(ky(i.field).find(u))throw new Error("duplicate field id ".concat(u.id,"."));a.fields.push(u.id),ky(i.field).push(u)}))})),r.graph){var u=function(){if(d.includes("::")){var e=ky(i.field).findById(d);if(e)r.graph.listIdMap[d].forEach((function(t){var n=ky(i.dbo).findById(t),r=ky(i.graph).findById(e.graphId);Oy.dbo.isColumn(n)&&(e.dboId=n.id,e.coordinates.push(n.coordinates),e.dataType=n.dataType,e.isPrimaryKey=n.isPrimaryKey,e.isForeignKey=n.isForeignKey,e.isUniqueKey=n.isUniqueKey,e.isIndexKey=n.isIndexKey,n.fieldId=e.id,n.graphId=null==r?void 0:r.id)}))}else{if(1!==r.graph.listIdMap[d].length)throw new Error("incorrect numbers");var t=r.graph.listIdMap[d][0],n=ky(i.dbo).findById(t),o=ky(i.graph).findById(d);if(!o)throw new Error("cannot find dbo of graph id '".concat(d,"' in listIdMap"));if(!n)throw new Error("cannot find dbo of id '".concat(t,"'"));o.dboId=t,o.title=n.displayTitle||"",o.titleFixWidth=n.displayTitle||"",o.type=n.type,o.database=n.database,o.schema=n.schema,n.graphId=o.id}};for(var d in r.graph.listIdMap)u()}if(null===(l=r.graph)||void 0===l||l.elements.edges.forEach((function(e){var t={id:e.id,relationId:"",type:"fdd",visible:!0,pin:!1,highlight:!1,source:{fieldId:e.sourceId,graphId:"",port:""},target:{fieldId:e.targetId,graphId:"",port:""},svg:{text:{x:"",y:"",value:"",title:""},path:"",pathCX:"",pathCY:"",arrow:"",isDash:!1,isJoin:!1,isSelfJoin:!1},refnum:0};ky(i.edge).push(t);var n=ky(i.field).findById(e.sourceId),r=ky(i.field).findById(e.targetId);if(!n||!r)throw new Error("undefined");n.target.push({field:{id:e.targetId,edgeId:t.id}}),r.source.push({field:{id:e.sourceId,edgeId:t.id}}),t.source.graphId=n.graphId,t.target.graphId=r.graphId,r.isPrimaryKey&&(t.isPrimaryKey=!0)})),ky(i.field).forEach((function(e){e.source.length>0&&(e.x6=e.x6||{},e.x6.port=e.x6.port||{},e.x6.port.left="left_".concat(e.id)),e.target.length>0&&(e.x6=e.x6||{},e.x6.port=e.x6.port||{},e.x6.port.right="right_".concat(e.id))})),ky(i.edge).forEach((function(e){var t,n,r,o,a,s,l=null===(t=ky(i.field).findById(e.source.fieldId))||void 0===t||null===(n=t.x6)||void 0===n||null===(r=n.port)||void 0===r?void 0:r.right,c=null===(o=ky(i.field).findById(e.target.fieldId))||void 0===o||null===(a=o.x6)||void 0===a||null===(s=a.port)||void 0===s?void 0:s.left;l&&c&&(e.source.port=l,e.target.port=c)})),Oy.backwardsOrForwards.set(i),e.layout)ky(i.graph).forEach((function(e){var t=function(e){return e.length>50};e.width.origin=200;var n=Math.max(e.width.origin,cg.get50CharWidth(e.title)),r=0;e.fields.forEach((function(e){var t=ky(i.field).findById(e);t&&(n=Math.max(n,cg.get50CharWidth(t.title)),r=Math.max(r,(t.isPrimaryKey?1:0)+(t.isUniqueKey?1:0)+(t.isIndexKey?1:0)))})),e.icon=r;var o=0;t(e.title)&&(e.titleFixWidth=e.title.slice(0,25)+"..."+e.title.slice(-25),o=70),e.fields.forEach((function(e){var n=ky(i.field).findById(e);n&&t(n.title)&&(n.titleFixWidth=n.title.slice(0,25)+"..."+n.title.slice(-25),o=70)})),e.width.calculate=n+25+o+12*r}));else{var h={};ky(i.graph).forEach((function(e){h[e.left.origin]?h[e.left.origin][e.top.origin]=e.id:h[e.left.origin]=tm()({},e.top.origin,e.id)}));var f=[],p=[];Object.keys(h).sort((function(e,t){return parseFloat(e)-parseFloat(t)})).forEach((function(e,t){var n=[];Object.keys(h[e]).sort((function(e,t){return parseFloat(e)-parseFloat(t)})).forEach((function(r,o){0!==o||i.leftTopGraphId||(i.leftTopGraphId=h[e][r]);var a=ky(i.graph).findById(h[e][r]),s=function(e){return e.length>50};if(a){var l;n.push(h[e][r]);var c=Math.max(a.width.origin,cg.get50CharWidth(a.title)),u=0;a.fields.forEach((function(e){var t=ky(i.field).findById(e);t&&(c=Math.max(c,cg.get50CharWidth(t.title)),u=Math.max(u,(t.isPrimaryKey?1:0)+(t.isUniqueKey?1:0)+(t.isIndexKey?1:0)))})),a.icon=u;var d=0;s(a.title)&&(a.titleFixWidth=a.title.slice(0,25)+"..."+a.title.slice(-25),d=70),a.fields.forEach((function(e){var t=ky(i.field).findById(e);t&&s(t.title)&&(t.titleFixWidth=t.title.slice(0,25)+"..."+t.title.slice(-25),d=70)})),a.width.calculate=c+25+d+12*u,p[t]=Math.max(null!==(l=p[t])&&void 0!==l?l:0,a.width.calculate)}})),f.push(n)}));var g=[];f.forEach((function(e,t){e.forEach((function(e){var n,r=ky(i.graph).findById(e);r&&(r.width.max=p[t],r.left.origin+=(r.width.max-r.width.calculate)/2,r.left.calculate=r.left.origin,0===t?g[t]=Math.max(null!==(n=g[t])&&void 0!==n?n:0,r.width.max-r.width.origin):(g[t]=g[t-1]+r.width.max-r.width.origin,r.left.origin+=g[t-1],r.left.calculate=r.left.origin))}))}))}if(e.layout){var m=new(xy().graphlib.Graph);m.setGraph({rankdir:"LR",ranksep:100,nodesep:20,edgesep:1}),m.setDefaultEdgeLabel((function(){return{}})),ky(i.graph).forEach((function(e){m.setNode(e.id,{width:e.width.calculate,height:e.height.calculate})})),ky(i.edge).forEach((function(e){m.setEdge(e.source.graphId,e.target.graphId)})),xy().layout(m),m.nodes().forEach((function(e){var t=m.node(e),n=ky(i.graph).findById(e);n&&(n.left.calculate=t.x-n.width.calculate/2+40,n.top.calculate=t.y-n.height.calculate/2+40)}))}Oy.graph.util.setEdgesSVG(i),i.x6Data={nodes:[],edges:[]};var v=ky(i.graph).map((function(e){var t=ky(i.field).findByIds(e.fields),n=function(n){var r=[];return t.forEach((function(t,i){var o,a,s=null===(o=t.x6)||void 0===o||null===(a=o.port)||void 0===a?void 0:a[n];s&&r.push({id:s,group:n,args:{x:"left"===n?0:e.width.calculate,y:26+16*(i+.5)}})})),r},r={attrs:{circle:{r:0,magnet:!1,strokeWidth:0}},position:{name:"absolute"}};return{id:e.id,shape:"er-rect",x:e.left.calculate,y:e.top.calculate,width:e.width.calculate,height:e.height.calculate,label:e.id,zIndex:2,ports:{groups:{left:r,right:r},items:[].concat(wy()(n("left")),wy()(n("right")))}}})),y=ky(i.edge).filter((function(e){return e.x6})).map((function(e){return{id:e.id,source:e.x6.source,target:e.x6.target,zIndex:1,attrs:{line:{stroke:"#ababab",strokeWidth:"1",targetMarker:{tagName:"path",strokeWidth:1,d:"M 8 0 L 0 5 M 8 0 L 0 -5"}}},router:{name:"manhattan"},connector:{name:e.x6_segmanet?"bezier":"rounded",args:{edge:e}}}}));return i.x6Data.nodes=v,i.x6Data.edges=y,i};var XR=__webpack_require__(68400),ZR=__webpack_require__.n(XR),QR=__webpack_require__(40705),eF=__webpack_require__.n(QR),tF={show:function(){bm(arguments).account.visible=!0},hide:function(){bm(arguments).account.visible=!1},loading:{start:function(){bm(arguments).account.loading=!0},stop:function(){bm(arguments).account.loading=!1}},token:{set:function(e){bm(arguments).account.token=e}},coupon:{show:function(){bm(arguments).account.coupon.visible=!0},hide:function(){bm(arguments).account.coupon.visible=!1},loading:{start:function(){bm(arguments).account.coupon.loading=!0},stop:function(){bm(arguments).account.coupon.loading=!1}}},isShare:function(){bm(arguments).account.isShare=!0},share:{show:function(){bm(arguments).account.share.visible=!0},hide:function(){bm(arguments).account.share.visible=!1},loading:{start:function(){bm(arguments).account.share.loading=!0},stop:function(){bm(arguments).account.share.loading=!1}},list:function(e){bm(arguments).account.share.list=e}}},nF={initialState:{visible:!1,loading:!1,token:"",coupon:{visible:!1,loading:!1},isShare:!1,share:{visible:!1,loading:!1,list:[]}},reducers:tF},rF={show:function(){bm(arguments).expired.visible=!0},hide:function(){bm(arguments).expired.visible=!1}},iF={initialState:{visible:!1},reducers:rF},oF={show:function(){bm(arguments).export.visible=!0},hide:function(){bm(arguments).export.visible=!1}},aF={initialState:{visible:!1},reducers:oF},sF={context:{show:function(e){var t=bm(arguments).graph;t.context.visible=!0,t.context.position=e},hide:function(){var e=bm(arguments).graph;e.context.visible=!1,e.context.fieldId="",e.context.graphId=""},fieldId:{set:function(e){bm(arguments).graph.context.fieldId=e}},graphId:{set:function(e){bm(arguments).graph.context.graphId=e}}},scrollbar:{horizontal:{set:function(e){bm(arguments).graph.scrollbar.horizontal=e}}}},lF={initialState:{context:{visible:!1,position:{left:0,top:0},fieldId:"",graphId:""},scrollbar:{horizontal:{left:0,width:0},vertical:{}}},reducers:sF},cF={current:{set:function(e){bm(arguments).job.current=e.jobId},clear:function(){bm(arguments).job.current=null}},list:{set:function(e){bm(arguments).job.list=e}},connection:{show:function(e){var t=bm(arguments).job;t.connection.visible=!0,t.connection.current=e,t.connection.scheduleRuning=!e.cancelSchedule},hide:function(){bm(arguments).job.connection.visible=!1},defaulTab:{set:function(e){bm(arguments).job.connection.defaulTab=e}},scheduleRuning:{set:function(e){bm(arguments).job.connection.scheduleRuning=e}},summary:{set:function(e){bm(arguments).job.connection.summary=e}},error:{set:function(e){bm(arguments).job.connection.error=e}}},upload:{show:function(){bm(arguments).job.upload.visible=!0},hide:function(){bm(arguments).job.upload.visible=!1},source:{set:function(e){bm(arguments).job.upload.source=e}},jobtype:{set:function(e){bm(arguments).job.upload.jobtype=e}},dataflow:{set:function(e){bm(arguments).job.upload.dataflow=e}},impact:{set:function(e){bm(arguments).job.upload.impact=e}},dataflowOfAggregateFunction:{set:function(e){bm(arguments).job.upload.dataflowOfAggregateFunction=e}},showIntermediateRecordset:{set:function(e){bm(arguments).job.upload.showIntermediateRecordset=e}},showFunction:{set:function(e){bm(arguments).job.upload.showFunction=e}},showTransform:{set:function(e){bm(arguments).job.upload.showTransform=e}},showConstant:{set:function(e){bm(arguments).job.upload.showConstant=e}},requireDatabase:{set:function(e){bm(arguments).job.upload.requireDatabase=e}},databaseLabel:{set:function(e){bm(arguments).job.upload.databaseLabel=e}},isPortChange:{set:function(e){bm(arguments).job.upload.isPortChange=e}},collapseKey:{set:function(e){bm(arguments).job.upload.collapseKey=e}},settingKey:{set:function(e){bm(arguments).job.upload.settingKey=e}},csv:{show:function(){bm(arguments).job.upload.csv.visible=!0},hide:function(){bm(arguments).job.upload.csv.visible=!1}}},error:{current:{set:function(e){bm(arguments).job.error.current=e},empty:function(){bm(arguments).job.error.current=null}}},search:{word:{set:function(e){bm(arguments).job.search.word=e}},filter:function(){var e=bm(arguments).job,t=e.search.word;e.search.result=t?e.list.filter((function(e){return e.jobName.toLowerCase().includes(t.toLowerCase())||e.jobId===t})):[]}}},uF={initialState:{current:null,list:[],connection:{visible:!1,current:null,defaulTab:"1",scheduleRuning:!0,summary:null,error:""},upload:{visible:!1,source:gg.uploadFile,jobtype:mg.simpleJob,requireDatabase:!0,isPortChange:!1,collapseKey:[],settingKey:[],dataflow:!0,impact:!1,dataflowOfAggregateFunction:!0,showIntermediateRecordset:!1,showFunction:!1,showTransform:!1,showConstant:!1,csv:{visible:!1},databaseLabel:"database"},error:{current:null},search:{word:"",result:[]}},reducers:cF},dF={"Customer contact name":"","Supported databases":"","Product name":"","Product version":"","Purchase date":"","Customer contact email":"","Product license":"","Customer company name":"",vendor:{list:[],current:fg.oracle},machineCode:{visible:!1,message:"",reason:"",value:""}},hF={set:{fromServer:function(e){var t,n=bm(arguments).license;n["Customer company name"]=e.data["Customer company name"],n["Supported databases"]=e.data["Supported databases"],n["Product name"]=e.data["Product name"],n["Product version"]=e.data["Product version"],n["Purchase date"]=e.data["Purchase date"],n["Customer contact email"]=e.data["Customer contact email"],n["Product license"]=e.data["Product license"];var r=(null==e||null===(t=e.data["Supported databases"])||void 0===t?void 0:t.split(","))||[];Object.keys(fg).forEach((function(e){n.vendor.list.push({name:e,license:!1})})),r.forEach((function(e){if(fg[e]){var t=n.vendor.list.findIndex((function(t){return t.name===fg[e]}));t>-1&&(n.vendor.list[t].license=!0)}}));var i=function(e,t){return e.name>t.name?1:-1},o=[].concat(wy()(n.vendor.list.filter((function(e){return e.license})).sort(i)),wy()(n.vendor.list.filter((function(e){return!e.license})).sort(i))),a=o.find((function(e){return e.name===fg.oracle}));null!=a&&a.license||(n.vendor.current=o[0].name),n.vendor.list=o}},vendor:{current:{set:function(e){bm(arguments).license.vendor.current=e}}},machineCode:{show:function(e){var t=bm(arguments).license;t.machineCode.visible=!0,t.machineCode.message=e.message,t.machineCode.reason=e.reason,t.machineCode.value=e.code},hide:function(){bm(arguments).license.machineCode.visible=!0}}},fF={context:{show:function(e){var t=bm(arguments).lineage;t.context.visible=!0,t.context.position=e},hide:function(){bm(arguments).lineage.context.visible=!1},process:{set:function(e){var t=bm(arguments).lineage;t.context.isProcess=!0,t.context.process=e},clear:function(){var e=bm(arguments).lineage;e.context.process=null,e.context.isProcess=!1}}},current:{set:function(e){bm(arguments).lineage.current=e},graph:{hover:function(e){var t,n=bm(arguments).lineage,r=ky(null===(t=n.current)||void 0===t?void 0:t.graph).findById(e.id);n.current&&r&&Ry.graph.highlight(n.current,r,!0)},leave:function(e){var t,n=bm(arguments).lineage,r=ky(null===(t=n.current)||void 0===t?void 0:t.graph).findById(e.id);n.current&&r&&Ry.graph.highlight(n.current,r,!1)},pin:function(e){var t,n=bm(arguments).lineage,r=ky(null===(t=n.current)||void 0===t?void 0:t.graph).findById(e.id);n.current&&r&&Ry.graph.pin(n.current,r)},cancel:function(){var e=bm(arguments).lineage;e.current&&Ry.graph.cancel(e.current)}},select:{set:function(e){var t=bm(arguments).lineage;t.current&&(t.current.select.current=e,Ry.graph.draw(t.current),Ry.graph.cancel(t.current))},clear:function(){var e=bm(arguments).lineage;e.current&&(e.current.select.current=void 0,Ry.graph.draw(e.current),Ry.graph.cancel(e.current))}},locate:{graphId:{set:function(e){var t=bm(arguments).lineage;t.current&&(t.current.locate={graphId:e})}},clear:function(){var e=bm(arguments).lineage;e.current&&(e.current.locate=void 0)}},scale:{zoomIn:function(){var e=bm(arguments).lineage;e.current&&(e.current.scale.value*=1.2)},zoomOut:function(){var e=bm(arguments).lineage;e.current&&(e.current.scale.value*=.8)},reset:function(){var e=bm(arguments).lineage;e.current&&(e.current.scale.value=1)}},code:{height:{set:function(e){var t=bm(arguments).lineage;t.current&&(t.current.code.height=e)}},loading:{start:function(){var e=bm(arguments).lineage;e.current&&(e.current.code.loading=!0)},stop:function(){var e=bm(arguments).lineage;e.current&&(e.current.code.loading=!1)}},title:{set:function(e){var t=bm(arguments).lineage;t.current&&(t.current.code.title=e)}},sql:{set:function(e){var t=bm(arguments).lineage;t.current&&(t.current.code.sql=e,t.current.code.sql=e)}},coordinates:{set:function(e){var t=bm(arguments).lineage;t.current&&(t.current.code.coordinates=e)}},show:function(){var e=bm(arguments).lineage;e.current&&(e.current.code.visible=!0,e.current.code.sql="")},hide:function(){var e=bm(arguments).lineage;e.current&&(e.current.code.loading||(e.current.code.visible=!1))}}},visualize:{type:{set:function(e){var t=bm(arguments).lineage;t.visualize.type=e,t.visualize.job=void 0,t.visualize.select=void 0,t.visualize.sqltext.value=""}},mode:{set:function(e){bm(arguments).lineage.visualize.mode=e}},dbvendor:{set:function(e){bm(arguments).lineage.visualize.dbvendor=e}},job:{set:function(e){bm(arguments).lineage.visualize.job=e}},select:{set:function(e){bm(arguments).lineage.visualize.select=e}},info:{show:function(){bm(arguments).lineage.visualize.info.visible=!0},hide:function(){var e=bm(arguments).lineage;e.visualize.info.visible=!1,e.visualize.sqltext.visible=!1}},sqltext:{value:{set:function(e){bm(arguments).lineage.visualize.sqltext.value=e}},show:function(){bm(arguments).lineage.visualize.sqltext.visible=!0},hide:function(){bm(arguments).lineage.visualize.sqltext.visible=!1}},setting:{allTablesInFromClauseIncludedInTableLevelLineage:{set:function(e){bm(arguments).lineage.visualize.setting.allTablesInFromClauseIncludedInTableLevelLineage=e}},reset:function(){bm(arguments).lineage.visualize.setting={allTablesInFromClauseIncludedInTableLevelLineage:!1}}}}},pF={auth0:{start:function(){var e=bm(arguments).loading;e.auth0=!0,e.spinning=!0,e.message="logining"},stop:function(){var e=bm(arguments).loading;e.auth0=!1,e.spinning=!1}},config:{start:function(){var e=bm(arguments).loading;e.config=!0,e.spinning=!0,e.message="loading config"},stop:function(){var e=bm(arguments).loading;e.config=!1,e.spinning=!1}},license:{start:function(){var e=bm(arguments).loading;e.license=!0,e.spinning=!0,e.message="validating license"},stop:function(){var e=bm(arguments).loading;e.license=!1,e.spinning=!1}},sqlflow:{spinning:{start:function(){var e=bm(arguments).loading;e.sqlflow.spinning=!0,e.spinning=!0,e.message="analyzing"},stop:function(){var e=bm(arguments).loading;e.sqlflow.spinning=!1,e.spinning=!1}}},lineage:{spinning:{start:function(){var e=bm(arguments).loading;e.lineage.spinning=!0,e.spinning=!0},stop:function(){var e=bm(arguments).loading;e.lineage.spinning=!1,e.spinning=!1}}},json:{spinning:{start:function(){var e=bm(arguments).loading;e.json.spinning=!0,e.spinning=!0},stop:function(){var e=bm(arguments).loading;e.json.spinning=!1,e.spinning=!1}}},er:{spinning:{start:function(){bm(arguments).loading.er.spinning=!0},stop:function(){bm(arguments).loading.er.spinning=!1}}},summary:{spinning:{start:function(){bm(arguments).loading.summary.spinning=!0},stop:function(){bm(arguments).loading.summary.spinning=!1}}},job:{start:function(){bm(arguments).loading.job=!0},stop:function(){bm(arguments).loading.job=!1}},upload:{start:function(){bm(arguments).loading.upload=!0},stop:function(){bm(arguments).loading.upload=!1}}},gF={show:function(){bm(arguments).login.show=!0},hide:function(){bm(arguments).login.show=!1},toggle:function(){var e=bm(arguments).login;e.status="login"===e.status?"sign up":"login"},login:function(){bm(arguments).login.status="login"},signup:function(){bm(arguments).login.status="sign up"},loading:{start:function(){bm(arguments).login.loading=!0},stop:function(){bm(arguments).login.loading=!1}},reset:{start:function(){bm(arguments).login.reset.loading=!0},stop:function(){bm(arguments).login.reset.loading=!1}}},mF={position:{set:function(e){bm(arguments).map.position=e}}},vF={sqltext:{set:function(e){bm(arguments).setting.sqltext=e}},isJoin:{set:function(e){bm(arguments).setting.isJoin=e}},dataflow:{set:function(e){bm(arguments).setting.dataflow=e}},impact:{set:function(e){bm(arguments).setting.impact=e}},dataflowOfAggregateFunction:{set:function(e){bm(arguments).setting.dataflowOfAggregateFunction=e}},ignoreRecordSet:{set:function(e){bm(arguments).setting.ignoreRecordSet=e}},ignoreFunction:{set:function(e){bm(arguments).setting.ignoreFunction=e}},defaultDistance:{set:function(e){bm(arguments).setting.defaultDistance=e}},syncToSQLFlow:function(){var e=bm(arguments).sqlflow,t=bm(arguments).setting;e.visualize.sqltext.value=t.sqltext,e.visualize.setting={hideAllColumns:t.hideAllColumns,isJoin:t.isJoin,dataflow:t.dataflow,impact:t.impact,dataflowOfAggregateFunction:t.dataflowOfAggregateFunction,ignoreRecordSet:t.ignoreRecordSet,ignoreFunction:t.ignoreFunction,showConstant:t.showConstantTable,showTransform:t.showTransform,defaultDistance:t.defaultDistance}}},yF={show:function(){bm(arguments).share.visible=!0},hide:function(){bm(arguments).share.visible=!1},loading:{start:function(){bm(arguments).share.loading=!0},stop:function(){bm(arguments).share.loading=!1}},url:{set:function(e){bm(arguments).share.url=e},clear:function(){bm(arguments).share.url=""}},info:{set:function(e){var t=bm(arguments).share;t.info.createTime=e.data.createTime,t.info.spendTime=e.data.spendTime,t.info.dbobj=e.data.dbobj,t.info.database=e.data.database,t.info.schema=e.data.schema,t.info.table=e.data.table,t.info.column=e.data.column||""}},link:{set:function(e){bm(arguments).share.link=e},clear:function(){bm(arguments).share.link=""}},email:{show:function(){bm(arguments).share.email.visible=!0},hide:function(){bm(arguments).share.email.visible=!1},setList:function(e){bm(arguments).share.email.list=e},setDbo:function(e){bm(arguments).share.email.dbo=e},loading:{start:function(){bm(arguments).share.email.loading=!0},stop:function(){bm(arguments).share.email.loading=!1}}}},bF={width:{set:function(e){bm(arguments).sql.width=e}}},wF={current:{set:function(e){var t=bm(arguments).sqlflow,n=function(){t.cache={sessionId:"",lineage:{},meta:{},leftMost:{},streamByStep:{},stream:{},upStream:{},downStream:{},sessionSelectGraph:{},displayMetadataQueryGraph:{}}};e?(Oy.graph.draw(e),t.current=e,t.cache.sessionId!==e.sessionId&&n()):(t.current=void 0,n())},setEmptyResultOnError:function(){var e=bm(arguments).sqlflow;if(e.current){var t=e.current.request,n=e.current.response,r=e.current.visualize,i=Oy.initEmpty({request:t,response:n,visualize:r});e.current=i}},error:{select:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.error.type.select=e)}},height:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.error.height=e)}},loading:{start:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.error.loading=!0)},stop:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.error.loading=!1)}},code:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.error.code=e)}},coordinate:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.error.coordinate=e)}},show:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.error.visible=!0,e.current.error.code="",e.current.error.coordinate=[])},hide:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.error.loading||(e.current.error.visible=!1))}},code:{height:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.code.height=e)}},loading:{start:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.code.loading=!0)},stop:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.code.loading=!1)}},title:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.code.title=e)}},sql:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.code.sql=e)},setText:function(e){var t,n,r=bm(arguments).sqlflow;r.current&&null!==(t=r.current.code.sql)&&void 0!==t&&null!==(n=t.file)&&void 0!==n&&n[0]&&(r.current.code.sql.file[0].content=e)},prev:function(){var e=bm(arguments).sqlflow;e.current&&0!==e.current.code.sql.index&&e.current.code.sql.index--},next:function(){var e=bm(arguments).sqlflow;e.current&&e.current.code.sql.index!==e.current.code.sql.token.length-1&&e.current.code.sql.index++}},show:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.code.visible=!0,e.current.code.sql={index:0,token:[],file:{}})},hide:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.code.loading||(e.current.code.visible=!1))}},code2:{height:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.code2.height=e)}},loading:{start:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.code2.loading=!0)},stop:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.code2.loading=!1)}},title:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.code2.title=e)}},sql:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.code2.sql=e)},prev:function(){var e=bm(arguments).sqlflow;e.current&&0!==e.current.code2.sql.index&&e.current.code2.sql.index--},next:function(){var e=bm(arguments).sqlflow;e.current&&e.current.code2.sql.index!==e.current.code2.sql.list.length-1&&e.current.code2.sql.index++}},show:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.code2.visible=!0,e.current.code2.sql={index:0,list:[]})},hide:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.code2.loading||(e.current.code2.visible=!1))}},select_deprecated:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.select.current_deprecated=e,Oy.graph.draw(t.current))},clear:function(){var e=bm(arguments).sqlflow;if(e.current){if(e.current.select.current_deprecated=void 0,e.current.visualize.type===yg.sessionSelectStreamByStep)return;Oy.graph.draw(e.current)}}},dbo:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.select.dbo=e,Oy.graph.draw(t.current))},clear:function(){var e=bm(arguments).sqlflow;if(e.current){if(e.current.select.dbo=void 0,e.current.visualize.type===yg.sessionSelectStreamByStep)return;Oy.graph.draw(e.current)}}},locate:{graphId:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.locate={graphId:e})}},clear:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.locate=void 0)},done:function(){var e,t=bm(arguments).sqlflow;null!==(e=t.current)&&void 0!==e&&e.locate&&(t.current.locate.done=!0)}},scale:{zoomIn:function(){var e=bm(arguments).sqlflow;if(e.current){var t=e.current.scale.value;if((t*=1.2)>5)return;e.current.scale.value=t}},zoomOut:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.scale.value*=.8)},reset:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.scale.value=1)}}},field:{hover:function(e){var t=bm(arguments).sqlflow;t.current&&Oy.field.hover(t.current,e,!0)},leave:function(e){var t=bm(arguments).sqlflow;t.current&&Oy.field.hover(t.current,e,!1)},pin:{set:function(e){var t=bm(arguments).sqlflow;t.current&&Oy.field.pin.set(t.current,e)},cancel:function(){var e=bm(arguments).sqlflow;e.current&&Oy.field.pin.cancel(e.current)}},cancel:function(){var e=bm(arguments).sqlflow;e.current&&Oy.field.cancel(e.current)},token:{hover:function(e){var t=bm(arguments).sqlflow;t.current&&Oy.field.token.hover(t.current,e)}}},edge:{hover:function(e){var t=bm(arguments).sqlflow;t.current&&Oy.edge.hover(t.current,{edge:e,value:!0})},leave:function(e){var t=bm(arguments).sqlflow;t.current&&Oy.edge.hover(t.current,{edge:e,value:!1})},pin:{set:function(e){var t=bm(arguments).sqlflow;t.current&&Oy.edge.pin.set(t.current,{edge:e})},cancel:function(e){var t=bm(arguments).sqlflow;t.current&&Oy.edge.pin.cancel(t.current)}},cancel:function(){var e=bm(arguments).sqlflow;e.current&&Oy.edge.cancel(e.current)}},visualize:{type:{set:function(e){var t=bm(arguments).sqlflow;switch(t.visualize.type=e,e){case yg.sql:case yg.job:case yg.json:t.visualize.job=void 0,t.visualize.select_deprecated=void 0,t.visualize.sqltext.value="";break;case yg.sessionSelectGraph:case yg.sessionSelectLeftMost:case yg.displayUserLatestJobLeftMostTable:case yg.displayMetadataQueryGraph:case yg.sessionSelectStreamByStep:case yg.sessionSelectStream:case yg.widgetSelectGraph:break;default:throw new Error("never")}}},isJob:{set:function(e){bm(arguments).sqlflow.visualize.isJob=e}},jobId:{set:function(e){bm(arguments).sqlflow.visualize.jobId=e},clear:function(){bm(arguments).sqlflow.visualize.jobId=""}},jobDetail:{set:function(e){bm(arguments).sqlflow.visualize.job=e},clear:function(){bm(arguments).sqlflow.visualize.job=void 0}},mode:{set:function(e){bm(arguments).sqlflow.visualize.mode=e}},dbvendor:{set:function(e){bm(arguments).sqlflow.visualize.dbvendor=e}},job:{set:function(e){bm(arguments).sqlflow.visualize.job=e}},select_deprecated:{set:function(e){bm(arguments).sqlflow.visualize.select_deprecated=e}},select:{set:function(e){bm(arguments).sqlflow.visualize.select=e},clear:function(){bm(arguments).sqlflow.visualize.select={dbo:void 0,columnLevel:!1}}},selectLeftMost_deprecated:{set:function(e){bm(arguments).sqlflow.visualize.selectLeftMost_deprecated=e}},selectLeftMost:{set:function(e){bm(arguments).sqlflow.visualize.selectLeftMost=e}},selectStream_deprecated:{set:function(e){bm(arguments).sqlflow.visualize.selectStream_deprecated=e}},selectUpStream_deprecated:{set:function(e){bm(arguments).sqlflow.visualize.selectUpStream_deprecated=e}},selectDownStream_deprecated:{set:function(e){bm(arguments).sqlflow.visualize.selectDownStream_deprecated=e}},selectStreamByStep:{set:function(e){bm(arguments).sqlflow.visualize.selectStreamByStep=e}},selectStream:{set:function(e){bm(arguments).sqlflow.visualize.selectStream=e}},selectUpStream:{set:function(e){bm(arguments).sqlflow.visualize.selectUpStream=e}},selectDownStream:{set:function(e){bm(arguments).sqlflow.visualize.selectDownStream=e}},info:{show:function(){bm(arguments).sqlflow.visualize.info.visible=!0},hide:function(){bm(arguments).sqlflow.visualize.info.visible=!1}},sqltext:{value:{set:function(e){bm(arguments).sqlflow.visualize.sqltext.value=e}},show:function(){bm(arguments).sqlflow.visualize.sqltext.visible=!0},hide:function(){bm(arguments).sqlflow.visualize.sqltext.visible=!1}},loadSetting:{set:function(e){bm(arguments).sqlflow.visualize.loadSetting=e}},setting:{isJoin:{set:function(e){bm(arguments).sqlflow.visualize.setting.isJoin=e}},dataflow:{set:function(e){bm(arguments).sqlflow.visualize.setting.dataflow=e}},impact:{set:function(e){bm(arguments).sqlflow.visualize.setting.impact=e}},dataflowOfAggregateFunction:{set:function(e){bm(arguments).sqlflow.visualize.setting.dataflowOfAggregateFunction=e}},ignoreRecordSet:{set:function(e){bm(arguments).sqlflow.visualize.setting.ignoreRecordSet=e}},ignoreFunction:{set:function(e){bm(arguments).sqlflow.visualize.setting.ignoreFunction=e}},defaultDistance:{set:function(e){bm(arguments).sqlflow.visualize.setting.defaultDistance=e}},showConstant:{set:function(e){bm(arguments).sqlflow.visualize.setting.showConstant=e}},showTransform:{set:function(e){bm(arguments).sqlflow.visualize.setting.showTransform=e}}},widget:{select:{set:function(e){bm(arguments).sqlflow.visualize.widget.select=e}}}},stream:{add:function(e){var t=bm(arguments).sqlflow;t.current&&(Oy.stream.add(t.current,e),Oy.graph.layout(t.current))},toggle:function(e){var t=bm(arguments).sqlflow;if(t.current){var n=ky(t.current.graph).query(e.graph);Oy.stream.toggle({sqlflow:t.current,graph:n,visible:!n.more.expand,selectStream:e.selectStream})}}},graph:{more:{loaded:{set:function(e){var t=bm(arguments).sqlflow;if(t.current){var n=ky(t.current.graph).find(e.graph);n&&(n.more.loaded=!0,n.more.expand=!0)}}}}},cache:{add:function(e){var t=bm(arguments).sqlflow,n=bm(arguments);if(t.cache.sessionId!==e.sessionId&&(t.cache={sessionId:e.sessionId,lineage:{},meta:{},leftMost:{},streamByStep:{},stream:{},upStream:{},downStream:{},sessionSelectGraph:{},displayMetadataQueryGraph:{}}),e.selectGraph)t.cache.sessionSelectGraph[e.hashId]=e.sqlflow;else if(e.selectGraph_deprecate){var r,i=e.selectGraph_deprecate.type;if(!ky(null===(r=n.tree[i])||void 0===r?void 0:r.nodes).findById(e.selectGraph_deprecate.nodeId))return;t.cache[i][e.hashId]=e.sqlflow}else if(e.selectLeftMost_deprecated||e.selectLeftMost)t.cache.leftMost[e.hashId]=e.sqlflow;else if(e.selectStream_deprecated||e.selectStreamByStep)t.cache.streamByStep[e.hashId]=e.sqlflow;else if(e.selectUpStream)t.cache.upStream[e.hashId]=e.sqlflow;else if(e.selectStream)t.cache.stream[e.hashId]=e.sqlflow;else if(e.selectDownStream)t.cache.downStream[e.hashId]=e.sqlflow;else{if(!e.displayMetadataQueryGraph)throw new Error("never");t.cache.displayMetadataQueryGraph[e.hashId]=e.sqlflow}}},selector:{current:{set:function(e){var t=bm(arguments).sqlflow;t.current&&(t.current.selector.current=e)},clear:function(){var e=bm(arguments).sqlflow;e.current&&(e.current.selector.current=void 0)}}}},_F={current:{set:function(e){bm(arguments).tab.current=e}}},xF={initialState:{show:!1,text:""},reducers:{show:function(e){var t=bm(arguments);t.toast.show=!0,t.toast.text=e},hide:function(){bm(arguments).toast.show=!1}}},EF={sql:{show:function(){var e=bm(arguments).toolbar;CF(e),e.sql=!0},hide:function(){bm(arguments).toolbar.sql=!1}},schema:{show:function(){var e=bm(arguments).toolbar;CF(e),e.schema=!0},hide:function(){var e=bm(arguments).toolbar;CF(e),e.schema=!1}},job:{show:function(){var e=bm(arguments).toolbar;CF(e),e.job=!0},hide:function(){bm(arguments).toolbar.job=!1}},setting:{show:function(){var e=bm(arguments).toolbar;CF(e),e.setting=!0},hide:function(){bm(arguments).toolbar.setting=!1}},metadata:{show:function(){var e=bm(arguments).toolbar;CF(e),e.metadata=!0},hide:function(){bm(arguments).toolbar.metadata=!1}}};function CF(e){e.sql=!1,e.schema=!1,e.job=!1,e.setting=!1,e.metadata=!1}var kF={width:{set:function(e){bm(arguments).tree.width=e}},tab:{set:function(e){bm(arguments).tree.tab=e}},search:{word:{set:function(e){bm(arguments).tree.search.word=e}},filter:function(){var e=bm(arguments).tree,t=e.tab===Eg.lineage?e.lineage:e.meta;t&&Dy.search.filter(e,t)}},lineage:{set:function(e){bm(arguments).tree.lineage=e},loading:{start:function(e){var t=bm(arguments).tree;t.lineage&&e&&(t.lineage.loadingId=e)},stop:function(){var e=bm(arguments).tree;e.lineage&&(e.lineage.loadingId=null)}},nodes:{select:{set:function(e){var t=bm(arguments).tree.lineage;t&&(t.select.id=e.id)},clear:function(){var e=bm(arguments).tree.lineage;e&&(e.select.id=null)}},toggle:function(e){var t=e.node,n=e.expand,r=bm(arguments).tree,i=r.lineage,o=ky(null==i?void 0:i.nodes).findById(t.id);i&&o&&(o.expand=void 0!==n?n:!o.expand,Dy.node.toggle(r,i,o))},collapseAll:function(e){var t=bm(arguments).tree,n=t.lineage;n&&Dy.node.collapseAll(t,n,e)},replaceGraphId_deprecated:function(e){var t=e.sqlflow,n=bm(arguments).tree.lineage;if(n){n.graphIdMap={};var r=new Map;ky(t.graph).forEach((function(e){var n=ky(t.dbo_deprecated.list).findById(e.dboId);n&&r.set(n.path,e.id)})),ky(n.dropdown.list).forEach((function(e){var t=e.id,i=r.get(t);i?(e.graphId=i,n.graphIdMap[t]=i):e.graphId=void 0}))}}},mode:{set:function(e){var t=bm(arguments).tree.lineage,n=ky(null==t?void 0:t.nodes).findById(e.id);n&&(n.mode=e.mode)}},context:{show:function(e){var t=bm(arguments).tree.lineage;t&&(t.context.id=e.node.id,t.context.css=e.css)},hide:function(){var e=bm(arguments).tree.lineage;e&&(e.context.id=null)}},dropdown:{id:{set:function(e){var t=bm(arguments).tree.lineage;t&&e&&(t.dropdown.id=e)},clear:function(){var e=bm(arguments).tree.lineage;e&&(e.dropdown.id="")}}},columns:{insert:function(e){var t=e.node,n=e.columns,r=bm(arguments).tree,i=bm(arguments).sqlflow,o=r.lineage;if(o&&i.current){var a=ky(o.nodes).findById(t.id);a&&Dy.insertColumns({tree:r,lineage:o,sqlflow:i.current,node:a,columns:n})}}}},meta:{set:function(e){bm(arguments).tree.meta=e},loading:{start:function(e){var t=bm(arguments).tree;t.meta&&(t.meta.loadingId=e)},stop:function(){var e=bm(arguments).tree;e.meta&&(e.meta.loadingId=null)}},nodes:{select:function(e){var t=bm(arguments).tree.meta;t&&(t.select.id=e.id)},toggle:function(e){var t=bm(arguments).tree,n=t.meta,r=ky(null==n?void 0:n.nodes).findById(e.id);n&&r&&(r.expand=!r.expand,Dy.node.toggle(t,n,r))},collapseAll:function(e){var t=bm(arguments).tree,n=t.meta;n&&Dy.node.collapseAll(t,n,e)}},mode:{set:function(e){var t=bm(arguments).tree.meta,n=ky(null==t?void 0:t.nodes).findById(e.id);n&&(n.mode=e.mode)}},context:{show:function(e){var t=bm(arguments).tree.meta;t&&(t.context.id=e.node.id,t.context.css=e.css)},hide:function(){var e=bm(arguments).tree.meta;e&&(e.context.id=null)}},source:{show:function(e){var t=bm(arguments).tree;t.meta&&(t.meta.sourceCode.visible=!0,t.meta.sourceCode.content=e)},hide:function(){var e=bm(arguments).tree;e.meta&&(e.meta.sourceCode.visible=!1)}}},code:{show:function(){var e=bm(arguments).tree;e.code.visible=!0,e.code.content=""},hide:function(){bm(arguments).tree.code.visible=!1},loading:{start:function(){bm(arguments).tree.code.loading=!0},stop:function(){bm(arguments).tree.code.loading=!1}},height:{set:function(e){bm(arguments).tree.code.height=e}},content:{set:function(e){bm(arguments).tree.code.content=e}},title:{set:function(e){bm(arguments).tree.code.title=e}}}};function SF(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return TF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TF(e,t)}(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function TF(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}var MF={info:{set:{fromAuth0:function(e){var t=bm(arguments).user;t.id=e.sub,t.exp=e.exp,t.name=e.nickname,t.email=e.email,t.picture=e.picture},fromLocalStorage:function(e){var t=bm(arguments).user;t.id=e.id,t.exp=e.exp,t.name=e.name,t.email=e.email,t.picture=e.picture},fromApi:function(e){var t=bm(arguments).user;if(t.id=e.data.userId,t.name=e.data.userName,t.email=e.data.userEmail,t.type=e.data.userType,t.registerDate=e.data.registerDate||"",t.expiredDate=e.data.endDate||"",e.data.userRole){var n=Object.keys(Sg).find((function(t){return Sg[t]===e.data.userRole}));n&&(t.role=Sg[n])}switch(e.data.userGroup&&(t.team.groupId=e.data.userGroup),t.role){case Sg.system:t.team.system.visible=!0,t.team.team.visible=!0,t.team.member.visible=!0;break;case Sg.team:t.team.team.visible=!0,t.team.member.visible=!0;break;case Sg.member:t.team.member.visible=!0}},fromMock:function(e){if($p){var t=bm(arguments).user;void 0!==e.id&&(t.id=e.id)}},fromAuthing:function(e){var t=bm(arguments).user;t.id=e.id,t.exp=e.exp,t.name=e.email,t.email=e.email,t.picture=e.picture}}},token:{set:{fromLicense:function(e){bm(arguments).user.token=e},fromAuth0:function(e){bm(arguments).user.token=e},fromLocalStorage:function(e){bm(arguments).user.token=e}}},isLogin:{set:function(e){bm(arguments).user.isLogin=e}},lang:{set:function(e){bm(arguments).user.lang=e}},logout:function(){var e=bm(arguments).user;e.id=ng,e.token="",e.exp=0,e.name="",e.email="",e.picture="",e.isLogin=!1},changepwd:{show:function(){bm(arguments).user.changepwd.visible=!0},hide:function(){bm(arguments).user.changepwd.visible=!1},loading:{start:function(){bm(arguments).user.changepwd.loading=!0},stop:function(){bm(arguments).user.changepwd.loading=!1}}},resetpwd:{show:function(e){var t=bm(arguments).user.resetpwd;t.user=e,t.visible=!0},hide:function(){bm(arguments).user.resetpwd.visible=!1},loading:{start:function(){bm(arguments).user.resetpwd.loading=!0},stop:function(){bm(arguments).user.resetpwd.loading=!1}}},editUser:{show:function(e){var t=bm(arguments).user.edit;t.user=e,t.visible=!0},hide:function(){bm(arguments).user.edit.visible=!1},showConfirm:function(){bm(arguments).user.edit.confirm=!0},hideConfirm:function(){bm(arguments).user.edit.confirm=!1},setTitle:function(e){bm(arguments).user.edit.title=e},setSystemAdmin:function(e){bm(arguments).user.edit.systemAdmin=e},loading:{start:function(){bm(arguments).user.edit.loading=!0},stop:function(){bm(arguments).user.edit.loading=!1}}},manage:{show:function(){bm(arguments).user.manage.visible=!0},hide:function(){bm(arguments).user.manage.visible=!1},loading:{start:function(){bm(arguments).user.manage.loading=!0},stop:function(){bm(arguments).user.manage.loading=!1}},list:function(e){var t=bm(arguments).user.manage;if(t.list=e.result,t.total=e.total,t.currentPage=e.currentPage,null!=t.list&&t.list.length>0){var n=bm(arguments).user.team;if(null!=n.groups&&n.groups.length>0){var r,i=SF(t.list);try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s=SF(n.groups);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(a.userGroup==l.userGroup){a.userGroupName=l.groupName;break}}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}}}},saveQueryParam:function(e){bm(arguments).user.manage.queryParam=e},setPageSize:function(e){bm(arguments).user.manage.pageSize=e}},sql:{show:function(e){var t=bm(arguments).user.sql;t.queryParam.user=e,t.visible=!0},hide:function(){bm(arguments).user.sql.visible=!1},loading:{start:function(){bm(arguments).user.sql.loading=!0},stop:function(){bm(arguments).user.sql.loading=!1}},list:function(e){var t=bm(arguments).user.sql;t.currentPage=e.currentPage,t.list=e.result,t.total=e.total},clear:function(){var e=bm(arguments).user.sql;e.currentPage=0,e.list=[],e.total=0},saveQueryParam:function(e){bm(arguments).user.sql.queryParam=e},setPageSize:function(e){bm(arguments).user.sql.pageSize=e}},coupon:{show:function(){bm(arguments).user.coupon.visible=!0},hide:function(){bm(arguments).user.coupon.visible=!1},batchAddModal:{show:function(){bm(arguments).user.coupon.batchAddModal.visible=!0},hide:function(){bm(arguments).user.coupon.batchAddModal.visible=!1},loading:{start:function(){bm(arguments).user.coupon.batchAddModal.loading=!0},stop:function(){bm(arguments).user.coupon.batchAddModal.loading=!1}}},loading:{start:function(){bm(arguments).user.coupon.loading=!0},stop:function(){bm(arguments).user.coupon.loading=!1}},listused:function(e){var t=bm(arguments).user.coupon;t.used.list=e.result,t.used.total=e.total,t.used.currentPage=e.currentPage},listnotused:function(e){var t=bm(arguments).user.coupon;t.notused.list=e.result,t.notused.total=e.total,t.notused.currentPage=e.currentPage},saveUsedQueryParam:function(e){bm(arguments).user.coupon.used.queryParam=e},setUsedPageSize:function(e){bm(arguments).user.coupon.used.pageSize=e},saveNotUsedQueryParam:function(e){bm(arguments).user.coupon.notused.queryParam=e},setNotUsedPageSize:function(e){bm(arguments).user.coupon.notused.pageSize=e},setTabKey:function(e){bm(arguments).user.coupon.tabkey=e}},team:{show:function(e){var t=bm(arguments).user;t.team.visible=!0,t.team.role=e},hide:function(){bm(arguments).user.team.visible=!1},loading:{start:function(){bm(arguments).user.team.loading=!0},stop:function(){bm(arguments).user.team.loading=!1}},group:{set:function(e){bm(arguments).user.team.group=e}},groups:{set:function(e){bm(arguments).user.team.groups=e}},users:{set:function(e){bm(arguments).user.team.users=e}},addModal:{show:function(){bm(arguments).user.team.addModal.visible=!0},hide:function(){bm(arguments).user.team.addModal.visible=!1},loading:{start:function(){bm(arguments).user.team.addModal.loading=!0},stop:function(){bm(arguments).user.team.addModal.loading=!1}}}},schema:{show:function(){bm(arguments).user.schema.visible=!0},hide:function(){bm(arguments).user.schema.visible=!1},loading:{start:function(){bm(arguments).user.schema.loading=!0},stop:function(){bm(arguments).user.schema.loading=!1}},dbvendor:{set:function(e){bm(arguments).user.schema.dbvendor=e}},current:{set:function(e){bm(arguments).user.schema.current=e},clear:function(){bm(arguments).user.schema.current=void 0}},list:{set:function(e){var t=bm(arguments).user.schema;Object.keys(e).forEach((function(n){var r,i=n,o=(null===(r=e[i])||void 0===r?void 0:r[0])||[];t.list[i]=o.map((function(e){return{name:e}}))}))}}},buy:{show:function(){bm(arguments).user.buy.visible=!0},hide:function(){bm(arguments).user.buy.visible=!1}},setUserId:function(e){bm(arguments).user.id=e}},OF={show:function(){bm(arguments).version.visible=!0},hide:function(){bm(arguments).version.visible=!1},set:function(e){bm(arguments).version.content=e}},LF={init:function(e){var t=bm(arguments).explorer;t.treeDataAll=e.explorer.tree,t.treeData=e.explorer.tree,t.expandKeys=e.explorer.expandKeys,t.selectedKeys=[],t.search="",t.context={dbo:null,visible:!1,css:{left:0,top:0}},t.mode={},t.loadingId=null},width:{set:function(e){bm(arguments).explorer.width=e}},height:{set:function(e){bm(arguments).explorer.height=e}},expandKeys:{set:function(e){bm(arguments).explorer.expandKeys=e}},selectedKeys:{set:function(e){bm(arguments).explorer.selectedKeys=e}},search:{set:function(e){bm(arguments).explorer.search=e},filter:function(){var e=bm(arguments).explorer;if(""===e.search)e.treeData=e.treeDataAll,e.expandKeys=Oy.explorer.expandDefault(e.treeData,[]);else{var t=[],n=wa(e.treeDataAll,(function(n){Oy.explorer.search(n,e.search,t)}));e.treeData=n,e.expandKeys=t}}},context:{hide:function(){bm(arguments).explorer.context.dbo=null},show:function(e){var t=e.dbo,n=e.css,r=bm(arguments).explorer;r.context.dbo=t,r.context.css=n,r.selectedKeys=[t.key]},position:function(e){var t=e.top;bm(arguments).explorer.context.css.top-=t}},mode:{set:function(e){var t=e.dbo,n=e.mode;bm(arguments).explorer.mode[t.id]=n}},loading:{start:function(e){var t=e.dbo;bm(arguments).explorer.loadingId=t.id},stop:function(){bm(arguments).explorer.loadingId=null}},columns:{insert:function(e){var t=e.dbo,n=e.columns,r=bm(arguments).explorer,i=bm(arguments).sqlflow.current,o=function e(n){for(var r=0;r<n.length;r++){var i=n[r];if("column"===i.type)return;if(i.id===t.id)return i;var o=e(i.children);if(o)return o}},a=o(r.treeData);if((null==a||!a.hasLoaded)&&a&&i){Oy.explorer.addColumn({sqlflow:i,table:a,columns:n}),r.expandKeys=wy()(new Set([].concat(wy()(r.expandKeys),[a.key]))),a.hasLoaded=!0;var s=o(r.treeDataAll);s&&(s.hasLoaded=!0,s.children=a.children)}}},code:{loading:{start:function(){bm(arguments).explorer.code.loading=!0},stop:function(){bm(arguments).explorer.code.loading=!1}},show:function(){var e=bm(arguments).explorer;e.code.visible=!0,e.code.content=""},hide:function(){bm(arguments).explorer.code.visible=!1},height:{set:function(e){bm(arguments).explorer.code.height=e}},content:{set:function(e){bm(arguments).explorer.code.content=e}},title:{set:function(e){bm(arguments).explorer.code.title=e}}}},AF={width:{set:function(e){bm(arguments).metadata.width=e}},height:{set:function(e){bm(arguments).metadata.height=e}},treeData:{set:function(e){bm(arguments).metadata.treeData=e}}},DF={current:{set:function(e){bm(arguments).er.current=e},scale:{zoomIn:function(){var e=bm(arguments).er;e.current&&(e.current.scale.value*=1.2)},zoomOut:function(){var e=bm(arguments).er;e.current&&(e.current.scale.value*=.8)},reset:function(){var e=bm(arguments).er;e.current&&(e.current.scale.value=1)}},x6:{loaded:function(){var e=bm(arguments).er;e.current&&(e.current.x6={loaded:!0})}}},visualize:{type:{set:function(e){switch(bm(arguments).sqlflow.visualize.er.type=e,e){case bg.sql:case bg.sessionSelectGraph:case bg.json:break;default:throw new Error("never")}}},sqltext:{set:function(e){bm(arguments).sqlflow.visualize.er.sqltext=e}},dbvendor:{set:function(e){bm(arguments).sqlflow.visualize.er.dbvendor=e}},select:{set:function(e){bm(arguments).sqlflow.visualize.er.select=e}}},setting:{tableMovable:{set:function(e){bm(arguments).er.setting.tableMovable=e}}},field:{hover:function(e){var t=bm(arguments).er;t.current&&Oy.field.hover(t.current,e,!0)},leave:function(e){var t=bm(arguments).er;t.current&&Oy.field.hover(t.current,e,!1)},pin:{set:function(e){var t=bm(arguments).er;t.current&&Oy.field.pin.set(t.current,e)},cancel:function(){var e=bm(arguments).er;e.current&&Oy.field.pin.cancel(e.current)}}}},NF={setComponent:function(e){var t=bm(arguments).widget;Object.keys(t.component).forEach((function(n){"boolean"==typeof e?t.component[n]=e:void 0!==e[n]&&(t.component[n]=Boolean(e[n]))}))},setSqltext:function(){bm(arguments).widget.sqltext=!0},setWidth:function(e){bm(arguments).widget.width=e},setFullWidth:function(e){bm(arguments).widget.fullWidth=e}},PF=function(e,t,n){var r=new Ia(t,e,n),i=r.Dispatch,o=r.State,a=e,s=r.redux.getState,l=r.redux.subscribe;return{Dispatch:i,State:o,Ref:a,redux:r.redux,getState:s,subscribe:l}}({sqlflow:{container:null,scroll:null,canvas:null,map:null,preview:null,view:null,scale:null,scrollbar:{horizontal:null,vertical:null}},lineage:{container:null,scroll:null,canvas:null,map:null,preview:null,view:null},er:{graph:null,scroller:null}},{account:nF,expired:iF,export:aF,graph:lF,job:uF,loading:{initialState:{message:"",spinning:!1,auth0:!1,config:!1,license:!1,sqlflow:{spinning:!1},lineage:{spinning:!1},json:{spinning:!1},er:{spinning:!1},summary:{spinning:!1},job:!1,upload:!1},reducers:pF},license:{initialState:dF,reducers:hF},lineage:{initialState:{context:{visible:!1,position:{left:0,top:0},isProcess:!1,process:null},current:null,visualize:{type:_g.sql,mode:wg.query,dbvendor:hg.dbvoracle,job:void 0,select:void 0,info:{visible:!1},sqltext:{value:"",visible:!1},setting:{allTablesInFromClauseIncludedInTableLevelLineage:!1}}},reducers:fF},login:{initialState:{show:!1,status:"login",loading:!1,reset:{loading:!1}},reducers:gF},map:{initialState:{position:{right:0,bottom:0}},reducers:mF},setting:{initialState:{sqltext:"",isJoin:!1,hideAllColumns:!1,dataflow:!0,impact:!1,dataflowOfAggregateFunction:!0,ignoreRecordSet:!1,ignoreFunction:!0,showConstantTable:!1,showTransform:!1,defaultDistance:10},reducers:vF},share:{initialState:{visible:!1,loading:!1,url:"",info:{createTime:0,spendTime:0,dbobj:"",database:"",schema:"",table:"",column:""},link:"",email:{visible:!1,list:[],dbo:null,loading:!1}},reducers:yF},sql:{initialState:{width:620},reducers:bF},sqlflow:{initialState:{visible:!1,current:void 0,visualize:{type:"sql",mode:wg.query,dbvendor:hg.dbvoracle,job:void 0,jobId:"",isJob:!1,select_deprecated:void 0,select:{dbo:void 0,columnLevel:!1},selectLeftMost_deprecated:void 0,selectLeftMost:{dbo:void 0,columnLevel:!1},selectStream_deprecated:void 0,selectUpStream_deprecated:void 0,selectDownStream_deprecated:void 0,selectStreamByStep:void 0,selectUpStream:void 0,selectDownStream:void 0,selectStream:void 0,info:{visible:!1},sqltext:{value:"",visible:!1},loadSetting:!1,setting:{hideAllColumns:!1,isJoin:!1,dataflow:!0,impact:!1,dataflowOfAggregateFunction:!0,ignoreRecordSet:!1,ignoreFunction:!0,showConstant:!1,showTransform:!1,defaultDistance:10},widget:{select:{}},er:{type:bg.sql,dbvendor:hg.dbvoracle,sqltext:"",select:{dbo:void 0}}},cache:{sessionId:"",lineage:{},meta:{},leftMost:{},streamByStep:{},stream:{},upStream:{},downStream:{},sessionSelectGraph:{},displayMetadataQueryGraph:{}}},reducers:wF},tab:{initialState:{current:xg.sqlflow},reducers:_F},toast:xF,toolbar:{initialState:{sql:!0,schema:!1,setting:!1,job:!1,metadata:!0},reducers:EF},tree:{initialState:{width:350,tab:Eg.lineage,search:{word:""},lineage:null,meta:null,code:{visible:!1,loading:!1,height:400,content:"",title:""}},reducers:kF},user:{initialState:{id:ng,token:"",exp:0,name:"",email:"",picture:"",isLogin:!1,type:void 0,role:Sg.individual,registerDate:"",expiredDate:"",lang:"en",changepwd:{visible:!1,loading:!1},edit:{visible:!1,confirm:!1,loading:!1,title:"create user",systemAdmin:!1,user:null,addDays:30},resetpwd:{visible:!1,loading:!1,user:null},manage:{visible:!1,loading:!1,list:[],currentPage:1,total:0,queryParam:{},pageSize:20},coupon:{visible:!1,loading:!1,tabkey:"used",used:{list:[],currentPage:1,total:0,queryParam:{},pageSize:20},notused:{list:[],currentPage:1,total:0,queryParam:{},pageSize:20},batchAddModal:{loading:!1,visible:!1}},sql:{visible:!1,loading:!1,list:[],currentPage:1,total:0,queryParam:{},pageSize:20},team:{visible:!1,role:Sg.individual,groupId:"",loading:!1,group:null,groups:[],users:[],addModal:{loading:!1,visible:!1},system:{visible:!1},team:{visible:!1},member:{visible:!1}},schema:{visible:!1,loading:!1,dbvendor:hg.dbvoracle,current:void 0,list:{}},buy:{visible:!1}},reducers:MF},version:{initialState:{visible:!1,content:null},reducers:OF},explorer:{initialState:{width:350,height:0,visible:!1,treeDataAll:[],treeData:[],expandKeys:[],selectedKeys:[],search:"",context:{dbo:null,visible:!1,css:{left:0,top:0}},mode:{},loadingId:null,code:{visible:!1,loading:!1,height:400,content:"",title:""}},reducers:LF},metadata:{initialState:{width:350,height:0,treeData:[]},reducers:AF},er:{initialState:{current:null,setting:{tableMovable:!0}},reducers:DF},widget:{initialState:{component:{sqlEditor:!1,graphLocate:!1,minimap:!1},sqltext:!1,width:0,fullWidth:0},reducers:NF}},{devtool:$p}),IF=PF.Dispatch,jF=PF.State,RF=PF.Ref,FF=PF.redux;window._app={Dispatch:IF,State:jF,Ref:RF,redux:FF};var zF={select:{enable:function(){document.body.classList.remove("disable-user-select")},disable:function(){document.body.classList.add("disable-user-select")}},toast:{disableNextOne:function(){var e=_o.error;_o.error=function(){_o.error=e}}}},YF={open:function(){var e,t,n;null===(e=fastspring)||void 0===e||null===(t=e.builder)||void 0===t||null===(n=t.push)||void 0===n||n.call(t,{reset:!0,products:[{path:"sqlflow-premium-account-monthly-subscription",quantity:1}],checkout:!0})},checkout:function(e,t){var n,r,i,o={reset:!0,products:[{path:t,quantity:1}],paymentContact:{email:e},checkout:!0};null===(n=fastspring)||void 0===n||null===(r=n.builder)||void 0===r||null===(i=r.push)||void 0===i||i.call(r,o)}},BF={setValue:function(e){var t;null===(t=cg.editor.sql)||void 0===t||t.getDoc().setValue(e||""),IF.setting.sqltext.set(e||"")}},HF=function(e,t){return HF=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])},HF(e,t)};function qF(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}HF(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function UF(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function VF(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function WF(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function GF(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function $F(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function KF(e){return this instanceof KF?(this.v=e,this):new KF(e)}function JF(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{!function(e){e.value instanceof KF?Promise.resolve(e.value.v).then(l,c):u(o[0][2],e)}(i[e](t))}catch(e){u(o[0][3],e)}}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function XF(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=WF(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}Object.create;function ZF(e){return"function"==typeof e}var QF,ez,tz=(QF=function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}},ez=QF((function(e){Error.call(e),e.stack=(new Error).stack})),ez.prototype=Object.create(Error.prototype),ez.prototype.constructor=ez,ez);function nz(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var rz=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=WF(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(ZF(l))try{l()}catch(e){i=e instanceof tz?e.errors:[e]}var c=this._teardowns;if(c){this._teardowns=null;try{for(var u=WF(c),d=u.next();!d.done;d=u.next()){var h=d.value;try{oz(h)}catch(e){i=null!=i?i:[],e instanceof tz?i=$F($F([],GF(i)),GF(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new tz(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)oz(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&nz(t,e)},e.prototype.remove=function(t){var n=this._teardowns;n&&nz(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();rz.EMPTY;function iz(e){return e instanceof rz||e&&"closed"in e&&ZF(e.remove)&&ZF(e.add)&&ZF(e.unsubscribe)}function oz(e){ZF(e)?e():e.unsubscribe()}var az={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},sz={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=sz.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,$F([],GF(e)))},clearTimeout:function(e){var t=sz.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function lz(e){sz.setTimeout((function(){var t=az.onUnhandledError;if(!t)throw e;t(e)}))}function cz(){}var uz=dz("C",void 0,void 0);function dz(e,t,n){return{kind:e,value:t,error:n}}var hz=null;var fz=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,iz(t)&&t.add(n)):n.destination=yz,n}return qF(t,e),t.create=function(e,t,n){return new pz(e,t,n)},t.prototype.next=function(e){this.isStopped?vz(function(e){return dz("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?vz(function(e){return dz("E",void 0,e)}(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?vz(uz,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(rz),pz=function(e){function t(t,n,r){var i,o=e.call(this)||this;if(ZF(t))i=t;else if(t){var a;i=t.next,n=t.error,r=t.complete,o&&az.useDeprecatedNextContext?(a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()}:a=t,i=null==i?void 0:i.bind(a),n=null==n?void 0:n.bind(a),r=null==r?void 0:r.bind(a)}return o.destination={next:i?gz(i,o):cz,error:gz(null!=n?n:mz,o),complete:r?gz(r,o):cz},o}return qF(t,e),t}(fz);function gz(e,t){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,$F([],GF(t)))}catch(e){az.useDeprecatedSynchronousErrorHandling?function(e){az.useDeprecatedSynchronousErrorHandling&&hz&&(hz.errorThrown=!0,hz.error=e)}(e):lz(e)}}}function mz(e){throw e}function vz(e,t){var n=az.onStoppedNotification;n&&sz.setTimeout((function(){return n(e,t)}))}var yz={closed:!0,next:cz,error:mz,complete:cz},bz="function"==typeof Symbol&&Symbol.observable||"@@observable";function wz(e){return e}function _z(e){return 0===e.length?wz:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var xz=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this,i=function(e){return e&&e instanceof fz||function(e){return e&&ZF(e.next)&&ZF(e.error)&&ZF(e.complete)}(e)&&iz(e)}(e)?e:new pz(e,t,n);return function(e){if(az.useDeprecatedSynchronousErrorHandling){var t=!hz;if(t&&(hz={errorThrown:!1,error:null}),e(),t){var n=hz,r=n.errorThrown,i=n.error;if(hz=null,r)throw i}}else e()}((function(){var e=r,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?r._subscribe(i):r._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=Ez(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e),null==i||i.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[bz]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return _z(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=Ez(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function Ez(e){var t;return null!==(t=null!=e?e:az.Promise)&&void 0!==t?t:Promise}function Cz(e){return function(t){if(function(e){return ZF(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}var kz=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.onFinalize=o,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return qF(t,e),t.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(fz);function Sz(e,t){return Cz((function(n,r){var i=0;n.subscribe(new kz(r,(function(n){r.next(e.call(t,n,i++))})))}))}var Tz=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};var Mz="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Oz(e){if(e instanceof xz)return e;if(null!=e){if(function(e){return ZF(e[bz])}(e))return r=e,new xz((function(e){var t=r[bz]();if(ZF(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(Tz(e))return Lz(e);if(function(e){return ZF(null==e?void 0:e.then)}(e))return n=e,new xz((function(e){n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,lz)}));if(function(e){return Symbol.asyncIterator&&ZF(null==e?void 0:e[Symbol.asyncIterator])}(e))return Az(e);if(function(e){return ZF(null==e?void 0:e[Mz])}(e))return t=e,new xz((function(e){var n,r;try{for(var i=WF(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()}));if(function(e){return ZF(null==e?void 0:e.getReader)}(e))return Az(function(e){return JF(this,arguments,(function(){var t,n,r;return VF(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,KF(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,KF(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,KF(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e))}var t,n,r;throw function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}(e)}function Lz(e){return new xz((function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()}))}function Az(e){return new xz((function(t){(function(e,t){var n,r,i,o;return UF(this,void 0,void 0,(function(){var a,s;return VF(this,(function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=XF(e),l.label=1;case 1:return[4,n.next()];case 2:if((r=l.sent()).done)return[3,4];if(a=r.value,t.next(a),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=l.sent(),i={error:s},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function Dz(e,t,n){return void 0===n&&(n=1/0),ZF(t)?Dz((function(n,r){return Sz((function(e,i){return t(n,e,r,i)}))(Oz(e(n,r)))}),n):("number"==typeof t&&(n=t),Cz((function(t,r){return function(e,t,n,r,i,o,a,s){var l=[],c=0,u=0,d=!1,h=function(){!d||l.length||c||t.complete()},f=function(e){return c<r?p(e):l.push(e)},p=function(e){o&&t.next(e),c++;var s=!1;Oz(n(e,u++)).subscribe(new kz(t,(function(e){null==i||i(e),o?f(e):t.next(e)}),(function(){s=!0}),void 0,(function(){if(s)try{c--;for(var e=function(){var e=l.shift();a?t.add(a.schedule((function(){return p(e)}))):p(e)};l.length&&c<r;)e();h()}catch(e){t.error(e)}})))};return e.subscribe(new kz(t,f,(function(){d=!0,h()}))),function(){null==s||s()}}(t,r,e,n)})))}var Nz=Array.isArray;function Pz(e){return Sz((function(t){return function(e,t){return Nz(t)?e.apply(void 0,$F([],GF(t))):e(t)}(e,t)}))}function Iz(e,t){return t?function(e,t){return new xz((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}(e,t):Lz(e)}var jz=["addListener","removeListener"],Rz=["addEventListener","removeEventListener"],Fz=["on","off"];function zz(e,t,n,r){if(ZF(n)&&(r=n,n=void 0),r)return zz(e,t,n).pipe(Pz(r));var i=GF(function(e){return ZF(e.addEventListener)&&ZF(e.removeEventListener)}(e)?Rz.map((function(r){return function(i){return e[r](t,i,n)}})):function(e){return ZF(e.addListener)&&ZF(e.removeListener)}(e)?jz.map(Yz(e,t)):function(e){return ZF(e.on)&&ZF(e.off)}(e)?Fz.map(Yz(e,t)):[],2),o=i[0],a=i[1];if(!o&&Tz(e))return Dz((function(e){return zz(e,t,n)}))(Iz(e));if(!o)throw new TypeError("Invalid event target");return new xz((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return o(t),function(){return a(t)}}))}function Yz(e,t){return function(n){return function(r){return e[n](t,r)}}}var Bz=new xz((function(e){return e.complete()}));function Hz(e){return e<=0?function(){return Bz}:Cz((function(t,n){var r=0;t.subscribe(new kz(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}var qz={context:{show:function(e){var t=e.event,n=e.from,r=-1e3,i=-1e3,o=RF.sqlflow.scroll;switch(n){case"column":var a;r=t.clientX-((null==o?void 0:o.getBoundingClientRect().left)||0)+((null==o?void 0:o.scrollLeft)||0),i=t.clientY-((null==o?void 0:o.getBoundingClientRect().top)||0)+((null==o?void 0:o.scrollTop)||0);var s=ky(null===(a=jF.sqlflow.current)||void 0===a?void 0:a.field).findById(jF.graph.context.fieldId);s&&IF.sqlflow.field.pin.set(s);break;case"blank":r=t.clientX-((null==o?void 0:o.getBoundingClientRect().left)||0)+((null==o?void 0:o.scrollLeft)||0),i=t.clientY-((null==o?void 0:o.getBoundingClientRect().top)||0)+((null==o?void 0:o.scrollTop)||0);break;default:throw new Error("never")}IF.graph.context.show({left:r,top:i}),zz(window,"click").pipe(Hz(1)).subscribe((function(){IF.graph.context.hide()}))},cancel:function(){IF.sqlflow.field.cancel(),IF.sqlflow.current.dbo.clear()}},locate:function(e){var t=RF.sqlflow.scroll;e&&e.visible&&t?(t.scrollTop=e.top.calculate-t.clientHeight/2,t.scrollLeft=e.left.calculate-t.clientWidth/2,IF.sqlflow.current.locate.graphId.set(e.id)):IF.sqlflow.current.locate.clear()},unLocate:function(){IF.sqlflow.current.locate.clear()},reLocate:function(){var e,t,n,r=ky(null===(e=jF.tree.lineage)||void 0===e?void 0:e.dropdown.list).findById(null===(t=jF.tree.lineage)||void 0===t?void 0:t.dropdown.id),i=ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.graph).findById(null==r?void 0:r.graphId);RU.graph.locate(i)},locateByTreeNode:function(e){var t,n=Dy.node.getGraphId({tree:jF.tree,node:e}),r=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.graph).findById(n);RU.graph.locate(r)},scrollToDropdownMenu:function(){var e=RF.sqlflow.scroll;e&&(e.scrollTop=0,e.scrollLeft=0)},ensureLeftTopGraphVisible:function(){var e,t,n,r,i,o=(null===(e=jF.sqlflow.current)||void 0===e?void 0:e.leftTopGraphId)||(null===(t=jF.sqlflow.current)||void 0===t||null===(n=t.graph)||void 0===n||null===(r=n.all)||void 0===r?void 0:r[0]),a=ky(null===(i=jF.sqlflow.current)||void 0===i?void 0:i.graph).findById(o),s=RF.sqlflow.scroll;if(a&&s){var l=RU.sqlflow.map.util.getCanvasSize();(a.left.calculate>l.width||a.top.calculate>l.height)&&(s.scrollTop=a.top.calculate-40,s.scrollLeft=a.left.calculate-20)}},canvas:{getWidthAndHeight:function(){var e,t,n={width:0,height:0},r=null===(e=jF.sqlflow.current)||void 0===e?void 0:e.canvas,i=(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.scale.value)||1;return r?(n.width=r.width*i+(1-i)*Qg.sqlflow.transformOrigin.x,n.height=r.height*i+(1-i)*Qg.sqlflow.transformOrigin.y,n):n}},scale:{zoomIn:function(){IF.sqlflow.current.scale.zoomIn()},zoomOut:function(){IF.sqlflow.current.scale.zoomOut()},reset:function(){IF.sqlflow.current.scale.reset()}}},Uz=function(e){function t(t,n){return e.call(this)||this}return qF(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(rz),Vz={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Vz.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,$F([],GF(e)))},clearInterval:function(e){var t=Vz.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},Wz=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return qF(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),Vz.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;Vz.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,nz(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Uz),Gz={now:function(){return(Gz.delegate||Date).now()},delegate:void 0},$z=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=Gz.now,e}(),Kz=function(e){function t(t,n){void 0===n&&(n=$z.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return qF(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}($z),Jz=new Kz(Wz);function Xz(e,t,n){void 0===e&&(e=0),void 0===n&&(n=Jz);var r=-1;return null!=t&&(!function(e){return e&&ZF(e.schedule)}(t)?r=t:n=t),new xz((function(t){var i=function(e){return e instanceof Date&&!isNaN(e)}(e)?+e-n.now():e;i<0&&(i=0);var o=0;return n.schedule((function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())}),i)}))}function Zz(e,t){return t?function(n){return n.pipe(Zz((function(n,r){return Oz(e(n,r)).pipe(Sz((function(e,i){return t(n,e,r,i)})))})))}:Cz((function(t,n){var r=0,i=null,o=!1;t.subscribe(new kz(n,(function(t){i||(i=new kz(n,void 0,(function(){i=null,o&&n.complete()})),Oz(e(t,r++)).subscribe(i))}),(function(){o=!0,!i&&n.complete()})))}))}function Qz(e){return Cz((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}var eY,tY=(0,y.forwardRef)((function(e,t){var n=e.didUpdate,r=e.getContainer,i=e.children,o=(0,y.useRef)();(0,y.useImperativeHandle)(t,(function(){return{}}));var a=(0,y.useRef)(!1);return!a.current&&ue()&&(o.current=r(),a.current=!0),(0,y.useEffect)((function(){null==n||n(e)})),(0,y.useEffect)((function(){return function(){var e,t;null===(e=o.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(o.current)}}),[]),o.current?b.createPortal(i,o.current):null})),nY=tY;function rY(e){if("undefined"==typeof document)return 0;if(e||void 0===eY){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 o=t.offsetWidth;i===o&&(o=n.clientWidth),document.body.removeChild(n),eY=i-o}return eY}var iY=function(e){if(!e)return{};var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).element,n=void 0===t?document.body:t,r={},i=Object.keys(e);return i.forEach((function(e){r[e]=n.style[e]})),i.forEach((function(t){n.style[t]=e[t]})),r};var oY={},aY=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return iY(oY),oY={},void(document.body.className=r.replace(n,"").trim())}var i=rY();if(i&&(oY=iY({position:"relative",width:"calc(100% - ".concat(i,"px)")}),!n.test(r))){var o="".concat(r," ").concat(t);document.body.className=o.trim()}}},sY=[],lY="ant-scrolling-effect",cY=new RegExp("".concat(lY),"g"),uY=0,dY=new Map,hY=function e(t){var n=this;V(this,e),this.getContainer=function(){var e;return null===(e=n.options)||void 0===e?void 0:e.container},this.reLock=function(e){var t=sY.find((function(e){return e.target===n.lockTarget}));t&&n.unLock(),n.options=e,t&&(t.options=e,n.lock())},this.lock=function(){var e;if(!sY.some((function(e){return e.target===n.lockTarget})))if(sY.some((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})))sY=[].concat(rt(sY),[{target:n.lockTarget,options:n.options}]);else{var t=0,r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&(t=rY());var i=r.className;if(0===sY.filter((function(e){var t,r=e.options;return(null==r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})).length&&dY.set(r,iY({width:"calc(100% - ".concat(t,"px)"),overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!cY.test(i)){var o="".concat(i," ").concat(lY);r.className=o.trim()}sY=[].concat(rt(sY),[{target:n.lockTarget,options:n.options}])}},this.unLock=function(){var e,t=sY.find((function(e){return e.target===n.lockTarget}));if(sY=sY.filter((function(e){return e.target!==n.lockTarget})),t&&!sY.some((function(e){var n,r=e.options;return(null==r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)}))){var r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body,i=r.className;cY.test(i)&&(iY(dY.get(r),{element:r}),dY.delete(r),r.className=r.className.replace(cY,"").trim())}},this.lockTarget=uY++,this.options=t};function fY(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=J(e);if(t){var i=J(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Q(this,n)}}var pY=0,gY=ue();var mY={},vY=function(e){if(!gY)return null;if(e){if("string"==typeof e)return document.querySelectorAll(e)[0];if("function"==typeof e)return e();if("object"===X(e)&&e instanceof window.HTMLElement)return e}return document.body},yY=function(e){K(n,e);var t=fY(n);function n(e){var r;return V(this,n),(r=t.call(this,e)).componentRef=y.createRef(),r.updateScrollLocker=function(e){var t=(e||{}).visible,n=r.props,i=n.getContainer,o=n.visible;o&&o!==t&&gY&&vY(i)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:vY(i)})},r.updateOpenCount=function(e){var t=e||{},n=t.visible,i=t.getContainer,o=r.props,a=o.visible,s=o.getContainer;a!==n&&gY&&vY(s)===document.body&&(a&&!n?pY+=1:e&&(pY-=1)),("function"==typeof s&&"function"==typeof i?s.toString()!==i.toString():s!==i)&&r.removeCurrentContainer()},r.attachToParent=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||r.container&&!r.container.parentNode){var e=vY(r.props.getContainer);return!!e&&(e.appendChild(r.container),!0)}return!0},r.getContainer=function(){return gY?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null},r.setWrapperClassName=function(){var e=r.props.wrapperClassName;r.container&&e&&e!==r.container.className&&(r.container.className=e)},r.removeCurrentContainer=function(){var e,t;null===(e=r.container)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(r.container)},r.switchScrollingEffect=function(){1!==pY||Object.keys(mY).length?pY||(iY(mY),mY={},aY(!0)):(aY(),mY=iY({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))},r.scrollLocker=new hY({container:vY(e.getContainer)}),r}return G(n,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=je((function(){e.forceUpdate()})))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;gY&&vY(n)===document.body&&(pY=t&&pY?pY-1:pY),this.removeCurrentContainer(),je.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.forceRender,r=e.visible,i=null,o={getOpenCount:function(){return pY},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(n||r||this.componentRef.current)&&(i=y.createElement(nY,{getContainer:this.getContainer,ref:this.componentRef},t(o))),i}}]),n}(y.Component),bY=yY,wY={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=wY.F1&&t<=wY.F12)return!1;switch(t){case wY.ALT:case wY.CAPS_LOCK:case wY.CONTEXT_MENU:case wY.CTRL:case wY.DOWN:case wY.END:case wY.ESC:case wY.HOME:case wY.INSERT:case wY.LEFT:case wY.MAC_FF_META:case wY.META:case wY.NUMLOCK:case wY.NUM_CENTER:case wY.PAGE_DOWN:case wY.PAGE_UP:case wY.PAUSE:case wY.PRINT_SCREEN:case wY.RIGHT:case wY.SHIFT:case wY.UP:case wY.WIN_KEY:case wY.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=wY.ZERO&&e<=wY.NINE)return!0;if(e>=wY.NUM_ZERO&&e<=wY.NUM_MULTIPLY)return!0;if(e>=wY.A&&e<=wY.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case wY.SPACE:case wY.QUESTION_MARK:case wY.NUM_PLUS:case wY.NUM_MINUS:case wY.NUM_PERIOD:case wY.NUM_DIVISION:case wY.SEMICOLON:case wY.DASH:case wY.EQUALS:case wY.COMMA:case wY.PERIOD:case wY.SLASH:case wY.APOSTROPHE:case wY.SINGLE_QUOTE:case wY.OPEN_SQUARE_BRACKET:case wY.BACKSLASH:case wY.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_Y=wY;function xY(e,t){return!!e&&e.contains(t)}function EY(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 CY="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),kY="aria-",SY="data-";function TY(e,t){return 0===e.indexOf(t)}function MY(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EY(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EY(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||TY(n,kY))||t.data&&TY(n,SY)||t.attr&&CY.includes(n))&&(r[n]=e[n])})),r}function OY(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,o=e.motionName;return y.createElement(et,{key:"mask",visible:r,motionName:o,leavedClassName:"".concat(t,"-mask-hidden")},(function(e){var r=e.className,o=e.style;return y.createElement("div",D({style:U(U({},o),n),className:Y()("".concat(t,"-mask"),r)},i))}))}function LY(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}var AY=-1;function DY(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;"number"!=typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}var NY=y.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),PY={width:0,height:0,overflow:"hidden",outline:"none"},IY=y.forwardRef((function(e,t){var n=e.closable,r=e.prefixCls,i=e.width,o=e.height,a=e.footer,s=e.title,l=e.closeIcon,c=e.style,u=e.className,d=e.visible,h=e.forceRender,f=e.bodyStyle,p=e.bodyProps,g=e.children,m=e.destroyOnClose,v=e.modalRender,b=e.motionName,w=e.ariaId,_=e.onClose,x=e.onVisibleChanged,E=e.onMouseDown,C=e.onMouseUp,k=e.mousePosition,S=(0,y.useRef)(),T=(0,y.useRef)(),M=(0,y.useRef)();y.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=S.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===T.current?S.current.focus():e||t!==S.current||T.current.focus()}}}));var O,L,A,N=oe(y.useState(),2),P=N[0],I=N[1],j={};function R(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=DY(i),n.top+=DY(i,!0),n}(M.current);I(k?"".concat(k.x-e.left,"px ").concat(k.y-e.top,"px"):"")}void 0!==i&&(j.width=i),void 0!==o&&(j.height=o),P&&(j.transformOrigin=P),a&&(O=y.createElement("div",{className:"".concat(r,"-footer")},a)),s&&(L=y.createElement("div",{className:"".concat(r,"-header")},y.createElement("div",{className:"".concat(r,"-title"),id:w},s))),n&&(A=y.createElement("button",{type:"button",onClick:_,"aria-label":"Close",className:"".concat(r,"-close")},l||y.createElement("span",{className:"".concat(r,"-close-x")})));var F=y.createElement("div",{className:"".concat(r,"-content")},A,L,y.createElement("div",D({className:"".concat(r,"-body"),style:f},p),g),O);return y.createElement(et,{visible:d,onVisibleChanged:x,onAppearPrepare:R,onEnterPrepare:R,forceRender:h,motionName:b,removeOnLeave:m,ref:M},(function(e,t){var n=e.className,i=e.style;return y.createElement("div",{key:"dialog-element",role:"document",ref:t,style:U(U(U({},i),c),j),className:Y()(r,u,n),onMouseDown:E,onMouseUp:C},y.createElement("div",{tabIndex:0,ref:S,style:PY,"aria-hidden":"true"}),y.createElement(NY,{shouldUpdate:d||h},v?v(F):F),y.createElement("div",{tabIndex:0,ref:T,style:PY,"aria-hidden":"true"}))}))}));IY.displayName="Content";var jY=IY;function RY(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,i=e.visible,o=void 0!==i&&i,a=e.keyboard,s=void 0===a||a,l=e.focusTriggerAfterClose,c=void 0===l||l,u=e.scrollLocker,d=e.title,h=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,g=e.onClose,m=e.afterClose,v=e.transitionName,b=e.animation,w=e.closable,_=void 0===w||w,x=e.mask,E=void 0===x||x,C=e.maskTransitionName,k=e.maskAnimation,S=e.maskClosable,T=void 0===S||S,M=e.maskStyle,O=e.maskProps,L=(0,y.useRef)(),A=(0,y.useRef)(),N=(0,y.useRef)(),P=oe(y.useState(o),2),I=P[0],j=P[1],R=(0,y.useRef)();function F(e){null==g||g(e)}R.current||(R.current="rcDialogTitle".concat(AY+=1));var z=(0,y.useRef)(!1),B=(0,y.useRef)(),H=null;return T&&(H=function(e){z.current?z.current=!1:A.current===e.target&&F(e)}),(0,y.useEffect)((function(){return o&&j(!0),function(){}}),[o]),(0,y.useEffect)((function(){return function(){clearTimeout(B.current)}}),[]),(0,y.useEffect)((function(){return I?(null==u||u.lock(),null==u?void 0:u.unLock):function(){}}),[I,u]),y.createElement("div",D({className:"".concat(n,"-root")},MY(e,{data:!0})),y.createElement(OY,{prefixCls:n,visible:E&&o,motionName:LY(n,C,k),style:U({zIndex:r},M),maskProps:O}),y.createElement("div",D({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===_Y.ESC)return e.stopPropagation(),void F(e);o&&e.keyCode===_Y.TAB&&N.current.changeActive(!e.shiftKey)},className:Y()("".concat(n,"-wrap"),f),ref:A,onClick:H,role:"dialog","aria-labelledby":d?R.current:null,style:U(U({zIndex:r},h),{},{display:I?null:"none"})},p),y.createElement(jY,D({},e,{onMouseDown:function(){clearTimeout(B.current),z.current=!0},onMouseUp:function(){B.current=setTimeout((function(){z.current=!1}))},ref:N,closable:_,ariaId:R.current,prefixCls:n,visible:o,onClose:F,onVisibleChanged:function(e){if(e){var t;if(!xY(A.current,document.activeElement))L.current=document.activeElement,null===(t=N.current)||void 0===t||t.focus()}else{if(j(!1),E&&L.current&&c){try{L.current.focus({preventScroll:!0})}catch(e){}L.current=null}I&&(null==m||m())}},motionName:LY(n,v,b)}))))}var FY=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,i=e.destroyOnClose,o=void 0!==i&&i,a=e.afterClose,s=oe(y.useState(t),2),l=s[0],c=s[1];return y.useEffect((function(){t&&c(!0)}),[t]),!1===n?y.createElement(RY,D({},e,{getOpenCount:function(){return 2}})):r||!o||l?y.createElement(bY,{visible:t,forceRender:r,getContainer:n},(function(t){return y.createElement(RY,D({},e,{destroyOnClose:o,afterClose:function(){null==a||a(),c(!1)}},t))})):null};FY.displayName="Dialog";var zY=FY;function YY(e,t){var n=U({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var BY=function e(t){return V(this,e),new Error("unreachable case: ".concat(JSON.stringify(t)))},HY=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},qY=function(e){return y.createElement(Hn,null,(function(t){var n,r=t.getPrefixCls,i=t.direction,o=e.prefixCls,a=e.size,s=e.className,l=HY(e,["prefixCls","size","className"]),c=r("btn-group",o),u="";switch(a){case"large":u="lg";break;case"small":u="sm";break;case"middle":case void 0:break;default:console.warn(new BY(a))}var d=Y()(c,(F(n={},"".concat(c,"-").concat(u),u),F(n,"".concat(c,"-rtl"),"rtl"===i),n),s);return y.createElement("div",D({},l,{className:d}))}))};function UY(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var VY="rc-util-key";function WY(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function GY(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!UY())return null;var r,i=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(i.nonce=null===(r=n.csp)||void 0===r?void 0:r.nonce);i.innerHTML=e;var o=WY(n),a=o.firstChild;return n.prepend&&o.prepend?o.prepend(i):n.prepend&&a?o.insertBefore(i,a):o.appendChild(i),i}var $Y=new Map;function KY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){!function(e,t){"function"==typeof e?e(t):"object"===X(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}}var JY=function(e){return+setTimeout(e,16)},XY=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(JY=function(e){return window.requestAnimationFrame(e)},XY=function(e){return window.cancelAnimationFrame(e)});var ZY=0,QY=new Map;function eB(e){QY.delete(e)}function tB(e){var t=ZY+=1;return function n(r){if(0===r)eB(t),e();else{var i=JY((function(){n(r-1)}));QY.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}tB.cancel=function(e){var t=QY.get(e);return eB(t),XY(t)};var nB=0,rB={};function iB(e){var t=nB++,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return rB[t]=tB((function r(){(n-=1)<=0?(e(),delete rB[t]):rB[t]=tB(r)})),t}iB.cancel=function(e){void 0!==e&&(tB.cancel(rB[e]),delete rB[e])},iB.ids=rB;var oB,aB=y.isValidElement;function sB(e,t,n){return aB(e)?y.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t}function lB(e,t){return sB(e,e,t)}function cB(e){return!e||null===e.offsetParent||e.hidden}var uB=function(e){K(n,e);var t=ee(n);function n(){var e;return V(this,n),(e=t.apply(this,arguments)).containerRef=y.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,i;if(!(!t||cB(t)||t.className.indexOf("-leave")>=0)){var o=e.props.insertExtraNode;e.extraNode=document.createElement("div");var a=Z(e).extraNode,s=e.context.getPrefixCls;a.className="".concat(s(""),"-click-animating-node");var l=e.getAttributeName();if(t.setAttribute(l,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&function(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3]&&t[1]===t[2]&&t[2]===t[3])}(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){a.style.borderColor=n;var c=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,u=c instanceof Document?c.body:null!==(i=c.firstChild)&&void 0!==i?i:c;oB=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=WY(n);if(!$Y.has(r)){var i=GY("",n),o=i.parentNode;$Y.set(r,o),o.removeChild(i)}var a=Array.from($Y.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[VY]===t}));if(a){var s,l,c;return(null===(s=n.csp)||void 0===s?void 0:s.nonce)&&a.nonce!==(null===(l=n.csp)||void 0===l?void 0:l.nonce)&&(a.nonce=null===(c=n.csp)||void 0===c?void 0:c.nonce),a.innerHTML!==e&&(a.innerHTML=e),a}var u=GY(e,n);return u[VY]=t,u}("\n [".concat(s(""),"-click-animating-without-extra-node='true']::after, .").concat(s(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:u})}o&&t.appendChild(a),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!cB(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),iB.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=iB((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!y.isValidElement(r))return r;var i=e.containerRef;return function(e){var t,n,r=(0,A.isMemo)(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render)||"function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}(r)&&(i=KY(r.ref,e.containerRef)),lB(r,{ref:i})},e}return G(n,[{key:"componentDidMount",value:function(){var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),oB&&(oB.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return y.createElement(Hn,null,this.renderWave)}}]),n}(y.Component);uB.contextType=Bn;var dB=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},hB=function(){return{width:0,opacity:0,transform:"scale(0)"}},fB=function(e){return{width:e.scrollWidth,opacity:1,transform:"scale(1)"}},pB=function(e){var t=e.prefixCls,n=!!e.loading;return e.existIcon?y.createElement("span",{className:"".concat(t,"-loading-icon")},y.createElement(hn,null)):y.createElement(et,{visible:n,motionName:"".concat(t,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:hB,onAppearActive:fB,onEnterStart:hB,onEnterActive:fB,onLeaveStart:fB,onLeaveActive:hB},(function(e,n){var r=e.className,i=e.style;return y.createElement("span",{className:"".concat(t,"-loading-icon"),style:i,ref:n},y.createElement(hn,{className:r}))}))},gB=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},mB=/^[\u4e00-\u9fa5]{2}$/,vB=mB.test.bind(mB);function yB(e){return"text"===e||"link"===e}function bB(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&vB(e.props.children)?lB(e,{children:e.props.children.split("").join(n)}):"string"==typeof e?vB(e)?y.createElement("span",null,e.split("").join(n)):y.createElement("span",null,e):function(e){return y.isValidElement(e)&&e.type===y.Fragment}(e)?y.createElement("span",null,e):e}}dB("default","primary","ghost","dashed","link","text"),dB("circle","round"),dB("submit","button","reset");function wB(e){return"danger"===e?{danger:!0}:{type:e}}var _B=function(e,t){var n,r,i=e.loading,o=void 0!==i&&i,a=e.prefixCls,s=e.type,l=e.danger,c=e.shape,u=e.size,d=e.className,h=e.children,f=e.icon,p=e.ghost,g=void 0!==p&&p,m=e.block,v=void 0!==m&&m,b=e.htmlType,w=void 0===b?"button":b,_=gB(e,["loading","prefixCls","type","danger","shape","size","className","children","icon","ghost","block","htmlType"]),x=y.useContext(_i),E=oe(y.useState(!!o),2),C=E[0],k=E[1],S=oe(y.useState(!1),2),T=S[0],M=S[1],O=y.useContext(Bn),L=O.getPrefixCls,A=O.autoInsertSpaceInButton,N=O.direction,P=t||y.createRef(),I=y.useRef(),j=function(){return 1===y.Children.count(h)&&!f&&!yB(s)};r="object"===X(o)&&o.delay?o.delay||!0:!!o,y.useEffect((function(){clearTimeout(I.current),"number"==typeof r?I.current=window.setTimeout((function(){k(r)}),r):k(r)}),[r]),y.useEffect((function(){if(P&&P.current&&!1!==A){var e=P.current.textContent;j()&&vB(e)?T||M(!0):T&&M(!1)}}),[P]);var R=function(t){var n,r=e.onClick,i=e.disabled;C||i?t.preventDefault():null===(n=r)||void 0===n||n(t)};fi(!("string"==typeof f&&f.length>2),"Button","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(f,"` at https://ant.design/components/icon")),fi(!(g&&yB(s)),"Button","`link` or `text` button can't be a `ghost` button.");var z=L("btn",a),B=!1!==A,H="";switch(u||x){case"large":H="lg";break;case"small":H="sm"}var q=C?"loading":f,U=Y()(z,(F(n={},"".concat(z,"-").concat(s),s),F(n,"".concat(z,"-").concat(c),c),F(n,"".concat(z,"-").concat(H),H),F(n,"".concat(z,"-icon-only"),!h&&0!==h&&!!q),F(n,"".concat(z,"-background-ghost"),g&&!yB(s)),F(n,"".concat(z,"-loading"),C),F(n,"".concat(z,"-two-chinese-chars"),T&&B),F(n,"".concat(z,"-block"),v),F(n,"".concat(z,"-dangerous"),!!l),F(n,"".concat(z,"-rtl"),"rtl"===N),n),d),V=f&&!C?f:y.createElement(pB,{existIcon:!!f,prefixCls:z,loading:!!C}),W=h||0===h?function(e,t){var n=!1,r=[];return y.Children.forEach(e,(function(e){var t=X(e),i="string"===t||"number"===t;if(n&&i){var o=r.length-1,a=r[o];r[o]="".concat(a).concat(e)}else r.push(e);n=i})),y.Children.map(r,(function(e){return bB(e,t)}))}(h,j()&&B):null,G=YY(_,["navigate"]);if(void 0!==G.href)return y.createElement("a",D({},G,{className:U,onClick:R,ref:P}),V,W);var $=y.createElement("button",D({},_,{type:w,className:U,onClick:R,ref:P}),V,W);return yB(s)?$:y.createElement(uB,null,$)},xB=y.forwardRef(_B);xB.displayName="Button",xB.Group=qY,xB.__ANT_BUTTON=!0;var EB=xB,CB=function(e){var t=y.useRef(!1),n=y.useRef(),r=oe(y.useState(!1),2),i=r[0],o=r[1];y.useEffect((function(){var t;if(e.autoFocus){var r=n.current;t=setTimeout((function(){return r.focus()}))}return function(){t&&clearTimeout(t)}}),[]);var a=e.type,s=e.children,l=e.prefixCls,c=e.buttonProps;return y.createElement(EB,D({},wB(a),{onClick:function(){var n=e.actionFn,r=e.closeModal;if(!t.current)if(t.current=!0,n){var i;if(n.length)i=n(r),t.current=!1;else if(!(i=n()))return void r();!function(n){var r=e.closeModal;n&&n.then&&(o(!0),n.then((function(){r.apply(void 0,arguments)}),(function(e){console.error(e),o(!1),t.current=!1})))}(i)}else r()},loading:i,prefixCls:l},c,{ref:n}),s)},kB=function(){return{height:0,opacity:0}},SB=function(e){return{height:e.scrollHeight,opacity:1}},TB=function(e,t){return!0===(null==t?void 0:t.deadline)||"height"===t.propertyName},MB={motionName:"ant-motion-collapse",onAppearStart:kB,onEnterStart:kB,onAppearActive:SB,onEnterActive:SB,onLeaveStart:function(e){return{height:e.offsetHeight}},onLeaveActive:kB,onAppearEnd:TB,onEnterEnd:TB,onLeaveEnd:TB,motionDeadline:500},OB=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)},LB=MB,AB=function(e){var t=e.icon,n=e.onCancel,r=e.onOk,i=e.close,o=e.zIndex,a=e.afterClose,s=e.visible,l=e.keyboard,c=e.centered,u=e.getContainer,d=e.maskStyle,h=e.okText,f=e.okButtonProps,p=e.cancelText,g=e.cancelButtonProps,m=e.direction,v=e.prefixCls,b=e.rootPrefixCls,w=e.bodyStyle,_=e.closable,x=void 0!==_&&_,E=e.closeIcon,C=e.modalRender,k=e.focusTriggerAfterClose;fi(!("string"==typeof t&&t.length>2),"Modal","`icon` is using ReactNode instead of string naming in v4. Please check `".concat(t,"` at https://ant.design/components/icon"));var S=e.okType||"primary",T="".concat(v,"-confirm"),M=!("okCancel"in e)||e.okCancel,O=e.width||416,L=e.style||{},A=void 0===e.mask||e.mask,D=void 0!==e.maskClosable&&e.maskClosable,N=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),P=Y()(T,"".concat(T,"-").concat(e.type),F({},"".concat(T,"-rtl"),"rtl"===m),e.className),I=M&&y.createElement(CB,{actionFn:n,closeModal:i,autoFocus:"cancel"===N,buttonProps:g,prefixCls:"".concat(b,"-btn")},p);return y.createElement(KB,{prefixCls:v,className:P,wrapClassName:Y()(F({},"".concat(T,"-centered"),!!e.centered)),onCancel:function(){return i({triggerCancel:!0})},visible:s,title:"",footer:"",transitionName:OB(b,"zoom",e.transitionName),maskTransitionName:OB(b,"fade",e.maskTransitionName),mask:A,maskClosable:D,maskStyle:d,style:L,width:O,zIndex:o,afterClose:a,keyboard:l,centered:c,getContainer:u,closable:x,closeIcon:E,modalRender:C,focusTriggerAfterClose:k},y.createElement("div",{className:"".concat(T,"-body-wrapper")},y.createElement(lo,{prefixCls:b},y.createElement("div",{className:"".concat(T,"-body"),style:w},t,void 0===e.title?null:y.createElement("span",{className:"".concat(T,"-title")},e.title),y.createElement("div",{className:"".concat(T,"-content")},e.content))),y.createElement("div",{className:"".concat(T,"-btns")},I,y.createElement(CB,{type:S,actionFn:r,closeModal:i,autoFocus:"ok"===N,buttonProps:f,prefixCls:"".concat(b,"-btn")},h))))},DB=function(e,t){var n=e.afterClose,r=e.config,i=oe(y.useState(!0),2),o=i[0],a=i[1],s=oe(y.useState(r),2),l=s[0],c=s[1],u=y.useContext(Bn),d=u.direction,h=u.getPrefixCls,f=h("modal"),p=h();function g(){a(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.some((function(e){return e&&e.triggerCancel}));l.onCancel&&r&&l.onCancel()}return y.useImperativeHandle(t,(function(){return{destroy:g,update:function(e){c((function(t){return D(D({},t),e)}))}}})),y.createElement(Dn,{componentName:"Modal",defaultLocale:On.Modal},(function(e){return y.createElement(AB,D({prefixCls:f,rootPrefixCls:p},l,{close:g,visible:o,afterClose:n,okText:l.okText||(l.okCancel?e.okText:e.justOkText),direction:d,cancelText:l.cancelText||e.cancelText}))}))},NB=y.forwardRef(DB),PB=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},IB="";function jB(e){var t=document.createElement("div");document.body.appendChild(t);var n=D(D({},e),{close:o,visible:!0});function r(){b.unmountComponentAtNode(t)&&t.parentNode&&t.parentNode.removeChild(t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r.some((function(e){return e&&e.triggerCancel}));e.onCancel&&a&&e.onCancel.apply(e,r);for(var s=0;s<GB.length;s++){if(GB[s]===o){GB.splice(s,1);break}}}function i(e){var n=e.okText,r=e.cancelText,i=e.prefixCls,o=PB(e,["okText","cancelText","prefixCls"]);setTimeout((function(){var e=mi(),a=(0,to().getPrefixCls)(void 0,IB),s=i||"".concat(a,"-modal");b.render(y.createElement(AB,D({},o,{prefixCls:s,rootPrefixCls:a,okText:n||(o.okCancel?e.okText:e.justOkText),cancelText:r||e.cancelText})),t)}))}function o(){for(var t=this,o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];i(n=D(D({},n),{visible:!1,afterClose:function(){"function"==typeof e.afterClose&&e.afterClose(),r.apply(t,a)}}))}return i(n),GB.push(o),{destroy:o,update:function(e){i(n="function"==typeof e?e(n):D(D({},n),e))}}}function RB(e){return D(D({icon:y.createElement(Ni,null),okCancel:!1},e),{type:"warning"})}function FB(e){return D(D({icon:y.createElement(ji,null),okCancel:!1},e),{type:"info"})}function zB(e){return D(D({icon:y.createElement(Ti,null),okCancel:!1},e),{type:"success"})}function YB(e){return D(D({icon:y.createElement(Li,null),okCancel:!1},e),{type:"error"})}function BB(e){return D(D({icon:y.createElement(Ni,null),okCancel:!0},e),{type:"confirm"})}var HB=0,qB=y.memo(y.forwardRef((function(e,t){var n=function(){var e=oe(y.useState([]),2),t=e[0],n=e[1];return[t,y.useCallback((function(e){return n((function(t){return[].concat(rt(t),[e])})),function(){n((function(t){return t.filter((function(t){return t!==e}))}))}}),[])]}(),r=oe(n,2),i=r[0],o=r[1];return y.useImperativeHandle(t,(function(){return{patchElement:o}}),[]),y.createElement(y.Fragment,null,i)})));var UB,VB=function(){return UY()&&window.document.documentElement},WB=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},GB=[];VB()&&document.documentElement.addEventListener("click",(function(e){UB={x:e.pageX,y:e.pageY},setTimeout((function(){UB=null}),100)}),!0);var $B=function(e){var t,n=y.useContext(Bn),r=n.getPopupContainer,i=n.getPrefixCls,o=n.direction,a=function(t){var n=e.onCancel;null==n||n(t)},s=function(t){var n=e.onOk;null==n||n(t)},l=function(t){var n=e.okText,r=e.okType,i=e.cancelText,o=e.confirmLoading;return y.createElement(y.Fragment,null,y.createElement(EB,D({onClick:a},e.cancelButtonProps),i||t.cancelText),y.createElement(EB,D({},wB(r),{loading:o,onClick:s},e.okButtonProps),n||t.okText))},c=e.prefixCls,u=e.footer,d=e.visible,h=e.wrapClassName,f=e.centered,p=e.getContainer,g=e.closeIcon,m=e.focusTriggerAfterClose,v=void 0===m||m,b=WB(e,["prefixCls","footer","visible","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),w=i("modal",c),_=i(),x=y.createElement(Dn,{componentName:"Modal",defaultLocale:mi()},l),E=y.createElement("span",{className:"".concat(w,"-close-x")},g||y.createElement(Ci,{className:"".concat(w,"-close-icon")})),C=Y()(h,(F(t={},"".concat(w,"-centered"),!!f),F(t,"".concat(w,"-wrap-rtl"),"rtl"===o),t));return y.createElement(zY,D({},b,{getContainer:void 0===p?r:p,prefixCls:w,wrapClassName:C,footer:void 0===u?x:u,visible:d,mousePosition:UB,onClose:a,closeIcon:E,focusTriggerAfterClose:v,transitionName:OB(_,"zoom",e.transitionName),maskTransitionName:OB(_,"fade",e.maskTransitionName)}))};$B.useModal=function(){var e=y.useRef(null),t=oe(y.useState([]),2),n=t[0],r=t[1];y.useEffect((function(){n.length&&(rt(n).forEach((function(e){e()})),r([]))}),[n]);var i=y.useCallback((function(t){return function(n){var i;HB+=1;var o,a=y.createRef(),s=y.createElement(NB,{key:"modal-".concat(HB),config:t(n),ref:a,afterClose:function(){o()}});return o=null===(i=e.current)||void 0===i?void 0:i.patchElement(s),{destroy:function(){function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():r((function(t){return[].concat(rt(t),[e])}))},update:function(e){function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():r((function(e){return[].concat(rt(e),[t])}))}}}}),[]);return[y.useMemo((function(){return{info:i(FB),success:i(zB),error:i(YB),warning:i(RB),confirm:i(BB)}}),[]),y.createElement(qB,{ref:e})]},$B.defaultProps={width:520,confirmLoading:!1,visible:!1,okType:"primary"};var KB=$B;function JB(e){return jB(RB(e))}var XB=KB;XB.info=function(e){return jB(FB(e))},XB.success=function(e){return jB(zB(e))},XB.error=function(e){return jB(YB(e))},XB.warning=JB,XB.warn=JB,XB.confirm=function(e){return jB(BB(e))},XB.destroyAll=function(){for(;GB.length;){var e=GB.pop();e&&e()}},XB.config=function(e){var t=e.rootPrefixCls;fi(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),IB=t};var ZB=XB;__webpack_require__(94301);function QB(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 eH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QB(Object(n),!0).forEach((function(t){oH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tH(e){return tH="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},tH(e)}function nH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rH(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 iH(e,t,n){return t&&rH(e.prototype,t),n&&rH(e,n),e}function oH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aH(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&&lH(e,t)}function sH(e){return sH=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sH(e)}function lH(e,t){return lH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lH(e,t)}function cH(){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}}function uH(e,t,n){return uH=cH()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&lH(i,n.prototype),i},uH.apply(null,arguments)}function dH(e){var t="function"==typeof Map?new Map:void 0;return dH=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;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,n)}function n(){return uH(e,arguments,sH(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),lH(n,e)},dH(e)}function hH(e,t){return!t||"object"!=typeof 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 fH(e){var t=cH();return function(){var n,r=sH(e);if(t){var i=sH(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hH(this,n)}}function pH(e){return function(e){if(Array.isArray(e))return gH(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)return;if("string"==typeof e)return gH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gH(e,t)}(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 gH(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}var mH=function(){function e(t){if(nH(this,e),!Array.isArray(t))throw new TypeError("Default middlewares must be an array!");this.defaultMiddlewares=pH(t),this.middlewares=[]}return iH(e,[{key:"use",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1,defaultInstance:!1},r=!1,i=!1,o=!1;"number"==typeof n?(process,r=!0,i=!1):"object"===tH(n)&&n&&(i=n.global||!1,r=n.core||!1,o=n.defaultInstance||!1),i?e.globalMiddlewares.splice(e.globalMiddlewares.length-e.defaultGlobalMiddlewaresLength,0,t):r?e.coreMiddlewares.splice(e.coreMiddlewares.length-e.defaultCoreMiddlewaresLength,0,t):o?this.defaultMiddlewares.push(t):this.middlewares.push(t)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=function(e){if(!Array.isArray(e))throw new TypeError("Middlewares must be an array!");for(var t=e.length,n=0;n<t;n++)if("function"!=typeof e[n])throw new TypeError("Middleware must be componsed of function");return function(t,n){var r=-1;return function i(o){if(o<=r)return Promise.reject(new Error("next() should not be called multiple times in one middleware!"));r=o;var a=e[o]||n;if(!a)return Promise.resolve();try{return Promise.resolve(a(t,(function(){return i(o+1)})))}catch(e){return Promise.reject(e)}}(0)}}([].concat(pH(this.middlewares),pH(this.defaultMiddlewares),pH(e.globalMiddlewares),pH(e.coreMiddlewares)));return n(t)}}]),e}();mH.globalMiddlewares=[],mH.defaultGlobalMiddlewaresLength=0,mH.coreMiddlewares=[],mH.defaultCoreMiddlewaresLength=0;var vH=function(){function e(t){nH(this,e),this.cache=new Map,this.timer={},this.extendOptions(t)}return iH(e,[{key:"extendOptions",value:function(e){this.maxCache=e.maxCache||0}},{key:"get",value:function(e){return this.cache.get(JSON.stringify(e))}},{key:"set",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;if(this.maxCache>0&&this.cache.size>=this.maxCache){var i=pH(this.cache.keys())[0];this.cache.delete(i),this.timer[i]&&clearTimeout(this.timer[i])}var o=JSON.stringify(e);this.cache.set(o,t),r>0&&(this.timer[o]=setTimeout((function(){n.cache.delete(o),delete n.timer[o]}),r))}},{key:"delete",value:function(e){var t=JSON.stringify(e);return delete this.timer[t],this.cache.delete(t)}},{key:"clear",value:function(){return this.timer={},this.cache.clear()}}]),e}(),yH=function(e){aH(n,e);var t=fH(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"RequestError";return nH(this,n),(i=t.call(this,e)).name="RequestError",i.request=r,i.type=o,i}return n}(dH(Error)),bH=function(e){aH(n,e);var t=fH(n);function n(e,r,i,o){var a,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ResponseError";return nH(this,n),(a=t.call(this,r||e.statusText)).name="ResponseError",a.data=i,a.response=e,a.request=o,a.type=s,a}return n}(dH(Error));function wH(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=n,r.readAsText(e,"GBK")}))}function _H(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;try{return JSON.parse(e)}catch(i){if(t)throw new bH(n,"JSON.parse fail",e,r,"ParseError")}return e}function xH(e,t){return new Promise((function(n,r){setTimeout((function(){r(new yH("timeout of ".concat(e,"ms exceeded"),t,"Timeout"))}),e)}))}function EH(e){return new Promise((function(t,n){e.cancelToken&&e.cancelToken.promise.then((function(e){n(e)}))}))}var CH=Object.prototype.toString;function kH(){var e;return"undefined"!=typeof process&&"[object process]"===CH.call(process)&&(e="NODE"),"undefined"!=typeof XMLHttpRequest&&(e="BROWSER"),e}function SH(e){return"object"===tH(e)&&"[object Array]"===Object.prototype.toString.call(e)}function TH(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function MH(e){return null!==e&&"object"===tH(e)}function OH(e,t){if(e)if("object"!==tH(e)&&(e=[e]),SH(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function LH(e){return TH(e)?(0,ey.parse)(e.toString(),{strictNullHandling:!0}):"string"==typeof e?[e]:e}function AH(e){return(0,ey.stringify)(e,{arrayFormat:"repeat",strictNullHandling:!0})}function DH(e,t){return eH(eH(eH({},e),t),{},{headers:eH(eH({},e.headers),t.headers),params:eH(eH({},LH(e.params)),LH(t.params)),method:(t.method||e.method||"get").toLowerCase()})}function NH(e,t){var n=t.method;return"get"===(void 0===n?"get":n).toLowerCase()}function PH(e,t){var n,r;if(e)if(t)n=t(e);else if(TH(e))n=e.toString();else{if(SH(e))r=[],OH(e,(function(e){null==e?r.push(e):r.push(MH(e)?JSON.stringify(e):e)})),n=AH(r);else r={},OH(e,(function(e,t){var n,i=e;null==e?r[t]=e:"object"===tH(n=e)&&"[object Date]"===Object.prototype.toString.call(n)?i=e.toISOString():SH(e)?i=e:MH(e)&&(i=JSON.stringify(e)),r[t]=i})),n=AH(r)}return n}var IH=[function(e,t){if(!e)return t();var n=e.req,r=(n=void 0===n?{}:n).options,i=void 0===r?{}:r,o=i.method;if(-1===["post","put","patch","delete"].indexOf((void 0===o?"get":o).toLowerCase()))return t();var a=i.requestType,s=void 0===a?"json":a,l=i.data;if(l){var c=Object.prototype.toString.call(l);"[object Object]"===c||"[object Array]"===c?"json"===s?(i.headers=eH({Accept:"application/json","Content-Type":"application/json;charset=UTF-8"},i.headers),i.body=JSON.stringify(l)):"form"===s&&(i.headers=eH({Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},i.headers),i.body=AH(l)):(i.headers=eH({Accept:"application/json"},i.headers),i.body=l)}return e.req.options=i,t()},function(e,t){if(!e)return t();var n=e.req,r=(n=void 0===n?{}:n).options,i=void 0===r?{}:r,o=i.paramsSerializer,a=i.params,s=e.req,l=(s=void 0===s?{}:s).url,c=void 0===l?"":l;i.method=i.method?i.method.toUpperCase():"GET",i.credentials=i.credentials||"same-origin";var u=PH(a,o);if(e.req.originUrl=c,u){var d=-1!==c.indexOf("?")?"&":"?";e.req.url="".concat(c).concat(d).concat(u)}return e.req.options=i,t()},function(e,t){var n;return t().then((function(){if(e){var t=e.res,r=void 0===t?{}:t,i=e.req,o=void 0===i?{}:i,a=(o||{}).options,s=(a=void 0===a?{}:a).responseType,l=void 0===s?"json":s,c=a.charset,u=void 0===c?"utf8":c,d=(a.getResponse,a.throwErrIfParseFail),h=void 0!==d&&d,f=a.parseResponse;if((void 0===f||f)&&r&&r.clone){if((n="BROWSER"===kH()?r.clone():r).useCache=r.useCache||!1,"gbk"===u)try{return r.blob().then(wH).then((function(e){return _H(e,!1,n,o)}))}catch(e){throw new bH(n,e.message,null,o,"ParseError")}else if("json"===l)return r.text().then((function(e){return _H(e,h,n,o)}));try{return r[l]()}catch(e){throw new bH(n,"responseType not support",null,o,"ParseError")}}}})).then((function(t){if(e){e.res;var r=e.req,i=void 0===r?{}:r,o=(i||{}).options,a=(o=void 0===o?{}:o).getResponse,s=void 0!==a&&a;if(n){if(n.status>=200&&n.status<300)return s?void(e.res={data:t,response:n}):void(e.res=t);throw new bH(n,"http error",t,i,"HttpError")}}})).catch((function(t){if(t instanceof yH||t instanceof bH)throw t;var n=e.req,r=e.res;throw t.request=t.request||n,t.response=t.response||r,t.type=t.type||t.name,t.data=t.data||void 0,t}))}],jH=[function(e,t){if(!e)return t();var n=e.req,r=(n=void 0===n?{}:n).options,i=void 0===r?{}:r,o=n.url,a=void 0===o?"":o,s=e.cache,l=e.responseInterceptors,c=i.timeout,u=void 0===c?0:c,d=i.__umiRequestCoreType__,h=void 0===d?"normal":d,f=i.useCache,p=void 0!==f&&f,g=i.method,m=void 0===g?"get":g,v=i.params,y=i.ttl,b=i.validateCache,w=void 0===b?NH:b;if("normal"!==h)return process,t();var _=fetch;if(!_)throw new Error("Global fetch not exist!");var x,E="BROWSER"===kH(),C=w(a,i)&&p&&E;if(C){var k=s.get({url:a,params:v,method:m});if(k)return(k=k.clone()).useCache=!0,e.res=k,t()}return x=u>0?Promise.race([EH(i),_(a,i),xH(u,e.req)]):Promise.race([EH(i),_(a,i)]),l.forEach((function(e){x=x.then((function(t){var n="function"==typeof t.clone?t.clone():t;return e(n,i)}))})),x.then((function(n){if(C&&200===n.status){var r=n.clone();r.useCache=!0,s.set({url:a,params:v,method:m},r,y)}return e.res=n,t()}))}];mH.globalMiddlewares=IH,mH.defaultGlobalMiddlewaresLength=IH.length,mH.coreMiddlewares=jH,mH.defaultCoreMiddlewaresLength=jH.length;var RH=function(){function e(t){nH(this,e),this.onion=new mH([]),this.fetchIndex=0,this.mapCache=new vH(t),this.initOptions=t,this.instanceRequestInterceptors=[],this.instanceResponseInterceptors=[]}return iH(e,[{key:"use",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!1,core:!1};return this.onion.use(e,t),this}},{key:"extendOptions",value:function(e){this.initOptions=DH(this.initOptions,e),this.mapCache.extendOptions(e)}},{key:"dealRequestInterceptors",value:function(t){return[].concat(pH(e.requestInterceptors),pH(this.instanceRequestInterceptors)).reduce((function(e,n){return e.then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,n(t.req.url,t.req.options)}))}),Promise.resolve()).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.req.url=e.url||t.req.url,t.req.options=e.options||t.req.options,Promise.resolve()}))}},{key:"request",value:function(t,n){var r=this,i=this.onion,o={req:{url:t,options:eH(eH({},n),{},{url:t})},res:null,cache:this.mapCache,responseInterceptors:[].concat(pH(e.responseInterceptors),pH(this.instanceResponseInterceptors))};if("string"!=typeof t)throw new Error("url MUST be a string");return new Promise((function(e,t){r.dealRequestInterceptors(o).then((function(){return i.execute(o)})).then((function(){e(o.res)})).catch((function(n){var r=o.req.options.errorHandler;if(r)try{var i=r(n);e(i)}catch(e){t(e)}else t(n)}))}))}}],[{key:"requestUse",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");n.global?e.requestInterceptors.push(t):this.instanceRequestInterceptors.push(t)}},{key:"responseUse",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{global:!0};if("function"!=typeof t)throw new TypeError("Interceptor must be function!");n.global?e.responseInterceptors.push(t):this.instanceResponseInterceptors.push(t)}}]),e}();function FH(e){this.message=e}function zH(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 FH(e),t(n.reason))}))}function YH(e){return!(!e||!e.__CANCEL__)}RH.requestInterceptors=[function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=t.suffix;return n&&(e="".concat(n).concat(e)),r&&(e="".concat(e).concat(r)),{url:e,options:t}}],RH.responseInterceptors=[],FH.prototype.toString=function(){return this.message?"Cancel: ".concat(this.message):"Cancel"},FH.prototype.__CANCEL__=!0,zH.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},zH.source=function(){var e;return{token:new zH((function(t){e=t})),cancel:e}};var BH=function(){var e=new RH(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),t=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=DH(e.initOptions,n);return e.request(t,r)};t.use=e.use.bind(e),t.fetchIndex=e.fetchIndex,t.interceptors={request:{use:RH.requestUse.bind(e)},response:{use:RH.responseUse.bind(e)}};return["get","post","delete","put","patch","head","options","rpc"].forEach((function(e){t[e]=function(n,r){return t(n,eH(eH({},r),{},{method:e}))}})),t.Cancel=FH,t.CancelToken=zH,t.isCancel=YH,t.extendOptions=e.extendOptions.bind(e),t.middlewares={instance:e.onion.middlewares,defaultInstance:e.onion.defaultMiddlewares,global:mH.globalMiddlewares,core:mH.coreMiddlewares},t},HH=(BH({parseResponse:!1}),BH({})),qH=__webpack_require__(2205),UH=__webpack_require__.n(qH),VH=__webpack_require__(78585),WH=__webpack_require__.n(VH),GH=__webpack_require__(29754),$H=__webpack_require__.n(GH),KH=__webpack_require__(65957);function JH(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=$H()(e);if(t){var i=$H()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return WH()(this,n)}}var XH=function(e){UH()(n,e);var t=JH(n);function n(){return ka()(this,n),t.apply(this,arguments)}return Ea()(n)}(__webpack_require__.n(KH)()(Error)),ZH=(__webpack_require__(64913),__webpack_require__(83296));function QH(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return eq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eq(e,t)}(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function eq(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}var tq,nq=(tq={timeout:12e4,errorHandler:function(e){var t=e.data,n=e.message;if(t)throw new Error(JSON.stringify(t));if(n)throw e}},BH(tq)),rq=function(){return om.ApiPrefix+"/gspLive_backend"},iq=function(e,t){return nq.post(e,{requestType:"form",data:t,prefix:rq()})},oq=function(e,t){return nq.post(e,{requestType:"json",data:t})},aq=function(e,t){return nq.post(e,{requestType:"json",data:t,prefix:rq()})},sq=function(e,t){return nq.get(e,{params:t,prefix:rq()})},lq=function(e){return nq.get(e)},cq=function(e,t){return nq.post(e,{requestType:"form",data:(0,ZH.serialize)(t),prefix:rq()})},uq=function(e,t,n){var r,i=(0,ZH.serialize)(t),o=QH(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.append("sqlfiles",a)}}catch(e){o.e(e)}finally{o.f()}return nq.post(e,{requestType:"form",data:i,prefix:rq()})},dq=function(e,t,n){IF.loading.upload.start(),nq.get(e,{params:n,prefix:rq(),responseType:"blob"}).then((function(e){var n=new Blob([e],{type:"application/octet-stream;charset=utf-8"}),r=window.URL.createObjectURL(n),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r),IF.loading.upload.stop()}))},hq=function(e,t,n){IF.loading.upload.start(),nq.post(e,{params:n,prefix:rq(),responseType:"blob"}).then((function(e){var n=new Blob([e],{type:"application/octet-stream;charset=utf-8"}),r=window.URL.createObjectURL(n),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r),IF.loading.upload.stop()}))},fq={form:function(e,t){return new xz((function(n){var r=new AbortController,i=r.signal;return nq.post(e,{requestType:"form",data:t,prefix:rq(),signal:i}).then((function(e){n.next(e),n.complete()})).catch((function(e){n.error(e)})),{unsubscribe:function(){r.abort()}}}))}};var pq={displayUserJobsSummary:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iq("/sqlflow/job/displayUserJobsSummary");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},displayUserJobsSummary$:function(){return fq.form("/sqlflow/job/displayUserJobsSummary")},deleteUserJob:function(e,t){return g()(v().mark((function n(){var r;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,iq("/sqlflow/job/deleteUserJob",{userId:e,jobId:t});case 2:return r=n.sent,n.abrupt("return",r);case 4:case"end":return n.stop()}}),n)})))()},setJobOnTop:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/setJobOnTop",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},submitUserJob:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.password&&(e.password=uy(e.password)),t.next=3,cq("/sqlflow/job/submitUserJob",e);case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},submitPersistJob:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.password&&(e.password=uy(e.password)),t.next=3,cq("/sqlflow/job/submitPersistJob",e);case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},submitUserJobByMultipart:function(e,t){return g()(v().mark((function n(){var r;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.password&&(e.password=uy(e.password)),n.next=3,uq("/sqlflow/job/submitUserJob",e,t);case 3:return r=n.sent,n.abrupt("return",r);case 5:case"end":return n.stop()}}),n)})))()},submitPersistJobByMultipart:function(e,t){return g()(v().mark((function n(){var r;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.password&&(e.password=uy(e.password)),n.next=3,uq("/sqlflow/job/submitPersistJob",e,t);case 3:return r=n.sent,n.abrupt("return",r);case 5:case"end":return n.stop()}}),n)})))()},testConnection:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.password&&(e.password=uy(e.password)),t.next=3,iq("/database/testConnection",e);case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})))()},updateUserJobGraphCache:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/updateUserJobGraphCache",{jobId:e});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},exportDatabaseMetadata:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/exportDatabaseMetadata",{jobId:e});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},exporteMetadata:function(e,t){return g()(v().mark((function n(){return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:dq("/sqlflow/job/exportMetadata","metadata.json",{userId:e,jobId:t});case 1:case"end":return n.stop()}}),n)})))()},exportJobFile:function(e,t,n){return g()(v().mark((function r(){return v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:dq("/sqlflow/job/exportJobFile",n,{userId:e,jobId:t,fileName:n});case 1:case"end":return r.stop()}}),r)})))()},exporteSubJobFile:function(e,t,n,r){return g()(v().mark((function i(){return v().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:dq("/sqlflow/job/download/subJobFile",r,{userId:e,jobId:t,batchId:n,fileName:r});case 1:case"end":return i.stop()}}),i)})))()},displayMetadataQuerySource:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/displayMetadataQuerySource",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},displayProcedureSource:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/displayProcedureSource",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},rerunJob:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/rerunJob",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},resumeScheduleJob:function(e,t){return g()(v().mark((function n(){return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:iq("/sqlflow/job/resumeScheduleJob",{userId:e,jobId:t});case 1:case"end":return n.stop()}}),n)})))()},pauseScheduleJob:function(e,t){return g()(v().mark((function n(){return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:iq("/sqlflow/job/pauseScheduleJob",{userId:e,jobId:t});case 1:case"end":return n.stop()}}),n)})))()},jobSummary:function(e,t,n){return g()(v().mark((function r(){var i;return v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,iq("/sqlflow/job/graph/summary",{userId:e,jobId:t,dbvendor:n});case 2:return i=r.sent,r.abrupt("return",i);case 4:case"end":return r.stop()}}),r)})))()}};function gq(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 mq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gq(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}HH.interceptors.request.use((function(e,t){switch(t.headers={Authorization:"Token ".concat(om.Authorization.base64token)},t.method){case"get":t.params=mq({userId:jF.user.id},t.params);break;case"post":t.data instanceof FormData?t.data.append("userId",jF.user.id):t.data=mq({userId:jF.user.id},t.data)}return{url:e,options:t}})),HH.use(function(){var e=g()(v().mark((function e(t,n){var r,i,o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n();case 2:if(403!==(r=t.res).code){e.next=11;break}if(!Jp){e.next=6;break}throw new Error(r.error);case 6:throw IF.expired.show(),RU.body.toast.disableNextOne(),new Error(r.error);case 11:if(410!==r.code){e.next=17;break}throw ZB.warn({title:"Rerun job",content:"This job is not compatible with the current version Gudu SQLFlow, do you want to create a new job based on this old job",okText:"Rerun job",okCancel:!0,cancelText:"cancel",onOk:function(){var e=g()(v().mark((function e(){var t,n,r,i,o,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r=null===(t=jF.sqlflow.visualize.job)||void 0===t?void 0:t.jobId,i=null===(n=jF.sqlflow.visualize.job)||void 0===n?void 0:n.jobName,r&&i){e.next=5;break}throw new Error("rerun fail, params are empty");case 5:return o={jobId:r,jobName:i},e.next=8,pq.rerunJob(o);case 8:if(200!==(a=e.sent).code){e.next=14;break}_o.success("rerun job success"),RU.job.refresh.subscribe(),e.next=15;break;case 14:throw new Error(a.message||"rerun job fail");case 15:e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),_o.error(e.t0.message),e.t0;case 21:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(){return e.apply(this,arguments)}}()}),RU.body.toast.disableNextOne(),new Error("job is not compatible");case 17:if(!(r.code>=411&&r.code<=417)){e.next=24;break}throw i=(null==r?void 0:r["machine.code"])||"",o=r.error+(i?", your gudu sqlflow id is ".concat(i,"."):""),IF.license.machineCode.show({message:o,reason:r.error,code:i}),new XH(o);case 24:if(426!==r.code){e.next=28;break}throw IF.user.buy.show(),RU.body.toast.disableNextOne(),new Error("Upgrade to the premium account to use all powerful features");case 28:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{global:!0});var vq={checkExistence:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/permalink/checkExistence",{hashcode:e});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},createPermalink:function(e){return g()(v().mark((function t(){var n,r;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={permalinkId:e.permalinkId,permalinkData:JSON.stringify(e.permalinkData)},t.next=3,iq("/permalink/createPermalink",n);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))()},getPermalinkData:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/permalink/getPermalinkData",{permalinkId:e});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()}};function yq(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 bq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yq(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wq={graph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/graph",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},selectGraph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/selectedgraph",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},displayMetadataQueryGraph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/displayMetadataQueryGraph",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},displayProcedureGraph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/displayProcedureGraph",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},listTableColumns:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/listTableColumns",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},leftMostSourceTableGraph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/leftMostSourceTableGraph",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},upStreamGraph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/upstreamGraph",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},downStreamGraph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/downstreamGraph",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},latestJobLeftMostTableGraph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/displayUserLatestJobLeftMostTable",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},displayUserLatestJobGraph:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iq("/sqlflow/job/displayUserLatestJobGraph");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},getSelectedDbObjectInfo:function(e){return g()(v().mark((function t(){var n,r;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=bq(bq({},e),{},{coordinates:JSON.stringify(e.coordinates)}),t.next=3,iq("/sqlflow/generation/sqlflow/getSelectedDbObjectInfo",n);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))()},fetchRegularJobTableRelationSqls:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/fetchRegularJobTableRelationSqls",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},fetchLeftMostTableLineageSQL:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/fetchLeftMostTableLineageSQL",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},getVersion:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iq("/version");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},getWidgetFile:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lq("widget/".concat(e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},share:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,sq("/sqlflow/generation/sqlflow/graph/share/".concat(e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},format:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sql/format",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},exportFullLineageAsCsv:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/job/exportFullLineageAsCsv",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},exportLineageAsCsv:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/exportFullLineageAsCsv",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()}},_q={register:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/register",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},unregister:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/unregister ",{userId:e});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},forgetPassword:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oq("https://gudusoft.auth0.com/dbconnections/change_password",{email:e,client_id:"PZ7fv0vKLL8f0HFW0FIlP1PiDeF0h5HD",connection:"Username-Password-Authentication"});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},generateSecretKey:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iq("/user/generateSecretKey");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},generateToken:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/generateToken",{secretKey:e});case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},getInfo:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iq("/user/info");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},getConfig:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(tg).then((function(e){return e.json()}));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},getLicense:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sq("/license");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},getLang:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,lq("lang/".concat(e,".json"));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},getUserSetting:function(e,t){return g()(v().mark((function n(){var r;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,iq("/user/getUserSetting",{userId:e,section:t});case 2:return r=n.sent,n.abrupt("return",r);case 4:case"end":return n.stop()}}),n)})))()},saveUserSetting:function(e,t,n,r){return g()(v().mark((function i(){var o;return v().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,iq("/user/saveUserSetting",{userId:e,section:t,key:n,value:r});case 2:return o=i.sent,i.abrupt("return",o);case 4:case"end":return i.stop()}}),i)})))()},schema:{submit:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,cq("/sqlflow/generation/submitUserSchema",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},delete:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,cq("/sqlflow/generation/deleteUserSchema",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},display:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iq("/sqlflow/generation/displayUserSchemaSummary");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()}},coupon:{apply:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/applyUserCoupon",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()}},uploadLicense:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,cq("/uploadLicense",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},displayUserShareSummary:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iq("/user/displayUserShareSummary");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},deleteUserShare:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/deleteUserShare",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},createOrder:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/wepay/createOrder",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},nativePayQuery:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/wepay/nativePayQuery",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},products:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sq("/wepay/products");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()},login:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/register",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},changePassword:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/modifyPassword",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},getUsers:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,aq("/user/users",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},addUser:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/addUser",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},updateUser:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/updateUser",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},deleteUser:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/deleteUser",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},resetPassword:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/resetPassword",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},upgradeUser:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/user/upgrade",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},getUserSqls:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,aq("/user/sqls",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},downloadUserSql:function(e,t){return g()(v().mark((function n(){return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:console.log(t),hq("/user/downloadUserSql",e,t);case 2:case"end":return n.stop()}}),n)})))()},getCoupons:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,aq("/coupon/coupons",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},deleteCoupon:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/coupon/deleteCoupon",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},batchAddCoupons:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/coupon/batchCreateCoupons",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()}},xq={graph:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/erdiagramSelectGraph",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()}},Eq=pq,Cq=vq,kq={visualizeTableLevel:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/graph/table_level_lineage",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},visualizeJobTableLevel:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iq("/sqlflow/generation/sqlflow/selectedgraph/table_level_lineage",e);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},displayUserLatestJobGraph:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iq("/sqlflow/job/displayUserLatestJobTableLevelLineage");case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))()}},Sq=wq,Tq=_q,Mq=xq,Oq=null,Lq={getAll:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(null==e?void 0:e.showLoading)&&IF.loading.job.start(),t.next=4,Eq.displayUserJobsSummary();case 4:if(200!=(n=t.sent).code){t.next=9;break}IF.job.list.set(n.data.jobDetails||[]),t.next=10;break;case 9:throw new Error(n.error||"get all job list fail.");case 10:t.next=16;break;case 12:throw t.prev=12,t.t0=t.catch(0),_o.error(t.t0.message),t.t0;case 16:return t.prev=16,(null==e?void 0:e.showLoading)&&IF.loading.job.stop(),t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[0,12,16,19]])})))()},remove:function(e){return g()(v().mark((function t(){var n,r;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,IF.loading.job.start(),n=e.userId){t.next=5;break}throw new Error("invalid user id");case 5:return t.next=7,Eq.deleteUserJob(n,e.jobId);case 7:if(200!=(r=t.sent).code){t.next=15;break}return _o.success("delete job success"),t.next=12,RU.job.getAll();case 12:IF.job.search.filter(),t.next=16;break;case 15:throw new Error(r.error||"delete job fail.");case 16:t.next=22;break;case 18:throw t.prev=18,t.t0=t.catch(0),_o.error(t.t0.message),t.t0;case 22:return t.prev=22,IF.loading.job.stop(),t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[0,18,22,25]])})))()},top:function(e){return g()(v().mark((function t(){var n,r,i;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,IF.loading.job.start(),n=e.userId){t.next=5;break}throw new Error("invalid user id");case 5:return r=e.onTop?"cancel":"set",t.next=8,Eq.setJobOnTop({userId:n,jobId:e.jobId,onTop:!e.onTop});case 8:if(200!=(i=t.sent).code){t.next=15;break}return _o.success("".concat(r," job on top success")),t.next=13,RU.job.getAll();case 13:t.next=16;break;case 15:throw new Error(i.error||"".concat(r," job on fail."));case 16:t.next=22;break;case 18:throw t.prev=18,t.t0=t.catch(0),_o.error(t.t0.message),t.t0;case 22:return t.prev=22,IF.loading.job.stop(),t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[0,18,22,25]])})))()},refresh:{subscribe:function(){var e;null===(e=Oq)||void 0===e||e.unsubscribe(),Oq=Xz(0,5e3).pipe(Zz((function(){return 0===jF.job.list.length?(IF.loading.job.start(),Eq.displayUserJobsSummary$().pipe(Qz((function(){IF.loading.job.stop()})))):Eq.displayUserJobsSummary$()}))).subscribe({next:function(e){if(200!=e.code)throw new Error(e.error||"get all job list fail.");var t;IF.job.list.set(e.data.jobDetails||[]),jF.job.list.every((function(e){return"create"!==e.status&&"process"!==e.status}))&&(null===(t=Oq)||void 0===t||t.unsubscribe())},error:function(e){throw _o.error(e.message),e}})},unsubscribe:function(){var e;null===(e=Oq)||void 0===e||e.unsubscribe()}},upload:function(){jF.user.isLogin?IF.job.upload.show():IF.login.show()}},Aq={position:{update:function(){var e,t,n,r,i=((null===(e=RF.sqlflow.container)||void 0===e?void 0:e.clientWidth)||0)-((null===(t=RF.sqlflow.scroll)||void 0===t?void 0:t.clientWidth)||0),o=((null===(n=RF.sqlflow.container)||void 0===n?void 0:n.clientHeight)||0)-((null===(r=RF.sqlflow.scroll)||void 0===r?void 0:r.clientHeight)||0);RF.sqlflow.map&&(RF.sqlflow.map.style.right=i+"px",RF.sqlflow.map.style.bottom=o+"px")}}};function Dq(e,t){return Cz((function(n,r){var i=null,o=0,a=!1,s=function(){return a&&!i&&r.complete()};n.subscribe(new kz(r,(function(n){null==i||i.unsubscribe();var a=0,l=o++;Oz(e(n,l)).subscribe(i=new kz(r,(function(e){return r.next(t?t(n,e,l,a++):e)}),(function(){i=null,s()})))}),(function(){a=!0,s()})))}))}function Nq(e){return Cz((function(t,n){Oz(e).subscribe(new kz(n,(function(){return n.complete()}),cz)),!n.closed&&t.subscribe(n)}))}var Pq,Iq={drag:null},jq={visualize:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,y,b,w,_;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e||!e.skipLoading){t.next=3;break}t.next=5;break;case 3:if(!jF.loading.lineage.spinning){t.next=5;break}return t.abrupt("return");case 5:null!=e&&e.activateTab&&IF.tab.current.set(xg.lineage),n=jF.lineage.visualize,t.prev=7,IF.loading.lineage.spinning.start(),t.t0=n.type,t.next=t.t0===_g.sql?12:t.t0===_g.job?26:t.t0===_g.json?48:56;break;case 12:return o=jF.setting.sqltext||"",a=jF.lineage.visualize.setting,s={dbvendor:n.dbvendor,sqltext:o,jobId:null===(r=n.job)||void 0===r?void 0:r.jobId,allTablesInFromClauseIncludedInTableLevelLineage:a.allTablesInFromClauseIncludedInTableLevelLineage},null!=e&&null!==(i=e.select)&&void 0!==i&&i.dbo&&(c=null==e||null===(l=e.select)||void 0===l?void 0:l.dbo,s.database="DEFAULT"===c.database?void 0:c.database,s.schema="DEFAULT"===c.schema?void 0:c.schema,s.table=c.table,s.column=c.column),t.next=18,kq.visualizeTableLevel(s);case 18:if(200!==(u=t.sent).code){t.next=24;break}d=Ry.init({response:u,request:s,dbvendor:n.dbvendor}),IF.lineage.current.set(d),t.next=25;break;case 24:throw new Error(u.error||u.message||"get table level lineage fail.");case 25:case 47:return t.abrupt("break",59);case 26:if(h=n.job,f=jF.lineage.visualize.setting,h){t.next=30;break}throw new Error("invalid job object");case 30:return t.next=32,Eq.updateUserJobGraphCache(h.jobId);case 32:if(200!==(p=t.sent).code){t.next=46;break}return g={sessionId:p.data.sessionId,dbvendor:h.dbVendor,jobId:null==h?void 0:h.jobId,allTablesInFromClauseIncludedInTableLevelLineage:f.allTablesInFromClauseIncludedInTableLevelLineage},t.next=37,kq.visualizeJobTableLevel(g);case 37:if(200!==(m=t.sent).code){t.next=43;break}y=Ry.init({response:m,request:g,dbvendor:n.dbvendor}),IF.lineage.current.set(y),t.next=44;break;case 43:throw new Error(m.error||m.message||"get job table level lineage fail.");case 44:t.next=47;break;case 46:throw new Error(p.error||"update job cache fail.");case 48:if(b=null==e?void 0:e.json){t.next=51;break}return t.abrupt("return");case 51:return w={sessionId:b.sessionId,dbvendor:Ry.getDbvendor(b)},_=Ry.init({response:b,request:w,dbvendor:n.dbvendor}),IF.lineage.current.set(_),qy.isShare(b)&&IF.share.info.set(b),t.abrupt("break",59);case 56:throw n.type,new Error("never");case 59:t.next=66;break;case 61:throw t.prev=61,t.t1=t.catch(7),IF.lineage.current.set(null),_o.error(t.t1.message),t.t1;case 66:return t.prev=66,IF.loading.lineage.spinning.stop(),t.finish(66);case 69:case"end":return t.stop()}}),t,null,[[7,61,66,69]])})))()},visualizeSQL:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:IF.lineage.visualize.type.set(_g.sql),IF.lineage.visualize.mode.set(wg.query),IF.lineage.visualize.sqltext.value.set(jF.setting.sqltext),IF.lineage.visualize.dbvendor.set(oy(jF.license.vendor.current)),RU.lineage.visualize(e);case 5:case"end":return t.stop()}}),t)})))()},visualizeJob:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:IF.lineage.visualize.type.set(_g.job),IF.lineage.visualize.mode.set(wg.job),IF.lineage.visualize.job.set(e),IF.lineage.visualize.dbvendor.set(e.dbVendor),RU.lineage.visualize({activateTab:!0});case 5:case"end":return t.stop()}}),t)})))()},visualizeLastestJob:function(){return g()(v().mark((function e(){var t,n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return IF.lineage.visualize.type.set(_g.job),IF.lineage.visualize.mode.set(wg.job),e.prev=2,IF.loading.lineage.spinning.start(),IF.toolbar.job.show(),IF.tab.current.set(xg.lineage),e.next=8,kq.displayUserLatestJobGraph();case 8:if(200!==(t=e.sent).code){e.next=15;break}n={sessionId:t.sessionId,dbvendor:Ry.getDbvendor(t)},r=Ry.init({response:t,request:n,dbvendor:Ry.getDbvendor(t)}),IF.lineage.current.set(r),e.next=16;break;case 15:throw new Error(t.error||t.message||"get job table level lineage fail.");case 16:e.next=22;break;case 18:throw e.prev=18,e.t0=e.catch(2),_o.error(e.t0.message),e.t0;case 22:return e.prev=22,IF.loading.lineage.spinning.stop(),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[2,18,22,25]])})))()},visualizeJSON:function(e){return g()(v().mark((function t(){var n,r;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.json,r=e.skipLoading,IF.lineage.visualize.type.set(_g.json),IF.lineage.visualize.dbvendor.set(Ry.getDbvendor(n)),t.next=5,RU.lineage.visualize({activateTab:!1,json:n,skipLoading:r});case 5:case"end":return t.stop()}}),t)})))()},visualizeOverview:function(e){return g()(v().mark((function t(){var n,r,i;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null!=e&&e.activeTab&&IF.tab.current.set(xg.lineage),n=jF.sqlflow.visualize,t.prev=2,t.t0=jF.sqlflow.visualize.type,t.next=t.t0===yg.sql?6:t.t0===yg.job||t.t0===yg.sessionSelectGraph?13:27;break;case 6:if(jF.lineage.visualize.sqltext.value!==jF.sqlflow.visualize.sqltext.value||jF.lineage.visualize.dbvendor!==jF.sqlflow.visualize.dbvendor){t.next=8;break}return t.abrupt("return");case 8:return IF.lineage.visualize.type.set(_g.sql),IF.lineage.visualize.sqltext.value.set(jF.sqlflow.visualize.sqltext.value),IF.lineage.visualize.dbvendor.set(jF.sqlflow.visualize.dbvendor),RU.lineage.visualize({activateTab:!0}),t.abrupt("break",28);case 13:if(i=jF.sqlflow.visualize.job){t.next=20;break}return IF.lineage.visualize.type.set(_g.sql),IF.lineage.visualize.sqltext.value.set(jF.sqlflow.visualize.sqltext.value),IF.lineage.visualize.dbvendor.set(jF.sqlflow.visualize.dbvendor),RU.lineage.visualize({activateTab:!0,select:n.select}),t.abrupt("return");case 20:if((null===(r=jF.lineage.visualize.job)||void 0===r?void 0:r.jobId)!==i.jobId){t.next=22;break}return t.abrupt("return");case 22:return IF.lineage.visualize.type.set(_g.job),IF.lineage.visualize.job.set(i),IF.lineage.visualize.dbvendor.set(i.dbVendor),RU.lineage.visualize({activateTab:!0}),t.abrupt("break",28);case 27:throw new Error("never");case 28:t.next=34;break;case 30:throw t.prev=30,t.t1=t.catch(2),_o.error(t.t1.message),t.t1;case 34:case"end":return t.stop()}}),t,null,[[2,30]])})))()},showCode:function(){return g()(v().mark((function e(){var t,n,r,i,o,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=jF.lineage.context.process,r=null==n?void 0:n.coordinates,i=null===(t=jF.lineage.current)||void 0===t?void 0:t.sessionId,n&&r&&i){e.next=5;break}return e.abrupt("return");case 5:return e.prev=5,IF.lineage.current.code.loading.start(),IF.lineage.current.code.title.set(n.title),IF.lineage.current.code.show(),e.next=11,Sq.getSelectedDbObjectInfo({sessionId:i,coordinates:r});case 11:o=e.sent,a=o.data[0].sql,IF.lineage.current.code.coordinates.set(r),IF.lineage.current.code.sql.set(a),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(5),_o.error(e.t0.message),e.t0;case 21:return e.prev=21,IF.lineage.context.hide(),IF.lineage.current.code.loading.stop(),e.finish(21);case 25:case"end":return e.stop()}}),e,null,[[5,17,21,25]])})))()},saveAsPNG:function(){var e,t=null===(e=jF.lineage.current)||void 0===e?void 0:e.dbvendor;if(RF.lineage.canvas&&t)try{hy(RF.lineage.canvas,"".concat(ay(t),"_").concat(Date.now(),".png"))}catch(e){throw _o.error("Your browser doesn't support this operation. Please use the latest browser version (Chrome 49+,Firefox 45+)."+e.message),e}},shareContext:function(){return g()(v().mark((function e(){var t,n,r,i,o,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null===(t=jF.lineage.current)||void 0===t?void 0:t.request,i=null===(n=jF.lineage.current)||void 0===n?void 0:n.response.sessionId,r){e.next=4;break}return e.abrupt("return");case 4:return r=_a(r,(function(e){!e.sessionId&&i&&(e.sessionId=i),e.share=!0})),e.prev=5,e.next=8,kq.visualizeJobTableLevel(r);case 8:if(200!==(o=e.sent).code){e.next=19;break}if(!(a=o.data.shareId)){e.next=16;break}s=qy.getUrl({shareId:a,tableLevel:!0}),IF.share.link.set(s),e.next=17;break;case 16:throw new Error("failed to get share id");case 17:e.next=20;break;case 19:throw new Error(o.error);case 20:e.next=26;break;case 22:throw e.prev=22,e.t0=e.catch(5),_o.error(e.t0.message||"share failed"),e.t0;case 26:case"end":return e.stop()}}),e,null,[[5,22]])})))()},saveAsJSON:function(){var e,t,n=null===(e=jF.lineage.current)||void 0===e?void 0:e.dbvendor,r=null===(t=jF.lineage.current)||void 0===t?void 0:t.response;r&&n&&dy(r,"".concat(ay(n),"_").concat(Date.now(),".json"))},map:{update:function(){var e,t,n,r,i=((null===(e=RF.lineage.container)||void 0===e?void 0:e.clientWidth)||0)-((null===(t=RF.lineage.scroll)||void 0===t?void 0:t.clientWidth)||0),o=((null===(n=RF.lineage.container)||void 0===n?void 0:n.clientHeight)||0)-((null===(r=RF.lineage.scroll)||void 0===r?void 0:r.clientHeight)||0);RF.lineage.map&&(RF.lineage.map.style.right=i+"px",RF.lineage.map.style.bottom=o+"px")},util:{hasScrollbar:function(){var e=RF.lineage.scroll;return!!e&&(e.clientWidth!==e.scrollWidth||e.clientHeight!==e.scrollHeight)},getPreviewRatio:function(){var e=RF.lineage.scroll,t=RF.lineage.canvas;if(!e||!t)return 0;if(RU.lineage.map.util.hasScrollbar()){var n=ly(Qg.lineage.map.width,e.scrollWidth);return n*cy(ly(Qg.lineage.map.height,e.scrollHeight*n),0,1)}var r=ly(Qg.lineage.map.width,t.clientWidth);return r*cy(ly(Qg.lineage.map.height,t.clientHeight*r),0,1)},getViewRatio:function(){var e=RF.lineage.scroll;return e?{x:ly(e.clientWidth,e.scrollWidth),y:ly(e.clientHeight,e.scrollHeight)}:{x:0,y:0}},getCanvasScrollRatio:function(){var e=RF.lineage.scroll;return e?{x:ly(e.scrollLeft,e.scrollWidth),y:ly(e.scrollTop,e.scrollHeight)}:{x:0,y:0}},getCanvasScrollMaxRatio:function(){var e=RF.lineage.scroll;return e?{x:ly(e.scrollWidth-e.clientWidth,e.scrollWidth),y:ly(e.scrollHeight-e.clientHeight,e.scrollHeight)}:{x:0,y:0}},getPreviewSize:function(){var e=RF.lineage.canvas;if(!e)return{width:0,height:0};var t=RU.lineage.map.util.getPreviewRatio();return{width:e.clientWidth*t,height:e.clientHeight*t}},getViewSize:function(){var e=RU.lineage.map.util.getPreviewSize(),t=RU.lineage.map.util.getViewRatio();return{width:cy(e.width*t.x,0,Qg.lineage.map.width),height:cy(e.height*t.y,0,Qg.lineage.map.height)}}}},preview:{update:function(){var e=RU.lineage.map.util.getPreviewRatio();RF.lineage.preview&&(RF.lineage.preview.style.transform="scale(".concat(e,")"))}},view:{update:function(){var e=RF.lineage.view;if(e){var t=RU.lineage.map.util.getViewSize(),n=RU.lineage.map.util.getPreviewSize(),r=RU.lineage.map.util.getCanvasScrollRatio();e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.top="".concat(n.height*r.y,"px"),e.style.left="".concat(n.width*r.x,"px")}},subscribe:function(e){var t;null===(t=Iq.drag)||void 0===t||t.unsubscribe();var n=zz(window,"mouseup"),r=zz(document.body,"mousemove"),i=zz(e,"mousedown");Iq.drag=i.pipe(Dq((function(t){RU.body.select.disable(),e.classList.add("moving"),n.pipe(Hz(1)).subscribe((function(){RU.body.select.enable(),e.classList.remove("moving")}));var i=e.offsetTop,o=e.offsetLeft;return r.pipe(Nq(n),Sz((function(n){var r=RF.lineage.scroll;if(r){var a=RU.lineage.map.util.getPreviewSize(),s=RU.lineage.map.util.getCanvasScrollMaxRatio(),l=n.clientX-t.clientX,c=n.clientY-t.clientY,u=cy(i+c,0,a.height*s.y),d=cy(o+l,0,a.width*s.x);e.style.top=u+"px",e.style.left=d+"px";var h=u/a.height,f=d/a.width;r.scrollTop=r.scrollHeight*h,r.scrollLeft=r.scrollWidth*f}})))}))).subscribe()}},context:{show:function(e){var t=e.event,n=e.from,r=e.process,i=-1e3,o=-1e3,a=RF.lineage.scroll;"blank"===n&&(i=t.clientX-((null==a?void 0:a.getBoundingClientRect().left)||0)+((null==a?void 0:a.scrollLeft)||0),o=t.clientY-((null==a?void 0:a.getBoundingClientRect().top)||0)+((null==a?void 0:a.scrollTop)||0)),r?IF.lineage.context.process.set(r):IF.lineage.context.process.clear(),IF.lineage.context.show({left:i,top:o}),zz(window,"click").pipe(Hz(1)).subscribe((function(){IF.lineage.context.hide(),IF.lineage.context.process.clear()}))}},locate:function(e){var t=RF.lineage.scroll;e&&e.visible&&t&&(t.scrollTop=e.top.calculate-t.clientHeight/2,t.scrollLeft=e.left.calculate-t.clientWidth/2,IF.lineage.current.locate.graphId.set(e.id))},unLocate:function(){IF.lineage.current.locate.clear()},reLocate:function(){var e,t,n,r=ky(null===(e=jF.lineage.current)||void 0===e?void 0:e.graph).findById(null===(t=jF.lineage.current)||void 0===t||null===(n=t.locate)||void 0===n?void 0:n.graphId);RU.lineage.locate(r)},locateByNode:function(e){var t,n=Dy.node.getGraphId({tree:jF.tree,node:e}),r=ky(null===(t=jF.lineage.current)||void 0===t?void 0:t.graph).findById(n);RU.lineage.locate(r)},locateBySelect:function(e){var t,n=ky(null===(t=jF.lineage.current)||void 0===t?void 0:t.graph).findById(null==e?void 0:e.graphId);RU.lineage.locate(n)},scrollToDropdownMenu:function(){var e=RF.lineage.scroll;e&&(e.scrollTop=0,e.scrollLeft=0)},setting:{allTablesInFromClauseIncludedInTableLevelLineage:{set:function(e){IF.lineage.visualize.setting.allTablesInFromClauseIncludedInTableLevelLineage.set(e);var t=jF.lineage.visualize.mode,n=jF.lineage.visualize.job;t===wg.query?RU.lineage.visualizeSQL():n&&t===wg.job&&RU.lineage.visualizeJob(n)}}}},Rq={logout:function(){IF.user.logout()},dataflow:{set:function(e){!1!==e||!1!==jF.setting.impact?IF.setting.dataflow.set(e):_o.info(dm.atLeastOne)}},impact:{set:function(e){!1!==e||!1!==jF.setting.dataflow?IF.setting.impact.set(e):_o.info(dm.atLeastOne)}},ignoreRecordSet:{set:function(e){IF.setting.ignoreRecordSet.set(e)}},ignoreFunction:{set:function(e){IF.setting.ignoreFunction.set(e)}},defaultDistance:{set:function(e){IF.setting.defaultDistance.set(e)}}},Fq=__webpack_require__(72023),zq={generate:function(){return g()(v().mark((function e(){var t,n,r,i,o,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,IF.share.loading.start(),t=jF.license.vendor.current,n={sqltext:jF.setting.sqltext||"",dbvendor:oy(t),showRelationType:ry({dataflow:jF.setting.dataflow,impact:jF.setting.impact,isJoin:jF.setting.isJoin})},r=(0,Fq.sha256)(JSON.stringify(n)),e.next=7,Cq.checkExistence(r);case 7:return i=e.sent,o={permalinkId:i.permalinkId,permalinkData:n},e.next=11,Cq.createPermalink(o);case 11:(a=e.sent).permalinkId&&IF.share.url.set(ny("/p/"+a.permalinkId)),e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(0),_o.error(e.t0.message),e.t0;case 19:return e.prev=19,IF.share.loading.stop(),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,15,19,22]])})))()}},Yq=__webpack_require__(6479),Bq=__webpack_require__.n(Yq),Hq=__webpack_require__(55733),qq=__webpack_require__.n(Hq),Uq=__webpack_require__(1818),Vq=(Pq={type:"empty"},Pq.name,["database","schema","table","column","view"]),Wq=["url"];function Gq(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 $q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gq(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gq(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kq={drag:null},Jq={visualize:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,y,b,w,_,x,E,C,k,S,T,M,O,L,A,D,N,P,I,j,R,F,z,Y,B,H,q,U,V,W,G,$,K,J,X,Z,Q,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,he,fe,pe,ge,me,ve,ye,be,we,_e,xe,Ee,Ce,ke,Se,Te,Me,Oe,Le,Ae,De,Ne,Pe,Ie,je,Re,Fe,ze,Ye,Be,He,qe,Ue,Ve,We,Ge,$e,Ke,Je,Xe,Ze,Qe,et,tt,nt,rt,it,ot,at,st,lt,ct;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e&&e.newSession&&(Xp||IF.setting.syncToSQLFlow(),IF.sqlflow.visualize.loadSetting.set(!1),IF.tree.search.word.set(""),jF.sqlflow.visualize.type===yg.job&&IF.sqlflow.visualize.setting.ignoreRecordSet.set(!0)),jF.sqlflow.visualize.type!==yg.sql){t.next=7;break}if(jF.sqlflow.visualize.loadSetting||Xp){t.next=7;break}return t.next=5,Tq.getUserSetting(jF.user.id,"querymode");case 5:200===(n=t.sent).code&&(r=n.data,IF.sqlflow.visualize.setting.ignoreFunction.set(r.ignoreFunction),IF.sqlflow.visualize.setting.dataflow.set(r.dataflow),IF.sqlflow.visualize.setting.dataflowOfAggregateFunction.set(r.dataflowOfAggregateFunction),IF.sqlflow.visualize.setting.ignoreRecordSet.set(r.ignoreRecordSet),IF.sqlflow.visualize.setting.impact.set(r.impact),IF.sqlflow.visualize.setting.showTransform.set(r.showTransform),IF.sqlflow.visualize.setting.showConstant.set(r.showConstant),IF.sqlflow.visualize.loadSetting.set(!0));case 7:i=jF.sqlflow.visualize,t.prev=8,IF.tab.current.set(xg.sqlflow),IF.loading.sqlflow.spinning.start(),t.t0=i.type,t.next=t.t0===yg.sql?14:t.t0===yg.job?25:t.t0===yg.json?66:t.t0===yg.sessionSelectGraph?75:t.t0===yg.widgetSelectGraph?120:t.t0===yg.sessionSelectLeftMost?145:t.t0===yg.displayUserLatestJobLeftMostTable?184:t.t0===yg.displayMetadataQueryGraph?217:t.t0===yg.sessionSelectStreamByStep?258:t.t0===yg.sessionSelectStream?309:361;break;case 14:return a={sqltext:i.sqltext.value,dbvendor:oy(jF.license.vendor.current),showRelationType:ry({dataflow:i.setting.dataflow,impact:i.setting.impact,isJoin:i.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:i.setting.dataflowOfAggregateFunction,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,showConstantTable:i.setting.showConstant,showTransform:i.setting.showTransform,jobId:null===(o=jF.sqlflow.visualize.job)||void 0===o?void 0:o.jobId},t.next=17,Sq.graph(a);case 17:if(200===(s=t.sent).code){t.next=20;break}throw new Error(s.error||s.message||"view sql lineage fail.");case 20:return l=Oy.init({response:s,request:a,visualize:i}),IF.sqlflow.current.set(l),RU.graph.ensureLeftTopGraphVisible(),IF.explorer.init(l),t.abrupt("break",364);case 25:if(!i.job){t.next=64;break}return t.next=28,Eq.updateUserJobGraphCache(i.job.jobId);case 28:if(200!==(c=t.sent).code){t.next=61;break}if(p={sessionId:c.data.sessionId,dbvendor:i.job.dbVendor,showRelationType:pg.fdd,treatArgumentsInCountFunctionAsDirectDataflow:i.setting.dataflowOfAggregateFunction,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,showConstantTable:i.setting.showConstant,jobId:null===(u=jF.sqlflow.visualize.job)||void 0===u?void 0:u.jobId,columnLevel:!0},(null===(d=i.job)||void 0===d?void 0:d.lineageType)!==Tg.leftMostTable){t.next=37;break}return t.next=34,Sq.leftMostSourceTableGraph(p);case 34:g=t.sent,t.next=52;break;case 37:if((null===(h=i.job)||void 0===h?void 0:h.lineageType)!==Tg.upStream){t.next=43;break}return t.next=40,Sq.leftMostSourceTableGraph(p);case 40:g=t.sent,t.next=52;break;case 43:if((null===(f=i.job)||void 0===f?void 0:f.lineageType)!==Tg.downStream){t.next=49;break}return t.next=46,Sq.leftMostSourceTableGraph(p);case 46:g=t.sent,t.next=52;break;case 49:return t.next=51,Sq.selectGraph(p);case 51:g=t.sent;case 52:if(200===g.code){t.next=54;break}throw new Error(g.error||g.message||"view job lineage fail.");case 54:m=Oy.init({response:g,request:p,visualize:i}),IF.sqlflow.current.set(m),RU.graph.ensureLeftTopGraphVisible(),IF.explorer.init(m),IF.toolbar.schema.show(),t.next=62;break;case 61:throw new Error(c.error||"update user job graph cache fail.");case 62:t.next=65;break;case 64:throw new Error("cannot find visualize job");case 65:return t.abrupt("break",364);case 66:if(x=null==e?void 0:e.json){t.next=69;break}throw new Error("json is invalid");case 69:return E={sessionId:x.sessionId,dbvendor:(null===(y=x.data.sqlflow)||void 0===y||null===(b=y.dbobjs.servers)||void 0===b||null===(w=b[0])||void 0===w?void 0:w.dbVendor)||hg.dbvoracle,showRelationType:pg.fdd,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,jobId:null===(_=jF.sqlflow.visualize.job)||void 0===_?void 0:_.jobId},C=Oy.init({response:x,request:E,visualize:i,layout:null==e?void 0:e.layout}),IF.sqlflow.current.set(C),RU.graph.ensureLeftTopGraphVisible(),qy.isShare(x)&&IF.share.info.set(x),t.abrupt("break",364);case 75:if(M=i.select.dbo,O=i.select.columnLevel,L=null===(k=jF.sqlflow.current)||void 0===k?void 0:k.sessionId,A=null===(S=jF.sqlflow.current)||void 0===S?void 0:S.dbvendor,D=null===(T=jF.sqlflow.visualize.job)||void 0===T?void 0:T.jobId,M){t.next=82;break}throw new Error("dbo is invalid");case 82:if(L){t.next=84;break}throw new Error("sessionId is invalid");case 84:if(A){t.next=86;break}throw new Error("dbvendor is invalid");case 86:if(N={sessionId:L,dbvendor:A,showRelationType:i.job?pg.fdd:ry({dataflow:i.setting.dataflow,impact:i.setting.impact,isJoin:i.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:i.setting.dataflowOfAggregateFunction,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,showConstantTable:i.setting.showConstant,database:"DEFAULT"===M.database?void 0:M.database,schema:"DEFAULT"===M.schema?void 0:M.schema,table:M.table,column:M.column,jobId:D,columnLevel:O},P={request:N,setting:i.setting},I=eF()(P),j=jF.sqlflow.cache.sessionId===L?jF.sqlflow.cache.sessionSelectGraph[I]:void 0,t.prev=90,!j){t.next=95;break}return IF.sqlflow.current.set(ZR()(j)),IF.explorer.mode.set({dbo:M,mode:j.mode}),t.abrupt("return");case 95:if(IF.explorer.loading.start({dbo:M}),(null===(R=i.job)||void 0===R?void 0:R.lineageType)!==Tg.leftMostTable){t.next=102;break}return t.next=99,Sq.leftMostSourceTableGraph(N);case 99:F=t.sent,t.next=105;break;case 102:return t.next=104,Sq.selectGraph(N);case 104:F=t.sent;case 105:if(200===F.code){t.next=107;break}throw new Error(F.error||F.message||"select graph of lineage fail.");case 107:z=Oy.init({response:F,request:N,visualize:i}),IF.sqlflow.current.set(z),IF.sqlflow.cache.add({sessionId:L,hashId:I,selectGraph:M,sqlflow:z}),IF.explorer.mode.set({dbo:M,mode:z.mode}),t.next=116;break;case 113:throw t.prev=113,t.t1=t.catch(90),t.t1;case 116:return t.prev=116,IF.explorer.loading.stop(),t.finish(116);case 119:return t.abrupt("break",364);case 120:if(q=i.widget.select,U=null===(Y=jF.sqlflow.current)||void 0===Y?void 0:Y.sessionId,V=null===(B=jF.sqlflow.current)||void 0===B?void 0:B.dbvendor,W=null===(H=jF.sqlflow.visualize.job)||void 0===H?void 0:H.jobId,q){t.next=126;break}throw new Error("dbo is invalid");case 126:if(U){t.next=128;break}throw new Error("sessionId is invalid");case 128:if(V){t.next=130;break}throw new Error("dbvendor is invalid");case 130:return G={sessionId:U,dbvendor:V,showRelationType:i.job?pg.fdd:ry({dataflow:i.setting.dataflow,impact:i.setting.impact,isJoin:i.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:i.setting.dataflowOfAggregateFunction,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,showConstantTable:i.setting.showConstant,database:"DEFAULT"===q.database?void 0:q.database,schema:"DEFAULT"===q.schema?void 0:q.schema,table:q.table,column:q.column,jobId:W,columnLevel:!0},t.prev=131,t.next=134,Sq.selectGraph(G);case 134:if(200===($=t.sent).code){t.next=137;break}throw new Error($.error||$.message||"select graph of lineage fail.");case 137:K=Oy.init({response:$,request:G,visualize:i}),IF.sqlflow.current.set(K),t.next=144;break;case 141:throw t.prev=141,t.t2=t.catch(131),t.t2;case 144:return t.abrupt("break",364);case 145:if(Q=i.selectLeftMost.dbo,ee=i.selectLeftMost.columnLevel,te=null===(J=jF.sqlflow.current)||void 0===J?void 0:J.sessionId,ne=null===(X=jF.sqlflow.current)||void 0===X?void 0:X.dbvendor,re=null===(Z=jF.sqlflow.visualize.job)||void 0===Z?void 0:Z.jobId,Q){t.next=152;break}throw new Error("dbo is invalid");case 152:if(te){t.next=154;break}throw new Error("sessionId is invalid");case 154:if(ne){t.next=156;break}throw new Error("dbvendor is invalid");case 156:if(ie={sessionId:te,dbvendor:ne,showRelationType:i.job?pg.fdd:ry({dataflow:i.setting.dataflow,impact:i.setting.impact,isJoin:i.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:i.setting.dataflowOfAggregateFunction,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,showConstantTable:i.setting.showConstant,tableNamePattern:Oy.dbo.getTableNamePattern(Q),tableColumn:Q.column,jobId:re,columnLevel:ee},oe={request:ie,setting:i.setting},ae=eF()(oe),!(se=jF.sqlflow.cache.sessionId===te?jF.sqlflow.cache.leftMost[ae]:void 0)){t.next=163;break}return IF.sqlflow.current.set(ZR()(se)),t.abrupt("return");case 163:return t.prev=163,IF.explorer.loading.start({dbo:Q}),t.next=167,Sq.leftMostSourceTableGraph(ie);case 167:if(200===(le=t.sent).code){t.next=170;break}throw new Error(le.error||le.message||"select graph of lineage fail.");case 170:ce=Oy.init({response:le,request:ie,visualize:i}),IF.sqlflow.current.set(ce),IF.sqlflow.cache.add({sessionId:te,hashId:ae,selectLeftMost:Q,sqlflow:ce}),IF.explorer.mode.set({dbo:Q,mode:ce.mode}),RU.graph.ensureLeftTopGraphVisible(),t.next=180;break;case 177:throw t.prev=177,t.t3=t.catch(163),t.t3;case 180:return t.prev=180,IF.explorer.loading.stop(),t.finish(180);case 183:return t.abrupt("break",364);case 184:if(ue=i.selectLeftMost_deprecated){t.next=187;break}throw new Error("dbo is invalid");case 187:return de="DEFAULT"===ue.database?void 0:ue.database,he="DEFAULT"===ue.schema?void 0:ue.schema,fe="",void 0!==de&&(fe=fe+de+"."),void 0!==he&&(fe=fe+he+"."),fe+=ue.table,pe={dbvendor:void 0,showRelationType:i.job?pg.fdd:ry({dataflow:i.setting.dataflow,impact:i.setting.impact,isJoin:i.setting.isJoin}),jobId:ue.jobId,dataflowOfAggregateFunction:i.setting.dataflowOfAggregateFunction?"direct":"indirect",ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,tableNamePattern:fe,tableColumn:ue.column},ge={request:pe,setting:i.setting},me=eF()(ge),t.prev=196,IF.tree.lineage.loading.start(ue.nodeId),t.next=200,Sq.latestJobLeftMostTableGraph(pe);case 200:if(200===(ye=t.sent).code){t.next=203;break}throw new Error(ye.error||ye.message||"select graph of lineage fail.");case 203:pe.dbvendor=(null===(ve=ye.data.sqlflow)||void 0===ve?void 0:ve.dbvendor_deprecated)||hg.dbvoracle,be=Oy.init({response:ye,request:pe,visualize:i}),IF.sqlflow.current.set(be),IF.sqlflow.cache.add({sessionId:ye.sessionId,hashId:me,selectLeftMost_deprecated:ue,sqlflow:be}),RU.graph.ensureLeftTopGraphVisible(),t.next=213;break;case 210:throw t.prev=210,t.t4=t.catch(196),t.t4;case 213:return t.prev=213,IF.tree.lineage.loading.stop(),t.finish(213);case 216:return t.abrupt("break",364);case 217:if(Ee=i.select.dbo,Ce=i.select.columnLevel,ke=null===(we=jF.sqlflow.current)||void 0===we?void 0:we.sessionId,Se=null===(_e=jF.sqlflow.current)||void 0===_e?void 0:_e.dbvendor,Te=null===(xe=jF.sqlflow.visualize.job)||void 0===xe?void 0:xe.jobId,Ee){t.next=224;break}throw new Error("dbo is invalid");case 224:if(ke){t.next=226;break}throw new Error("sessionId is invalid");case 226:if(Se){t.next=228;break}throw new Error("dbvendor is invalid");case 228:if(Te){t.next=230;break}throw new Error("jobId is invalid");case 230:if(Me={sessionId:ke,dbvendor:Se,showRelationType:i.job?pg.fdd:ry({dataflow:i.setting.dataflow,impact:i.setting.impact,isJoin:i.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:i.setting.dataflowOfAggregateFunction,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,database:Ee.database,schema:Ee.schema,name:Ee.title,jobId:Te,columnLevel:Ce},Oe={request:Me,setting:i.setting},Le=eF()(Oe),Ae=jF.sqlflow.cache.sessionId===ke?jF.sqlflow.cache.displayMetadataQueryGraph[Le]:void 0,t.prev=234,!Ae){t.next=239;break}return IF.sqlflow.current.set(ZR()(Ae)),IF.explorer.mode.set({dbo:Ee,mode:Ae.mode}),t.abrupt("return");case 239:return IF.explorer.loading.start({dbo:Ee}),t.next=242,Sq.displayMetadataQueryGraph(Me);case 242:if(200===(De=t.sent).code){t.next=245;break}throw new Error(De.error||De.message||"select graph of schema fail.");case 245:Ne=Oy.init({response:De,request:Me,visualize:i,metadataQueryGraph:{requestSessionId:ke}}),IF.sqlflow.current.set(Ne),IF.sqlflow.cache.add({sessionId:ke,hashId:Le,displayMetadataQueryGraph:Ee,sqlflow:Ne}),IF.explorer.mode.set({dbo:Ee,mode:Ne.mode}),t.next=254;break;case 251:throw t.prev=251,t.t5=t.catch(234),t.t5;case 254:return t.prev=254,IF.explorer.loading.stop(),t.finish(254);case 257:return t.abrupt("break",364);case 258:if(Re=i.selectStreamByStep,Fe=null===(Pe=jF.sqlflow.current)||void 0===Pe?void 0:Pe.sessionId,ze=null===(Ie=jF.sqlflow.current)||void 0===Ie?void 0:Ie.dbvendor,Re){t.next=263;break}throw new Error("select object is invalid");case 263:if(Fe){t.next=265;break}throw new Error("sessionId is invalid");case 265:if(ze){t.next=267;break}throw new Error("dbvendor is invalid");case 267:if(Ye=null===(je=jF.sqlflow.visualize.job)||void 0===je?void 0:je.jobId,Be={sessionId:Fe,dbvendor:ze,showRelationType:i.job?pg.fdd:ry({dataflow:i.setting.dataflow,impact:i.setting.impact,isJoin:i.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:i.setting.dataflowOfAggregateFunction,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,tableNamePattern:Oy.dbo.getTableNamePattern(Re.dbo),tableColumn:"column"===Re.dbo.type?Re.dbo.column:void 0,jobId:Ye,distance:1},He={request:Be,setting:i.setting,direction:Re.direction},qe=eF()(He),Ue=jF.sqlflow.cache.sessionId===Fe?jF.sqlflow.cache.streamByStep[qe]:void 0,Ve=Og[Re.direction],!Ue){t.next=277;break}return IF.sqlflow.current.set(ZR()(Ue)),RU.sqlflow.stream.locateGraph({direction:Ve}),t.abrupt("return");case 277:if(t.prev=277,IF.explorer.loading.start({dbo:Re.dbo}),Re.direction!==Og.up){t.next=285;break}return t.next=282,Sq.upStreamGraph(Be);case 282:We=t.sent,t.next=292;break;case 285:if(Re.direction!==Og.down){t.next=291;break}return t.next=288,Sq.downStreamGraph(Be);case 288:We=t.sent,t.next=292;break;case 291:throw new Error("never");case 292:if(200===We.code){t.next=294;break}throw new Error(We.error||We.message||"select graph of lineage fail.");case 294:Ge=Oy.stream.init({response:We,request:Be,visualize:i}),IF.sqlflow.current.set(Ge),IF.sqlflow.stream.add({response:We,selectStream:Re,init:!0,dbvendor:i.dbvendor}),IF.sqlflow.cache.add({sessionId:Fe,hashId:qe,selectStreamByStep:Re,sqlflow:jF.sqlflow.current}),IF.explorer.mode.set({dbo:Re.dbo,mode:Ge.mode}),RU.sqlflow.stream.locateGraph({direction:Ve}),t.next=305;break;case 302:throw t.prev=302,t.t6=t.catch(277),t.t6;case 305:return t.prev=305,IF.explorer.loading.stop(),t.finish(305);case 308:return t.abrupt("break",364);case 309:if(Ze=null===($e=i.selectStream)||void 0===$e?void 0:$e.dbo,Qe=i.selectStream,et=null===(Ke=jF.sqlflow.current)||void 0===Ke?void 0:Ke.sessionId,tt=null===(Je=jF.sqlflow.current)||void 0===Je?void 0:Je.dbvendor,Ze){t.next=315;break}throw new Error("dbo is invalid");case 315:if(Qe){t.next=317;break}throw new Error("selectStream is invalid");case 317:if(et){t.next=319;break}throw new Error("sessionId is invalid");case 319:if(tt){t.next=321;break}throw new Error("dbvendor is invalid");case 321:if(nt=i.setting.defaultDistance,rt=null===(Xe=jF.sqlflow.visualize.job)||void 0===Xe?void 0:Xe.jobId,it={sessionId:et,dbvendor:tt,showRelationType:i.job?pg.fdd:ry({dataflow:i.setting.dataflow,impact:i.setting.impact,isJoin:i.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:i.setting.dataflowOfAggregateFunction,ignoreRecordSet:i.setting.ignoreRecordSet,ignoreFunction:i.setting.ignoreFunction,tableNamePattern:Oy.dbo.getTableNamePattern(Ze),tableColumn:Ze.column,jobId:rt,distance:nt},ot={request:it,setting:i.setting,direction:Qe.direction},at=eF()(ot),!(st=jF.sqlflow.cache.sessionId===et?jF.sqlflow.cache.stream[at]:void 0)){t.next=330;break}return IF.sqlflow.current.set(ZR()(st)),t.abrupt("return");case 330:if(t.prev=330,IF.explorer.loading.start({dbo:Ze}),Qe.direction!==Og.up){t.next=338;break}return t.next=335,Sq.upStreamGraph(it);case 335:lt=t.sent,t.next=345;break;case 338:if(Qe.direction!==Og.down){t.next=344;break}return t.next=341,Sq.downStreamGraph(it);case 341:lt=t.sent,t.next=345;break;case 344:throw new Error("never");case 345:if(200===lt.code){t.next=347;break}throw new Error(lt.error||lt.message||"select graph of lineage fail.");case 347:ct=Oy.init({response:lt,request:it,visualize:i}),IF.sqlflow.current.set(ct),IF.sqlflow.cache.add({sessionId:et,hashId:at,selectStream:Qe,sqlflow:ct}),IF.explorer.mode.set({dbo:Ze,mode:ct.mode}),RU.graph.ensureLeftTopGraphVisible(),t.next=357;break;case 354:throw t.prev=354,t.t7=t.catch(330),t.t7;case 357:return t.prev=357,IF.explorer.loading.stop(),t.finish(357);case 360:return t.abrupt("break",364);case 361:throw i.type,new Error("never");case 364:t.next=371;break;case 366:throw t.prev=366,t.t8=t.catch(8),_o.error(t.t8.message),IF.sqlflow.current.setEmptyResultOnError(),t.t8;case 371:return t.prev=371,IF.loading.sqlflow.spinning.stop(),t.finish(371);case 374:case"end":return t.stop()}}),t,null,[[8,366,371,374],[90,113,116,119],[131,141],[163,177,180,183],[196,210,213,216],[234,251,254,257],[277,302,305,308],[330,354,357,360]])})))()},visualizeSQL:function(){return g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return IF.setting.isJoin.set(!1),IF.job.current.clear(),IF.sqlflow.visualize.type.set(yg.sql),IF.sqlflow.visualize.isJob.set(!1),IF.sqlflow.visualize.mode.set(wg.query),IF.sqlflow.visualize.sqltext.value.set(jF.setting.sqltext),IF.sqlflow.visualize.dbvendor.set(oy(jF.license.vendor.current)),e.next=9,RU.sqlflow.visualize({newSession:!0});case 9:case"end":return e.stop()}}),e)})))()},visualizeJoin:function(){return g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return IF.setting.isJoin.set(!0),IF.job.current.clear(),IF.sqlflow.visualize.type.set(yg.sql),IF.sqlflow.visualize.isJob.set(!1),IF.sqlflow.visualize.sqltext.value.set(jF.setting.sqltext),IF.sqlflow.visualize.dbvendor.set(oy(jF.license.vendor.current)),e.next=8,RU.sqlflow.visualize({newSession:!0});case 8:case"end":return e.stop()}}),e)})))()},visualizeJob:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.setting.isJoin.set(!1),IF.job.current.set(e),IF.sqlflow.visualize.type.set(yg.job),IF.sqlflow.visualize.isJob.set(!0),IF.sqlflow.visualize.mode.set(wg.job),IF.sqlflow.visualize.job.set(e),IF.sqlflow.visualize.dbvendor.set(e.dbVendor),IF.sqlflow.visualize.select.clear(),t.next=10,RU.sqlflow.visualize({newSession:!0});case 10:case"end":return t.stop()}}),t)})))()},visualizeJSON:function(e,t){return g()(v().mark((function n(){return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return IF.sqlflow.visualize.type.set(yg.json),IF.sqlflow.visualize.isJob.set(!0),e.jobId&&IF.sqlflow.visualize.jobId.set(e.jobId),e.jobDetail&&IF.sqlflow.visualize.jobDetail.set(e.jobDetail),null!=t&&t.sqltext&&(IF.sqlflow.visualize.sqltext.value.set(null==t?void 0:t.sqltext),IF.widget.setSqltext()),n.next=7,RU.sqlflow.visualize({newSession:!0,json:e,layout:null==t?void 0:t.layout});case 7:case"end":return n.stop()}}),n)})))()},visualizeURL:function(e,t){return g()(v().mark((function n(){var r;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return IF.loading.json.spinning.start(),n.next=3,fetch(e).then((function(e){return e.json()}));case 3:return r=n.sent,IF.loading.json.spinning.stop(),n.next=7,Jq.visualizeJSON(r,t);case 7:case"end":return n.stop()}}),n)})))()},visualizeFreestyle:function(e){return g()(v().mark((function t(){var n,r,i;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,IF.loading.json.spinning.start(),r=e.url,i=Bq()(e,Wq),t.next=5,fetch(r,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify($q({},i))}).then((function(e){return e.json()}));case 5:n=t.sent,t.next=12;break;case 8:throw t.prev=8,t.t0=t.catch(0),_o.error(t.t0.message),t.t0;case 12:return t.prev=12,IF.loading.json.spinning.stop(),t.finish(12);case 15:if(200===n.code){t.next=18;break}return _o.error(n.error||n.message),t.abrupt("return");case 18:return t.next=20,Jq.visualizeJSON(n);case 20:case"end":return t.stop()}}),t,null,[[0,8,12,15]])})))()},submitPersistJob:function(e,t){return g()(v().mark((function n(){var r,i;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null!=t.userId&&null!=t.userId||(t.userId=ng),r=null,r="userId="+t.userId+"&jobName="+t.jobName,n.next=5,fetch(e+"/gspLive_backend/sqlflow/job/displayUserJobSummary",{headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST",body:r}).then((function(e){return e.json()}));case 5:return i=n.sent,console.log("displayUserJobSummary ",i),200!=i.code?t.firstSubmit=!0:t.firstSubmit=!1,r=null,Object.keys(t).forEach((function(e){var n=e+"="+t[e];r=null==r?n:r+"&"+n})),console.log("submitPersistJob params ",r),n.next=13,fetch(e+"/gspLive_backend/sqlflow/job/submitPersistJob",{headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},method:"POST",body:r}).then((function(e){return e.json()}));case 13:i=n.sent,console.log("submitPersistJob ",i);case 15:case"end":return n.stop()}}),n)})))()},selectGraph_deprecated:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.sessionSelectGraph),IF.sqlflow.visualize.select_deprecated.set(null==e?void 0:e.select),t.next=4,RU.sqlflow.visualize();case 4:case"end":return t.stop()}}),t)})))()},selectGraph:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.sessionSelectGraph),IF.sqlflow.visualize.select.set(e),t.next=4,RU.sqlflow.visualize();case 4:case"end":return t.stop()}}),t)})))()},widgetSelectGraph:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.widgetSelectGraph),IF.sqlflow.visualize.widget.select.set(e),t.next=4,RU.sqlflow.visualize();case 4:case"end":return t.stop()}}),t)})))()},displayMetadataQueryGraph:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.displayMetadataQueryGraph),IF.sqlflow.visualize.select.set(e),t.next=4,RU.sqlflow.visualize();case 4:case"end":return t.stop()}}),t)})))()},visualizeLastestJob:function(){return g()(v().mark((function e(){var t,n,r,i,o,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return IF.sqlflow.visualize.type.set(yg.job),IF.sqlflow.visualize.isJob.set(!0),e.prev=2,IF.loading.sqlflow.spinning.start(),IF.toolbar.job.show(),e.next=7,Sq.displayUserLatestJobGraph();case 7:if(200===(r=e.sent).code){e.next=10;break}throw new Error(r.error||r.message||"view lastest job lineage fail.");case 10:IF.sqlflow.visualize.job.set(r.job),i={sessionId:r.sessionId,dbvendor:(null===(t=r.data.sqlflow)||void 0===t?void 0:t.dbvendor_deprecated)||hg.dbvoracle,showRelationType:pg.fdd,jobId:null===(n=jF.sqlflow.visualize.job)||void 0===n?void 0:n.jobId},o=Oy.init({response:r,request:i,visualize:jF.sqlflow.visualize}),IF.sqlflow.current.set(o),a=Dy.getLineage(o),IF.tree.lineage.set(a),e.next=22;break;case 18:throw e.prev=18,e.t0=e.catch(2),_o.error(e.t0.message),e.t0;case 22:return e.prev=22,IF.loading.sqlflow.spinning.stop(),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[2,18,22,25]])})))()},visualizeDetail:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,e.t0=jF.lineage.visualize.type,e.next=e.t0===_g.sql?4:e.t0===_g.job?12:23;break;case 4:return IF.setting.isJoin.set(!1),IF.job.current.clear(),IF.sqlflow.visualize.type.set(yg.sql),IF.sqlflow.visualize.isJob.set(!1),IF.sqlflow.visualize.sqltext.value.set(jF.lineage.visualize.sqltext.value),IF.sqlflow.visualize.dbvendor.set(jF.lineage.visualize.dbvendor),RU.sqlflow.visualize({newSession:!0}),e.abrupt("break",24);case 12:if(IF.setting.isJoin.set(!1),IF.job.current.clear(),t=jF.lineage.visualize.job){e.next=17;break}throw new Error("invalid job object");case 17:return IF.sqlflow.visualize.type.set(yg.job),IF.sqlflow.visualize.isJob.set(!0),IF.sqlflow.visualize.job.set(t),IF.sqlflow.visualize.dbvendor.set(t.dbVendor),RU.sqlflow.visualize({newSession:!0}),e.abrupt("break",24);case 23:throw new Error("never");case 24:e.next=30;break;case 26:throw e.prev=26,e.t1=e.catch(0),_o.error(e.t1.message),e.t1;case 30:case"end":return e.stop()}}),e,null,[[0,26]])})))()},visualizePermanentLink:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.sql),t.prev=1,IF.loading.sqlflow.spinning.start(),t.next=5,Cq.getPermalinkData(e);case 5:if(200!==(n=t.sent).code){t.next=22;break}if(200===n.response.code||null!=n.response.data&&null!=n.response.data){t.next=9;break}throw new Error(n.response.message||"view permanent link fail.");case 9:r=n.request.dbvendor,i=n.request.sqltext,IF.license.vendor.current.set(ay(r)),IF.sqlflow.visualize.sqltext.value.set(i),IF.sqlflow.visualize.dbvendor.set(r),RU.editor.setValue(i),o={sqltext:i,dbvendor:r,showRelationType:ry(iy(n.request.showRelationType))},a=Oy.init({response:n.response,request:o,visualize:jF.sqlflow.visualize}),IF.sqlflow.current.set(a),s=Dy.getLineage(a),IF.tree.lineage.set(s),t.next=23;break;case 22:throw new Error(n.error||"get data of permanent link fail.");case 23:t.next=29;break;case 25:throw t.prev=25,t.t0=t.catch(1),_o.error(t.t0.message),t.t0;case 29:return t.prev=29,IF.loading.sqlflow.spinning.stop(),t.finish(29);case 32:case"end":return t.stop()}}),t,null,[[1,25,29,32]])})))()},visualizeNode:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.node,o=e.expandParentNode,a=null===(n=jF.tree.lineage)||void 0===n?void 0:n.loadingId,s=!Vq.includes(null==i?void 0:i.type),i&&!a&&!s){t.next=5;break}return t.abrupt("return");case 5:return o&&(ky(null===(l=jF.tree.lineage)||void 0===l?void 0:l.nodes).findByIds(i.parentIds).forEach((function(e){IF.tree.lineage.nodes.toggle({node:e,expand:!0})})),IF.tree.lineage.nodes.select.set(i)),null!==(r=jF.tree.lineage)&&void 0!==r&&r.dropdown.list.map[i.dropdownId]&&IF.tree.lineage.dropdown.id.set(i.dropdownId),c=Dy.util.getSelectOfNode({lineage:jF.tree.lineage,node:i}),t.next=10,RU.sqlflow.selectGraph_deprecated({select:c});case 10:case"end":return t.stop()}}),t)})))()},visualizeLeftMost:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.sessionSelectLeftMost),IF.sqlflow.visualize.selectLeftMost.set(e),t.next=4,RU.sqlflow.visualize();case 4:case"end":return t.stop()}}),t)})))()},visualizeJobLeftMost:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.displayUserLatestJobLeftMostTable),IF.sqlflow.visualize.selectLeftMost_deprecated.set(e),t.next=4,RU.sqlflow.visualize();case 4:case"end":return t.stop()}}),t)})))()},visualizeStreamByStep:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.sessionSelectStreamByStep),IF.sqlflow.visualize.selectStreamByStep.set(e),t.next=4,RU.sqlflow.visualize();case 4:case"end":return t.stop()}}),t)})))()},visualizeStream:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.sqlflow.visualize.type.set(yg.sessionSelectStream),IF.sqlflow.visualize.selectStream.set(e),t.next=4,RU.sqlflow.visualize();case 4:case"end":return t.stop()}}),t)})))()},loadColumns:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.dbo,r=jF.explorer.loadingId,n&&!r){t.next=4;break}return t.abrupt("return");case 4:if(t.prev=4,s=null===(i=jF.sqlflow.current)||void 0===i?void 0:i.sessionId,l=null===(o=jF.sqlflow.current)||void 0===o?void 0:o.dbvendor,s){t.next=9;break}throw new Error("sessionId is invalid");case 9:if(l){t.next=11;break}throw new Error("dbvendor is invalid");case 11:return IF.explorer.loading.start({dbo:n}),t.next=14,Sq.listTableColumns({sessionId:s,dbvendor:l,database:"DEFAULT"===n.database?void 0:n.database,schema:"DEFAULT"===n.schema?void 0:n.schema,table:n.table,jobId:null===(a=jF.sqlflow.visualize.job)||void 0===a?void 0:a.jobId});case 14:if(200!==(c=t.sent).code){t.next=19;break}IF.explorer.columns.insert({dbo:n,columns:c.data}),t.next=20;break;case 19:throw new Error(c.error||"load columns failed.");case 20:t.next=26;break;case 22:throw t.prev=22,t.t0=t.catch(4),_o.error(t.t0.message),t.t0;case 26:return t.prev=26,IF.explorer.loading.stop(),t.finish(26);case 29:case"end":return t.stop()}}),t,null,[[4,22,26,29]])})))()},loadStream:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c,u,d;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.graph,r=jF.sqlflow.visualize.selectStreamByStep){t.next=4;break}return t.abrupt("return");case 4:if(!n.more.loaded){t.next=7;break}return IF.sqlflow.stream.toggle({graph:n,selectStream:r}),t.abrupt("return");case 7:if(t.prev=7,o=jF.sqlflow.current,a=jF.sqlflow.visualize,s=a.job,o){t.next=13;break}throw new Error("invalid sqlflow");case 13:if(a){t.next=15;break}throw new Error("invalid visualize setting");case 15:if(s){t.next=17;break}throw new Error("invalid job setting");case 17:if(l="column"===r.dbo.type?ky(null===(i=jF.sqlflow.current)||void 0===i?void 0:i.field).findByIds(n.fields).map((function(e){return e.title})).join("|"):void 0,c={sessionId:s.sessionId,dbvendor:a.dbvendor,showRelationType:a.job?pg.fdd:ry({dataflow:a.setting.dataflow,impact:a.setting.impact,isJoin:a.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:a.setting.dataflowOfAggregateFunction,ignoreRecordSet:a.setting.ignoreRecordSet,ignoreFunction:a.setting.ignoreFunction,tableNamePattern:n.title,tableColumn:l,jobId:s.jobId,distance:1},u=RU.sqlflow.stream.getGraphAbsoluteOffsetToScroll(n),IF.loading.sqlflow.spinning.start(),r.direction!==Og.up){t.next=27;break}return t.next=24,Sq.upStreamGraph(c);case 24:case 30:d=t.sent,t.next=34;break;case 27:if(r.direction!==Og.down){t.next=33;break}return t.next=30,Sq.downStreamGraph(c);case 33:throw new Error("never");case 34:IF.sqlflow.stream.add({response:d,selectStream:r,graph:n,dbvendor:a.dbvendor}),IF.sqlflow.graph.more.loaded.set({graph:n}),RU.sqlflow.stream.scrollToGraphWithOffset({graph:n,offset:u}),t.next=43;break;case 39:throw t.prev=39,t.t0=t.catch(7),_o.error(t.t0.message),t.t0;case 43:return t.prev=43,IF.loading.sqlflow.spinning.stop(),t.finish(43);case 46:case"end":return t.stop()}}),t,null,[[7,39,43,46]])})))()},getSelectedDbObjectInfo:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.sessionId,i=e.coordinates,o=e.title,null===(n=jF.sqlflow.current)||void 0===n||!n.code.loading){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,IF.sqlflow.current.code.loading.start(),IF.sqlflow.current.code.title.set(o),IF.sqlflow.current.code.show(),t.next=9,Sq.getSelectedDbObjectInfo({sessionId:r,coordinates:i});case 9:if(200!==(a=t.sent).code){t.next=15;break}s=Oy.field.code.getJob({response:a}),IF.sqlflow.current.code.sql.set(s),t.next=16;break;case 15:throw new Error(a.message||"get selected dbo object info fail");case 16:t.next=22;break;case 18:throw t.prev=18,t.t0=t.catch(3),_o.error(t.t0.message),t.t0;case 22:return t.prev=22,IF.sqlflow.current.code.loading.stop(),t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[3,18,22,25]])})))()},shareDbo:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,y;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.dbo,s=e.viaEmail,l=jF.sqlflow.visualize,c=Boolean(a.column),u=null===(n=jF.sqlflow.current)||void 0===n?void 0:n.sessionId,d=null===(r=jF.sqlflow.current)||void 0===r?void 0:r.dbvendor,h=null===(i=jF.sqlflow.visualize.job)||void 0===i?void 0:i.jobId,f=!1===(null===(o=jF.sqlflow.visualize.job)||void 0===o?void 0:o.persist),a){t.next=9;break}throw new Error("dbo is invalid");case 9:if(u){t.next=11;break}throw new Error("sessionId is invalid");case 11:if(d){t.next=13;break}throw new Error("dbvendor is invalid");case 13:if(p={sessionId:u,dbvendor:d,showRelationType:l.job?pg.fdd:ry({dataflow:l.setting.dataflow,impact:l.setting.impact,isJoin:l.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:l.setting.dataflowOfAggregateFunction,ignoreRecordSet:l.setting.ignoreRecordSet,ignoreFunction:l.setting.ignoreFunction,showConstantTable:l.setting.showConstant,database:"DEFAULT"===a.database?void 0:a.database,schema:"DEFAULT"===a.schema?void 0:a.schema,table:a.table,column:a.column,jobId:h,columnLevel:c,share:!0},t.prev=14,IF.explorer.loading.start({dbo:a}),"package"!==a.type&&"procedure"!==a.type&&"function"!==a.type){t.next=32;break}if(delete p.columnLevel,delete p.column,p.name=a.title,!f){t.next=27;break}return p.coordinates=JSON.stringify(a.coordinates),t.next=24,Sq.displayProcedureGraph(p);case 24:g=t.sent,t.next=30;break;case 27:return t.next=29,Sq.displayMetadataQueryGraph(p);case 29:g=t.sent;case 30:t.next=35;break;case 32:return t.next=34,Sq.selectGraph(p);case 34:g=t.sent;case 35:if(200!==g.code){t.next=46;break}if(!(m=g.data.shareId)){t.next=44;break}if(y=qy.getUrl({shareId:m}),!s){t.next=43;break}return t.abrupt("return",y);case 43:IF.share.link.set(y);case 44:t.next=47;break;case 46:throw new Error(g.error);case 47:t.next=54;break;case 49:throw t.prev=49,t.t0=t.catch(14),s||_o.error(t.t0.message||"share failed"),_o.error(t.t0.message||"share failed"),t.t0;case 54:return t.prev=54,IF.explorer.loading.stop(),t.finish(54);case 57:return t.abrupt("return","");case 58:case"end":return t.stop()}}),t,null,[[14,49,54,57]])})))()},shareDboViaEmail:function(){return g()(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=jF.share.email.dbo){e.next=4;break}throw new Error("invalid dbo");case 4:return IF.share.email.loading.start(),e.next=7,RU.sqlflow.shareDbo({dbo:t,viaEmail:!0});case 7:return n=e.sent,e.next=10,RU.sqlflow.sendShareEmail(n);case 10:e.next=16;break;case 12:throw e.prev=12,e.t0=e.catch(0),_o.error(e.t0.message||e.t0||"share failed"),e.t0;case 16:return e.prev=16,IF.share.email.loading.stop(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,12,16,19]])})))()},shareContext:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c,u;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=null===(n=jF.sqlflow.current)||void 0===n?void 0:n.request,o=null===(r=jF.sqlflow.current)||void 0===r?void 0:r.response.sessionId,a=jF.sqlflow.visualize.type,s=jF.sqlflow.visualize.selectStream,i){t.next=6;break}return t.abrupt("return");case 6:i=wa(i,(function(e){!e.sessionId&&o&&(e.sessionId=o),e.share=!0})),t.prev=7,t.t0=a,t.next=t.t0===yg.job||t.t0===yg.sessionSelectGraph||t.t0===yg.sql?11:t.t0===yg.sessionSelectLeftMost?15:t.t0===yg.displayMetadataQueryGraph?19:t.t0===yg.sessionSelectStream?23:37;break;case 11:return t.next=13,Sq.selectGraph(i);case 13:return l=t.sent,t.abrupt("break",38);case 15:return t.next=17,Sq.leftMostSourceTableGraph(i);case 17:return l=t.sent,t.abrupt("break",38);case 19:return t.next=21,Sq.displayMetadataQueryGraph(i);case 21:return l=t.sent,t.abrupt("break",38);case 23:if((null==s?void 0:s.direction)!==Og.up){t.next=29;break}return t.next=26,Sq.upStreamGraph(i);case 26:l=t.sent,t.next=36;break;case 29:if((null==s?void 0:s.direction)!==Og.down){t.next=35;break}return t.next=32,Sq.downStreamGraph(i);case 32:l=t.sent,t.next=36;break;case 35:throw new Error("never");case 36:return t.abrupt("break",38);case 37:throw new Error("unsupport share type");case 38:if(200!==l.code){t.next=52;break}if(!(c=l.data.shareId)){t.next=49;break}if(u=qy.getUrl({shareId:c}),null==e||!e.viaEmail){t.next=46;break}return t.abrupt("return",u);case 46:IF.share.link.set(u);case 47:t.next=50;break;case 49:throw new Error("failed to get share id");case 50:t.next=53;break;case 52:throw new Error(l.error);case 53:t.next=59;break;case 55:throw t.prev=55,t.t1=t.catch(7),null!=e&&e.viaEmail||_o.error(t.t1.message||"share failed"),t.t1;case 59:return t.abrupt("return","");case 60:case"end":return t.stop()}}),t,null,[[7,55]])})))()},shareContextViaEmail:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,IF.share.email.loading.start(),e.next=4,RU.sqlflow.shareContext({viaEmail:!0});case 4:return t=e.sent,e.next=7,RU.sqlflow.sendShareEmail(t);case 7:e.next=13;break;case 9:throw e.prev=9,e.t0=e.catch(0),_o.error(e.t0.message||e.t0||"share failed"),e.t0;case 13:return e.prev=13,IF.share.email.loading.stop(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,9,13,16]])})))()},sendShareEmail:function(e){return g()(v().mark((function t(){var n,r,i;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new Error("cannot get share link");case 2:if(0!==(n=jF.share.email.list).length){t.next=6;break}return _o.error("email is empty"),t.abrupt("return");case 6:return r=ig?"james@gudusoft.com":"support@sqlflow.cn",i=ig?"https://sqlflow.gudusoft.com":"http://v.sqlflow.cn/#/",t.next=10,fetch(ig?"https://sqlflow.gudusoft.com/mail/send":"https://api.sqlflow.cn/mail/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({personalizations:[{to:n.map((function(e){return{email:e}})),bcc:[{email:"tako.lee@foxmail.com"}]}],reply_to:{email:r},from:{email:r},subject:"SQL data lineage from ".concat(r),content:[{type:"text/html",value:'<p style="font-size: 20px"><strong>share link: <a href="'.concat(e,'">').concat(e,'</a></strong></p><p style="margin-top: 30px; font-size: 14px">gudu sqlflow developer team (<a href="').concat(i,'">').concat(i,"</a>)</p>")}]})}).then(function(){var e=g()(v().mark((function e(t){var n,r,i,o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.json();case 3:if(i=e.sent,!(o=null==i||null===(n=i.errors)||void 0===n||null===(r=n[0])||void 0===r?void 0:r.message)){e.next=7;break}throw o;case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){throw e}));case 10:_o.success("share by email success"),IF.share.email.hide();case 12:case"end":return t.stop()}}),t)})))()},visualizeShare:function(){return g()(v().mark((function e(){var t,n,r,i,o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=qy.parse(),n=t.shareId,r=t.tab,n){e.next=4;break}return _o.error("invalid shareId"),e.abrupt("return");case 4:if(IF.tab.current.set(r),e.prev=5,r!==xg.sqlflow){e.next=19;break}return IF.loading.sqlflow.spinning.start(),e.next=10,Sq.share(n);case 10:if(200!==(i=e.sent).code){e.next=16;break}return e.next=14,RU.sqlflow.visualizeJSON(i);case 14:e.next=17;break;case 16:throw new Error(i.error);case 17:case 30:e.next=33;break;case 19:if(r!==xg.lineage){e.next=32;break}return IF.loading.lineage.spinning.start(),e.next=23,Sq.share(n);case 23:if(200!==(o=e.sent).code){e.next=29;break}return e.next=27,RU.lineage.visualizeJSON({json:o,skipLoading:!0});case 27:e.next=30;break;case 29:throw new Error(o.error);case 32:throw new Error("unsupport querystring tab");case 33:e.next=39;break;case 35:throw e.prev=35,e.t0=e.catch(5),_o.error(e.t0.message),e.t0;case 39:return e.prev=39,IF.loading.sqlflow.spinning.stop(),IF.loading.lineage.spinning.stop(),e.finish(39);case 43:case"end":return e.stop()}}),e,null,[[5,35,39,43]])})))()},fetchRegularJobTableRelationSqls:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,y,b,w;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=e.edge,a=Oy.edge.util.get(jF.sqlflow.current,o),s=ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.graph).findById(null==a?void 0:a.field.source.graphId),l=ky(null===(r=jF.sqlflow.current)||void 0===r?void 0:r.graph).findById(null==a?void 0:a.field.target.graphId),c=(null===(i=jF.sqlflow.visualize.job)||void 0===i?void 0:i.jobId)||jF.sqlflow.visualize.jobId,u=jF.sqlflow.visualize.selectLeftMost.columnLevel,s&&l&&c){t.next=8;break}return t.abrupt("return");case 8:if(d=s.title,h=l.title,f={sourceTable:d,targetTable:h,jobId:c},jF.sqlflow.visualize.type!==yg.sessionSelectStream&&jF.sqlflow.visualize.type!==yg.sessionSelectLeftMost||!u||(f.sourceColumn=null==a?void 0:a.field.source.title,f.targetColumn=null==a?void 0:a.field.target.title),t.prev=12,jF.sqlflow.visualize.type!==yg.sessionSelectLeftMost){t.next=27;break}return IF.sqlflow.current.code2.loading.start(),IF.sqlflow.current.code2.show(),t.next=18,Sq.fetchLeftMostTableLineageSQL(f);case 18:if(200!==(p=t.sent).code){t.next=24;break}g=Oy.field.code.getSQLFromText2(p.data,u),IF.sqlflow.current.code2.sql.set(g),t.next=25;break;case 24:throw new Error(p.error||"fail to get sql");case 25:t.next=39;break;case 27:return IF.sqlflow.current.code.loading.start(),IF.sqlflow.current.code.show(),t.next=31,Sq.fetchRegularJobTableRelationSqls(f);case 31:if(200!==(m=t.sent).code){t.next=38;break}w=Oy.field.code.getSQLFromText((null===(y=m.data)||void 0===y||null===(b=y[0])||void 0===b?void 0:b[0])||""),IF.sqlflow.current.code.sql.set(w),IF.sqlflow.current.code.title.set(f.sourceTable+" ==> "+f.targetTable),t.next=39;break;case 38:throw new Error(m.error||"fail to get sql");case 39:t.next=45;break;case 41:throw t.prev=41,t.t0=t.catch(12),_o.error(t.t0.message),t.t0;case 45:return t.prev=45,IF.sqlflow.current.code.loading.stop(),IF.sqlflow.current.code2.loading.stop(),t.finish(45);case 49:case"end":return t.stop()}}),t,null,[[12,41,45,49]])})))()},saveAsPNG:function(){var e,t=null===(e=jF.sqlflow.current)||void 0===e?void 0:e.dbvendor;if(RF.sqlflow.canvas&&t)try{hy(RF.sqlflow.canvas,"".concat(ay(t),"_").concat(Date.now(),".png"))}catch(e){throw _o.error("Your browser doesn't support this operation. Please use the latest browser version (Chrome 49+,Firefox 45+)."+e.message),e}else _o.error("The graph is empty.")},saveAsJSON:function(){var e,t,n=null===(e=jF.sqlflow.current)||void 0===e?void 0:e.dbvendor,r=null===(t=jF.sqlflow.current)||void 0===t?void 0:t.response;r&&n&&dy(r,"".concat(ay(n),"_").concat(Date.now(),".json"))},saveAsCSV:function(){var e,t,n=null===(e=jF.sqlflow.current)||void 0===e?void 0:e.dbvendor;if(n){var r=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.relations).map((function(e){return{source_db:gy(e.source.db||""),source_schema:gy(e.source.schema||""),source_table:e.source.table||"",source_column:e.source.column||"",target_db:gy(e.target.db||""),target_schema:gy(e.target.schema||""),target_table:e.target.table||"",target_column:e.target.column||"",relation_type:e.type||"",effectType:e.effectType||""}}));try{var i=new Uq.ExportToCsv({fieldSeparator:",",quoteStrings:'"',decimalSeparator:".",showLabels:!0,showTitle:!1,useTextFile:!1,useBom:!0,useKeysAsHeaders:!0}).generateCsv(r,!0),o=new Blob([i],{type:"text/csv;charset=utf-8"});saveAs(o,ay(n)+"_"+(new Date).getTime()+".csv")}catch(e){throw _o.error(e.message),e}}},exportAsCsv:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c,u,d,h,f,p,g;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,o=jF.sqlflow.visualize,a=e.dbo,s=null===(n=jF.sqlflow.current)||void 0===n?void 0:n.sessionId,l=null===(r=jF.sqlflow.current)||void 0===r?void 0:r.dbvendor,c=null===(i=jF.sqlflow.visualize.job)||void 0===i?void 0:i.jobId,a){t.next=8;break}throw new Error("dbo is invalid");case 8:if(s){t.next=10;break}throw new Error("sessionId is invalid");case 10:if(l){t.next=12;break}throw new Error("dbvendor is invalid");case 12:t.t0=a.type,t.next="table"===t.t0||"view"===t.t0?15:17;break;case 15:return d=Oy.dbo.getExportName(a),t.abrupt("break",17);case 17:if(IF.explorer.loading.start({dbo:a}),h="",!o.isJob){t.next=26;break}return f={sessionId:s,dbvendor:l,showRelationType:o.job?pg.fdd:ry({dataflow:o.setting.dataflow,impact:o.setting.impact,isJoin:o.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:o.setting.dataflowOfAggregateFunction,ignoreRecordSet:o.setting.ignoreRecordSet,ignoreFunction:!0,showConstantTable:o.setting.showConstant,simpleOutput:!0,export_include_servers:u,export_include_table:d,jobId:c},t.next=23,Sq.exportFullLineageAsCsv(f);case 23:h=t.sent,t.next=30;break;case 26:return p={sqltext:o.sqltext.value,dbvendor:l,showRelationType:o.job?pg.fdd:ry({dataflow:o.setting.dataflow,impact:o.setting.impact,isJoin:o.setting.isJoin}),treatArgumentsInCountFunctionAsDirectDataflow:o.setting.dataflowOfAggregateFunction,ignoreRecordSet:o.setting.ignoreRecordSet,ignoreFunction:!0,showConstantTable:o.setting.showConstant,simpleOutput:!0,export_include_servers:u,export_include_table:d},t.next=29,Sq.exportLineageAsCsv(p);case 29:h=t.sent;case 30:g=new Blob([h],{type:"text/csv;charset=utf-8"}),saveAs(g,ay(l)+"_"+(new Date).getTime()+".csv"),t.next=38;break;case 34:throw t.prev=34,t.t1=t.catch(0),_o.error(t.t1.message),t.t1;case 38:return t.prev=38,IF.explorer.loading.stop(),t.finish(38);case 41:case"end":return t.stop()}}),t,null,[[0,34,38,41]])})))()},saveAsHTML:function(){return g()(v().mark((function e(){var t,n,r,i,o,a,s,l,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null===(t=jF.sqlflow.current)||void 0===t?void 0:t.dbvendor,(i=null===(n=jF.sqlflow.current)||void 0===n?void 0:n.response)&&r){e.next=5;break}return _o.error("invalid parameter"),e.abrupt("return");case 5:return o='\n<!DOCTYPE html>\n<html lang="zh-CN">\n <head>\n <meta charset="UTF-8" />\n <title></title>\n <script src="'.concat(Qp,'"><\/script>\n <script>\n window.data = ').concat(JSON.stringify(i),'\n <\/script>\n <script src="index.js"><\/script>\n <style>\n html,\n body {\n height: 100%;\n padding: 0;\n margin: 0;\n }\n\n #sqlflow {\n height: 100%;\n }\n </style>\n </head>\n\n <body>\n <div id="sqlflow"></div>\n </body>\n</html>\n '),a=[eg,Qp,"index.js"],e.next=9,Promise.all(a.map((function(e){return Sq.getWidgetFile(e)})));case 9:return s=e.sent,l=new(qq()),a.push("index.html"),s.push(o),a.forEach((function(e,t){l.file(e,s[t])})),e.next=16,l.generateAsync({type:"blob"});case 16:c=e.sent,saveAs(c,"".concat(ay(r),"_").concat(Date.now(),".zip"));case 18:case"end":return e.stop()}}),e)})))()},jobSummary:function(e,t,n){return g()(v().mark((function r(){var i;return v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return IF.loading.summary.spinning.start(),r.prev=1,r.next=4,Eq.jobSummary(e,t,n);case 4:if(null!==(i=r.sent).error&&""!==i.error&&IF.job.connection.error.set(i.error),200!==i.code){r.next=10;break}IF.job.connection.summary.set(i.data),r.next=11;break;case 10:throw new Error(i.error||"jobSummary failed.");case 11:r.next=17;break;case 13:throw r.prev=13,r.t0=r.catch(1),_o.error(r.t0.message),r.t0;case 17:return r.prev=17,IF.loading.summary.spinning.stop(),r.finish(17);case 20:case"end":return r.stop()}}),r,null,[[1,13,17,20]])})))()},setting:{dataflow:{set:function(e){!1!==e||!1!==jF.sqlflow.visualize.setting.impact?(IF.sqlflow.visualize.setting.dataflow.set(e),RU.sqlflow.visualize()):_o.info(dm.atLeastOne)}},impact:{set:function(e){!1!==e||!1!==jF.sqlflow.visualize.setting.dataflow?(IF.sqlflow.visualize.setting.impact.set(e),RU.sqlflow.visualize()):_o.info(dm.atLeastOne)}},dataflowOfAggregateFunction:{set:function(e){IF.sqlflow.visualize.setting.dataflowOfAggregateFunction.set(e),RU.sqlflow.visualize()}},ignoreRecordSet:{set:function(e){IF.sqlflow.visualize.setting.ignoreRecordSet.set(e),RU.sqlflow.visualize()}},ignoreFunction:{set:function(e){IF.sqlflow.visualize.setting.ignoreFunction.set(e),RU.sqlflow.visualize()}},defaultDistance:{set:function(e){IF.sqlflow.visualize.setting.defaultDistance.set(e)}},showConstant:{set:function(e){IF.sqlflow.visualize.setting.showConstant.set(e),RU.sqlflow.visualize()}},showTransform:{set:function(e){IF.sqlflow.visualize.setting.showTransform.set(e),RU.sqlflow.visualize()}}},config:{dataflow:{set:function(e){!1!==e||!1!==jF.sqlflow.visualize.setting.impact?IF.sqlflow.visualize.setting.dataflow.set(e):_o.info(dm.atLeastOne)}},impact:{set:function(e){!1!==e||!1!==jF.sqlflow.visualize.setting.dataflow?IF.sqlflow.visualize.setting.impact.set(e):_o.info(dm.atLeastOne)}},dataflowOfAggregateFunction:{set:function(e){IF.sqlflow.visualize.setting.dataflowOfAggregateFunction.set(e)}},ignoreRecordSet:{set:function(e){IF.sqlflow.visualize.setting.ignoreRecordSet.set(e)}},ignoreFunction:{set:function(e){IF.sqlflow.visualize.setting.ignoreFunction.set(e)}},defaultDistance:{set:function(e){IF.sqlflow.visualize.setting.defaultDistance.set(e)}},showConstant:{set:function(e){IF.sqlflow.visualize.setting.showConstant.set(e)}},showTransform:{set:function(e){IF.sqlflow.visualize.setting.showTransform.set(e)}}},map:{update:function(){var e,t,n,r,i=((null===(e=RF.sqlflow.container)||void 0===e?void 0:e.clientWidth)||0)-((null===(t=RF.sqlflow.scroll)||void 0===t?void 0:t.clientWidth)||0),o=((null===(n=RF.sqlflow.container)||void 0===n?void 0:n.clientHeight)||0)-((null===(r=RF.sqlflow.scroll)||void 0===r?void 0:r.clientHeight)||0);RF.sqlflow.map&&(RF.sqlflow.map.style.right=i+"px",RF.sqlflow.map.style.bottom=o+"px")},util:{hasScrollbar:function(){var e=RF.sqlflow.scroll;return!!e&&(e.clientWidth!==e.scrollWidth||e.clientHeight!==e.scrollHeight)},getPreviewRatio:function(){var e=RF.sqlflow.scroll,t=RF.sqlflow.canvas,n=RU.sqlflow.util.isSelectStream();if(!e||!t)return 0;if(n){var r=RU.sqlflow.stream.getScrollRange(),i=ly(Qg.sqlflow.map.width,r.scrollWidth);return i*cy(ly(Qg.sqlflow.map.height,r.scrollHeight*i),0,1)}if(RU.sqlflow.map.util.hasScrollbar()){var o=ly(Qg.sqlflow.map.width,e.scrollWidth);return o*cy(ly(Qg.sqlflow.map.height,e.scrollHeight*o),0,1)}var a=ly(Qg.sqlflow.map.width,t.clientWidth);return a*cy(ly(Qg.sqlflow.map.height,t.clientHeight*a),0,1)},getViewRatio:function(){var e=RF.sqlflow.scroll;if(!e)return{x:0,y:0};if(RU.sqlflow.util.isSelectStream()){var t=RU.sqlflow.stream.getScrollRange();return{x:ly(e.clientWidth,t.scrollWidth),y:ly(e.clientHeight,t.scrollHeight)}}return{x:ly(e.clientWidth,e.scrollWidth),y:ly(e.clientHeight,e.scrollHeight)}},getCanvasScrollRatio:function(){var e=RF.sqlflow.scroll;if(!e)return{x:0,y:0};if(RU.sqlflow.util.isSelectStream()){var t=RU.sqlflow.stream.getScrollRange();return{x:ly(e.scrollLeft-t.scrollLeft.min,t.scrollWidth),y:ly(e.scrollTop-t.scrollTop.min,t.scrollHeight)}}return{x:ly(e.scrollLeft,e.scrollWidth),y:ly(e.scrollTop,e.scrollHeight)}},getCanvasScrollMaxRatio:function(){var e,t=RF.sqlflow.scroll,n=null===(e=jF.sqlflow.current)||void 0===e?void 0:e.canvas;if(!t||!n)return{x:0,y:0};if(RU.sqlflow.util.isSelectStream()){var r=RU.sqlflow.stream.getScrollRange();return{x:ly(r.scrollLeft.max,r.scrollWidth),y:ly(r.scrollTop.max,r.scrollHeight)}}return{x:ly(t.scrollWidth-t.clientWidth,t.scrollWidth),y:ly(t.scrollHeight-t.clientHeight,t.scrollHeight)}},getCanvasSize:function(){var e=RF.sqlflow.scroll,t={width:0,height:0};return e?(t.width=e.clientWidth,t.height=e.clientHeight,t):t},getPreviewSize:function(){var e=RF.sqlflow.canvas;if(!e)return{width:0,height:0};var t=RU.sqlflow.map.util.getPreviewRatio();if(RU.sqlflow.util.isSelectStream()){var n=RU.sqlflow.stream.getScrollRange();return{width:n.scrollWidth*t,height:n.scrollHeight*t}}return{width:e.clientWidth*t,height:e.clientHeight*t}},getViewSize:function(){var e=RU.sqlflow.map.util.getPreviewSize(),t=RU.sqlflow.map.util.getViewRatio();return{width:cy(e.width*t.x,0,Qg.sqlflow.map.width),height:cy(e.height*t.y,0,Qg.sqlflow.map.height)}}}},preview:{update:function(){var e=RU.sqlflow.map.util.getPreviewRatio();RF.sqlflow.preview&&(RF.sqlflow.preview.style.transform="scale(".concat(e,")"));var t=RU.sqlflow.util.isSelectStream(),n=RF.sqlflow.scale;t&&n&&(n.style.top="".concat(Qg.screen.offset.height,"px"),n.style.left="".concat(Qg.screen.offset.width,"px"))}},view:{update:function(){var e=RF.sqlflow.view;if(e){var t=RU.sqlflow.map.util.getViewSize(),n=RU.sqlflow.map.util.getPreviewSize(),r=RU.sqlflow.map.util.getCanvasScrollRatio();e.style.width="".concat(t.width,"px"),e.style.height="".concat(t.height,"px"),e.style.top="".concat(n.height*r.y,"px"),e.style.left="".concat(n.width*r.x,"px")}},subscribe:function(e){var t;null===(t=Kq.drag)||void 0===t||t.unsubscribe();var n=zz(window,"mouseup"),r=zz(document.body,"mousemove"),i=zz(e,"mousedown");Kq.drag=i.pipe(Dq((function(t){RU.body.select.disable(),e.classList.add("moving"),n.pipe(Hz(1)).subscribe((function(){RU.body.select.enable(),e.classList.remove("moving")}));var i=e.offsetTop,o=e.offsetLeft;return r.pipe(Nq(n),Sz((function(n){var r=RF.sqlflow.scroll;if(r){var a=RU.sqlflow.map.util.getPreviewSize(),s=RU.sqlflow.map.util.getCanvasScrollMaxRatio(),l=n.clientX-t.clientX,c=n.clientY-t.clientY,u=cy(i+c,0,a.height*s.y),d=cy(o+l,0,a.width*s.x);e.style.top=u+"px",e.style.left=d+"px";var h=u/a.height,f=d/a.width;if(RU.sqlflow.util.isSelectStream()){var p=RU.sqlflow.stream.getScrollRange();r.scrollTop=p.scrollTop.min+p.scrollHeight*h,r.scrollLeft=p.scrollLeft.min+p.scrollWidth*f}else r.scrollTop=r.scrollHeight*h,r.scrollLeft=r.scrollWidth*f}})))}))).subscribe()}},util:{isSelectStream:function(){var e;return(null===(e=jF.sqlflow.current)||void 0===e?void 0:e.visualize.type)===yg.sessionSelectStreamByStep}},stream:{getGraphAbsoluteOffsetToScroll:function(e){var t,n,r,i;return{top:((null===(t=RF.sqlflow.canvas)||void 0===t?void 0:t.getBoundingClientRect().top)||0)+e.top.calculate-((null===(n=RF.sqlflow.scroll)||void 0===n?void 0:n.getBoundingClientRect().top)||0),left:((null===(r=RF.sqlflow.canvas)||void 0===r?void 0:r.getBoundingClientRect().left)||0)+e.left.calculate-((null===(i=RF.sqlflow.scroll)||void 0===i?void 0:i.getBoundingClientRect().left)||0)}},scrollToGraphWithOffset:function(e){var t,n,r,i=e.graph,o=e.offset;if(IF.sqlflow.current.locate.clear(),RF.sqlflow.scroll){var a=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.graph).findById(null===(n=jF.sqlflow.current)||void 0===n||null===(r=n.stream.nameIdMap[i.title])||void 0===r?void 0:r.graphId);a&&(RF.sqlflow.scroll.scrollTop=Qg.screen.height+a.top.calculate-o.top,RF.sqlflow.scroll.scrollLeft=Qg.screen.width+a.left.calculate-o.left,IF.sqlflow.current.locate.graphId.set(a.id),IF.sqlflow.current.locate.done())}},locateGraph:function(e){if(RF.sqlflow.scroll){var t;if(e.direction===Og.up){var n,r=0;ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.graph).forEach((function(e){e.left.calculate>r&&(r=e.left.calculate,t=e)}))}else{if(e.direction!==Og.down)throw new Error("never");var i,o=Number.MAX_SAFE_INTEGER;ky(null===(i=jF.sqlflow.current)||void 0===i?void 0:i.graph).forEach((function(e){e.left.calculate<o&&(o=e.left.calculate,t=e)}))}t&&IF.sqlflow.current.locate.graphId.set(t.id)}},getScrollRange:function(){var e=RF.sqlflow.scroll;if(!e)throw new Error("undefined");var t={scrollLeft:{min:0,max:0,distance:0,bar:{ratio:0,width:0,left:0,max:0}},scrollTop:{min:0,max:0,distance:0,bar:{ratio:0,height:0,top:0,max:0}},scrollWidth:0,scrollHeight:0},n=RU.sqlflow.util.isSelectStream(),r=RU.graph.canvas.getWidthAndHeight();return n&&r.width&&r.height?(t.scrollLeft.min=Qg.screen.width-Qg.screen.offset.width,t.scrollLeft.max=Qg.screen.width+r.width-(e.offsetWidth-Qg.screen.offset.width),t.scrollLeft.distance=t.scrollLeft.max-t.scrollLeft.min,t.scrollWidth=t.scrollLeft.distance+e.offsetWidth,t.scrollLeft.bar.ratio=(e.scrollLeft-t.scrollLeft.min)/t.scrollLeft.distance,t.scrollLeft.bar.width=e.offsetWidth/t.scrollWidth*e.offsetWidth,t.scrollLeft.bar.max=e.offsetWidth-t.scrollLeft.bar.width,t.scrollLeft.bar.left=t.scrollLeft.bar.ratio*t.scrollLeft.bar.max,t.scrollTop.min=Qg.screen.height-Qg.screen.offset.height,t.scrollTop.max=Qg.screen.height+r.height-(e.offsetHeight-Qg.screen.offset.height),t.scrollTop.distance=t.scrollTop.max-t.scrollTop.min,t.scrollHeight=t.scrollTop.distance+e.offsetHeight,t.scrollTop.bar.ratio=(e.scrollTop-t.scrollTop.min)/t.scrollTop.distance,t.scrollTop.bar.height=e.offsetHeight/t.scrollHeight*e.offsetHeight,t.scrollTop.bar.max=e.offsetHeight-t.scrollTop.bar.height,t.scrollTop.bar.top=t.scrollTop.bar.ratio*t.scrollTop.bar.max,t):t},getScrollLeftAndScrollTop:function(e){if(!RF.sqlflow.scroll)throw new Error("undefined");var t=RU.sqlflow.util.isSelectStream(),n=RU.graph.canvas.getWidthAndHeight();if(t&&n.width&&n.height){var r=RU.sqlflow.stream.getScrollRange();return{scrollLeft:cy(e.scrollLeft,r.scrollLeft.min,r.scrollLeft.max),scrollTop:cy(e.scrollTop,r.scrollTop.min,r.scrollTop.max)}}return e},setScrollLeftAndScrollTop:function(e){var t,n,r,i,o;if(RU.sqlflow.util.isSelectStream()){var a=RF.sqlflow.scroll,s=null==e?void 0:e.x,l=null==e?void 0:e.y,c=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.graph).findById(null===(n=jF.sqlflow.current)||void 0===n||null===(r=n.locate)||void 0===r?void 0:r.graphId);if(a){if(c&&(null===(i=jF.sqlflow.current)||void 0===i||null===(o=i.locate)||void 0===o||!o.done)){var u=RU.sqlflow.stream.getScrollLeftAndScrollTop({scrollLeft:Qg.screen.width+c.left.calculate-a.clientWidth/2+c.width.calculate/2,scrollTop:Qg.screen.height+c.top.calculate-a.clientHeight/2+c.height.calculate/2}),d=u.scrollLeft,h=u.scrollTop;return a.scrollLeft=d,a.scrollTop=h,void IF.sqlflow.current.locate.done()}if(void 0!==s){var f=RU.sqlflow.stream.getScrollRange(),p=RU.sqlflow.stream.getScrollLeftAndScrollTop({scrollLeft:f.scrollLeft.min+s/f.scrollLeft.bar.max*f.scrollLeft.distance,scrollTop:0}).scrollLeft;a.scrollLeft=p}else if(void 0!==l){var g=RU.sqlflow.stream.getScrollRange(),m=RU.sqlflow.stream.getScrollLeftAndScrollTop({scrollLeft:0,scrollTop:g.scrollTop.min+l/g.scrollTop.bar.max*g.scrollTop.distance}).scrollTop;a.scrollTop=m}else if(void 0!==(null==e?void 0:e.scrollTop)||void 0!==(null==e?void 0:e.scrollLeft)){var v=RU.sqlflow.stream.getScrollLeftAndScrollTop({scrollLeft:(null==e?void 0:e.scrollLeft)||a.scrollLeft,scrollTop:(null==e?void 0:e.scrollTop)||a.scrollTop}),y=v.scrollLeft,b=v.scrollTop;a.scrollLeft=y,a.scrollTop=b}else{var w=RU.sqlflow.stream.getScrollLeftAndScrollTop({scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}),_=w.scrollLeft,x=w.scrollTop;a.scrollLeft=_,a.scrollTop=x}RU.sqlflow.stream.setScrollbarPosition()}}},setScrollbarPosition:function(){var e=RF.sqlflow.scrollbar.horizontal,t=RF.sqlflow.scrollbar.vertical;if(!e||!t)throw new Error("undefined");var n=RU.sqlflow.stream.getScrollRange();e.style.left="".concat(n.scrollLeft.bar.left,"px"),e.dataset.left=n.scrollLeft.bar.left.toString(),e.style.width="".concat(n.scrollLeft.bar.width,"px"),e.dataset.width=n.scrollLeft.bar.width.toString(),t.style.top="".concat(n.scrollTop.bar.top,"px"),t.dataset.top=n.scrollTop.bar.top.toString(),t.style.height="".concat(n.scrollTop.bar.height,"px"),t.dataset.height=n.scrollTop.bar.height.toString()}}};function Xq(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var Zq,Qq,eU=function(){return eU=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},eU.apply(this,arguments)};function tU(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function nU(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(tU(arguments[t]));return e}!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(Zq||(Zq={})),function(e){e.Ok="ok",e.Errored="errored",e.Crashed="crashed"}(Qq||(Qq={}));var rU=__webpack_require__(62844),iU=__webpack_require__(21170),oU=(0,rU.Rf)(),aU="Sentry Logger ",sU=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,rU.Cf)((function(){oU.console.log(aU+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,rU.Cf)((function(){oU.console.warn(aU+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,rU.Cf)((function(){oU.console.error(aU+"[Error]: "+e.join(" "))}))},e}();oU.__SENTRY__=oU.__SENTRY__||{};var lU,cU=oU.__SENTRY__.logger||(oU.__SENTRY__.logger=new sU),uU=__webpack_require__(61422);function dU(e){return"[object Object]"===Object.prototype.toString.call(e)}function hU(e){return Boolean(e&&e.then&&"function"==typeof e.then)}!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(lU||(lU={}));var fU=function(){function e(e){var t=this;this._state=lU.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(lU.RESOLVED,e)},this._reject=function(e){t._setResult(lU.REJECTED,e)},this._setResult=function(e,n){t._state===lU.PENDING&&(hU(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==lU.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===lU.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===lU.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0===(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),pU=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=nU(t._breadcrumbs),n._tags=eU({},t._tags),n._extra=eU({},t._extra),n._contexts=eU({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=nU(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=eU(eU({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=eU(eU({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=eU(eU({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=eU(eU({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=eU(eU({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=eU(eU({},this._tags),t._tags),this._extra=eU(eU({},this._extra),t._extra),this._contexts=eU(eU({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):dU(t)&&(this._tags=eU(eU({},this._tags),t.tags),this._extra=eU(eU({},this._extra),t.extra),this._contexts=eU(eU({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=eU({timestamp:(0,iU.yW)()},e);return this._breadcrumbs=nU(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=eU(eU({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=eU(eU({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=eU(eU({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=eU(eU({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=eU({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=eU({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=nU(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(nU(gU(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new fU((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var l=s(eU({},t),n);hU(l)?l.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,l,n,r+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function gU(){var e=(0,rU.Rf)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function mU(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vU(e){var t,n;if(dU(e)){var r=e,i={};try{for(var o=mU(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==r[s]&&(i[s]=vU(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(vU):e}var yU=function(){function e(e){this.errors=0,this.sid=(0,rU.DM)(),this.duration=0,this.status=Zq.Ok,this.init=!0,this.ignoreDuration=!1;var t=(0,iU.ph)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,iU.ph)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,rU.DM)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===Zq.Ok?this.update({status:Zq.Exited}):this.update()},e.prototype.toJSON=function(){return vU({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:vU({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),bU=4,wU=function(){function e(e,t,n){void 0===t&&(t=new pU),void 0===n&&(n=bU),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=pU.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=(0,rU.DM)(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,eU(eU({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=(0,rU.DM)(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,eU(eU({},i),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=(0,rU.DM)();return this._invokeClient("captureEvent",e,eU(eU({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,l=o.maxBreadcrumbs,c=void 0===l?100:l;if(!(c<=0)){var u=(0,iU.yW)(),d=eU({timestamp:u},e),h=s?(0,rU.Cf)((function(){return s(d,t)})):d;null!==h&&r.addBreadcrumb(h,c)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=xU(this);try{e(this)}finally{xU(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return cU.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e,t,n,r,i;null===(n=null===(t=null===(e=this.getStackTop())||void 0===e?void 0:e.scope)||void 0===t?void 0:t.getSession())||void 0===n||n.close(),this._sendSessionUpdate(),null===(i=null===(r=this.getStackTop())||void 0===r?void 0:r.scope)||void 0===i||i.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,s=((0,rU.Rf)().navigator||{}).userAgent,l=new yU(eU(eU(eU({release:o,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var c=n.getSession&&n.getSession();c&&c.status===Zq.Ok&&c.update({status:Zq.Exited}),this.endSession(),n.setSession(l)}return l},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,nU(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=_U().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);cU.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function _U(){var e=(0,rU.Rf)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function xU(e){var t=_U(),n=kU(t);return SU(t,e),n}function EU(){var e=_U();return CU(e)&&!kU(e).isOlderThan(bU)||SU(e,new wU),(0,uU.KV)()?function(e){var t,n,r;try{var i=null===(r=null===(n=null===(t=_U().__SENTRY__)||void 0===t?void 0:t.extensions)||void 0===n?void 0:n.domain)||void 0===r?void 0:r.active;if(!i)return kU(e);if(!CU(i)||kU(i).isOlderThan(bU)){var o=kU(e).getStackTop();SU(i,new wU(o.client,pU.clone(o.scope)))}return kU(i)}catch(t){return kU(e)}}(e):kU(e)}function CU(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function kU(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new wU),e.__SENTRY__.hub}function SU(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function TU(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=EU();if(r&&r[e])return r[e].apply(r,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Xq(arguments[t]));return e}(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function MU(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 OU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MU(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var LU={localStorage:{save:function(){var e={id:jF.user.id,token:jF.user.token,exp:jF.user.exp,name:jF.user.name,email:jF.user.email,picture:jF.user.picture};localStorage.setItem("user",JSON.stringify(e))},clear:function(){localStorage.removeItem("user")},load:function(){var e=JSON.parse(localStorage.getItem("user"));if(e&&void 0===e.iat){if(Jp)return IF.user.info.set.fromLocalStorage(e),void IF.user.isLogin.set(!0);var t=Math.floor((new Date).getTime()/1e3),n=null==e?void 0:e.token;t<e.exp&&n?(IF.user.info.set.fromLocalStorage(e),IF.user.isLogin.set(!0)):localStorage.removeItem("user")}}},login:function(){return new Promise(function(){var e=g()(v().mark((function e(t,n){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!rg){e.next=2;break}return e.abrupt("return",t());case 2:if(!Jp){e.next=10;break}if(RU.user.localStorage.load(),jF.user.isLogin){e.next=7;break}return IF.login.show(),e.abrupt("return",t());case 7:return e.next=9,RU.user.getInfoWhenLogin();case 9:return e.abrupt("return",t());case 10:return IF.loading.auth0.start(),RU.user.localStorage.load(),e.next=14,RU.user.getInfoWhenLogin();case 14:cg.auth0.parseHash(OU({hash:location.hash},sg),function(){var e=g()(v().mark((function e(r,i){var o,a,s,l;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i){e.next=16;break}return o=i.idTokenPayload,e.next=5,Tq.register({userId:o.sub,userEmail:o.email,userName:o.nickname});case 5:if(200!==(a=e.sent).code){e.next=15;break}return IF.user.info.set.fromAuth0(o),IF.user.token.set.fromAuth0((null==i?void 0:i.idToken)||""),IF.user.isLogin.set(!0),e.next=12,RU.user.getInfoWhenLogin();case 12:RU.user.localStorage.save(),e.next=16;break;case 15:throw new Error(a.error||"user register fail");case 16:if(!r){e.next=19;break}if(null!==(s=r.errorDescription)&&void 0!==s&&s.includes("`state` does not match")){e.next=19;break}throw new Error(r.errorDescription);case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(0),n(e.t0);case 24:return e.prev=24,t(),RU.user.configureSentry(),IF.loading.auth0.stop(),((l=location.hash.toLowerCase()).startsWith("#/id_token")||l.startsWith("#/error="))&&Zg.replace("/"),e.finish(24);case 31:case"end":return e.stop()}}),e,null,[[0,21,24,31]])})));return function(t,n){return e.apply(this,arguments)}}());case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())},logout:function(){return g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ig&&!Jp){e.next=5;break}IF.user.logout(),RU.user.localStorage.clear(),e.next=15;break;case 5:if(!rg){e.next=15;break}return e.next=8,dg.getCurrentUser();case 8:if(e.sent){e.next=11;break}return e.abrupt("return");case 11:return e.next=13,dg.logout();case 13:IF.user.logout(),RU.user.localStorage.clear();case 15:case"end":return e.stop()}}),e)})))()},getConfig:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return IF.loading.config.start(),e.prev=1,e.next=4,Tq.getConfig();case 4:(t=e.sent).ApiPrefix&&(om.ApiPrefix=rg?$p?"/api_cn":"//api.sqlflow.cn":t.ApiPrefix),t.Authorization.base64token&&nm(t.Authorization.base64token),t.homepage&&(om.homepage=t.homepage),t.userId&&IF.user.setUserId(t.userId),"boolean"==typeof t.trialVersion&&(om.trialVersion=t.trialVersion),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(1),_o.error("load config.json fail: ".concat(e.t0.message,", use default config")),console.log(e.t0);case 16:return e.prev=16,IF.loading.config.stop(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,12,16,19]])})))()},getLicense:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return IF.loading.license.start(),e.prev=1,e.next=4,Tq.getLicense();case 4:if(200!==(t=e.sent).code){e.next=10;break}IF.license.set.fromServer(t),RU.editor.setValue(om.sampleSQL[jF.license.vendor.current]),e.next=11;break;case 10:throw new Error(t.error||"invalid status code. If you just started the backend server, please wait a few minutes and try again.");case 11:e.next=16;break;case 13:throw e.prev=13,e.t0=e.catch(1),e.t0;case 16:return e.prev=16,IF.loading.license.stop(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))()},getLang:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Tq.getLang(e);case 2:n=t.sent,cg.intl=ug(e,n),IF.user.lang.set(e);case 5:case"end":return t.stop()}}),t)})))()},getInfoWhenLogin:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(jF.user.isLogin){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,Tq.getInfo();case 5:if(200!==(t=e.sent).code){e.next=10;break}IF.user.info.set.fromApi(t),e.next=11;break;case 10:throw new Error(t.error||"get user info fail");case 11:e.next=17;break;case 13:throw e.prev=13,e.t0=e.catch(2),_o.error(e.t0.message),e.t0;case 17:case"end":return e.stop()}}),e,null,[[2,13]])})))()},generateToken:function(){return g()(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,IF.account.loading.start(),e.next=4,Tq.generateSecretKey();case 4:if("200"!==(t=e.sent).code){e.next=16;break}return e.next=8,Tq.generateToken(t.secretKey);case 8:if("200"!==(n=e.sent).code){e.next=13;break}IF.account.token.set(n.token),e.next=14;break;case 13:throw new Error(n.error||"generate token fail.");case 14:e.next=17;break;case 16:throw new Error(t.error||"generate secret key fail.");case 17:e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(0),_o.error(e.t0.message),e.t0;case 23:return e.prev=23,IF.account.loading.stop(),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[0,19,23,26]])})))()},getUserSetting:function(e,t){return g()(v().mark((function n(){var r;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,Tq.getUserSetting(e,t);case 3:if(200===(r=n.sent).code){n.next=8;break}return n.abrupt("return",null);case 8:return n.abrupt("return",r.data);case 9:n.next=15;break;case 11:throw n.prev=11,n.t0=n.catch(0),_o.error(n.t0.message),n.t0;case 15:case"end":return n.stop()}}),n,null,[[0,11]])})))()},saveUserSetting:function(e,t,n,r,i){return g()(v().mark((function o(){var a;return v().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,Tq.saveUserSetting(t,n,r,i);case 3:if(200===(a=o.sent).code){o.next=8;break}throw new Error(a.error||"save user setting fail");case 8:_o.success(e+" success");case 9:o.next=15;break;case 11:throw o.prev=11,o.t0=o.catch(0),_o.error(o.t0.message),o.t0;case 15:case"end":return o.stop()}}),o,null,[[0,11]])})))()},configureSentry:function(){jF.user.isLogin&&function(e){TU("setUser",e)}({email:jF.user.email,id:jF.user.id,name:jF.user.name})},account:{show:function(){IF.account.show(),RU.user.getInfoWhenLogin()}},schema:{getList:function(e){return g()(v().mark((function t(){var n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,(null==e?void 0:e.loading)&&IF.user.schema.loading.start(),t.next=4,Tq.schema.display();case 4:if(200!==(n=t.sent).code){t.next=9;break}IF.user.schema.list.set(n.data),t.next=10;break;case 9:throw new Error(n.error||"get schema list fail");case 10:t.next=16;break;case 12:throw t.prev=12,t.t0=t.catch(0),_o.error(t.t0.message),t.t0;case 16:return t.prev=16,(null==e?void 0:e.loading)&&IF.user.schema.loading.stop(),t.finish(16);case 19:case"end":return t.stop()}}),t,null,[[0,12,16,19]])})))()},show:function(){return g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:IF.user.schema.dbvendor.set(oy(jF.license.vendor.current)),RU.user.schema.getList({loading:!0}),IF.user.schema.show();case 3:case"end":return e.stop()}}),e)})))()}}};function AU(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 DU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AU(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NU=function(e){var t,n=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.graph).findById(e.graphId);return DU(DU({},PU(n)),{},{column:e.title})},PU=function(e){var t={database:null==e?void 0:e.database,schema:null==e?void 0:e.schema,table:null==e?void 0:e.title,tableType:null==e?void 0:e.type};return"DEFAULT"===t.database&&delete t.database,"DEFAULT"===t.schema&&delete t.schema,t},IU={call:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];hm[e].forEach((function(e){e.apply(void 0,n)}))},onFieldClick:function(e){var t,n,r,i,o,a=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.graph).findById(e.graphId),s=DU(DU({},NU(e)),{},{source:{columns:[],tables:[]},target:{columns:[],tables:[]}});null!=a&&a.backwards.field&&(s.source.columns=ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.field).findByIds(Object.keys(null==a?void 0:a.backwards.field)).map(NU));null!=a&&a.backwards.graph&&(s.source.tables=ky(null===(r=jF.sqlflow.current)||void 0===r?void 0:r.graph).findByIds(Object.keys(null==a?void 0:a.backwards.graph)).map(PU));null!=a&&a.forwards.field&&(s.target.columns=ky(null===(i=jF.sqlflow.current)||void 0===i?void 0:i.field).findByIds(Object.keys(null==a?void 0:a.forwards.field)).map(NU));null!=a&&a.forwards.graph&&(s.target.tables=ky(null===(o=jF.sqlflow.current)||void 0===o?void 0:o.graph).findByIds(Object.keys(null==a?void 0:a.forwards.graph)).map(PU));"DEFAULT"===s.database&&delete s.database,"DEFAULT"===s.schema&&delete s.schema,IU.call(Mg.onFieldClick,s)},onTableNameClick:function(e){var t={database:null==e?void 0:e.database,schema:null==e?void 0:e.schema,table:null==e?void 0:e.title};"DEFAULT"===t.database&&delete t.database,"DEFAULT"===t.schema&&delete t.schema,IU.call(Mg.onTableNameClick,t)}},jU={visualize:function(e){return g()(v().mark((function t(){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=jF.sqlflow.visualize,t.prev=1,null!=e&&e.activateTab&&IF.tab.current.set(xg.er),IF.loading.er.spinning.start(),t.t0=n.er.type,t.next=t.t0===bg.sql?7:t.t0===bg.json?16:t.t0===bg.sessionSelectGraph?23:47;break;case 7:return r={sqltext:n.er.sqltext,dbvendor:oy(jF.license.vendor.current)},t.next=10,Mq.graph(r);case 10:if(200===(i=t.sent).code){t.next=13;break}throw new Error(i.error||i.message||"analyze ER diagram fail.");case 13:return o=JR({request:r,response:i,visualize:n}),IF.er.current.set(o),t.abrupt("break",50);case 16:if(null!=e&&e.json){t.next=18;break}return t.abrupt("break",50);case 18:return a={dbvendor:oy(jF.license.vendor.current)},s=e.json,l=JR({request:a,response:s,visualize:n,layout:e.layout}),IF.er.current.set(l),t.abrupt("break",50);case 23:if(d=n.er.select.dbo,h=null===(c=jF.sqlflow.current)||void 0===c?void 0:c.sessionId){t.next=27;break}throw new Error("sessionId is invalid");case 27:return f=null===(u=jF.sqlflow.visualize.job)||void 0===u?void 0:u.jobId,t.prev=28,d&&IF.explorer.loading.start({dbo:d}),p={dbvendor:oy(jF.license.vendor.current),sessionId:h,jobId:f,database:"DEFAULT"===(null==d?void 0:d.database)||null==d?void 0:d.database,schema:"DEFAULT"===(null==d?void 0:d.schema)||null==d?void 0:d.schema,table:null==d?void 0:d.table,column:null==d?void 0:d.column},t.next=33,Mq.graph(p);case 33:if(200===(g=t.sent).code){t.next=36;break}throw new Error(g.error||g.message||"analyze ER diagram fail.");case 36:m=JR({request:p,response:g,visualize:n}),IF.er.current.set(m),t.next=43;break;case 40:throw t.prev=40,t.t1=t.catch(28),t.t1;case 43:return t.prev=43,IF.explorer.loading.stop(),t.finish(43);case 46:return t.abrupt("break",50);case 47:throw n.er.type,new Error("never");case 50:t.next=56;break;case 52:throw t.prev=52,t.t2=t.catch(1),_o.error(t.t2.message),t.t2;case 56:return t.prev=56,IF.loading.er.spinning.stop(),t.finish(56);case 59:case"end":return t.stop()}}),t,null,[[1,52,56,59],[28,40,43,46]])})))()},visualizeSQL:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.er.visualize.type.set(bg.sql),IF.er.visualize.sqltext.set(jF.setting.sqltext),IF.er.visualize.dbvendor.set(oy(jF.license.vendor.current)),t.next=5,RU.er.visualize(e);case 5:case"end":return t.stop()}}),t)})))()},visualizeDbo:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return IF.er.visualize.type.set(bg.sessionSelectGraph),IF.er.visualize.select.set(e),IF.er.visualize.sqltext.set(""),t.next=5,RU.er.visualize(e);case 5:case"end":return t.stop()}}),t)})))()},visualizeJSON:function(e){return g()(v().mark((function t(){var n,r;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.json,r=e.layout,IF.er.visualize.type.set(bg.json),t.next=4,RU.er.visualize({activateTab:!0,json:n,layout:r});case 4:case"end":return t.stop()}}),t)})))()},visualzeRefresh:function(){return g()(v().mark((function e(){var t,n,r,i,o,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=jF.sqlflow.visualize,e.t0=jF.sqlflow.visualize.type,e.next=e.t0===yg.sql?5:e.t0===yg.job||e.t0===yg.sessionSelectGraph?10:19;break;case 5:if(t.sqltext.value!==t.er.sqltext||t.dbvendor!==t.er.dbvendor){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,jU.visualizeSQL();case 9:case 18:return e.abrupt("break",20);case 10:if(o=t.select.dbo,a=null===(n=jF.sqlflow.visualize.job)||void 0===n?void 0:n.jobId,!o||o.id!==(null===(r=t.er.select.dbo)||void 0===r?void 0:r.id)){e.next=14;break}return e.abrupt("return");case 14:if(o||a!==(null===(i=jF.er.current)||void 0===i?void 0:i.request.jobId)){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,jU.visualizeDbo({dbo:o});case 19:throw new Error("never");case 20:e.next=26;break;case 22:throw e.prev=22,e.t1=e.catch(0),_o.error(e.t1.message),e.t1;case 26:case"end":return e.stop()}}),e,null,[[0,22]])})))()},saveAsPNG:function(){var e;null===(e=RF.er.graph)||void 0===e||e.toPNG((function(e){YM.downloadDataUri(e,"er_".concat(Date.now(),".png"))}),{padding:40,copyStyles:!1,backgroundColor:"#eee",quality:1,stylesheet:"\n body {\n margin: 0;\n }\n "})}},RU={body:zF,checkout:YF,editor:BF,graph:qz,job:Lq,lineage:jq,map:Aq,setting:Rq,share:zq,sqlflow:Jq,user:LU,version:{request:function(){return g()(v().mark((function e(){var t;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Sq.getVersion();case 3:if(!(t=e.sent).version){e.next=8;break}IF.version.set(t),e.next=9;break;case 8:throw new Error("get version fail");case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),_o.error(e.t0.message);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))()}},event:IU,er:jU},FU=y.memo((function(e){var t=e.size;return y.createElement("div",{className:"Close",onClick:e.onClose,style:{width:t,height:t}},y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M622.8992 512l256.192-256.192c19.2576-19.264 22.5472-47.2128 7.3472-62.4064l-55.8592-55.8592c-15.2-15.2-43.1104-11.8656-62.4064 7.3856L512.0064 401.1136 255.8208 144.9344c-19.264-19.2832-47.2128-22.592-62.4128-7.3728l-55.8592 55.8656c-15.1936 15.1744-11.904 43.1232 7.3856 62.3872l256.192 256.1856-256.192 256.2048c-19.2576 19.2512-22.592 47.1808-7.3856 62.3808l55.8592 55.8656c15.2 15.2 43.1488 11.904 62.4128-7.3536l256.1984-256.2048 256.16 256.1664c19.296 19.3024 47.2064 22.592 62.4064 7.392l55.8592-55.8656c15.1936-15.2 11.904-43.1296-7.3472-62.4064L622.8992 512 622.8992 512zM622.8992 512"})))})),zU=y.memo((function(e){var t=e.size;return y.createElement("div",{className:"Close",onClick:e.onClose,style:{width:t,height:t}},y.createElement("svg",{viewBox:"0 0 1024 1024"},y.createElement("path",{d:"M730.805378 972.127585 730.805378 972.127585 730.805378 972.127585 730.805378 972.127585zM663.606907 84.945671l67.299779 0 0 87.195921L443.874413 489.922169 730.906685 812.252365l0 85.977163-68.416206 0-375.174752-406.03255L663.606907 84.945671z"})))})),YU=y.memo((function(e){var t=e.radius,n=e.right,r=e.left,i=e.size,o={marginRight:n,marginLeft:r,width:i,height:i};return y.createElement("div",{className:"Loading",style:o},y.createElement("svg",{viewBox:"25 25 50 50"},y.createElement("circle",{cx:"50",cy:"50",r:null!=t?t:"20",fill:"none"})))})),BU={Icon:{Close:FU,Loading:YU,SQL:y.memo((function(e){return y.createElement("svg",{className:"sql",viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M298.337 320.634l-55.116 48.677c-19.402-26.983-39.066-40.39-59.171-40.39-9.789 0-17.726 2.645-23.986 7.849-6.174 5.204-9.347 11.109-9.347 17.726 0 6.525 2.207 12.787 6.702 18.606 6.001 7.849 24.252 24.605 54.587 50.266 28.396 23.723 45.678 38.714 51.677 44.973 15.081 15.254 25.837 29.806 32.099 43.741 6.26 13.933 9.434 29.101 9.434 45.595 0 32.099-11.109 58.641-33.246 79.54-22.223 20.899-51.147 31.396-86.773 31.396-27.868 0-52.116-6.79-72.841-20.46-20.636-13.67-38.359-35.095-53.087-64.375l62.611-37.742c18.783 34.57 40.476 51.852 64.992 51.852 12.787 0 23.547-3.703 32.276-11.2 8.731-7.407 13.052-16.048 13.052-25.837 0-8.907-3.263-17.726-9.877-26.63-6.614-8.907-21.074-22.396-43.387-40.653-42.592-34.745-70.194-61.554-82.627-80.425s-18.606-37.742-18.606-56.527c0-27.158 10.316-50.443 31.042-69.842 20.636-19.402 46.207-29.103 76.545-29.103 19.489 0 38.097 4.499 55.823 13.581 17.542 8.908 36.678 25.398 57.227 49.386v0z"}),y.createElement("path",{d:"M684.673 601.499l68.078 88.006h-88.182l-34.57-44.533c-28.57 15.695-60.495 23.455-95.591 23.455-58.729 0-107.585-20.283-146.474-60.758-38.89-40.476-58.288-88.801-58.288-144.798 0-37.389 9.082-71.783 27.158-103.087s42.945-56.174 74.69-74.605c31.657-18.429 65.699-27.69 102.029-27.69 55.555 0 103.174 20.017 143.035 60.141 39.86 40.036 59.79 88.89 59.79 146.563 0 53.088-17.283 98.765-51.677 137.303v0zM638.197 541.357c15.787-23.371 23.633-49.295 23.633-77.691 0-37.036-12.523-68.518-37.567-94.447-25.044-25.837-55.291-38.799-90.827-38.799-36.595 0-67.194 12.61-91.886 37.742-24.692 25.221-37.036 57.143-37.036 96.031 0 43.297 15.518 77.514 46.651 102.646 24.339 19.663 51.94 29.541 82.893 29.541 17.726 0 34.481-3.44 50.087-10.406l-70.018-90.124h88.801l35.275 45.503z"}),y.createElement("path",{d:"M779.294 267.37h74.426v320.198h108.554v70.99h-182.981v-391.184z"}))})),SQLText:y.memo((function(e){return y.createElement("svg",{className:"sqltext",viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M128 384h384V0h384v1024H128V384z m1.408-85.312L426.688 0.256v298.432H129.408z m119.488 472.704c1.6 18.496 8.384 33.728 20.416 45.76 11.968 11.968 33.536 17.92 64.704 17.92 17.792 0 32.512-2.56 44.16-7.68a60.992 60.992 0 0 0 27.264-22.528 58.112 58.112 0 0 0 9.728-32.512 51.52 51.52 0 0 0-7.296-27.072 55.936 55.936 0 0 0-23.424-20.352c-10.688-5.44-28.416-10.88-53.12-16.192-10.048-2.048-16.384-4.288-19.008-6.72-2.752-2.368-4.16-4.992-4.16-7.872a12.8 12.8 0 0 1 4.992-10.24c3.328-2.752 8.32-4.16 14.912-4.16 8 0 14.272 1.92 18.816 5.632 4.48 3.776 7.488 9.728 8.96 17.984l53.312-3.136c-2.304-18.944-9.6-32.832-21.952-41.536-12.288-8.704-30.08-13.056-53.504-13.056-19.136 0-34.112 2.368-45.12 7.168a54.336 54.336 0 0 0-24.576 19.776 48 48 0 0 0-8.192 26.688 44.8 44.8 0 0 0 16 35.392c10.56 9.216 28.288 16.64 53.12 22.208 15.168 3.328 24.832 6.912 28.992 10.624a16.832 16.832 0 0 1 6.272 12.8 17.024 17.024 0 0 1-6.592 13.12 27.712 27.712 0 0 1-18.688 5.76c-10.88 0-19.2-3.776-24.96-11.2A41.088 41.088 0 0 1 302.72 768l-53.888 3.392z m391.36-122.624V832h145.024v-45.12h-88.32v-138.112h-56.704z m-42.176 156.48c13.376-16.256 20.032-37.888 20.032-65.024 0-30.4-8.32-53.76-24.832-70.08-16.512-16.384-40-24.512-70.4-24.512-29.888 0-53.12 8.32-69.76 25.024-16.64 16.768-24.896 40.192-24.896 70.4 0 31.04 9.472 55.168 28.48 72.32 16.128 14.528 38.08 21.76 65.92 21.76 18.816 0 34.496-2.688 46.976-8.128 3.072 2.688 8.512 6.656 16.256 11.904 7.744 5.312 15.552 9.856 23.488 13.696l15.744-31.744a152.832 152.832 0 0 1-13.12-6.4 264.768 264.768 0 0 1-13.888-9.216z m-43.328-28.992c4.48-8.064 6.72-20.16 6.72-36.224 0-18.56-3.456-31.744-10.304-39.68a35.712 35.712 0 0 0-28.416-11.84 34.496 34.496 0 0 0-27.392 12.16c-7.04 8.064-10.496 20.672-10.496 37.824 0 20.032 3.392 34.048 10.24 42.112 6.848 8.128 16.192 12.16 28.16 12.16 3.84 0 7.424-0.384 10.88-1.152a70.08 70.08 0 0 0-22.528-12.992l8.832-20.352a48.128 48.128 0 0 1 11.712 3.328c2.816 1.344 8.256 4.864 16.32 10.496 1.92 1.344 3.968 2.752 6.272 4.16z"}))})),ZoomIn:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M426.666667 426.666667V0h170.666666v426.666667h426.666667v170.666666H597.333333v426.666667H426.666667V597.333333H0V426.666667h426.666667z"}))})),ZoomOut:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M0 426.656h1024v170.656H0v-170.656z"}))})),Reset:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1026 1024",version:"1.1"},y.createElement("path",{d:"M1026.240435 439.0084h-365.619126l145.296653-145.369653a365.619125 365.619125 0 1 0 57.987861 320.136234l131.622685 65.810843a511.867775 511.867775 0 1 1-85.919794-489.929828L1026.239435 73.389274v365.619126z"}))})),Info:y.memo((function(e){return y.createElement("svg",{className:"info",viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M512 0C229.248 0 0 229.248 0 512s229.248 512 512 512 512-229.248 512-512S794.752 0 512 0zM576 832 448 832 448 384l128 0L576 832zM576 320 448 320 448 192l128 0L576 320z"}))})),Setting:y.memo((function(e){return y.createElement("svg",{className:"info",viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M940.8 512C940.8 454.4 972.8 403.2 1024 384 998.4 294.4 947.2 211.2 883.2 147.2 838.4 179.2 774.4 185.6 723.2 160 672 128 646.4 76.8 652.8 19.2 608 6.4 556.8 0 512 0 460.8 0 416 6.4 371.2 19.2 377.6 70.4 352 128 300.8 160 249.6 192 185.6 185.6 140.8 147.2 76.8 211.2 25.6 294.4 0 384 51.2 403.2 83.2 454.4 83.2 512 83.2 569.6 51.2 620.8 0 640 25.6 729.6 76.8 812.8 140.8 876.8 185.6 844.8 249.6 838.4 300.8 864 352 896 377.6 947.2 371.2 1004.8 416 1017.6 467.2 1024 512 1024 563.2 1024 608 1017.6 652.8 1004.8 646.4 953.6 672 896 723.2 864 774.4 832 838.4 838.4 883.2 876.8 947.2 812.8 998.4 729.6 1024 640 972.8 620.8 940.8 569.6 940.8 512L940.8 512ZM512 723.2C390.4 723.2 294.4 627.2 294.4 512 294.4 396.8 390.4 300.8 512 300.8 633.6 300.8 729.6 396.8 729.6 512 729.6 627.2 633.6 723.2 512 723.2ZM512 640C582.692448 640 640 582.692448 640 512 640 441.307552 582.692448 384 512 384 441.307552 384 384 441.307552 384 512 384 582.692448 441.307552 640 512 640Z"}))})),Locate:y.memo((function(e){return y.createElement("svg",{className:Y()("locate",{disabled:e.disabled}),viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M512 902.4a390.4 390.4 0 1 1 0-780.8 390.4 390.4 0 0 1 0 780.8z m0-64a326.4 326.4 0 1 0 0-652.8 326.4 326.4 0 0 0 0 652.8z"}),y.createElement("path",{d:"M870.4 544a32 32 0 1 1 0-64h102.4a32 32 0 1 1 0 64h-102.4z"}),y.createElement("path",{d:"M512 512m-204.8 0a204.8 204.8 0 1 0 409.6 0 204.8 204.8 0 1 0-409.6 0Z"}),y.createElement("path",{d:"M544 153.6a32 32 0 1 1-64 0V51.2a32 32 0 1 1 64 0v102.4zM480 870.4a32 32 0 1 1 64 0v102.4a32 32 0 1 1-64 0v-102.4zM153.6 480a32 32 0 1 1 0 64H51.2a32 32 0 1 1 0-64h102.4z"}))})),Menu:y.memo((function(e){return y.createElement("svg",{className:"menu",viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M793.6 921.6H230.4a40.96 40.96 0 0 1-40.96-40.96V215.04a40.96 40.96 0 0 1 40.96-40.96h95.744a40.96 40.96 0 0 1 0 81.92H271.36v583.68h481.28V256h-54.77888a40.96 40.96 0 0 1 0-81.92H793.6a40.96 40.96 0 0 1 40.96 40.96v665.6a40.96 40.96 0 0 1-40.96 40.96z"}),y.createElement("path",{d:"M665.6 337.92H358.4a40.96 40.96 0 0 1-40.96-40.96V143.36a40.96 40.96 0 0 1 40.96-40.96h307.2a40.96 40.96 0 0 1 40.96 40.96v153.6a40.96 40.96 0 0 1-40.96 40.96zM399.36 256h225.28V184.32H399.36v71.68zM506.88 665.6H373.76a40.96 40.96 0 0 1 0-81.92h133.12a40.96 40.96 0 0 1 0 81.92zM660.48 512H373.76a40.96 40.96 0 0 1 0-81.92h286.72a40.96 40.96 0 0 1 0 81.92z"}))})),Fold:zU}},HU=["className","size","cover","contain","url","style"];function qU(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 UU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qU(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var VU=y.memo((function(e){var t=e.className,n=(e.size,e.cover),r=e.contain,i=e.url,o=e.style,a=Bq()(e,HU);return y.createElement("div",_m()({className:Y()(t,"Image",{cover:n,contain:r}),style:UU(UU({},o),{},{backgroundImage:"url('".concat(i,"')")})},a))})),WU=["x","y","className"],GU=y.forwardRef((function(e,t){var n=e.x,r=void 0===n?"start":n,i=e.y,o=void 0===i?"stretch":i,a=e.className,s=Bq()(e,WU);return y.createElement("div",_m()({className:Y()(a,"Row","x-"+r,"y-"+o)},s,{ref:t}))})),$U=["x","y","className"],KU=y.forwardRef((function(e,t){var n=e.x,r=void 0===n?"stretch":n,i=e.y,o=void 0===i?"start":i,a=e.className,s=Bq()(e,$U);return y.createElement("div",_m()({className:Y()(a,"Col","x-"+r,"y-"+o),ref:t},s))})),JU=y.memo((function(e){var t=y.useRef({subscription:null,panel:null,drag:null});y.useEffect((function(){t.current.panel&&(t.current.panel.style.width="".concat(e.width,"px"))}),[e.width]);var n=fm((function(n){var r;t.current.panel=n,null===(r=t.current.subscription)||void 0===r||r.unsubscribe();var i=t.current.drag;if(i&&n){var o=zz(window,"mouseup"),a=zz(document.body,"mousemove"),s=zz(i,"mousedown");t.current.subscription=s.pipe(Dq((function(t){if(0!==t.button)return Bz;t.preventDefault(),RU.body.select.disable(),i.classList.add("moving"),o.pipe(Hz(1)).subscribe((function(){RU.body.select.enable(),i.classList.remove("moving"),e.onWidthChange(n.offsetWidth)}));var r=n.offsetWidth;return a.pipe(Nq(o),Sz((function(i){i.preventDefault();var o=i.clientX-t.clientX,a=cy(r+o,e.minWidth,.7*document.body.offsetWidth);return n.style.width="".concat(a,"px"),a})),Sz((function(t){var n;null===(n=e.onWidthResize)||void 0===n||n.call(e,t)})))}))).subscribe()}}));return y.createElement("div",{className:"LeftPanel",ref:n},e.children,y.createElement("div",{className:"drag",ref:function(e){return t.current.drag=e}}))}));function XU(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return y.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(XU(e)):(0,A.isFragment)(e)&&e.props?n=n.concat(XU(e.props.children,t)):n.push(e))})),n}var ZU={};function QU(e,t){0}function eV(e,t,n){t||ZU[n]||(e(!1,n),ZU[n]=!0)}var tV=function(e,t){eV(QU,e,t)},nV=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},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}()}(),rV="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,iV=void 0!==__webpack_require__.g&&__webpack_require__.g.Math===Math?__webpack_require__.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),oV="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(iV):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var aV=["top","right","bottom","left","width","height","size","weight"],sV="undefined"!=typeof MutationObserver,lV=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&s()}function a(){oV(o)}function s(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);i=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){rV&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sV?(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)},e.prototype.disconnect_=function(){rV&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=aV.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),cV=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},uV=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||iV},dV=vV(0,0,0,0);function hV(e){return parseFloat(e)||0}function fV(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+hV(e["border-"+n+"-width"])}),0)}function pV(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return dV;var r=uV(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=hV(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=hV(r.width),l=hV(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=fV(r,"left","right")+o),Math.round(l+a)!==n&&(l-=fV(r,"top","bottom")+a)),!function(e){return e===uV(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return vV(i.left,i.top,s,l)}var gV="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof uV(e).SVGGraphicsElement}:function(e){return e instanceof uV(e).SVGElement&&"function"==typeof e.getBBox};function mV(e){return rV?gV(e)?function(e){var t=e.getBBox();return vV(0,0,t.width,t.height)}(e):pV(e):dV}function vV(e,t,n,r){return{x:e,y:t,width:n,height:r}}var yV=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=vV(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=mV(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),bV=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return cV(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}(t);cV(this,{target:e,contentRect:n})},wV=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new nV,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof uV(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new yV(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof uV(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new bV(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_V="undefined"!=typeof WeakMap?new WeakMap:new nV,xV=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=lV.getInstance(),r=new wV(t,n,this);_V.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){xV.prototype[e]=function(){var t;return(t=_V.get(this))[e].apply(t,arguments)}}));var EV=void 0!==iV.ResizeObserver?iV.ResizeObserver:xV,CV=function(e){K(n,e);var t=ee(n);function n(){var e;return V(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,r=t[0].target,i=r.getBoundingClientRect(),o=i.width,a=i.height,s=r.offsetWidth,l=r.offsetHeight,c=Math.floor(o),u=Math.floor(a);if(e.state.width!==c||e.state.height!==u||e.state.offsetWidth!==s||e.state.offsetHeight!==l){var d={width:c,height:u,offsetWidth:s,offsetHeight:l};e.setState(d),n&&Promise.resolve().then((function(){n(U(U({},d),{},{offsetWidth:s,offsetHeight:l}),r)}))}},e.setChildNode=function(t){e.childNode=t},e}return G(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=ae(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new EV(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=XU(this.props.children);if(e.length>1)tV(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===e.length)return tV(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var t=e[0];if(y.isValidElement(t)&&ce(t)){var n=t.ref;e[0]=y.cloneElement(t,{ref:le(n,this.setChildNode)})}return 1===e.length?e[0]:e.map((function(e,t){return!y.isValidElement(e)||"key"in e&&null!==e.key?e:y.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(y.Component);CV.displayName="ResizeObserver";var kV=CV;function SV(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 TV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SV(Object(n),!0).forEach((function(t){MV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function MV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OV=y.forwardRef((function(e,t){var n=e.height,r=e.offset,i=e.children,o=e.prefixCls,a=e.onInnerResize,s={},l={display:"flex",flexDirection:"column"};return void 0!==r&&(s={height:n,position:"relative",overflow:"hidden"},l=TV(TV({},l),{},{transform:"translateY(".concat(r,"px)"),position:"absolute",left:0,right:0,top:0})),y.createElement("div",{style:s},y.createElement(kV,{onResize:function(e){e.offsetHeight&&a&&a()}},y.createElement("div",{style:l,className:Y()(MV({},"".concat(o,"-holder-inner"),o)),ref:t},i)))}));OV.displayName="Filler";var LV=OV;function AV(e){return AV="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},AV(e)}function DV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NV(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 PV(e,t){return PV=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},PV(e,t)}function IV(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=jV(e);if(t){var i=jV(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===AV(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function jV(e){return jV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jV(e)}function RV(e){return"touches"in e?e.touches[0].pageY:e.pageY}var FV=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&&PV(e,t)}(o,e);var t,n,r,i=IV(o);function o(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).moveRaf=null,e.scrollbarRef=y.createRef(),e.thumbRef=y.createRef(),e.visibleTimeout=null,e.state={dragging:!1,pageY:null,startTop:null,visible:!1},e.delayHidden=function(){clearTimeout(e.visibleTimeout),e.setState({visible:!0}),e.visibleTimeout=setTimeout((function(){e.setState({visible:!1})}),2e3)},e.onScrollbarTouchStart=function(e){e.preventDefault()},e.onContainerMouseDown=function(e){e.stopPropagation(),e.preventDefault()},e.patchEvents=function(){window.addEventListener("mousemove",e.onMouseMove),window.addEventListener("mouseup",e.onMouseUp),e.thumbRef.current.addEventListener("touchmove",e.onMouseMove),e.thumbRef.current.addEventListener("touchend",e.onMouseUp)},e.removeEvents=function(){window.removeEventListener("mousemove",e.onMouseMove),window.removeEventListener("mouseup",e.onMouseUp),e.scrollbarRef.current.removeEventListener("touchstart",e.onScrollbarTouchStart),e.thumbRef.current.removeEventListener("touchstart",e.onMouseDown),e.thumbRef.current.removeEventListener("touchmove",e.onMouseMove),e.thumbRef.current.removeEventListener("touchend",e.onMouseUp),je.cancel(e.moveRaf)},e.onMouseDown=function(t){var n=e.props.onStartMove;e.setState({dragging:!0,pageY:RV(t),startTop:e.getTop()}),n(),e.patchEvents(),t.stopPropagation(),t.preventDefault()},e.onMouseMove=function(t){var n=e.state,r=n.dragging,i=n.pageY,o=n.startTop,a=e.props.onScroll;if(je.cancel(e.moveRaf),r){var s=o+(RV(t)-i),l=e.getEnableScrollRange(),c=e.getEnableHeightRange(),u=c?s/c:0,d=Math.ceil(u*l);e.moveRaf=je((function(){a(d)}))}},e.onMouseUp=function(){var t=e.props.onStopMove;e.setState({dragging:!1}),t(),e.removeEvents()},e.getSpinHeight=function(){var t=e.props,n=t.height,r=n/t.count*10;return r=Math.max(r,20),r=Math.min(r,n/2),Math.floor(r)},e.getEnableScrollRange=function(){var t=e.props;return t.scrollHeight-t.height||0},e.getEnableHeightRange=function(){return e.props.height-e.getSpinHeight()||0},e.getTop=function(){var t=e.props.scrollTop,n=e.getEnableScrollRange(),r=e.getEnableHeightRange();return 0===t||0===n?0:t/n*r},e.showScroll=function(){var t=e.props,n=t.height;return t.scrollHeight>n},e}return t=o,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props.prefixCls,i=this.getSpinHeight(),o=this.getTop(),a=this.showScroll(),s=a&&n;return y.createElement("div",{ref:this.scrollbarRef,className:Y()("".concat(r,"-scrollbar"),DV({},"".concat(r,"-scrollbar-show"),a)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:s?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},y.createElement("div",{ref:this.thumbRef,className:Y()("".concat(r,"-scrollbar-thumb"),DV({},"".concat(r,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:i,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&NV(t.prototype,n),r&&NV(t,r),o}(y.Component);function zV(e){var t=e.children,n=e.setRef,r=y.useCallback((function(e){n(e)}),[]);return y.cloneElement(t,{ref:r})}function YV(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)}}var BV=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maps=void 0,this.maps={},this.maps.prototype=null}var t,n,r;return t=e,n=[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}],n&&YV(t.prototype,n),r&&YV(t,r),e}(),HV=BV;function qV(e,t){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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return UV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UV(e,t)}(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 UV(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 VV(e){return VV="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},VV(e)}function WV(e,t){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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return GV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GV(e,t)}(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 GV(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 $V(e,t,n){var r=WV(y.useState(e),2),i=r[0],o=r[1],a=WV(y.useState(null),2),s=a[0],l=a[1];return y.useEffect((function(){var r=function(e,t,n){var r,i,o=e.length,a=t.length;if(0===o&&0===a)return null;o<a?(r=e,i=t):(r=t,i=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var c=null,u=1!==Math.abs(o-a),d=0;d<i.length;d+=1){var h=l(r[d]);if(h!==l(i[d])){c=d,u=u||h!==l(i[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),l(e[r.index])),o(e)}),[e]),[s]}function KV(e){return KV="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},KV(e)}var JV="object"===("undefined"==typeof navigator?"undefined":KV(navigator))&&/Firefox/i.test(navigator.userAgent),XV=function(e,t){var n=(0,y.useRef)(!1),r=(0,y.useRef)(null);var i=(0,y.useRef)({top:e,bottom:t});return i.current.top=e,i.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=e<0&&i.current.top||e>0&&i.current.bottom;return t&&o?(clearTimeout(r.current),n.current=!1):o&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&o}};var ZV=14/15;var QV=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll"];function eW(){return eW=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},eW.apply(this,arguments)}function tW(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 nW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tW(Object(n),!0).forEach((function(t){rW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iW(e,t){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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return oW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oW(e,t)}(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 oW(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 aW(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var sW=[],lW={overflowY:"auto",overflowAnchor:"none"};function cW(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,o=e.height,a=e.itemHeight,s=e.fullHeight,l=void 0===s||s,c=e.style,u=e.data,d=e.children,h=e.itemKey,f=e.virtual,p=e.component,g=void 0===p?"div":p,m=e.onScroll,v=aW(e,QV),b=!(!1===f||!o||!a),w=b&&u&&a*u.length>o,_=iW((0,y.useState)(0),2),x=_[0],E=_[1],C=iW((0,y.useState)(!1),2),k=C[0],S=C[1],T=Y()(r,i),M=u||sW,O=(0,y.useRef)(),L=(0,y.useRef)(),A=(0,y.useRef)(),D=y.useCallback((function(e){return"function"==typeof h?h(e):null==e?void 0:e[h]}),[h]),N={getKey:D};function P(e){E((function(t){var n=function(e){var t=e;Number.isNaN(X.current)||(t=Math.min(t,X.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return O.current.scrollTop=n,n}))}var I=(0,y.useRef)({start:0,end:M.length}),j=(0,y.useRef)(),R=iW($V(M,D),1)[0];j.current=R;var F=function(e,t,n){var r=qV(y.useState(0),2),i=r[0],o=r[1],a=(0,y.useRef)(new Map),s=(0,y.useRef)(new HV),l=(0,y.useRef)(0);function c(){l.current+=1;var e=l.current;Promise.resolve().then((function(){e===l.current&&(a.current.forEach((function(e,t){if(e&&e.offsetParent){var n=ae(e),r=n.offsetHeight;s.current.get(t)!==r&&s.current.set(t,n.offsetHeight)}})),o((function(e){return e+1})))}))}return[function(r,i){var o=e(r),s=a.current.get(o);i?(a.current.set(o,i),c()):a.current.delete(o),!s!=!i&&(i?null==t||t(r):null==n||n(r))},c,s.current,i]}(D,null,null),z=iW(F,4),B=z[0],H=z[1],q=z[2],U=z[3],V=y.useMemo((function(){if(!b)return{scrollHeight:void 0,start:0,end:M.length-1,offset:void 0};var e;if(!w)return{scrollHeight:(null===(e=L.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:M.length-1,offset:void 0};for(var t,n,r,i=0,s=M.length,l=0;l<s;l+=1){var c=M[l],u=D(c),d=q.get(u),h=i+(void 0===d?a:d);h>=x&&void 0===t&&(t=l,n=i),h>x+o&&void 0===r&&(r=l),i=h}return void 0===t&&(t=0,n=0),void 0===r&&(r=M.length-1),{scrollHeight:i,start:t,end:r=Math.min(r+1,M.length),offset:n}}),[w,b,x,M,U,o]),W=V.scrollHeight,G=V.start,$=V.end,K=V.offset;I.current.start=G,I.current.end=$;var J=W-o,X=(0,y.useRef)(J);X.current=J;var Z=x<=0,Q=x>=J,ee=XV(Z,Q);var te=function(e,t,n,r){var i=(0,y.useRef)(0),o=(0,y.useRef)(null),a=(0,y.useRef)(null),s=(0,y.useRef)(!1),l=XV(t,n);return[function(t){if(e){je.cancel(o.current);var n=t.deltaY;i.current+=n,a.current=n,l(n)||(JV||t.preventDefault(),o.current=je((function(){var e=s.current?10:1;r(i.current*e),i.current=0})))}},function(t){e&&(s.current=t.detail===a.current)}]}(b,Z,Q,(function(e){P((function(t){return t+e}))})),ne=iW(te,2),re=ne[0],ie=ne[1];!function(e,t,n){var r,i=(0,y.useRef)(!1),o=(0,y.useRef)(0),a=(0,y.useRef)(null),s=(0,y.useRef)(null),l=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageY),r=o.current-t;o.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=ZV,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},c=function(){i.current=!1,r()},u=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,o.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",c))};r=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",c))},y.useLayoutEffect((function(){return e&&t.current.addEventListener("touchstart",u),function(){t.current.removeEventListener("touchstart",u),r(),clearInterval(s.current)}}),[e])}(b,O,(function(e,t){return!ee(e,t)&&(re({preventDefault:function(){},deltaY:e}),!0)})),y.useLayoutEffect((function(){function e(e){b&&e.preventDefault()}return O.current.addEventListener("wheel",re),O.current.addEventListener("DOMMouseScroll",ie),O.current.addEventListener("MozMousePixelScroll",e),function(){O.current.removeEventListener("wheel",re),O.current.removeEventListener("DOMMouseScroll",ie),O.current.removeEventListener("MozMousePixelScroll",e)}}),[b]);var oe=function(e,t,n,r,i,o,a,s){var l=y.useRef();return function(c){if(null!=c){if(je.cancel(l.current),"number"==typeof c)a(c);else if(c&&"object"===VV(c)){var u,d=c.align;u="index"in c?c.index:t.findIndex((function(e){return i(e)===c.key}));var h=c.offset,f=void 0===h?0:h;!function s(c,h){if(!(c<0)&&e.current){var p=e.current.clientHeight,g=!1,m=h;if(p){for(var v=h||d,y=0,b=0,w=0,_=Math.min(t.length,u),x=0;x<=_;x+=1){var E=i(t[x]);b=y;var C=n.get(E);y=w=b+(void 0===C?r:C),x===u&&void 0===C&&(g=!0)}var k=null;switch(v){case"top":k=b-f;break;case"bottom":k=w-p+f;break;default:var S=e.current.scrollTop;b<S?m="top":w>S+p&&(m="bottom")}null!==k&&k!==e.current.scrollTop&&a(k)}l.current=je((function(){g&&o(),s(c-1,m)}))}}(3)}}else s()}}(O,M,q,a,D,H,P,(function(){var e;null===(e=A.current)||void 0===e||e.delayHidden()}));y.useImperativeHandle(t,(function(){return{scrollTo:oe}}));var se=function(e,t,n,r,i,o){var a=o.getKey;return e.slice(t,n+1).map((function(e,n){var o=i(e,t+n,{}),s=a(e);return y.createElement(zV,{key:s,setRef:function(t){return r(e,t)}},o)}))}(M,G,$,B,d,N),le=null;return o&&(le=nW(rW({},l?"height":"maxHeight",o),lW),b&&(le.overflowY="hidden",k&&(le.pointerEvents="none"))),y.createElement("div",eW({style:nW(nW({},c),{},{position:"relative"}),className:T},v),y.createElement(g,{className:"".concat(r,"-holder"),style:le,ref:O,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==x&&P(t),null==m||m(e)}},y.createElement(LV,{prefixCls:r,height:W,offset:K,onInnerResize:H,ref:L},se)),b&&y.createElement(FV,{ref:A,prefixCls:r,scrollTop:x,height:o,scrollHeight:W,count:M.length,onScroll:function(e){P(e)},onStartMove:function(){S(!0)},onStopMove:function(){S(!1)}}))}var uW=y.forwardRef(cW);uW.displayName="List";var dW=uW;function hW(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var fW=!1,pW=y.createContext(null),gW="unmounted",mW="exited",vW="entering",yW="entered",bW="exiting",wW=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=mW,r.appearStatus=vW):i=yW:i=t.unmountOnExit||t.mountOnEnter?gW:mW,r.state={status:i},r.nextCallback=null,r}xm(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===gW?{status:mW}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==vW&&n!==yW&&(t=vW):n!==vW&&n!==yW||(t=bW)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===vW?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===mW&&this.setState({status:gW})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[b.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||fW?this.safeSetState({status:yW},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:vW},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:yW},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:b.findDOMNode(this);t&&!fW?(this.props.onExit(r),this.safeSetState({status:bW},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:mW},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:mW},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:b.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===gW)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,B(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return y.createElement(pW.Provider,{value:null},"function"==typeof n?n(e,r):y.cloneElement(y.Children.only(n),r))},t}(y.Component);function _W(){}wW.contextType=pW,wW.propTypes={},wW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_W,onEntering:_W,onEntered:_W,onExit:_W,onExiting:_W,onExited:_W},wW.UNMOUNTED=gW,wW.EXITED=mW,wW.ENTERING=vW,wW.ENTERED=yW,wW.EXITING=bW;var xW=wW,EW=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=hW(e.className,t):e.setAttribute("class",hW(e.className&&e.className.baseVal||"",t))}(e,t)}))},CW=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}xm(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}(e,t)}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&EW(e,r),i&&EW(e,i),o&&EW(e,o)},n.render=function(){var e=this.props,t=(e.classNames,B(e,["classNames"]));return y.createElement(xW,D({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(y.Component);CW.defaultProps={classNames:""},CW.propTypes={};var kW=CW;var SW="SlideUp__BJZpC",TW=y.memo((function(e){var t=e.minHeight,n=void 0===t?400:t,r=e.zIndex,i=void 0===r?25:r,o=y.useRef({container:null,drag:null,subscription:null});y.useEffect((function(){o.current.container&&(o.current.container.style.height="".concat(e.height,"px"))}),[e.height,e.visible]);var a=fm((function(t){var r,i=o.current.container=t,a=o.current.drag;if(i&&a){null===(r=o.current.subscription)||void 0===r||r.unsubscribe();var s,l,c=zz(a,"mousedown"),u=zz(document.body,"mousemove"),d=zz(window,"mouseup");o.current.subscription=c.pipe((s=function(t){RU.body.select.disable();var r=i.offsetHeight||0;return u.pipe(Nq(d),Sz((function(e){var o=e.clientY,a=t.clientY,s=cy(r-(o-a),n,.75*document.body.offsetHeight);i.style.height="".concat(s,"px")})),Qz((function(){RU.body.select.enable(),e.onHeightChange(i.offsetHeight)})))},ZF(l)?Dz(s,l,1):Dz(s,1))).subscribe()}})),s=function(e){e.stopPropagation()},l={onContextMenu:s,onMouseDown:s,onMouseMove:s};return y.createElement(kW,{in:e.visible,timeout:300,unmountOnExit:!0},y.createElement("div",_m()({className:SW,style:{zIndex:i},ref:a},l),y.createElement("div",{className:"drag",ref:function(e){return o.current.drag=e}}),e.children))})),MW=__webpack_require__(66279),OW=__webpack_require__.n(MW),LW=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},AW=(dB("small","default","large"),null);var DW=function(e){K(n,e);var t=ee(n);function n(e){var r;V(this,n),(r=t.call(this,e)).debouncifyUpdateSpinning=function(e){var t=(e||r.props).delay;t&&(r.cancelExistingSpin(),r.updateSpinning=OW()(r.originalUpdateSpinning,t))},r.updateSpinning=function(){var e=r.props.spinning;r.state.spinning!==e&&r.setState({spinning:e})},r.renderSpin=function(e){var t,n=e.getPrefixCls,i=e.direction,o=r.props,a=o.prefixCls,s=o.className,l=o.size,c=o.tip,u=o.wrapperClassName,d=o.style,h=LW(o,["prefixCls","className","size","tip","wrapperClassName","style"]),f=r.state.spinning,p=n("spin",a),g=Y()(p,(F(t={},"".concat(p,"-sm"),"small"===l),F(t,"".concat(p,"-lg"),"large"===l),F(t,"".concat(p,"-spinning"),f),F(t,"".concat(p,"-show-text"),!!c),F(t,"".concat(p,"-rtl"),"rtl"===i),t),s),m=YY(h,["spinning","delay","indicator"]),v=y.createElement("div",D({},m,{style:d,className:g}),function(e,t){var n=t.indicator,r="".concat(e,"-dot");return null===n?null:aB(n)?lB(n,{className:Y()(n.props.className,r)}):aB(AW)?lB(AW,{className:Y()(AW.props.className,r)}):y.createElement("span",{className:Y()(r,"".concat(e,"-dot-spin"))},y.createElement("i",{className:"".concat(e,"-dot-item")}),y.createElement("i",{className:"".concat(e,"-dot-item")}),y.createElement("i",{className:"".concat(e,"-dot-item")}),y.createElement("i",{className:"".concat(e,"-dot-item")}))}(p,r.props),c?y.createElement("div",{className:"".concat(p,"-text")},c):null);if(r.isNestedPattern()){var b=Y()("".concat(p,"-container"),F({},"".concat(p,"-blur"),f));return y.createElement("div",D({},m,{className:Y()("".concat(p,"-nested-loading"),u)}),f&&y.createElement("div",{key:"loading"},v),y.createElement("div",{className:b,key:"container"},r.props.children))}return v};var i=e.spinning,o=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(i,e.delay);return r.state={spinning:i&&!o},r.originalUpdateSpinning=r.updateSpinning,r.debouncifyUpdateSpinning(e),r}return G(n,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||void 0===this.props.children)}},{key:"render",value:function(){return y.createElement(Hn,null,this.renderSpin)}}],[{key:"setDefaultIndicator",value:function(e){AW=e}}]),n}(y.Component);DW.defaultProps={spinning:!0,size:"default",wrapperClassName:""};var NW=DW,PW=__webpack_require__(4631),IW=__webpack_require__.n(PW),jW="Editor__Zs7tj",RW="Loading__sWI3F",FW=(__webpack_require__(21994),__webpack_require__(20017),__webpack_require__(54086),y.memo(y.forwardRef((function(e,t){var n=e.markers||[],r=e.linesWithBackground||[],i=y.useRef({el:null,instance:null,markers:[],lines:[]});y.useEffect((function(){var t;null===(t=i.current.instance)||void 0===t||t.getDoc().setValue(e.value)}),[e.value]),y.useEffect((function(){if(i.current.markers.forEach((function(e){return e.clear()})),i.current.markers=[],n.forEach((function(t){var n,r=null===(n=i.current.instance)||void 0===n?void 0:n.getDoc().markText(t.from,t.to,{className:e.markerClassName||""});r&&i.current.markers.push(r)})),n.length>0){var t,r,o=n[0].from.line+1,a=(null===(t=i.current.instance)||void 0===t?void 0:t.charCoords({line:o,ch:0},"local").top)||0,s=((null===(r=i.current.instance)||void 0===r?void 0:r.getScrollerElement().clientHeight)||0)/2;setTimeout((function(){var e,t;null===(e=i.current.instance)||void 0===e||e.refresh(),null===(t=i.current.instance)||void 0===t||t.scrollTo(null,a-s+60)}),10)}}),[n]),y.useEffect((function(){i.current.lines.forEach((function(t){var n;null===(n=i.current.instance)||void 0===n||n.removeLineClass(t,"background",e.linesWithBackgroundClassName||"")})),r.forEach((function(t){var n;null===(n=i.current.instance)||void 0===n||n.addLineClass(t,"background",e.linesWithBackgroundClassName||"")})),i.current.lines=r}),[r]);var o=fm((function(n){i.current.el=n,n?(i.current.instance=IW()(n,{value:e.value,mode:"sql",lineWrapping:!0,lineNumbers:!0,styleActiveLine:!0,autoRefresh:!0}),t&&(t.current=i.current.instance)):i.current.instance=null}));return e.loading?y.createElement(GU,{x:"center",y:"center",className:RW},y.createElement(NW,{spinning:!0,size:"large"})):y.createElement("div",{className:Y()(jW,{activeCursorLineBackground:e.activeCursorLineBackground}),ref:o})}))));function zW(e,t,n,r){var i=b.unstable_batchedUpdates?function(e){b.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i)}}}function YW(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function BW(e){var t=e.prefixCls,n=e.motion,r=e.animation,i=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:i?{motionName:i}:null)}function HW(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,i=e.mask,o=e.maskMotion,a=e.maskAnimation,s=e.maskTransitionName;if(!i)return null;var l={};return(o||s||a)&&(l=U({motionAppear:!0},BW({motion:o,prefixCls:t,transitionName:s,animation:a}))),y.createElement(et,D({},l,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return y.createElement("div",{style:{zIndex:r},className:Y()("".concat(t,"-mask"),n)})}))}var qW;function UW(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 VW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UW(Object(n),!0).forEach((function(t){GW(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UW(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WW(e){return WW="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},WW(e)}function GW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $W={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function KW(){if(void 0!==qW)return qW;qW="";var e=document.createElement("p").style;for(var t in $W)t+"Transform"in e&&(qW=t);return qW}function JW(){return KW()?"".concat(KW(),"TransitionProperty"):"transitionProperty"}function XW(){return KW()?"".concat(KW(),"Transform"):"transform"}function ZW(e,t){var n=JW();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function QW(e,t){var n=XW();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}var eG,tG=/matrix\((.*)\)/,nG=/matrix3d\((.*)\)/;function rG(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function iG(e,t,n){var r=n;if("object"!==WW(t))return void 0!==r?("number"==typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):eG(e,t);for(var i in t)t.hasOwnProperty(i)&&iG(e,i,t[i])}function oG(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;"number"!=typeof(n=i.documentElement[r])&&(n=i.body[r])}return n}function aG(e){return oG(e)}function sG(e){return oG(e,!0)}function lG(e){var t=function(e){var t,n,r,i=e.ownerDocument,o=i.body,a=i&&i.documentElement;return n=(t=e.getBoundingClientRect()).left,r=t.top,{left:n-=a.clientLeft||o.clientLeft||0,top:r-=a.clientTop||o.clientTop||0}}(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=aG(r),t.top+=sG(r),t}function cG(e){return null!=e&&e==e.window}function uG(e){return cG(e)?e.document:9===e.nodeType?e:e.ownerDocument}var dG=new RegExp("^(".concat(/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,")(?!px)[a-z%]+$"),"i"),hG=/^(top|right|bottom|left)$/,fG="currentStyle",pG="runtimeStyle",gG="left";function mG(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function vG(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function yG(e,t,n){"static"===iG(e,"position")&&(e.style.position="relative");var r=-999,i=-999,o=mG("left",n),a=mG("top",n),s=vG(o),l=vG(a);"left"!==o&&(r=999),"top"!==a&&(i=999);var c="",u=lG(e);("left"in t||"top"in t)&&(c=function(e){return e.style.transitionProperty||e.style[JW()]}(e)||"",ZW(e,"none")),"left"in t&&(e.style[s]="",e.style[o]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(i,"px")),rG(e);var d=lG(e),h={};for(var f in t)if(t.hasOwnProperty(f)){var p=mG(f,n),g="left"===f?r:i,m=u[f]-d[f];h[p]=p===f?g+m:g-m}iG(e,h),rG(e),("left"in t||"top"in t)&&ZW(e,c);var v={};for(var y in t)if(t.hasOwnProperty(y)){var b=mG(y,n),w=t[y]-u[y];v[b]=y===b?h[b]+w:h[b]-w}iG(e,v)}function bG(e,t){var n=lG(e),r=function(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(XW());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(XW());if(r&&"none"!==r){var i,o=r.match(tG);o?((i=(o=o[1]).split(",").map((function(e){return parseFloat(e,10)})))[4]=t.x,i[5]=t.y,QW(e,"matrix(".concat(i.join(","),")"))):((i=r.match(nG)[1].split(",").map((function(e){return parseFloat(e,10)})))[12]=t.x,i[13]=t.y,QW(e,"matrix3d(".concat(i.join(","),")")))}else QW(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}(e,i)}function wG(e,t){for(var n=0;n<e.length;n++)t(e[n])}function _G(e){return"border-box"===eG(e,"boxSizing")}"undefined"!=typeof window&&(eG=window.getComputedStyle?function(e,t,n){var r=n,i="",o=uG(e);return(r=r||o.defaultView.getComputedStyle(e,null))&&(i=r.getPropertyValue(t)||r[t]),i}:function(e,t){var n=e[fG]&&e[fG][t];if(dG.test(n)&&!hG.test(t)){var r=e.style,i=r[gG],o=e[pG][gG];e[pG][gG]=e[fG][gG],r[gG]="fontSize"===t?"1em":n||0,n=r.pixelLeft+"px",r[gG]=i,e[pG][gG]=o}return""===n?"auto":n});var xG=["margin","border","padding"],EG=-1,CG=2,kG=1;function SG(e,t,n){var r,i,o,a=0;for(i=0;i<t.length;i++)if(r=t[i])for(o=0;o<n.length;o++){var s=void 0;s="border"===r?"".concat(r).concat(n[o],"Width"):r+n[o],a+=parseFloat(eG(e,s))||0}return a}var TG={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}};function MG(e,t,n){var r=n;if(cG(e))return"width"===t?TG.viewportWidth(e):TG.viewportHeight(e);if(9===e.nodeType)return"width"===t?TG.docWidth(e):TG.docHeight(e);var i="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=_G(e),s=0;(null==o||o<=0)&&(o=void 0,(null==(s=eG(e,t))||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=a?kG:EG);var l=void 0!==o||a,c=o||s;return r===EG?l?c-SG(e,["border","padding"],i):s:l?r===kG?c:c+(r===CG?-SG(e,["border"],i):SG(e,["margin"],i)):s+SG(e,xG.slice(r),i)}wG(["Width","Height"],(function(e){TG["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],TG["viewport".concat(e)](n))},TG["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,i=r.body,o=r.documentElement[n];return"CSS1Compat"===r.compatMode&&o||i&&i[n]||o}}));var OG={position:"absolute",visibility:"hidden",display:"block"};function LG(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t[0];return 0!==i.offsetWidth?r=MG.apply(void 0,t):function(e,t,n){var r,i={},o=e.style;for(r in t)t.hasOwnProperty(r)&&(i[r]=o[r],o[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(o[r]=i[r])}(i,OG,(function(){r=MG.apply(void 0,t)})),r}function AG(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}wG(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);TG["outer".concat(t)]=function(t,n){return t&&LG(t,e,n?0:kG)};var n="width"===e?["Left","Right"]:["Top","Bottom"];TG[e]=function(t,r){var i=r;return void 0!==i?t?(_G(t)&&(i+=SG(t,["padding","border"],n)),iG(t,e,i)):void 0:t&&LG(t,e,EG)}}));var DG={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:uG,offset:function(e,t,n){if(void 0===t)return lG(e);!function(e,t,n){if(n.ignoreShake){var r=lG(e),i=r.left.toFixed(0),o=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(i===a&&o===s)return}n.useCssRight||n.useCssBottom?yG(e,t,n):n.useCssTransform&&XW()in document.body.style?bG(e,t):yG(e,t,n)}(e,t,n||{})},isWindow:cG,each:wG,css:iG,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:AG,getWindowScrollLeft:function(e){return aG(e)},getWindowScrollTop:function(e){return sG(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)DG.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};AG(DG,TG);var NG=DG.getParent;function PG(e){if(DG.isWindow(e)||9===e.nodeType)return null;var t,n=DG.getDocument(e).body,r=DG.css(e,"position");if(!("fixed"===r||"absolute"===r))return"html"===e.nodeName.toLowerCase()?null:NG(e);for(t=NG(e);t&&t!==n&&9!==t.nodeType;t=NG(t))if("static"!==(r=DG.css(t,"position")))return t;return null}var IG=DG.getParent;function jG(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=PG(e),i=DG.getDocument(e),o=i.defaultView||i.parentWindow,a=i.body,s=i.documentElement;r;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===DG.css(r,"overflow")){if(r===a||r===s)break}else{var l=DG.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=PG(r)}var c=null;DG.isWindow(e)||9===e.nodeType||(c=e.style.position,"absolute"===DG.css(e,"position")&&(e.style.position="fixed"));var u=DG.getWindowScrollLeft(o),d=DG.getWindowScrollTop(o),h=DG.viewportWidth(o),f=DG.viewportHeight(o),p=s.scrollWidth,g=s.scrollHeight,m=window.getComputedStyle(a);if("hidden"===m.overflowX&&(p=o.innerWidth),"hidden"===m.overflowY&&(g=o.innerHeight),e.style&&(e.style.position=c),t||function(e){if(DG.isWindow(e)||9===e.nodeType)return!1;var t=DG.getDocument(e),n=t.body,r=null;for(r=IG(e);r&&r!==n&&r!==t;r=IG(r))if("fixed"===DG.css(r,"position"))return!0;return!1}(e))n.left=Math.max(n.left,u),n.top=Math.max(n.top,d),n.right=Math.min(n.right,u+h),n.bottom=Math.min(n.bottom,d+f);else{var v=Math.max(p,u+h);n.right=Math.min(n.right,v);var y=Math.max(g,d+f);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 RG(e){var t,n,r;if(DG.isWindow(e)||9===e.nodeType){var i=DG.getWindow(e);t={left:DG.getWindowScrollLeft(i),top:DG.getWindowScrollTop(i)},n=DG.viewportWidth(i),r=DG.viewportHeight(i)}else t=DG.offset(e),n=DG.outerWidth(e),r=DG.outerHeight(e);return t.width=n,t.height=r,t}function FG(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function zG(e,t,n,r,i){var o=FG(t,n[1]),a=FG(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function YG(e,t,n){return e.left<n.left||e.left+t.width>n.right}function BG(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function HG(e,t,n){var r=[];return DG.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function qG(e,t){return e[t]=-e[t],e}function UG(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function VG(e,t){e[0]=UG(e[0],t.width),e[1]=UG(e[1],t.height)}function WG(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;o=[].concat(o),a=[].concat(a);var c={},u=0,d=jG(l,!(!(s=s||{})||!s.alwaysByViewport)),h=RG(l);VG(o,h),VG(a,t);var f=zG(h,t,i,o,a),p=DG.merge(h,f);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&YG(f,h,d)){var g=HG(i,/[lr]/gi,{l:"r",r:"l"}),m=qG(o,0),v=qG(a,0);(function(e,t,n){return e.left>n.right||e.left+t.width<n.left})(zG(h,t,g,m,v),h,d)||(u=1,i=g,o=m,a=v)}if(s.adjustY&&BG(f,h,d)){var y=HG(i,/[tb]/gi,{t:"b",b:"t"}),b=qG(o,1),w=qG(a,1);(function(e,t,n){return e.top>n.bottom||e.top+t.height<n.top})(zG(h,t,y,b,w),h,d)||(u=1,i=y,o=b,a=w)}u&&(f=zG(h,t,i,o,a),DG.mix(p,f));var _=YG(f,h,d),x=BG(f,h,d);if(_||x){var E=i;_&&(E=HG(i,/[lr]/gi,{l:"r",r:"l"})),x&&(E=HG(i,/[tb]/gi,{t:"b",b:"t"})),i=E,o=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=s.adjustX&&_,c.adjustY=s.adjustY&&x,(c.adjustX||c.adjustY)&&(p=function(e,t,n,r){var i=DG.clone(e),o={width:t.width,height:t.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),r.resizeWidth&&i.left>=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top<n.top&&(i.top=n.top),r.resizeHeight&&i.top>=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),DG.mix(i,o)}(f,h,d,c))}return p.width!==h.width&&DG.css(l,"width",DG.width(l)+p.width-h.width),p.height!==h.height&&DG.css(l,"height",DG.height(l)+p.height-h.height),DG.offset(l,{left:p.left,top:p.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:c}}function GG(e,t,n){var r=n.target||t,i=RG(r),o=!function(e,t){var n=jG(e,t),r=RG(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 WG(e,i,n,o)}GG.__getOffsetParent=PG,GG.__getVisibleRectForElement=jG;var $G=__webpack_require__(81981),KG=__webpack_require__.n($G);function JG(e,t){var n=null,r=null;var i=new EV((function(e){var i=oe(e,1)[0].target;if(document.documentElement.contains(i)){var o=i.getBoundingClientRect(),a=o.width,s=o.height,l=Math.floor(a),c=Math.floor(s);n===l&&r===c||Promise.resolve().then((function(){t({width:l,height:c})})),n=l,r=c}}));return e&&i.observe(e),function(){i.disconnect()}}function XG(e){return"function"!=typeof e?null:e()}function ZG(e){return"object"===X(e)&&e?e:null}var QG=function(e,t){var n=e.children,r=e.disabled,i=e.target,o=e.align,a=e.onAlign,s=e.monitorWindowResize,l=e.monitorBufferTime,c=void 0===l?0:l,u=y.useRef({}),d=y.useRef(),h=y.Children.only(n),f=y.useRef({});f.current.disabled=r,f.current.target=i,f.current.align=o,f.current.onAlign=a;var p=function(e,t){var n=y.useRef(!1),r=y.useRef(null);function i(){window.clearTimeout(r.current)}return[function o(a){if(n.current&&!0!==a)i(),r.current=window.setTimeout((function(){n.current=!1,o()}),t);else{if(!1===e())return;n.current=!0,i(),r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,i()}]}((function(){var e=f.current,t=e.disabled,n=e.target,r=e.align,i=e.onAlign;if(!t&&n){var o,a=d.current,s=XG(n),l=ZG(n);u.current.element=s,u.current.point=l,u.current.align=r;var c=document.activeElement;return s&&function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1}(s)?o=GG(a,s,r):l&&(o=function(e,t,n){var r,i,o=DG.getDocument(e),a=o.defaultView||o.parentWindow,s=DG.getWindowScrollLeft(a),l=DG.getWindowScrollTop(a),c=DG.viewportWidth(a),u=DG.viewportHeight(a),d={left:r="pageX"in t?t.pageX:s+t.clientX,top:i="pageY"in t?t.pageY:l+t.clientY,width:0,height:0},h=r>=0&&r<=s+c&&i>=0&&i<=l+u,f=[n.points[0],"cc"];return WG(e,d,VW(VW({},n),{},{points:f}),h)}(a,l,r)),function(e,t){e!==document.activeElement&&xY(t,e)&&"function"==typeof e.focus&&e.focus()}(c,a),i&&o&&i(a,o),!0}return!1}),c),g=oe(p,2),m=g[0],v=g[1],b=y.useRef({cancel:function(){}}),w=y.useRef({cancel:function(){}});y.useEffect((function(){var e,t,n=XG(i),r=ZG(i);d.current!==w.current.element&&(w.current.cancel(),w.current.element=d.current,w.current.cancel=JG(d.current,m)),u.current.element===n&&((e=u.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&KG()(u.current.align,o)||(m(),b.current.element!==n&&(b.current.cancel(),b.current.element=n,b.current.cancel=JG(n,m)))})),y.useEffect((function(){r?v():m()}),[r]);var _=y.useRef(null);return y.useEffect((function(){s?_.current||(_.current=zW(window,"resize",m)):_.current&&(_.current.remove(),_.current=null)}),[s]),y.useEffect((function(){return function(){b.current.cancel(),w.current.cancel(),_.current&&_.current.remove(),v()}}),[]),y.useImperativeHandle(t,(function(){return{forceAlign:function(){return m(!0)}}})),y.isValidElement(h)&&(h=y.cloneElement(h,{ref:le(h.ref,d)})),h},e$=y.forwardRef(QG);e$.displayName="Align";var t$=e$,n$=["measure","align",null,"motion"],r$=y.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,i=e.className,o=e.style,a=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,u=e.forceRender,d=e.align,h=e.point,f=e.getRootDomNode,p=e.getClassNameFromAlign,g=e.onAlign,m=e.onMouseEnter,b=e.onMouseLeave,w=e.onMouseDown,_=e.onTouchStart,x=(0,y.useRef)(),E=(0,y.useRef)(),C=oe((0,y.useState)(),2),k=C[0],S=C[1],T=function(e){var t=oe(y.useState({width:0,height:0}),2),n=t[0],r=t[1];return[y.useMemo((function(){var t={};if(e){var r=n.width,i=n.height;-1!==e.indexOf("height")&&i?t.height=i:-1!==e.indexOf("minHeight")&&i&&(t.minHeight=i),-1!==e.indexOf("width")&&r?t.width=r:-1!==e.indexOf("minWidth")&&r&&(t.minWidth=r)}return t}),[e,n]),function(e){r({width:e.offsetWidth,height:e.offsetHeight})}]}(l),M=oe(T,2),O=M[0],L=M[1];var A=function(e,t){var n=oe((0,y.useState)(null),2),r=n[0],i=n[1],o=(0,y.useRef)(),a=(0,y.useRef)(!1);function s(e){a.current||i(e)}function l(){je.cancel(o.current)}return(0,y.useEffect)((function(){s("measure")}),[e]),(0,y.useEffect)((function(){"measure"===r&&t(),r&&(o.current=je(Qn(v().mark((function e(){var t,n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=n$.indexOf(r),(n=n$[t+1])&&-1!==t&&s(n);case 3:case"end":return e.stop()}}),e)})))))}),[r]),(0,y.useEffect)((function(){return function(){a.current=!0,l()}}),[]),[r,function(e){l(),o.current=je((function(){s((function(e){switch(r){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){l&&L(f())})),N=oe(A,2),P=N[0],I=N[1],j=(0,y.useRef)();function R(){var e;null===(e=x.current)||void 0===e||e.forceAlign()}function F(e,t){var n=p(t);k!==n&&S(n),"align"===P&&(k!==n?Promise.resolve().then((function(){R()})):I((function(){var e;null===(e=j.current)||void 0===e||e.call(j)})),null==g||g(e,t))}var z=U({},BW(e));function B(){return new Promise((function(e){j.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=z[e];z[e]=function(e,n){return I(),null==t?void 0:t(e,n)}})),y.useEffect((function(){z.motionName||"motion"!==P||I()}),[z.motionName,P]),y.useImperativeHandle(t,(function(){return{forceAlign:R,getElement:function(){return E.current}}}));var H=U(U({},O),{},{zIndex:s,opacity:"motion"!==P&&"stable"!==P&&n?0:void 0,pointerEvents:"stable"===P?void 0:"none"},o),q=!0;!(null==d?void 0:d.points)||"align"!==P&&"stable"!==P||(q=!1);var V=a;return y.Children.count(a)>1&&(V=y.createElement("div",{className:"".concat(r,"-content")},a)),y.createElement(et,D({visible:n,ref:E,leavedClassName:"".concat(r,"-hidden")},z,{onAppearPrepare:B,onEnterPrepare:B,removeOnLeave:c,forceRender:u}),(function(e,t){var n=e.className,o=e.style,a=Y()(r,i,k,n);return y.createElement(t$,{target:h||f,key:"popup",ref:x,monitorWindowResize:!0,disabled:q,align:d,onAlign:F},y.createElement("div",{ref:t,className:a,onMouseEnter:m,onMouseLeave:b,onMouseDownCapture:w,onTouchStartCapture:_,style:U(U({},o),H)},V))}))}));r$.displayName="PopupInner";var i$=r$,o$=y.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,i=e.zIndex,o=e.children,a=e.mobile,s=(a=void 0===a?{}:a).popupClassName,l=a.popupStyle,c=a.popupMotion,u=void 0===c?{}:c,d=a.popupRender,h=y.useRef();y.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return h.current}}}));var f=U({zIndex:i},l),p=o;return y.Children.count(o)>1&&(p=y.createElement("div",{className:"".concat(n,"-content")},o)),d&&(p=d(p)),y.createElement(et,D({visible:r,ref:h,removeOnLeave:!0},u),(function(e,t){var r=e.className,i=e.style,o=Y()(n,s,r);return y.createElement("div",{ref:t,className:o,style:U(U({},i),f)},p)}))}));o$.displayName="MobilePopupInner";var a$=o$,s$=["visible","mobile"],l$=y.forwardRef((function(e,t){var n=e.visible,r=e.mobile,i=H(e,s$),o=oe((0,y.useState)(n),2),a=o[0],s=o[1],l=oe((0,y.useState)(!1),2),c=l[0],u=l[1],d=U(U({},i),{},{visible:a});(0,y.useEffect)((function(){var e;s(n),n&&r&&u((e=navigator.userAgent||navigator.vendor||window.opera,!(!/(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(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))))}),[n,r]);var h=c?y.createElement(a$,D({},d,{mobile:r,ref:t})):y.createElement(i$,D({},d,{ref:t}));return y.createElement("div",null,y.createElement(HW,d),h)}));l$.displayName="Popup";var c$=l$,u$=y.createContext(null);function d$(){}function h$(){return""}function f$(e){return e?e.ownerDocument:window.document}var p$=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var g$,m$,v$=(g$=nY,m$=function(e){K(n,e);var t=ee(n);function n(e){var r,i;return V(this,n),(r=t.call(this,e)).popupRef=y.createRef(),r.triggerRef=y.createRef(),r.attachId=void 0,r.clickOutsideHandler=void 0,r.touchOutsideHandler=void 0,r.contextMenuOutsideHandler1=void 0,r.contextMenuOutsideHandler2=void 0,r.mouseDownTimeout=void 0,r.focusTime=void 0,r.preClickTime=void 0,r.preTouchTime=void 0,r.delayTimer=void 0,r.hasPopupMouseDown=void 0,r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&xY(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),i=r.getPopupDomNode();xY(n,t)&&!r.isContextMenuOnly()||xY(i,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=ae(r.triggerRef.current);if(t)return t}catch(e){}return b.findDOMNode(Z(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,i=n.popupPlacement,o=n.builtinPlacements,a=n.prefixCls,s=n.alignPoint,l=n.getPopupClassNameFromAlign;return i&&o&&t.push(function(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s=o[a];if(YW(e[s].points,i,r))return"".concat(t,"-placement-").concat(s)}return""}(o,a,e,s)),l&&t.push(l(e)),t.join(" ")},r.getComponent=function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,i=e.popupClassName,o=e.onPopupAlign,a=e.popupMotion,s=e.popupAnimation,l=e.popupTransitionName,c=e.popupStyle,u=e.mask,d=e.maskAnimation,h=e.maskTransitionName,f=e.maskMotion,p=e.zIndex,g=e.popup,m=e.stretch,v=e.alignPoint,b=e.mobile,w=e.forceRender,_=r.state,x=_.popupVisible,E=_.point,C=r.getPopupAlign(),k={};return r.isMouseEnterToShow()&&(k.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(k.onMouseLeave=r.onPopupMouseLeave),k.onMouseDown=r.onPopupMouseDown,k.onTouchStart=r.onPopupMouseDown,y.createElement(c$,D({prefixCls:t,destroyPopupOnHide:n,visible:x,point:v&&E,className:i,align:C,onAlign:o,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},k,{stretch:m,getRootDomNode:r.getRootDomNode,style:c,mask:u,zIndex:p,transitionName:l,maskAnimation:d,maskTransitionName:h,maskMotion:f,ref:r.popupRef,motion:a,mobile:b,forceRender:w}),"function"==typeof g?g():g)},r.attachParent=function(e){je.cancel(r.attachId);var t,n=r.props,i=n.getPopupContainer,o=n.getDocument,a=r.getRootDomNode();i?(a||0===i.length)&&(t=i(a)):t=o(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=je((function(){r.attachParent(e)}))},r.getContainer=function(){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.attachParent(e),e},r.setPoint=function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})},r.handlePortalUpdate=function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)},r.triggerContextValue={onPopupMouseDown:r.onPopupMouseDown},i="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},p$.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return G(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=zW(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=zW(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=zW(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=zW(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),je.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){return U(U({},e[t]||{}),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,o),r.clearDelayTimer()}),i)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value: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)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,i=t.alignPoint,o=t.className,a=t.autoDestroy,s=y.Children.only(n),l={key:"trigger"};this.isContextMenuToShow()?l.onContextMenu=this.onContextMenu:l.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMouseDown=this.onMouseDown,l.onTouchStart=this.onTouchStart):(l.onClick=this.createTwoChains("onClick"),l.onMouseDown=this.createTwoChains("onMouseDown"),l.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(l.onMouseEnter=this.onMouseEnter,i&&(l.onMouseMove=this.onMouseMove)):l.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?l.onMouseLeave=this.onMouseLeave:l.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=this.createTwoChains("onBlur"));var c=Y()(s&&s.props&&s.props.className,o);c&&(l.className=c);var u=U({},l);ce(s)&&(u.ref=le(this.triggerRef,s.ref));var d,h=y.cloneElement(s,u);return(e||this.popupRef.current||r)&&(d=y.createElement(g$,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&a&&(d=null),y.createElement(u$.Provider,{value:this.triggerContextValue},h,d)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(y.Component),m$.contextType=u$,m$.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:h$,getDocument:f$,onPopupVisibleChange:d$,afterPopupVisibleChange:d$,onPopupAlign:d$,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},m$),y$={adjustX:1,adjustY:1},b$=[0,0],w$={left:{points:["cr","cl"],overflow:y$,offset:[-4,0],targetOffset:b$},right:{points:["cl","cr"],overflow:y$,offset:[4,0],targetOffset:b$},top:{points:["bc","tc"],overflow:y$,offset:[0,-4],targetOffset:b$},bottom:{points:["tc","bc"],overflow:y$,offset:[0,4],targetOffset:b$},topLeft:{points:["bl","tl"],overflow:y$,offset:[0,-4],targetOffset:b$},leftTop:{points:["tr","tl"],overflow:y$,offset:[-4,0],targetOffset:b$},topRight:{points:["br","tr"],overflow:y$,offset:[0,-4],targetOffset:b$},rightTop:{points:["tl","tr"],overflow:y$,offset:[4,0],targetOffset:b$},bottomRight:{points:["tr","br"],overflow:y$,offset:[0,4],targetOffset:b$},rightBottom:{points:["bl","br"],overflow:y$,offset:[4,0],targetOffset:b$},bottomLeft:{points:["tl","bl"],overflow:y$,offset:[0,4],targetOffset:b$},leftBottom:{points:["br","bl"],overflow:y$,offset:[-4,0],targetOffset:b$}},_$=function(e){var t=e.overlay,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle;return y.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},"function"==typeof t?t():t)},x$=function(e,t){var n=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,o=e.mouseEnterDelay,a=void 0===o?0:o,s=e.mouseLeaveDelay,l=void 0===s?.1:s,c=e.overlayStyle,u=e.prefixCls,d=void 0===u?"rc-tooltip":u,h=e.children,f=e.onVisibleChange,p=e.afterVisibleChange,g=e.transitionName,m=e.animation,v=e.motion,b=e.placement,w=void 0===b?"right":b,_=e.align,x=void 0===_?{}:_,E=e.destroyTooltipOnHide,C=void 0!==E&&E,k=e.defaultVisible,S=e.getTooltipContainer,T=e.overlayInnerStyle,M=H(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),O=(0,y.useRef)(null);(0,y.useImperativeHandle)(t,(function(){return O.current}));var L=U({},M);"visible"in e&&(L.popupVisible=e.visible);var A=!1,N=!1;if("boolean"==typeof C)A=C;else if(C&&"object"===X(C)){var P=C.keepParent;A=!0===P,N=!1===P}return y.createElement(v$,D({popupClassName:n,prefixCls:d,popup:function(){var t=e.arrowContent,n=void 0===t?null:t,r=e.overlay,i=e.id;return[y.createElement("div",{className:"".concat(d,"-arrow"),key:"arrow"},n),y.createElement(_$,{key:"content",prefixCls:d,id:i,overlay:r,overlayInnerStyle:T})]},action:i,builtinPlacements:w$,popupPlacement:w,ref:O,popupAlign:x,getPopupContainer:S,onPopupVisibleChange:f,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:m,popupMotion:v,defaultPopupVisible:k,destroyPopupOnHide:A,autoDestroy:N,mouseLeaveDelay:l,popupStyle:c,mouseEnterDelay:a},L),h)},E$=(0,y.forwardRef)(x$);function C$(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=oe(y.useState((function(){return void 0!==i?i:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==i?i:l;a&&(u=a(u));var d=y.useRef(!0);return y.useEffect((function(){d.current?d.current=!1:void 0===i&&c(i)}),[i]),[u,function(e){c(e),u!==e&&o&&o(e,u)}]}var k$={adjustX:1,adjustY:1},S$={adjustX:0,adjustY:0},T$=[0,0];function M$(e){return"boolean"==typeof e?e?k$:S$:D(D({},S$),e)}dB("success","processing","error","default","warning");var O$=dB("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),L$=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},A$=new RegExp("^(".concat(O$.join("|"),")(-inverse)?$"));function D$(e,t){var n=e.type;if((!0===n.__ANT_BUTTON||!0===n.__ANT_SWITCH||!0===n.__ANT_CHECKBOX||"button"===e.type)&&e.props.disabled){var r=function(e,t){var n={},r=D({},e);return t.forEach((function(t){e&&t in e&&(n[t]=e[t],delete r[t])})),{picked:n,omitted:r}}(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=r.picked,o=r.omitted,a=D(D({display:"inline-block"},i),{cursor:"not-allowed",width:e.props.block?"100%":null}),s=lB(e,{style:D(D({},o),{pointerEvents:"none"}),className:null});return y.createElement("span",{style:a,className:Y()(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},s)}return e}var N$=y.forwardRef((function(e,t){var n,r=y.useContext(Bn),i=r.getPopupContainer,o=r.getPrefixCls,a=r.direction,s=oe(C$(!1,{value:e.visible,defaultValue:e.defaultVisible}),2),l=s[0],c=s[1],u=function(){var t=e.title,n=e.overlay;return!t&&!n&&0!==t},d=function(){var t=e.builtinPlacements,n=e.arrowPointAtCenter,r=e.autoAdjustOverflow;return t||function(e){var t=e.arrowWidth,n=void 0===t?4:t,r=e.horizontalArrowShift,i=void 0===r?16:r,o=e.verticalArrowShift,a=void 0===o?8:o,s=e.autoAdjustOverflow,l={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,-(a+n)]},topRight:{points:["br","tc"],offset:[i+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+n)]},bottomRight:{points:["tr","bc"],offset:[i+n,4]},rightBottom:{points:["bl","cr"],offset:[4,a+n]},bottomLeft:{points:["tl","bc"],offset:[-(i+n),4]},leftBottom:{points:["br","cl"],offset:[-4,a+n]}};return Object.keys(l).forEach((function(t){l[t]=e.arrowPointAtCenter?D(D({},l[t]),{overflow:M$(s),targetOffset:T$}):D(D({},w$[t]),{overflow:M$(s)}),l[t].ignoreShake=!0})),l}({arrowPointAtCenter:n,autoAdjustOverflow:r})},h=e.getPopupContainer,f=L$(e,["getPopupContainer"]),p=e.prefixCls,g=e.openClassName,m=e.getTooltipContainer,v=e.overlayClassName,b=e.color,w=e.overlayInnerStyle,_=e.children,x=o("tooltip",p),E=o(),C=l;!("visible"in e)&&u()&&(C=!1);var k,S=D$(aB(_)?_:y.createElement("span",null,_),x),T=S.props,M=Y()(T.className,F({},g||"".concat(x,"-open"),!0)),O=Y()(v,(F(n={},"".concat(x,"-rtl"),"rtl"===a),F(n,"".concat(x,"-").concat(b),b&&A$.test(b)),n)),L=w;return b&&!A$.test(b)&&(L=D(D({},w),{background:b}),k={background:b}),y.createElement(E$,D({},f,{prefixCls:x,overlayClassName:O,getTooltipContainer:h||m||i,ref:t,builtinPlacements:d(),overlay:function(){var t=e.title,n=e.overlay;return 0===t?t:n||t||""}(),visible:C,onVisibleChange:function(t){var n;c(!u()&&t),u()||null===(n=e.onVisibleChange)||void 0===n||n.call(e,t)},onPopupAlign:function(e,t){var n=d(),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(),o={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(o.left," ").concat(o.top)}},overlayInnerStyle:L,arrowContent:y.createElement("span",{className:"".concat(x,"-arrow-content"),style:k}),motion:{motionName:OB(E,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),C?lB(S,{className:M}):S)}));N$.displayName="Tooltip",N$.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var P$=N$,I$=__webpack_require__(20640),j$=__webpack_require__.n(I$);function R$(e){var t=am(),n=t.formatMessage,r=t.textComponent,i=void 0===r?y.Fragment:r,o=e.id,a=e.description,s=e.defaultMessage,l=e.values,c=e.children,u=e.tagName,d=void 0===u?i:u,h=n({id:o,description:a,defaultMessage:s},l,{ignoreTag:e.ignoreTag});return"function"==typeof c?c(Array.isArray(h)?h:[h]):d?y.createElement(d,null,y.Children.toArray(h)):y.createElement(y.Fragment,null,h)}R$.displayName="FormattedMessage";var F$=y.memo(R$,(function(e,t){var n=e.values,r=bc(e,["values"]),i=t.values,o=bc(t,["values"]);return od(i,n)&&od(r,o)}));F$.displayName="MemoizedFormattedMessage";var z$=F$,Y$="Copy___vhfL",B$={copy:y.createElement(z$,{id:"copy",defaultMessage:"copy"})},H$=y.memo((function(e){var t=fm((function(){if(e.value)try{j$()(e.value),_o.success("copy success !")}catch(e){_o.error("copy fail "+e.message)}})),n=y.createElement("div",{className:Y()(Y$,e.className),onClick:t},y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("title",null,B$.copy),y.createElement("path",{d:"M878.250667 981.333333H375.338667a104.661333 104.661333 0 0 1-104.661334-104.661333V375.338667a104.661333 104.661333 0 0 1 104.661334-104.661334h502.912a104.661333 104.661333 0 0 1 104.661333 104.661334v502.912C981.333333 934.485333 934.485333 981.333333 878.250667 981.333333zM375.338667 364.373333a10.666667 10.666667 0 0 0-10.922667 10.965334v502.912c0 6.229333 4.693333 10.922667 10.922667 10.922666h502.912a10.666667 10.666667 0 0 0 10.922666-10.922666V375.338667a10.666667 10.666667 0 0 0-10.922666-10.922667H375.338667z"}),y.createElement("path",{d:"M192.597333 753.322667H147.328A104.661333 104.661333 0 0 1 42.666667 648.661333V147.328A104.661333 104.661333 0 0 1 147.328 42.666667H650.24a104.661333 104.661333 0 0 1 104.618667 104.661333v49.962667c0 26.538667-20.309333 46.848-46.848 46.848a46.037333 46.037333 0 0 1-46.848-46.848V147.328a10.666667 10.666667 0 0 0-10.922667-10.965333H147.328a10.666667 10.666667 0 0 0-10.965333 10.965333V650.24c0 6.229333 4.693333 10.922667 10.965333 10.922667h45.269333c26.538667 0 46.848 20.309333 46.848 46.848 0 26.538667-21.845333 45.312-46.848 45.312z"})));return e.tip?y.createElement(P$,{title:"copy",placement:e.tip},n):n})),q$=function(e){return e?"function"==typeof e?e():e:null},U$=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},V$=y.forwardRef((function(e,t){var n=e.prefixCls,r=e.title,i=e.content,o=U$(e,["prefixCls","title","content"]),a=y.useContext(Bn).getPrefixCls,s=a("popover",n),l=a();return y.createElement(P$,D({},o,{prefixCls:s,ref:t,overlay:function(e){return y.createElement(y.Fragment,null,r&&y.createElement("div",{className:"".concat(e,"-title")},q$(r)),y.createElement("div",{className:"".concat(e,"-inner-content")},q$(i)))}(s),transitionName:OB(l,"zoom-big",o.transitionName)}))}));V$.displayName="Popover",V$.defaultProps={placement:"top",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}};var W$=V$,G$=__webpack_require__(96774),$$=__webpack_require__.n(G$),K$={};function J$(e,t){0}function X$(e,t,n){t||K$[n]||(e(!1,n),K$[n]=!0)}var Z$,Q$=function(e,t){X$(J$,e,t)};function eK(e){if("undefined"==typeof document)return 0;if(e||void 0===Z$){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 o=t.offsetWidth;i===o&&(o=n.clientWidth),document.body.removeChild(n),Z$=i-o}return Z$}function tK(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?eK():n}var nK=function(e){return null};var rK=function(e){return null};function iK(e,t){"function"==typeof e?e(t):"object"===X(e)&&e&&"current"in e&&(e.current=t)}var oK="RC_TABLE_KEY";function aK(e){return null==e?[]:Array.isArray(e)?e:[e]}function sK(e,t){if(!t&&"number"!=typeof t)return e;for(var n=aK(t),r=e,i=0;i<n.length;i+=1){if(!r)return null;r=r[n[i]]}return r}function lK(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},i=r.key,o=r.dataIndex,a=i||aK(o).join("-")||oK;n[a];)a="".concat(a,"_next");n[a]=!0,t.push(a)})),t}function cK(){var e={};function t(e,n){n&&Object.keys(n).forEach((function(r){var i=n[r];i&&"object"===X(i)?(e[r]=e[r]||{},t(e[r],i)):e[r]=i}))}for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach((function(n){t(e,n)})),e}function uK(e){return null!=e}var dK=["colSpan","rowSpan","style","className"];function hK(e){return"string"==typeof e||function(e){var t,n,r=(0,A.isMemo)(e)?e.type.type:e.type;return!("function"==typeof r&&!(null===(t=r.prototype)||void 0===t?void 0:t.render)||"function"==typeof e&&!(null===(n=e.prototype)||void 0===n?void 0:n.render))}(e)}function fK(e,t){var n,r,i,o,a=e.prefixCls,s=e.className,l=e.record,c=e.index,u=e.dataIndex,d=e.render,h=e.children,f=e.component,p=void 0===f?"td":f,g=e.colSpan,m=e.rowSpan,v=e.fixLeft,b=e.fixRight,w=e.firstFixLeft,_=e.lastFixLeft,x=e.firstFixRight,E=e.lastFixRight,C=e.appendNode,k=e.additionalProps,S=void 0===k?{}:k,T=e.ellipsis,M=e.align,O=e.rowType,L=e.isSticky,A="".concat(a,"-cell");if(h)i=h;else{var D=sK(l,u);if(i=D,d){var N=d(D,l,c);!(o=N)||"object"!==X(o)||Array.isArray(o)||y.isValidElement(o)?i=N:(i=N.children,r=N.props)}}"object"!==X(i)||Array.isArray(i)||y.isValidElement(i)||(i=null),T&&(_||x)&&(i=y.createElement("span",{className:"".concat(A,"-content")},i));var P=r||{},I=P.colSpan,j=P.rowSpan,R=P.style,z=P.className,B=H(P,dK),q=void 0!==I?I:g,V=void 0!==j?j:m;if(0===q||0===V)return null;var W={},G="number"==typeof v,$="number"==typeof b;G&&(W.position="sticky",W.left=v),$&&(W.position="sticky",W.right=b);var K,J={};M&&(J.textAlign=M);var Z=!0===T?{showTitle:!0}:T;Z&&(Z.showTitle||"header"===O)&&("string"==typeof i||"number"==typeof i?K=i.toString():y.isValidElement(i)&&"string"==typeof i.props.children&&(K=i.props.children));var Q=U(U(U({title:K},B),S),{},{colSpan:q&&1!==q?q:null,rowSpan:V&&1!==V?V:null,className:Y()(A,s,(n={},F(n,"".concat(A,"-fix-left"),G),F(n,"".concat(A,"-fix-left-first"),w),F(n,"".concat(A,"-fix-left-last"),_),F(n,"".concat(A,"-fix-right"),$),F(n,"".concat(A,"-fix-right-first"),x),F(n,"".concat(A,"-fix-right-last"),E),F(n,"".concat(A,"-ellipsis"),T),F(n,"".concat(A,"-with-append"),C),F(n,"".concat(A,"-fix-sticky"),(G||$)&&L),n),S.className,z),style:U(U(U(U({},S.style),J),W),R),ref:hK(p)?t:null});return y.createElement(p,Q,C,i)}var pK=y.forwardRef(fK);pK.displayName="Cell";var gK=y.memo(pK,(function(e,t){return!!t.shouldCellUpdate&&!t.shouldCellUpdate(t.record,e.record)})),mK=y.createContext(null);function vK(e,t,n,r,i){var o,a,s=n[e]||{},l=n[t]||{};"left"===s.fixed?o=r.left[e]:"right"===l.fixed&&(a=r.right[t]);var c=!1,u=!1,d=!1,h=!1,f=n[t+1],p=n[e-1];if("rtl"===i){if(void 0!==o)h=!(p&&"left"===p.fixed);else if(void 0!==a){d=!(f&&"right"===f.fixed)}}else if(void 0!==o){c=!(f&&"left"===f.fixed)}else if(void 0!==a){u=!(p&&"right"===p.fixed)}return{fixLeft:o,fixRight:a,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:h,isSticky:r.isSticky}}function yK(e){var t,n=e.cells,r=e.stickyOffsets,i=e.flattenColumns,o=e.rowComponent,a=e.cellComponent,s=e.onHeaderRow,l=e.index,c=y.useContext(mK),u=c.prefixCls,d=c.direction;s&&(t=s(n.map((function(e){return e.column})),l));var h=lK(n.map((function(e){return e.column})));return y.createElement(o,t,n.map((function(e,t){var n,o=e.column,s=vK(e.colStart,e.colEnd,i,r,d);return o&&o.onHeaderCell&&(n=e.column.onHeaderCell(o)),y.createElement(gK,D({},e,{ellipsis:o.ellipsis,align:o.align,component:a,prefixCls:u,key:h[t]},s,{additionalProps:n,rowType:"header"}))})))}yK.displayName="HeaderRow";var bK=yK;var wK=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,o=y.useContext(mK),a=o.prefixCls,s=o.getComponent,l=y.useMemo((function(){return function(e){var t=[];!function e(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[i]=t[i]||[];var o=r,a=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,s=n.children;return s&&s.length>0&&(a=e(s,o,i+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,t[i].push(r),o+=a,a}));return a}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},i=0;i<n;i+=1)r(i);return t}(n)}),[n]),c=s(["header","wrapper"],"thead"),u=s(["header","row"],"tr"),d=s(["header","cell"],"th");return y.createElement(c,{className:"".concat(a,"-thead")},l.map((function(e,n){return y.createElement(bK,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:u,cellComponent:d,onHeaderRow:i,index:n})})))},_K=y.createContext(null);var xK=function(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,o=e.fixHeader,a=e.fixColumn,s=e.horizonScroll,l=e.className,c=e.expanded,u=e.componentWidth,d=e.colSpan,h=y.useContext(mK).scrollbarSize;return y.useMemo((function(){var e=n;return a&&(e=y.createElement("div",{style:{width:u-(o?h:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},e)),y.createElement(r,{className:l,style:{display:c?null:"none"}},y.createElement(gK,{component:i,prefixCls:t,colSpan:d},e))}),[n,r,o,s,l,c,u,d,h])};function EK(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.rowKey,a=e.getRowKey,s=e.rowExpandable,l=e.expandedKeys,c=e.onRow,u=e.indent,d=void 0===u?0:u,h=e.rowComponent,f=e.cellComponent,p=e.childrenColumnName,g=y.useContext(mK),m=g.prefixCls,v=g.fixedInfoList,b=y.useContext(_K),w=b.fixHeader,_=b.fixColumn,x=b.horizonScroll,E=b.componentWidth,C=b.flattenColumns,k=b.expandableType,S=b.expandRowByClick,T=b.onTriggerExpand,M=b.rowClassName,O=b.expandedRowClassName,L=b.indentSize,A=b.expandIcon,N=b.expandedRowRender,P=b.expandIconColumnIndex,I=oe(y.useState(!1),2),j=I[0],R=I[1],F=l&&l.has(e.recordKey);y.useEffect((function(){F&&R(!0)}),[F]);var z,B="row"===k&&(!s||s(r)),H="nest"===k,q=p&&r&&r[p],V=B||H;c&&(z=c(r,i));var W;"string"==typeof M?W=M:"function"==typeof M&&(W=M(r,i,d));var G,$,K=lK(C),J=y.createElement(h,D({},z,{"data-row-key":o,className:Y()(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(d),W,z&&z.className),style:U(U({},n),z?z.style:null),onClick:function(e){if(S&&V&&T(r,e),z&&z.onClick){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(t=z).onClick.apply(t,[e].concat(i))}}}),C.map((function(e,t){var n,o,a=e.render,s=e.dataIndex,l=e.className,c=K[t],u=v[t];return t===(P||0)&&H&&(n=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(L*d,"px")},className:"".concat(m,"-row-indent indent-level-").concat(d)}),A({prefixCls:m,expanded:F,expandable:q,record:r,onExpand:T}))),e.onCell&&(o=e.onCell(r,i)),y.createElement(gK,D({className:l,ellipsis:e.ellipsis,align:e.align,component:f,prefixCls:m,key:c,record:r,index:i,dataIndex:s,render:a,shouldCellUpdate:e.shouldCellUpdate},u,{appendNode:n,additionalProps:o}))})));if(B&&(j||F)){var X=N(r,i,d+1,F),Z=O&&O(r,i,d);G=y.createElement(xK,{expanded:F,className:Y()("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(d+1),Z),prefixCls:m,fixHeader:w,fixColumn:_,horizonScroll:x,component:h,componentWidth:E,cellComponent:f,colSpan:C.length},X)}return q&&F&&($=(r[p]||[]).map((function(t,n){var r=a(t,n);return y.createElement(EK,D({},e,{key:r,rowKey:r,record:t,recordKey:r,index:n,indent:d+1}))}))),y.createElement(y.Fragment,null,J,G,$)}EK.displayName="BodyRow";var CK=EK,kK=y.createContext(null);function SK(e){var t=e.columnKey,n=e.onColumnResize,r=y.useRef();return y.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),y.createElement(kV,{onResize:function(e){var r=e.offsetWidth;n(t,r)}},y.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function TK(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,i=e.expandedKeys,o=e.onRow,a=e.rowExpandable,s=e.emptyNode,l=e.childrenColumnName,c=y.useContext(kK).onColumnResize,u=y.useContext(mK),d=u.prefixCls,h=u.getComponent,f=y.useContext(_K),p=f.fixHeader,g=f.horizonScroll,m=f.flattenColumns,v=f.componentWidth;return y.useMemo((function(){var e,u=h(["body","wrapper"],"tbody"),f=h(["body","row"],"tr"),b=h(["body","cell"],"td");e=t.length?t.map((function(e,t){var r=n(e,t);return y.createElement(CK,{key:r,rowKey:r,record:e,recordKey:r,index:t,rowComponent:f,cellComponent:b,expandedKeys:i,onRow:o,getRowKey:n,rowExpandable:a,childrenColumnName:l})})):y.createElement(xK,{expanded:!0,className:"".concat(d,"-placeholder"),prefixCls:d,fixHeader:p,fixColumn:g,horizonScroll:g,component:f,componentWidth:v,cellComponent:b,colSpan:m.length},s);var w=lK(m);return y.createElement(u,{className:"".concat(d,"-tbody")},r&&y.createElement("tr",{"aria-hidden":"true",className:"".concat(d,"-measure-row"),style:{height:0,fontSize:0}},w.map((function(e){return y.createElement(SK,{key:e,columnKey:e,onColumnResize:c})}))),e)}),[t,d,o,r,i,n,h,v,s,m])}var MK=y.memo(TK);MK.displayName="Body";var OK=MK;function LK(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return y.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(LK(e)):(0,A.isFragment)(e)&&e.props?n=n.concat(LK(e.props.children,t)):n.push(e))})),n}var AK=["expandable"],DK="RC_TABLE_INTERNAL_COL_DEFINE";var NK=["children"],PK=["fixed"];function IK(e){return LK(e).filter((function(e){return y.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,i=U({key:t},H(n,NK));return r&&(i.children=IK(r)),i}))}function jK(e){return e.reduce((function(e,t){var n=t.fixed,r=!0===n?"left":n,i=t.children;return i&&i.length>0?[].concat(rt(e),rt(jK(i).map((function(e){return U({fixed:r},e)})))):[].concat(rt(e),[U(U({},t),{},{fixed:r})])}),[])}var RK=function(e,t){var n=e.prefixCls,r=e.columns,i=e.children,o=e.expandable,a=e.expandedKeys,s=e.getRowKey,l=e.onTriggerExpand,c=e.expandIcon,u=e.rowExpandable,d=e.expandIconColumnIndex,h=e.direction,f=e.expandRowByClick,p=e.columnWidth,g=e.fixed,m=y.useMemo((function(){return r||IK(i)}),[r,i]),v=y.useMemo((function(){if(o){var e,t,r=d||0,i=m[r];t="left"!==g&&!g||d?"right"!==g&&!g||d!==m.length?i?i.fixed:null:"right":"left";var h=(F(e={},DK,{className:"".concat(n,"-expand-icon-col")}),F(e,"title",""),F(e,"fixed",t),F(e,"className","".concat(n,"-row-expand-icon-cell")),F(e,"width",p),F(e,"render",(function(e,t,r){var i=s(t,r),o=a.has(i),d=!u||u(t),h=c({prefixCls:n,expanded:o,expandable:d,record:t,onExpand:l});return f?y.createElement("span",{onClick:function(e){return e.stopPropagation()}},h):h})),e),v=m.slice();return r>=0&&v.splice(r,0,h),v}return m}),[o,m,s,a,c,h]),b=y.useMemo((function(){var e=v;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,v,h]),w=y.useMemo((function(){return"rtl"===h?function(e){return e.map((function(e){var t=e.fixed,n=t;return"left"===t?n="right":"right"===t&&(n="left"),U({fixed:n},H(e,PK))}))}(jK(b)):jK(b)}),[b,h]);return[b,w]};function FK(e){var t=(0,y.useRef)(e),n=oe((0,y.useState)({}),2)[1],r=(0,y.useRef)(null),i=(0,y.useRef)([]);return(0,y.useEffect)((function(){return function(){r.current=null}}),[]),[t.current,function(e){i.current.push(e);var o=Promise.resolve();r.current=o,o.then((function(){if(r.current===o){var e=i.current,a=t.current;i.current=[],e.forEach((function(e){t.current=e(t.current)})),r.current=null,a!==t.current&&n({})}}))}]}var zK=function(e,t,n){var r=(0,y.useMemo)((function(){for(var r=[],i=[],o=0,a=0,s=0;s<t;s+=1)if("rtl"===n){i[s]=a,a+=e[s]||0;var l=t-s-1;r[l]=o,o+=e[l]||0}else{r[s]=o,o+=e[s]||0;var c=t-s-1;i[c]=a,a+=e[c]||0}return{left:r,right:i}}),[e,t,n]);return r};var YK=function(e){for(var t=e.colWidths,n=e.columns,r=[],i=!1,o=(e.columCount||n.length)-1;o>=0;o-=1){var a=t[o],s=n&&n[o],l=s&&s[DK];(a||l||i)&&(r.unshift(y.createElement("col",D({key:o,style:{width:a}},l))),i=!0)}return y.createElement("colgroup",null,r)};var BK=function(e){var t=e.className,n=e.children;return y.createElement("div",{className:t},n)};var HK=["children"];function qK(e){return e.children}qK.Row=function(e){var t=e.children,n=H(e,HK);return y.createElement("tr",n,t)},qK.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,o=void 0===i?1:i,a=e.rowSpan,s=e.align,l=y.useContext(mK),c=l.prefixCls,u=l.direction,d=y.useContext(VK),h=d.scrollColumnIndex,f=d.stickyOffsets,p=d.flattenColumns,g=n+o-1+1===h?o+1:o,m=vK(n,n+g-1,p,f,u);return y.createElement(gK,D({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,render:function(){return{children:r,props:{colSpan:g,rowSpan:a}}}},m))};var UK=qK,VK=y.createContext({});var WK=function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=y.useContext(mK).prefixCls,o=r.length-1,a=r[o],s=y.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:(null==a?void 0:a.scrollbar)?o:null}}),[a,r,o,n]);return y.createElement(VK.Provider,{value:s},y.createElement("tfoot",{className:"".concat(i,"-summary")},t))},GK=UK;function $K(e){var t,n=e.prefixCls,r=e.record,i=e.onExpand,o=e.expanded,a=e.expandable,s="".concat(n,"-row-expand-icon");if(!a)return y.createElement("span",{className:Y()(s,"".concat(n,"-row-spaced"))});return y.createElement("span",{className:Y()(s,(t={},F(t,"".concat(n,"-row-expanded"),o),F(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){i(r,e),e.stopPropagation()}})}function KK(e,t,n,r){var i=b.unstable_batchedUpdates?function(e){b.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i)}}}function JK(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var XK=function(e,t){var n,r,i=e.scrollBodyRef,o=e.onScroll,a=e.offsetScroll,s=e.container,l=y.useContext(mK).prefixCls,c=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,u=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,d=c&&u*(u/c),h=y.useRef(),f=oe(FK({scrollLeft:0,isHiddenScrollBar:!1}),2),p=f[0],g=f[1],m=y.useRef({delta:0,x:0}),v=oe(y.useState(!1),2),b=v[0],w=v[1],_=function(){w(!1)},x=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(b&&0!==n){var r=m.current.x+e.pageX-m.current.x-m.current.delta;r<=0&&(r=0),r+d>=u&&(r=u-d),o({scrollLeft:r/u*(c+2)}),m.current.x=e.pageX}else b&&w(!1)},E=function(){var e=JK(i.current).top,t=e+i.current.offsetHeight,n=s===window?document.documentElement.scrollTop+window.innerHeight:JK(s).top+s.clientHeight;t-eK()<=n||e>=n-a?g((function(e){return U(U({},e),{},{isHiddenScrollBar:!0})})):g((function(e){return U(U({},e),{},{isHiddenScrollBar:!1})}))},C=function(e){g((function(t){return U(U({},t),{},{scrollLeft:e/c*u||0})}))};return y.useImperativeHandle(t,(function(){return{setScrollLeft:C}})),y.useEffect((function(){var e=KK(document.body,"mouseup",_,!1),t=KK(document.body,"mousemove",x,!1);return E(),function(){e.remove(),t.remove()}}),[d,b]),y.useEffect((function(){var e=KK(s,"scroll",E,!1),t=KK(window,"resize",E,!1);return function(){e.remove(),t.remove()}}),[s]),y.useEffect((function(){p.isHiddenScrollBar||g((function(e){var t=i.current;return t?U(U({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e}))}),[p.isHiddenScrollBar]),c<=u||!d||p.isHiddenScrollBar?null:y.createElement("div",{style:{height:eK(),width:u,bottom:a},className:"".concat(l,"-sticky-scroll")},y.createElement("div",{onMouseDown:function(e){e.persist(),m.current.delta=e.pageX-p.scrollLeft,m.current.x=0,w(!0),e.preventDefault()},ref:h,className:Y()("".concat(l,"-sticky-scroll-bar"),F({},"".concat(l,"-sticky-scroll-bar-active"),b)),style:{width:"".concat(d,"px"),transform:"translate3d(".concat(p.scrollLeft,"px, 0, 0)")}}))},ZK=y.forwardRef(XK);var QK="undefined"!=typeof window&&window.document&&window.document.createElement?window:null;var eJ=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var tJ=y.forwardRef((function(e,t){var n=e.className,r=e.noData,i=e.columns,o=e.flattenColumns,a=e.colWidths,s=e.columCount,l=e.stickyOffsets,c=e.direction,u=e.fixHeader,d=e.stickyTopOffset,h=e.stickyBottomOffset,f=e.stickyClassName,p=e.onScroll,g=e.maxContentScroll,m=e.children,v=H(e,eJ),b=y.useContext(mK),w=b.prefixCls,_=b.scrollbarSize,x=b.isSticky,E=x&&!u?0:_,C=y.useRef(null),k=y.useCallback((function(e){iK(t,e),iK(C,e)}),[]);y.useEffect((function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(p({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=C.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=C.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var S=y.useMemo((function(){return o.every((function(e){return e.width>=0}))}),[o]),T=o[o.length-1],M={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},O=(0,y.useMemo)((function(){return E?[].concat(rt(i),[M]):i}),[E,i]),L=(0,y.useMemo)((function(){return E?[].concat(rt(o),[M]):o}),[E,o]),A=(0,y.useMemo)((function(){var e=l.right,t=l.left;return U(U({},l),{},{left:"rtl"===c?[].concat(rt(t.map((function(e){return e+E}))),[0]):t,right:"rtl"===c?e:[].concat(rt(e.map((function(e){return e+E}))),[0]),isSticky:x})}),[E,l,x]),D=function(e,t){return(0,y.useMemo)((function(){for(var n=[],r=0;r<t;r+=1){var i=e[r];if(void 0===i)return null;n[r]=i}return n}),[e.join("_"),t])}(a,s);return y.createElement("div",{style:U({overflow:"hidden"},x?{top:d,bottom:h}:{}),ref:k,className:Y()(n,F({},f,!!f))},y.createElement("table",{style:{tableLayout:"fixed",visibility:r||D?null:"hidden"}},(!r||!g||S)&&y.createElement(YK,{colWidths:D?[].concat(rt(D),[E]):[],columCount:s+1,columns:L}),m(U(U({},v),{},{stickyOffsets:A,columns:O,flattenColumns:L}))))}));tJ.displayName="FixedHolder";var nJ=tJ,rJ=[],iJ={},oJ="rc-table-internal-hook",aJ=y.memo((function(e){return e.children}),(function(e,t){return!!$$()(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function sJ(e){var t,n=e.prefixCls,r=e.className,i=e.rowClassName,o=e.style,a=e.data,s=e.rowKey,l=e.scroll,c=e.tableLayout,u=e.direction,d=e.title,h=e.footer,f=e.summary,p=e.id,g=e.showHeader,m=e.components,v=e.emptyText,b=e.onRow,w=e.onHeaderRow,_=e.internalHooks,x=e.transformColumns,E=e.internalRefs,C=e.sticky,k=a||rJ,S=!!k.length;var T,M,O,L=y.useMemo((function(){return cK(m,{})}),[m]),A=y.useCallback((function(e,t){return sK(L,e)||t}),[L]),N=y.useMemo((function(){return"function"==typeof s?s:function(e){return e&&e[s]}}),[s]),P=function(e){var t=e.expandable,n=H(e,AK);return"expandable"in e?U(U({},n),t):n}(e),I=P.expandIcon,j=P.expandedRowKeys,R=P.defaultExpandedRowKeys,z=P.defaultExpandAllRows,B=P.expandedRowRender,q=P.onExpand,V=P.onExpandedRowsChange,W=P.expandRowByClick,G=P.rowExpandable,$=P.expandIconColumnIndex,K=P.expandedRowClassName,J=P.childrenColumnName,Z=P.indentSize,Q=I||$K,ee=J||"children",te=y.useMemo((function(){return B?"row":!!(e.expandable&&_===oJ&&e.expandable.__PARENT_RENDER_ICON__||k.some((function(e){return e&&"object"===X(e)&&e[ee]})))&&"nest"}),[!!B,k]),ne=y.useState((function(){return R||(z?function(e,t,n){var r=[];return function e(i){(i||[]).forEach((function(i,o){r.push(t(i,o)),e(i[n])}))}(e),r}(k,N,ee):[])})),re=oe(ne,2),ie=re[0],ae=re[1],se=y.useMemo((function(){return new Set(j||ie||[])}),[j,ie]),le=y.useCallback((function(e){var t,n=N(e,k.indexOf(e)),r=se.has(n);r?(se.delete(n),t=rt(se)):t=[].concat(rt(se),[n]),ae(t),q&&q(!r,e),V&&V(t)}),[N,se,k,q,V]),ce=oe(y.useState(0),2),ue=ce[0],de=ce[1],he=oe(RK(U(U(U({},e),P),{},{expandable:!!B,expandedKeys:se,getRowKey:N,onTriggerExpand:le,expandIcon:Q,expandIconColumnIndex:$,direction:u}),_===oJ?x:null),2),fe=he[0],pe=he[1],ge=y.useMemo((function(){return{columns:fe,flattenColumns:pe}}),[fe,pe]),me=y.useRef(),ve=y.useRef(),ye=y.useRef(),be=y.useRef(),we=oe(y.useState(!1),2),_e=we[0],xe=we[1],Ee=oe(y.useState(!1),2),Ce=Ee[0],ke=Ee[1],Se=oe(FK(new Map),2),Te=Se[0],Me=Se[1],Oe=lK(pe).map((function(e){return Te.get(e)})),Le=y.useMemo((function(){return Oe}),[Oe.join("_")]),Ae=zK(Le,pe.length,u),De=l&&uK(l.y),Ne=l&&uK(l.x)||Boolean(P.fixed),Pe=Ne&&pe.some((function(e){return e.fixed})),Ie=y.useRef(),je=function(e,t){var n="object"===X(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,o=n.offsetSummary,a=void 0===o?0:o,s=n.offsetScroll,l=void 0===s?0:s,c=n.getContainer,u=(void 0===c?function(){return QK}:c)()||QK;return y.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:a,offsetScroll:l,container:u}}),[l,i,a,t,u])}(C,n),Re=je.isSticky,Fe=je.offsetHeader,ze=je.offsetSummary,Ye=je.offsetScroll,Be=je.stickyClassName,He=je.container,qe=null==f?void 0:f(k),Ue=(De||Re)&&y.isValidElement(qe)&&qe.type===UK&&qe.props.fixed;De&&(M={overflowY:"scroll",maxHeight:l.y}),Ne&&(T={overflowX:"auto"},De||(M={overflowY:"hidden"}),O={width:!0===l.x?"auto":l.x,minWidth:"100%"});var Ve=y.useCallback((function(e,t){(function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1})(me.current)&&Me((function(n){if(n.get(e)!==t){var r=new Map(n);return r.set(e,t),r}return n}))}),[]),We=oe(function(e){var t=(0,y.useRef)(e||null),n=(0,y.useRef)();function r(){window.clearTimeout(n.current)}return(0,y.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=void 0}),100)},function(){return t.current}]}(null),2),Ge=We[0],$e=We[1];function Ke(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e))}var Je=function(e){var t,n=e.currentTarget,r=e.scrollLeft,i="rtl"===u,o="number"==typeof r?r:n.scrollLeft,a=n||iJ;$e()&&$e()!==a||(Ge(a),Ke(o,ve.current),Ke(o,ye.current),Ke(o,be.current),Ke(o,null===(t=Ie.current)||void 0===t?void 0:t.setScrollLeft));if(n){var s=n.scrollWidth,l=n.clientWidth;i?(xe(-o<s-l),ke(-o>0)):(xe(o>0),ke(o<s-l))}},Xe=function(){ye.current&&Je({currentTarget:ye.current})};y.useEffect((function(){return Xe}),[]),y.useEffect((function(){Ne&&Xe()}),[Ne]);var Ze=oe(y.useState(0),2),Qe=Ze[0],et=Ze[1];y.useEffect((function(){et(function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:tK(n),height:tK(r)}}(ye.current).width)}),[]),y.useEffect((function(){_===oJ&&E&&(E.body.current=ye.current)}));var tt,nt=A(["table"],"table"),it=y.useMemo((function(){return c||(Pe?"max-content"===l.x?"auto":"fixed":De||Re||pe.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[De,Pe,pe,c,Re]),ot={colWidths:Le,columCount:pe.length,stickyOffsets:Ae,onHeaderRow:w,fixHeader:De,scroll:l},at=y.useMemo((function(){return S?null:"function"==typeof v?v():v}),[S,v]),st=y.createElement(OK,{data:k,measureColumnWidth:De||Ne||Re,expandedKeys:se,rowExpandable:G,getRowKey:N,onRow:b,emptyNode:at,childrenColumnName:ee}),lt=y.createElement(YK,{colWidths:pe.map((function(e){return e.width})),columns:pe}),ct=A(["body"]);if(De||Re){var ut;"function"==typeof ct?(ut=ct(k,{scrollbarSize:Qe,ref:ye,onScroll:Je}),ot.colWidths=pe.map((function(e,t){var n=e.width,r=t===fe.length-1?n-Qe:n;return"number"!=typeof r||Number.isNaN(r)?(Q$(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r}))):ut=y.createElement("div",{style:U(U({},T),M),onScroll:Je,ref:ye,className:Y()("".concat(n,"-body"))},y.createElement(nt,{style:U(U({},O),{},{tableLayout:it})},lt,st,!Ue&&qe&&y.createElement(WK,{stickyOffsets:Ae,flattenColumns:pe},qe)));var dt=U(U(U({noData:!k.length,maxContentScroll:Ne&&"max-content"===l.x},ot),ge),{},{direction:u,stickyClassName:Be,onScroll:Je});tt=y.createElement(y.Fragment,null,!1!==g&&y.createElement(nJ,D({},dt,{stickyTopOffset:Fe,className:"".concat(n,"-header"),ref:ve}),(function(e){return y.createElement(wK,e)})),ut,Ue&&y.createElement(nJ,D({},dt,{stickyBottomOffset:ze,className:"".concat(n,"-summary"),ref:be}),(function(e){return y.createElement(WK,e,qe)})),Re&&y.createElement(ZK,{ref:Ie,offsetScroll:Ye,scrollBodyRef:ye,onScroll:Je,container:He}))}else tt=y.createElement("div",{style:U(U({},T),M),className:Y()("".concat(n,"-content")),onScroll:Je,ref:ye},y.createElement(nt,{style:U(U({},O),{},{tableLayout:it})},lt,!1!==g&&y.createElement(wK,D({},ot,ge)),st,qe&&y.createElement(WK,{stickyOffsets:Ae,flattenColumns:pe},qe)));var ht=function(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}(e),ft=y.createElement("div",D({className:Y()(n,r,(t={},F(t,"".concat(n,"-rtl"),"rtl"===u),F(t,"".concat(n,"-ping-left"),_e),F(t,"".concat(n,"-ping-right"),Ce),F(t,"".concat(n,"-layout-fixed"),"fixed"===c),F(t,"".concat(n,"-fixed-header"),De),F(t,"".concat(n,"-fixed-column"),Pe),F(t,"".concat(n,"-scroll-horizontal"),Ne),F(t,"".concat(n,"-has-fix-left"),pe[0]&&pe[0].fixed),F(t,"".concat(n,"-has-fix-right"),pe[pe.length-1]&&"right"===pe[pe.length-1].fixed),t)),style:o,id:p,ref:me},ht),y.createElement(aJ,{pingLeft:_e,pingRight:Ce,props:U(U({},e),{},{stickyOffsets:Ae,mergedExpandedKeys:se})},d&&y.createElement(BK,{className:"".concat(n,"-title")},d(k)),y.createElement("div",{className:"".concat(n,"-container")},tt),h&&y.createElement(BK,{className:"".concat(n,"-footer")},h(k))));Ne&&(ft=y.createElement(kV,{onResize:function(e){var t=e.width;t!==ue&&(Xe(),de(me.current?me.current.offsetWidth:t))}},ft));var pt=y.useMemo((function(){return{prefixCls:n,getComponent:A,scrollbarSize:Qe,direction:u,fixedInfoList:pe.map((function(e,t){return vK(t,t,pe,Ae,u)})),isSticky:Re}}),[n,A,Qe,u,pe,Ae,u,Re]),gt=y.useMemo((function(){return U(U({},ge),{},{tableLayout:it,rowClassName:i,expandedRowClassName:K,componentWidth:ue,fixHeader:De,fixColumn:Pe,horizonScroll:Ne,expandIcon:Q,expandableType:te,expandRowByClick:W,expandedRowRender:B,onTriggerExpand:le,expandIconColumnIndex:$,indentSize:Z})}),[ge,it,i,K,ue,De,Pe,Ne,Q,te,W,B,le,$,Z]),mt=y.useMemo((function(){return{onColumnResize:Ve}}),[Ve]);return y.createElement(mK.Provider,{value:pt},y.createElement(_K.Provider,{value:gt},y.createElement(kK.Provider,{value:mt},ft)))}sJ.Column=rK,sJ.ColumnGroup=nK,sJ.Summary=GK,sJ.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var lJ=sJ,cJ=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=Y()(n,"".concat(n,"-").concat(e.page),(F(t={},"".concat(n,"-active"),e.active),F(t,"".concat(n,"-disabled"),!e.page),F(t,e.className,!!e.className),t));return y.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",y.createElement("a",{rel:"nofollow"},e.page)))},uJ=13,dJ=38,hJ=40,fJ=function(e){K(n,e);var t=ee(n);function n(){var e;V(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,r=n.goButton,i=n.quickGo,o=n.rootPrefixCls,a=e.state.goInputText;r||""===a||(e.setState({goInputText:""}),t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(o,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(o,"-item"))>=0)||i(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==uJ&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return G(n,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,i=t.rootPrefixCls,o=t.changeSize,a=t.quickGo,s=t.goButton,l=t.selectComponentClass,c=t.buildOptionText,u=t.selectPrefixCls,d=t.disabled,h=this.state.goInputText,f="".concat(i,"-options"),p=l,g=null,m=null,v=null;if(!o&&!a)return null;var b=this.getPageSizeOptions();if(o&&p){var w=b.map((function(t,n){return y.createElement(p.Option,{key:n,value:t.toString()},(c||e.buildOptionText)(t))}));g=y.createElement(p,{disabled:d,prefixCls:u,showSearch:!1,className:"".concat(f,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},w)}return a&&(s&&(v="boolean"==typeof s?y.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:d,className:"".concat(f,"-quick-jumper-button")},r.jump_to_confirm):y.createElement("span",{onClick:this.go,onKeyUp:this.go},s)),m=y.createElement("div",{className:"".concat(f,"-quick-jumper")},r.jump_to,y.createElement("input",{disabled:d,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),r.page,v)),y.createElement("li",{className:"".concat(f)},g,m)}}]),n}(y.Component);fJ.defaultProps={pageSizeOptions:["10","20","50","100"]};var pJ=fJ;function gJ(){}function mJ(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var vJ=function(e){K(n,e);var t=ee(n);function n(e){var r;V(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(mJ(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,i=e||y.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(i=y.createElement(e,U({},r.props))),i},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){return function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)&&e!==r.state.current},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},r.handleKeyDown=function(e){e.keyCode!==dJ&&e.keyCode!==hJ||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===uJ?r.handleChange(t):e.keyCode===dJ?r.handleChange(t-1):e.keyCode===hJ&&r.handleChange(t+1)},r.changePageSize=function(e){var t=r.state.current,n=mJ(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props.disabled,n=e;if(r.isValid(n)&&!t){var i=mJ(void 0,r.state,r.props);n>i?n=i:n<1&&(n=1),"current"in r.props||r.setState({current:n,currentInputValue:n});var o=r.state.pageSize;return r.props.onChange(n,o),n}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current<mJ(void 0,r.state,r.props)},r.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];t.apply(void 0,r)}},r.runIfEnterPrev=function(e){r.runIfEnter(e,r.prev)},r.runIfEnterNext=function(e){r.runIfEnter(e,r.next)},r.runIfEnterJumpPrev=function(e){r.runIfEnter(e,r.jumpPrev)},r.runIfEnterJumpNext=function(e){r.runIfEnter(e,r.jumpNext)},r.handleGoTO=function(e){e.keyCode!==uJ&&"click"!==e.type||r.handleChange(r.state.currentInputValue)};var i=e.onChange!==gJ;"current"in e&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var o=e.defaultCurrent;"current"in e&&(o=e.current);var a=e.defaultPageSize;return"pageSize"in e&&(a=e.pageSize),o=Math.min(o,mJ(a,void 0,e)),r.state={current:o,currentInputValue:o,pageSize:a},r}return G(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=mJ(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),i=!this.hasPrev();return(0,y.isValidElement)(r)?(0,y.cloneElement)(r,{disabled:i}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),i=!this.hasNext();return(0,y.isValidElement)(r)?(0,y.cloneElement)(r,{disabled:i}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.className,i=t.style,o=t.disabled,a=t.hideOnSinglePage,s=t.total,l=t.locale,c=t.showQuickJumper,u=t.showLessItems,d=t.showTitle,h=t.showTotal,f=t.simple,p=t.itemRender,g=t.showPrevNextJumpers,m=t.jumpPrevIcon,v=t.jumpNextIcon,b=t.selectComponentClass,w=t.selectPrefixCls,_=t.pageSizeOptions,x=this.state,E=x.current,C=x.pageSize,k=x.currentInputValue;if(!0===a&&s<=C)return null;var S=mJ(void 0,this.state,this.props),T=[],M=null,O=null,L=null,A=null,N=null,P=c&&c.goButton,I=u?1:2,j=E-1>0?E-1:0,R=E+1<S?E+1:S,z=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(f)return P&&(N="boolean"==typeof P?y.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},l.jump_to_confirm):y.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},P),N=y.createElement("li",{title:d?"".concat(l.jump_to).concat(E,"/").concat(S):null,className:"".concat(n,"-simple-pager")},N)),y.createElement("ul",D({className:Y()(n,"".concat(n,"-simple"),F({},"".concat(n,"-disabled"),o),r),style:i,ref:this.savePaginationNode},z),y.createElement("li",{title:d?l.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Y()("".concat(n,"-prev"),F({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(j)),y.createElement("li",{title:d?"".concat(E,"/").concat(S):null,className:"".concat(n,"-simple-pager")},y.createElement("input",{type:"text",value:k,disabled:o,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),y.createElement("span",{className:"".concat(n,"-slash")},"/"),S),y.createElement("li",{title:d?l.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Y()("".concat(n,"-next"),F({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(R)),N);if(S<=3+2*I){var B={locale:l,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:d,itemRender:p};S||T.push(y.createElement(cJ,D({},B,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var H=1;H<=S;H+=1){var q=E===H;T.push(y.createElement(cJ,D({},B,{key:H,page:H,active:q})))}}else{var U=u?l.prev_3:l.prev_5,V=u?l.next_3:l.next_5;g&&(M=y.createElement("li",{title:d?U:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:Y()("".concat(n,"-jump-prev"),F({},"".concat(n,"-jump-prev-custom-icon"),!!m))},p(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(m,"prev page"))),O=y.createElement("li",{title:d?V:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Y()("".concat(n,"-jump-next"),F({},"".concat(n,"-jump-next-custom-icon"),!!v))},p(this.getJumpNextPage(),"jump-next",this.getItemIcon(v,"next page")))),A=y.createElement(cJ,{locale:l,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:S,page:S,active:!1,showTitle:d,itemRender:p}),L=y.createElement(cJ,{locale:l,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:d,itemRender:p});var W=Math.max(1,E-I),G=Math.min(E+I,S);E-1<=I&&(G=1+2*I),S-E<=I&&(W=S-2*I);for(var $=W;$<=G;$+=1){var K=E===$;T.push(y.createElement(cJ,{locale:l,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$,page:$,active:K,showTitle:d,itemRender:p}))}E-1>=2*I&&3!==E&&(T[0]=(0,y.cloneElement)(T[0],{className:"".concat(n,"-item-after-jump-prev")}),T.unshift(M)),S-E>=2*I&&E!==S-2&&(T[T.length-1]=(0,y.cloneElement)(T[T.length-1],{className:"".concat(n,"-item-before-jump-next")}),T.push(O)),1!==W&&T.unshift(L),G!==S&&T.push(A)}var J=null;h&&(J=y.createElement("li",{className:"".concat(n,"-total-text")},h(s,[0===s?0:(E-1)*C+1,E*C>s?s:E*C])));var X=!this.hasPrev()||!S,Z=!this.hasNext()||!S;return y.createElement("ul",D({className:Y()(n,r,F({},"".concat(n,"-disabled"),o)),style:i,unselectable:"unselectable",ref:this.savePaginationNode},z),J,y.createElement("li",{title:d?l.prev_page:null,onClick:this.prev,tabIndex:X?null:0,onKeyPress:this.runIfEnterPrev,className:Y()("".concat(n,"-prev"),F({},"".concat(n,"-disabled"),X)),"aria-disabled":X},this.renderPrev(j)),T,y.createElement("li",{title:d?l.next_page:null,onClick:this.next,tabIndex:Z?null:0,onKeyPress:this.runIfEnterNext,className:Y()("".concat(n,"-next"),F({},"".concat(n,"-disabled"),Z)),"aria-disabled":Z},this.renderNext(R)),y.createElement(pJ,{disabled:o,locale:l,rootPrefixCls:n,selectComponentClass:b,selectPrefixCls:w,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:E,pageSize:C,pageSizeOptions:_,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:P}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,i=mJ(e.pageSize,t,e);r=r>i?i:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(y.Component);vJ.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:gJ,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:gJ,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var yJ=vJ,bJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 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"}}]},name:"left",theme:"outlined"},wJ=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:bJ}))};wJ.displayName="LeftOutlined";var _J=y.forwardRef(wJ),xJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 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 000-50.4z"}}]},name:"right",theme:"outlined"},EJ=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:xJ}))};EJ.displayName="RightOutlined";var CJ=y.forwardRef(EJ),kJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 000 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 000 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"}}]},name:"double-left",theme:"outlined"},SJ=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:kJ}))};SJ.displayName="DoubleLeftOutlined";var TJ=y.forwardRef(SJ),MJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 00188 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 00492 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"}}]},name:"double-right",theme:"outlined"},OJ=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:MJ}))};OJ.displayName="DoubleRightOutlined";var LJ=y.forwardRef(OJ),AJ={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=AJ.F1&&t<=AJ.F12)return!1;switch(t){case AJ.ALT:case AJ.CAPS_LOCK:case AJ.CONTEXT_MENU:case AJ.CTRL:case AJ.DOWN:case AJ.END:case AJ.ESC:case AJ.HOME:case AJ.INSERT:case AJ.LEFT:case AJ.MAC_FF_META:case AJ.META:case AJ.NUMLOCK:case AJ.NUM_CENTER:case AJ.PAGE_DOWN:case AJ.PAGE_UP:case AJ.PAUSE:case AJ.PRINT_SCREEN:case AJ.RIGHT:case AJ.SHIFT:case AJ.UP:case AJ.WIN_KEY:case AJ.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=AJ.ZERO&&e<=AJ.NINE)return!0;if(e>=AJ.NUM_ZERO&&e<=AJ.NUM_MULTIPLY)return!0;if(e>=AJ.A&&e<=AJ.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case AJ.SPACE:case AJ.QUESTION_MARK:case AJ.NUM_PLUS:case AJ.NUM_MINUS:case AJ.NUM_PERIOD:case AJ.NUM_DIVISION:case AJ.SEMICOLON:case AJ.DASH:case AJ.EQUALS:case AJ.COMMA:case AJ.PERIOD:case AJ.SLASH:case AJ.APOSTROPHE:case AJ.SINGLE_QUOTE:case AJ.OPEN_SQUARE_BRACKET:case AJ.BACKSLASH:case AJ.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},DJ=AJ,NJ="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function PJ(e,t){return 0===e.indexOf(t)}function IJ(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:U({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||PJ(n,"aria-"))||t.data&&PJ(n,"data-")||t.attr&&NJ.includes(n))&&(r[n]=e[n])})),r}var jJ=function(e){var t,n=e.className,r=e.customizeIcon,i=e.customizeIconProps,o=e.onMouseDown,a=e.onClick,s=e.children;return t="function"==typeof r?r(i):r,y.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),o&&o(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:y.createElement("span",{className:Y()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))},RJ=function(e,t){var n=e.prefixCls,r=e.id,i=e.flattenOptions,o=e.childrenAsData,a=e.values,s=e.searchValue,l=e.multiple,c=e.defaultActiveFirstOption,u=e.height,d=e.itemHeight,h=e.notFoundContent,f=e.open,p=e.menuItemSelectedIcon,g=e.virtual,m=e.onSelect,v=e.onToggleOpen,b=e.onActiveValue,w=e.onScroll,_=e.onMouseEnter,x="".concat(n,"-item"),E=function(e,t,n){var r=y.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}((function(){return i}),[f,i],(function(e,t){return t[0]&&e[1]!==t[1]})),C=y.useRef(null),k=function(e){e.preventDefault()},S=function(e){C.current&&C.current.scrollTo({index:e})},T=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=E.length,r=0;r<n;r+=1){var i=(e+r*t+n)%n,o=E[i],a=o.group,s=o.data;if(!a&&!s.disabled)return i}return-1},M=oe(y.useState((function(){return T(0)})),2),O=M[0],L=M[1],A=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e);var n={source:t?"keyboard":"mouse"},r=E[e];r?b(r.data.value,e,n):b(null,-1,n)};y.useEffect((function(){A(!1!==c?T(0):-1)}),[E.length,s]),y.useEffect((function(){var e,t=setTimeout((function(){if(!l&&f&&1===a.size){var e=Array.from(a)[0],t=E.findIndex((function(t){return t.data.value===e}));A(t),S(t)}}));f&&(null===(e=C.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[f]);var N=function(e){void 0!==e&&m(e,{selected:!a.has(e)}),l||v(!1)};if(y.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case DJ.UP:case DJ.DOWN:var n=0;if(t===DJ.UP?n=-1:t===DJ.DOWN&&(n=1),0!==n){var r=T(O+n,n);S(r),A(r,!0)}break;case DJ.ENTER:var i=E[O];i&&!i.data.disabled?N(i.data.value):N(void 0),f&&e.preventDefault();break;case DJ.ESC:v(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){S(e)}}})),0===E.length)return y.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(x,"-empty"),onMouseDown:k},h);function P(e){var t=E[e];if(!t)return null;var n=t.data||{},i=n.value,s=n.label,l=n.children,c=IJ(n,!0),u=o?l:s;return t?y.createElement("div",D({"aria-label":"string"==typeof u?u:null},c,{key:e,role:"option",id:"".concat(r,"_list_").concat(e),"aria-selected":a.has(i)}),i):null}return y.createElement(y.Fragment,null,y.createElement("div",{role:"listbox",id:"".concat(r,"_list"),style:{height:0,width:0,overflow:"hidden"}},P(O-1),P(O),P(O+1)),y.createElement(dW,{itemKey:"key",ref:C,data:E,height:u,itemHeight:d,fullHeight:!1,onMouseDown:k,onScroll:w,virtual:g,onMouseEnter:_},(function(e,t){var n,r=e.group,i=e.groupOption,s=e.data,l=s.label,c=s.key;if(r)return y.createElement("div",{className:Y()(x,"".concat(x,"-group"))},void 0!==l?l:c);var u=s.disabled,d=s.value,h=s.title,f=s.children,g=s.style,m=s.className,v=H(s,["disabled","value","title","children","style","className"]),b=a.has(d),w="".concat(x,"-option"),_=Y()(x,w,m,(F(n={},"".concat(w,"-grouped"),i),F(n,"".concat(w,"-active"),O===t&&!u),F(n,"".concat(w,"-disabled"),u),F(n,"".concat(w,"-selected"),b),n)),E=!p||"function"==typeof p||b,C=(o?f:l)||d,k="string"==typeof C||"number"==typeof C?C.toString():void 0;return void 0!==h&&(k=h),y.createElement("div",D({},v,{"aria-selected":b,className:_,title:k,onMouseMove:function(){O===t||u||A(t)},onClick:function(){u||N(d)},style:g}),y.createElement("div",{className:"".concat(w,"-content")},C),y.isValidElement(p)||b,E&&y.createElement(jJ,{className:"".concat(x,"-option-state"),customizeIcon:p,customizeIconProps:{isSelected:b}},b?"✓":null))})))},FJ=y.forwardRef(RJ);FJ.displayName="OptionList";var zJ=FJ,YJ=function(){return null};YJ.isSelectOption=!0;var BJ=YJ,HJ=function(){return null};HJ.isSelectOptGroup=!0;var qJ=HJ;function UJ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return y.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(UJ(e)):(0,A.isFragment)(e)&&e.props?n=n.concat(UJ(e.props.children,t)):n.push(e))})),n}function VJ(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return UJ(e).map((function(e,n){if(!y.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,i=e.key,o=e.props,a=o.children,s=H(o,["children"]);return t||!r?function(e){var t=e.key,n=e.props,r=n.children,i=n.value;return U({key:t,value:void 0!==i?i:t,children:r},H(n,["children","value"]))}(e):U(U({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},s),{},{options:VJ(a)})})).filter((function(e){return e}))}var WJ={};function GJ(e,t){0}function $J(e,t){0}function KJ(e,t,n){t||WJ[n]||(e(!1,n),WJ[n]=!0)}function JJ(e,t){KJ($J,e,t)}var XJ=function(e,t){KJ(GJ,e,t)};function ZJ(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var QJ="undefined"!=typeof window&&window.document&&window.document.documentElement,eX=0;function tX(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function nX(e){var t=U({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return XJ(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function rX(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).prevValueOptions,r=void 0===n?[]:n,i=new Map;return t.forEach((function(e){if(!e.group){var t=e.data;i.set(t.value,t)}})),e.map((function(e){var t=i.get(e);return t||(t=U({},r.find((function(t){return t._INTERNAL_OPTION_VALUE_===e})))),nX(t)}))}function iX(e){return ZJ(e).join("")}function oX(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){!function(e,t){"function"==typeof e?e(t):"object"===X(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}}function aX(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=oe(y.useState((function(){return void 0!==i?i:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==i?i:l;a&&(u=a(u));var d=y.useRef(!0);return y.useEffect((function(){d.current?d.current=!1:void 0===i&&c(i)}),[i]),[u,function(e){c(e),u!==e&&o&&o(e,u)}]}var sX=void 0;function lX(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.registerSize,l=e.itemKey,c=e.className,u=e.style,d=e.children,h=e.display,f=e.order,p=e.component,g=void 0===p?"div":p,m=H(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","className","style","children","display","order","component"]),v=a&&!h;function b(e){s(l,e)}y.useEffect((function(){return function(){b(null)}}),[]);var w,_=o&&i!==sX?o(i):d;r||(w={opacity:v?0:1,height:v?0:sX,overflowY:v?"hidden":sX,order:a?f:sX,pointerEvents:v?"none":sX,position:v?"absolute":sX});var x={};v&&(x["aria-hidden"]=!0);var E=y.createElement(g,D({className:Y()(!r&&n,c),style:U(U({},w),u)},x,m,{ref:t}),_);return a&&(E=y.createElement(kV,{onResize:function(e){b(e.offsetWidth)}},E)),E}var cX=y.forwardRef(lX);cX.displayName="Item";var uX=cX;var dX=function(e,t){var n=y.useContext(pX);if(!n){var r=e.component,i=void 0===r?"div":r,o=H(e,["component"]);return y.createElement(i,D({},o,{ref:t}))}var a=n.className,s=H(n,["className"]),l=e.className,c=H(e,["className"]);return y.createElement(pX.Provider,{value:null},y.createElement(uX,D({ref:t,className:Y()(a,l)},s,c)))},hX=y.forwardRef(dX);hX.displayName="RawItem";var fX=hX,pX=y.createContext(null),gX="responsive",mX="invalidate";function vX(e){return"+ ".concat(e.length," ...")}function yX(e,t){var n,r,i,o,a,s=e.prefixCls,l=void 0===s?"rc-overflow":s,c=e.data,u=void 0===c?[]:c,d=e.renderItem,h=e.renderRawItem,f=e.itemKey,p=e.itemWidth,g=void 0===p?10:p,m=e.ssr,v=e.style,b=e.className,w=e.maxCount,_=e.renderRest,x=e.renderRawRest,E=e.suffix,C=e.component,k=void 0===C?"div":C,S=e.itemComponent,T=e.onVisibleChange,M=H(e,["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"]),O=(n=oe((0,y.useState)({}),2)[1],r=(0,y.useRef)([]),i=(0,y.useRef)(!1),o=0,a=0,(0,y.useEffect)((function(){return function(){i.current=!0}}),[]),function(e){var t=o;return o+=1,r.current.length<t+1&&(r.current[t]=e),[r.current[t],function(e){r.current[t]="function"==typeof e?e(r.current[t]):e,je.cancel(a),a=je((function(){i.current||n({})}))}]}),L="full"===m,A=oe(O(null),2),N=A[0],P=A[1],I=N||0,j=oe(O(new Map),2),R=j[0],F=j[1],z=oe(O(0),2),B=z[0],q=z[1],V=oe(O(0),2),W=V[0],G=V[1],$=oe(O(0),2),K=$[0],J=$[1],X=oe((0,y.useState)(null),2),Z=X[0],Q=X[1],ee=oe((0,y.useState)(null),2),te=ee[0],ne=ee[1],re=y.useMemo((function(){return null===te&&L?Number.MAX_SAFE_INTEGER:te||0}),[te,N]),ie=oe((0,y.useState)(!1),2),ae=ie[0],se=ie[1],le="".concat(l,"-item"),ce=Math.max(B,W),ue=u.length&&w===gX,de=w===mX,he=ue||"number"==typeof w&&u.length>w,fe=(0,y.useMemo)((function(){var e=u;return ue?e=null===N&&L?u:u.slice(0,Math.min(u.length,I/g)):"number"==typeof w&&(e=u.slice(0,w)),e}),[u,g,N,w,ue]),pe=(0,y.useMemo)((function(){return ue?u.slice(re+1):u.slice(fe.length)}),[u,fe,ue,re]),ge=(0,y.useCallback)((function(e,t){var n;return"function"==typeof f?f(e):null!==(n=f&&(null==e?void 0:e[f]))&&void 0!==n?n:t}),[f]),me=(0,y.useCallback)(d||function(e){return e},[d]);function ve(e,t){ne(e),t||(se(e<u.length-1),null==T||T(e))}function ye(e,t){F((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function be(e){return R.get(ge(fe[e],e))}y.useLayoutEffect((function(){if(I&&ce&&fe){var e=K,t=fe.length,n=t-1;if(!t)return ve(0),void Q(null);for(var r=0;r<t;r+=1){var i=be(r);if(void 0===i){ve(r-1,!0);break}if(e+=i,0===n&&e<=I||r===n-1&&e+be(n)<=I){ve(n),Q(null);break}if(e+ce>I){ve(r-1),Q(e-i-K+W);break}}E&&be(0)+K>I&&Q(null)}}),[I,R,W,K,ge,fe]);var we=ae&&!!pe.length,_e={};null!==Z&&ue&&(_e={position:"absolute",left:Z,top:0});var xe,Ee={prefixCls:le,responsive:ue,component:S,invalidate:de},Ce=h?function(e,t){var n=ge(e,t);return y.createElement(pX.Provider,{key:n,value:U(U({},Ee),{},{order:t,item:e,itemKey:n,registerSize:ye,display:t<=re})},h(e,t))}:function(e,t){var n=ge(e,t);return y.createElement(uX,D({},Ee,{order:t,key:n,item:e,renderItem:me,itemKey:n,registerSize:ye,display:t<=re}))},ke={order:we?re:Number.MAX_SAFE_INTEGER,className:"".concat(le,"-rest"),registerSize:function(e,t){G(t),q(W)},display:we};if(x)x&&(xe=y.createElement(pX.Provider,{value:U(U({},Ee),ke)},x(pe)));else{var Se=_||vX;xe=y.createElement(uX,D({},Ee,ke),"function"==typeof Se?Se(pe):Se)}var Te=y.createElement(k,D({className:Y()(!de&&l,b),style:v,ref:t},M),fe.map(Ce),he?xe:null,E&&y.createElement(uX,D({},Ee,{order:re,className:"".concat(le,"-suffix"),registerSize:function(e,t){J(t)},display:!0,style:_e}),E));return ue&&(Te=y.createElement(kV,{onResize:function(e,t){P(t.clientWidth)}},Te)),Te}var bX=y.forwardRef(yX);bX.displayName="Overflow",bX.Item=fX,bX.RESPONSIVE=gX,bX.INVALIDATE=mX;var wX=bX,_X=function(e,t){var n,r,i=e.prefixCls,o=e.id,a=e.inputElement,s=e.disabled,l=e.tabIndex,c=e.autoFocus,u=e.autoComplete,d=e.editable,h=e.accessibilityIndex,f=e.value,p=e.maxLength,g=e.onKeyDown,m=e.onMouseDown,v=e.onChange,b=e.onPaste,w=e.onCompositionStart,_=e.onCompositionEnd,x=e.open,E=e.attrs,C=a||y.createElement("input",null),k=C,S=k.ref,T=k.props,M=T.onKeyDown,O=T.onChange,L=T.onMouseDown,A=T.onCompositionStart,D=T.onCompositionEnd,N=T.style;return C=y.cloneElement(C,U(U({id:o,ref:oX(t,S),disabled:s,tabIndex:l,autoComplete:u||"off",type:"search",autoFocus:c,className:Y()("".concat(i,"-selection-search-input"),null===(n=C)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),style:U(U({},N),{},{opacity:d?null:0}),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":"".concat(o,"_list_").concat(h)},E),{},{value:d?f:"",maxLength:p,readOnly:!d,unselectable:d?null:"on",onKeyDown:function(e){g(e),M&&M(e)},onMouseDown:function(e){m(e),L&&L(e)},onChange:function(e){v(e),O&&O(e)},onCompositionStart:function(e){w(e),A&&A(e)},onCompositionEnd:function(e){_(e),D&&D(e)},onPaste:b}))},xX=y.forwardRef(_X);xX.displayName="Input";var EX=xX;function CX(e,t){QJ?y.useLayoutEffect(e,t):y.useEffect(e,t)}var kX=function(e){e.preventDefault(),e.stopPropagation()},SX=function(e){var t=e.id,n=e.prefixCls,r=e.values,i=e.open,o=e.searchValue,a=e.inputRef,s=e.placeholder,l=e.disabled,c=e.mode,u=e.showSearch,d=e.autoFocus,h=e.autoComplete,f=e.accessibilityIndex,p=e.tabIndex,g=e.removeIcon,m=e.maxTagCount,v=e.maxTagTextLength,b=e.maxTagPlaceholder,w=void 0===b?function(e){return"+ ".concat(e.length," ...")}:b,_=e.tagRender,x=e.onToggleOpen,E=e.onSelect,C=e.onInputChange,k=e.onInputPaste,S=e.onInputKeyDown,T=e.onInputMouseDown,M=e.onInputCompositionStart,O=e.onInputCompositionEnd,L=y.useRef(null),A=oe((0,y.useState)(0),2),D=A[0],N=A[1],P=oe((0,y.useState)(!1),2),I=P[0],j=P[1],R="".concat(n,"-selection"),z=i||"tags"===c?o:"",B="tags"===c||u&&(i||I);function H(e,t,n,r){return y.createElement("span",{className:Y()("".concat(R,"-item"),F({},"".concat(R,"-item-disabled"),t))},y.createElement("span",{className:"".concat(R,"-item-content")},e),n&&y.createElement(jJ,{className:"".concat(R,"-item-remove"),onMouseDown:kX,onClick:r,customizeIcon:g},"×"))}CX((function(){N(L.current.scrollWidth)}),[z]);var q=y.createElement("div",{className:"".concat(R,"-search"),style:{width:D},onFocus:function(){j(!0)},onBlur:function(){j(!1)}},y.createElement(EX,{ref:a,open:i,prefixCls:n,id:t,inputElement:null,disabled:l,autoFocus:d,autoComplete:h,editable:B,accessibilityIndex:f,value:z,onKeyDown:S,onMouseDown:T,onChange:C,onPaste:k,onCompositionStart:M,onCompositionEnd:O,tabIndex:p,attrs:IJ(e,!0)}),y.createElement("span",{ref:L,className:"".concat(R,"-search-mirror"),"aria-hidden":!0},z," ")),U=y.createElement(wX,{prefixCls:"".concat(R,"-overflow"),data:r,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!l&&!t,a=n;if("number"==typeof v&&("string"==typeof n||"number"==typeof n)){var s=String(a);s.length>v&&(a="".concat(s.slice(0,v),"..."))}var c=function(e){e&&e.stopPropagation(),E(r,{selected:!1})};return"function"==typeof _?function(e,t,n,r,o){return y.createElement("span",{onMouseDown:function(e){kX(e),x(!i)}},_({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,a,t,o,c):H(a,t,o,c)},renderRest:function(e){return H("function"==typeof w?w(e):w,!1)},suffix:q,itemKey:"key",maxCount:m});return y.createElement(y.Fragment,null,U,!r.length&&!z&&y.createElement("span",{className:"".concat(R,"-placeholder")},s))},TX=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,o=e.disabled,a=e.autoFocus,s=e.autoComplete,l=e.accessibilityIndex,c=e.mode,u=e.open,d=e.values,h=e.placeholder,f=e.tabIndex,p=e.showSearch,g=e.searchValue,m=e.activeValue,v=e.maxLength,b=e.onInputKeyDown,w=e.onInputMouseDown,_=e.onInputChange,x=e.onInputPaste,E=e.onInputCompositionStart,C=e.onInputCompositionEnd,k=oe(y.useState(!1),2),S=k[0],T=k[1],M="combobox"===c,O=M||p,L=d[0],A=g||"";M&&m&&!S&&(A=m),y.useEffect((function(){M&&T(!1)}),[M,m]);var D=!("combobox"!==c&&!u)&&!!A,N=!L||"string"!=typeof L.label&&"number"!=typeof L.label?void 0:L.label.toString();return y.createElement(y.Fragment,null,y.createElement("span",{className:"".concat(n,"-selection-search")},y.createElement(EX,{ref:i,prefixCls:n,id:r,open:u,inputElement:t,disabled:o,autoFocus:a,autoComplete:s,editable:O,accessibilityIndex:l,value:A,onKeyDown:b,onMouseDown:w,onChange:function(e){T(!0),_(e)},onPaste:x,onCompositionStart:E,onCompositionEnd:C,tabIndex:f,attrs:IJ(e,!0),maxLength:M?v:void 0})),!M&&L&&!D&&y.createElement("span",{className:"".concat(n,"-selection-item"),title:N},L.label),!L&&!D&&y.createElement("span",{className:"".concat(n,"-selection-placeholder")},h))};function MX(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=y.useRef(null),n=y.useRef(null);return y.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var OX=function(e,t){var n=(0,y.useRef)(null),r=(0,y.useRef)(!1),i=e.prefixCls,o=e.multiple,a=e.open,s=e.mode,l=e.showSearch,c=e.tokenWithEnter,u=e.onSearch,d=e.onSearchSubmit,h=e.onToggleOpen,f=e.onInputKeyDown,p=e.domRef;y.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var g=oe(MX(0),2),m=g[0],v=g[1],b=(0,y.useRef)(null),w=function(e){!1!==u(e,!0,r.current)&&h(!0)},_={inputRef:n,onInputKeyDown:function(e){var t=e.which;t!==DJ.UP&&t!==DJ.DOWN||e.preventDefault(),f&&f(e),t!==DJ.ENTER||"tags"!==s||r.current||a||d(e.target.value),[DJ.SHIFT,DJ.TAB,DJ.BACKSPACE,DJ.ESC].includes(t)||h(!0)},onInputMouseDown:function(){v(!0)},onInputChange:function(e){var t=e.target.value;if(c&&b.current&&/[\r\n]/.test(b.current)){var n=b.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,b.current)}b.current=null,w(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");b.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==s&&w(e.target.value)}},x=o?y.createElement(SX,D({},e,_)):y.createElement(TX,D({},e,_));return y.createElement("div",{ref:p,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=m();e.target===n.current||t||e.preventDefault(),("combobox"===s||l&&t)&&a||(a&&u("",!0,!1),h())}},x)},LX=y.forwardRef(OX);LX.displayName="Selector";var AX=LX,DX=function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),i=e.children,o=e.popupElement,a=e.containerWidth,s=e.animation,l=e.transitionName,c=e.dropdownStyle,u=e.dropdownClassName,d=e.direction,h=void 0===d?"ltr":d,f=e.dropdownMatchSelectWidth,p=void 0===f||f,g=e.dropdownRender,m=e.dropdownAlign,v=e.getPopupContainer,b=e.empty,w=e.getTriggerDOMNode,_=e.onPopupVisibleChange,x=H(e,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange"]),E="".concat(n,"-dropdown"),C=o;g&&(C=g(o));var k=y.useMemo((function(){return function(e){var t="number"!=typeof e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}}(p)}),[p]),S=s?"".concat(E,"-").concat(s):l,T=y.useRef(null);y.useImperativeHandle(t,(function(){return{getPopupElement:function(){return T.current}}}));var M=U({minWidth:a},c);return"number"==typeof p?M.width=p:p&&(M.width=a),y.createElement(v$,D({},x,{showAction:_?["click"]:[],hideAction:_?["click"]:[],popupPlacement:"rtl"===h?"bottomRight":"bottomLeft",builtinPlacements:k,prefixCls:E,popupTransitionName:S,popup:y.createElement("div",{ref:T},C),popupAlign:m,popupVisible:r,getPopupContainer:v,popupClassName:Y()(u,F({},"".concat(E,"-empty"),b)),popupStyle:M,getTriggerDOMNode:w,onPopupVisibleChange:_}),i)},NX=y.forwardRef(DX);NX.displayName="SelectTrigger";var PX=NX;var IX=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","tabIndex"];var jX=function(e){var t=e.mode,n=e.options,r=e.children,i=e.backfill,o=e.allowClear,a=e.placeholder,s=e.getInputElement,l=e.showSearch,c=e.onSearch,u=e.defaultOpen,d=e.autoFocus,h=e.labelInValue,f=e.value,p=e.inputValue,g=e.optionLabelProp,m="multiple"===t||"tags"===t,v=void 0!==l?l:m||"combobox"===t,b=n||VJ(r);if(XJ("tags"!==t||b.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var w=b.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));XJ(!w,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(XJ("combobox"!==t||!g,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),XJ("combobox"===t||!i,"`backfill` only works with `combobox` mode."),XJ("combobox"===t||!s,"`getInputElement` only work with `combobox` mode."),JJ("combobox"!==t||!s||!o||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),c&&!v&&"combobox"!==t&&"tags"!==t&&XJ(!1,"`onSearch` should work with `showSearch` instead of use alone."),JJ(!u||d,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=f){var _=ZJ(f);XJ(!h||_.every((function(e){return"object"===X(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),XJ(!m||Array.isArray(f),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var x=null;UJ(r).some((function(e){if(!y.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!UJ(e.props.children).every((function(t){return!(y.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(x=t.type,!1)})):(x=t,!0))})),x&&XJ(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(x.displayName||x.name||x,"`.")),XJ(void 0===p,"`inputValue` is deprecated, please use `searchValue` instead.")}},RX=function(e){var t=e.prefixCls,n=e.components.optionList,r=e.convertChildrenToData,i=e.flattenOptions,o=e.getLabeledValue,a=e.filterOptions,s=e.isValueDisabled,l=e.findValueOption,c=(e.warningProps,e.fillOptionsWithMissingValue),u=e.omitDOMProps;function d(e,d){var h,f=e.prefixCls,p=void 0===f?t:f,g=e.className,m=e.id,v=e.open,b=e.defaultOpen,w=e.options,_=e.children,x=e.mode,E=e.value,C=e.defaultValue,k=e.labelInValue,S=e.showSearch,T=e.inputValue,M=e.searchValue,O=e.filterOption,L=e.filterSort,A=e.optionFilterProp,N=void 0===A?"value":A,P=e.autoClearSearchValue,I=void 0===P||P,j=e.onSearch,R=e.allowClear,z=e.clearIcon,B=e.showArrow,q=e.inputIcon,V=e.menuItemSelectedIcon,W=e.disabled,G=e.loading,$=e.defaultActiveFirstOption,K=e.notFoundContent,J=void 0===K?"Not Found":K,X=e.optionLabelProp,Z=e.backfill,Q=(e.tabIndex,e.getInputElement),ee=e.getRawInputElement,te=e.getPopupContainer,ne=e.listHeight,re=void 0===ne?200:ne,ie=e.listItemHeight,ae=void 0===ie?20:ie,se=e.animation,le=e.transitionName,ce=e.virtual,ue=e.dropdownStyle,de=e.dropdownClassName,he=e.dropdownMatchSelectWidth,fe=e.dropdownRender,pe=e.dropdownAlign,ge=e.showAction,me=void 0===ge?[]:ge,ve=e.direction,ye=e.tokenSeparators,be=e.tagRender,we=e.onPopupScroll,_e=e.onDropdownVisibleChange,xe=e.onFocus,Ee=e.onBlur,Ce=e.onKeyUp,ke=e.onKeyDown,Se=e.onMouseDown,Te=e.onChange,Me=e.onSelect,Oe=e.onDeselect,Le=e.onClear,Ae=e.internalProps,De=void 0===Ae?{}:Ae,Ne=H(e,["prefixCls","className","id","open","defaultOpen","options","children","mode","value","defaultValue","labelInValue","showSearch","inputValue","searchValue","filterOption","filterSort","optionFilterProp","autoClearSearchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","menuItemSelectedIcon","disabled","loading","defaultActiveFirstOption","notFoundContent","optionLabelProp","backfill","tabIndex","getInputElement","getRawInputElement","getPopupContainer","listHeight","listItemHeight","animation","transitionName","virtual","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown","onChange","onSelect","onDeselect","onClear","internalProps"]),Pe="RC_SELECT_INTERNAL_PROPS_MARK"===De.mark,Ie=u?u(Ne):Ne;IX.forEach((function(e){delete Ie[e]}));var je=(0,y.useRef)(null),Re=(0,y.useRef)(null),Fe=(0,y.useRef)(null),ze=(0,y.useRef)(null),Ye=(0,y.useMemo)((function(){return(ye||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[ye]),Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=oe(y.useState(!1),2),n=t[0],r=t[1],i=y.useRef(null),o=function(){window.clearTimeout(i.current)};return y.useEffect((function(){return o}),[]),[n,function(t,n){o(),i.current=window.setTimeout((function(){r(t),n&&n()}),e)},o]}(),He=oe(Be,3),qe=He[0],Ue=He[1],Ve=He[2],We=oe((0,y.useState)(),2),Ge=We[0],$e=We[1];(0,y.useEffect)((function(){var e;$e("rc_select_".concat((QJ?(e=eX,eX+=1):e="TEST_OR_SSR",e)))}),[]);var Ke=m||Ge,Je=X;void 0===Je&&(Je=w?"label":"children");var Xe="combobox"!==x&&k,Ze="tags"===x||"multiple"===x,Qe=void 0!==S?S:Ze||"combobox"===x,et=oe((0,y.useState)(!1),2),tt=et[0],nt=et[1];(0,y.useEffect)((function(){nt(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(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(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}())}),[]);var it=(0,y.useRef)(null);y.useImperativeHandle(d,(function(){var e,t,n;return{focus:null===(e=Fe.current)||void 0===e?void 0:e.focus,blur:null===(t=Fe.current)||void 0===t?void 0:t.blur,scrollTo:null===(n=ze.current)||void 0===n?void 0:n.scrollTo}}));var ot=oe(aX(C,{value:E}),2),at=ot[0],st=ot[1],lt=(0,y.useMemo)((function(){return function(e,t){var n=t.labelInValue,r=t.combobox,i=new Map;if(void 0===e||""===e&&r)return[[],i];var o=Array.isArray(e)?e:[e],a=o;return n&&(a=o.filter((function(e){return null!==e})).map((function(e){var t=e.key,n=e.value,r=void 0!==n?n:t;return i.set(r,e),r}))),[a,i]}(at,{labelInValue:Xe,combobox:"combobox"===x})}),[at,Xe]),ct=oe(lt,2),ut=ct[0],dt=ct[1],ht=(0,y.useMemo)((function(){return new Set(ut)}),[ut]),ft=oe((0,y.useState)(null),2),pt=ft[0],gt=ft[1],mt=oe((0,y.useState)(""),2),vt=mt[0],yt=mt[1],bt=vt;"combobox"===x&&void 0!==at?bt=at:void 0!==M?bt=M:T&&(bt=T);var wt=(0,y.useMemo)((function(){var e=w;return void 0===e&&(e=r(_)),"tags"===x&&c&&(e=c(e,at,Je,k)),e||[]}),[w,_,x,at]),_t=(0,y.useMemo)((function(){return i(wt,e)}),[wt]),xt=function(e){var t=y.useRef(null),n=y.useMemo((function(){var t=new Map;return e.forEach((function(e){var n=e.data.value;t.set(n,e)})),t}),[e]);return t.current=n,function(e){return e.map((function(e){return t.current.get(e)})).filter(Boolean)}}(_t),Et=(0,y.useMemo)((function(){if(!bt||!Qe)return rt(wt);var e=a(bt,wt,{optionFilterProp:N,filterOption:"combobox"===x&&void 0===O?function(){return!0}:O});return"tags"===x&&e.every((function(e){return e[N]!==bt}))&&e.unshift({value:bt,label:bt,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),L&&Array.isArray(e)?rt(e).sort(L):e}),[wt,bt,x,Qe,L]),Ct=(0,y.useMemo)((function(){return i(Et,e)}),[Et]);(0,y.useEffect)((function(){ze.current&&ze.current.scrollTo&&ze.current.scrollTo(0)}),[bt]);var kt,St,Tt,Mt=(0,y.useMemo)((function(){var e=ut.map((function(e){var t=xt([e]);return U(U({},o(e,{options:t,prevValueMap:dt,labelInValue:Xe,optionLabelProp:Je})),{},{disabled:s(e,t)})}));return x||1!==e.length||null!==e[0].value||null!==e[0].label?e:[]}),[at,wt,x]);kt=Mt,St=y.useRef(kt),Tt=y.useMemo((function(){var e=new Map;St.current.forEach((function(t){var n=t.value,r=t.label;n!==r&&e.set(n,r)}));var t=kt.map((function(t){var n=e.get(t.value);return t.isCacheable&&n?U(U({},t),{},{label:n}):t}));return St.current=t,t}),[kt]),Mt=Tt;var Ot=function(e,t,n){var r=xt([e]),i=l([e],r)[0];if(!De.skipTriggerSelect){var a=Xe?o(e,{options:r,prevValueMap:dt,labelInValue:Xe,optionLabelProp:Je}):e;t&&Me?Me(a,i):!t&&Oe&&Oe(a,i)}Pe&&(t&&De.onRawSelect?De.onRawSelect(e,i,n):!t&&De.onRawDeselect&&De.onRawDeselect(e,i,n))},Lt=oe((0,y.useState)([]),2),At=Lt[0],Dt=Lt[1],Nt=function(e){if(!Pe||!De.skipTriggerChange){var t=xt(e),n=function(e,t){var n=t.optionLabelProp,r=t.labelInValue,i=t.prevValueMap,o=t.options,a=t.getLabeledValue,s=e;return r&&(s=s.map((function(e){return a(e,{options:o,prevValueMap:i,labelInValue:r,optionLabelProp:n})}))),s}(Array.from(e),{labelInValue:Xe,options:t,getLabeledValue:o,prevValueMap:dt,optionLabelProp:Je}),r=Ze?n:n[0];if(Te&&(0!==ut.length||0!==n.length)){var i=l(e,t,{prevValueOptions:At});Dt(i.map((function(t,n){var r=U({},t);return Object.defineProperty(r,"_INTERNAL_OPTION_VALUE_",{get:function(){return e[n]}}),r}))),Te(r,Ze?i:i[0])}st(r)}},Pt=function(e,t){var n,r=t.selected,i=t.source;W||(Ze?(n=new Set(ut),r?n.add(e):n.delete(e)):(n=new Set).add(e),(Ze||!Ze&&Array.from(ut)[0]!==e)&&Nt(Array.from(n)),Ot(e,!Ze||r,i),"combobox"===x?(yt(String(e)),gt("")):Ze&&!I||(yt(""),gt("")))},It="combobox"===x&&"function"==typeof Q&&Q()||null,jt="function"==typeof ee&&ee(),Rt=oe(aX(void 0,{defaultValue:b,value:v}),2),Ft=Rt[0],zt=Rt[1],Yt=Ft,Bt=!J&&!Et.length;(W||Bt&&Yt&&"combobox"===x)&&(Yt=!1);var Ht,qt=!Bt&&Yt,Ut=function(e){var t=void 0!==e?e:!Yt;Ft===t||W||(zt(t),_e&&_e(t))};jt&&(Ht=function(e){Ut(e)}),function(e,t,n){var r=y.useRef(null);r.current={open:t,triggerOpen:n},y.useEffect((function(){function t(t){var n=t.target;n.shadowRoot&&t.composed&&(n=t.composedPath()[0]||n),r.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(n)&&e!==n}))&&r.current.triggerOpen(!1)}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[je.current,null===(e=Re.current)||void 0===e?void 0:e.getPopupElement()]}),qt,Ut);var Vt=function(e,t,n){var r=!0,i=e;gt(null);var o=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var i=kr(r),o=i[0],a=i.slice(1);if(!o)return[t];var s=t.split(o);return n=n||s.length>1,s.reduce((function(t,n){return[].concat(rt(t),rt(e(n,a)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}(e,ye),a=o;if("combobox"===x)t&&Nt([i]);else if(o){i="","tags"!==x&&(a=o.map((function(e){var t=_t.find((function(t){return t.data[Je]===e}));return t?t.data.value:null})).filter((function(e){return null!==e})));var s=Array.from(new Set([].concat(rt(ut),rt(a))));Nt(s),s.forEach((function(e){Ot(e,!0,"input")})),Ut(!1),r=!1}return yt(i),j&&bt!==i&&j(i),r};(0,y.useEffect)((function(){Ft&&W&&zt(!1)}),[W]),(0,y.useEffect)((function(){Yt||Ze||"combobox"===x||Vt("",!1,!1)}),[Yt]);var Wt=oe(MX(),2),Gt=Wt[0],$t=Wt[1],Kt=(0,y.useRef)(!1),Jt=[];(0,y.useEffect)((function(){return function(){Jt.forEach((function(e){return clearTimeout(e)})),Jt.splice(0,Jt.length)}}),[]);var Xt=oe((0,y.useState)(0),2),Zt=Xt[0],Qt=Xt[1],en=void 0!==$?$:"combobox"!==x,tn=oe((0,y.useState)(null),2),nn=tn[0],rn=tn[1],on=oe((0,y.useState)({}),2)[1];CX((function(){if(qt){var e,t=Math.ceil(null===(e=je.current)||void 0===e?void 0:e.offsetWidth);nn===t||Number.isNaN(t)||rn(t)}}),[qt]);var an,sn=y.createElement(n,{ref:ze,prefixCls:p,id:Ke,open:Yt,childrenAsData:!w,options:Et,flattenOptions:Ct,multiple:Ze,values:ht,height:re,itemHeight:ae,onSelect:function(e,t){Pt(e,U(U({},t),{},{source:"option"}))},onToggleOpen:Ut,onActiveValue:function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Qt(t),Z&&"combobox"===x&&null!==e&&"keyboard"===r&>(String(e))},defaultActiveFirstOption:en,notFoundContent:J,onScroll:we,searchValue:bt,menuItemSelectedIcon:V,virtual:!1!==ce&&!1!==he,onMouseEnter:function(){on({})}});!W&&R&&(ut.length||bt)&&(an=y.createElement(jJ,{className:"".concat(p,"-clear"),onMouseDown:function(){Pe&&De.onClear&&De.onClear(),Le&&Le(),Nt([]),Vt("",!1,!1)},customizeIcon:z},"×"));var ln,cn=void 0!==B?B:G||!Ze&&"combobox"!==x;cn&&(ln=y.createElement(jJ,{className:Y()("".concat(p,"-arrow"),F({},"".concat(p,"-arrow-loading"),G)),customizeIcon:q,customizeIconProps:{loading:G,searchValue:bt,open:Yt,focused:qe,showSearch:Qe}}));var un=Y()(p,g,(F(h={},"".concat(p,"-focused"),qe),F(h,"".concat(p,"-multiple"),Ze),F(h,"".concat(p,"-single"),!Ze),F(h,"".concat(p,"-allow-clear"),R),F(h,"".concat(p,"-show-arrow"),cn),F(h,"".concat(p,"-disabled"),W),F(h,"".concat(p,"-loading"),G),F(h,"".concat(p,"-open"),Yt),F(h,"".concat(p,"-customize-input"),It),F(h,"".concat(p,"-show-search"),Qe),h)),dn=y.createElement(PX,{ref:Re,disabled:W,prefixCls:p,visible:qt,popupElement:sn,containerWidth:nn,animation:se,transitionName:le,dropdownStyle:ue,dropdownClassName:de,direction:ve,dropdownMatchSelectWidth:he,dropdownRender:fe,dropdownAlign:pe,getPopupContainer:te,empty:!wt.length,getTriggerDOMNode:function(){return it.current},onPopupVisibleChange:Ht},jt?y.cloneElement(jt,{ref:oX(it,jt.props.ref)}):y.createElement(AX,D({},e,{domRef:it,prefixCls:p,inputElement:It,ref:Fe,id:Ke,showSearch:Qe,mode:x,accessibilityIndex:Zt,multiple:Ze,tagRender:be,values:Mt,open:Yt,onToggleOpen:Ut,searchValue:bt,activeValue:pt,onSearch:Vt,onSearchSubmit:function(e){if(e&&e.trim()){var t=Array.from(new Set([].concat(rt(ut),[e])));Nt(t),t.forEach((function(e){Ot(e,!0,"input")})),yt("")}},onSelect:function(e,t){Pt(e,U(U({},t),{},{source:"selection"}))},tokenWithEnter:Ye})));return jt?dn:y.createElement("div",D({className:un},Ie,{ref:je,onMouseDown:function(e){var t,n=e.target,r=null===(t=Re.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var i=setTimeout((function(){var e,t=Jt.indexOf(i);(-1!==t&&Jt.splice(t,1),Ve(),tt||r.contains(document.activeElement))||(null===(e=Fe.current)||void 0===e||e.focus())}));Jt.push(i)}if(Se){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];Se.apply(void 0,[e].concat(a))}},onKeyDown:function(e){var t,n=Gt(),r=e.which;if(r===DJ.ENTER&&("combobox"!==x&&e.preventDefault(),Yt||Ut(!0)),$t(!!bt),r===DJ.BACKSPACE&&!n&&Ze&&!bt&&ut.length){var i=function(e,t){var n,r=rt(t);for(n=e.length-1;n>=0&&e[n].disabled;n-=1);var i=null;return-1!==n&&(i=r[n],r.splice(n,1)),{values:r,removedValue:i}}(Mt,ut);null!==i.removedValue&&(Nt(i.values),Ot(i.removedValue,!1,"input"))}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];Yt&&ze.current&&(t=ze.current).onKeyDown.apply(t,[e].concat(a));ke&&ke.apply(void 0,[e].concat(a))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i;Yt&&ze.current&&(i=ze.current).onKeyUp.apply(i,[e].concat(n));Ce&&Ce.apply(void 0,[e].concat(n))},onFocus:function(){Ue(!0),W||(xe&&!Kt.current&&xe.apply(void 0,arguments),me.includes("focus")&&Ut(!0)),Kt.current=!0},onBlur:function(){Ue(!1,(function(){Kt.current=!1,Ut(!1)})),W||(bt&&("tags"===x?(Vt("",!1,!1),Nt(Array.from(new Set([].concat(rt(ut),[bt]))))):"multiple"===x&&yt("")),Ee&&Ee.apply(void 0,arguments))}}),qe&&!Yt&&y.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ut.join(", "))),dn,ln,an)}return y.forwardRef(d)}({prefixCls:"rc-select",components:{optionList:zJ},convertChildrenToData:VJ,flattenOptions:function(e){var t=[];return function e(n,r){n.forEach((function(n){r||!("options"in n)?t.push({key:tX(n,t.length),groupOption:r,data:n}):(t.push({key:tX(n,t.length),group:!0,data:n}),e(n.options,!0))}))}(e,!1),t},getLabeledValue:function(e,t){var n=t.options,r=t.prevValueMap,i=t.labelInValue,o=t.optionLabelProp,a=rX([e],n)[0],s={value:e},l=i?r.get(e):void 0;return l&&"object"===X(l)&&"label"in l?(s.label=l.label,a&&"string"==typeof l.label&&"string"==typeof a[o]&&l.label.trim()!==a[o].trim()&&XJ(!1,"`label` of `value` is not same as `label` in Select options.")):a&&o in a?s.label=a[o]:(s.label=e,s.isCacheable=!0),s.key=s.value,s},filterOptions:function(e,t,n){var r,i=n.optionFilterProp,o=n.filterOption,a=[];return!1===o?rt(t):(r="function"==typeof o?o:function(e){return function(t,n){var r=t.toLowerCase();return"options"in n?iX(n.label).toLowerCase().includes(r):iX(n[e]).toLowerCase().includes(r)}}(i),t.forEach((function(t){if("options"in t)if(r(e,t))a.push(t);else{var n=t.options.filter((function(t){return r(e,t)}));n.length&&a.push(U(U({},t),{},{options:n}))}else r(e,nX(t))&&a.push(t)})),a)},isValueDisabled:function(e,t){return rX([e],t)[0].disabled},findValueOption:rX,warningProps:jX,fillOptionsWithMissingValue:function(e,t,n,r){var i=ZJ(t).slice().sort(),o=rt(e),a=new Set;return e.forEach((function(e){e.options?e.options.forEach((function(e){a.add(e.value)})):a.add(e.value)})),i.forEach((function(e){var t,i=r?e.value:e;a.has(i)||o.push(r?(F(t={},n,e.label),F(t,"value",i),t):{value:i})})),o}}),FX=function(e){K(n,e);var t=ee(n);function n(){var e;return V(this,n),(e=t.apply(this,arguments)).selectRef=y.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return G(n,[{key:"render",value:function(){return y.createElement(RX,D({ref:this.selectRef},this.props))}}]),n}(y.Component);FX.Option=BJ,FX.OptGroup=qJ;var zX=FX,YX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}}]},name:"down",theme:"outlined"},BX=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:YX}))};BX.displayName="DownOutlined";var HX=y.forwardRef(BX),qX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-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"}}]},name:"check",theme:"outlined"},UX=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:qX}))};UX.displayName="CheckOutlined";var VX=y.forwardRef(UX),WX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 0011.6 0l43.6-43.5a8.2 8.2 0 000-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"}}]},name:"search",theme:"outlined"},GX=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:WX}))};GX.displayName="SearchOutlined";var $X=y.forwardRef(GX);var KX=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},JX="SECRET_COMBOBOX_MODE_DO_NOT_USE",XX=function(e,t){var n,r,i=e.prefixCls,o=e.bordered,a=void 0===o||o,s=e.className,l=e.getPopupContainer,c=e.dropdownClassName,u=e.listHeight,d=void 0===u?256:u,h=e.listItemHeight,f=void 0===h?24:h,p=e.size,g=e.notFoundContent,m=KX(e,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","listHeight","listItemHeight","size","notFoundContent"]),v=y.useContext(Bn),b=v.getPopupContainer,w=v.getPrefixCls,_=v.renderEmpty,x=v.direction,E=v.virtual,C=v.dropdownMatchSelectWidth,k=y.useContext(_i),S=w("select",i),T=w(),M=y.useMemo((function(){var e=m.mode;if("combobox"!==e)return e===JX?"combobox":e}),[m.mode]),O="multiple"===M||"tags"===M;r=void 0!==g?g:"combobox"===M?null:_("Select");var L=function(e){var t=e.suffixIcon,n=e.clearIcon,r=e.menuItemSelectedIcon,i=e.removeIcon,o=e.loading,a=e.multiple,s=e.prefixCls,l=n;n||(l=y.createElement(yn,null));var c=null;if(void 0!==t)c=t;else if(o)c=y.createElement(hn,{spin:!0});else{var u="".concat(s,"-suffix");c=function(e){var t=e.open,n=e.showSearch;return t&&n?y.createElement($X,{className:u}):y.createElement(HX,{className:u})}}return{clearIcon:l,suffixIcon:c,itemIcon:void 0!==r?r:a?y.createElement(VX,null):null,removeIcon:void 0!==i?i:y.createElement(Ci,null)}}(D(D({},m),{multiple:O,prefixCls:S})),A=L.suffixIcon,N=L.itemIcon,P=L.removeIcon,I=L.clearIcon,j=YY(m,["suffixIcon","itemIcon"]),R=Y()(c,F({},"".concat(S,"-dropdown-").concat(x),"rtl"===x)),z=p||k,B=Y()((F(n={},"".concat(S,"-lg"),"large"===z),F(n,"".concat(S,"-sm"),"small"===z),F(n,"".concat(S,"-rtl"),"rtl"===x),F(n,"".concat(S,"-borderless"),!a),n),s);return y.createElement(zX,D({ref:t,virtual:E,dropdownMatchSelectWidth:C},j,{transitionName:OB(T,"slide-up",m.transitionName),listHeight:d,listItemHeight:f,mode:M,prefixCls:S,direction:x,inputIcon:A,menuItemSelectedIcon:N,removeIcon:P,clearIcon:I,notFoundContent:r,className:B,getPopupContainer:l||b,dropdownClassName:R}))},ZX=y.forwardRef(XX);ZX.SECRET_COMBOBOX_MODE_DO_NOT_USE=JX,ZX.Option=BJ,ZX.OptGroup=qJ;var QX=ZX,eZ=function(e){return y.createElement(QX,D({size:"small"},e))};eZ.Option=QX.Option;var tZ=eZ,nZ=["xxl","xl","lg","md","sm","xs"],rZ={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},iZ=new Map,oZ=-1,aZ={},sZ={matchHandlers:{},dispatch:function(e){return aZ=e,iZ.forEach((function(e){return e(aZ)})),iZ.size>=1},subscribe:function(e){return iZ.size||this.register(),oZ+=1,iZ.set(oZ,e),e(aZ),oZ},unsubscribe:function(e){iZ.delete(e),iZ.size||this.unregister()},unregister:function(){var e=this;Object.keys(rZ).forEach((function(t){var n=rZ[t],r=e.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)})),iZ.clear()},register:function(){var e=this;Object.keys(rZ).forEach((function(t){var n=rZ[t],r=function(n){var r=n.matches;e.dispatch(D(D({},aZ),F({},t,r)))},i=window.matchMedia(n);i.addListener(r),e.matchHandlers[n]={mql:i,listener:r},r(i)}))}},lZ=sZ;var cZ=function(){var e=oe((0,y.useState)({}),2),t=e[0],n=e[1];return(0,y.useEffect)((function(){var e=lZ.subscribe((function(e){n(e)}));return function(){return lZ.unsubscribe(e)}}),[]),t},uZ=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},dZ=function(e){var t=e.prefixCls,n=e.selectPrefixCls,r=e.className,i=e.size,o=e.locale,a=uZ(e,["prefixCls","selectPrefixCls","className","size","locale"]),s=cZ().xs,l=y.useContext(Bn),c=l.getPrefixCls,u=l.direction,d=c("pagination",t),h=function(e){var t=D(D({},e),o),l="small"===i||!(!s||i||!a.responsive),h=c("select",n),f=Y()(F({mini:l},"".concat(d,"-rtl"),"rtl"===u),r);return y.createElement(yJ,D({},a,{prefixCls:d,selectPrefixCls:h},function(){var e=y.createElement("span",{className:"".concat(d,"-item-ellipsis")},"•••"),t=y.createElement("button",{className:"".concat(d,"-item-link"),type:"button",tabIndex:-1},y.createElement(_J,null)),n=y.createElement("button",{className:"".concat(d,"-item-link"),type:"button",tabIndex:-1},y.createElement(CJ,null)),r=y.createElement("a",{className:"".concat(d,"-item-link")},y.createElement("div",{className:"".concat(d,"-item-container")},y.createElement(TJ,{className:"".concat(d,"-item-link-icon")}),e)),i=y.createElement("a",{className:"".concat(d,"-item-link")},y.createElement("div",{className:"".concat(d,"-item-container")},y.createElement(LJ,{className:"".concat(d,"-item-link-icon")}),e));if("rtl"===u){var o=[n,t];t=o[0],n=o[1];var a=[i,r];r=a[0],i=a[1]}return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:i}}(),{className:f,selectComponentClass:l?tZ:QX,locale:t}))};return y.createElement(Dn,{componentName:"Pagination",defaultLocale:kn},h)},hZ=dZ,fZ=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},pZ=10;function gZ(e,t,n){var r=t&&"object"===X(t)?t:{},i=r.total,o=void 0===i?0:i,a=fZ(r,["total"]),s=oe((0,y.useState)((function(){return{current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:pZ}})),2),l=s[0],c=s[1],u=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Object.keys(t).forEach((function(n){var r=t[n];void 0!==r&&(e[n]=r)}))})),e}(l,a,{total:o>0?o:e}),d=Math.ceil((o||e)/u.pageSize);u.current>d&&(u.current=d||1);var h=function(){c({current:arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,pageSize:(arguments.length>1?arguments[1]:void 0)||u.pageSize})};return!1===t?[{},function(){}]:[D(D({},u),{onChange:function(e,r){var i;t&&(null===(i=t.onChange)||void 0===i||i.call(t,e,r)),h(e,r),n(e,r||(null==u?void 0:u.pageSize))}}),h]}var mZ=y.createContext(null),vZ=function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,o="".concat(t,"-indent-unit"),a=[],s=0;s<n;s+=1){var l;a.push(y.createElement("span",{key:s,className:Y()(o,(l={},F(l,"".concat(o,"-start"),r[s]),F(l,"".concat(o,"-end"),i[s]),l))}))}return y.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},a)},yZ=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove"],bZ="open",wZ="close",_Z=function(e){K(n,e);var t=ee(n);function n(){var e;V(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))).state={dragNodeHighlight:!1},e.selectHandle=void 0,e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,kZ(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,kZ(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,kZ(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,i=n.checked,o=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var a=!i;o(t,kZ(e.props),a)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,kZ(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,kZ(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,kZ(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Z(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Z(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Z(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Z(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Z(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Z(e))},e.onExpand=function(t){var n=e.props,r=n.loading,i=n.context.onNodeExpand;r||i(t,kZ(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?bZ:wZ},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,i=e.props.context.loadData,o=e.hasChildren();return!1!==n&&(n||!i&&!o||i&&r&&!o)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,i=t.loaded,o=e.props.context,a=o.loadData,s=o.onNodeLoad;r||a&&n&&!e.isLeaf()&&(e.hasChildren()||i||s(kZ(e.props)))},e.renderSwitcherIconDom=function(t){var n=e.props.switcherIcon,r=e.props.context.switcherIcon,i=n||r;return"function"==typeof i?i(U(U({},e.props),{},{isLeaf:t})):i},e.renderSwitcher=function(){var t=e.props.expanded,n=e.props.context.prefixCls;if(e.isLeaf()){var r=e.renderSwitcherIconDom(!0);return!1!==r?y.createElement("span",{className:Y()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var i=Y()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(t?bZ:wZ)),o=e.renderSwitcherIconDom(!1);return!1!==o?y.createElement("span",{onClick:e.onExpand,className:i},o):null},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,i=t.disableCheckbox,o=e.props.context.prefixCls,a=e.isDisabled(),s=e.isCheckable();if(!s)return null;var l="boolean"!=typeof s?s:null;return y.createElement("span",{className:Y()("".concat(o,"-checkbox"),n&&"".concat(o,"-checkbox-checked"),!n&&r&&"".concat(o,"-checkbox-indeterminate"),(a||i)&&"".concat(o,"-checkbox-disabled")),onClick:e.onCheck},l)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return y.createElement("span",{className:Y()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n,r=e.state.dragNodeHighlight,i=e.props,o=i.title,a=i.selected,s=i.icon,l=i.loading,c=i.data,u=e.props.context,d=u.prefixCls,h=u.showIcon,f=u.icon,p=u.draggable,g=u.loadData,m=u.titleRender,v=e.isDisabled(),b="function"==typeof p?p(c):p,w="".concat(d,"-node-content-wrapper");if(h){var _=s||f;t=_?y.createElement("span",{className:Y()("".concat(d,"-iconEle"),"".concat(d,"-icon__customize"))},"function"==typeof _?_(e.props):_):e.renderIcon()}else g&&l&&(t=e.renderIcon());n="function"==typeof o?o(c):m?m(c):o;var x=y.createElement("span",{className:"".concat(d,"-title")},n);return y.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof o?o:"",className:Y()("".concat(w),"".concat(w,"-").concat(e.getNodeState()||"normal"),!v&&(a||r)&&"".concat(d,"-node-selected"),!v&&b&&"draggable"),draggable:!v&&b||void 0,"aria-grabbed":!v&&b||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:b?e.onDragStart:void 0},t,x,e.renderDropIndicator())},e.renderDropIndicator=function(){var t=e.props,n=t.disabled,r=t.eventKey,i=e.props.context,o=i.draggable,a=i.dropLevelOffset,s=i.dropPosition,l=i.prefixCls,c=i.indent,u=i.dropIndicatorRender,d=i.dragOverNodeKey,h=i.direction;return!n&&!1!==o&&d===r?u({dropPosition:s,dropLevelOffset:a,indent:c,prefixCls:l,direction:h}):null},e}return G(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t,n,r=this.props,i=r.eventKey,o=r.className,a=r.style,s=r.dragOver,l=r.dragOverGapTop,c=r.dragOverGapBottom,u=r.isLeaf,d=r.isStart,h=r.isEnd,f=r.expanded,p=r.selected,g=r.checked,m=r.halfChecked,v=r.loading,b=r.domRef,w=r.active,_=r.data,x=r.onMouseMove,E=H(r,yZ),C=this.props.context,k=C.prefixCls,S=C.filterTreeNode,T=C.draggable,M=C.keyEntities,O=C.dropContainerKey,L=C.dropTargetKey,A=this.isDisabled(),N=(t=E,n={},Object.keys(t).forEach((function(e){(e.startsWith("data-")||e.startsWith("aria-"))&&(n[e]=t[e])})),n),P=(M[i]||{}).level,I=h[h.length-1],j="function"==typeof T?T(_):T;return y.createElement("div",D({ref:b,className:Y()(o,"".concat(k,"-treenode"),(e={},F(e,"".concat(k,"-treenode-disabled"),A),F(e,"".concat(k,"-treenode-switcher-").concat(f?"open":"close"),!u),F(e,"".concat(k,"-treenode-checkbox-checked"),g),F(e,"".concat(k,"-treenode-checkbox-indeterminate"),m),F(e,"".concat(k,"-treenode-selected"),p),F(e,"".concat(k,"-treenode-loading"),v),F(e,"".concat(k,"-treenode-active"),w),F(e,"".concat(k,"-treenode-leaf-last"),I),F(e,"drop-target",L===i),F(e,"drop-container",O===i),F(e,"drag-over",!A&&s),F(e,"drag-over-gap-top",!A&&l),F(e,"drag-over-gap-bottom",!A&&c),F(e,"filter-node",S&&S(kZ(this.props))),e)),style:a,onDragEnter:j?this.onDragEnter:void 0,onDragOver:j?this.onDragOver:void 0,onDragLeave:j?this.onDragLeave:void 0,onDrop:j?this.onDrop:void 0,onDragEnd:j?this.onDragEnd:void 0,onMouseMove:x},N),y.createElement(vZ,{prefixCls:k,level:P,isStart:d,isEnd:h}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(y.Component),xZ=function(e){return y.createElement(mZ.Consumer,null,(function(t){return y.createElement(_Z,D({},e,{context:t}))}))};xZ.displayName="TreeNode",xZ.defaultProps={title:"---"},xZ.isTreeNode=1;function EZ(e,t){return null!=e?e:t}function CZ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,i=t.onProcessFinished,o=t.externalGetKey,a=t.childrenPropName,s=o||(arguments.length>2?arguments[2]:void 0),l={},c={},u={posEntities:l,keyEntities:c};return n&&(u=n(u)||u),function(e,t,n){var r,i,o=null,a=X(n);"function"===a||"string"===a?o=n:n&&"object"===a&&(r=n.childrenPropName,o=n.externalGetKey),r=r||"children",o?"string"==typeof o?i=function(e){return e[o]}:"function"==typeof o&&(i=function(e){return o(e)}):i=function(e,t){return EZ(e.key,t)},function n(o,a,s){var l=o?o[r]:e,c=o?function(e,t){return"".concat(e,"-").concat(t)}(s.pos,a):"0";if(o){var u=i(o,c),d={node:o,index:a,pos:c,key:u,parentPos:s.node?s.pos:null,level:s.level+1};t(d)}l&&l.forEach((function(e,t){n(e,t,{node:o,pos:c,level:s?s.level+1:-1})}))}(null)}(e,(function(e){var t=e.node,n=e.index,i=e.pos,o=e.key,a=e.parentPos,s={node:t,index:n,key:o,pos:i,level:e.level},d=EZ(o,i);l[i]=s,c[d]=s,s.parent=l[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,u)}),{externalGetKey:s,childrenPropName:a}),i&&i(u),u}function kZ(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,d=e.pos,h=e.active,f=U(U({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:h});return"props"in f||Object.defineProperty(f,"props",{get:function(){return tV(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),f}function SZ(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function TZ(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,i=t.checkable;return!(!n&&!r)||!1===i}function MZ(e,t,n,r){var i,o=[];i=r||TZ;var a,s=new Set(e.filter((function(e){var t=!!n[e];return t||o.push(e),t}))),l=new Map,c=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,i=l.get(r);i||(i=new Set,l.set(r,i)),i.add(t),c=Math.max(c,r)})),tV(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),a=!0===t?function(e,t,n,r){for(var i=new Set(e),o=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach((function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;i.has(t)&&!r(n)&&a.filter((function(e){return!r(e.node)})).forEach((function(e){i.add(e.key)}))}));for(var s=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);a&&!n&&(a=!1),l||!n&&!o.has(t)||(l=!0)})),a&&i.add(t.key),l&&o.add(t.key),s.add(t.key)}}));return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(SZ(o,i))}}(s,l,c,i):function(e,t,n,r,i){for(var o=new Set(e),a=new Set(t),s=0;s<=r;s+=1)(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,s=void 0===r?[]:r;o.has(t)||a.has(t)||i(n)||s.filter((function(e){return!i(e.node)})).forEach((function(e){o.delete(e.key)}))}));a=new Set;for(var l=new Set,c=r;c>=0;c-=1)(n.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!l.has(e.parent.key))if(i(e.parent.node))l.add(t.key);else{var r=!0,s=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);r&&!n&&(r=!1),s||!n&&!a.has(t)||(s=!0)})),r||o.delete(t.key),s&&a.add(t.key),l.add(t.key)}}));return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(SZ(a,o))}}(s,t.halfCheckedKeys,l,c,i),a}var OZ=function(e){K(n,e);var t=ee(n);function n(e){var r;V(this,n),(r=t.call(this,e)).handleChange=function(e){var t=r.props,n=t.disabled,i=t.onChange;n||("checked"in r.props||r.setState({checked:e.target.checked}),i&&i({target:U(U({},r.props),{},{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var i="checked"in e?e.checked:e.defaultChecked;return r.state={checked:i},r}return G(n,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.className,i=t.style,o=t.name,a=t.id,s=t.type,l=t.disabled,c=t.readOnly,u=t.tabIndex,d=t.onClick,h=t.onFocus,f=t.onBlur,p=t.onKeyDown,g=t.onKeyPress,m=t.onKeyUp,v=t.autoFocus,b=t.value,w=t.required,_=H(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),x=Object.keys(_).reduce((function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=_[t]),e}),{}),E=this.state.checked,C=Y()(n,r,(F(e={},"".concat(n,"-checked"),E),F(e,"".concat(n,"-disabled"),l),e));return y.createElement("span",{className:C,style:i},y.createElement("input",D({name:o,id:a,type:s,required:w,readOnly:c,disabled:l,tabIndex:u,className:"".concat(n,"-input"),checked:!!E,onClick:d,onFocus:h,onBlur:f,onKeyUp:m,onKeyDown:p,onKeyPress:g,onChange:this.handleChange,autoFocus:v,ref:this.saveInput,value:b},x)),y.createElement("span",{className:"".concat(n,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"checked"in e?U(U({},t),{},{checked:e.checked}):null}}]),n}(y.Component);OZ.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}};var LZ=OZ,AZ=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},DZ=y.createContext(null),NZ=function(e,t){var n=e.defaultValue,r=e.children,i=e.options,o=void 0===i?[]:i,a=e.prefixCls,s=e.className,l=e.style,c=e.onChange,u=AZ(e,["defaultValue","children","options","prefixCls","className","style","onChange"]),d=y.useContext(Bn),h=d.getPrefixCls,f=d.direction,p=oe(y.useState(u.value||n||[]),2),g=p[0],m=p[1],v=oe(y.useState([]),2),b=v[0],w=v[1];y.useEffect((function(){"value"in u&&m(u.value||[])}),[u.value]);var _=function(){return o.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))},x=h("checkbox",a),E="".concat(x,"-group"),C=YY(u,["value","disabled"]);o&&o.length>0&&(r=_().map((function(e){return y.createElement(zZ,{prefixCls:x,key:e.value.toString(),disabled:"disabled"in e?e.disabled:u.disabled,value:e.value,checked:-1!==g.indexOf(e.value),onChange:e.onChange,className:"".concat(E,"-item"),style:e.style},e.label)})));var k={toggleOption:function(e){var t=g.indexOf(e.value),n=rt(g);-1===t?n.push(e.value):n.splice(t,1),"value"in u||m(n);var r=_();null==c||c(n.filter((function(e){return-1!==b.indexOf(e)})).sort((function(e,t){return r.findIndex((function(t){return t.value===e}))-r.findIndex((function(e){return e.value===t}))})))},value:g,disabled:u.disabled,name:u.name,registerValue:function(e){w((function(t){return[].concat(rt(t),[e])}))},cancelValue:function(e){w((function(t){return t.filter((function(t){return t!==e}))}))}},S=Y()(E,F({},"".concat(E,"-rtl"),"rtl"===f),s);return y.createElement("div",D({className:S,style:l},C,{ref:t}),y.createElement(DZ.Provider,{value:k},r))},PZ=y.forwardRef(NZ),IZ=y.memo(PZ),jZ=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},RZ=function(e,t){var n,r=e.prefixCls,i=e.className,o=e.children,a=e.indeterminate,s=void 0!==a&&a,l=e.style,c=e.onMouseEnter,u=e.onMouseLeave,d=e.skipGroup,h=void 0!==d&&d,f=jZ(e,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup"]),p=y.useContext(Bn),g=p.getPrefixCls,m=p.direction,v=y.useContext(DZ),b=y.useRef(f.value);y.useEffect((function(){null==v||v.registerValue(f.value),fi("checked"in f||!!v||!("value"in f),"Checkbox","`value` is not a valid prop, do you mean `checked`?")}),[]),y.useEffect((function(){if(!h)return f.value!==b.current&&(null==v||v.cancelValue(b.current),null==v||v.registerValue(f.value)),function(){return null==v?void 0:v.cancelValue(f.value)}}),[f.value]);var w=g("checkbox",r),_=D({},f);v&&!h&&(_.onChange=function(){f.onChange&&f.onChange.apply(f,arguments),v.toggleOption&&v.toggleOption({label:o,value:f.value})},_.name=v.name,_.checked=-1!==v.value.indexOf(f.value),_.disabled=f.disabled||v.disabled);var x=Y()((F(n={},"".concat(w,"-wrapper"),!0),F(n,"".concat(w,"-rtl"),"rtl"===m),F(n,"".concat(w,"-wrapper-checked"),_.checked),F(n,"".concat(w,"-wrapper-disabled"),_.disabled),n),i),E=Y()(F({},"".concat(w,"-indeterminate"),s));return y.createElement("label",{className:x,style:l,onMouseEnter:c,onMouseLeave:u},y.createElement(LZ,D({},_,{prefixCls:w,className:E,ref:t})),void 0!==o&&y.createElement("span",null,o))},FZ=y.forwardRef(RZ);FZ.displayName="Checkbox";var zZ=FZ,YZ=zZ;YZ.Group=IZ,YZ.__ANT_CHECKBOX=!0;var BZ=YZ,HZ={adjustX:1,adjustY:1},qZ=[0,0],UZ={topLeft:{points:["bl","tl"],overflow:HZ,offset:[0,-4],targetOffset:qZ},topCenter:{points:["bc","tc"],overflow:HZ,offset:[0,-4],targetOffset:qZ},topRight:{points:["br","tr"],overflow:HZ,offset:[0,-4],targetOffset:qZ},bottomLeft:{points:["tl","bl"],overflow:HZ,offset:[0,4],targetOffset:qZ},bottomCenter:{points:["tc","bc"],overflow:HZ,offset:[0,4],targetOffset:qZ},bottomRight:{points:["tr","br"],overflow:HZ,offset:[0,4],targetOffset:qZ}};var VZ=y.forwardRef((function(e,t){var n=e.arrow,r=void 0!==n&&n,i=e.prefixCls,o=void 0===i?"rc-dropdown":i,a=e.transitionName,s=e.animation,l=e.align,c=e.placement,u=void 0===c?"bottomLeft":c,d=e.placements,h=void 0===d?UZ:d,f=e.getPopupContainer,p=e.showAction,g=e.hideAction,m=e.overlayClassName,v=e.overlayStyle,b=e.visible,w=e.trigger,_=void 0===w?["hover"]:w,x=H(e,["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger"]),E=oe(y.useState(),2),C=E[0],k=E[1],S="visible"in e?b:C,T=y.useRef(null);y.useImperativeHandle(t,(function(){return T.current}));var M,O,L,A,D=function(){var t=e.overlay;return"function"==typeof t?t():t},N=function(t){var n=e.onOverlayClick,r=D().props;k(!1),n&&n(t),r.onClick&&r.onClick(t)},P=function(){var e=D(),t={prefixCls:"".concat(o,"-menu"),onClick:N};return"string"==typeof e.type&&delete t.prefixCls,y.createElement(y.Fragment,null,r&&y.createElement("div",{className:"".concat(o,"-arrow")}),y.cloneElement(e,t))},I=g;return I||-1===_.indexOf("contextMenu")||(I=["click"]),y.createElement(v$,Object.assign({},x,{prefixCls:o,ref:T,popupClassName:Y()(m,F({},"".concat(o,"-show-arrow"),r)),popupStyle:v,builtinPlacements:h,action:_,showAction:p,hideAction:I||[],popupPlacement:u,popupAlign:l,popupTransitionName:a,popupAnimation:s,popupVisible:S,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"==typeof e.overlay?P:P(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;k(t),"function"==typeof n&&n(t)},getPopupContainer:f}),(O=e.children,L=O.props?O.props:{},A=Y()(L.className,void 0!==(M=e.openClassName)?M:"".concat(o,"-open")),C&&O?y.cloneElement(O,{className:A}):O))})),WZ=VZ,GZ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},$Z=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:GZ}))};$Z.displayName="EllipsisOutlined";var KZ=y.forwardRef($Z),JZ=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},XZ=EB.Group,ZZ=function(e){var t=y.useContext(Bn),n=t.getPopupContainer,r=t.getPrefixCls,i=t.direction,o=e.prefixCls,a=e.type,s=e.disabled,l=e.onClick,c=e.htmlType,u=e.children,d=e.className,h=e.overlay,f=e.trigger,p=e.align,g=e.visible,m=e.onVisibleChange,v=e.placement,b=e.getPopupContainer,w=e.href,_=e.icon,x=void 0===_?y.createElement(KZ,null):_,E=e.title,C=e.buttonsRender,k=e.mouseEnterDelay,S=e.mouseLeaveDelay,T=e.overlayClassName,M=e.overlayStyle,O=JZ(e,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle"]),L=r("dropdown-button",o),A={align:p,overlay:h,disabled:s,trigger:s?[]:f,onVisibleChange:m,getPopupContainer:b||n,mouseEnterDelay:k,mouseLeaveDelay:S,overlayClassName:T,overlayStyle:M};"visible"in e&&(A.visible=g),A.placement="placement"in e?v:"rtl"===i?"bottomLeft":"bottomRight";var N=oe(C([y.createElement(EB,{type:a,disabled:s,onClick:l,htmlType:c,href:w,title:E},u),y.createElement(EB,{type:a,icon:x})]),2),P=N[0],I=N[1];return y.createElement(XZ,D({},O,{className:Y()(L,d)}),P,y.createElement(tQ,A,I))};ZZ.__ANT_BUTTON=!0,ZZ.defaultProps={type:"default",buttonsRender:function(e){return e}};var QZ=ZZ,eQ=(dB("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight"),function(e){var t,n,r=y.useContext(Bn),i=r.getPopupContainer,o=r.getPrefixCls,a=r.direction,s=e.arrow,l=e.prefixCls,c=e.children,u=e.trigger,d=e.disabled,h=e.getPopupContainer,f=e.overlayClassName,p=o("dropdown",l),g=y.Children.only(c),m=lB(g,{className:Y()("".concat(p,"-trigger"),F({},"".concat(p,"-rtl"),"rtl"===a),g.props.className),disabled:d}),v=Y()(f,F({},"".concat(p,"-rtl"),"rtl"===a)),b=d?[]:u;return b&&-1!==b.indexOf("contextMenu")&&(t=!0),y.createElement(WZ,D({arrow:s,alignPoint:t},e,{overlayClassName:v,prefixCls:p,getPopupContainer:h||i,transitionName:function(){var t=o(),n=e.placement,r=void 0===n?"":n,i=e.transitionName;return void 0!==i?i:r.indexOf("top")>=0?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")}(),trigger:b,overlay:function(){return function(t){var n,r=e.overlay;n="function"==typeof r?r():r;var i=(n=y.Children.only("string"==typeof n?y.createElement("span",null,n):n)).props;fi(!i.mode||"vertical"===i.mode,"Dropdown",'mode="'.concat(i.mode,"\" is not supported for Dropdown's Menu."));var o=i.selectable,a=void 0!==o&&o,s=i.expandIcon,l=void 0!==s&&y.isValidElement(s)?s:y.createElement("span",{className:"".concat(t,"-menu-submenu-arrow")},y.createElement(CJ,{className:"".concat(t,"-menu-submenu-arrow-icon")}));return"string"==typeof n.type?n:lB(n,{mode:"vertical",selectable:a,expandIcon:l})}(p)},placement:(n=e.placement,void 0!==n?n:"rtl"===a?"bottomRight":"bottomLeft")}),m)});eQ.Button=QZ,eQ.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var tQ=eQ,nQ=tQ;function rQ(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=oe(y.useState((function(){return void 0!==i?i:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==i?i:l;a&&(u=a(u));var d=y.useRef(!0);return y.useEffect((function(){d.current?d.current=!1:void 0===i&&c(i)}),[i]),[u,function(e){c(e),u!==e&&o&&o(e,u)}]}var iQ={};function oQ(e,t){0}function aQ(e,t,n){t||iQ[n]||(e(!1,n),iQ[n]=!0)}var sQ=function(e,t){aQ(oQ,e,t)},lQ={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=lQ.F1&&t<=lQ.F12)return!1;switch(t){case lQ.ALT:case lQ.CAPS_LOCK:case lQ.CONTEXT_MENU:case lQ.CTRL:case lQ.DOWN:case lQ.END:case lQ.ESC:case lQ.HOME:case lQ.INSERT:case lQ.LEFT:case lQ.MAC_FF_META:case lQ.META:case lQ.NUMLOCK:case lQ.NUM_CENTER:case lQ.PAGE_DOWN:case lQ.PAGE_UP:case lQ.PAUSE:case lQ.PRINT_SCREEN:case lQ.RIGHT:case lQ.SHIFT:case lQ.UP:case lQ.WIN_KEY:case lQ.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=lQ.ZERO&&e<=lQ.NINE)return!0;if(e>=lQ.NUM_ZERO&&e<=lQ.NUM_MULTIPLY)return!0;if(e>=lQ.A&&e<=lQ.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case lQ.SPACE:case lQ.QUESTION_MARK:case lQ.NUM_PLUS:case lQ.NUM_MINUS:case lQ.NUM_PERIOD:case lQ.NUM_DIVISION:case lQ.SEMICOLON:case lQ.DASH:case lQ.EQUALS:case lQ.COMMA:case lQ.PERIOD:case lQ.SLASH:case lQ.APOSTROPHE:case lQ.SINGLE_QUOTE:case lQ.OPEN_SQUARE_BRACKET:case lQ.BACKSLASH:case lQ.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},cQ=lQ;function uQ(e,t){var n=U({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}var dQ=y.createContext(null);function hQ(e){var t=e.children,n=e.locked,r=H(e,["children","locked"]),i=y.useContext(dQ),o=function(e,t,n){var r=y.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}((function(){return function(e,t){var n=U({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(i,r)}),[i,r],(function(e,t){return!(n||e[0]===t[0]&&$$()(e[1],t[1]))}));return y.createElement(dQ.Provider,{value:o},t)}function fQ(e,t,n,r){var i=y.useContext(dQ),o=i.activeKey,a=i.onActive,s=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(t){null==n||n({key:e,domEvent:t}),a(e)},l.onMouseLeave=function(t){null==r||r({key:e,domEvent:t}),s(e)}),l}function pQ(e){var t=e.item,n=H(e,["item"]);return Object.defineProperty(n,"item",{get:function(){return sQ(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function gQ(e){var t=e.icon,n=e.props,r=e.children;return("function"==typeof t?y.createElement(t,U({},n)):t)||r||null}function mQ(e){var t=y.useContext(dQ),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}var vQ=[],yQ=y.createContext(null);function bQ(){return y.useContext(yQ)}var wQ=y.createContext(vQ);function _Q(e){var t=y.useContext(wQ);return y.useMemo((function(){return void 0!==e?[].concat(rt(t),[e]):t}),[t,e])}var xQ=y.createContext(null),EQ=y.createContext(null);function CQ(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function kQ(e){return CQ(y.useContext(EQ),e)}var SQ=function(e){K(n,e);var t=ee(n);function n(){return V(this,n),t.apply(this,arguments)}return G(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=uQ(H(e,["title","attribute","elementRef"]),["eventKey"]);return sQ(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),y.createElement(wX.Item,D({},n,{title:"string"==typeof t?t:void 0},i,{ref:r}))}}]),n}(y.Component),TQ=function(e){var t,n=e.style,r=e.className,i=e.eventKey,o=(e.warnKey,e.disabled),a=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,h=e.onKeyDown,f=e.onFocus,p=H(e,["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"]),g=kQ(i),m=y.useContext(dQ),v=m.prefixCls,b=m.onItemClick,w=m.disabled,_=m.overflowDisabled,x=m.itemIcon,E=m.selectedKeys,C=m.onActive,k="".concat(v,"-item"),S=y.useRef(),T=y.useRef(),M=w||o,O=_Q(i);var L=function(e){return{key:i,keyPath:rt(O).reverse(),item:S.current,domEvent:e}},A=a||x,N=fQ(i,M,c,u),P=N.active,I=H(N,["active"]),j=E.includes(i),R=mQ(O.length),z={};return"option"===e.role&&(z["aria-selected"]=j),y.createElement(SQ,D({ref:S,elementRef:T,role:null===l?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":_&&g?null:g},p,I,z,{component:"li","aria-disabled":o,style:U(U({},R),n),className:Y()(k,(t={},F(t,"".concat(k,"-active"),P),F(t,"".concat(k,"-selected"),j),F(t,"".concat(k,"-disabled"),M),t),r),onClick:function(e){if(!M){var t=L(e);null==d||d(pQ(t)),b(t)}},onKeyDown:function(e){if(null==h||h(e),e.which===cQ.ENTER){var t=L(e);null==d||d(pQ(t)),b(t)}},onFocus:function(e){C(i),null==f||f(e)}}),s,y.createElement(gQ,{props:U(U({},e),{},{isSelected:j}),icon:A}))};var MQ=function(e){var t=e.eventKey,n=bQ(),r=_Q(t);return y.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:y.createElement(TQ,e)};function OQ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return y.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(OQ(e)):(0,A.isFragment)(e)&&e.props?n=n.concat(OQ(e.props.children,t)):n.push(e))})),n}function LQ(e,t){return OQ(e).map((function(e,n){if(y.isValidElement(e)){var r,i,o=e.key,a=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:o;null==a&&(a="tmp_key-".concat([].concat(rt(t),[n]).join("-")));var s={key:a,eventKey:a};return y.cloneElement(e,s)}return e}))}function AQ(e){var t=y.useRef(e);t.current=e;var n=y.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return e?n:void 0}var DQ=function(e,t){var n=e.className,r=e.children,i=H(e,["className","children"]),o=y.useContext(dQ),a=o.prefixCls,s=o.mode;return y.createElement("ul",D({className:Y()(a,"".concat(a,"-sub"),"".concat(a,"-").concat("inline"===s?"inline":"vertical"),n)},i,{"data-menu-list":!0,ref:t}),r)},NQ=y.forwardRef(DQ);NQ.displayName="SubMenuList";var PQ=NQ,IQ=function(e){return+setTimeout(e,16)},jQ=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(IQ=function(e){return window.requestAnimationFrame(e)},jQ=function(e){return window.cancelAnimationFrame(e)});var RQ=0,FQ=new Map;function zQ(e){FQ.delete(e)}function YQ(e){var t=RQ+=1;return function n(r){if(0===r)zQ(t),e();else{var i=IQ((function(){n(r-1)}));FQ.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t}YQ.cancel=function(e){var t=FQ.get(e);return zQ(t),jQ(t)};var BQ={adjustX:1,adjustY:1},HQ={topLeft:{points:["bl","tl"],overflow:BQ,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:BQ,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:BQ,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:BQ,offset:[4,0]}},qQ={topLeft:{points:["bl","tl"],overflow:BQ,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:BQ,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:BQ,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:BQ,offset:[4,0]}};function UQ(e,t,n){return t||(n?n[e]||n.other:void 0)}var VQ={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function WQ(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,o=e.popupClassName,a=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,u=y.useContext(dQ),d=u.getPopupContainer,h=u.rtl,f=u.subMenuOpenDelay,p=u.subMenuCloseDelay,g=u.builtinPlacements,m=u.triggerSubMenuAction,v=u.forceSubMenuRender,b=u.motion,w=u.defaultMotions,_=oe(y.useState(!1),2),x=_[0],E=_[1],C=U(U({},h?qQ:HQ),g),k=VQ[l],S=U(U({},UQ(l,b,w)),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=y.useRef();return y.useEffect((function(){return T.current=YQ((function(){E(n)})),function(){YQ.cancel(T.current)}}),[n]),y.createElement(v$,{prefixCls:t,popupClassName:Y()("".concat(t,"-popup"),F({},"".concat(t,"-rtl"),h),o),stretch:"horizontal"===l?"minWidth":null,getPopupContainer:d,builtinPlacements:C,popupPlacement:k,popupVisible:x,popup:i,popupAlign:a&&{offset:a},action:s?[]:[m],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:c,forceRender:v,popupMotion:S},r)}function GQ(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,o="inline",a=y.useContext(dQ),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,d=a.mode,h=y.useRef(!1);h.current=d===o;var f=oe(y.useState(!h.current),2),p=f[0],g=f[1],m=!!h.current&&n;y.useEffect((function(){h.current&&g(!1)}),[d]);var v=U({},UQ(o,c,u));r.length>1&&(v.motionAppear=!1);var b=v.onVisibleChanged;return v.onVisibleChanged=function(e){return h.current||e||g(!0),null==b?void 0:b(e)},p?null:y.createElement(hQ,{mode:o,locked:!h.current},y.createElement(et,D({visible:m},v,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),(function(e){var n=e.className,r=e.style;return y.createElement(PQ,{id:t,className:n,style:r},i)})))}var $Q=function(e){var t,n=e.style,r=e.className,i=e.title,o=e.eventKey,a=(e.warnKey,e.disabled),s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,d=e.popupClassName,h=e.popupOffset,f=e.onClick,p=e.onMouseEnter,g=e.onMouseLeave,m=e.onTitleClick,v=e.onTitleMouseEnter,b=e.onTitleMouseLeave,w=H(e,["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"]),_=kQ(o),x=y.useContext(dQ),E=x.prefixCls,C=x.mode,k=x.openKeys,S=x.disabled,T=x.overflowDisabled,M=x.activeKey,O=x.selectedKeys,L=x.itemIcon,A=x.expandIcon,N=x.onItemClick,P=x.onOpenChange,I=x.onActive,j=y.useContext(xQ).isSubPathKey,R=_Q(),z="".concat(E,"-submenu"),B=S||a,q=y.useRef(),V=y.useRef();var W=c||L,G=u||A,$=k.includes(o),K=!T&&$,J=j(O,o),X=fQ(o,B,v,b),Z=X.active,Q=H(X,["active"]),ee=oe(y.useState(!1),2),te=ee[0],ne=ee[1],re=function(e){B||ne(e)},ie=y.useMemo((function(){return Z||"inline"!==C&&(te||j([M],o))}),[C,Z,M,te,o,j]),ae=mQ(R.length),se=AQ((function(e){null==f||f(pQ(e)),N(e)})),le=_&&"".concat(_,"-popup"),ce=y.createElement("div",D({role:"menuitem",style:ae,className:"".concat(z,"-title"),tabIndex:B?null:-1,ref:q,title:"string"==typeof i?i:null,"data-menu-id":T&&_?null:_,"aria-expanded":K,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":B,onClick:function(e){B||(null==m||m({key:o,domEvent:e}),"inline"===C&&P(o,!$))},onFocus:function(){I(o)}},Q),i,y.createElement(gQ,{icon:"horizontal"!==C?G:null,props:U(U({},e),{},{isOpen:K,isSubMenu:!0})},y.createElement("i",{className:"".concat(z,"-arrow")}))),ue=y.useRef(C);if("inline"!==C&&(ue.current=R.length>1?"vertical":C),!T){var de=ue.current;ce=y.createElement(WQ,{mode:de,prefixCls:z,visible:!s&&K&&"inline"!==C,popupClassName:d,popupOffset:h,popup:y.createElement(hQ,{mode:"horizontal"===de?"vertical":de},y.createElement(PQ,{id:le,ref:V},l)),disabled:B,onVisibleChange:function(e){"inline"!==C&&P(o,e)}},ce)}return y.createElement(hQ,{onItemClick:se,mode:"horizontal"===C?"vertical":C,itemIcon:W,expandIcon:G},y.createElement(wX.Item,D({role:"none"},w,{component:"li",style:n,className:Y()(z,"".concat(z,"-").concat(C),r,(t={},F(t,"".concat(z,"-open"),K),F(t,"".concat(z,"-active"),ie),F(t,"".concat(z,"-selected"),J),F(t,"".concat(z,"-disabled"),B),t)),onMouseEnter:function(e){re(!0),null==p||p({key:o,domEvent:e})},onMouseLeave:function(e){re(!1),null==g||g({key:o,domEvent:e})}}),ce,!T&&y.createElement(GQ,{id:le,open:K,keyPath:R},l)))};function KQ(e){var t,n=e.eventKey,r=e.children,i=_Q(n),o=LQ(r,i),a=bQ();return y.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),t=a?o:y.createElement($Q,e,o),y.createElement(wQ.Provider,{value:i},t)}var JQ=function(e){if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect();if(n.width||n.height)return!0}return!1};function XQ(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(JQ(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function ZQ(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=rt(e.querySelectorAll("*")).filter((function(e){return XQ(e,t)}));return XQ(e,t)&&n.unshift(e),n}var QQ=cQ.LEFT,e0=cQ.RIGHT,t0=cQ.UP,n0=cQ.DOWN,r0=cQ.ENTER,i0=cQ.ESC,o0=[t0,n0,QQ,e0];function a0(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=function(e,t){return ZQ(e,!0).filter((function(e){return t.has(e)}))}(e,t),o=i.length,a=i.findIndex((function(e){return n===e}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}function s0(e,t,n,r,i,o,a,s,l,c){var u=y.useRef(),d=y.useRef();d.current=t;var h=function(){YQ.cancel(u.current)};return y.useEffect((function(){return function(){h()}}),[]),function(f){var p=f.which;if([].concat(o0,[r0,i0]).includes(p)){var g,m,v,y=function(){return g=new Set,m=new Map,v=new Map,o().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(CQ(r,e),"']"));t&&(g.add(t),v.set(t,e),m.set(e,t))})),g};y();var b=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(m.get(t),g),w=v.get(b),_=function(e,t,n,r){var i,o,a,s,l="prev",c="next",u="children",d="parent";if("inline"===e&&r===r0)return{inlineTrigger:!0};var h=(F(i={},t0,l),F(i,n0,c),i),f=(F(o={},QQ,n?c:l),F(o,e0,n?l:c),F(o,n0,u),F(o,r0,u),o),p=(F(a={},t0,l),F(a,n0,c),F(a,r0,u),F(a,i0,d),F(a,QQ,n?u:d),F(a,e0,n?d:u),a);switch(null===(s={inline:h,horizontal:f,vertical:p,inlineSub:h,horizontalSub:p,verticalSub:p}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(e,1===a(w,!0).length,n,p);if(!_)return;o0.includes(p)&&f.preventDefault();var x=function(e){if(e){var t=e,n=e.querySelector("a");(null==n?void 0:n.getAttribute("href"))&&(t=n);var r=v.get(e);s(r),h(),u.current=YQ((function(){d.current===r&&t.focus()}))}};if(_.sibling||!b){var E=a0(b&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(b):i.current,g,b,_.offset);x(E)}else if(_.inlineTrigger)l(w);else if(_.offset>0)l(w,!0),h(),u.current=YQ((function(){y();var e=b.getAttribute("aria-controls"),t=a0(document.getElementById(e),g);x(t)}),5);else if(_.offset<0){var C=a(w,!0),k=C[C.length-2],S=m.get(k);l(k,!1),x(S)}}null==c||c(f)}}var l0=Math.random().toFixed(5).toString().slice(2),c0=0;var u0="__RC_UTIL_PATH_SPLIT__",d0=function(e){return e.join(u0)},h0="rc-menu-more";function f0(){var e=oe(y.useState({}),2)[1],t=(0,y.useRef)(new Map),n=(0,y.useRef)(new Map),r=oe(y.useState([]),2),i=r[0],o=r[1],a=(0,y.useRef)(0),s=(0,y.useRef)(!1),l=(0,y.useCallback)((function(r,i){var o=d0(i);n.current.set(o,r),t.current.set(r,o),a.current+=1;var l,c=a.current;l=function(){c===a.current&&(s.current||e({}))},Promise.resolve().then(l)}),[]),c=(0,y.useCallback)((function(e,r){var i=d0(r);n.current.delete(i),t.current.delete(e)}),[]),u=(0,y.useCallback)((function(e){o(e)}),[]),d=(0,y.useCallback)((function(e,n){var r=t.current.get(e)||"",o=r.split(u0);return n&&i.includes(o[0])&&o.unshift(h0),o}),[i]),h=(0,y.useCallback)((function(e,t){return e.some((function(e){return d(e,!0).includes(t)}))}),[d]),f=(0,y.useCallback)((function(e){var r="".concat(t.current.get(e)).concat(u0),i=new Set;return rt(n.current.keys()).forEach((function(e){e.startsWith(r)&&i.add(n.current.get(e))})),i}),[]);return y.useEffect((function(){return function(){s.current=!0}}),[]),{registerPath:l,unregisterPath:c,refreshOverflowKeys:u,isSubPathKey:h,getKeyPath:d,getKeys:function(){var e=rt(t.current.keys());return i.length&&e.push(h0),e},getSubPathKeys:f}}var p0=[],g0=function(e){var t,n,r=e.prefixCls,i=void 0===r?"rc-menu":r,o=e.style,a=e.className,s=e.tabIndex,l=void 0===s?0:s,c=e.children,u=e.direction,d=e.id,h=e.mode,f=void 0===h?"vertical":h,p=e.inlineCollapsed,g=e.disabled,m=e.disabledOverflow,v=e.subMenuOpenDelay,b=void 0===v?.1:v,w=e.subMenuCloseDelay,_=void 0===w?.1:w,x=e.forceSubMenuRender,E=e.defaultOpenKeys,C=e.openKeys,k=e.activeKey,S=e.defaultActiveFirst,T=e.selectable,M=void 0===T||T,O=e.multiple,L=void 0!==O&&O,A=e.defaultSelectedKeys,N=e.selectedKeys,P=e.onSelect,I=e.onDeselect,j=e.inlineIndent,R=void 0===j?24:j,z=e.motion,B=e.defaultMotions,q=e.triggerSubMenuAction,V=void 0===q?"hover":q,W=e.builtinPlacements,G=e.itemIcon,$=e.expandIcon,K=e.overflowedIndicator,J=void 0===K?"...":K,X=e.overflowedIndicatorPopupClassName,Z=e.getPopupContainer,Q=e.onClick,ee=e.onOpenChange,te=e.onKeyDown,ne=(e.openAnimation,e.openTransitionName,H(e,["prefixCls","style","className","tabIndex","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName"])),re=LQ(c,p0),ie=oe(y.useState(!1),2),ae=ie[0],se=ie[1],le=y.useRef(),ce=function(e){var t=oe(rQ(e,{value:e}),2),n=t[0],r=t[1];return y.useEffect((function(){c0+=1;var e="".concat(l0,"-").concat(c0);r("rc-menu-uuid-".concat(e))}),[]),n}(d),ue="rtl"===u;var de=oe(y.useMemo((function(){return"inline"!==f&&"vertical"!==f||!p?[f,!1]:["vertical",p]}),[f,p]),2),he=de[0],fe=de[1],pe=oe(y.useState(0),2),ge=pe[0],me=pe[1],ve=ge>=re.length-1||"horizontal"!==he||m,ye=rQ(E,{value:C,postState:function(e){return e||p0}}),be=oe(ye,2),we=be[0],_e=be[1],xe=function(e){_e(e),null==ee||ee(e)},Ee=oe(y.useState(we),2),Ce=Ee[0],ke=Ee[1],Se="inline"===he,Te=y.useRef(!1);y.useEffect((function(){Se&&ke(we)}),[we]),y.useEffect((function(){Te.current?Se?_e(Ce):xe(p0):Te.current=!0}),[Se]);var Me=f0(),Oe=Me.registerPath,Le=Me.unregisterPath,Ae=Me.refreshOverflowKeys,De=Me.isSubPathKey,Ne=Me.getKeyPath,Pe=Me.getKeys,Ie=Me.getSubPathKeys,je=y.useMemo((function(){return{registerPath:Oe,unregisterPath:Le}}),[Oe,Le]),Re=y.useMemo((function(){return{isSubPathKey:De}}),[De]);y.useEffect((function(){Ae(ve?p0:re.slice(ge+1).map((function(e){return e.key})))}),[ge,ve]);var Fe=oe(rQ(k||S&&(null===(t=re[0])||void 0===t?void 0:t.key),{value:k}),2),ze=Fe[0],Ye=Fe[1],Be=AQ((function(e){Ye(e)})),He=AQ((function(){Ye(void 0)})),qe=rQ(A||[],{value:N,postState:function(e){return Array.isArray(e)?e:null==e?p0:[e]}}),Ue=oe(qe,2),Ve=Ue[0],We=Ue[1],Ge=AQ((function(e){null==Q||Q(pQ(e)),function(e){if(M){var t,n=e.key,r=Ve.includes(n);t=L?r?Ve.filter((function(e){return e!==n})):[].concat(rt(Ve),[n]):[n],We(t);var i=U(U({},e),{},{selectedKeys:t});r?null==I||I(i):null==P||P(i)}!L&&we.length&&"inline"!==he&&xe(p0)}(e)})),$e=AQ((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==he){var r=Ie(e);n=n.filter((function(e){return!r.has(e)}))}$$()(we,n)||xe(n)})),Ke=AQ(Z),Je=s0(he,ze,ue,ce,le,Pe,Ne,Ye,(function(e,t){var n=null!=t?t:!we.includes(e);$e(e,n)}),te);y.useEffect((function(){se(!0)}),[]);var Xe="horizontal"!==he||m?re:re.map((function(e,t){return y.createElement(hQ,{key:e.key,overflowDisabled:t>ge},e)})),Ze=y.createElement(wX,D({id:d,ref:le,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:MQ,className:Y()(i,"".concat(i,"-root"),"".concat(i,"-").concat(he),a,(n={},F(n,"".concat(i,"-inline-collapsed"),fe),F(n,"".concat(i,"-rtl"),ue),n)),dir:u,style:o,role:"menu",tabIndex:l,data:Xe,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?re.slice(-t):null;return y.createElement(KQ,{eventKey:h0,title:J,disabled:ve,internalPopupClose:0===t,popupClassName:X},n)},maxCount:"horizontal"!==he||m?wX.INVALIDATE:wX.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){me(e)},onKeyDown:Je},ne));return y.createElement(EQ.Provider,{value:ce},y.createElement(hQ,{prefixCls:i,mode:he,openKeys:we,rtl:ue,disabled:g,motion:ae?z:null,defaultMotions:ae?B:null,activeKey:ze,onActive:Be,onInactive:He,selectedKeys:Ve,inlineIndent:R,subMenuOpenDelay:b,subMenuCloseDelay:_,forceSubMenuRender:x,builtinPlacements:W,triggerSubMenuAction:V,getPopupContainer:Ke,itemIcon:G,expandIcon:$,onItemClick:Ge,onOpenChange:$e},y.createElement(xQ.Provider,{value:Re},Ze),y.createElement("div",{style:{display:"none"},"aria-hidden":!0},y.createElement(yQ.Provider,{value:je},re))))},m0=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),i=H(e,["className","title","eventKey","children"]),o=y.useContext(dQ).prefixCls,a="".concat(o,"-item-group");return y.createElement("li",D({},i,{onClick:function(e){return e.stopPropagation()},className:Y()(a,t)}),y.createElement("div",{className:"".concat(a,"-title"),title:"string"==typeof n?n:void 0},n),y.createElement("ul",{className:"".concat(a,"-list")},r))};function v0(e){var t=e.children,n=H(e,["children"]),r=LQ(t,_Q(n.eventKey));return bQ()?r:y.createElement(m0,uQ(n,["warnKey"]),r)}function y0(e){var t=e.className,n=e.style,r=y.useContext(dQ).prefixCls;return bQ()?null:y.createElement("li",{className:Y()("".concat(r,"-item-divider"),t),style:n})}var b0=_Q,w0=g0;w0.Item=MQ,w0.SubMenu=KQ,w0.ItemGroup=v0,w0.Divider=y0;var _0=w0,x0=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var E0=function(e){var t,n,r=e.popupClassName,i=e.icon,o=e.title,a=y.useContext(x0),s=a.prefixCls,l=a.inlineCollapsed,c=a.antdMenuTheme,u=b0();if(i){var d=aB(o)&&"span"===o.type;n=y.createElement(y.Fragment,null,lB(i,{className:Y()(aB(i)?null===(t=i.props)||void 0===t?void 0:t.className:"","".concat(s,"-item-icon"))}),d?o:y.createElement("span",{className:"".concat(s,"-title-content")},o))}else n=l&&!u.length&&o&&"string"==typeof o?y.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},o.charAt(0)):y.createElement("span",{className:"".concat(s,"-title-content")},o);return y.createElement(x0.Provider,{value:D(D({},a),{firstLevel:!1})},y.createElement(KQ,D({},YY(e,["icon"]),{title:n,popupClassName:Y()(s,"".concat(s,"-").concat(c),r)})))};function C0(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return y.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(C0(e)):(0,A.isFragment)(e)&&e.props?n=n.concat(C0(e.props.children,t)):n.push(e))})),n}var k0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"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 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},S0=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:k0}))};S0.displayName="BarsOutlined";var T0=y.forwardRef(S0),M0=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},O0=y.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function L0(e){var t=e.suffixCls,n=e.tagName,r=e.displayName;return function(e){var i=function(r){var i=y.useContext(Bn).getPrefixCls,o=r.prefixCls,a=i(t,o);return y.createElement(e,D({prefixCls:a,tagName:n},r))};return i.displayName=r,i}}var A0=function(e){var t=e.prefixCls,n=e.className,r=e.children,i=e.tagName,o=M0(e,["prefixCls","className","children","tagName"]),a=Y()(t,n);return y.createElement(i,D({className:a},o),r)},D0=(L0({suffixCls:"layout",tagName:"section",displayName:"Layout"})((function(e){var t,n=y.useContext(Bn).direction,r=oe(y.useState([]),2),i=r[0],o=r[1],a=e.prefixCls,s=e.className,l=e.children,c=e.hasSider,u=e.tagName,d=M0(e,["prefixCls","className","children","hasSider","tagName"]),h=Y()(a,(F(t={},"".concat(a,"-has-sider"),"boolean"==typeof c?c:i.length>0),F(t,"".concat(a,"-rtl"),"rtl"===n),t),s);return y.createElement(O0.Provider,{value:{siderHook:{addSider:function(e){o((function(t){return[].concat(rt(t),[e])}))},removeSider:function(e){o((function(t){return t.filter((function(t){return t!==e}))}))}}}},y.createElement(u,D({className:h},d),l))})),L0({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(A0),L0({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(A0),L0({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(A0),function(e){return!isNaN(parseFloat(e))&&isFinite(e)}),N0=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},P0={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I0=y.createContext({}),j0=function(){var e=0;return function(){return e+=1,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(e)}}(),R0=y.forwardRef((function(e,t){var n=e.prefixCls,r=e.className,i=e.trigger,o=e.children,a=e.defaultCollapsed,s=void 0!==a&&a,l=e.theme,c=void 0===l?"dark":l,u=e.style,d=void 0===u?{}:u,h=e.collapsible,f=void 0!==h&&h,p=e.reverseArrow,g=void 0!==p&&p,m=e.width,v=void 0===m?200:m,b=e.collapsedWidth,w=void 0===b?80:b,_=e.zeroWidthTriggerStyle,x=e.breakpoint,E=e.onCollapse,C=e.onBreakpoint,k=N0(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),S=(0,y.useContext)(O0).siderHook,T=oe((0,y.useState)("collapsed"in k?k.collapsed:s),2),M=T[0],O=T[1],L=oe((0,y.useState)(!1),2),A=L[0],N=L[1];(0,y.useEffect)((function(){"collapsed"in k&&O(k.collapsed)}),[k.collapsed]);var P=function(e,t){"collapsed"in k||O(e),null==E||E(e,t)},I=(0,y.useRef)();I.current=function(e){N(e.matches),null==C||C(e.matches),M!==e.matches&&P(e.matches,"responsive")},(0,y.useEffect)((function(){function e(e){return I.current(e)}var t;if("undefined"!=typeof window){var n=window.matchMedia;if(n&&x&&x in P0){t=n("(max-width: ".concat(P0[x],")"));try{t.addEventListener("change",e)}catch(n){t.addListener(e)}e(t)}}return function(){try{null==t||t.removeEventListener("change",e)}catch(n){null==t||t.removeListener(e)}}}),[]),(0,y.useEffect)((function(){var e=j0("ant-sider-");return S.addSider(e),function(){return S.removeSider(e)}}),[]);var j,R,z,B,H,q,U,V,W,G,$=function(){P(!M,"clickTrigger")},K=(0,y.useContext)(Bn).getPrefixCls;return y.createElement(I0.Provider,{value:{siderCollapsed:M}},(R=K("layout-sider",n),z=YY(k,["collapsed"]),H=D0(B=M?w:v)?"".concat(B,"px"):String(B),q=0===parseFloat(String(w||0))?y.createElement("span",{onClick:$,className:Y()("".concat(R,"-zero-width-trigger"),"".concat(R,"-zero-width-trigger-").concat(g?"right":"left")),style:_},i||y.createElement(T0,null)):null,U={expanded:g?y.createElement(CJ,null):y.createElement(_J,null),collapsed:g?y.createElement(_J,null):y.createElement(CJ,null)}[M?"collapsed":"expanded"],V=null!==i?q||y.createElement("div",{className:"".concat(R,"-trigger"),onClick:$,style:{width:H}},i||U):null,W=D(D({},d),{flex:"0 0 ".concat(H),maxWidth:H,minWidth:H,width:H}),G=Y()(R,"".concat(R,"-").concat(c),(F(j={},"".concat(R,"-collapsed"),!!M),F(j,"".concat(R,"-has-trigger"),f&&null!==i&&!q),F(j,"".concat(R,"-below"),!!A),F(j,"".concat(R,"-zero-width"),0===parseFloat(H)),j),r),y.createElement("aside",D({className:G},z,{style:W,ref:t}),y.createElement("div",{className:"".concat(R,"-children")},o),f||A&&q?V:null)))}));R0.displayName="Sider";var F0=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},z0=function(e){K(n,e);var t=ee(n);function n(){var e;return V(this,n),(e=t.apply(this,arguments)).renderItem=function(t){var n,r,i=t.siderCollapsed,o=e.context,a=o.prefixCls,s=o.firstLevel,l=o.inlineCollapsed,c=o.direction,u=e.props,d=u.className,h=u.children,f=e.props,p=f.title,g=f.icon,m=f.danger,v=F0(f,["title","icon","danger"]),b=p;void 0===p?b=s?h:"":!1===p&&(b="");var w={title:b};i||l||(w.title=null,w.visible=!1);var _=C0(h).length;return y.createElement(P$,D({},w,{placement:"rtl"===c?"left":"right",overlayClassName:"".concat(a,"-inline-collapsed-tooltip")}),y.createElement(MQ,D({},v,{className:Y()((n={},F(n,"".concat(a,"-item-danger"),m),F(n,"".concat(a,"-item-only-child"),1===(g?_+1:_)),n),d),title:"string"==typeof p?p:void 0}),lB(g,{className:Y()(aB(g)?null===(r=g.props)||void 0===r?void 0:r.className:"","".concat(a,"-item-icon"))}),e.renderItemChildren(l)))},e}return G(n,[{key:"renderItemChildren",value:function(e){var t=this.context,n=t.prefixCls,r=t.firstLevel,i=this.props,o=i.icon,a=i.children,s=y.createElement("span",{className:"".concat(n,"-title-content")},a);return(!o||aB(a)&&"span"===a.type)&&a&&e&&r&&"string"==typeof a?y.createElement("div",{className:"".concat(n,"-inline-collapsed-noicon")},a.charAt(0)):s}},{key:"render",value:function(){return y.createElement(I0.Consumer,null,this.renderItem)}}]),n}(y.Component);z0.contextType=x0;var Y0=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},B0=function(e){K(n,e);var t=ee(n);function n(e){var r;return V(this,n),(r=t.call(this,e)).renderMenu=function(e){var t=e.getPopupContainer,n=e.getPrefixCls,i=e.direction,o=n(),a=r.props,s=a.prefixCls,l=a.className,c=a.theme,u=a.expandIcon,d=YY(Y0(a,["prefixCls","className","theme","expandIcon"]),["siderCollapsed","collapsedWidth"]),h=r.getInlineCollapsed(),f={horizontal:{motionName:"".concat(o,"-slide-up")},inline:LB,other:{motionName:"".concat(o,"-zoom-big")}},p=n("menu",s),g=Y()("".concat(p,"-").concat(c),l);return y.createElement(x0.Provider,{value:{prefixCls:p,inlineCollapsed:h||!1,antdMenuTheme:c,direction:i,firstLevel:!0}},y.createElement(_0,D({getPopupContainer:t,overflowedIndicator:y.createElement(KZ,null),overflowedIndicatorPopupClassName:"".concat(p,"-").concat(c)},d,{inlineCollapsed:h,className:g,prefixCls:p,direction:i,defaultMotions:f,expandIcon:lB(u,{className:"".concat(p,"-submenu-expand-icon")})})))},fi(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),fi(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),r}return G(n,[{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"render",value:function(){return y.createElement(Hn,null,this.renderMenu)}}]),n}(y.Component);B0.defaultProps={theme:"light"};var H0=function(e){K(n,e);var t=ee(n);function n(){return V(this,n),t.apply(this,arguments)}return G(n,[{key:"render",value:function(){var e=this;return y.createElement(I0.Consumer,null,(function(t){return y.createElement(B0,D({},e.props,t))}))}}]),n}(y.Component);H0.Divider=y0,H0.Item=z0,H0.SubMenu=E0,H0.ItemGroup=v0;var q0=H0,U0=y.createContext(null),V0=U0.Provider,W0=U0,G0=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},$0=function(e,t){var n,r=y.useContext(W0),i=y.useContext(Bn),o=i.getPrefixCls,a=i.direction,s=KY(t,y.useRef());y.useEffect((function(){fi(!("optionType"in e),"Radio","`optionType` is only support in Radio.Group.")}),[]);var l=e.prefixCls,c=e.className,u=e.children,d=e.style,h=G0(e,["prefixCls","className","children","style"]),f=o("radio",l),p=D({},h);r&&(p.name=r.name,p.onChange=function(t){var n,i;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(i=null==r?void 0:r.onChange)||void 0===i||i.call(r,t)},p.checked=e.value===r.value,p.disabled=e.disabled||r.disabled);var g=Y()("".concat(f,"-wrapper"),(F(n={},"".concat(f,"-wrapper-checked"),p.checked),F(n,"".concat(f,"-wrapper-disabled"),p.disabled),F(n,"".concat(f,"-wrapper-rtl"),"rtl"===a),n),c);return y.createElement("label",{className:g,style:d,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},y.createElement(LZ,D({},p,{prefixCls:f,ref:s})),void 0!==u?y.createElement("span",null,u):null)},K0=y.forwardRef($0);K0.displayName="Radio",K0.defaultProps={type:"radio"};var J0=K0;function X0(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||"data-__"===n.substr(0,7)||(t[n]=e[n]),t}),{})}var Z0=y.forwardRef((function(e,t){var n=y.useContext(Bn),r=n.getPrefixCls,i=n.direction,o=y.useContext(_i),a=oe(C$(e.defaultValue,{value:e.value}),2),s=a[0],l=a[1];return y.createElement(V0,{value:{onChange:function(t){var n=s,r=t.target.value;"value"in e||l(r);var i=e.onChange;i&&r!==n&&i(t)},value:s,disabled:e.disabled,name:e.name}},function(){var n,a=e.prefixCls,l=e.className,c=void 0===l?"":l,u=e.options,d=e.optionType,h=e.buttonStyle,f=void 0===h?"outline":h,p=e.disabled,g=e.children,m=e.size,v=e.style,b=e.id,w=e.onMouseEnter,_=e.onMouseLeave,x=r("radio",a),E="".concat(x,"-group"),C=g;if(u&&u.length>0){var k="button"===d?"".concat(x,"-button"):x;C=u.map((function(e){return"string"==typeof e?y.createElement(J0,{key:e,prefixCls:k,disabled:p,value:e,checked:s===e},e):y.createElement(J0,{key:"radio-group-value-options-".concat(e.value),prefixCls:k,disabled:e.disabled||p,value:e.value,checked:s===e.value,style:e.style},e.label)}))}var S=m||o,T=Y()(E,"".concat(E,"-").concat(f),(F(n={},"".concat(E,"-").concat(S),S),F(n,"".concat(E,"-rtl"),"rtl"===i),n),c);return y.createElement("div",D({},X0(e),{className:T,style:v,onMouseEnter:w,onMouseLeave:_,id:b,ref:t}),C)}())})),Q0=y.memo(Z0),e1=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},t1=function(e,t){var n=y.useContext(W0),r=y.useContext(Bn).getPrefixCls,i=e.prefixCls,o=e1(e,["prefixCls"]),a=r("radio-button",i);return n&&(o.checked=e.value===n.value,o.disabled=e.disabled||n.disabled),y.createElement(J0,D({prefixCls:a},o,{type:"radio",ref:t}))},n1=y.forwardRef(t1),r1=J0;r1.Button=n1,r1.Group=Q0;var i1=r1,o1="SELECT_ALL",a1="SELECT_INVERT",s1="SELECT_NONE";function l1(e){return e&&e.fixed}function c1(e,t){var n=[];return(e||[]).forEach((function(e){n.push(e),e&&"object"===X(e)&&t in e&&(n=[].concat(rt(n),rt(c1(e[t],t))))})),n}function u1(e,t){var n=e||{},r=n.preserveSelectedRowKeys,i=n.selectedRowKeys,o=n.defaultSelectedRowKeys,a=n.getCheckboxProps,s=n.onChange,l=n.onSelect,c=n.onSelectAll,u=n.onSelectInvert,d=n.onSelectNone,h=n.onSelectMultiple,f=n.columnWidth,p=n.type,g=n.selections,m=n.fixed,v=n.renderCell,b=n.hideSelectAll,w=n.checkStrictly,_=void 0===w||w,x=t.prefixCls,E=t.data,C=t.pageData,k=t.getRecordByKey,S=t.getRowKey,T=t.expandType,M=t.childrenColumnName,O=t.locale,L=t.expandIconColumnIndex,A=t.getPopupContainer,N=oe(C$(i||o||[],{value:i}),2),P=N[0],I=N[1],j=y.useRef(new Map),R=(0,y.useCallback)((function(e){if(r){var t=new Map;e.forEach((function(e){var n=k(e);!n&&j.current.has(e)&&(n=j.current.get(e)),t.set(e,n)})),j.current=t}}),[k,r]);y.useEffect((function(){R(P)}),[P]);var z=(0,y.useMemo)((function(){return _?{keyEntities:null}:CZ(E,{externalGetKey:S,childrenPropName:M})}),[E,S,_,M]).keyEntities,Y=(0,y.useMemo)((function(){return c1(C,M)}),[C,M]),B=(0,y.useMemo)((function(){var e=new Map;return Y.forEach((function(t,n){var r=S(t,n),i=(a?a(t):null)||{};e.set(r,i)})),e}),[Y,S,a]),H=(0,y.useCallback)((function(e){var t;return!!(null===(t=B.get(S(e)))||void 0===t?void 0:t.disabled)}),[B,S]),q=oe((0,y.useMemo)((function(){if(_)return[P||[],[]];var e=MZ(P,!0,z,H);return[e.checkedKeys||[],e.halfCheckedKeys]}),[P,_,z,H]),2),U=q[0],V=q[1],W=(0,y.useMemo)((function(){var e="radio"===p?U.slice(0,1):U;return new Set(e)}),[U,p]),G=(0,y.useMemo)((function(){return"radio"===p?new Set:new Set(V)}),[V,p]),$=oe((0,y.useState)(null),2),K=$[0],J=$[1];y.useEffect((function(){e||I([])}),[!!e]);var X=(0,y.useCallback)((function(e){var t,n;R(e),r?(t=e,n=e.map((function(e){return j.current.get(e)}))):(t=[],n=[],e.forEach((function(e){var r=k(e);void 0!==r&&(t.push(e),n.push(r))}))),I(t),null==s||s(t,n)}),[I,k,s,r]),Z=(0,y.useCallback)((function(e,t,n,r){if(l){var i=n.map((function(e){return k(e)}));l(k(e),t,i,r)}X(n)}),[l,k,X]),Q=(0,y.useMemo)((function(){return!g||b?null:(!0===g?[o1,a1,s1]:g).map((function(e){return e===o1?{key:"all",text:O.selectionAll,onSelect:function(){X(E.map((function(e,t){return S(e,t)})))}}:e===a1?{key:"invert",text:O.selectInvert,onSelect:function(){var e=new Set(W);C.forEach((function(t,n){var r=S(t,n);e.has(r)?e.delete(r):e.add(r)}));var t=Array.from(e);u&&(fi(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),u(t)),X(t)}}:e===s1?{key:"none",text:O.selectNone,onSelect:function(){null==d||d(),X([])}}:e}))}),[g,W,C,S,u,X]),ee=(0,y.useCallback)((function(t){if(!e)return t;var n,r,i=new Set(W),o=Y.map(S).filter((function(e){return!B.get(e).disabled})),a=o.every((function(e){return i.has(e)})),s=o.some((function(e){return i.has(e)}));if("radio"!==p){var l;if(Q){var u=y.createElement(q0,{getPopupContainer:A},Q.map((function(e,t){var n=e.key,r=e.text,i=e.onSelect;return y.createElement(q0.Item,{key:n||t,onClick:function(){null==i||i(o)}},r)})));l=y.createElement("div",{className:"".concat(x,"-selection-extra")},y.createElement(nQ,{overlay:u,getPopupContainer:A},y.createElement("span",null,y.createElement(HX,null))))}var d=Y.map((function(e,t){var n=S(e,t),r=B.get(n)||{};return D({checked:i.has(n)},r)})).filter((function(e){return e.disabled})),g=!!d.length&&d.length===Y.length,w=g&&d.every((function(e){return e.checked})),E=g&&d.some((function(e){return e.checked}));n=!b&&y.createElement("div",{className:"".concat(x,"-selection")},y.createElement(BZ,{checked:g?w:!!Y.length&&a,indeterminate:g?!w&&E:!a&&s,onChange:function(){var e=[];a?o.forEach((function(t){i.delete(t),e.push(t)})):o.forEach((function(t){i.has(t)||(i.add(t),e.push(t))}));var t=Array.from(i);null==c||c(!a,t.map((function(e){return k(e)})),e.map((function(e){return k(e)}))),X(t)},disabled:0===Y.length||g,skipGroup:!0}),l)}r="radio"===p?function(e,t,n){var r=S(t,n),o=i.has(r);return{node:y.createElement(i1,D({},B.get(r),{checked:o,onClick:function(e){return e.stopPropagation()},onChange:function(e){i.has(r)||Z(r,!0,[r],e.nativeEvent)}})),checked:o}}:function(e,t,n){var r,a,s=S(t,n),l=i.has(s),c=G.has(s),u=B.get(s);return"nest"===T?(a=c,fi("boolean"!=typeof(null==u?void 0:u.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):a=null!==(r=null==u?void 0:u.indeterminate)&&void 0!==r?r:c,{node:y.createElement(BZ,D({},u,{indeterminate:a,checked:l,skipGroup:!0,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,n=t.shiftKey,r=-1,a=-1;if(n&&_){var c=new Set([K,s]);o.some((function(e,t){if(c.has(e)){if(-1!==r)return a=t,!0;r=t}return!1}))}if(-1!==a&&r!==a&&_){var u=o.slice(r,a+1),d=[];l?u.forEach((function(e){i.has(e)&&(d.push(e),i.delete(e))})):u.forEach((function(e){i.has(e)||(d.push(e),i.add(e))}));var f=Array.from(i);null==h||h(!l,f.map((function(e){return k(e)})),d.map((function(e){return k(e)}))),X(f)}else{var p=U;if(_){var g=l?function(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}(p,s):function(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}(p,s);Z(s,!l,g,t)}else{var m=MZ([].concat(rt(p),[s]),!0,z,H),v=m.checkedKeys,y=m.halfCheckedKeys,b=v;if(l){var w=new Set(v);w.delete(s),b=MZ(Array.from(w),{checked:!1,halfCheckedKeys:y},z,H).checkedKeys}Z(s,!l,b,t)}}J(s)}})),checked:l}};var C=F({width:f,className:"".concat(x,"-selection-column"),title:e.columnTitle||n,render:function(e,t,n){var i=r(e,t,n),o=i.node,a=i.checked;return v?v(a,t,n,o):o}},DK,{className:"".concat(x,"-selection-col")});if("row"===T&&t.length&&!L){var M=kr(t),O=M[0],N=M.slice(1),P=m||l1(N[0]);return P&&(O.fixed=P),[O,D(D({},C),{fixed:P})].concat(rt(N))}return[D(D({},C),{fixed:m||l1(t[0])})].concat(rt(t))}),[S,Y,e,U,W,G,f,Q,T,K,B,h,Z,H]);return[ee,W]}var d1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}}]},name:"caret-down",theme:"outlined"},h1=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:d1}))};h1.displayName="CaretDownOutlined";var f1=y.forwardRef(h1),p1={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}}]},name:"caret-up",theme:"outlined"},g1=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:p1}))};g1.displayName="CaretUpOutlined";var m1=y.forwardRef(g1);function v1(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function y1(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function b1(e,t){return"function"==typeof e?e(t):e}var w1="ascend",_1="descend";function x1(e){return"object"===X(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function E1(e){return"function"==typeof e?e:!(!e||"object"!==X(e)||!e.compare)&&e.compare}function C1(e,t,n){var r=[];function i(e,t){r.push({column:e,key:v1(e,t),multiplePriority:x1(e),sortOrder:e.sortOrder})}return(e||[]).forEach((function(e,o){var a=y1(o,n);e.children?("sortOrder"in e&&i(e,a),r=[].concat(rt(r),rt(C1(e.children,t,a)))):e.sorter&&("sortOrder"in e?i(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:v1(e,a),multiplePriority:x1(e),sortOrder:e.defaultSortOrder}))})),r}function k1(e,t,n,r,i,o,a,s){return(t||[]).map((function(t,l){var c=y1(l,s),u=t;if(u.sorter){var d=u.sortDirections||i,h=void 0===u.showSorterTooltip?a:u.showSorterTooltip,f=v1(u,c),p=n.find((function(e){return e.key===f})),g=p?p.sortOrder:null,m=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(d,g),v=d.includes(w1)&&y.createElement(m1,{className:Y()("".concat(e,"-column-sorter-up"),{active:g===w1})}),b=d.includes(_1)&&y.createElement(f1,{className:Y()("".concat(e,"-column-sorter-down"),{active:g===_1})}),w=o||{},_=w.cancelSort,x=w.triggerAsc,E=w.triggerDesc,C=_;m===_1?C=E:m===w1&&(C=x);var k="object"===X(h)?h:{title:C};u=D(D({},u),{className:Y()(u.className,F({},"".concat(e,"-column-sort"),g)),title:function(n){var r=y.createElement("div",{className:"".concat(e,"-column-sorters")},y.createElement("span",{className:"".concat(e,"-column-title")},b1(t.title,n)),y.createElement("span",{className:Y()("".concat(e,"-column-sorter"),F({},"".concat(e,"-column-sorter-full"),!(!v||!b)))},y.createElement("span",{className:"".concat(e,"-column-sorter-inner")},v,b)));return h?y.createElement(P$,k,r):r},onHeaderCell:function(n){var i=t.onHeaderCell&&t.onHeaderCell(n)||{},o=i.onClick;return i.onClick=function(e){r({column:t,key:f,sortOrder:m,multiplePriority:x1(t)}),o&&o(e)},i.className=Y()(i.className,"".concat(e,"-column-has-sorters")),i}})}return"children"in u&&(u=D(D({},u),{children:k1(e,u.children,n,r,i,o,a,c)})),u}))}function S1(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function T1(e){var t=e.filter((function(e){return e.sortOrder})).map(S1);return 0===t.length&&e.length?D(D({},S1(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function M1(e,t,n){var r=t.slice().sort((function(e,t){return t.multiplePriority-e.multiplePriority})),i=e.slice(),o=r.filter((function(e){var t=e.column.sorter,n=e.sortOrder;return E1(t)&&n}));return o.length?i.sort((function(e,t){for(var n=0;n<o.length;n+=1){var r=o[n],i=r.column.sorter,a=r.sortOrder,s=E1(i);if(s&&a){var l=s(e,t,a);if(0!==l)return a===w1?l:-l}}return 0})).map((function(e){var r=e[n];return r?D(D({},e),F({},n,M1(r,t,n))):e})):i}function O1(e){var t=e.prefixCls,n=e.mergedColumns,r=e.onSorterChange,i=e.sortDirections,o=e.tableLocale,a=e.showSorterTooltip,s=oe(y.useState(C1(n,!0)),2),l=s[0],c=s[1],u=y.useMemo((function(){var e=!0,t=C1(n,!1);if(!t.length)return l;var r=[];function i(t){e?r.push(t):r.push(D(D({},t),{sortOrder:null}))}var o=null;return t.forEach((function(t){null===o?(i(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:o=!0)):(o&&!1!==t.multiplePriority||(e=!1),i(t))})),r}),[n,l]),d=y.useMemo((function(){var e=u.map((function(e){return{column:e.column,order:e.sortOrder}}));return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}}),[u]);function h(e){var t;t=!1!==e.multiplePriority&&u.length&&!1!==u[0].multiplePriority?[].concat(rt(u.filter((function(t){return t.key!==e.key}))),[e]):[e],c(t),r(T1(t),t)}return[function(e){return k1(t,e,u,h,i,o,a)},u,d,function(){return T1(u)}]}var L1=__webpack_require__(81818),A1=__webpack_require__.n(L1),D1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}}]},name:"filter",theme:"filled"},N1=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:D1}))};N1.displayName="FilterFilled";var P1=y.forwardRef(N1),I1=function(e){return y.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};function j1(){var e=y.useReducer((function(e){return e+1}),0);return oe(e,2)[1]}var R1=q0.SubMenu,F1=q0.Item;function z1(e){var t=e.filters,n=e.prefixCls,r=e.filteredKeys,i=e.filterMultiple,o=e.locale;return 0===t.length?y.createElement(F1,{key:"empty"},y.createElement("div",{style:{margin:"16px 0"}},y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE,description:o.filterEmptyText,imageStyle:{height:24}}))):t.map((function(e,t){var a=String(e.value);if(e.children)return y.createElement(R1,{key:a||t,title:e.text,popupClassName:"".concat(n,"-dropdown-submenu")},z1({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,locale:o}));var s=i?BZ:i1;return y.createElement(F1,{key:void 0!==e.value?a:t},y.createElement(s,{checked:r.includes(a)}),y.createElement("span",null,e.text))}))}var Y1=function(e){var t,n=e.tablePrefixCls,r=e.prefixCls,i=e.column,o=e.dropdownPrefixCls,a=e.columnKey,s=e.filterMultiple,l=e.filterState,c=e.triggerFilter,u=e.locale,d=e.children,h=e.getPopupContainer,f=i.filterDropdownVisible,p=i.onFilterDropdownVisibleChange,g=oe(y.useState(!1),2),m=g[0],v=g[1],b=!(!l||!(null===(t=l.filteredKeys)||void 0===t?void 0:t.length)&&!l.forceFiltered),w=function(e){v(e),null==p||p(e)},_="boolean"==typeof f?f:m,x=null==l?void 0:l.filteredKeys,E=function(e){var t=y.useRef(e),n=j1();return[function(){return t.current},function(e){t.current=e,n()}]}(x||[]),C=oe(E,2),k=C[0],S=C[1],T=function(e){var t=e.selectedKeys;S(t)};y.useEffect((function(){T({selectedKeys:x||[]})}),[x]);var M=oe(y.useState([]),2),O=M[0],L=M[1],A=y.useRef();y.useEffect((function(){return function(){window.clearTimeout(A.current)}}),[]);var D,N=function(e){var t=e&&e.length?e:null;return null!==t||l&&l.filteredKeys?A1()(t,null==l?void 0:l.filteredKeys)?null:void c({column:i,key:a,filteredKeys:t}):null},P=function(){w(!1),N(k())},I=function(){S([]),w(!1),N([])},j=Y()(F({},"".concat(o,"-menu-without-submenu"),!(i.filters||[]).some((function(e){return e.children}))));if("function"==typeof i.filterDropdown)D=i.filterDropdown({prefixCls:"".concat(o,"-custom"),setSelectedKeys:function(e){return T({selectedKeys:e})},selectedKeys:k(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&w(!1),N(k())},clearFilters:I,filters:i.filters,visible:_});else if(i.filterDropdown)D=i.filterDropdown;else{var R=k()||[];D=y.createElement(y.Fragment,null,y.createElement(q0,{multiple:s,prefixCls:"".concat(o,"-menu"),className:j,onClick:function(){window.clearTimeout(A.current)},onSelect:T,onDeselect:T,selectedKeys:R,getPopupContainer:h,openKeys:O,onOpenChange:function(e){A.current=window.setTimeout((function(){L(e)}))}},z1({filters:i.filters||[],prefixCls:r,filteredKeys:k(),filterMultiple:s,locale:u})),y.createElement("div",{className:"".concat(r,"-dropdown-btns")},y.createElement(EB,{type:"link",size:"small",disabled:0===R.length,onClick:I},u.filterReset),y.createElement(EB,{type:"primary",size:"small",onClick:P},u.filterConfirm)))}var z,B=y.createElement(I1,{className:"".concat(r,"-dropdown")},D);z="function"==typeof i.filterIcon?i.filterIcon(b):i.filterIcon?i.filterIcon:y.createElement(P1,null);var H=y.useContext(Bn).direction;return y.createElement("div",{className:"".concat(r,"-column")},y.createElement("span",{className:"".concat(n,"-column-title")},d),y.createElement(nQ,{overlay:B,trigger:["click"],visible:_,onVisibleChange:function(e){e&&void 0!==x&&S(x||[]),w(e),e||i.filterDropdown||P()},getPopupContainer:h,placement:"rtl"===H?"bottomLeft":"bottomRight"},y.createElement("span",{role:"button",tabIndex:-1,className:Y()("".concat(r,"-trigger"),{active:b}),onClick:function(e){e.stopPropagation()}},z)))};function B1(e,t,n){var r=[];return(e||[]).forEach((function(e,i){var o,a=y1(i,n);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){var s=e.filteredValue;"filterDropdown"in e||(s=null!==(o=null==s?void 0:s.map(String))&&void 0!==o?o:s),r.push({column:e,key:v1(e,a),filteredKeys:s,forceFiltered:e.filtered})}else r.push({column:e,key:v1(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[].concat(rt(r),rt(B1(e.children,t,a))))})),r}function H1(e,t,n,r,i,o,a,s){return n.map((function(n,l){var c=y1(l,s),u=n.filterMultiple,d=void 0===u||u,h=n;if(h.filters||h.filterDropdown){var f=v1(h,c),p=r.find((function(e){var t=e.key;return f===t}));h=D(D({},h),{title:function(r){return y.createElement(Y1,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:t,column:h,columnKey:f,filterState:p,filterMultiple:d,triggerFilter:i,locale:a,getPopupContainer:o},b1(n.title,r))}})}return"children"in h&&(h=D(D({},h),{children:H1(e,t,h.children,r,i,o,a,c)})),h}))}function q1(e){var t=[];return(e||[]).forEach((function(e){var n=e.value,r=e.children;t.push(n),r&&(t=[].concat(rt(t),rt(q1(r))))})),t}function U1(e){var t={};return e.forEach((function(e){var n=e.key,r=e.filteredKeys,i=e.column,o=i.filters;if(i.filterDropdown)t[n]=r||null;else if(Array.isArray(r)){var a=q1(o);t[n]=a.filter((function(e){return r.includes(String(e))}))}else t[n]=null})),t}function V1(e,t){return t.reduce((function(e,t){var n=t.column,r=n.onFilter,i=n.filters,o=t.filteredKeys;return r&&o&&o.length?e.filter((function(e){return o.some((function(t){var n=q1(i),o=n.findIndex((function(e){return String(e)===String(t)})),a=-1!==o?n[o]:t;return r(a,e)}))})):e}),e)}var W1=function(e){var t=e.prefixCls,n=e.dropdownPrefixCls,r=e.mergedColumns,i=e.onFilterChange,o=e.getPopupContainer,a=e.locale,s=oe(y.useState(B1(r,!0)),2),l=s[0],c=s[1],u=y.useMemo((function(){var e=B1(r,!1),t=e.every((function(e){return void 0===e.filteredKeys}));if(t)return l;var n=e.every((function(e){return void 0!==e.filteredKeys}));return fi(t||n,"Table","`FilteredKeys` should all be controlled or not controlled."),e}),[r,l]),d=y.useCallback((function(){return U1(u)}),[u]),h=function(e){var t=u.filter((function(t){return t.key!==e.key}));t.push(e),c(t),i(U1(t),t)};return[function(e){return H1(t,n,e,u,h,o,a)},u,d]};function G1(e,t){return e.map((function(e){var n=D({},e);return n.title=b1(e.title,t),"children"in n&&(n.children=G1(n.children,t)),n}))}function $1(e){return[y.useCallback((function(t){return G1(t,e)}),[e])]}var K1=function(e){return function(t){var n,r=t.prefixCls,i=t.onExpand,o=t.record,a=t.expanded,s=t.expandable,l="".concat(r,"-row-expand-icon");return y.createElement("button",{type:"button",onClick:function(e){i(o,e),e.stopPropagation()},className:Y()(l,(n={},F(n,"".concat(l,"-spaced"),!s),F(n,"".concat(l,"-expanded"),s&&a),F(n,"".concat(l,"-collapsed"),s&&!a),n)),"aria-label":a?e.collapse:e.expand})}};function J1(e){return null!=e&&e===e.window}function X1(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,o=t.duration,a=void 0===o?450:o,s=r(),l=function(e,t){var n;if("undefined"==typeof window)return 0;var r=t?"scrollTop":"scrollLeft",i=0;return J1(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[r]:e&&(i=e[r]),e&&!J1(e)&&"number"!=typeof i&&(i=null===(n=(e.ownerDocument||e).documentElement)||void 0===n?void 0:n[r]),i}(s,!0),c=Date.now();tB((function t(){var n=Date.now()-c,r=function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}(n>a?a:n,l,e,a);J1(s)?s.scrollTo(window.pageXOffset,r):s instanceof HTMLDocument||"HTMLDocument"===s.constructor.name?s.documentElement.scrollTop=r:s.scrollTop=r,n<a?tB(t):"function"==typeof i&&i()}))}var Z1=On;var Q1=function(e){return null};var e2=function(e){return null},t2=[];function n2(e){var t,n=e.prefixCls,r=e.className,i=e.style,o=e.size,a=e.bordered,s=e.dropdownPrefixCls,l=e.dataSource,c=e.pagination,u=e.rowSelection,d=e.rowKey,h=e.rowClassName,f=e.columns,p=e.children,g=e.childrenColumnName,m=e.onChange,v=e.getPopupContainer,b=e.loading,w=e.expandIcon,_=e.expandable,x=e.expandedRowRender,E=e.expandIconColumnIndex,C=e.indentSize,k=e.scroll,S=e.sortDirections,T=e.locale,M=e.showSorterTooltip,O=void 0===M||M;fi(!("function"==typeof d&&d.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var L=cZ(),A=y.useMemo((function(){var e=new Set(Object.keys(L).filter((function(e){return L[e]})));return(f||IK(p)).filter((function(t){return!t.responsive||t.responsive.some((function(t){return e.has(t)}))}))}),[p,f,L]),N=YY(e,["className","style","columns"]),P=y.useContext(_i),I=y.useContext(Bn),j=I.locale,R=void 0===j?Z1:j,z=I.renderEmpty,B=I.direction,H=o||P,q=D(D({},R.Table),T),U=l||t2,V=y.useContext(Bn).getPrefixCls,W=V("table",n),G=V("dropdown",s),$=D({childrenColumnName:g,expandIconColumnIndex:E},_),K=$.childrenColumnName,J=void 0===K?"children":K,Z=y.useMemo((function(){return U.some((function(e){var t;return null===(t=e)||void 0===t?void 0:t[J]}))?"nest":x||_&&_.expandedRowRender?"row":null}),[U]),Q={body:y.useRef()},ee=y.useMemo((function(){return"function"==typeof d?d:function(e){var t;return null===(t=e)||void 0===t?void 0:t[d]}}),[d]),te=function(e,t,n){var r=y.useRef({});return[function(i){if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){var o=new Map;function a(e){e.forEach((function(e,r){var i=n(e,r);o.set(i,e),e&&"object"===X(e)&&t in e&&a(e[t]||[])}))}a(e),r.current={data:e,childrenColumnName:t,kvMap:o,getRowKey:n}}return r.current.kvMap.get(i)}]}(U,J,ee),ne=oe(te,1)[0],re={},ie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=D(D({},re),e);n&&(re.resetPagination(),r.pagination.current&&(r.pagination.current=1),c&&c.onChange&&c.onChange(1,r.pagination.pageSize)),k&&!1!==k.scrollToFirstRowOnChange&&Q.body.current&&X1(0,{getContainer:function(){return Q.body.current}}),null==m||m(r.pagination,r.filters,r.sorter,{currentDataSource:V1(M1(U,r.sorterStates,J),r.filterStates),action:t})},ae=oe(O1({prefixCls:W,mergedColumns:A,onSorterChange:function(e,t){ie({sorter:e,sorterStates:t},"sort",!1)},sortDirections:S||["ascend","descend"],tableLocale:q,showSorterTooltip:O}),4),se=ae[0],le=ae[1],ce=ae[2],ue=ae[3],de=y.useMemo((function(){return M1(U,le,J)}),[U,le]);re.sorter=ue(),re.sorterStates=le;var he=W1({prefixCls:W,locale:q,dropdownPrefixCls:G,mergedColumns:A,onFilterChange:function(e,t){ie({filters:e,filterStates:t},"filter",!0)},getPopupContainer:v}),fe=oe(he,3),pe=fe[0],ge=fe[1],me=fe[2],ve=V1(de,ge);re.filters=me(),re.filterStates=ge;var ye=oe($1(y.useMemo((function(){return D({},ce)}),[ce])),1)[0],be=oe(gZ(ve.length,c,(function(e,t){ie({pagination:D(D({},re.pagination),{current:e,pageSize:t})},"paginate")})),2),we=be[0],_e=be[1];re.pagination=!1===c?{}:function(e,t){var n={current:t.current,pageSize:t.pageSize},r=e&&"object"===X(e)?e:{};return Object.keys(r).forEach((function(e){var r=t[e];"function"!=typeof r&&(n[e]=r)})),n}(c,we),re.resetPagination=_e;var xe=y.useMemo((function(){if(!1===c||!we.pageSize)return ve;var e=we.current,t=void 0===e?1:e,n=we.total,r=we.pageSize,i=void 0===r?pZ:r;return fi(t>0,"Table","`current` should be positive number."),ve.length<n?ve.length>i?(fi(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),ve.slice((t-1)*i,t*i)):ve:ve.slice((t-1)*i,t*i)}),[!!c,ve,we&&we.current,we&&we.pageSize,we&&we.total]),Ee=oe(u1(u,{prefixCls:W,data:ve,pageData:xe,getRowKey:ee,getRecordByKey:ne,expandType:Z,childrenColumnName:J,locale:q,expandIconColumnIndex:$.expandIconColumnIndex,getPopupContainer:v}),2),Ce=Ee[0],ke=Ee[1];$.__PARENT_RENDER_ICON__=$.expandIcon,$.expandIcon=$.expandIcon||w||K1(q),"nest"===Z&&void 0===$.expandIconColumnIndex?$.expandIconColumnIndex=u?1:0:$.expandIconColumnIndex>0&&u&&($.expandIconColumnIndex-=1),"number"!=typeof $.indentSize&&($.indentSize="number"==typeof C?C:15);var Se,Te,Me,Oe=y.useCallback((function(e){return ye(Ce(pe(se(e))))}),[se,pe,Ce]);if(!1!==c&&(null==we?void 0:we.total)){var Le;Le=we.size?we.size:"small"===H||"middle"===H?"small":void 0;var Ae=function(e){return y.createElement(hZ,D({className:"".concat(W,"-pagination ").concat(W,"-pagination-").concat(e)},we,{size:Le}))},De="rtl"===B?"left":"right",Ne=we.position;if(null!==Ne&&Array.isArray(Ne)){var Pe=Ne.find((function(e){return-1!==e.indexOf("top")})),Ie=Ne.find((function(e){return-1!==e.indexOf("bottom")})),je=Ne.every((function(e){return"none"==="".concat(e)}));Pe||Ie||je||(Te=Ae(De)),Pe&&(Se=Ae(Pe.toLowerCase().replace("top",""))),Ie&&(Te=Ae(Ie.toLowerCase().replace("bottom","")))}else Te=Ae(De)}"boolean"==typeof b?Me={spinning:b}:"object"===X(b)&&(Me=D({spinning:!0},b));var Re=Y()("".concat(W,"-wrapper"),F({},"".concat(W,"-wrapper-rtl"),"rtl"===B),r);return y.createElement("div",{className:Re,style:i},y.createElement(NW,D({spinning:!1},Me),Se,y.createElement(lJ,D({},N,{columns:A,direction:B,expandable:$,prefixCls:W,className:Y()((t={},F(t,"".concat(W,"-middle"),"middle"===H),F(t,"".concat(W,"-small"),"small"===H),F(t,"".concat(W,"-bordered"),a),F(t,"".concat(W,"-empty"),0===U.length),t)),data:xe,rowKey:ee,rowClassName:function(e,t,n){var r;return r="function"==typeof h?Y()(h(e,t,n)):Y()(h),Y()(F({},"".concat(W,"-row-selected"),ke.has(ee(e,t))),r)},emptyText:T&&T.emptyText||z("Table"),internalHooks:oJ,internalRefs:Q,transformColumns:Oe})),Te))}n2.defaultProps={rowKey:"key"},n2.SELECTION_ALL=o1,n2.SELECTION_INVERT=a1,n2.SELECTION_NONE=s1,n2.Column=Q1,n2.ColumnGroup=e2,n2.Summary=GK;var r2=n2,i2="Edges__UFXJD",o2="Transform__tFdOu",a2="Overlay___pWDD",s2="Title__bxklA",l2=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.edge}));return y.createElement("div",{className:i2},y.createElement("svg",null,ky(t).map((function(e){return y.createElement(c2,{key:e.id,edge:e})}))))})),c2=y.memo((function(e){var t=e.edge,n=Boolean(t.svg.pathCX&&t.transform),r=ym(),i=fm((function(e){e.stopPropagation()})),o=fm((function(){var e=t.transform||[];try{return Jv()(e,{type:"space"})}catch(e){console.log(e)}return""})),a=[{dataIndex:"code",title:y.createElement("div",{className:s2},"code ",y.createElement(H$,{className:"copy",tip:"right",value:o()})),render:function(e,t,n){return y.createElement("div",{onClick:function(){return function(e){var t,n=null===(t=jF.sqlflow.current)||void 0===t?void 0:t.sessionId;n&&RU.sqlflow.getSelectedDbObjectInfo({sessionId:n,coordinates:e.coordinates,title:e.code})}(t)}},t.code)}}],s=fm(g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:IF.sqlflow.edge.pin.set(t),RU.sqlflow.fetchRegularJobTableRelationSqls({edge:t});case 2:case"end":return e.stop()}}),e)}))));return t.visible?y.createElement("g",{className:Y()({highlight:t.highlight,dash:t.svg.isDash}),"data-id":t.id},r&&y.createElement("path",{className:"hover",fill:"none",cursor:"pointer",stroke:"transparent","stroke-width":"10",d:t.svg.path,onMouseEnter:function(e){IF.sqlflow.edge.hover(t)},onMouseLeave:function(e){IF.sqlflow.edge.leave(t)},onClick:s}),y.createElement("path",{d:t.svg.path,className:Y()("edge",{join:t.svg.isJoin})}),n&&y.createElement(W$,{placement:"top",overlayInnerStyle:{padding:"0"},overlayClassName:a2,content:y.createElement("div",{className:o2,onContextMenu:i},y.createElement(r2,{size:"small",bordered:!0,columns:a,dataSource:t.transform||[],pagination:!1}))},y.createElement("circle",{cx:t.svg.pathCX,cy:t.svg.pathCY,r:"4"})),t.svg.arrow&&y.createElement("polygon",{points:t.svg.arrow}),t.svg.isJoin&&y.createElement(P$,{title:t.svg.text.title,overlayInnerStyle:{wordBreak:"keep-all",whiteSpace:"nowrap",width:"fit-content"}},y.createElement("text",{x:t.svg.text.x,y:t.svg.text.y},t.svg.text.value))):null}));function u2(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}var d2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}}]},name:"minus",theme:"outlined"},h2=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:d2}))};h2.displayName="MinusOutlined";var f2=y.forwardRef(h2),p2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},g2=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:p2}))};g2.displayName="PlusOutlined";var m2=y.forwardRef(g2),v2="Field__FlIAA",y2=y.memo((function(e){var t=e.field,n=fm((function(){IF.sqlflow.field.hover(t)})),r=fm((function(){IF.sqlflow.field.leave(t)})),i=fm((function(){IF.sqlflow.field.pin.set(t),RU.event.onFieldClick(t)})),o=fm((function(e){e.preventDefault(),e.stopPropagation(),IF.graph.context.fieldId.set(t.id),IF.graph.context.graphId.set(t.graphId),RU.graph.context.show({event:e,from:"column"})}));return t.visible?y.createElement("div",{className:Y()(v2,{highlight:t.highlight,mouseover:t.mouseover}),"data-id":t.id,key:t.id,onClick:i,onMouseEnter:n,onMouseLeave:r,onContextMenu:o,"data-field-id":t.id},y.createElement("span",null,t.qualifiedTable?t.qualifiedTable+".":"",t.titleFixWidth)):null})),b2="Graph__IyLTG",w2=y.memo((function(e){var t=e.graph,n=gm((function(e){var n,r;return(null===(n=e.sqlflow.current)||void 0===n||null===(r=n.locate)||void 0===r?void 0:r.graphId)===t.id})),r=gm((function(e){var n;return ky(null===(n=e.sqlflow.current)||void 0===n?void 0:n.field).findByIds(t.fields)}),u2),i=gm((function(e){var t;return null===(t=e.sqlflow.visualize.selectStreamByStep)||void 0===t?void 0:t.direction})),o=fm((function(e){e.preventDefault(),e.stopPropagation()})),a=fm((function(){RU.sqlflow.loadStream({graph:t})})),s=fm((function(){RU.event.onTableNameClick(t)})),l={left:t.left.calculate,top:t.top.calculate,width:t.width.calculate};return t.visible?y.createElement("div",{className:Y()(b2,t.type,{located:n}),style:l},t.more.exist&&y.createElement(GU,{className:Y()("more",i),x:"center",y:"center",onClick:a},t.more.expand?y.createElement(f2,null):y.createElement(m2,null)),function(e){var t=e.titleFixWidth,n=e.title,r=y.createElement("div",{className:"name",onContextMenu:o,onClick:s,"data-graph-id":e.id,"data-dbo-id":e.dboId},y.createElement("span",null,t));return n.length>50?y.createElement(P$,{title:y.createElement("span",{style:{fontSize:12}},n),placement:"right"},r):r}(t),y.createElement("div",{className:"fields"},r.map((function(e){return y.createElement(y2,{key:e.id,field:e})})))):null})),_2="Empty__Lpjb1",x2={empty:y.createElement(z$,{id:"sqlflow.empty",defaultMessage:"No relation found."})},E2=y.memo((function(e){return gm((function(e){var t;return 0==e.loading.er.spinning&&!Boolean(null===(t=e.er.current)||void 0===t?void 0:t.graph.all.length)}))?y.createElement(GU,{x:"center",y:"center",className:_2},y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE,description:x2.empty})):null})),C2={tableLineage:y.createElement(z$,{id:"sqlflow.context.table.lineage",defaultMessage:"Table lineage"}),columnLineage:y.createElement(z$,{id:"sqlflow.context.column.lineage",defaultMessage:"Column lineage"}),listTableColumn:y.createElement(z$,{id:"sqlflow.context.list.column",defaultMessage:"List table column"}),backwards:y.createElement(z$,{id:"sqlflow.context.backwards",defaultMessage:"backwards in code"}),forwards:y.createElement(z$,{id:"sqlflow.context.forwards",defaultMessage:"forwards in code"}),DownloadPNG:y.createElement(z$,{id:"sqlflow.context.download.png",defaultMessage:"Download as png"}),DownloadJSON:y.createElement(z$,{id:"sqlflow.context.download.json",defaultMessage:"Download as json"}),DownloadHTML:y.createElement(z$,{id:"sqlflow.context.download.html",defaultMessage:"Download as html"}),DownloadCSV:y.createElement(z$,{id:"sqlflow.context.download.csv",defaultMessage:"Download as csv"}),cancel:y.createElement(z$,{id:"sqlflow.context.cancel",defaultMessage:"Cancel"})},k2="Context___1bWU",S2=y.memo((function(e){var t=vm(),n=ym(),r=gm((function(e){return!e.sqlflow.visualize.isJob})),i=gm((function(e){return e.graph.context.position})),o=gm((function(e){return e.graph.context.visible})),a=gm((function(e){return!e.graph.context.fieldId}));a||IF.job.connection.defaulTab;var s=fm((function(e){e.stopPropagation(),IF.graph.context.hide()})),l=fm((function(){IF.tab.current.set(xg.output)})),c=function(){var e=g()(v().mark((function e(t){var n,r,i,o,a,s,l,c,u,d,h;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(jF.sqlflow.current){e.next=2;break}return e.abrupt("return");case 2:if(o=null===(n=jF.sqlflow.current)||void 0===n?void 0:n.sessionId,jF.sqlflow.current.visualize.type===yg.displayMetadataQueryGraph&&(o=null===(a=jF.sqlflow.current.metadataQueryGraph)||void 0===a?void 0:a.responseSessionId),s=ky(null===(r=jF.sqlflow.current)||void 0===r?void 0:r.field).findById(jF.graph.context.fieldId),l=ky(null===(i=jF.sqlflow.current)||void 0===i?void 0:i.graph).findById(null==s?void 0:s.graphId),s&&l&&o){e.next=8;break}return e.abrupt("return");case 8:if(e.prev=8,IF.sqlflow.current.code.loading.start(),IF.sqlflow.current.code.title.set(l.title+"."+s.title),IF.sqlflow.current.code.show(),jF.sqlflow.visualize.type!==yg.sql){e.next=17;break}c=Oy.field.code.getSQL({sqlflow:jF.sqlflow.current,field:s,type:t}),IF.sqlflow.current.code.sql.set(c),e.next=27;break;case 17:return u=Oy.field.code.util.getCoordinates({sqlflow:jF.sqlflow.current,field:s,type:t}).reduce((function(e,t){return e.concat(t)}),[]),e.next=20,Sq.getSelectedDbObjectInfo({sessionId:o,coordinates:u});case 20:if(200!==(d=e.sent).code){e.next=26;break}h=Oy.field.code.getJob({response:d}),IF.sqlflow.current.code.sql.set(h),e.next=27;break;case 26:throw new Error(d.error||d.message||"get selected dbo object info fail");case 27:e.next=33;break;case 29:throw e.prev=29,e.t0=e.catch(8),_o.error(e.t0.message),e.t0;case 33:return e.prev=33,IF.graph.context.hide(),IF.sqlflow.current.code.loading.stop(),e.finish(33);case 37:case"end":return e.stop()}}),e,null,[[8,29,33,37]])})));return function(t){return e.apply(this,arguments)}}(),u=fm((function(){n||c("backwards")})),d=fm((function(){n||c("forwards")})),h=fm(g()(v().mark((function e(){var t,n,r,i,o,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(jF.sqlflow.current){e.next=2;break}return e.abrupt("return");case 2:if(i=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.field).findById(jF.graph.context.fieldId),o=ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.graph).findById(null==i?void 0:i.graphId),a=ky(null===(r=jF.sqlflow.current)||void 0===r?void 0:r.dbo).findById(null==o?void 0:o.dboId),IF.sqlflow.field.cancel(),!a){e.next=9;break}return e.next=9,RU.sqlflow.visualizeLeftMost({dbo:a,columnLevel:!0});case 9:case"end":return e.stop()}}),e)})))),f=fm((function(e){var t,n,r=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.graph).findById(jF.graph.context.graphId),i=ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.dbo).findById(null==r?void 0:r.dboId);i&&IF.sqlflow.current.dbo.set(i)})),p=fm((function(e){var t,n,r=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.field).findById(jF.graph.context.fieldId),i=ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.dbo).findById(null==r?void 0:r.dboId);i&&IF.sqlflow.current.dbo.set(i)})),m={left:i.left+5,top:i.top+5,zIndex:Qg.sqlflow.context.zIndex};return o?t?y.createElement("div",{className:k2,style:m,onClick:s},y.createElement("div",{className:"title"}),y.createElement("div",{className:"list"},y.createElement("div",{className:"row border",onClick:RU.sqlflow.saveAsPNG},y.createElement("div",{className:"text"},C2.DownloadPNG)),y.createElement("div",{className:"row",onClick:RU.sqlflow.saveAsJSON},y.createElement("div",{className:"text"},C2.DownloadJSON)),y.createElement("div",{className:"row",onClick:RU.graph.context.cancel},y.createElement("div",{className:"text"},C2.cancel)))):Xp?y.createElement("div",{className:k2,style:m,onClick:s},y.createElement("div",{className:"title"}),y.createElement("div",{className:"list"},y.createElement("div",{className:"row border",onClick:RU.sqlflow.saveAsPNG},y.createElement("div",{className:"text"},C2.DownloadPNG)),y.createElement("div",{className:"row",onClick:RU.sqlflow.saveAsJSON},y.createElement("div",{className:"text"},C2.DownloadJSON)),y.createElement("div",{className:"row",onClick:RU.sqlflow.saveAsCSV},y.createElement("div",{className:"text"},C2.DownloadCSV)),y.createElement("div",{className:"row",onClick:RU.graph.context.cancel},y.createElement("div",{className:"text"},C2.cancel)))):y.createElement("div",{className:k2,style:m,onClick:s},y.createElement("div",{className:"title"}),y.createElement("div",{className:"list"},(n||r)&&y.createElement("div",{className:Y()("row",{disable:a}),onClick:h},y.createElement("div",{className:"text"},"To left-most")),y.createElement("div",{className:Y()("row",{disable:a}),onClick:f},y.createElement("div",{className:"text"},C2.tableLineage)),y.createElement("div",{className:Y()("row",{disable:a}),onClick:p},y.createElement("div",{className:"text"},C2.columnLineage)),y.createElement("div",{className:"row",onClick:l},y.createElement("div",{className:"text"},C2.listTableColumn)),y.createElement("div",{className:Y()("row",{disable:n}),onClick:u},y.createElement("div",{className:"text"},C2.backwards)),y.createElement("div",{className:Y()("row",{disable:n}),onClick:d},y.createElement("div",{className:"text"},C2.forwards)),y.createElement("div",{className:"row border",onClick:RU.sqlflow.saveAsPNG},y.createElement("div",{className:"text"},C2.DownloadPNG)),y.createElement("div",{className:"row",onClick:RU.sqlflow.saveAsJSON},y.createElement("div",{className:"text"},C2.DownloadJSON)),y.createElement("div",{className:"row",onClick:RU.sqlflow.saveAsCSV},y.createElement("div",{className:"text"},C2.DownloadCSV)),!t&&y.createElement(y.Fragment,null,y.createElement("div",{className:"row",onClick:function(){return RU.sqlflow.shareContext()}},y.createElement("div",{className:"text"},"Share")),Kp&&y.createElement("div",{className:"row",onClick:IF.share.email.show},y.createElement("div",{className:"text"},"Share via email"))),y.createElement("div",{className:"row",onClick:RU.graph.context.cancel},y.createElement("div",{className:"text"},C2.cancel)))):null})),T2="Canvas__k2Y31",M2=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.canvas.visible})),n=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.graph})),r=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.canvas})),i=gm((function(e){var t;return(null===(t=e.sqlflow.current)||void 0===t?void 0:t.scale.value)||1})),o=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.layout})),a=mm(),s=RU.graph.canvas.getWidthAndHeight(),l=Xp?120+(i>1?40*i:0):0,c={container:{width:s.width+(a?2*Qg.screen.width:0),height:s.height+(a?2*Qg.screen.height:0),padding:a?"".concat(Qg.screen.height,"px ").concat(Qg.screen.width,"px "):o?60:0,paddingRight:Xp?l:void 0,paddingBottom:Xp?l:void 0,boxSizing:Xp?"content-box":void 0},canvas:{width:s.width,height:s.height},scale:{width:((null==r?void 0:r.width)||0)+l,height:((null==r?void 0:r.height)||0)+l,transform:"scale(".concat(i,")"),transformOrigin:"".concat(Qg.sqlflow.transformOrigin.x-20*i,"px ").concat(Qg.sqlflow.transformOrigin.y-40*i,"px")}},u=fm((function(e){RF.sqlflow.canvas=e,Wy.removeListener("canvas"),Wy.addListener("canvas",RF.sqlflow.canvas,RU.sqlflow.stream.setScrollLeftAndScrollTop)}));return t?0===(null==n?void 0:n.all.length)?y.createElement(E2,null):y.createElement(y.Fragment,null,y.createElement("div",{style:c.container},y.createElement("div",{className:T2,style:c.canvas,ref:u,"data-layout":o,"data-scale":i},y.createElement("div",{className:"scale",style:c.scale},y.createElement(l2,null),ky(n).map((function(e){return y.createElement(w2,{key:e.id,graph:e})}))))),y.createElement(S2,null)):null})),O2="Loading___rwWW",L2=y.memo((function(e){var t=gm((function(e){return e.loading.message})),n=gm((function(e){return e.loading.spinning}));return n?y.createElement("div",{className:O2,style:{zIndex:Qg.sqlflow.loading.zIndex}},y.createElement(NW,{spinning:!0,size:"large",tip:t})):null}));function A2(e){return null!=e}var D2=function(e){var t,n=e.itemPrefixCls,r=e.component,i=e.span,o=e.className,a=e.style,s=e.labelStyle,l=e.contentStyle,c=e.bordered,u=e.label,d=e.content,h=e.colon,f=r;return c?y.createElement(f,{className:Y()((t={},F(t,"".concat(n,"-item-label"),A2(u)),F(t,"".concat(n,"-item-content"),A2(d)),t),o),style:a,colSpan:i},A2(u)&&y.createElement("span",{style:s},u),A2(d)&&y.createElement("span",{style:l},d)):y.createElement(f,{className:Y()("".concat(n,"-item"),o),style:a,colSpan:i},y.createElement("div",{className:"".concat(n,"-item-container")},u&&y.createElement("span",{className:Y()("".concat(n,"-item-label"),F({},"".concat(n,"-item-no-colon"),!h)),style:s},u),d&&y.createElement("span",{className:Y()("".concat(n,"-item-content")),style:l},d)))};function N2(e,t,n){var r=t.colon,i=t.prefixCls,o=t.bordered,a=n.component,s=n.type,l=n.showLabel,c=n.showContent,u=n.labelStyle,d=n.contentStyle;return e.map((function(e,t){var n=e.props,h=n.label,f=n.children,p=n.prefixCls,g=void 0===p?i:p,m=n.className,v=n.style,b=n.labelStyle,w=n.contentStyle,_=n.span,x=void 0===_?1:_,E=e.key;return"string"==typeof a?y.createElement(D2,{key:"".concat(s,"-").concat(E||t),className:m,style:v,labelStyle:D(D({},u),b),contentStyle:D(D({},d),w),span:x,colon:r,component:a,itemPrefixCls:g,bordered:o,label:l?h:null,content:c?f:null}):[y.createElement(D2,{key:"label-".concat(E||t),className:m,style:D(D(D({},u),v),b),span:1,colon:r,component:a[0],itemPrefixCls:g,bordered:o,label:h}),y.createElement(D2,{key:"content-".concat(E||t),className:m,style:D(D(D({},d),v),w),span:2*x-1,component:a[1],itemPrefixCls:g,bordered:o,content:f})]}))}var P2=function(e){var t=y.useContext(j2),n=e.prefixCls,r=e.vertical,i=e.row,o=e.index,a=e.bordered;return r?y.createElement(y.Fragment,null,y.createElement("tr",{key:"label-".concat(o),className:"".concat(n,"-row")},N2(i,e,D({component:"th",type:"label",showLabel:!0},t))),y.createElement("tr",{key:"content-".concat(o),className:"".concat(n,"-row")},N2(i,e,D({component:"td",type:"content",showContent:!0},t)))):y.createElement("tr",{key:o,className:"".concat(n,"-row")},N2(i,e,D({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},I2=function(e){return e.children},j2=y.createContext({}),R2={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function F2(e,t,n){var r=e;return(void 0===t||t>n)&&(r=lB(e,{span:n}),fi(void 0===t,"Descriptions","Sum of column `span` in a line not match `column` of Descriptions.")),r}function z2(e){var t,n=e.prefixCls,r=e.title,i=e.extra,o=e.column,a=void 0===o?R2:o,s=e.colon,l=void 0===s||s,c=e.bordered,u=e.layout,d=e.children,h=e.className,f=e.style,p=e.size,g=e.labelStyle,m=e.contentStyle,v=y.useContext(Bn),b=v.getPrefixCls,w=v.direction,_=b("descriptions",n),x=oe(y.useState({}),2),E=x[0],C=x[1],k=function(e,t){if("number"==typeof e)return e;if("object"===X(e))for(var n=0;n<nZ.length;n++){var r=nZ[n];if(t[r]&&void 0!==e[r])return e[r]||R2[r]}return 3}(a,E);y.useEffect((function(){var e=lZ.subscribe((function(e){"object"===X(a)&&C(e)}));return function(){lZ.unsubscribe(e)}}),[]);var S=function(e,t){var n=C0(e).filter((function(e){return e})),r=[],i=[],o=t;return n.forEach((function(e,a){var s,l=null===(s=e.props)||void 0===s?void 0:s.span,c=l||1;if(a===n.length-1)return i.push(F2(e,l,o)),void r.push(i);c<o?(o-=c,i.push(e)):(i.push(F2(e,c,o)),r.push(i),o=t,i=[])})),r}(d,k);return y.createElement(j2.Provider,{value:{labelStyle:g,contentStyle:m}},y.createElement("div",{className:Y()(_,(t={},F(t,"".concat(_,"-").concat(p),p&&"default"!==p),F(t,"".concat(_,"-bordered"),!!c),F(t,"".concat(_,"-rtl"),"rtl"===w),t),h),style:f},(r||i)&&y.createElement("div",{className:"".concat(_,"-header")},r&&y.createElement("div",{className:"".concat(_,"-title")},r),i&&y.createElement("div",{className:"".concat(_,"-extra")},i)),y.createElement("div",{className:"".concat(_,"-view")},y.createElement("table",null,y.createElement("tbody",null,S.map((function(e,t){return y.createElement(P2,{key:t,index:t,colon:l,prefixCls:_,vertical:"vertical"===u,bordered:c,row:e})})))))))}z2.Item=I2;var Y2=z2,B2="Title__oBEY1",H2="Summary__OGllO",q2={summary:y.createElement(z$,{id:"sqlflow.summary",defaultMessage:"Summary"}),visualize:y.createElement(z$,{id:"sqlflow.summary.visualize",defaultMessage:"select or search to visualize"}),processed:y.createElement(z$,{id:"sqlflow.summary.processed",defaultMessage:"Your script has been processed successfully. The entire data lineage is too huge to be displayed at once."}),guide:y.createElement(z$,{id:"sqlflow.summary.guide",defaultMessage:"To see the data lineage of a specific database/schema/table, please right-click the node in the schema explorer on the\r left, and then click visualize."})},U2=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.summary.visible})),n=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.response.data.summary}));return t?y.createElement(KU,{className:H2,x:"center",y:"center"},n?y.createElement("div",{className:"stats"},y.createElement(Y2,{title:y.createElement("div",null,q2.summary," ",y.createElement("span",{className:B2},q2.visualize)),size:"small",bordered:!0},y.createElement(Y2.Item,{label:"database"},null==n?void 0:n.database),y.createElement(Y2.Item,{label:"schema"},null==n?void 0:n.schema),y.createElement(Y2.Item,{label:"table"},null==n?void 0:n.table),y.createElement(Y2.Item,{label:"view"},null==n?void 0:n.view),y.createElement(Y2.Item,{label:"column"},null==n?void 0:n.column),y.createElement(Y2.Item,{label:"relation"},null==n?void 0:n.relationship)),y.createElement("div",{className:"guide"},y.createElement("p",null,q2.processed),y.createElement("p",null,q2.guide))):y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE})):null})),V2="Scale___24Yi",W2={zoomin:y.createElement(z$,{id:"sqlflow.scale.zoomin",defaultMessage:"zoom in"}),zoomout:y.createElement(z$,{id:"sqlflow.scale.zoomout",defaultMessage:"zoom out"}),reset:y.createElement(z$,{id:"sqlflow.scale.reset",defaultMessage:"reset"}),locate:y.createElement(z$,{id:"sqlflow.scale.locate",defaultMessage:"locate the selected graph in schema tree or dropdown menu"}),scroll:y.createElement(z$,{id:"sqlflow.scale.scroll",defaultMessage:"scroll to the dropdown menu"})},G2=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.scale.visible})),n=gm((function(e){var t;return Boolean(null===(t=e.tree.lineage)||void 0===t?void 0:t.dropdown.id)})),r=!mm();return t?y.createElement("div",{className:V2},y.createElement(P$,{title:W2.zoomin,placement:"left"},y.createElement("div",{onClick:RU.graph.scale.zoomIn},y.createElement(BU.Icon.ZoomIn,null))),y.createElement(P$,{title:W2.zoomout,placement:"left"},y.createElement("div",{onClick:RU.graph.scale.zoomOut},y.createElement(BU.Icon.ZoomOut,null))),y.createElement(P$,{title:W2.reset,placement:"left"},y.createElement("div",{onClick:RU.graph.scale.reset},y.createElement(BU.Icon.Reset,null))),r&&y.createElement(P$,{title:W2.locate,placement:"left"},y.createElement("div",{onClick:RU.graph.reLocate},y.createElement(BU.Icon.Locate,{disabled:!n}))),r&&y.createElement(P$,{title:W2.scroll,placement:"left"},y.createElement("div",{onClick:RU.graph.scrollToDropdownMenu},y.createElement(BU.Icon.Menu,null)))):null})),$2={Up:y.memo((function(e){var t=e.disabled,n=e.onClick;return y.createElement("svg",{className:Y()({disabled:t}),onClick:function(){return!t&&(null==n?void 0:n())},viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M562.3 233.8c-26.2-28-70-29.3-98-3.2-1.1 1.1-2.2 2.1-3.2 3.2L31.9 684.5c-13.5 14.4-21 33.4-20.9 53.2-1 40.5 31 74 71.5 75.1 19-0.3 37.1-8.2 50.1-22l379.7-397.6 378.6 397.6c13.1 13.9 31.5 21.9 50.7 22 40.5-1.1 72.5-34.6 71.5-75.1 0.1-19.8-7.4-38.8-20.9-53.2L562.3 233.8z"}))})),Down:y.memo((function(e){var t=e.disabled,n=e.onClick;return y.createElement("svg",{className:Y()({disabled:t}),onClick:function(){return!t&&(null==n?void 0:n())},viewBox:"0 0 1024 1024",version:"1.1",width:"200",height:"200"},y.createElement("path",{d:"M461.7 790.9c26.2 28 70 29.3 98 3.2 1.1-1.1 2.2-2.1 3.2-3.2L992 340.2c13.5-14.4 21-33.4 20.9-53.2 1-40.5-31-74-71.5-75.1-19 0.3-37.1 8.2-50.1 22L511.8 631.5 133.2 233.9c-13.1-13.9-31.5-21.9-50.7-22C42 213 10 246.5 11 287c-0.1 19.8 7.4 38.8 20.9 53.2l429.8 450.7z"}))})),Format:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M377.558543 489.629503l67.034742 66.925249-134.025483 133.787052-67.014276-66.838268L377.558543 489.629503zM556.630988 690.733731l223.376487 0 0-89.436962L556.630988 601.296769 556.630988 690.733731zM958.70846 243.936755l0 536.105001c0 98.730629-79.927377 178.744987-178.700985 178.744987L243.903497 958.786743c-98.599645 0-178.61298-80.013335-178.61298-178.744987L65.290517 243.936755c0-98.730629 80.013335-178.722474 178.61298-178.722474l536.105001 0C878.781082 65.213257 958.70846 145.205103 958.70846 243.936755zM869.44546 288.612257c0-74.015737-60.119239-133.981481-134.113487-133.981481L288.578999 154.630776c-73.994248 0-134.027529 59.965743-134.027529 133.981481l0 446.775486c0 74.015737 60.033281 133.961014 134.027529 133.961014l446.752973 0c73.994248 0 134.113487-59.945277 134.113487-133.961014L869.44546 288.612257zM243.553527 355.842451l134.005017 133.787052 0.021489-0.021489 67.01223 66.946738 67.100234-66.946738L310.567803 289.00623 243.553527 355.842451z"}))}))},K2="Code__FFn2i",J2=y.memo((function(e){var t,n,r,i,o,a,s,l,c=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.code})),u=(null==c?void 0:c.sql.index)||0,d=(null==c?void 0:c.sql.token)||[],h=d.length>0?null==c?void 0:c.sql.file[d[u].sqlId]:null==c?void 0:c.sql.file[0],f=null!=h&&h.name?"".concat(null==c?void 0:c.title," [").concat(null==h?void 0:h.name,"]"):null==c?void 0:c.title,p=(null==h?void 0:h.content)||"",m=fm(g()(v().mark((function e(){var t,n,r;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null===(t=jF.sqlflow.current)||void 0===t?void 0:t.dbvendor){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,IF.sqlflow.current.code.loading.start(),e.next=7,Sq.format({dbvendor:n,sqltext:p});case 7:if(200!==(r=e.sent).code){e.next=12;break}IF.sqlflow.current.code.sql.setText(r.data),e.next=13;break;case 12:throw new Error(r.error);case 13:e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(3),_o.error(e.t0.message),e.t0;case 19:return e.prev=19,IF.sqlflow.current.code.loading.stop(),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[3,15,19,22]])}))));return y.createElement(TW,{height:(null==c?void 0:c.height)||400,zIndex:Qg.sqlflow.code.zIndex,visible:Boolean(null==c?void 0:c.visible),onHeightChange:IF.sqlflow.current.code.height.set},y.createElement("div",{className:K2},y.createElement("div",{className:"header"},y.createElement(BU.Icon.Close,{onClose:IF.sqlflow.current.code.hide,size:20}),y.createElement("div",{className:"title"},f)),y.createElement(GU,{y:"center",className:"operation"},d.length>0&&y.createElement(y.Fragment,null,y.createElement("p",null,u+1," / ",d.length),y.createElement($2.Up,{disabled:0===u,onClick:IF.sqlflow.current.code.sql.prev}),y.createElement($2.Down,{disabled:u===d.length-1,onClick:IF.sqlflow.current.code.sql.next})),y.createElement(P$,{title:"format sql"},y.createElement("div",{style:{fontSize:0},onClick:m},y.createElement($2.Format,null)))),y.createElement("div",{className:"body"},y.createElement(FW,{loading:Boolean(null==c?void 0:c.loading),value:p,markers:[(r=null===(t=d[u])||void 0===t?void 0:t.coordinate,l={from:{line:0,ch:0},to:{line:0,ch:0}},r?(l.from={line:((null===(i=r[0])||void 0===i?void 0:i.x)||0)-1,ch:((null===(o=r[0])||void 0===o?void 0:o.y)||0)-1},l.to={line:((null===(a=r[1])||void 0===a?void 0:a.x)||0)-1,ch:((null===(s=r[1])||void 0===s?void 0:s.y)||0)-1},l):l)],markerClassName:"highlight-word",linesWithBackground:[my(null===(n=d[u])||void 0===n?void 0:n.coordinate)],linesWithBackgroundClassName:"background-line"}))))})),X2="SQLFlow__humhC",Z2="Widget__zYMqE",Q2="Home__LBJc8",e3=__webpack_require__(28655),t3=__webpack_require__.n(e3);var n3=function(e){function t(e,r,l,c,h){for(var f,p,g,m,w,x=0,E=0,C=0,k=0,S=0,D=0,P=g=f=0,j=0,R=0,F=0,z=0,Y=l.length,B=Y-1,H="",q="",U="",V="";j<Y;){if(p=l.charCodeAt(j),j===B&&0!==E+k+C+x&&(0!==E&&(p=47===E?10:47),k=C=x=0,Y++,B++),0===E+k+C+x){if(j===B&&(0<R&&(H=H.replace(d,"")),0<H.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:H+=l.charAt(j)}p=59}switch(p){case 123:for(f=(H=H.trim()).charCodeAt(0),g=1,z=++j;j<Y;){switch(p=l.charCodeAt(j)){case 123:g++;break;case 125:g--;break;case 47:switch(p=l.charCodeAt(j+1)){case 42:case 47:e:{for(P=j+1;P<B;++P)switch(l.charCodeAt(P)){case 47:if(42===p&&42===l.charCodeAt(P-1)&&j+2!==P){j=P+1;break e}break;case 10:if(47===p){j=P+1;break e}}j=P}}break;case 91:p++;case 40:p++;case 34:case 39:for(;j++<B&&l.charCodeAt(j)!==p;);}if(0===g)break;j++}if(g=l.substring(z,j),0===f&&(f=(H=H.replace(u,"").trim()).charCodeAt(0)),64===f){switch(0<R&&(H=H.replace(d,"")),p=H.charCodeAt(1)){case 100:case 109:case 115:case 45:R=r;break;default:R=A}if(z=(g=t(r,R,g,p,h+1)).length,0<N&&(w=s(3,g,R=n(A,H,F),r,M,T,z,p,h,c),H=R.join(""),void 0!==w&&0===(z=(g=w.trim()).length)&&(p=0,g="")),0<z)switch(p){case 115:H=H.replace(_,a);case 100:case 109:case 45:g=H+"{"+g+"}";break;case 107:g=(H=H.replace(v,"$1 $2"))+"{"+g+"}",g=1===L||2===L&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=H+g,112===c&&(q+=g,g="")}else g=""}else g=t(r,n(r,H,F),g,c,h+1);U+=g,g=F=R=P=f=0,H="",p=l.charCodeAt(++j);break;case 125:case 59:if(1<(z=(H=(0<R?H.replace(d,""):H).trim()).length))switch(0===P&&(f=H.charCodeAt(0),45===f||96<f&&123>f)&&(z=(H=H.replace(" ",":")).length),0<N&&void 0!==(w=s(1,H,r,e,M,T,q.length,c,h,c))&&0===(z=(H=w.trim()).length)&&(H="\0\0"),f=H.charCodeAt(0),p=H.charCodeAt(1),f){case 0:break;case 64:if(105===p||99===p){V+=H+l.charAt(j);break}default:58!==H.charCodeAt(z-1)&&(q+=i(H,f,p,H.charCodeAt(2)))}F=R=P=f=0,H="",p=l.charCodeAt(++j)}}switch(p){case 13:case 10:47===E?E=0:0===1+f&&107!==c&&0<H.length&&(R=1,H+="\0"),0<N*I&&s(0,H,r,e,M,T,q.length,c,h,c),T=1,M++;break;case 59:case 125:if(0===E+k+C+x){T++;break}default:switch(T++,m=l.charAt(j),p){case 9:case 32:if(0===k+x+E)switch(S){case 44:case 58:case 9:case 32:m="";break;default:32!==p&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===k+E+x&&(R=F=1,m="\f"+m);break;case 108:if(0===k+E+x+O&&0<P)switch(j-P){case 2:112===S&&58===l.charCodeAt(j-3)&&(O=S);case 8:111===D&&(O=D)}break;case 58:0===k+E+x&&(P=j);break;case 44:0===E+C+k+x&&(R=1,m+="\r");break;case 34:case 39:0===E&&(k=k===p?0:0===k?p:k);break;case 91:0===k+E+C&&x++;break;case 93:0===k+E+C&&x--;break;case 41:0===k+E+x&&C--;break;case 40:if(0===k+E+x){if(0===f)if(2*S+3*D==533);else f=1;C++}break;case 64:0===E+C+k+x+P+g&&(g=1);break;case 42:case 47:if(!(0<k+x+C))switch(E){case 0:switch(2*p+3*l.charCodeAt(j+1)){case 235:E=47;break;case 220:z=j,E=42}break;case 42:47===p&&42===S&&z+2!==j&&(33===l.charCodeAt(z+2)&&(q+=l.substring(z,j+1)),m="",E=0)}}0===E&&(H+=m)}D=S,S=p,j++}if(0<(z=q.length)){if(R=r,0<N&&(void 0!==(w=s(2,q,R,e,M,T,z,c,h,c))&&0===(q=w).length))return V+q+U;if(q=R.join(",")+"{"+q+"}",0!=L*O){switch(2!==L||o(q,2)||(O=0),O){case 111:q=q.replace(b,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}O=0}}return V+q+U}function n(e,t,n){var i=t.trim().split(g);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===L||2===L&&o(l,1)?"-webkit-"+l+l:l}if(0===L||2===L&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(S,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return f.test(a)?a.replace(h,":-webkit-")+a.replace(h,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(E,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(E,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),P(2!==t?r:r.replace(C,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,u){for(var d,h=0,f=t;h<N;++h)switch(d=D[h].call(c,e,f,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function l(e){return void 0!==(e=e.prefix)&&(P=null,e?"function"!=typeof e?L=1:(L=2,P=e):L=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<N){var i=s(-1,n,r,r,M,T,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(A,r,n,0,0);return 0<N&&(void 0!==(i=s(-2,o,r,r,M,T,o.length,0,0,0))&&(o=i)),"",O=0,T=M=1,o}var u=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,f=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,E=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,S=/([^-])(image-set\()/,T=1,M=1,O=0,L=1,A=[],D=[],N=0,P=null,I=0;return c.use=function e(t){switch(t){case void 0:case null:N=D.length=0;break;default:if("function"==typeof t)D[N++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else I=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},r3={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var i3=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},o3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a3=i3((function(e){return o3.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function s3(){return(s3=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}).apply(this,arguments)}var l3=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},c3=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,A.typeOf)(e)},u3=Object.freeze([]),d3=Object.freeze({});function h3(e){return"function"==typeof e}function f3(e){return e.displayName||e.name||"Component"}function p3(e){return e&&"string"==typeof e.styledComponentId}var g3="undefined"!=typeof process&&({VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.REACT_APP_SC_ATTR||{VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.SC_ATTR)||"data-styled",m3="undefined"!=typeof window&&"HTMLElement"in window,v3=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.SC_DISABLE_SPEEDY&&""!=={VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.SC_DISABLE_SPEEDY&&("false"!=={VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.SC_DISABLE_SPEEDY&&{VERSION:"3.5.19",BUILD_DATE:"2024-01-06 15:37:05",RELEASE:"v_3.5.19_20240106_153705",SENTRY:"false",SENTRY_DSN:"https://cdbe2164cdff4c3b9525ad19f3a7b099@o368425.ingest.sentry.io/5883133",CONFIG:"private",OUTPUT:"widget",NODE_ENV:"production",WIDGET:!0}.SC_DISABLE_SPEEDY));function y3(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var b3=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&y3(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),w3=new Map,_3=new Map,x3=1,E3=function(e){if(w3.has(e))return w3.get(e);for(;_3.has(x3);)x3++;var t=x3++;return w3.set(e,t),_3.set(t,e),t},C3=function(e){return _3.get(e)},k3=function(e,t){t>=x3&&(x3=t+1),w3.set(e,t),_3.set(t,e)},S3="style["+g3+'][data-styled-version="5.3.5"]',T3=new RegExp("^"+g3+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M3=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},O3=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(T3);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(k3(c,l),M3(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},L3=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},A3=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(g3))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(g3,"active"),r.setAttribute("data-styled-version","5.3.5");var a=L3();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},D3=function(){function e(e){var t=this.element=A3(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}y3(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),N3=function(){function e(e){var t=this.element=A3(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),P3=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),I3=m3,j3={isServer:!m3,useCSSOMInjection:!v3},R3=function(){function e(e,t,n){void 0===e&&(e=d3),void 0===t&&(t={}),this.options=s3({},j3,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&m3&&I3&&(I3=!1,function(e){for(var t=document.querySelectorAll(S3),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(g3)&&(O3(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return E3(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(s3({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new P3(i):r?new D3(i):new N3(i),new b3(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(E3(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(E3(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(E3(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=C3(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var l=g3+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),F3=/(a)(d)/gi,z3=function(e){return String.fromCharCode(e+(e>25?39:97))};function Y3(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=z3(t%52)+n;return(z3(t%52)+n).replace(F3,"$1-$2")}var B3=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},H3=function(e){return B3(5381,e)};function q3(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(h3(n)&&!p3(n))return!1}return!0}var U3=H3("5.3.5"),V3=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&q3(e),this.componentId=t,this.baseHash=B3(U3,t),this.baseStyle=n,R3.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=c6(this.rules,e,t,n).join(""),a=Y3(B3(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=B3(this.baseHash,n.hash),u="",d=0;d<l;d++){var h=this.rules[d];if("string"==typeof h)u+=h;else if(h){var f=c6(h,e,t,n),p=Array.isArray(f)?f.join(""):f;c=B3(c,p+d),u+=p}}if(u){var g=Y3(c>>>0);if(!t.hasNameForId(r,g)){var m=n(u,"."+g,void 0,r);t.insertRules(r,g,m)}i.push(g)}}return i.join(" ")},e}(),W3=/^\s*\/\/.*$/gm,G3=[":","[",".","#"];function $3(e){var t,n,r,i,o=void 0===e?d3:e,a=o.options,s=void 0===a?d3:a,l=o.plugins,c=void 0===l?u3:l,u=new n3(s),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,o){return 0===r&&-1!==G3.indexOf(o[n.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var l=e.replace(W3,""),c=o&&a?a+" "+o+" { "+l+" }":l;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(a||!o?"":o,c)}return u.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,f))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),p.hash=c.length?c.reduce((function(e,t){return t.name||y3(15),B3(e,t.name)}),5381).toString():"",p}var K3=y.createContext(),J3=(K3.Consumer,y.createContext()),X3=(J3.Consumer,new R3),Z3=$3();function Q3(){return(0,y.useContext)(K3)||X3}function e6(){return(0,y.useContext)(J3)||Z3}function t6(e){var t=(0,y.useState)(e.stylisPlugins),n=t[0],r=t[1],i=Q3(),o=(0,y.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,y.useMemo)((function(){return $3({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,y.useEffect)((function(){$$()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),y.createElement(K3.Provider,{value:o},y.createElement(J3.Provider,{value:a},e.children))}var n6=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Z3);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return y3(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Z3),this.name+e.hash},e}(),r6=/([A-Z])/,i6=/([A-Z])/g,o6=/^ms-/,a6=function(e){return"-"+e.toLowerCase()};function s6(e){return r6.test(e)?e.replace(i6,a6).replace(o6,"-ms-"):e}var l6=function(e){return null==e||!1===e||""===e};function c6(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=c6(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return l6(e)?"":p3(e)?"."+e.styledComponentId:h3(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:c6(e(t),t,n,r):e instanceof n6?n?(e.inject(n,r),e.getName(r)):e:c3(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!l6(t[a])&&(Array.isArray(t[a])&&t[a].isCss||h3(t[a])?o.push(s6(a)+":",t[a],";"):c3(t[a])?o.push.apply(o,e(t[a],a)):o.push(s6(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in r3?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var l}var u6=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function d6(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return h3(e)||c3(e)?u6(c6(l3(u3,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:u6(c6(l3(e,n)))}new Set;var h6=function(e,t,n){return void 0===n&&(n=d3),e.theme!==n.theme&&e.theme||t||n.theme},f6=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,p6=/(^-|-$)/g;function g6(e){return e.replace(f6,"-").replace(p6,"")}var m6=function(e){return Y3(H3(e)>>>0)};function v6(e){return"string"==typeof e&&!0}var y6=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},b6=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function w6(e,t,n){var r=e[n];y6(t)&&y6(r)?_6(r,t):e[n]=t}function _6(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(y6(a))for(var s in a)b6(s)&&w6(e,a[s],s)}return e}var x6=y.createContext();x6.Consumer;var E6={};function C6(e,t,n){var r=p3(e),i=!v6(e),o=t.attrs,a=void 0===o?u3:o,s=t.componentId,l=void 0===s?function(e,t){var n="string"!=typeof e?"sc":g6(e);E6[n]=(E6[n]||0)+1;var r=n+"-"+m6("5.3.5"+n+E6[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,c=t.displayName,u=void 0===c?function(e){return v6(e)?"styled."+e:"Styled("+f3(e)+")"}(e):c,d=t.displayName&&t.componentId?g6(t.displayName)+"-"+t.componentId:t.componentId||l,h=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;r&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var p,g=new V3(n,d,r?e.componentStyle:void 0),m=g.isStatic&&0===a.length,v=function(e,t){return function(e,t,n,r){var i=e.attrs,o=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.shouldForwardProp,c=e.styledComponentId,u=e.target,d=function(e,t,n){void 0===e&&(e=d3);var r=s3({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in h3(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(h6(t,(0,y.useContext)(x6),a)||d3,t,i),h=d[0],f=d[1],p=function(e,t,n,r){var i=Q3(),o=e6();return t?e.generateAndInjectStyles(d3,i,o):e.generateAndInjectStyles(n,i,o)}(o,r,h),g=n,m=f.$as||t.$as||f.as||t.as||u,v=v6(m),b=f!==t?s3({},t,{},f):t,w={};for(var _ in b)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?w.as=b[_]:(l?l(_,a3,m):!v||a3(_))&&(w[_]=b[_]));return t.style&&f.style!==t.style&&(w.style=s3({},t.style,{},f.style)),w.className=Array.prototype.concat(s,c,p!==c?p:null,t.className,f.className).filter(Boolean).join(" "),w.ref=g,(0,y.createElement)(m,w)}(p,e,t,m)};return v.displayName=u,(p=y.forwardRef(v)).attrs=h,p.componentStyle=g,p.displayName=u,p.shouldForwardProp=f,p.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):u3,p.styledComponentId=d,p.target=r?e.target:e,p.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(v6(e)?e:g6(f3(e)));return C6(e,s3({},i,{attrs:h,componentId:o}),n)},Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?_6({},e.defaultProps,t):t}}),p.toString=function(){return"."+p.styledComponentId},i&&L()(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),p}var k6=function(e){return function e(t,n,r){if(void 0===r&&(r=d3),!(0,A.isValidElementType)(n))return y3(1,String(n));var i=function(){return t(n,r,d6.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,s3({},r,{},i))},i.attrs=function(i){return e(t,n,s3({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(C6,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){k6[e]=k6(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=q3(e),R3.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r(c6(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&R3.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=L3();return"<style "+[n&&'nonce="'+n+'"',g3+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?y3(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return y3(2);var n=((t={})[g3]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=L3();return r&&(n.nonce=r),[y.createElement("style",s3({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new R3({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?y3(2):y.createElement(t6,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return y3(3)}}();var S6=k6;var T6;S6.div(T6||(T6=t3()(["\n && .ant-tree-list-holder > div {\n height: ","px;\n }\n"])),(function(e){return e.height||"0"}));var M6="ExplorerCode__RLup8",O6=y.memo((function(e){var t=gm((function(e){return e.explorer.code.visible})),n=gm((function(e){return e.explorer.code.loading})),r=gm((function(e){return e.explorer.code.height})),i=gm((function(e){return e.explorer.code.content})),o=gm((function(e){return e.explorer.code.title}));return y.createElement(TW,{height:r,visible:t,onHeightChange:IF.explorer.code.height.set},y.createElement("div",{className:M6},y.createElement(GU,{className:"header",y:"center"},o,y.createElement(BU.Icon.Close,{onClose:IF.explorer.code.hide,size:20})),y.createElement("div",{className:"body"},y.createElement(FW,{loading:n,value:i}))))})),L6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 0034.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 0196 0 48.01 48.01 0 01-96 0zm96 600a48.01 48.01 0 01-96 0 48.01 48.01 0 0196 0zm408-491a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"branches",theme:"outlined"},A6=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:L6}))};A6.displayName="BranchesOutlined";var D6=y.forwardRef(A6),N6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-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"}}]},name:"deployment-unit",theme:"outlined"},P6=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:N6}))};P6.displayName="DeploymentUnitOutlined";var I6=y.forwardRef(P6),j6={Upload:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M938.3 530.8l-0.3-4.2c-0.2-2.9-0.4-5.7-0.7-8.6l-0.6-4.8c-0.3-2.6-0.6-5.2-1-7.8-0.2-1.6-0.5-3.2-0.8-4.9-0.4-2.6-0.9-5.1-1.4-7.7-0.3-1.6-0.6-3.1-1-4.7-0.6-2.6-1.2-5.2-1.8-7.7-0.4-1.5-0.7-2.9-1.1-4.3-0.7-2.7-1.5-5.4-2.3-8.1-0.4-1.2-0.8-2.5-1.1-3.7-0.9-2.9-1.9-5.9-3-8.8-0.3-0.9-0.7-1.9-1-2.8-1.3-3.4-2.6-6.8-4-10.2-0.2-0.4-0.3-0.7-0.4-1.1-28.1-66.3-82.8-118.8-151-143.9-0.4-0.1-0.7-0.3-1.1-0.4-3.4-1.2-6.9-2.4-10.4-3.5-0.8-0.2-1.5-0.5-2.3-0.7l-9.3-2.7-3.3-0.9c-2.8-0.7-5.7-1.4-8.5-2l-4.2-0.9c-2.6-0.5-5.2-1-7.8-1.4-1.6-0.3-3.3-0.6-4.9-0.8-0.4-0.1-0.8-0.1-1.2-0.2-57.1-67.9-142.3-108-231.8-108-145.2 0-268.7 102.7-296.9 242.6C126 457.1 89 523.9 89 595.4 89 711.5 183.5 806 299.6 806h162.2c-0.5-3.2-0.9-6.4-0.9-9.8V567.8l-63.7 63.7c-22.9 22.9-60.1 22.9-83 0s-22.9-60.1 0-83l163.9-163.9c22.9-22.9 60.1-22.9 83 0L725 548.5c22.9 22.9 22.9 60.1 0 83-11.5 11.5-26.5 17.2-41.5 17.2s-30-5.7-41.5-17.2l-63.7-63.7v228.4c0 3.3-0.3 6.6-0.9 9.8h99c144.6 0 262.2-117.6 262.2-262.2 0.1-4.4 0-8.7-0.3-13z"}))})),Lineage:y.memo((function(e){return y.createElement("svg",{className:e.className,viewBox:"0 0 1028 1024",version:"1.1"},y.createElement("path",{d:"M965.427 541.836C955.039 339.606 811.004 169.47 615.45 124.45c-13.491-3.106-26.946 5.313-30.052 18.804-3.105 13.491 5.313 26.946 18.805 30.052 173.819 40.015 301.922 191.333 311.156 371.102 0.71 13.826 12.494 24.458 26.32 23.748 13.826-0.71 24.458-12.494 23.748-26.32zM386.693 130.952C195.198 186.776 61.06 362.948 61.06 565.41c0 44.105 6.318 87.392 18.627 128.886 3.937 13.272 17.888 20.84 31.16 16.902 13.273-3.937 20.84-17.888 16.903-31.16-10.94-36.878-16.557-75.363-16.557-114.628 0-180.028 119.29-336.699 289.531-386.327 13.29-3.874 20.924-17.79 17.05-31.08-3.875-13.29-17.79-20.924-31.08-17.05zM196.357 888.108c84.056 82.629 196.93 129.786 317.188 129.786 129.776 0 250.76-54.963 336.013-149.431 9.275-10.278 8.462-26.128-1.816-35.403-10.277-9.275-26.128-8.462-35.403 1.815-75.844 84.042-183.357 132.886-298.794 132.886-106.976 0-207.271-41.902-282.043-115.405-9.873-9.705-25.744-9.57-35.449 0.303-9.705 9.873-9.569 25.744 0.304 35.449z"}),y.createElement("path",{d:"M498.28 285.176c72.859 0 131.922-59.063 131.922-131.921 0-72.858-59.063-131.922-131.922-131.922-72.858 0-131.921 59.064-131.921 131.922s59.063 131.921 131.921 131.921z m0-50.133c-45.17 0-81.788-36.618-81.788-81.788 0-45.17 36.618-81.788 81.788-81.788 45.17 0 81.788 36.617 81.788 81.788 0 45.17-36.617 81.788-81.788 81.788zM131.921 926.304c72.859 0 131.922-59.063 131.922-131.921 0-72.858-59.063-131.921-131.922-131.921C59.063 662.462 0 721.525 0 794.382c0 72.86 59.063 131.922 131.921 131.922z m0-50.133c-45.17 0-81.788-36.618-81.788-81.788 0-45.17 36.618-81.788 81.788-81.788 45.17 0 81.788 36.618 81.788 81.788 0 45.17-36.617 81.788-81.788 81.788zM895.17 895.774c72.857 0 131.92-59.063 131.92-131.921 0-72.858-59.063-131.921-131.92-131.921-72.859 0-131.922 59.063-131.922 131.921 0 72.858 59.063 131.921 131.921 131.921z m0-50.133c-45.171 0-81.789-36.618-81.789-81.788 0-45.17 36.618-81.788 81.788-81.788 45.17 0 81.788 36.618 81.788 81.788 0 45.17-36.617 81.788-81.788 81.788z"}))})),Lineage2:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M354.879931 125.887975A164.159968 164.159968 0 0 1 513.8559 0c76.415985 0 140.607973 52.92799 158.655969 124.543976a463.615909 463.615909 0 0 1 301.439941 435.839915c0 29.503994-2.815999 58.495989-8.063999 86.527983 35.583993 30.399994 58.111989 75.775985 58.111989 126.527975 0 91.455982-73.279986 165.567968-163.711968 165.567968-22.399996 0-43.775991-4.479999-63.231988-12.799998a453.119912 453.119912 0 0 1-281.599945 97.791981c-104.12798 0-200.255961-35.199993-277.247946-94.399982-22.335996 11.519998-47.679991 18.111996-74.495985 18.111997C73.279986 947.711815 0 873.535829 0 782.079847c0-54.207989 25.791995-102.39998 65.599987-132.543974a471.231908 471.231908 0 0 1-8.447998-89.215982A463.679909 463.679909 0 0 1 354.879931 125.887975z m7.871998 103.61598a364.671929 364.671929 0 0 0-208.639959 330.559936c0 19.199996 1.536 38.079993 4.351999 56.511989l5.247999-0.064c90.431982 0 163.711968 74.111986 163.711968 165.567967a166.399968 166.399968 0 0 1-18.815996 77.119985 355.711931 355.711931 0 0 0 205.69596 65.215987 355.711931 355.711931 0 0 0 205.823959-65.279987 166.271968 166.271968 0 0 1-23.551995-85.759983c0-91.391982 73.279986-165.567968 163.711968-165.567968 3.711999 0 7.423999 0.128 11.071998 0.384a371.839927 371.839927 0 0 0 3.135999-48.12799c0-146.751971-85.759983-273.215947-209.407959-330.879936A163.775968 163.775968 0 0 1 513.8559 331.199935a163.775968 163.775968 0 0 1-151.039971-101.75998z"}))})),Join:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1624 1024",version:"1.1"},y.createElement("path",{d:"M1015.54792218 512m-362.60640592 0a362.60640593 362.60640593 0 1 0 725.21281108 0 362.60640593 362.60640593 0 1 0-725.21281108 0Z",fill:"#777777"}),y.createElement("path",{d:"M551.96709869 512m-362.60640593 0a362.60640593 362.60640593 0 1 0 725.21281108 0 362.60640593 362.60640593 0 1 0-725.21281108 0Z",fill:"#EEEEEE"}),y.createElement("path",{d:"M1015.6137248 116.4921875c-86.62940406 0-166.57982288 28.29520981-231.85621437 75.73903851A392.84279821 392.84279821 0 0 0 551.96709869 116.4921875C333.92947462 116.4921875 156.49218749 293.96237671 156.49218749 512c0 218.10342668 177.43728713 395.5078125 395.47491119 395.5078125 86.62940406 0 166.57982288-28.32811111 231.79041175-75.8377432a393.10600943 393.10600943 0 0 0 231.85621437 75.8377432c218.03762329 0 395.5078125-177.50309052 395.5078125-395.5078125C1411.08863599 294.02817932 1233.65134809 116.4921875 1015.6137248 116.4921875zM222.29500142 512C222.29500142 330.25262786 370.21972654 182.29500143 551.96709869 182.29500143c66.59244758 0 128.5786984 20.00405516 180.46421656 54.155716a393.96144649 393.96144649 0 0 0 0 551.16436853 327.53350619 327.53350619 0 0 1-180.46421656 54.15571523C370.21972654 841.70499857 222.29500142 693.78027345 222.29500142 512z m793.31872337 329.70499857a327.03998505 327.03998505 0 0 1-180.46421656-54.155716c69.3561658-71.26444774 112.39120635-168.4223022 112.39120556-275.54928257s-43.03504054-204.28483561-112.39120556-275.54928257A327.4677028 327.4677028 0 0 1 1015.6137248 182.29500143c181.71447007 0 329.70499857 147.89182383 329.70499858 329.70499857-0.06580261 181.78027345-147.99052852 329.70499857-329.70499858 329.70499857z",fill:"#777777"}))})),Schema:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M566.4 160c35.2 0 60.8 28.8 60.8 64v112c0 35.2-28.8 64-60.8 64H544V448h137.6c51.2 0 89.6 41.6 92.8 89.6v83.2h28.8c35.2 0 60.8 28.8 60.8 64V800c0 35.2-28.8 64-60.8 64h-112c-35.2 0-60.8-28.8-60.8-64v-112c0-35.2 28.8-64 60.8-64h19.2v-83.2c0-16-16-28.8-32-28.8H339.2c-16 0-32 16-28.8 35.2v76.8h22.4c35.2 0 60.8 28.8 60.8 64V800c0 35.2-28.8 64-60.8 64H220.8c-32 0-60.8-28.8-60.8-64v-112c0-35.2 28.8-64 60.8-64h25.6v-73.6c-3.2-51.2 35.2-96 83.2-99.2H480v-48h-25.6c-35.2 0-60.8-28.8-60.8-64V224c0-35.2 28.8-64 60.8-64h112z m-233.6 528H220.8V800h112v-112z m470.4 0h-112V800h112v-112z"}))})),ER:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",null),y.createElement("path",{d:"M674.133333 298.666667h-341.333333a42.666667 42.666667 0 0 0 0 85.333333h341.333333a42.666667 42.666667 0 0 0 0-85.333333zM503.466667 469.333333h-170.666667a42.666667 42.666667 0 0 0 0 85.333334h170.666667a42.666667 42.666667 0 0 0 0-85.333334zM631.466667 640h-298.666667a42.666667 42.666667 0 0 0 0 85.333333h298.666667a42.666667 42.666667 0 0 0 0-85.333333z"}))}))},R6="Operation__ir5Ug",F6="Lineage__AsE7Q",z6=y.memo((function(e){var t=gm((function(e){return e.loading.spinning})),n=gm((function(e){return e.license.vendor.list})),r=gm((function(e){return e.license.vendor.current})),i=fm((function(e){IF.license.vendor.current.set(e),IF.user.schema.current.clear()})),o=fm((function(){jF.user.isLogin?RU.sqlflow.visualizeSQL():IF.login.show()})),a=fm((function(){jF.user.isLogin?RU.lineage.visualizeSQL({activateTab:!0}):IF.login.show()})),s=fm((function(){jF.user.isLogin?RU.sqlflow.visualizeJoin():IF.login.show()})),l=fm((function(){RU.editor.setValue(om.sampleSQL[jF.license.vendor.current])})),c=fm((function(){jF.user.isLogin?RU.user.schema.show():IF.login.show()})),u=fm((function(){RU.er.visualizeSQL({activateTab:!0})}));return y.createElement("div",{className:R6},y.createElement(GU,{className:"close",y:"center"},y.createElement(BU.Icon.Fold,{size:17,onClose:IF.toolbar.sql.hide})),y.createElement(GU,{y:"center",className:"one"},y.createElement(QX,{showSearch:!0,value:r,onChange:i,disabled:t,style:{width:140},listHeight:600},n.map((function(e){return y.createElement(QX.Option,{disabled:!e.license,key:e.name,value:e.name},e.name)}))),y.createElement(EB,{style:{marginLeft:25},onClick:o,type:"primary",disabled:t,icon:y.createElement(D6,{rotate:90})},y.createElement("span",null,y.createElement(z$,{id:"sql.visualize",defaultMessage:"visualize"}))),y.createElement(P$,{title:y.createElement(z$,{id:"sql.visualize.table.tip",defaultMessage:"visualize table level lineage"}),placement:"bottom"},y.createElement(EB,{style:{marginLeft:20},onClick:a,disabled:t,icon:y.createElement(j6.Lineage,{className:F6})},y.createElement(z$,{id:"sql.visualize.table",defaultMessage:"table Lineage"}))),y.createElement(P$,{title:y.createElement(z$,{id:"sql.visualize.join.tip",defaultMessage:"visualize join"}),placement:"bottom"},y.createElement(EB,{style:{marginLeft:20},onClick:s,disabled:t,icon:y.createElement(I6,null)},y.createElement("span",null,y.createElement(z$,{id:"sql.visualize.join",defaultMessage:"join"}))))),y.createElement(GU,{y:"center",className:"two"},y.createElement(P$,{title:y.createElement(z$,{id:"sql.sample.sql",defaultMessage:"sample sql"}),placement:"bottom"},y.createElement(GU,{y:"center",className:"icon sample",onClick:l},y.createElement(BU.Icon.SQL,null))),y.createElement(P$,{title:y.createElement(z$,{id:"sql.upload.sql",defaultMessage:"upload SQL or connect to DB"}),placement:"bottom"},y.createElement(GU,{y:"center",className:"icon upload",onClick:RU.job.upload},y.createElement(j6.Upload,null))),y.createElement(P$,{title:y.createElement(z$,{id:"sql.upload.definition",defaultMessage:"upload schema definition file"}),placement:"bottom"},y.createElement(GU,{y:"center",className:"icon schema",onClick:c},y.createElement(j6.Schema,null))),y.createElement(P$,{title:"visualize ER diagram",placement:"bottom"},y.createElement(GU,{y:"center",className:"icon er",onClick:u},y.createElement(j6.ER,null)))))})),Y6="Editor__Xbhpg",B6=y.memo((function(e){var t=y.useRef(null),n=gm((function(e){return e.widget.sqltext})),r=gm((function(e){var t;return ky(null===(t=e.sqlflow.current)||void 0===t?void 0:t.field).filter((function(e){return e.highlight||e.mouseover}))}),u2),i=y.useRef({markers:new Map,columnIds:new Set});pm("editor"),y.useEffect((function(){t.current&&(cg.editor.sql=IW()(t.current,{value:jF.setting.sqltext,mode:"sql",lineWrapping:!0,lineNumbers:!0,styleActiveLine:!0}),cg.editor.sql.on("change",(function(e){IF.setting.sqltext.set(e.getValue())})))}),[]),y.useEffect((function(){var e,t=null===(e=cg.editor.sql)||void 0===e?void 0:e.getWrapperElement();return null==t||t.addEventListener("mousemove",o),function(){null==t||t.removeEventListener("mousemove",o)}}),[n]);var o=function(e){if(jF.sqlflow.visualize.type===yg.sql||n){var t,r=null===(t=cg.editor.sql)||void 0===t?void 0:t.coordsChar({left:e.clientX,top:e.clientY});if(r){var i,o,a=(null===(o=((null===(i=jF.sqlflow.current)||void 0===i?void 0:i.token)||[])[r.line+1])||void 0===o?void 0:o[r.ch+1])||[];IF.sqlflow.field.token.hover(a)}}};y.useEffect((function(){var e=jF.sqlflow.visualize.type;((e===yg.sql||n)&&a(r),e===yg.sessionSelectGraph||e===yg.sessionSelectLeftMost)&&(0===r.length&&wy()(i.current.markers.keys()).forEach((function(e){var t=i.current.markers.get(e);null==t||t.clear(),i.current.markers.delete(e)})))}),[r]);var a=function(e){var t=[];t=0===e.length?wy()(i.current.markers.keys()):wy()(i.current.markers.keys()).filter((function(t){return void 0===e.find((function(e){return t===e.id}))})),t.forEach((function(e){var t=i.current.markers.get(e);null==t||t.clear(),i.current.markers.delete(e)})),e.forEach((function(e){e.coordinates.forEach((function(t,n){var r,o,a="".concat(e.id,"_").concat(n);if(!i.current.markers.get(a)){var s={line:t[0].x-1,ch:t[0].y-1},l={line:t[1].x-1,ch:t[1].y-1},c=null===(r=cg.editor.sql)||void 0===r||null===(o=r.getDoc())||void 0===o?void 0:o.markText(s,l,{className:Y()("highlight",{mouseover:e.mouseover})});i.current.markers.set(a,c)}}))}))};return y.createElement("div",{className:Y()(Y6,{isWidget:Xp}),ref:t})}));function H6(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function q6(e){var t=new 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 FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,e.data[t])})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),H6(t)):e.onSuccess(H6(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var U6=+new Date,V6=0;function W6(){return"rc-upload-".concat(U6,"-").concat(++V6)}var G6=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=r.toLowerCase(),a=t.toLowerCase(),s=[a];return".jpg"!==a&&".jpeg"!==a||(s=[".jpg","jpeg"]),s.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?o===t.replace(/\/.*$/,""):i===t||!!/^\w+$/.test(t)&&(tV(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var $6=function(e,t,n){var r=function e(r,i){r.path=i||"",r.isFile?r.file((function(e){n(e)&&(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,"".concat(i).concat(r.name,"/"))}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},K6=function(e){K(n,e);var t=ee(n);function n(){var e;return V(this,n),(e=t.apply(this,arguments)).state={uid:W6()},e.reqs={},e.onChange=function(t){var n=e.props,r=n.accept,i=n.directory,o=rt(t.target.files).filter((function(e){return!i||G6(e,r)}));e.uploadFiles(o),e.reset()},e.onClick=function(t){var n=e.fileInput;if(n){var r=e.props,i=r.children,o=r.onClick;if(i&&"button"===i.type){var a=n.parentNode;a.focus(),a.querySelector("button").blur()}n.click(),o&&o(t)}},e.onKeyDown=function(t){"Enter"===t.key&&e.onClick(t)},e.onFileDrop=function(t){var n=e.props.multiple;if(t.preventDefault(),"dragover"!==t.type)if(e.props.directory)$6(Array.prototype.slice.call(t.dataTransfer.items),e.uploadFiles,(function(t){return G6(t,e.props.accept)}));else{var r=rt(t.dataTransfer.files).filter((function(t){return G6(t,e.props.accept)}));!1===n&&(r=r.slice(0,1)),e.uploadFiles(r)}},e.uploadFiles=function(t){var n=rt(t),r=n.map((function(t){return t.uid=W6(),e.processFile(t,n)}));Promise.all(r).then((function(t){var n=e.props.onBatchStart;null==n||n(t.map((function(e){return{file:e.origin,parsedFile:e.parsedFile}}))),t.filter((function(e){return null!==e.parsedFile})).forEach((function(t){e.post(t)}))}))},e.processFile=function(){var t=Qn(v().mark((function t(n,r){var i,o,a,s,l,c,u,d,h;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.props.beforeUpload,o=n,!i){t.next=14;break}return t.prev=3,t.next=6,i(n,r);case 6:o=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),o=!1;case 12:if(!1!==o){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!=typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:s=t.sent,t.next=22;break;case 21:s=a;case 22:if("function"!=typeof(l=e.props.data)){t.next=29;break}return t.next=26,l(n);case 26:c=t.sent,t.next=30;break;case 29:c=l;case 30:return u="object"!==X(o)&&"string"!=typeof o||!o?n:o,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(h=d).uid=n.uid,t.abrupt("return",{origin:n,data:c,parsedFile:h,action:s});case 35:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e,n){return t.apply(this,arguments)}}(),e.saveFileInput=function(t){e.fileInput=t},e}return G(n,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(e){var t=this,n=e.data,r=e.origin,i=e.action,o=e.parsedFile;if(this._isMounted){var a=this.props,s=a.onStart,l=a.customRequest,c=a.name,u=a.headers,d=a.withCredentials,h=a.method,f=r.uid,p=l||q6,g={action:i,filename:c,data:n,file:o,headers:u,withCredentials:d,method:h||"post",onProgress:function(e){var n=t.props.onProgress;null==n||n(e,o)},onSuccess:function(e,n){var r=t.props.onSuccess;null==r||r(e,o,n),delete t.reqs[f]},onError:function(e,n){var r=t.props.onError;null==r||r(e,n,o),delete t.reqs[f]}};s(r),this.reqs[f]=p(g)}}},{key:"reset",value:function(){this.setState({uid:W6()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;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]}))}},{key:"render",value:function(){var e,t=this.props,n=t.component,r=t.prefixCls,i=t.className,o=t.disabled,a=t.id,s=t.style,l=t.multiple,c=t.accept,u=t.children,d=t.directory,h=t.openFileDialogOnClick,f=t.onMouseEnter,p=t.onMouseLeave,g=t.capture,m=H(t,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","capture"]),v=Y()((F(e={},r,!0),F(e,"".concat(r,"-disabled"),o),F(e,i,i),e)),b=d?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},w=o?{}:{onClick:h?this.onClick:function(){},onKeyDown:h?this.onKeyDown:function(){},onMouseEnter:f,onMouseLeave:p,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return y.createElement(n,D({},w,{className:v,role:"button",style:s}),y.createElement("input",D({},MY(m,{aria:!0,data:!0}),{id:a,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:c},b,{multiple:l,onChange:this.onChange},null!=g?{capture:g}:{})),u)}}]),n}(y.Component),J6=K6;function X6(){}var Z6=function(e){K(n,e);var t=ee(n);function n(){var e;return V(this,n),(e=t.apply(this,arguments)).saveUploader=function(t){e.uploader=t},e}return G(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return y.createElement(J6,D({},this.props,{ref:this.saveUploader}))}}]),n}(y.Component);Z6.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:X6,onError:X6,onSuccess:X6,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Q6=Z6,e4=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},t4=function(e,t){var n=e.style,r=e.height,i=e4(e,["style","height"]);return y.createElement(i5,D({ref:t},i,{type:"drag",style:D(D({},n),{height:r})}))},n4=y.forwardRef(t4);n4.displayName="Dragger";var r4=n4,i4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 0012.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 0012.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 00174 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"}}]},name:"paper-clip",theme:"outlined"},o4=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:i4}))};o4.displayName="PaperClipOutlined";var a4=y.forwardRef(o4),s4={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"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 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},l4=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:s4}))};l4.displayName="PictureTwoTone";var c4=y.forwardRef(l4),u4={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"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 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},d4=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:u4}))};d4.displayName="FileTwoTone";var h4=y.forwardRef(d4);function f4(e){return D(D({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function p4(e,t){var n=rt(t),r=n.findIndex((function(t){return t.uid===e.uid}));return-1===r?n.push(e):n[r]=e,n}function g4(e,t){var n=void 0!==e.uid?"uid":"name";return t.filter((function(t){return t[n]===e[n]}))[0]}var m4=function(e){return 0===e.indexOf("image/")},v4=200;var y4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 000 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"}}]},name:"eye",theme:"outlined"},b4=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:y4}))};b4.displayName="EyeOutlined";var w4=y.forwardRef(b4),_4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}}]},name:"delete",theme:"outlined"},x4=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:_4}))};x4.displayName="DeleteOutlined";var E4=y.forwardRef(x4),C4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.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"}}]},name:"download",theme:"outlined"},k4=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:C4}))};k4.displayName="DownloadOutlined";var S4=y.forwardRef(k4);function T4(e){return!e||e<0?0:e>100?100:e}function M4(e){var t=e.success,n=e.successPercent;return t&&"progress"in t&&(fi(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),n=t.progress),t&&"percent"in t&&(n=t.percent),n}var O4=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},L4=function(e,t){var n,r,i=e.from,o=void 0===i?zt.blue:i,a=e.to,s=void 0===a?zt.blue:a,l=e.direction,c=void 0===l?"rtl"===t?"to left":"to right":l,u=O4(e,["from","to","direction"]);if(0!==Object.keys(u).length){var d=(n=u,r=[],Object.keys(n).forEach((function(e){var t=parseFloat(e.replace(/%/g,""));isNaN(t)||r.push({key:t,value:n[e]})})),r=r.sort((function(e,t){return e.key-t.key})),r.map((function(e){var t=e.key,n=e.value;return"".concat(n," ").concat(t,"%")})).join(", "));return{backgroundImage:"linear-gradient(".concat(c,", ").concat(d,")")}}return{backgroundImage:"linear-gradient(".concat(c,", ").concat(o,", ").concat(s,")")}},A4=function(e){var t=e.prefixCls,n=e.direction,r=e.percent,i=e.strokeWidth,o=e.size,a=e.strokeColor,s=e.strokeLinecap,l=e.children,c=e.trailColor,u=e.success,d=a&&"string"!=typeof a?L4(a,n):{background:a},h=c?{backgroundColor:c}:void 0,f=D({width:"".concat(T4(r),"%"),height:i||("small"===o?6:8),borderRadius:"square"===s?0:""},d),p=M4(e),g={width:"".concat(T4(p),"%"),height:i||("small"===o?6:8),borderRadius:"square"===s?0:"",backgroundColor:null==u?void 0:u.strokeColor},m=void 0!==p?y.createElement("div",{className:"".concat(t,"-success-bg"),style:g}):null;return y.createElement(y.Fragment,null,y.createElement("div",{className:"".concat(t,"-outer")},y.createElement("div",{className:"".concat(t,"-inner"),style:h},y.createElement("div",{className:"".concat(t,"-bg"),style:f}),m)),l)},D4={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},N4=function(e){var t=e.map((function(){return(0,y.useRef)()})),n=(0,y.useRef)(null);return(0,y.useEffect)((function(){var e=Date.now(),r=!1;Object.keys(t).forEach((function(i){var o=t[i].current;if(o){r=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(a.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),[t]},P4=function(e){var t=e.className,n=e.percent,r=e.prefixCls,i=e.strokeColor,o=e.strokeLinecap,a=e.strokeWidth,s=e.style,l=e.trailColor,c=e.trailWidth,u=e.transition,d=H(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete d.gapPosition;var h=Array.isArray(n)?n:[n],f=Array.isArray(i)?i:[i],p=oe(N4(h),1)[0],g=a/2,m=100-a/2,v="M ".concat("round"===o?g:0,",").concat(g,"\n L ").concat("round"===o?m:100,",").concat(g),b="0 0 100 ".concat(a),w=0;return y.createElement("svg",D({className:Y()("".concat(r,"-line"),t),viewBox:b,preserveAspectRatio:"none",style:s},d),y.createElement("path",{className:"".concat(r,"-line-trail"),d:v,strokeLinecap:o,stroke:l,strokeWidth:c||a,fillOpacity:"0"}),h.map((function(e,t){var n=1;switch(o){case"round":n=1-a/100;break;case"square":n=1-a/2/100;break;default:n=1}var i={strokeDasharray:"".concat(e*n,"px, 100px"),strokeDashoffset:"-".concat(w,"px"),transition:u||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},s=f[t]||f[f.length-1];return w+=e,y.createElement("path",{key:t,className:"".concat(r,"-line-path"),d:v,strokeLinecap:o,stroke:s,strokeWidth:a,fillOpacity:"0",ref:p[t],style:i})})))};P4.defaultProps=D4,P4.displayName="Line";var I4=0;function j4(e){return+e.replace("%","")}function R4(e){return Array.isArray(e)?e:[e]}function F4(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=50-r/2,a=0,s=-o,l=0,c=-2*o;switch(arguments.length>5?arguments[5]:void 0){case"left":a=-o,s=0,l=2*o,c=0;break;case"right":a=o,s=0,l=-2*o,c=0;break;case"bottom":s=o,c=2*o}var u="M 50,50 m ".concat(a,",").concat(s,"\n a ").concat(o,",").concat(o," 0 1 1 ").concat(l,",").concat(-c,"\n a ").concat(o,",").concat(o," 0 1 1 ").concat(-l,",").concat(c),d=2*Math.PI*o;return{pathString:u,pathStyle:{stroke:"string"==typeof n?n:void 0,strokeDasharray:"".concat(t/100*(d-i),"px ").concat(d,"px"),strokeDashoffset:"-".concat(i/2+e/100*(d-i),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"}}}var z4=function(e){var t,n=e.prefixCls,r=e.strokeWidth,i=e.trailWidth,o=e.gapDegree,a=e.gapPosition,s=e.trailColor,l=e.strokeLinecap,c=e.style,u=e.className,d=e.strokeColor,h=e.percent,f=H(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),p=y.useMemo((function(){return I4+=1}),[]),g=F4(0,100,s,r,o,a),m=g.pathString,v=g.pathStyle,b=R4(h),w=R4(d),_=w.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),x=oe(N4(b),1)[0];return y.createElement("svg",D({className:Y()("".concat(n,"-circle"),u),viewBox:"0 0 100 100",style:c},f),_&&y.createElement("defs",null,y.createElement("linearGradient",{id:"".concat(n,"-gradient-").concat(p),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(_).sort((function(e,t){return j4(e)-j4(t)})).map((function(e,t){return y.createElement("stop",{key:t,offset:e,stopColor:_[e]})})))),y.createElement("path",{className:"".concat(n,"-circle-trail"),d:m,stroke:s,strokeLinecap:l,strokeWidth:i||r,fillOpacity:"0",style:v}),(t=0,b.map((function(e,i){var s=w[i]||w[w.length-1],c="[object Object]"===Object.prototype.toString.call(s)?"url(#".concat(n,"-gradient-").concat(p,")"):"",u=F4(t,e,s,r,o,a);return t+=e,y.createElement("path",{key:i,className:"".concat(n,"-circle-path"),d:u.pathString,stroke:c,strokeLinecap:l,strokeWidth:r,opacity:0===e?0:1,fillOpacity:"0",style:u.pathStyle,ref:x[i]})}))).reverse())};z4.defaultProps=D4,z4.displayName="Circle";var Y4=z4;function B4(e){var t=e.percent,n=T4(M4({success:e.success,successPercent:e.successPercent}));return[n,T4(T4(t)-n)]}var H4=function(e){var t=e.prefixCls,n=e.width,r=e.strokeWidth,i=e.trailColor,o=e.strokeLinecap,a=e.gapPosition,s=e.gapDegree,l=e.type,c=e.children,u=e.success,d=n||120,h={width:d,height:d,fontSize:.15*d+6},f=r||6,p=a||"dashboard"===l&&"bottom"||"top",g="[object Object]"===Object.prototype.toString.call(e.strokeColor),m=function(e){var t=e.success,n=void 0===t?{}:t,r=e.strokeColor;return[n.strokeColor||zt.green,r||null]}({success:u,strokeColor:e.strokeColor}),v=Y()("".concat(t,"-inner"),F({},"".concat(t,"-circle-gradient"),g));return y.createElement("div",{className:v,style:h},y.createElement(Y4,{percent:B4(e),strokeWidth:f,trailWidth:f,strokeColor:m,strokeLinecap:o,trailColor:i,prefixCls:t,gapDegree:s||0===s?s:"dashboard"===l?75:void 0,gapPosition:p}),c)},q4=function(e){for(var t=e.size,n=e.steps,r=e.percent,i=void 0===r?0:r,o=e.strokeWidth,a=void 0===o?8:o,s=e.strokeColor,l=e.trailColor,c=e.prefixCls,u=e.children,d=Math.round(n*(i/100)),h="small"===t?2:14,f=[],p=0;p<n;p+=1)f.push(y.createElement("div",{key:p,className:Y()("".concat(c,"-steps-item"),F({},"".concat(c,"-steps-item-active"),p<=d-1)),style:{backgroundColor:p<=d-1?s:l,width:h,height:a}}));return y.createElement("div",{className:"".concat(c,"-steps-outer")},f,u)},U4=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},V4=(dB("line","circle","dashboard"),dB("normal","exception","active","success")),W4=function(e){K(n,e);var t=ee(n);function n(){var e;return V(this,n),(e=t.apply(this,arguments)).renderProgress=function(t){var n,r,i=t.getPrefixCls,o=t.direction,a=Z(e).props,s=a.prefixCls,l=a.className,c=a.size,u=a.type,d=a.steps,h=a.showInfo,f=a.strokeColor,p=U4(a,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),g=i("progress",s),m=e.getProgressStatus(),v=e.renderProcessInfo(g,m);fi(!("successPercent"in a),"Progress","`successPercent` is deprecated. Please use `success.percent` instead."),"line"===u?r=d?y.createElement(q4,D({},e.props,{strokeColor:"string"==typeof f?f:void 0,prefixCls:g,steps:d}),v):y.createElement(A4,D({},e.props,{prefixCls:g,direction:o}),v):"circle"!==u&&"dashboard"!==u||(r=y.createElement(H4,D({},e.props,{prefixCls:g,progressStatus:m}),v));var b=Y()(g,(F(n={},"".concat(g,"-").concat(("dashboard"===u?"circle":d&&"steps")||u),!0),F(n,"".concat(g,"-status-").concat(m),!0),F(n,"".concat(g,"-show-info"),h),F(n,"".concat(g,"-").concat(c),c),F(n,"".concat(g,"-rtl"),"rtl"===o),n),l);return y.createElement("div",D({},YY(p,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","percent","success","successPercent"]),{className:b}),r)},e}return G(n,[{key:"getPercentNumber",value:function(){var e=this.props.percent,t=void 0===e?0:e,n=M4(this.props);return parseInt(void 0!==n?n.toString():t.toString(),10)}},{key:"getProgressStatus",value:function(){var e=this.props.status;return V4.indexOf(e)<0&&this.getPercentNumber()>=100?"success":e||"normal"}},{key:"renderProcessInfo",value:function(e,t){var n,r=this.props,i=r.showInfo,o=r.format,a=r.type,s=r.percent,l=M4(this.props);if(!i)return null;var c="line"===a;return o||"exception"!==t&&"success"!==t?n=(o||function(e){return"".concat(e,"%")})(T4(s),T4(l)):"exception"===t?n=c?y.createElement(yn,null):y.createElement(Ci,null):"success"===t&&(n=c?y.createElement(_n,null):y.createElement(VX,null)),y.createElement("span",{className:"".concat(e,"-text"),title:"string"==typeof n?n:void 0},n)}},{key:"render",value:function(){return y.createElement(Hn,null,this.renderProgress)}}]),n}(y.Component);W4.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var G4=W4,$4=y.forwardRef((function(e,t){var n,r,i,o=e.prefixCls,a=e.className,s=e.style,l=e.locale,c=e.listType,u=e.file,d=e.items,h=e.progress,f=e.iconRender,p=e.actionIconRender,g=e.itemRender,m=e.isImgUrl,v=e.showPreviewIcon,b=e.showRemoveIcon,w=e.showDownloadIcon,_=e.removeIcon,x=e.downloadIcon,E=e.onPreview,C=e.onDownload,k=e.onClose,S=oe(y.useState(!1),2),T=S[0],M=S[1],O=y.useRef();y.useEffect((function(){return O.current=setTimeout((function(){M(!0)}),300),function(){window.clearTimeout(O.current)}}),[]);var L="".concat(o,"-span"),A=f(u),N=y.createElement("div",{className:"".concat(o,"-text-icon")},A);if("picture"===c||"picture-card"===c)if("uploading"===u.status||!u.thumbUrl&&!u.url){var P,I=Y()((F(P={},"".concat(o,"-list-item-thumbnail"),!0),F(P,"".concat(o,"-list-item-file"),"uploading"!==u.status),P));N=y.createElement("div",{className:I},A)}else{var j,R=(null==m?void 0:m(u))?y.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:"".concat(o,"-list-item-image")}):A,z=Y()((F(j={},"".concat(o,"-list-item-thumbnail"),!0),F(j,"".concat(o,"-list-item-file"),m&&!m(u)),j));N=y.createElement("a",{className:z,onClick:function(e){return E(u,e)},href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},R)}var B,H=Y()((F(n={},"".concat(o,"-list-item"),!0),F(n,"".concat(o,"-list-item-").concat(u.status),!0),F(n,"".concat(o,"-list-item-list-type-").concat(c),!0),n)),q="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,U=b?p(("function"==typeof _?_(u):_)||y.createElement(E4,null),(function(){return k(u)}),o,l.removeFile):null,V=w&&"done"===u.status?p(("function"==typeof x?x(u):x)||y.createElement(S4,null),(function(){return C(u)}),o,l.downloadFile):null,W="picture-card"!==c&&y.createElement("span",{key:"download-delete",className:Y()("".concat(o,"-list-item-card-actions"),{picture:"picture"===c})},V,U),G=Y()("".concat(o,"-list-item-name")),$=u.url?[y.createElement("a",D({key:"view",target:"_blank",rel:"noopener noreferrer",className:G,title:u.name},q,{href:u.url,onClick:function(e){return E(u,e)}}),u.name),W]:[y.createElement("span",{key:"view",className:G,onClick:function(e){return E(u,e)},title:u.name},u.name),W],K=v?y.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return E(u,e)},title:l.previewFile},y.createElement(w4,null)):null,J="picture-card"===c&&"uploading"!==u.status&&y.createElement("span",{className:"".concat(o,"-list-item-actions")},K,"done"===u.status&&V,U);B=u.response&&"string"==typeof u.response?u.response:(null===(r=u.error)||void 0===r?void 0:r.statusText)||(null===(i=u.error)||void 0===i?void 0:i.message)||l.uploadError;var X=y.createElement("span",{className:L},N,$),Z=(0,y.useContext(Bn).getPrefixCls)(),Q=y.createElement("div",{className:H},y.createElement("div",{className:"".concat(o,"-list-item-info")},X),J,T&&y.createElement(et,{motionName:"".concat(Z,"-fade"),visible:"uploading"===u.status,motionDeadline:2e3},(function(e){var t=e.className,n="percent"in u?y.createElement(G4,D({},h,{type:"line",percent:u.percent})):null;return y.createElement("div",{className:Y()("".concat(o,"-list-item-progress"),t)},n)}))),ee=Y()("".concat(o,"-list-").concat(c,"-container"),a),te="error"===u.status?y.createElement(P$,{title:B,getPopupContainer:function(e){return e.parentNode}},Q):Q;return y.createElement("div",{className:ee,style:s,ref:t},g?g(te,u,d,{download:C.bind(null,u),preview:E.bind(null,u),remove:k.bind(null,u)}):te)})),K4=$4,J4=D({},LB);delete J4.onAppearEnd,delete J4.onEnterEnd,delete J4.onLeaveEnd;var X4=function(e,t){var n,r=e.listType,i=e.previewFile,o=e.onPreview,a=e.onDownload,s=e.onRemove,l=e.locale,c=e.iconRender,u=e.isImageUrl,d=e.prefixCls,h=e.items,f=void 0===h?[]:h,p=e.showPreviewIcon,g=e.showRemoveIcon,m=e.showDownloadIcon,v=e.removeIcon,b=e.downloadIcon,w=e.progress,_=e.appendAction,x=e.itemRender,E=j1(),C=oe(y.useState(!1),2),k=C[0],S=C[1];y.useEffect((function(){"picture"!==r&&"picture-card"!==r||(f||[]).forEach((function(e){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",i&&i(e.originFileObj).then((function(t){e.thumbUrl=t||"",E()})))}))}),[r,f,i]),y.useEffect((function(){S(!0)}),[]);var T=function(e,t){if(o)return null==t||t.preventDefault(),o(e)},M=function(e){"function"==typeof a?a(e):e.url&&window.open(e.url)},O=function(e){null==s||s(e)},L=function(e){if(c)return c(e,r);var t="uploading"===e.status,n=u&&u(e)?y.createElement(c4,null):y.createElement(h4,null),i=t?y.createElement(hn,null):y.createElement(a4,null);return"picture"===r?i=t?y.createElement(hn,null):n:"picture-card"===r&&(i=t?l.uploading:n),i},A=function(e,t,n,r){var i={type:"text",size:"small",title:r,onClick:function(n){t(),aB(e)&&e.props.onClick&&e.props.onClick(n)},className:"".concat(n,"-list-item-card-actions-btn")};if(aB(e)){var o=lB(e,D(D({},e.props),{onClick:function(){}}));return y.createElement(EB,D({},i,{icon:o}))}return y.createElement(EB,i,y.createElement("span",null,e))};y.useImperativeHandle(t,(function(){return{handlePreview:T,handleDownload:M}}));var N=y.useContext(Bn),P=N.getPrefixCls,I=N.direction,j=P("upload",d),R=Y()((F(n={},"".concat(j,"-list"),!0),F(n,"".concat(j,"-list-").concat(r),!0),F(n,"".concat(j,"-list-rtl"),"rtl"===I),n)),z=rt(f.map((function(e){return{key:e.uid,file:e}}))),B="picture-card"===r?"animate-inline":"animate",H={motionDeadline:2e3,motionName:"".concat(j,"-").concat(B),keys:z,motionAppear:k};return"picture-card"!==r&&(H=D(D({},J4),H)),y.createElement("div",{className:R},y.createElement(Qe,D({},H,{component:!1}),(function(e){var t=e.key,n=e.file,i=e.className,o=e.style;return y.createElement(K4,{key:t,locale:l,prefixCls:j,className:i,style:o,file:n,items:f,progress:w,listType:r,isImgUrl:u,showPreviewIcon:p,showRemoveIcon:g,showDownloadIcon:m,removeIcon:v,downloadIcon:b,iconRender:L,actionIconRender:A,itemRender:x,onPreview:T,onDownload:M,onClose:O})})),_&&y.createElement(et,H,(function(e){var t=e.className,n=e.style;return lB(_,(function(e){return{className:Y()(e.className,t),style:D(D({},n),e.style)}}))})))},Z4=y.forwardRef(X4);Z4.displayName="UploadList",Z4.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:function(e){return new Promise((function(t){if(e.type&&m4(e.type)){var n=document.createElement("canvas");n.width=v4,n.height=v4,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(v4,"px; height: ").concat(v4,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var r=n.getContext("2d"),i=new Image;i.onload=function(){var e=i.width,o=i.height,a=v4,s=v4,l=0,c=0;e>o?c=-((s=o*(v4/e))-a)/2:l=-((a=e*(v4/o))-s)/2,r.drawImage(i,l,c,a,s);var u=n.toDataURL();document.body.removeChild(n),t(u)},i.src=window.URL.createObjectURL(e)}else t("")}))},isImageUrl:function(e){if(e.type&&!e.thumbUrl)return m4(e.type);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}};var Q4=Z4,e5=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},t5="__LIST_IGNORE_".concat(Date.now(),"__"),n5=function(e,t){var n,r=e.fileList,i=e.defaultFileList,o=e.onRemove,a=e.showUploadList,s=e.listType,l=e.onPreview,c=e.onDownload,u=e.onChange,d=e.onDrop,h=e.previewFile,f=e.disabled,p=e.locale,g=e.iconRender,m=e.isImageUrl,b=e.progress,w=e.prefixCls,_=e.className,x=e.type,E=e.children,C=e.style,k=e.itemRender,S=e.maxCount,T=oe(C$(i||[],{value:r,postState:function(e){return null!=e?e:[]}}),2),M=T[0],O=T[1],L=oe(y.useState("drop"),2),A=L[0],N=L[1],P=y.useRef();y.useEffect((function(){fi("fileList"in e||!("value"in e),"Upload","`value` is not a valid prop, do you mean `fileList`?"),fi(!("transformFile"in e),"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly.")}),[]),y.useMemo((function(){var e=Date.now();(r||[]).forEach((function(t,n){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(n,"__"))}))}),[r]);var I=function(e,t,n){var r=rt(t);1===S?r=r.slice(-1):S&&(r=r.slice(0,S)),O(r);var i={file:e,fileList:r};n&&(i.event=n),null==u||u(i)},j=function(e){var t=e.filter((function(e){return!e.file[t5]}));if(t.length){var n=t.map((function(e){return f4(e.file)})),r=rt(M);n.forEach((function(e){r=p4(e,r)})),n.forEach((function(e,n){var i=e;if(t[n].parsedFile)e.status="uploading";else{var o,a=e.originFileObj;try{o=new File([a],a.name,{type:a.type})}catch(e){(o=new Blob([a],{type:a.type})).name=a.name,o.lastModifiedDate=new Date,o.lastModified=(new Date).getTime()}o.uid=e.uid,i=o}I(i,r)}))}},R=function(e,t,n){try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(g4(t,M)){var r=f4(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;var i=p4(r,M);I(r,i)}},z=function(e,t){if(g4(t,M)){var n=f4(t);n.status="uploading",n.percent=e.percent;var r=p4(n,M);I(n,r,e)}},B=function(e,t,n){if(g4(n,M)){var r=f4(n);r.error=e,r.response=t,r.status="error";var i=p4(r,M);I(r,i)}},H=function(e){var t;Promise.resolve("function"==typeof o?o(e):o).then((function(n){var r;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,M);i&&(t=D(D({},e),{status:"removed"}),null==M||M.forEach((function(e){var n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")})),null===(r=P.current)||void 0===r||r.abort(t),I(t,i))}}))},q=function(e){N(e.type),"drop"===e.type&&(null==d||d(e))};y.useImperativeHandle(t,(function(){return{onBatchStart:j,onSuccess:R,onProgress:z,onError:B,fileList:M,upload:P.current}}));var U=y.useContext(Bn),V=U.getPrefixCls,W=U.direction,G=V("upload",w),$=D(D({onBatchStart:j,onError:B,onProgress:z,onSuccess:R},e),{prefixCls:G,beforeUpload:function(t,n){return e5(void 0,void 0,void 0,v().mark((function r(){var i,o,a,s;return v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=e.beforeUpload,o=e.transformFile,a=t,!i){r.next=13;break}return r.next=5,i(t,n);case 5:if(!1!==(s=r.sent)){r.next=8;break}return r.abrupt("return",!1);case 8:if(delete t[t5],s!==t5){r.next=12;break}return Object.defineProperty(t,t5,{value:!0,configurable:!0}),r.abrupt("return",!1);case 12:"object"===X(s)&&s&&(a=s);case 13:if(!o){r.next=17;break}return r.next=16,o(a);case 16:a=r.sent;case 17:return r.abrupt("return",a);case 18:case"end":return r.stop()}}),r)})))},onChange:void 0});delete $.className,delete $.style,E&&!f||delete $.id;var K=function(e){return a?y.createElement(Dn,{componentName:"Upload",defaultLocale:On.Upload},(function(t){var n="boolean"==typeof a?{}:a,r=n.showRemoveIcon,i=n.showPreviewIcon,o=n.showDownloadIcon,u=n.removeIcon,d=n.downloadIcon;return y.createElement(Q4,{listType:s,items:M,previewFile:h,onPreview:l,onDownload:c,onRemove:H,showRemoveIcon:!f&&r,showPreviewIcon:i,showDownloadIcon:o,removeIcon:u,downloadIcon:d,iconRender:g,locale:D(D({},t),p),isImageUrl:m,progress:b,appendAction:e,itemRender:k})})):e};if("drag"===x){var J,Z=Y()(G,(F(J={},"".concat(G,"-drag"),!0),F(J,"".concat(G,"-drag-uploading"),M.some((function(e){return"uploading"===e.status}))),F(J,"".concat(G,"-drag-hover"),"dragover"===A),F(J,"".concat(G,"-disabled"),f),F(J,"".concat(G,"-rtl"),"rtl"===W),J),_);return y.createElement("span",null,y.createElement("div",{className:Z,onDrop:q,onDragOver:q,onDragLeave:q,style:C},y.createElement(Q6,D({},$,{ref:P,className:"".concat(G,"-btn")}),y.createElement("div",{className:"".concat(G,"-drag-container")},E))),K())}var Q=Y()(G,(F(n={},"".concat(G,"-select"),!0),F(n,"".concat(G,"-select-").concat(s),!0),F(n,"".concat(G,"-disabled"),f),F(n,"".concat(G,"-rtl"),"rtl"===W),n)),ee=y.createElement("div",{className:Q,style:E?void 0:{display:"none"}},y.createElement(Q6,D({},$,{ref:P})));return"picture-card"===s?y.createElement("span",{className:Y()("".concat(G,"-picture-card-wrapper"),_)},K(ee)):y.createElement("span",{className:_},ee,K())},r5=y.forwardRef(n5);r5.Dragger=r4,r5.LIST_IGNORE=t5,r5.displayName="Upload",r5.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var i5=r5;i5.Dragger=r4;var o5=i5,a5={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=a5.F1&&t<=a5.F12)return!1;switch(t){case a5.ALT:case a5.CAPS_LOCK:case a5.CONTEXT_MENU:case a5.CTRL:case a5.DOWN:case a5.END:case a5.ESC:case a5.HOME:case a5.INSERT:case a5.LEFT:case a5.MAC_FF_META:case a5.META:case a5.NUMLOCK:case a5.NUM_CENTER:case a5.PAGE_DOWN:case a5.PAGE_UP:case a5.PAUSE:case a5.PRINT_SCREEN:case a5.RIGHT:case a5.SHIFT:case a5.UP:case a5.WIN_KEY:case a5.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=a5.ZERO&&e<=a5.NINE)return!0;if(e>=a5.NUM_ZERO&&e<=a5.NUM_MULTIPLY)return!0;if(e>=a5.A&&e<=a5.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case a5.SPACE:case a5.QUESTION_MARK:case a5.NUM_PLUS:case a5.NUM_MINUS:case a5.NUM_PERIOD:case a5.NUM_DIVISION:case a5.SEMICOLON:case a5.DASH:case a5.EQUALS:case a5.COMMA:case a5.PERIOD:case a5.SLASH:case a5.APOSTROPHE:case a5.SINGLE_QUOTE:case a5.OPEN_SQUARE_BRACKET:case a5.BACKSLASH:case a5.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},s5=a5,l5=void 0,c5=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},u5=y.forwardRef((function(e,t){var n=oe(C$(!1,{value:e.visible,defaultValue:e.defaultVisible}),2),r=n[0],i=n[1],o=function(t,n){var r;i(t),null===(r=e.onVisibleChange)||void 0===r||r.call(e,t,n)},a=function(t){var n;o(!1,t),null===(n=e.onConfirm)||void 0===n||n.call(l5,t)},s=function(t){var n;o(!1,t),null===(n=e.onCancel)||void 0===n||n.call(l5,t)},l=y.useContext(Bn).getPrefixCls,c=e.prefixCls,u=e.placement,d=e.children,h=e.overlayClassName,f=c5(e,["prefixCls","placement","children","overlayClassName"]),p=l("popover",c),g=l("popconfirm",c),m=Y()(g,h),v=y.createElement(Dn,{componentName:"Popconfirm",defaultLocale:On.Popconfirm},(function(t){return function(t,n){var r=e.okButtonProps,i=e.cancelButtonProps,o=e.title,l=e.cancelText,c=e.okText,u=e.okType,d=e.icon;return y.createElement("div",{className:"".concat(t,"-inner-content")},y.createElement("div",{className:"".concat(t,"-message")},d,y.createElement("div",{className:"".concat(t,"-message-title")},q$(o))),y.createElement("div",{className:"".concat(t,"-buttons")},y.createElement(EB,D({onClick:s,size:"small"},i),l||n.cancelText),y.createElement(EB,D({onClick:a},wB(u),{size:"small"},r),c||n.okText)))}(p,t)})),b=l();return y.createElement(P$,D({},f,{prefixCls:p,placement:u,onVisibleChange:function(t){e.disabled||o(t)},visible:r,overlay:v,overlayClassName:m,ref:t,transitionName:OB(b,"zoom-big",e.transitionName)}),lB(d,{onKeyDown:function(e){var t,n;y.isValidElement(d)&&(null===(n=null==d?void 0:(t=d.props).onKeyDown)||void 0===n||n.call(t,e)),function(e){e.keyCode===s5.ESC&&r&&o(!1,e)}(e)}}))}));u5.defaultProps={placement:"top",trigger:"click",okType:"primary",icon:y.createElement(gn,null),disabled:!1};var d5=u5,h5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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 00-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"}}]},name:"upload",theme:"outlined"},f5=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:h5}))};f5.displayName="UploadOutlined";var p5=y.forwardRef(f5),g5="Schema__Ea5CF",m5={name:y.createElement(z$,{id:"sql.schema.name",defaultMessage:"name"}),operation:y.createElement(z$,{id:"sql.schema.operation",defaultMessage:"operation"}),upload:y.createElement(z$,{id:"sql.schema.upload",defaultMessage:"upload"}),delete:y.createElement(z$,{id:"sql.schema.delete",defaultMessage:"delete"}),confirm:function(e){return y.createElement(z$,{id:"sql.schema.delete.confirm",defaultMessage:"Are you sure to delete `{name}` ?",values:{name:e}})}},v5=y.memo((function(e){var t=gm((function(e){return e.user.schema.visible})),n=gm((function(e){return e.user.schema.loading})),r=gm((function(e){return e.user.schema.list[ay(e.user.schema.dbvendor)]||[]})),i=gm((function(e){return e.user.schema.dbvendor})),o=gm((function(e){return e.license.vendor.list})),a=fm(function(){var e=g()(v().mark((function e(t){var n,r,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=jF.user.schema.dbvendor,r=t.fileList.map((function(e){return e.originFileObj}))[0],!jF.user.schema.loading){e.next=4;break}return e.abrupt("return");case 4:if(n){e.next=7;break}return _o.error("please select a dbvendor"),e.abrupt("return");case 7:return e.prev=7,IF.user.schema.loading.start(),e.next=11,Tq.schema.submit({dbvendor:n,sqlfiles:r});case 11:if(200!==(i=e.sent).code){e.next=18;break}return _o.success("upload file success"),e.next=16,RU.user.schema.getList();case 16:e.next=19;break;case 18:throw new Error(i.error||i.message||"upload file fail");case 19:e.next=25;break;case 21:throw e.prev=21,e.t0=e.catch(7),_o.error(e.t0.message),e.t0;case 25:return e.prev=25,IF.user.schema.loading.stop(),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[7,21,25,28]])})));return function(t){return e.apply(this,arguments)}}()),s=fm((function(e){IF.user.schema.dbvendor.set(oy(e))})),l=function(){var e=g()(v().mark((function e(t){var n;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,IF.user.schema.loading.start(),n=jF.user.schema.dbvendor,e.next=5,Tq.schema.delete({dbvendor:n,fileName:t.name});case 5:if(200!==e.sent.code){e.next=12;break}return _o.success('delete file "'.concat(t.name,'" success !')),e.next=10,RU.user.schema.getList();case 10:e.next=13;break;case 12:throw new Error('delete file "'.concat(t.name,'" fail !'));case 13:e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(0),_o.error(e.t0.message),e.t0;case 19:return e.prev=19,IF.user.schema.loading.stop(),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[0,15,19,22]])})));return function(t){return e.apply(this,arguments)}}(),c=[{title:m5.name,dataIndex:"name"},{title:m5.operation,width:85,render:function(e,t){return y.createElement(d5,{title:m5.confirm(t.name),onConfirm:function(){return l(t)}},y.createElement("a",null,m5.delete))}}];return y.createElement(ZB,{title:"Schema of SQL",visible:t,width:450,footer:null,onCancel:IF.user.schema.hide},y.createElement(NW,{spinning:n,size:"large"},y.createElement("div",{className:g5},y.createElement(GU,{x:"end"},y.createElement(QX,{showSearch:!0,style:{width:290,marginRight:20},value:ay(i),listHeight:400,onChange:s},o.map((function(e){return y.createElement(QX.Option,{disabled:!e.license,key:e.name,value:e.name},e.name)}))),y.createElement(o5,{beforeUpload:function(){return!1},onChange:a,showUploadList:!1},y.createElement(EB,{type:"primary",icon:y.createElement(p5,null)},m5.upload))),y.createElement("div",{className:"list",style:{height:450}},y.createElement(r2,{rowKey:"name",dataSource:r,bordered:!0,columns:c,size:"small",scroll:{y:400},pagination:!1})))))})),y5="SQL__kFwMJ",b5=y.memo((function(e){var t=gm((function(e){return e.sql.width})),n=gm((function(e){return e.toolbar.sql})),r=fm((function(e){Xp&&window.setWidth2(e)}));return n?y.createElement(JU,{width:t,minWidth:620,onWidthChange:IF.sql.width.set,onWidthResize:r},y.createElement(KU,{className:y5},Xp?null:y.createElement(z6,null),y.createElement(B6,null),y.createElement(v5,null))):null})),w5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"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"}}]},name:"copy",theme:"outlined"},_5=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:w5}))};_5.displayName="CopyOutlined";var x5=y.forwardRef(_5),E5={Type:"Type__wufRH"},C5=y.memo((function(e){var t,n=gm((function(e){var t;return(null===(t=e.sqlflow.current)||void 0===t?void 0:t.selector.graphIds)||[]})),r=ky(null===(t=jF.sqlflow.current)||void 0===t?void 0:t.graph).findByIds(n),i=gm((function(e){var t;return(null===(t=e.sqlflow.current)||void 0===t?void 0:t.selector.width)||300})),o=gm((function(e){var t,n,r;return null===(t=ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.graph).findById(null===(r=e.sqlflow.current)||void 0===r?void 0:r.selector.current))||void 0===t?void 0:t.title})),a=gm((function(e){var t;return(null===(t=e.sqlflow.current)||void 0===t?void 0:t.visualize.type)===yg.displayMetadataQueryGraph})),s=fm((function(e,t){var n,r=t.key;IF.sqlflow.selector.current.set(r);var i=ky(null===(n=jF.sqlflow.current)||void 0===n?void 0:n.graph).findById(r);i&&RU.graph.locate(i)})),l=fm((function(){IF.sqlflow.selector.current.clear(),IF.sqlflow.current.locate.clear()})),c=fm((function(){if(o)try{j$()(o),_o.success("copy success !")}catch(e){_o.error("copy fail "+e.message)}}));return y.createElement(GU,{y:"center",className:E5.Selector},y.createElement(QX,{style:{width:i},value:o,listHeight:380,showSearch:!0,allowClear:!0,placeholder:"select to locate",autoFocus:!1,onSelect:s,onClear:l,disabled:a},r.map((function(e){return y.createElement(QX.Option,{key:e.id,value:e.title},y.createElement(GU,{y:"center",x:"between",className:E5.Type},y.createElement("span",null,e.title),y.createElement("div",{className:e.type},e.type)))}))),y.createElement(P$,{placement:"top",title:"copy"},y.createElement(EB,{icon:y.createElement(x5,null),onClick:c})))})),k5={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=k5.F1&&t<=k5.F12)return!1;switch(t){case k5.ALT:case k5.CAPS_LOCK:case k5.CONTEXT_MENU:case k5.CTRL:case k5.DOWN:case k5.END:case k5.ESC:case k5.HOME:case k5.INSERT:case k5.LEFT:case k5.MAC_FF_META:case k5.META:case k5.NUMLOCK:case k5.NUM_CENTER:case k5.PAGE_DOWN:case k5.PAGE_UP:case k5.PAUSE:case k5.PRINT_SCREEN:case k5.RIGHT:case k5.SHIFT:case k5.UP:case k5.WIN_KEY:case k5.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=k5.ZERO&&e<=k5.NINE)return!0;if(e>=k5.NUM_ZERO&&e<=k5.NUM_MULTIPLY)return!0;if(e>=k5.A&&e<=k5.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case k5.SPACE:case k5.QUESTION_MARK:case k5.NUM_PLUS:case k5.NUM_MINUS:case k5.NUM_PERIOD:case k5.NUM_DIVISION:case k5.SEMICOLON:case k5.DASH:case k5.EQUALS:case k5.COMMA:case k5.PERIOD:case k5.SLASH:case k5.APOSTROPHE:case k5.SINGLE_QUOTE:case k5.OPEN_SQUARE_BRACKET:case k5.BACKSLASH:case k5.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},S5=k5;function T5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){!function(e,t){"function"==typeof e?e(t):"object"===X(e)&&e&&"current"in e&&(e.current=t)}(t,e)}))}}function M5(){return"function"==typeof BigInt}function O5(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";"0"===o&&"0"===a&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function L5(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function A5(e){var t=String(e);if(L5(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return(null==r?void 0:r[1])&&(n+=r[1].length),n}return t.includes(".")&&N5(t)?t.length-t.indexOf(".")-1:0}function D5(e){var t=String(e);if(L5(e)){if(e>Number.MAX_SAFE_INTEGER)return String(M5()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(M5()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(A5(t))}return O5(t).fullStr}function N5(e){return"number"==typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var P5=function(){function e(t){V(this,e),this.origin="",(t||0===t)&&String(t).trim()?(this.origin=String(t),this.number=Number(t)):this.empty=!0}return G(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=Number(t);if(Number.isNaN(n))return this;var r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(A5(this.number),A5(n));return new e(r.toFixed(i))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null==e?void 0:e.toNumber())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":D5(this.number):this.origin}}]),e}(),I5=function(){function e(t){if(V(this,e),this.origin="",(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(L5(n)&&(n=Number(n)),N5(n="string"==typeof n?n:D5(n))){var r=O5(n);this.negative=r.negative;var i=r.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return G(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=O5((this.alignDecimal(r)+n.alignDecimal(r)).toString()),o=i.negativeStr,a=i.trimStr,s="".concat(o).concat(a.padStart(r+1,"0"));return new e("".concat(s.slice(0,-r),".").concat(s.slice(-r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null==e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){return!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":O5("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function j5(e){return M5()?new I5(e):new P5(e)}function R5(e,t,n){if(""===e)return"";var r=O5(e),i=r.negativeStr,o=r.integerStr,a=r.decimalStr,s="".concat(t).concat(a),l="".concat(i).concat(o);if(n>=0){var c=Number(a[n]);return c>=5?R5(j5(e).add("0.".concat("0".repeat(n)).concat(10-c)).toString(),t,n):0===n?l:"".concat(l).concat(t).concat(a.padEnd(n,"0").slice(0,n))}return".0"===s?l:"".concat(l).concat(s)}function F5(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=y.useRef(),l=y.useRef();l.current=a;var c=function(e,t){e.preventDefault(),l.current(t),s.current=setTimeout((function e(){l.current(t),s.current=setTimeout(e,200)}),600)},u=function(){clearTimeout(s.current)};if(y.useEffect((function(){return u}),[]),function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(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(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}())return null;var d="".concat(t,"-handler"),h=Y()(d,"".concat(d,"-up"),F({},"".concat(d,"-up-disabled"),i)),f=Y()(d,"".concat(d,"-down"),F({},"".concat(d,"-down-disabled"),o)),p={unselectable:"on",role:"button",onMouseUp:u,onMouseLeave:u};return y.createElement("div",{className:"".concat(d,"-wrap")},y.createElement("span",D({},p,{onMouseDown:function(e){c(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:h}),n||y.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),y.createElement("span",D({},p,{onMouseDown:function(e){c(e,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:f}),r||y.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var z5={};function Y5(e,t){0}function B5(e,t,n){t||z5[n]||(e(!1,n),z5[n]=!0)}var H5=function(e,t){B5(Y5,e,t)};var q5="undefined"!=typeof window&&window.document&&window.document.createElement?y.useLayoutEffect:y.useEffect;function U5(e,t){var n=y.useRef(!1);q5((function(){if(n.current)return e();n.current=!0}),t)}var V5=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},W5=function(e){var t=j5(e);return t.isInvalidate()?null:t},G5=y.forwardRef((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-input-number":r,o=e.className,a=e.style,s=e.min,l=e.max,c=e.step,u=void 0===c?1:c,d=e.defaultValue,h=e.value,f=e.disabled,p=e.readOnly,g=e.upHandler,m=e.downHandler,v=e.keyboard,b=e.stringMode,w=e.parser,_=e.formatter,x=e.precision,E=e.decimalSeparator,C=e.onChange,k=e.onInput,S=e.onPressEnter,T=e.onStep,M=H(e,["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"]),O="".concat(i,"-input"),L=y.useRef(null),A=oe(y.useState(!1),2),N=A[0],P=A[1],I=y.useRef(!1),j=y.useRef(!1),R=oe(y.useState((function(){return j5(null!=h?h:d)})),2),z=R[0],B=R[1];var q=y.useCallback((function(e,t){if(!t)return x>=0?x:Math.max(A5(e),A5(u))}),[x,u]),U=y.useCallback((function(e){var t=String(e);if(w)return w(t);var n=t;return E&&(n=n.replace(E,".")),n.replace(/[^\w.-]+/g,"")}),[w,E]),V=y.useCallback((function(e,t){if(_)return _(e);var n="number"==typeof e?D5(e):e;if(!t){var r=q(n,t);if(N5(n)&&(E||r>=0))n=R5(n,E||".",r)}return n}),[_,q,E]),W=oe(y.useState((function(){var e=null!=d?d:h;return z.isInvalidate()&&["string","number"].includes(X(e))?Number.isNaN(e)?"":e:V(z.toString(),!1)})),2),G=W[0],$=W[1];function K(e,t){$(V(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}var J,Z,Q,ee=y.useMemo((function(){return W5(l)}),[l]),te=y.useMemo((function(){return W5(s)}),[s]),ne=y.useMemo((function(){return!(!ee||!z||z.isInvalidate())&&ee.lessEquals(z)}),[ee,z]),re=y.useMemo((function(){return!(!te||!z||z.isInvalidate())&&z.lessEquals(te)}),[te,z]),ie=(J=L.current,Z=N,Q=(0,y.useRef)(null),[function(){try{var e=J.selectionStart,t=J.selectionEnd,n=J.value,r=n.substring(0,e),i=n.substring(t);Q.current={start:e,end:t,value:n,beforeTxt:r,afterTxt:i}}catch(e){}},function(){if(J&&Q.current&&Z)try{var e=J.value,t=Q.current,n=t.beforeTxt,r=t.afterTxt,i=t.start,o=e.length;if(e.endsWith(r))o=e.length-Q.current.afterTxt.length;else if(e.startsWith(n))o=n.length;else{var a=n[i-1],s=e.indexOf(a,i-1);-1!==s&&(o=s+1)}J.setSelectionRange(o,o)}catch(e){H5(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(e.message))}}]),ae=oe(ie,2),se=ae[0],le=ae[1],ce=function(e){return ee&&!e.lessEquals(ee)?ee:te&&!te.lessEquals(e)?te:null},ue=function(e){return!ce(e)},de=function(e,t){var n,r=e,i=ue(r)||r.isEmpty();if(r.isEmpty()||t||(r=ce(r)||r,i=!0),!p&&!f&&i){var o=r.toString(),a=q(o,t);return a>=0&&(r=j5(R5(o,".",a))),r.equals(z)||(n=r,void 0===h&&B(n),null==C||C(r.isEmpty()?null:V5(b,r)),void 0===h&&K(r,t)),r}return z},he=function(e){if(se(),$(e),!j.current){var t=j5(U(e));t.isNaN()||de(t,!0)}},fe=function(e){var t;if(!(e&&ne||!e&&re)){I.current=!1;var n=j5(u);e||(n=n.negate());var r=(z||j5(0)).add(n.toString()),i=de(r,!1);null==T||T(V5(b,i),{offset:u,type:e?"up":"down"}),null===(t=L.current)||void 0===t||t.focus()}},pe=function(e){var t=j5(U(G)),n=t;n=t.isNaN()?z:de(t,e),void 0!==h?K(z,!1):n.isNaN()||K(n,!1)};return U5((function(){z.isInvalidate()||K(z,!1)}),[x]),U5((function(){var e=j5(h);B(e),(e.isNaN()||!I.current||_)&&K(e,!1)}),[h]),U5((function(){_&&le()}),[G]),y.createElement("div",{className:Y()(i,o,(n={},F(n,"".concat(i,"-focused"),N),F(n,"".concat(i,"-disabled"),f),F(n,"".concat(i,"-readonly"),p),F(n,"".concat(i,"-not-a-number"),z.isNaN()),F(n,"".concat(i,"-out-of-range"),!z.isInvalidate()&&!ue(z)),n)),style:a,onFocus:function(){P(!0)},onBlur:function(){pe(!1),P(!1),I.current=!1},onKeyDown:function(e){var t=e.which;I.current=!0,t===S5.ENTER&&(j.current||(I.current=!1),pe(!0),null==S||S(e)),!1!==v&&!j.current&&[S5.UP,S5.DOWN].includes(t)&&(fe(S5.UP===t),e.preventDefault())},onKeyUp:function(){I.current=!1},onCompositionStart:function(){j.current=!0},onCompositionEnd:function(){j.current=!1,he(L.current.value)}},y.createElement(F5,{prefixCls:i,upNode:g,downNode:m,upDisabled:ne,downDisabled:re,onStep:fe}),y.createElement("div",{className:"".concat(O,"-wrap")},y.createElement("input",D({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":z.isInvalidate()?null:z.toString(),step:u},M,{ref:T5(L,t),className:O,value:G,onChange:function(e){var t=e.target.value;w||(t=t.replace(/。/g,".")),he(t),null==k||k(t)},disabled:f,readOnly:p}))))}));G5.displayName="InputNumber";var $5=G5,K5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 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"}}]},name:"up",theme:"outlined"},J5=function(e,t){return y.createElement(un,U(U({},e),{},{ref:t,icon:K5}))};J5.displayName="UpOutlined";var X5=y.forwardRef(J5),Z5=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},Q5=y.forwardRef((function(e,t){var n,r=y.useContext(Bn),i=r.getPrefixCls,o=r.direction,a=y.useContext(_i),s=e.className,l=e.size,c=e.prefixCls,u=e.bordered,d=void 0===u||u,h=e.readOnly,f=Z5(e,["className","size","prefixCls","bordered","readOnly"]),p=i("input-number",c),g=y.createElement(X5,{className:"".concat(p,"-handler-up-inner")}),m=y.createElement(HX,{className:"".concat(p,"-handler-down-inner")}),v=l||a,b=Y()((F(n={},"".concat(p,"-lg"),"large"===v),F(n,"".concat(p,"-sm"),"small"===v),F(n,"".concat(p,"-rtl"),"rtl"===o),F(n,"".concat(p,"-readonly"),h),F(n,"".concat(p,"-borderless"),!d),n),s);return y.createElement($5,D({ref:t,className:b,upHandler:g,downHandler:m,prefixCls:p,readOnly:h},f))})),e8=Q5;var t8=y.forwardRef((function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,d=e.unCheckedChildren,h=e.onClick,f=e.onChange,p=e.onKeyDown,g=H(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),m=function(e,t){var n=t||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=oe(y.useState((function(){return void 0!==i?i:void 0!==r?"function"==typeof r?r():r:"function"==typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==i?i:l;a&&(u=a(u));var d=y.useRef(!0);return y.useEffect((function(){d.current?d.current=!1:void 0===i&&c(i)}),[i]),[u,function(e){c(e),u!==e&&o&&o(e,u)}]}(!1,{value:a,defaultValue:s}),v=oe(m,2),b=v[0],w=v[1];function _(e,t){var n=b;return l||(w(n=e),null==f||f(n,t)),n}var x=Y()(i,o,(F(n={},"".concat(i,"-checked"),b),F(n,"".concat(i,"-disabled"),l),n));return y.createElement("button",Object.assign({},g,{type:"button",role:"switch","aria-checked":b,disabled:l,className:x,ref:t,onKeyDown:function(e){e.which===_Y.LEFT?_(!1,e):e.which===_Y.RIGHT&&_(!0,e),null==p||p(e)},onClick:function(e){var t=_(!b,e);null==h||h(t,e)}}),c,y.createElement("span",{className:"".concat(i,"-inner")},b?u:d))}));t8.displayName="Switch";var n8=t8,r8=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},i8=y.forwardRef((function(e,t){var n,r=e.prefixCls,i=e.size,o=e.loading,a=e.className,s=void 0===a?"":a,l=e.disabled,c=r8(e,["prefixCls","size","loading","className","disabled"]);fi("checked"in c||!("value"in c),"Switch","`value` is not a valid prop, do you mean `checked`?");var u=y.useContext(Bn),d=u.getPrefixCls,h=u.direction,f=y.useContext(_i),p=d("switch",r),g=y.createElement("div",{className:"".concat(p,"-handle")},o&&y.createElement(hn,{className:"".concat(p,"-loading-icon")})),m=Y()((F(n={},"".concat(p,"-small"),"small"===(i||f)),F(n,"".concat(p,"-loading"),o),F(n,"".concat(p,"-rtl"),"rtl"===h),n),s);return y.createElement(uB,{insertExtraNode:!0},y.createElement(n8,D({},c,{prefixCls:p,className:m,disabled:l||o,ref:t,loadingIcon:g})))}));i8.__ANT_SWITCH=!0,i8.displayName="Switch";var o8=i8,a8=function(e){K(n,e);var t=ee(n);function n(){var e;return V(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return G(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var e=this.props,t=e.message,n=e.description,r=e.children,i=this.state,o=i.error,a=i.info,s=a&&a.componentStack?a.componentStack:null,l=void 0===t?(o||"").toString():t,c=void 0===n?s:n;return o?y.createElement(d8,{type:"error",message:l,description:y.createElement("pre",null,c)}):r}}]),n}(y.Component),s8=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},l8={success:_n,info:Cn,error:yn,warning:gn},c8={success:Ti,info:ji,error:Li,warning:Ni},u8=function(e){var t,n=e.description,r=e.prefixCls,i=e.message,o=e.banner,a=e.className,s=void 0===a?"":a,l=e.style,c=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,h=e.afterClose,f=e.showIcon,p=e.closable,g=e.closeText,m=e.action,v=s8(e,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","action"]),b=oe(y.useState(!1),2),w=b[0],_=b[1],x=y.useRef(),E=y.useContext(Bn),C=E.getPrefixCls,k=E.direction,S=C("alert",r),T=function(e){var t;_(!0),null===(t=v.onClose)||void 0===t||t.call(v,e)},M=!!g||p,O=function(){var e=v.type;return void 0!==e?e:o?"warning":"info"}(),L=!(!o||void 0!==f)||f,A=Y()(S,"".concat(S,"-").concat(O),(F(t={},"".concat(S,"-with-description"),!!n),F(t,"".concat(S,"-no-icon"),!L),F(t,"".concat(S,"-banner"),!!o),F(t,"".concat(S,"-rtl"),"rtl"===k),t),s),N=X0(v);return y.createElement(et,{visible:!w,motionName:"".concat(S,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(e){return{maxHeight:e.offsetHeight}},onLeaveEnd:h},(function(e){var t,r,o=e.className,a=e.style;return y.createElement("div",D({ref:x,"data-show":!w,className:Y()(A,o),style:D(D({},l),a),onMouseEnter:c,onMouseLeave:u,onClick:d,role:"alert"},N),L?(t=v.icon,r=(n?c8:l8)[O]||null,t?sB(t,y.createElement("span",{className:"".concat(S,"-icon")},t),(function(){return{className:Y()("".concat(S,"-icon"),F({},t.props.className,t.props.className))}})):y.createElement(r,{className:"".concat(S,"-icon")})):null,y.createElement("div",{className:"".concat(S,"-content")},y.createElement("div",{className:"".concat(S,"-message")},i),y.createElement("div",{className:"".concat(S,"-description")},n)),m?y.createElement("div",{className:"".concat(S,"-action")},m):null,M?y.createElement("button",{type:"button",onClick:T,className:"".concat(S,"-close-icon"),tabIndex:0},g?y.createElement("span",{className:"".concat(S,"-close-text")},g):y.createElement(Ci,null)):null)}))};u8.ErrorBoundary=a8;var d8=u8,h8={dataflow:y.createElement(z$,{id:"sqlflow.visualize.setting.dataflow",defaultMessage:"direct dataflow"}),impact:y.createElement(z$,{id:"sqlflow.visualize.setting.impact",defaultMessage:"indirect dataflow"}),aggregate:y.createElement(z$,{id:"sqlflow.visualize.setting.aggregate",defaultMessage:"args in count function"}),recordset:y.createElement(z$,{id:"sqlflow.visualize.setting.recordset",defaultMessage:"show intermediate recordset"}),function:y.createElement(z$,{id:"sqlflow.visualize.setting.function",defaultMessage:"show function"})},f8="Setting__ys7u6",p8=y.memo((function(e){var t=gm((function(e){return e.loading.spinning})),n=gm((function(e){return Boolean(e.sqlflow.visualize.job)})),r=gm((function(e){return e.sqlflow.visualize.setting})),i=!r.ignoreRecordSet,o=!r.ignoreFunction,a=r.defaultDistance,s=gm((function(e){return e.sqlflow.visualize.mode===wg.query})),l=r.showConstant,c=r.showTransform,u=r.dataflowOfAggregateFunction,d=r.dataflow,h=r.impact;if(n){var f=jF.sqlflow.visualize.job;f&&(o=!f.ignoreFunction,i=!f.ignoreRecordSet,l=f.showConstantTable,c=f.showTransform,u=f.treatArgumentsInCountFunctionAsDirectDataflow,d=f.showRelationType.indexOf("fdd")>-1,h=f.showRelationType.indexOf("fdr")>-1)}var p=fm((function(e){RU.sqlflow.setting.dataflow.set(e)})),g=fm((function(e){RU.sqlflow.setting.impact.set(e)})),m=fm((function(e){RU.sqlflow.setting.dataflowOfAggregateFunction.set(e)})),v=fm((function(e){RU.sqlflow.setting.ignoreRecordSet.set(!e)})),b=fm((function(e){RU.sqlflow.setting.ignoreFunction.set(!e)})),w=fm((function(e){null!==e&&null!=e&&RU.sqlflow.setting.defaultDistance.set(e)})),_=fm((function(e){RU.sqlflow.setting.showConstant.set(e)})),x=fm((function(e){RU.sqlflow.setting.showTransform.set(e)})),E=fm((function(){RU.user.saveUserSetting("save",jF.user.id,"querymode",null,JSON.stringify(jF.sqlflow.visualize.setting))})),C=fm((function(){IF.sqlflow.visualize.setting.ignoreFunction.set(!0),IF.sqlflow.visualize.setting.dataflow.set(!0),IF.sqlflow.visualize.setting.dataflowOfAggregateFunction.set(!0),IF.sqlflow.visualize.setting.ignoreRecordSet.set(!1),IF.sqlflow.visualize.setting.impact.set(!1),IF.sqlflow.visualize.setting.showTransform.set(!1),IF.sqlflow.visualize.setting.showConstant.set(!1),RU.sqlflow.visualize(),RU.user.saveUserSetting("reset",jF.user.id,"querymode",null,JSON.stringify(jF.sqlflow.visualize.setting))}));return y.createElement(KU,{className:f8},!s&&y.createElement("div",{className:"alert"},y.createElement(d8,{message:"setting is disabled on job",type:"info",showIcon:!0})),y.createElement("div",null,y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},h8.dataflow),y.createElement(P$,{placement:"right",title:dm.atLeastOne},y.createElement(Ni,null))),y.createElement(o8,{disabled:t||r.isJoin||n||!s,checked:d,onChange:p})),y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},h8.impact),y.createElement(P$,{placement:"right",title:dm.atLeastOne},y.createElement(Ni,null))),y.createElement(o8,{disabled:t||r.isJoin||n||!s,checked:h,onChange:g})),y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},h8.aggregate)),y.createElement(o8,{disabled:t||!s,checked:u,onChange:m,checkedChildren:"direct",unCheckedChildren:"indirect"})),y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},h8.recordset)),y.createElement(o8,{disabled:t||!s,checked:i,onChange:v,checkedChildren:"on",unCheckedChildren:"off"})),y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},h8.function)),y.createElement(o8,{disabled:t||!s,checked:o,onChange:b,checkedChildren:"on",unCheckedChildren:"off"})),y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},"show constant")),y.createElement(o8,{disabled:t||!s,checked:l,onChange:_,checkedChildren:"on",unCheckedChildren:"off"})),y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},"show transform")),y.createElement(o8,{disabled:t||!s,checked:c,onChange:x,checkedChildren:"on",unCheckedChildren:"off"})),y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},"default distance")),y.createElement(e8,{disabled:t||s,min:1,max:10,defaultValue:10,step:1,value:a,onKeyPress:function(e){-1!==["-","+","e",".","E"].indexOf(e.key)&&e.preventDefault()},onChange:w})),s&&y.createElement(y.Fragment,null,y.createElement("div",{className:"button"},y.createElement(EB,{type:"primary",onClick:E},"save"),y.createElement(EB,{className:"resetbutton",onClick:C},"reset")))))})),g8="SQLText__DctBP",m8=y.memo((function(e){var t=gm((function(e){return e.sqlflow.visualize.sqltext.value||""}));return y.createElement("div",{className:g8},y.createElement(FW,{value:t}))})),v8="Info__lJJWq",y8="Preview__jMSLV",b8="SQLText__Ud1mW",w8="Title__AskFF",_8={preview:y.createElement(z$,{id:"sqlflow.visualize.info.preview",defaultMessage:"preview"}),label:{dbvendor:y.createElement(z$,{id:"sqlflow.visualize.info.label.dbvendor",defaultMessage:"dbvendor"}),sqltext:y.createElement(z$,{id:"sqlflow.visualize.info.label.sqltext",defaultMessage:"sqltext"}),jobName:y.createElement(z$,{id:"sqlflow.visualize.info.label.jobName",defaultMessage:"jobName"}),jobId:y.createElement(z$,{id:"sqlflow.visualize.info.label.jobId",defaultMessage:"jobId"}),userEmail:y.createElement(z$,{id:"sqlflow.visualize.info.label.userEmail",defaultMessage:"userEmail"}),createTime:y.createElement(z$,{id:"sqlflow.visualize.info.label.createTime",defaultMessage:"createTime"}),executeTime:y.createElement(z$,{id:"sqlflow.visualize.info.label.executeTime",defaultMessage:"executeTime"})}},x8=y.memo((function(e){var t,n,r,i,o,a,s,l,c=gm((function(e){return e.sqlflow.visualize.sqltext.visible})),u=gm((function(e){var t;return(null===(t=e.sqlflow.current)||void 0===t?void 0:t.dbvendor)||""})),d=gm((function(e){return e.sqlflow.visualize.job})),h=fm((function(){IF.toolbar.sql.show(),IF.sqlflow.visualize.info.hide(),IF.sqlflow.visualize.sqltext.hide()})),f=fm((function(e){e?IF.sqlflow.visualize.sqltext.show():IF.sqlflow.visualize.sqltext.hide()}));return y.createElement(KU,{className:v8},y.createElement(Y2,{bordered:!0,size:"small",column:1},d?y.createElement(y.Fragment,null,y.createElement(Y2.Item,{label:_8.label.dbvendor},y.createElement("div",null,null==d||null===(t=d.dbVendor)||void 0===t?void 0:t.slice(3))),y.createElement(Y2.Item,{label:_8.label.jobName},y.createElement("div",null,d.jobName)),y.createElement(Y2.Item,{label:_8.label.jobId},y.createElement("div",null,d.jobId)),d.userEmail&&y.createElement(Y2.Item,{label:_8.label.userEmail},y.createElement("div",null,d.userEmail)),y.createElement(Y2.Item,{label:_8.label.createTime},y.createElement("div",null,d.createTime)),y.createElement(Y2.Item,{label:_8.label.executeTime},y.createElement("div",null,d.executeTime)),d.dataSource&&y.createElement(y.Fragment,null,y.createElement(Y2.Item,{label:"hostname"},null===(n=d.dataSource)||void 0===n?void 0:n.hostname),y.createElement(Y2.Item,{label:"port"},null===(r=d.dataSource)||void 0===r?void 0:r.port),y.createElement(Y2.Item,{label:"account"},null===(i=d.dataSource)||void 0===i?void 0:i.account),y.createElement(Y2.Item,{label:"extractedDbsSchemas"},null===(o=d.dataSource)||void 0===o?void 0:o.extractedDbsSchemas),y.createElement(Y2.Item,{label:"excludedDbsSchemas"},null===(a=d.dataSource)||void 0===a?void 0:a.excludedDbsSchemas),y.createElement(Y2.Item,{label:"extractedStoredProcedures"},null===(s=d.dataSource)||void 0===s?void 0:s.extractedStoredProcedures),y.createElement(Y2.Item,{label:"excludedDbsSchemas"},null===(l=d.dataSource)||void 0===l?void 0:l.excludedDbsSchemas))):y.createElement(y.Fragment,null,y.createElement(Y2.Item,{label:_8.label.dbvendor},y.createElement("div",null,u.slice(3))),y.createElement(Y2.Item,{label:_8.label.sqltext},y.createElement("div",{className:y8},y.createElement("a",null,_8.preview),y.createElement(W$,{overlayClassName:b8,placement:"rightTop",destroyTooltipOnHide:!0,visible:c,onVisibleChange:f,title:y.createElement(GU,{x:"between",className:w8},"sqltext ",y.createElement("a",{onClick:h},"view in sql editor")),content:y.createElement(m8,null)},y.createElement("div",{className:"hide"})))))))})),E8="Visualize__ML2kZ",C8="Title__h6Z5D",k8="jobName__Lycpt",S8={setting:y.createElement(z$,{id:"sqlflow.visualize.setting",defaultMessage:"setting"}),lineage:y.createElement(z$,{id:"sqlflow.visualize.lineage.overview",defaultMessage:"visualize lineage overview"}),info:y.createElement(z$,{id:"sqlflow.visualize.info.title",defaultMessage:"info"})},T8=y.memo((function(e){var t=gm((function(e){return e.sqlflow.visualize.info.visible})),n=mm(),r=gm((function(e){var t;return null===(t=e.sqlflow.visualize.job)||void 0===t?void 0:t.jobName}));null!=r&&null!=r&&r.length>20&&(r=r.substring(0,10)+"..."+r.substring(r.length-10,r.length));var i=fm((function(e){e?IF.sqlflow.visualize.info.show():IF.sqlflow.visualize.info.hide()})),o=fm((function(e){e.preventDefault(),e.stopPropagation()}));return n?null:Xp?y.createElement(GU,{y:"center",className:E8,style:{zIndex:Qg.sqlflow.visualize.zIndex},onContextMenu:o},y.createElement(C5,null)):y.createElement(GU,{y:"center",className:E8,style:{zIndex:Qg.sqlflow.visualize.zIndex},onContextMenu:o},y.createElement(W$,{placement:"bottom",title:y.createElement("span",{className:C8},S8.info),visible:t,onVisibleChange:i,content:y.createElement(x8,null),trigger:"click"},y.createElement("div",{className:"icon"},y.createElement(BU.Icon.Info,null))),y.createElement(W$,{placement:"bottom",title:y.createElement("div",{className:C8},S8.setting,y.createElement("span",{className:k8},r)),overlayStyle:{zIndex:Qg.sqlflow.visualize.setting.zIndex},content:y.createElement(p8,null),trigger:"click"},y.createElement("div",{className:"icon"},y.createElement(BU.Icon.Setting,null))),y.createElement(C5,null))})),M8="Map__xDz7B",O8="Preview__gLLIm",L8="Graph__YY83W",A8="View__xHt_S";function D8(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 N8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D8(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D8(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P8=y.memo((function(e){return gm((function(e){return e})),y.useEffect((function(){RU.sqlflow.map.update()})),y.useEffect((function(){return window.addEventListener("resize",RU.sqlflow.map.update),function(){return window.removeEventListener("resize",RU.sqlflow.map.update)}}),[]),null})),I8=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.map.visible})),n=fm((function(e){e.preventDefault(),e.stopPropagation()})),r=fm((function(e){RF.sqlflow.map=e})),i=N8(N8({},Qg.sqlflow.map),{},{zIndex:20});return t?y.createElement("div",{className:M8,style:i,ref:r,onContextMenu:n},y.createElement(P8,null),y.createElement(j8,null),y.createElement(F8,null)):null})),j8=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.graph})),n=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.canvas})),r=gm((function(e){var t;return null===(t=e.sqlflow.current)||void 0===t?void 0:t.scale.value})),i=gm((function(e){return e.tab.current===xg.sqlflow})),o=fm((function(e){RF.sqlflow.preview=e}));y.useEffect((function(){RU.sqlflow.preview.update()}),[n,r]),y.useEffect((function(){i&&RU.sqlflow.preview.update()}),[i]);var a={scale:{width:(null==n?void 0:n.width)||0,height:(null==n?void 0:n.height)||0,transform:"scale(".concat(r,")")}};return y.createElement("div",{className:O8,ref:o},y.createElement("div",{className:"scale",style:a.scale,ref:function(e){return RF.sqlflow.scale=e}},ky(t).map((function(e){return y.createElement(R8,{key:e.id,graph:e})}))))})),R8=y.memo((function(e){var t=e.graph,n={width:t.width.calculate,height:t.height.calculate,left:t.left.calculate,top:t.top.calculate};return t.visible?y.createElement("div",{className:L8,style:n}):null})),F8=y.memo((function(e){var t=fm((function(e){RF.sqlflow.view=e,e&&RU.sqlflow.view.subscribe(e)}));return y.createElement("div",{className:A8,ref:t},y.createElement(z8,null))})),z8=y.memo((function(e){return gm((function(e){return e})),y.useEffect((function(){RU.sqlflow.view.update()})),y.useEffect((function(){return window.addEventListener("resize",RU.sqlflow.view.update),function(){return window.removeEventListener("resize",RU.sqlflow.view.update)}}),[]),null})),Y8=y.memo((function(e){var t=gm((function(e){return Boolean(e.sqlflow.current)})),n=gm((function(e){return e.widget.component})),r=gm((function(e){return e.widget.width})),i=y.useRef({drag:null});pm("SQLFlow");var o=fm((function(e){e.preventDefault(),RU.graph.context.show({event:e,from:"blank"})})),a=fm((function(e){var t,n;if(RF.sqlflow.scroll=e,e){null===(t=i.current.drag)||void 0===t||t.unsubscribe();var r=zz(window,"mouseup"),o=zz(document.body,"mousemove"),a=zz(e,"mousedown");i.current.drag=a.pipe(Dq((function(t){if(0!==t.button)return Bz;RU.body.select.disable(),e.classList.add("moving"),r.pipe(Hz(1)).subscribe((function(){RU.body.select.enable(),e.classList.remove("moving")}));var n=e.scrollTop,i=e.scrollLeft;return o.pipe(Nq(r),Sz((function(r){var o=r.clientX-t.clientX,a=r.clientY-t.clientY;e.scrollLeft=i-o,e.scrollTop=n-a})))}))).subscribe((function(){})),null===(n=RF.sqlflow.scroll)||void 0===n||n.addEventListener("scroll",RU.sqlflow.view.update)}})),s={width:Xp?r:void 0};return y.createElement("div",{className:Q2},y.createElement(GU,{className:"body"},y.createElement(GU,{className:"main"},n.sqlEditor&&y.createElement(b5,null),y.createElement("div",{className:Y()(X2,Z2),ref:function(e){return RF.sqlflow.container=e}},y.createElement("div",{className:"scroll",style:s,ref:a,onContextMenu:o},n.graphLocate&&y.createElement(T8,null),t?y.createElement(y.Fragment,null,y.createElement(U2,null),y.createElement(M2,null)):y.createElement(E2,null)),y.createElement(L2,null),y.createElement(G2,null),n.minimap&&y.createElement(I8,null),y.createElement(O6,null),y.createElement(J2,null)))))})),B8="Loading__SE7Mk",H8=y.memo((function(e){return gm((function(e){return e.loading.lineage.spinning}))?y.createElement(GU,{className:B8,style:{zIndex:Qg.lineage.loading.zIndex},x:"center",y:"center"},y.createElement(NW,{spinning:!0,size:"large"})):null})),q8={Process:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1028 1024",version:"1.1"},y.createElement("path",{d:"M965.427 541.836C955.039 339.606 811.004 169.47 615.45 124.45c-13.491-3.106-26.946 5.313-30.052 18.804-3.105 13.491 5.313 26.946 18.805 30.052 173.819 40.015 301.922 191.333 311.156 371.102 0.71 13.826 12.494 24.458 26.32 23.748 13.826-0.71 24.458-12.494 23.748-26.32zM386.693 130.952C195.198 186.776 61.06 362.948 61.06 565.41c0 44.105 6.318 87.392 18.627 128.886 3.937 13.272 17.888 20.84 31.16 16.902 13.273-3.937 20.84-17.888 16.903-31.16-10.94-36.878-16.557-75.363-16.557-114.628 0-180.028 119.29-336.699 289.531-386.327 13.29-3.874 20.924-17.79 17.05-31.08-3.875-13.29-17.79-20.924-31.08-17.05zM196.357 888.108c84.056 82.629 196.93 129.786 317.188 129.786 129.776 0 250.76-54.963 336.013-149.431 9.275-10.278 8.462-26.128-1.816-35.403-10.277-9.275-26.128-8.462-35.403 1.815-75.844 84.042-183.357 132.886-298.794 132.886-106.976 0-207.271-41.902-282.043-115.405-9.873-9.705-25.744-9.57-35.449 0.303-9.705 9.873-9.569 25.744 0.304 35.449z"}),y.createElement("path",{d:"M498.28 285.176c72.859 0 131.922-59.063 131.922-131.921 0-72.858-59.063-131.922-131.922-131.922-72.858 0-131.921 59.064-131.921 131.922s59.063 131.921 131.921 131.921z m0-50.133c-45.17 0-81.788-36.618-81.788-81.788 0-45.17 36.618-81.788 81.788-81.788 45.17 0 81.788 36.617 81.788 81.788 0 45.17-36.617 81.788-81.788 81.788zM131.921 926.304c72.859 0 131.922-59.063 131.922-131.921 0-72.858-59.063-131.921-131.922-131.921C59.063 662.462 0 721.525 0 794.382c0 72.86 59.063 131.922 131.921 131.922z m0-50.133c-45.17 0-81.788-36.618-81.788-81.788 0-45.17 36.618-81.788 81.788-81.788 45.17 0 81.788 36.618 81.788 81.788 0 45.17-36.617 81.788-81.788 81.788zM895.17 895.774c72.857 0 131.92-59.063 131.92-131.921 0-72.858-59.063-131.921-131.92-131.921-72.859 0-131.922 59.063-131.922 131.921 0 72.858 59.063 131.921 131.921 131.921z m0-50.133c-45.171 0-81.789-36.618-81.789-81.788 0-45.17 36.618-81.788 81.788-81.788 45.17 0 81.788 36.618 81.788 81.788 0 45.17-36.617 81.788-81.788 81.788z"}))})),Column:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M960 109.714286H64c-5.028571 0-9.142857 4.114286-9.142857 9.142857v73.142857c0 5.028571 4.114286 9.142857 9.142857 9.142857h896c5.028571 0 9.142857-4.114286 9.142857-9.142857v-73.142857c0-5.028571-4.114286-9.142857-9.142857-9.142857z m0 713.142857H64c-5.028571 0-9.142857 4.114286-9.142857 9.142857v73.142857c0 5.028571 4.114286 9.142857 9.142857 9.142857h896c5.028571 0 9.142857-4.114286 9.142857-9.142857v-73.142857c0-5.028571-4.114286-9.142857-9.142857-9.142857z m0-356.571429H64c-5.028571 0-9.142857 4.114286-9.142857 9.142857v73.142858c0 5.028571 4.114286 9.142857 9.142857 9.142857h896c5.028571 0 9.142857-4.114286 9.142857-9.142857v-73.142858c0-5.028571-4.114286-9.142857-9.142857-9.142857z"}))})),ZoomIn:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M426.666667 426.666667V0h170.666666v426.666667h426.666667v170.666666H597.333333v426.666667H426.666667V597.333333H0V426.666667h426.666667z"}))})),ZoomOut:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M0 426.656h1024v170.656H0v-170.656z"}))})),Reset:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1026 1024",version:"1.1"},y.createElement("path",{d:"M1026.240435 439.0084h-365.619126l145.296653-145.369653a365.619125 365.619125 0 1 0 57.987861 320.136234l131.622685 65.810843a511.867775 511.867775 0 1 1-85.919794-489.929828L1026.239435 73.389274v365.619126z"}))}))},U8="Process__oYYrf",V8=y.memo((function(e){var t=e.graph,n=gm((function(e){var n,r;return(null===(n=e.lineage.current)||void 0===n||null===(r=n.locate)||void 0===r?void 0:r.graphId)===t.id})),r=fm((function(){IF.lineage.current.graph.pin(t)})),i=fm((function(){IF.lineage.current.graph.hover(t)})),o=fm((function(){IF.lineage.current.graph.leave(t)})),a=fm((function(e){e.preventDefault(),e.stopPropagation(),RU.lineage.context.show({event:e,from:"blank",process:t})})),s={width:t.width,height:t.height,left:t.left.calculate,top:t.top.calculate};return y.createElement(P$,{title:$p?"".concat(t.id,"-").concat(t.title):t.title,placement:"top"},y.createElement("div",{className:Y()(U8,{highlight:t.highlight||t.pin,located:n}),style:s,onClick:r,onMouseEnter:i,onMouseLeave:o,onContextMenu:a},y.createElement(q8.Process,null)))})),W8="Column__h1tT4",G8=y.memo((function(e){var t=ky(gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.column}))).findByIds(e.graph.columnIds),n=fm((function(e){e.preventDefault(),e.stopPropagation()}));return y.createElement("div",{className:W8,onContextMenu:n},t.map((function(e){return y.createElement("div",{key:e.id},e.name)})))})),$8="Graph__UxJBV",K8="Popover__phqVF",J8=y.memo((function(e){var t=e.graph,n=gm((function(e){var n,r;return(null===(n=e.lineage.current)||void 0===n||null===(r=n.locate)||void 0===r?void 0:r.graphId)===t.id})),r=fm((function(){IF.lineage.current.graph.pin(t)})),i=fm((function(){IF.lineage.current.graph.hover(t)})),o=fm((function(){IF.lineage.current.graph.leave(t)})),a={width:t.width,height:t.height,left:t.left.calculate,top:t.top.calculate};return t.visible?"process"===t.type?y.createElement(V8,{graph:t}):y.createElement(GU,{y:"center",x:"between",className:Y()($8,t.type,{located:n}),style:a,onClick:r,onMouseEnter:i,onMouseLeave:o,"data-graph-id":t.id},function(e){var t=e.titleFixWidth,n=e.title,r=y.createElement("span",{"data-graph-id":e.id},t);return n.length>50?y.createElement(P$,{title:y.createElement("span",{style:{fontSize:12}},n),placement:"right"},r):r}(t),y.createElement(W$,{content:y.createElement(G8,{graph:t}),title:t.title,trigger:"hover",placement:"rightTop",arrowPointAtCenter:!0,overlayClassName:K8},y.createElement("div",{className:"column"},y.createElement(q8.Column,null)))):null})),X8=y.memo((function(e){var t=e.edge;return t.visible?y.createElement("g",{className:Y()({highlight:t.highlight||t.pin})},y.createElement("path",{className:Y()(t.type),d:t.svg.path}),y.createElement("polygon",{className:Y()(t.type),points:t.svg.arrow})):null})),Z8=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.edge}));return y.createElement("svg",null,ky(t).map((function(e){return y.createElement(X8,{key:e.id,edge:e})})))})),Q8="Context__X2bku",e7={DownloadPNG:y.createElement(z$,{id:"lineage.context.download.png",defaultMessage:"Download as png"}),DownloadJSON:y.createElement(z$,{id:"lineage.context.download.json",defaultMessage:"Download as json"}),cancel:y.createElement(z$,{id:"lineage.context.cancel",defaultMessage:"Cancel"})},t7=y.memo((function(e){var t,n,r,i,o=vm(),a=gm((function(e){return e.lineage.context.position})),s=gm((function(e){return e.lineage.context.visible})),l=gm((function(e){return e.lineage.context.isProcess})),c={},u={},d=fm((function(e){e.stopPropagation(),IF.lineage.context.hide()})),h={left:a.left+5,top:a.top+5,zIndex:8};return s?o||Xp?y.createElement("div",{className:Q8,style:h,onClick:d},y.createElement("div",{className:"title"},null!==(r=null!==(i=u.name)&&void 0!==i?i:c.name)&&void 0!==r?r:""),y.createElement("div",{className:"list"},y.createElement("div",{className:"row",onClick:RU.lineage.saveAsPNG},y.createElement("div",{className:"text"},e7.DownloadPNG)),y.createElement("div",{className:"row",onClick:RU.lineage.saveAsJSON},y.createElement("div",{className:"text"},e7.DownloadJSON)),y.createElement("div",{className:"row",onClick:IF.lineage.current.graph.cancel},y.createElement("div",{className:"text"},e7.cancel)))):y.createElement("div",{className:Q8,style:h,onClick:d},y.createElement("div",{className:"title"},null!==(t=null!==(n=u.name)&&void 0!==n?n:c.name)&&void 0!==t?t:""),y.createElement("div",{className:"list"},l&&y.createElement("div",{className:"row",onClick:RU.lineage.showCode},y.createElement("div",{className:"text"},"show code")),y.createElement("div",{className:"row",onClick:RU.lineage.saveAsPNG},y.createElement("div",{className:"text"},e7.DownloadPNG)),y.createElement("div",{className:"row",onClick:RU.lineage.saveAsJSON},y.createElement("div",{className:"text"},e7.DownloadJSON)),y.createElement("div",{className:"row",onClick:RU.lineage.shareContext},y.createElement("div",{className:"text"},"Share")),y.createElement("div",{className:"row",onClick:IF.lineage.current.graph.cancel},y.createElement("div",{className:"text"},e7.cancel)))):null})),n7="Empty__Kytzo",r7={empty:y.createElement(z$,{id:"lineage.empty",defaultMessage:"No relation found."})},i7=y.memo((function(e){return gm((function(e){return!1===e.loading.lineage.spinning}))?y.createElement(GU,{x:"center",y:"center",className:n7},y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE,description:r7.empty})):null})),o7="Canvas__COsyG",a7=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.canvas.visible})),n=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.graph})),r=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.canvas})),i=gm((function(e){var t;return(null===(t=e.lineage.current)||void 0===t?void 0:t.scale.value)||1})),o=gm((function(e){var t,n;return null===(t=e.lineage.current)||void 0===t?void 0:t.select.list[Number(null===(n=e.lineage.current)||void 0===n?void 0:n.select.current)]}));y.useEffect((function(){RU.lineage.locateBySelect(o)}),[o]);var a={canvas:{width:((null==r?void 0:r.width)||0)*i+(1-i)*Qg.lineage.transformOrigin.x,height:((null==r?void 0:r.height)||0)*i+(1-i)*Qg.lineage.transformOrigin.y},scale:{width:(null==r?void 0:r.width)||0,height:(null==r?void 0:r.height)||0,transform:"scale(".concat(i,")"),transformOrigin:"".concat(Qg.lineage.transformOrigin.x,"px ").concat(Qg.lineage.transformOrigin.y,"px")}};return t?0===(null==n?void 0:n.all.length)?y.createElement(i7,null):y.createElement(y.Fragment,null,y.createElement("div",{className:o7,style:a.canvas,ref:function(e){return RF.lineage.canvas=e}},y.createElement("div",{className:"scale",style:a.scale},ky(n).map((function(e){return y.createElement(J8,{key:e.id,graph:e})})),y.createElement(Z8,null))),y.createElement(t7,null)):null})),s7="Title__KmZds",l7="Summary__HuxXa",c7={summary:y.createElement(z$,{id:"lineage.summary",defaultMessage:"Summary"}),visualize:y.createElement(z$,{id:"lineage.summary.visualize",defaultMessage:"select or search to visualize"})},u7=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.summary.visible})),n=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.response.data.summary}));return t?y.createElement(KU,{className:l7,x:"center",y:"center"},n?y.createElement(y.Fragment,null,y.createElement(Y2,{title:y.createElement("div",null,c7.summary," ",y.createElement("span",{className:s7},c7.visualize)),size:"small",bordered:!0},y.createElement(Y2.Item,{label:"database"},null==n?void 0:n.database),y.createElement(Y2.Item,{label:"schema"},null==n?void 0:n.schema),y.createElement(Y2.Item,{label:"table"},null==n?void 0:n.table),y.createElement(Y2.Item,{label:"view"},null==n?void 0:n.view),y.createElement(Y2.Item,{label:"column"},null==n?void 0:n.column),y.createElement(Y2.Item,{label:"process"},null==n?void 0:n.process),y.createElement(Y2.Item,{label:"relation"},null==n?void 0:n.relationship))):y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE})):null})),d7="Fail__THR2P",h7=y.memo((function(e){return gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.fail.visible}))?y.createElement(GU,{className:d7,x:"center",y:"center"},y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M512.8 512m-423 0a423 423 0 1 0 846 0 423 423 0 1 0-846 0Z",fill:"#FF7575"}),y.createElement("path",{d:"M481.3 590.7c5.3 15.8 15.8 26.2 31.5 26.2 15.8 0 26.2-10.5 31.5-26.2l21-288.7c0-31.5-26.2-52.5-52.5-52.5-31.5 0-52.5 26.2-52.5 57.8l21 283.4z m31.5 78.8c-31.5 0-52.5 21-52.5 52.5s21 52.5 52.5 52.5 52.5-21 52.5-52.5-21-52.5-52.5-52.5z m0 0",fill:"#FFFFFF"})),y.createElement("p",null,"The diagram is too big to display. Please : ",y.createElement("br",null),"1. select another object to visualize. ",y.createElement("br",null),"2. click the lineage detail in the job panel. ",y.createElement("br",null))):null})),f7="Scale___ZQwU",p7={zoomin:y.createElement(z$,{id:"lineage.scale.zoomin",defaultMessage:"zoom in"}),zoomout:y.createElement(z$,{id:"lineage.scale.zoomout",defaultMessage:"zoom out"}),reset:y.createElement(z$,{id:"lineage.scale.reset",defaultMessage:"reset"}),locate:y.createElement(z$,{id:"lineage.scale.locate",defaultMessage:"locate the selected graph in dropdown menu"}),scroll:y.createElement(z$,{id:"lineage.scale.scroll",defaultMessage:"scroll to the dropdown menu"})},g7=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.scale.visible})),n=gm((function(e){var t,n;return Boolean(null===(t=e.lineage.current)||void 0===t||null===(n=t.locate)||void 0===n?void 0:n.graphId)}));return t?y.createElement("div",{className:f7},y.createElement(P$,{title:p7.zoomin,placement:"left"},y.createElement("div",{onClick:IF.lineage.current.scale.zoomIn},y.createElement(q8.ZoomIn,null))),y.createElement(P$,{title:p7.zoomout,placement:"left"},y.createElement("div",{onClick:IF.lineage.current.scale.zoomOut},y.createElement(q8.ZoomOut,null))),y.createElement(P$,{title:p7.reset,placement:"left"},y.createElement("div",{onClick:IF.lineage.current.scale.reset},y.createElement(q8.Reset,null))),y.createElement(P$,{title:p7.locate,placement:"left"},y.createElement("div",{onClick:RU.lineage.reLocate},y.createElement(BU.Icon.Locate,{disabled:!n}))),y.createElement(P$,{title:p7.scroll,placement:"left"},y.createElement("div",{onClick:RU.lineage.scrollToDropdownMenu},y.createElement(BU.Icon.Menu,null)))):null})),m7="Map__F_EjV",v7="Preview___b1b1",y7="Graph__fV2n3",b7="View___k15r";function w7(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 _7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w7(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w7(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x7=y.memo((function(e){return gm((function(e){return e})),y.useEffect((function(){RU.lineage.map.update()})),y.useEffect((function(){return window.addEventListener("resize",RU.lineage.map.update),function(){return window.removeEventListener("resize",RU.lineage.map.update)}}),[]),null})),E7=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.map.visible})),n=fm((function(e){e.preventDefault(),e.stopPropagation()})),r=fm((function(e){RF.lineage.map=e})),i=_7(_7({},Qg.lineage.map),{},{zIndex:20});return t?y.createElement("div",{className:m7,style:i,ref:r,onContextMenu:n},y.createElement(x7,null),y.createElement(C7,null),y.createElement(S7,null)):null})),C7=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.graph})),n=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.canvas})),r=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.scale.value})),i=gm((function(e){return e.tab.current===xg.lineage})),o=fm((function(e){RF.lineage.preview=e}));y.useEffect((function(){RU.lineage.preview.update()}),[n,r]),y.useEffect((function(){i&&RU.lineage.preview.update()}),[i]);var a={scale:{width:(null==n?void 0:n.width)||0,height:(null==n?void 0:n.height)||0,transform:"scale(".concat(r,")")}};return y.createElement("div",{className:v7,ref:o},y.createElement("div",{className:"scale",style:a.scale},ky(t).map((function(e){return y.createElement(k7,{key:e.id,graph:e})}))))})),k7=y.memo((function(e){var t=e.graph,n={width:t.width,height:t.height,left:t.left.calculate,top:t.top.calculate};return t.visible?y.createElement("div",{className:y7,style:n}):null})),S7=y.memo((function(e){var t=fm((function(e){RF.lineage.view=e,e&&RU.lineage.view.subscribe(e)}));return y.createElement("div",{className:b7,ref:t},y.createElement(T7,null))})),T7=y.memo((function(e){return gm((function(e){return e})),y.useEffect((function(){RU.lineage.view.update()})),y.useEffect((function(){return window.addEventListener("resize",RU.lineage.view.update),function(){return window.removeEventListener("resize",RU.lineage.view.update)}}),[]),null})),M7="Lineage__jW1fd",O7="Empty__T_GMg",L7="Widget__BXtWj",A7="Home__GQSIz",D7={Type:"Type__l2zYS"},N7=y.memo((function(e){var t,n=gm((function(e){var t;return(null===(t=e.lineage.current)||void 0===t?void 0:t.select.list)||[]})),r=gm((function(e){var t;return(null===(t=e.lineage.current)||void 0===t?void 0:t.select.width)||300})),i=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.select.current})),o=fm((function(e,t){IF.lineage.current.select.set(t.key)})),a=i?null===(t=jF.lineage.current)||void 0===t?void 0:t.select.list[Number(i)].name:void 0,s=fm((function(){IF.lineage.current.select.clear(),IF.lineage.current.locate.clear()}));return y.createElement("div",{className:D7.Selector},y.createElement(QX,{style:{width:r},value:a,listHeight:380,showSearch:!0,allowClear:!0,placeholder:"search or select to visualize",onSelect:o,onClear:s},n.map((function(e){return y.createElement(QX.Option,{key:e.id,value:e.name},y.createElement(GU,{y:"center",x:"between",className:D7.Type},y.createElement("span",null,e.name),y.createElement("div",{className:e.type},e.type)))}))))})),P7="SQLText__C_slM",I7=y.memo((function(e){var t=gm((function(e){return e.lineage.visualize.sqltext.value||""}));return y.createElement("div",{className:P7},y.createElement(FW,{value:t}))})),j7="Info__AJd2Q",R7="Preview__mTHw4",F7="SQLText__k5DSw",z7="Title___rQ1T",Y7={preview:y.createElement(z$,{id:"lineage.visualize.info.preview",defaultMessage:"preview"}),label:{dbvendor:y.createElement(z$,{id:"lineage.visualize.info.label.dbvendor",defaultMessage:"dbvendor"}),sqltext:y.createElement(z$,{id:"lineage.visualize.info.label.sqltext",defaultMessage:"sqltext"}),jobName:y.createElement(z$,{id:"lineage.visualize.info.label.jobName",defaultMessage:"jobName"}),jobId:y.createElement(z$,{id:"lineage.visualize.info.label.jobId",defaultMessage:"jobId"}),userEmail:y.createElement(z$,{id:"lineage.visualize.info.label.userEmail",defaultMessage:"userEmail"}),createTime:y.createElement(z$,{id:"lineage.visualize.info.label.createTime",defaultMessage:"createTime"}),executeTime:y.createElement(z$,{id:"lineage.visualize.info.label.executeTime",defaultMessage:"executeTime"})}},B7=y.memo((function(e){var t,n,r,i,o,a,s,l,c=gm((function(e){var t;return(null===(t=e.lineage.visualize)||void 0===t?void 0:t.dbvendor)||""})),u=gm((function(e){return e.lineage.visualize.job})),d=fm((function(){IF.toolbar.sql.show(),IF.lineage.visualize.info.hide(),IF.lineage.visualize.sqltext.hide()}));return y.createElement(KU,{className:j7},y.createElement(Y2,{bordered:!0,size:"small",column:1},u?y.createElement(y.Fragment,null,y.createElement(Y2.Item,{label:Y7.label.dbvendor},y.createElement("div",null,null==u||null===(t=u.dbVendor)||void 0===t?void 0:t.slice(3))),y.createElement(Y2.Item,{label:Y7.label.jobName},y.createElement("div",null,u.jobName)),y.createElement(Y2.Item,{label:Y7.label.jobId},y.createElement("div",null,u.jobId)),u.userEmail&&y.createElement(Y2.Item,{label:Y7.label.userEmail},y.createElement("div",null,u.userEmail)),y.createElement(Y2.Item,{label:Y7.label.createTime},y.createElement("div",null,u.createTime)),y.createElement(Y2.Item,{label:Y7.label.executeTime},y.createElement("div",null,u.executeTime)),u.dataSource&&y.createElement(y.Fragment,null,y.createElement(Y2.Item,{label:"hostname"},null===(n=u.dataSource)||void 0===n?void 0:n.hostname),y.createElement(Y2.Item,{label:"port"},null===(r=u.dataSource)||void 0===r?void 0:r.port),y.createElement(Y2.Item,{label:"account"},null===(i=u.dataSource)||void 0===i?void 0:i.account),y.createElement(Y2.Item,{label:"extractedDbsSchemas"},null===(o=u.dataSource)||void 0===o?void 0:o.extractedDbsSchemas),y.createElement(Y2.Item,{label:"excludedDbsSchemas"},null===(a=u.dataSource)||void 0===a?void 0:a.excludedDbsSchemas),y.createElement(Y2.Item,{label:"extractedStoredProcedures"},null===(s=u.dataSource)||void 0===s?void 0:s.extractedStoredProcedures),y.createElement(Y2.Item,{label:"excludedDbsSchemas"},null===(l=u.dataSource)||void 0===l?void 0:l.excludedDbsSchemas))):y.createElement(y.Fragment,null,y.createElement(Y2.Item,{label:Y7.label.dbvendor},y.createElement("div",null,c.slice(3))),y.createElement(Y2.Item,{label:Y7.label.sqltext},y.createElement("div",{className:R7},y.createElement("a",null,Y7.preview),y.createElement(W$,{overlayClassName:F7,placement:"rightTop",destroyTooltipOnHide:!0,title:y.createElement(GU,{x:"between",className:z7},"sqltext ",y.createElement("a",{onClick:d},"view in sql editor")),content:y.createElement(I7,null)},y.createElement("div",{className:"hide"})))))))})),H7="Visualize__yKtuz",q7="Title___qOEB",U7="Setting__E7JDb",V7=y.memo((function(e){var t=gm((function(e){return e.loading.lineage.spinning})),n=gm((function(e){return e.lineage.visualize.setting})),r=gm((function(e){var t;return e.lineage.visualize.mode===wg.query||e.lineage.visualize.mode===wg.job&&!1===(null===(t=e.lineage.visualize.job)||void 0===t?void 0:t.persist)})),i=fm((function(e){RU.lineage.setting.allTablesInFromClauseIncludedInTableLevelLineage.set(e)}));return y.createElement(KU,{className:U7},y.createElement("div",null,y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},"treat Column In Join As Direct Relationship")),y.createElement(o8,{disabled:t||!r,checked:n.allTablesInFromClauseIncludedInTableLevelLineage,onChange:i,checkedChildren:"on",unCheckedChildren:"off"}))))})),W7={lineage:y.createElement(z$,{id:"lineage.visualize.lineage.overview",defaultMessage:"visualize lineage detail"}),info:y.createElement(z$,{id:"lineage.visualize.info.title",defaultMessage:"info"})},G7=y.memo((function(e){var t=gm((function(e){return e.lineage.visualize.info.visible})),n=fm((function(e){e?IF.lineage.visualize.info.show():IF.lineage.visualize.info.hide()})),r=fm((function(e){e.preventDefault(),e.stopPropagation()}));return Xp?y.createElement(GU,{y:"center",className:H7,style:{zIndex:Qg.lineage.visualize.zIndex},onContextMenu:r},y.createElement(N7,null)):y.createElement(GU,{y:"center",className:H7,style:{zIndex:Qg.lineage.visualize.zIndex},onContextMenu:r},y.createElement(W$,{placement:"bottom",title:y.createElement("span",{className:q7},W7.info),visible:t,onVisibleChange:n,content:y.createElement(B7,null),trigger:"click"},y.createElement("div",{className:"icon"},y.createElement(BU.Icon.Info,null))),y.createElement(W$,{placement:"bottom",title:y.createElement("div",{className:q7},"setting"),overlayStyle:{zIndex:Qg.lineage.visualize.setting.zIndex},content:y.createElement(V7,null),trigger:"click"},y.createElement("div",{className:"icon"},y.createElement(BU.Icon.Setting,null))),y.createElement(N7,null))})),$7=y.memo((function(e){var t=gm((function(e){var t;return null===(t=e.lineage.current)||void 0===t?void 0:t.graph})),n=gm((function(e){return e.widget.component})),r=y.useRef({drag:null}),i=fm((function(e){e.preventDefault(),RU.lineage.context.show({event:e,from:"blank"})})),o=fm((function(e){var t,n;if(RF.lineage.scroll=e,e){null===(t=r.current.drag)||void 0===t||t.unsubscribe();var i=zz(window,"mouseup"),o=zz(document.body,"mousemove"),a=zz(e,"mousedown");r.current.drag=a.pipe(Dq((function(t){if(0!==t.button)return Bz;RU.body.select.disable(),e.classList.add("moving"),i.pipe(Hz(1)).subscribe((function(){RU.body.select.enable(),e.classList.remove("moving")}));var n=e.scrollTop,r=e.scrollLeft;return o.pipe(Nq(i),Sz((function(i){var o=i.clientX-t.clientX,a=i.clientY-t.clientY;e.scrollLeft=r-o,e.scrollTop=n-a})))}))).subscribe((function(){})),null===(n=RF.lineage.scroll)||void 0===n||n.addEventListener("scroll",RU.lineage.view.update)}}));return y.createElement("div",{className:A7},y.createElement(GU,{className:"body"},y.createElement(GU,{className:"main"},n.sqlEditor&&y.createElement(b5,null),y.createElement("div",{className:Y()(M7,L7),ref:function(e){return RF.lineage.container=e}},y.createElement("div",{className:"scroll",ref:o,onContextMenu:i},n.graphLocate&&y.createElement(G7,null),t?y.createElement(y.Fragment,null,y.createElement(u7,null),y.createElement(h7,null),y.createElement(a7,null)):y.createElement(GU,{className:O7,x:"center",y:"center"},y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE}))),y.createElement(H8,null),y.createElement(g7,null),n.minimap&&y.createElement(E7,null)))))})),K7="ER__yG1KF",J7="Home__itNtb";const X7=wI({type:"react componnet"});RR.registerReactComponent=X7.register,RR.unregisterReactComponent=X7.unregister,RR.Hook.prototype.getReactComponent=function(e){const t=this.options.getReactComponent;if("function"==typeof t){const n=XT(t,this.graph,e);if(null!=n)return n}let n=e.getComponent();if("string"==typeof n){const e=X7.get(n);if(null==e)return X7.onNotFound(n);n=e}return n};class Z7 extends LI{get component(){return this.getComponent()}set component(e){this.setComponent(e)}getComponent(){return this.store.get("component")}setComponent(e,t={}){return null==e?this.removeComponent(t):this.store.set("component",e,t),this}removeComponent(e={}){return this.store.remove("component",e),this}}var Q7;!function(e){function t(e,t,n="rect"){const r=[],i=t?TN.getForeignObjectMarkup():{tagName:"g",selector:"content"};return e?r.push(i):r.push({tagName:n,selector:"body"},i,{tagName:"text",selector:"label"}),r}e.config({view:"react-shape-view",markup:t(!1,!0),attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"},label:{fontSize:14,fill:"#333",refX:"50%",refY:"50%",textAnchor:"middle",textVerticalAnchor:"middle"}},propHooks(e){if(null==e.markup){const n=e.primer,r=!1!==e.useForeignObject;if(n&&"rect"!==n){e.markup=t(!1,r,n);let i={};"circle"===n?i={refCx:"50%",refCy:"50%",refR:"50%"}:"ellipse"===n&&(i={refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}),e.attrs=CC({},{body:Object.assign({refWidth:null,refHeight:null},i)},e.attrs||{})}else e.simple&&(e.markup=t(!0,r),e.attrs=CC({},{body:null,label:null},e.attrs||{}))}return e}}),LI.registry.register("react-shape",e,!0)}(Z7||(Z7={})),function(e){let t,n=!1;const r=(e,t)=>{const n=t.payload;switch(t.type){case"add":{const t=e.findIndex((e=>e.id===n.id));return t>=0?(e[t]=n,[...e]):[...e,n]}case"remove":{const t=e.findIndex((e=>e.id===n.id));if(t>=0){const n=[...e];return n.splice(t,1),n}break}}return e};e.connect=function(e,r){n&&t({type:"add",payload:{id:e,portal:r}})},e.disconnect=function(e){n&&t({type:"remove",payload:{id:e}})},e.isActive=function(){return n},e.getProvider=function(){return()=>{n=!0;const[e,i]=(0,y.useReducer)(r,[]);return t=i,y.createElement(y.Fragment,{children:e.map((e=>e.portal))})}}}(Q7||(Q7={}));class e9 extends y.PureComponent{constructor(e){super(e),this.scheduledAnimationFrame=!1,this.throttleUpdateFunc=()=>{this.scheduledAnimationFrame||(this.scheduledAnimationFrame=!0,window.requestAnimationFrame((()=>{this.setState((e=>(this.scheduledAnimationFrame=!1,{tick:e.tick+1})))})))},this.onChange=e=>{e9.throttleChangeTypes.includes(e.key)?this.throttleUpdateFunc():this.setState({tick:this.state.tick+1})},this.state={tick:0}}componentDidMount(){this.props.node.on("change:*",this.onChange)}componentWillUnmount(){this.props.node.off("change:*",this.onChange)}clone(e){const{node:t}=this.props;return"string"==typeof e.type?y.cloneElement(e):y.cloneElement(e,{node:t})}render(){const{graph:e,node:t,component:n}=this.props;if(y.isValidElement(n))return this.clone(n);if("function"==typeof n){const r=XT(n,e,t);if(y.isValidElement(r))return this.clone(r)}return n}}e9.throttleChangeTypes=["position","size"];class t9 extends qI{init(){super.init(),this.cell.on("removed",(()=>{Q7.disconnect(this.cell.id)}))}getComponentContainer(){return!1===this.cell.prop("useForeignObject")?this.selectors.content:this.selectors.foContent}confirmUpdate(e){const t=super.confirmUpdate(e);return this.handleAction(t,t9.action,(()=>{pL?pL.scheduleTask((()=>{this.renderReactComponent()})):this.renderReactComponent()}))}renderReactComponent(){this.unmountReactComponent();const e=this.getComponentContainer(),t=this.cell,n=this.graph;if(e){const r=this.graph.hook.getReactComponent(t),i=y.createElement(e9,{graph:n,node:t,component:r});Q7.isActive()?Q7.connect(this.cell.id,b.createPortal(i,e)):b.render(i,e)}}unmountReactComponent(){const e=this.getComponentContainer();return e&&b.unmountComponentAtNode(e),e}unmount(){return Q7.disconnect(this.cell.id),this.unmountReactComponent(),super.unmount(),this}}!function(e){e.action="react",e.config({bootstrap:[e.action],actions:{component:e.action}}),qI.registry.register("react-shape-view",e,!0)}(t9||(t9={}));const n9="function"==typeof btoa,r9="function"==typeof Buffer,i9=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),o9=((e=>{let t={};e.forEach(((e,n)=>t[e]=n))})(i9),String.fromCharCode.bind(String)),a9=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),s9=e=>{let t,n,r,i,o="";const a=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=i9[t>>18&63]+i9[t>>12&63]+i9[t>>6&63]+i9[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},l9=n9?e=>btoa(e):r9?e=>Buffer.from(e,"binary").toString("base64"):s9,c9=r9?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(o9.apply(null,e.subarray(n,n+4096)));return l9(t.join(""))},u9=(e,t=!1)=>t?a9(c9(e)):c9(e);function d9(e){let t=e.length;for(;--t>=0;)e[t]=0}const h9=256,f9=286,p9=30,g9=15,m9=new Uint8Array([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]),v9=new Uint8Array([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]),y9=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),b9=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),w9=new Array(576);d9(w9);const _9=new Array(60);d9(_9);const x9=new Array(512);d9(x9);const E9=new Array(256);d9(E9);const C9=new Array(29);d9(C9);const k9=new Array(p9);function S9(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}let T9,M9,O9;function L9(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}d9(k9);const A9=e=>e<256?x9[e]:x9[256+(e>>>7)],D9=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},N9=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,D9(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)},P9=(e,t,n)=>{N9(e,n[2*t],n[2*t+1])},I9=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},j9=(e,t,n)=>{const r=new Array(16);let i,o,a=0;for(i=1;i<=g9;i++)a=a+n[i-1]<<1,r[i]=a;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=I9(r[t]++,t))}},R9=e=>{let t;for(t=0;t<f9;t++)e.dyn_ltree[2*t]=0;for(t=0;t<p9;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.sym_next=e.matches=0},F9=e=>{e.bi_valid>8?D9(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},z9=(e,t,n,r)=>{const i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]},Y9=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&z9(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!z9(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},B9=(e,t,n)=>{let r,i,o,a,s=0;if(0!==e.sym_next)do{r=255&e.pending_buf[e.sym_buf+s++],r+=(255&e.pending_buf[e.sym_buf+s++])<<8,i=e.pending_buf[e.sym_buf+s++],0===r?P9(e,i,t):(o=E9[i],P9(e,o+h9+1,t),a=m9[o],0!==a&&(i-=C9[o],N9(e,i,a)),r--,o=A9(r),P9(e,o,n),a=v9[o],0!==a&&(r-=k9[o],N9(e,r,a)))}while(s<e.sym_next);P9(e,256,t)},H9=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems;let a,s,l,c=-1;for(e.heap_len=0,e.heap_max=573,a=0;a<o;a++)0!==n[2*a]?(e.heap[++e.heap_len]=c=a,e.depth[a]=0):n[2*a+1]=0;for(;e.heap_len<2;)l=e.heap[++e.heap_len]=c<2?++c:0,n[2*l]=1,e.depth[l]=0,e.opt_len--,i&&(e.static_len-=r[2*l+1]);for(t.max_code=c,a=e.heap_len>>1;a>=1;a--)Y9(e,n,a);l=o;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Y9(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,n[2*l]=n[2*a]+n[2*s],e.depth[l]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,n[2*a+1]=n[2*s+1]=l,e.heap[1]=l++,Y9(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,l=t.stat_desc.max_length;let c,u,d,h,f,p,g=0;for(h=0;h<=g9;h++)e.bl_count[h]=0;for(n[2*e.heap[e.heap_max]+1]=0,c=e.heap_max+1;c<573;c++)u=e.heap[c],h=n[2*n[2*u+1]+1]+1,h>l&&(h=l,g++),n[2*u+1]=h,u>r||(e.bl_count[h]++,f=0,u>=s&&(f=a[u-s]),p=n[2*u],e.opt_len+=p*(h+f),o&&(e.static_len+=p*(i[2*u+1]+f)));if(0!==g){do{for(h=l-1;0===e.bl_count[h];)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[l]--,g-=2}while(g>0);for(h=l;0!==h;h--)for(u=e.bl_count[h];0!==u;)d=e.heap[--c],d>r||(n[2*d+1]!==h&&(e.opt_len+=(h-n[2*d+1])*n[2*d],n[2*d+1]=h),u--)}})(e,t),j9(n,c,e.bl_count)},q9=(e,t,n)=>{let r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))},U9=(e,t,n)=>{let r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)do{P9(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(P9(e,i,e.bl_tree),s--),P9(e,16,e.bl_tree),N9(e,s-3,2)):s<=10?(P9(e,17,e.bl_tree),N9(e,s-3,3)):(P9(e,18,e.bl_tree),N9(e,s-11,7));s=0,o=i,0===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}};let V9=!1;const W9=(e,t,n,r)=>{N9(e,0+(r?1:0),3),F9(e),D9(e,n),D9(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var G9=e=>{V9||((()=>{let e,t,n,r,i;const o=new Array(16);for(n=0,r=0;r<28;r++)for(C9[r]=n,e=0;e<1<<m9[r];e++)E9[n++]=r;for(E9[n-1]=r,i=0,r=0;r<16;r++)for(k9[r]=i,e=0;e<1<<v9[r];e++)x9[i++]=r;for(i>>=7;r<p9;r++)for(k9[r]=i<<7,e=0;e<1<<v9[r]-7;e++)x9[256+i++]=r;for(t=0;t<=g9;t++)o[t]=0;for(e=0;e<=143;)w9[2*e+1]=8,e++,o[8]++;for(;e<=255;)w9[2*e+1]=9,e++,o[9]++;for(;e<=279;)w9[2*e+1]=7,e++,o[7]++;for(;e<=287;)w9[2*e+1]=8,e++,o[8]++;for(j9(w9,287,o),e=0;e<p9;e++)_9[2*e+1]=5,_9[2*e]=I9(e,5);T9=new S9(w9,m9,257,f9,g9),M9=new S9(_9,v9,0,p9,g9),O9=new S9(new Array(0),y9,0,19,7)})(),V9=!0),e.l_desc=new L9(e.dyn_ltree,T9),e.d_desc=new L9(e.dyn_dtree,M9),e.bl_desc=new L9(e.bl_tree,O9),e.bi_buf=0,e.bi_valid=0,R9(e)},$9=(e,t,n,r)=>{let i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let 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<h9;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),H9(e,e.l_desc),H9(e,e.d_desc),a=(e=>{let t;for(q9(e,e.dyn_ltree,e.l_desc.max_code),q9(e,e.dyn_dtree,e.d_desc.max_code),H9(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*b9[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,o<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?W9(e,t,n,r):4===e.strategy||o===i?(N9(e,2+(r?1:0),3),B9(e,w9,_9)):(N9(e,4+(r?1:0),3),((e,t,n,r)=>{let i;for(N9(e,t-257,5),N9(e,n-1,5),N9(e,r-4,4),i=0;i<r;i++)N9(e,e.bl_tree[2*b9[i]+1],3);U9(e,e.dyn_ltree,t-1),U9(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),B9(e,e.dyn_ltree,e.dyn_dtree)),R9(e),r&&F9(e)},K9={_tr_init:G9,_tr_stored_block:W9,_tr_flush_block:$9,_tr_tally:(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(E9[n]+h9+1)]++,e.dyn_dtree[2*A9(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{N9(e,2,3),P9(e,256,w9),(e=>{16===e.bi_valid?(D9(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)})(e)}};var J9=(e,t,n,r)=>{let i=65535&e|0,o=e>>>16&65535|0,a=0;for(;0!==n;){a=n>2e3?2e3:n,n-=a;do{i=i+t[r++]|0,o=o+i|0}while(--a);i%=65521,o%=65521}return i|o<<16|0};const X9=new Uint32Array((()=>{let e,t=[];for(var 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})());var Z9=(e,t,n,r)=>{const i=X9,o=r+n;e^=-1;for(let n=r;n<o;n++)e=e>>>8^i[255&(e^t[n])];return-1^e},Q9={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"},eee={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_MEM_ERROR:-4,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};const{_tr_init:tee,_tr_stored_block:nee,_tr_flush_block:ree,_tr_tally:iee,_tr_align:oee}=K9,{Z_NO_FLUSH:aee,Z_PARTIAL_FLUSH:see,Z_FULL_FLUSH:lee,Z_FINISH:cee,Z_BLOCK:uee,Z_OK:dee,Z_STREAM_END:hee,Z_STREAM_ERROR:fee,Z_DATA_ERROR:pee,Z_BUF_ERROR:gee,Z_DEFAULT_COMPRESSION:mee,Z_FILTERED:vee,Z_HUFFMAN_ONLY:yee,Z_RLE:bee,Z_FIXED:wee,Z_DEFAULT_STRATEGY:_ee,Z_UNKNOWN:xee,Z_DEFLATED:Eee}=eee,Cee=258,kee=262,See=42,Tee=113,Mee=666,Oee=(e,t)=>(e.msg=Q9[t],t),Lee=e=>2*e-(e>4?9:0),Aee=e=>{let t=e.length;for(;--t>=0;)e[t]=0},Dee=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=i?n-i:0}while(--t);t=i,r=t;do{n=e.prev[--r],e.prev[r]=n>=i?n-i:0}while(--t)};let Nee=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const Pee=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,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))},Iee=(e,t)=>{ree(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Pee(e.strm)},jee=(e,t)=>{e.pending_buf[e.pending++]=t},Ree=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Fee=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=J9(e.adler,t,i,n):2===e.state.wrap&&(e.adler=Z9(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},zee=(e,t)=>{let n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match;const l=e.strstart>e.w_size-kee?e.strstart-(e.w_size-kee):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+Cee;let f=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+a]===p&&c[n+a-1]===f&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<h);if(r=Cee-(h-o),o=h-Cee,r>a){if(e.match_start=t,a=r,r>=s)break;f=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead},Yee=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-kee)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),Dee(e),r+=t),0===e.strm.avail_in)break;if(n=Fee(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=3)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Nee(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Nee(e,e.ins_h,e.window[i+3-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<kee&&0!==e.strm.avail_in)},Bee=(e,t)=>{let n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,a=0,s=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i)break;if(i=e.strm.avail_out-i,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n<o&&(0===n&&t!==cee||t===aee||n!==r+e.strm.avail_in))break;a=t===cee&&n===r+e.strm.avail_in?1:0,nee(e,0,0,a),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Pee(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(Fee(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===a);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),a?4:t!==aee&&t!==cee&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(Fee(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===cee)&&t!==aee&&0===e.strm.avail_in&&r<=i)&&(n=r>i?i:r,a=t===cee&&0===e.strm.avail_in&&n===r?1:0,nee(e,e.block_start,n,a),e.block_start+=n,Pee(e.strm)),a?3:1)},Hee=(e,t)=>{let n,r;for(;;){if(e.lookahead<kee){if(Yee(e),e.lookahead<kee&&t===aee)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Nee(e,e.ins_h,e.window[e.strstart+3-1]),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-kee&&(e.match_length=zee(e,n)),e.match_length>=3)if(r=iee(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){e.match_length--;do{e.strstart++,e.ins_h=Nee(e,e.ins_h,e.window[e.strstart+3-1]),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],e.ins_h=Nee(e,e.ins_h,e.window[e.strstart+1]);else r=iee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Iee(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===cee?(Iee(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Iee(e,!1),0===e.strm.avail_out)?1:2},qee=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<kee){if(Yee(e),e.lookahead<kee&&t===aee)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=Nee(e,e.ins_h,e.window[e.strstart+3-1]),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-kee&&(e.match_length=zee(e,n),e.match_length<=5&&(e.strategy===vee||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=iee(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=Nee(e,e.ins_h,e.window[e.strstart+3-1]),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=2,e.strstart++,r&&(Iee(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(r=iee(e,0,e.window[e.strstart-1]),r&&Iee(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=iee(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===cee?(Iee(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Iee(e,!1),0===e.strm.avail_out)?1:2};function Uee(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const Vee=[new Uee(0,0,0,0,Bee),new Uee(4,4,8,4,Hee),new Uee(4,5,16,8,Hee),new Uee(4,6,32,32,Hee),new Uee(4,4,16,16,qee),new Uee(8,16,32,32,qee),new Uee(8,16,128,128,qee),new Uee(8,32,128,256,qee),new Uee(32,128,258,1024,qee),new Uee(32,258,258,4096,qee)];function Wee(){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=Eee,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Aee(this.dyn_ltree),Aee(this.dyn_dtree),Aee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Aee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Aee(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Gee=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==See&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==Tee&&t.status!==Mee?1:0},$ee=e=>{if(Gee(e))return Oee(e,fee);e.total_in=e.total_out=0,e.data_type=xee;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?See:Tee,e.adler=2===t.wrap?0:1,t.last_flush=-2,tee(t),dee},Kee=e=>{const t=$ee(e);return t===dee&&(e=>{e.window_size=2*e.w_size,Aee(e.head),e.max_lazy_match=Vee[e.level].max_lazy,e.good_match=Vee[e.level].good_length,e.nice_match=Vee[e.level].nice_length,e.max_chain_length=Vee[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},Jee=(e,t,n,r,i,o)=>{if(!e)return fee;let a=1;if(t===mee&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),i<1||i>9||n!==Eee||r<8||r>15||t<0||t>9||o<0||o>wee||8===r&&1!==a)return Oee(e,fee);8===r&&(r=9);const s=new Wee;return e.state=s,s.strm=e,s.status=See,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=t,s.strategy=o,s.method=n,Kee(e)};var Xee=(e,t)=>{if(Gee(e)||t>uee||t<0)return e?Oee(e,fee):fee;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===Mee&&t!==cee)return Oee(e,0===e.avail_out?gee:fee);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Pee(e),0===e.avail_out)return n.last_flush=-1,dee}else if(0===e.avail_in&&Lee(t)<=Lee(r)&&t!==cee)return Oee(e,gee);if(n.status===Mee&&0!==e.avail_in)return Oee(e,gee);if(n.status===See&&0===n.wrap&&(n.status=Tee),n.status===See){let t=Eee+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=yee||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,Ree(n,t),0!==n.strstart&&(Ree(n,e.adler>>>16),Ree(n,65535&e.adler)),e.adler=1,n.status=Tee,Pee(e),0!==n.pending)return n.last_flush=-1,dee}if(57===n.status)if(e.adler=0,jee(n,31),jee(n,139),jee(n,8),n.gzhead)jee(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),jee(n,255&n.gzhead.time),jee(n,n.gzhead.time>>8&255),jee(n,n.gzhead.time>>16&255),jee(n,n.gzhead.time>>24&255),jee(n,9===n.level?2:n.strategy>=yee||n.level<2?4:0),jee(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(jee(n,255&n.gzhead.extra.length),jee(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Z9(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(jee(n,0),jee(n,0),jee(n,0),jee(n,0),jee(n,0),jee(n,9===n.level?2:n.strategy>=yee||n.level<2?4:0),jee(n,3),n.status=Tee,Pee(e),0!==n.pending)return n.last_flush=-1,dee;if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let i=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Z9(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=i,Pee(e),0!==n.pending)return n.last_flush=-1,dee;t=0,r-=i}let i=new Uint8Array(n.gzhead.extra);n.pending_buf.set(i.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=Z9(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=Z9(e.adler,n.pending_buf,n.pending-r,r)),Pee(e),0!==n.pending)return n.last_flush=-1,dee;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,jee(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=Z9(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=Z9(e.adler,n.pending_buf,n.pending-r,r)),Pee(e),0!==n.pending)return n.last_flush=-1,dee;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,jee(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=Z9(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Pee(e),0!==n.pending))return n.last_flush=-1,dee;jee(n,255&e.adler),jee(n,e.adler>>8&255),e.adler=0}if(n.status=Tee,Pee(e),0!==n.pending)return n.last_flush=-1,dee}if(0!==e.avail_in||0!==n.lookahead||t!==aee&&n.status!==Mee){let r=0===n.level?Bee(n,t):n.strategy===yee?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(Yee(e),0===e.lookahead)){if(t===aee)return 1;break}if(e.match_length=0,n=iee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Iee(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===cee?(Iee(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Iee(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===bee?((e,t)=>{let n,r,i,o;const a=e.window;for(;;){if(e.lookahead<=Cee){if(Yee(e),e.lookahead<=Cee&&t===aee)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,r=a[i],r===a[++i]&&r===a[++i]&&r===a[++i])){o=e.strstart+Cee;do{}while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o);e.match_length=Cee-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=iee(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=iee(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Iee(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===cee?(Iee(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Iee(e,!1),0===e.strm.avail_out)?1:2})(n,t):Vee[n.level].func(n,t);if(3!==r&&4!==r||(n.status=Mee),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),dee;if(2===r&&(t===see?oee(n):t!==uee&&(nee(n,0,0,!1),t===lee&&(Aee(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Pee(e),0===e.avail_out))return n.last_flush=-1,dee}return t!==cee?dee:n.wrap<=0?hee:(2===n.wrap?(jee(n,255&e.adler),jee(n,e.adler>>8&255),jee(n,e.adler>>16&255),jee(n,e.adler>>24&255),jee(n,255&e.total_in),jee(n,e.total_in>>8&255),jee(n,e.total_in>>16&255),jee(n,e.total_in>>24&255)):(Ree(n,e.adler>>>16),Ree(n,65535&e.adler)),Pee(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?dee:hee)},Zee={deflateInit:(e,t)=>Jee(e,t,Eee,15,8,_ee),deflateInit2:Jee,deflateReset:Kee,deflateResetKeep:$ee,deflateSetHeader:(e,t)=>Gee(e)||2!==e.state.wrap?fee:(e.state.gzhead=t,dee),deflate:Xee,deflateEnd:e=>{if(Gee(e))return fee;const t=e.state.status;return e.state=null,t===Tee?Oee(e,pee):dee},deflateSetDictionary:(e,t)=>{let n=t.length;if(Gee(e))return fee;const r=e.state,i=r.wrap;if(2===i||1===i&&r.status!==See||r.lookahead)return fee;if(1===i&&(e.adler=J9(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(Aee(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const o=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Yee(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do{r.ins_h=Nee(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=2,Yee(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=a,e.input=s,e.avail_in=o,r.wrap=i,dee},deflateInfo:"pako deflate (from Nodeca project)"};const Qee=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var ete={assign:function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)Qee(n,t)&&(e[t]=n[t])}}return e},flattenChunks:e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t+=e[n].length;const n=new Uint8Array(t);for(let t=0,r=0,i=e.length;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n}};let tte=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){tte=!1}const nte=new Uint8Array(256);for(let e=0;e<256;e++)nte[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;nte[254]=nte[254]=1;var rte={string2buf:e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,i,o,a=e.length,s=0;for(i=0;i<a;i++)n=e.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=e.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),o=0,i=0;o<s;i++)n=e.charCodeAt(i),55296==(64512&n)&&i+1<a&&(r=e.charCodeAt(i+1),56320==(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[o++]=n:n<2048?(t[o++]=192|n>>>6,t[o++]=128|63&n):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|63&n):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|63&n);return t},buf2string:(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let r,i;const o=new Array(2*n);for(i=0,r=0;r<n;){let t=e[r++];if(t<128){o[i++]=t;continue}let a=nte[t];if(a>4)o[i++]=65533,r+=a-1;else{for(t&=2===a?31:3===a?15:7;a>1&&r<n;)t=t<<6|63&e[r++],a--;a>1?o[i++]=65533:t<65536?o[i++]=t:(t-=65536,o[i++]=55296|t>>10&1023,o[i++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&tte)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n})(o,i)},utf8border:(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+nte[e[n]]>t?n:t}};var ite=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};const ote=Object.prototype.toString,{Z_NO_FLUSH:ate,Z_SYNC_FLUSH:ste,Z_FULL_FLUSH:lte,Z_FINISH:cte,Z_OK:ute,Z_STREAM_END:dte,Z_DEFAULT_COMPRESSION:hte,Z_DEFAULT_STRATEGY:fte,Z_DEFLATED:pte}=eee;function gte(e){this.options=ete.assign({level:hte,method:pte,chunkSize:16384,windowBits:15,memLevel:8,strategy:fte},e||{});let 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,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ite,this.strm.avail_out=0;let n=Zee.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==ute)throw new Error(Q9[n]);if(t.header&&Zee.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?rte.string2buf(t.dictionary):"[object ArrayBuffer]"===ote.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Zee.deflateSetDictionary(this.strm,e),n!==ute)throw new Error(Q9[n]);this._dict_set=!0}}function mte(e,t){const n=new gte(t);if(n.push(e,!0),n.err)throw n.msg||Q9[n.err];return n.result}gte.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,o;if(this.ended)return!1;for(o=t===~~t?t:!0===t?cte:ate,"string"==typeof e?n.input=rte.string2buf(e):"[object ArrayBuffer]"===ote.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===ste||o===lte)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(i=Zee.deflate(n,o),i===dte)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Zee.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===ute;if(0!==n.avail_out){if(o>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},gte.prototype.onData=function(e){this.chunks.push(e)},gte.prototype.onEnd=function(e){e===ute&&(this.result=ete.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var vte=function(e,t){return(t=t||{}).raw=!0,mte(e,t)},yte=function(e,t){return(t=t||{}).gzip=!0,mte(e,t)},bte={Deflate:gte,deflate:mte,deflateRaw:vte,gzip:yte,constants:eee};const wte=16209;var _te=function(e,t){let n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,w,_,x,E,C,k;const S=e.state;n=e.next_in,C=e.input,r=n+(e.avail_in-5),i=e.next_out,k=e.output,o=i-(t-e.avail_out),a=i+(e.avail_out-257),s=S.dmax,l=S.wsize,c=S.whave,u=S.wnext,d=S.window,h=S.hold,f=S.bits,p=S.lencode,g=S.distcode,m=(1<<S.lenbits)-1,v=(1<<S.distbits)-1;e:do{f<15&&(h+=C[n++]<<f,f+=8,h+=C[n++]<<f,f+=8),y=p[h&m];t:for(;;){if(b=y>>>24,h>>>=b,f-=b,b=y>>>16&255,0===b)k[i++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=p[(65535&y)+(h&(1<<b)-1)];continue t}if(32&b){S.mode=16191;break e}e.msg="invalid literal/length code",S.mode=wte;break e}w=65535&y,b&=15,b&&(f<b&&(h+=C[n++]<<f,f+=8),w+=h&(1<<b)-1,h>>>=b,f-=b),f<15&&(h+=C[n++]<<f,f+=8,h+=C[n++]<<f,f+=8),y=g[h&v];n:for(;;){if(b=y>>>24,h>>>=b,f-=b,b=y>>>16&255,!(16&b)){if(0==(64&b)){y=g[(65535&y)+(h&(1<<b)-1)];continue n}e.msg="invalid distance code",S.mode=wte;break e}if(_=65535&y,b&=15,f<b&&(h+=C[n++]<<f,f+=8,f<b&&(h+=C[n++]<<f,f+=8)),_+=h&(1<<b)-1,_>s){e.msg="invalid distance too far back",S.mode=wte;break e}if(h>>>=b,f-=b,b=i-o,_>b){if(b=_-b,b>c&&S.sane){e.msg="invalid distance too far back",S.mode=wte;break e}if(x=0,E=d,0===u){if(x+=l-b,b<w){w-=b;do{k[i++]=d[x++]}while(--b);x=i-_,E=k}}else if(u<b){if(x+=l+u-b,b-=u,b<w){w-=b;do{k[i++]=d[x++]}while(--b);if(x=0,u<w){b=u,w-=b;do{k[i++]=d[x++]}while(--b);x=i-_,E=k}}}else if(x+=u-b,b<w){w-=b;do{k[i++]=d[x++]}while(--b);x=i-_,E=k}for(;w>2;)k[i++]=E[x++],k[i++]=E[x++],k[i++]=E[x++],w-=3;w&&(k[i++]=E[x++],w>1&&(k[i++]=E[x++]))}else{x=i-_;do{k[i++]=k[x++],k[i++]=k[x++],k[i++]=k[x++],w-=3}while(w>2);w&&(k[i++]=k[x++],w>1&&(k[i++]=k[x++]))}break}}break}}while(n<r&&i<a);w=f>>3,n-=w,f-=w<<3,h&=(1<<f)-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=i<a?a-i+257:257-(i-a),S.hold=h,S.bits=f};const xte=15,Ete=new Uint16Array([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]),Cte=new Uint8Array([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]),kte=new Uint16Array([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]),Ste=new Uint8Array([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]);var Tte=(e,t,n,r,i,o,a,s)=>{const l=s.bits;let c,u,d,h,f,p,g=0,m=0,v=0,y=0,b=0,w=0,_=0,x=0,E=0,C=0,k=null;const S=new Uint16Array(16),T=new Uint16Array(16);let M,O,L,A=null;for(g=0;g<=xte;g++)S[g]=0;for(m=0;m<r;m++)S[t[n+m]]++;for(b=l,y=xte;y>=1&&0===S[y];y--);if(b>y&&(b=y),0===y)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(v=1;v<y&&0===S[v];v++);for(b<v&&(b=v),x=1,g=1;g<=xte;g++)if(x<<=1,x-=S[g],x<0)return-1;if(x>0&&(0===e||1!==y))return-1;for(T[1]=0,g=1;g<xte;g++)T[g+1]=T[g]+S[g];for(m=0;m<r;m++)0!==t[n+m]&&(a[T[t[n+m]]++]=m);if(0===e?(k=A=a,p=20):1===e?(k=Ete,A=Cte,p=257):(k=kte,A=Ste,p=0),C=0,m=0,g=v,f=o,w=b,_=0,d=-1,E=1<<b,h=E-1,1===e&&E>852||2===e&&E>592)return 1;for(;;){M=g-_,a[m]+1<p?(O=0,L=a[m]):a[m]>=p?(O=A[a[m]-p],L=k[a[m]-p]):(O=96,L=0),c=1<<g-_,u=1<<w,v=u;do{u-=c,i[f+(C>>_)+u]=M<<24|O<<16|L|0}while(0!==u);for(c=1<<g-1;C&c;)c>>=1;if(0!==c?(C&=c-1,C+=c):C=0,m++,0==--S[g]){if(g===y)break;g=t[n+a[m]]}if(g>b&&(C&h)!==d){for(0===_&&(_=b),f+=v,w=g-_,x=1<<w;w+_<y&&(x-=S[w+_],!(x<=0));)w++,x<<=1;if(E+=1<<w,1===e&&E>852||2===e&&E>592)return 1;d=C&h,i[d]=b<<24|w<<16|f-o|0}}return 0!==C&&(i[f+C]=g-_<<24|64<<16|0),s.bits=b,0};const{Z_FINISH:Mte,Z_BLOCK:Ote,Z_TREES:Lte,Z_OK:Ate,Z_STREAM_END:Dte,Z_NEED_DICT:Nte,Z_STREAM_ERROR:Pte,Z_DATA_ERROR:Ite,Z_MEM_ERROR:jte,Z_BUF_ERROR:Rte,Z_DEFLATED:Fte}=eee,zte=16180,Yte=16190,Bte=16191,Hte=16192,qte=16194,Ute=16199,Vte=16200,Wte=16206,Gte=16209,$te=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Kte(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Jte=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<zte||t.mode>16211?1:0},Xte=e=>{if(Jte(e))return Pte;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=zte,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Ate},Zte=e=>{if(Jte(e))return Pte;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Xte(e)},Qte=(e,t)=>{let n;if(Jte(e))return Pte;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Pte:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Zte(e))},ene=(e,t)=>{if(!e)return Pte;const n=new Kte;e.state=n,n.strm=e,n.window=null,n.mode=zte;const r=Qte(e,t);return r!==Ate&&(e.state=null),r};let tne,nne,rne=!0;const ine=e=>{if(rne){tne=new Int32Array(512),nne=new Int32Array(32);let t=0;for(;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(Tte(1,e.lens,0,288,tne,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Tte(2,e.lens,0,32,nne,0,e.work,{bits:5}),rne=!1}e.lencode=tne,e.lenbits=9,e.distcode=nne,e.distbits=5},one=(e,t,n,r)=>{let i;const o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new Uint8Array(o.wsize)),r>=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),(r-=i)?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0};var ane=(e,t)=>{let n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,w,_,x,E,C=0;const k=new Uint8Array(4);let S,T;const M=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Jte(e)||!e.output||!e.input&&0!==e.avail_in)return Pte;n=e.state,n.mode===Bte&&(n.mode=Hte),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,d=s,h=l,E=Ate;e:for(;;)switch(n.mode){case zte:if(0===n.wrap){n.mode=Hte;break}for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(2&n.wrap&&35615===c){0===n.wbits&&(n.wbits=15),n.check=0,k[0]=255&c,k[1]=c>>>8&255,n.check=Z9(n.check,k,2,0),c=0,u=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Gte;break}if((15&c)!==Fte){e.msg="unknown compression method",n.mode=Gte;break}if(c>>>=4,u-=4,x=8+(15&c),0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){e.msg="invalid window size",n.mode=Gte;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&c?16189:Bte,c=0,u=0;break;case 16181:for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(n.flags=c,(255&n.flags)!==Fte){e.msg="unknown compression method",n.mode=Gte;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Gte;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&4&n.wrap&&(k[0]=255&c,k[1]=c>>>8&255,n.check=Z9(n.check,k,2,0)),c=0,u=0,n.mode=16182;case 16182:for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&4&n.wrap&&(k[0]=255&c,k[1]=c>>>8&255,k[2]=c>>>16&255,k[3]=c>>>24&255,n.check=Z9(n.check,k,4,0)),c=0,u=0,n.mode=16183;case 16183:for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&4&n.wrap&&(k[0]=255&c,k[1]=c>>>8&255,n.check=Z9(n.check,k,2,0)),c=0,u=0,n.mode=16184;case 16184:if(1024&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&4&n.wrap&&(k[0]=255&c,k[1]=c>>>8&255,n.check=Z9(n.check,k,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(f=n.length,f>s&&(f=s),f&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+f),x)),512&n.flags&&4&n.wrap&&(n.check=Z9(n.check,r,f,o)),s-=f,o+=f,n.length-=f),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;f=0;do{x=r[o+f++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&f<s);if(512&n.flags&&4&n.wrap&&(n.check=Z9(n.check,r,f,o)),s-=f,o+=f,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===s)break e;f=0;do{x=r[o+f++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&f<s);if(512&n.flags&&4&n.wrap&&(n.check=Z9(n.check,r,f,o)),s-=f,o+=f,x)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(4&n.wrap&&c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Gte;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Bte;break;case 16189:for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}e.adler=n.check=$te(c),c=0,u=0,n.mode=Yte;case Yte:if(0===n.havedict)return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,Nte;e.adler=n.check=1,n.mode=Bte;case Bte:if(t===Ote||t===Lte)break e;case Hte:if(n.last){c>>>=7&u,u-=7&u,n.mode=Wte;break}for(;u<3;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}switch(n.last=1&c,c>>>=1,u-=1,3&c){case 0:n.mode=16193;break;case 1:if(ine(n),n.mode=Ute,t===Lte){c>>>=2,u-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=Gte}c>>>=2,u-=2;break;case 16193:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Gte;break}if(n.length=65535&c,c=0,u=0,n.mode=qte,t===Lte)break e;case qte:n.mode=16195;case 16195:if(f=n.length,f){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;i.set(r.subarray(o,o+f),a),s-=f,o+=f,l-=f,a+=f,n.length-=f;break}n.mode=Bte;break;case 16196:for(;u<14;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Gte;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.lens[M[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[M[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},E=Tte(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid code lengths set",n.mode=Gte;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;C=n.lencode[c&(1<<n.lenbits)-1],m=C>>>24,v=C>>>16&255,y=65535&C,!(m<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(y<16)c>>>=m,u-=m,n.lens[n.have++]=y;else{if(16===y){for(T=m+2;u<T;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(c>>>=m,u-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=Gte;break}x=n.lens[n.have-1],f=3+(3&c),c>>>=2,u-=2}else if(17===y){for(T=m+3;u<T;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=m,u-=m,x=0,f=3+(7&c),c>>>=3,u-=3}else{for(T=m+7;u<T;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=m,u-=m,x=0,f=11+(127&c),c>>>=7,u-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Gte;break}for(;f--;)n.lens[n.have++]=x}}if(n.mode===Gte)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Gte;break}if(n.lenbits=9,S={bits:n.lenbits},E=Tte(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,E){e.msg="invalid literal/lengths set",n.mode=Gte;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},E=Tte(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,E){e.msg="invalid distances set",n.mode=Gte;break}if(n.mode=Ute,t===Lte)break e;case Ute:n.mode=Vte;case Vte:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,_te(e,h),a=e.next_out,i=e.output,l=e.avail_out,o=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===Bte&&(n.back=-1);break}for(n.back=0;C=n.lencode[c&(1<<n.lenbits)-1],m=C>>>24,v=C>>>16&255,y=65535&C,!(m<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(v&&0==(240&v)){for(b=m,w=v,_=y;C=n.lencode[_+((c&(1<<b+w)-1)>>b)],m=C>>>24,v=C>>>16&255,y=65535&C,!(b+m<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=b,u-=b,n.back+=b}if(c>>>=m,u-=m,n.back+=m,n.length=y,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=Bte;break}if(64&v){e.msg="invalid literal/length code",n.mode=Gte;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(T=n.extra;u<T;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;C=n.distcode[c&(1<<n.distbits)-1],m=C>>>24,v=C>>>16&255,y=65535&C,!(m<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(0==(240&v)){for(b=m,w=v,_=y;C=n.distcode[_+((c&(1<<b+w)-1)>>b)],m=C>>>24,v=C>>>16&255,y=65535&C,!(b+m<=u);){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}c>>>=b,u-=b,n.back+=b}if(c>>>=m,u-=m,n.back+=m,64&v){e.msg="invalid distance code",n.mode=Gte;break}n.offset=y,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(T=n.extra;u<T;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Gte;break}n.mode=16204;case 16204:if(0===l)break e;if(f=h-l,n.offset>f){if(f=n.offset-f,f>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Gte;break}f>n.wnext?(f-=n.wnext,p=n.wsize-f):p=n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=i,p=a-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[a++]=g[p++]}while(--f);0===n.length&&(n.mode=Vte);break;case 16205:if(0===l)break e;i[a++]=n.length,l--,n.mode=Vte;break;case Wte:if(n.wrap){for(;u<32;){if(0===s)break e;s--,c|=r[o++]<<u,u+=8}if(h-=l,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?Z9(n.check,i,h,a-h):J9(n.check,i,h,a-h)),h=l,4&n.wrap&&(n.flags?c:$te(c))!==n.check){e.msg="incorrect data check",n.mode=Gte;break}c=0,u=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break e;s--,c+=r[o++]<<u,u+=8}if(4&n.wrap&&c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Gte;break}c=0,u=0}n.mode=16208;case 16208:E=Dte;break e;case Gte:E=Ite;break e;case 16210:return jte;default:return Pte}return e.next_out=a,e.avail_out=l,e.next_in=o,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||h!==e.avail_out&&n.mode<Gte&&(n.mode<Wte||t!==Mte))&&one(e,e.output,e.next_out,h-e.avail_out),d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,4&n.wrap&&h&&(e.adler=n.check=n.flags?Z9(n.check,i,h,e.next_out-h):J9(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Bte?128:0)+(n.mode===Ute||n.mode===qte?256:0),(0===d&&0===h||t===Mte)&&E===Ate&&(E=Rte),E},sne={inflateReset:Zte,inflateReset2:Qte,inflateResetKeep:Xte,inflateInit:e=>ene(e,15),inflateInit2:ene,inflate:ane,inflateEnd:e=>{if(Jte(e))return Pte;let t=e.state;return t.window&&(t.window=null),e.state=null,Ate},inflateGetHeader:(e,t)=>{if(Jte(e))return Pte;const n=e.state;return 0==(2&n.wrap)?Pte:(n.head=t,t.done=!1,Ate)},inflateSetDictionary:(e,t)=>{const n=t.length;let r,i,o;return Jte(e)?Pte:(r=e.state,0!==r.wrap&&r.mode!==Yte?Pte:r.mode===Yte&&(i=1,i=J9(i,t,n,0),i!==r.check)?Ite:(o=one(e,t,n,n),o?(r.mode=16210,jte):(r.havedict=1,Ate)))},inflateInfo:"pako inflate (from Nodeca project)"};var lne=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};const cne=Object.prototype.toString,{Z_NO_FLUSH:une,Z_FINISH:dne,Z_OK:hne,Z_STREAM_END:fne,Z_NEED_DICT:pne,Z_STREAM_ERROR:gne,Z_DATA_ERROR:mne,Z_MEM_ERROR:vne}=eee;function yne(e){this.options=ete.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ite,this.strm.avail_out=0;let n=sne.inflateInit2(this.strm,t.windowBits);if(n!==hne)throw new Error(Q9[n]);if(this.header=new lne,sne.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=rte.string2buf(t.dictionary):"[object ArrayBuffer]"===cne.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=sne.inflateSetDictionary(this.strm,t.dictionary),n!==hne)))throw new Error(Q9[n])}function bne(e,t){const n=new yne(t);if(n.push(e),n.err)throw n.msg||Q9[n.err];return n.result}yne.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let o,a,s;if(this.ended)return!1;for(a=t===~~t?t:!0===t?dne:une,"[object ArrayBuffer]"===cne.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=sne.inflate(n,a),o===pne&&i&&(o=sne.inflateSetDictionary(n,i),o===hne?o=sne.inflate(n,a):o===mne&&(o=pne));n.avail_in>0&&o===fne&&n.state.wrap>0&&0!==e[n.next_in];)sne.inflateReset(n),o=sne.inflate(n,a);switch(o){case gne:case mne:case pne:case vne:return this.onEnd(o),this.ended=!0,!1}if(s=n.avail_out,n.next_out&&(0===n.avail_out||o===fne))if("string"===this.options.to){let e=rte.utf8border(n.output,n.next_out),t=n.next_out-e,i=rte.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(i)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(o!==hne||0!==s){if(o===fne)return o=sne.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},yne.prototype.onData=function(e){this.chunks.push(e)},yne.prototype.onEnd=function(e){e===hne&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=ete.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var wne=function(e,t){return(t=t||{}).raw=!0,bne(e,t)},_ne={Inflate:yne,inflate:bne,inflateRaw:wne,ungzip:bne,constants:eee};const{Deflate:xne,deflate:Ene,deflateRaw:Cne,gzip:kne}=bte,{Inflate:Sne,inflate:Tne,inflateRaw:Mne,ungzip:One}=_ne;var Lne=Ene,Ane="Field__s9Nfs",Dne={width:"10px",height:"10px",marginRight:"2px"},Nne={Primary:y.memo((function(e){return y.createElement("svg",{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",style:Dne},y.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"}))})),Unique:y.memo((function(e){return y.createElement("svg",{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:Dne},y.createElement("path",{d:"M484.4 294.4c1.715 6.402 .6758 12.89-2.395 18.21s-8.172 9.463-14.57 11.18l-31.46 8.43l32.96 19.03C480.4 357.8 484.4 372.5 477.8 384s-21.38 15.41-32.86 8.783l-32.96-19.03l8.43 31.46c3.432 12.81-4.162 25.96-16.97 29.39s-25.96-4.162-29.39-16.97l-20.85-77.82L280 297.6v84.49l56.97 56.97c9.375 9.375 9.375 24.56 0 33.94C332.3 477.7 326.1 480 320 480s-12.28-2.344-16.97-7.031L280 449.9V488c0 13.25-10.75 24-24 24s-24-10.75-24-24v-38.06l-23.03 23.03c-9.375 9.375-24.56 9.375-33.94 0s-9.375-24.56 0-33.94L232 382.1V297.6l-73.17 42.25l-20.85 77.82c-3.432 12.81-16.58 20.4-29.39 16.97s-20.4-16.58-16.97-29.39l8.43-31.46l-32.96 19.03C55.61 399.4 40.85 395.5 34.22 384s-2.615-26.16 8.859-32.79l32.96-19.03l-31.46-8.43c-12.81-3.432-20.4-16.58-16.97-29.39s16.58-20.4 29.39-16.97l77.82 20.85L208 255.1L134.8 213.8L57.01 234.6C44.2 238 31.05 230.4 27.62 217.6s4.162-25.96 16.97-29.39l31.46-8.432L43.08 160.8C31.61 154.2 27.6 139.5 34.22 128s21.38-15.41 32.86-8.785l32.96 19.03L91.62 106.8C88.18 93.98 95.78 80.83 108.6 77.39s25.96 4.162 29.39 16.97l20.85 77.82L232 214.4V129.9L175 72.97c-9.375-9.375-9.375-24.56 0-33.94s24.56-9.375 33.94 0L232 62.06V24C232 10.75 242.8 0 256 0s24 10.75 24 24v38.06l23.03-23.03c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L280 129.9v84.49l73.17-42.25l20.85-77.82c3.432-12.81 16.58-20.4 29.39-16.97c6.402 1.715 11.5 5.861 14.57 11.18s4.109 11.81 2.395 18.21l-8.43 31.46l32.96-19.03C456.4 112.6 471.2 116.5 477.8 128s2.615 26.16-8.859 32.78l-32.96 19.03l31.46 8.432c12.81 3.432 20.4 16.58 16.97 29.39s-16.58 20.4-29.39 16.97l-77.82-20.85L304 255.1l73.17 42.25l77.82-20.85C467.8 273.1 480.1 281.6 484.4 294.4z"}))})),Index:y.memo((function(e){return y.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 288 512",style:Dne},y.createElement("path",{fill:"currentColor",d:"M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 71.4 51.9 130.6 120 142v150c0 6.6 5.4 12 12 12h24c6.6 0 12-5.4 12-12V318c68.1-11.4 120-70.6 120-142zm-144 96c-52.9 0-96-43.1-96-96s43.1-96 96-96 96 43.1 96 96-43.1 96-96 96z"}))}))};function Pne(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 Ine(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pne(Object(n),!0).forEach((function(t){tm()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jne=y.memo((function(e){var t,n=e.field,r=ky(null===(t=jF.er.current)||void 0===t?void 0:t.graph).findById(n.graphId),i=fm((function(){IF.er.field.hover(n)})),o=fm((function(){IF.er.field.leave(n)})),a=fm((function(e){})),s=fm((function(){IF.er.field.pin.set(n)})),l={div:{position:"relative",display:"flex",height:Qg.er.graph.field.height,padding:"0 8px 0 ".concat(null!=r&&r.icon?4:8,"px"),cursor:"pointer"},span:{display:"block",height:"100%",overflow:"hidden","font-family":"verdana, sans serif","font-size":"13px","line-height":Qg.er.graph.field.height,"text-overflow":"ellipsis","word-break":"keep-all",transform:"scale(0.916)"},icon:{display:"flex",alignItems:"center",width:12*((null==r?void 0:r.icon)||0),flexShrink:0},title:{flex:"1","transform-origin":"left"},type:{"flex-shrink":"0",color:"#bebebe",transform:"scale(0.83)","transform-origin":"right"},primary:n.isPrimaryKey?{"font-weight":"bold"}:{},primary_span:n.isPrimaryKey?{transform:"scale(0.84)"}:{},primary_span_type:n.isPrimaryKey?{transform:"scale(0.76)"}:{}};return y.createElement("div",{className:Y()(Ane,{highlight:n.highlight,mouseover:n.mouseover,primary:n.isPrimaryKey}),style:Ine(Ine({},l.div),l.primary),onMouseEnter:i,onMouseLeave:o,onContextMenu:a,onClick:s,"data-field-id":n.id,"data-dbo-id":n.dboId},y.createElement("div",{className:"icon",style:Ine({},l.icon)},n.isPrimaryKey&&y.createElement(Nne.Primary,null),n.isUniqueKey&&y.createElement(Nne.Unique,null),(n.isIndexKey||n.isForeignKey)&&y.createElement(Nne.Index,null)),y.createElement("span",{className:"title",style:Ine(Ine(Ine({},l.span),l.title),l.primary_span)},n.titleFixWidth),y.createElement("span",{className:"type",style:Ine(Ine(Ine(Ine({},l.span),l.type),l.primary_span),l.primary_span_type)},n.dataType))})),Rne="Rect__MwLfS",Fne=y.memo((function(e){var t,n=null===(t=e.node)||void 0===t?void 0:t.toJSON(),r=gm((function(e){var t;return ky(null===(t=e.er.current)||void 0===t?void 0:t.graph).findById(null==n?void 0:n.id)})),i=gm((function(e){var t;return ky(null===(t=e.er.current)||void 0===t?void 0:t.field).findByIds(null==r?void 0:r.fields)})),o={rect:{width:"100%",height:"100%",cursor:"pointer",background:"white",borderTopColor:"#38c172",borderTopStyle:"solid",borderTopWidth:6,borderRadius:4,borderTopLeftRadius:6,borderTopRightRadius:6,boxShadow:"rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,rgba(0, 0, 0, 0.1) 0px 2px 4px -2px"},title:{height:"22px",backgroundColor:"rgb(248, 250, 252)",borderBottom:"1px solid rgb(203, 213, 225)"},span:{display:"block",width:"100%",overflow:"hidden",fontFamily:"verdana, sans serif",fontSize:"12px",lineHeight:"22px",color:"rgb(51, 65, 85)",textAlign:"center",textOverflow:"ellipsis",transform:"scale(0.916)"}};return r?y.createElement("div",{className:Rne,style:o.rect,"data-graph-id":r.id},y.createElement("div",{className:"title",style:o.title},y.createElement("span",{style:o.span},r.title)),y.createElement("div",{className:"field"},i.map((function(e){return y.createElement(jne,{key:e.id,field:e})})))):null}),(function(e,t){var n;return Boolean(null===(n=t.node)||void 0===n?void 0:n.hasChanged("data"))})),zne="Loading___Rz_J",Yne=y.memo((function(e){var t=gm((function(e){return e.loading.er.spinning}));return t?y.createElement("div",{className:zne,style:{zIndex:Qg.sqlflow.loading.zIndex}},y.createElement(NW,{spinning:!0,size:"large",tip:"analyzing"})):null})),Bne="Empty___y76F",Hne={empty:y.createElement(z$,{id:"sqlflow.empty",defaultMessage:"No relation found."})},qne=y.memo((function(e){return gm((function(e){var t;return 0==e.loading.er.spinning&&!Boolean(null===(t=e.er.current)||void 0===t?void 0:t.graph.all.length)}))?y.createElement(GU,{x:"center",y:"center",className:Bne},y.createElement(zn,{image:zn.PRESENTED_IMAGE_SIMPLE,description:Hne.empty})):null})),Une="Setting___RoOh",Vne=y.memo((function(e){var t=gm((function(e){return e.er.setting})),n=fm((function(e){IF.er.setting.tableMovable.set(e)}));return y.createElement(KU,{className:Une},y.createElement("div",null,y.createElement(GU,{y:"center",x:"between",className:"line"},y.createElement(GU,{y:"center"},y.createElement("div",{className:"title"},"table movable")),y.createElement(o8,{checked:t.tableMovable,onChange:n}))))})),Wne={Scale:"Scale___Xun7"},Gne={zoomin:y.createElement(z$,{id:"sqlflow.scale.zoomin",defaultMessage:"zoom in"}),zoomout:y.createElement(z$,{id:"sqlflow.scale.zoomout",defaultMessage:"zoom out"}),reset:y.createElement(z$,{id:"sqlflow.scale.reset",defaultMessage:"reset"})},$ne=y.memo((function(e){return y.createElement("div",{className:Wne.Scale},y.createElement(P$,{title:Gne.zoomin,placement:"left"},y.createElement("div",{onClick:IF.er.current.scale.zoomIn},y.createElement(BU.Icon.ZoomIn,null))),y.createElement(P$,{title:Gne.zoomout,placement:"left"},y.createElement("div",{onClick:IF.er.current.scale.zoomOut},y.createElement(BU.Icon.ZoomOut,null))),y.createElement(P$,{title:Gne.reset,placement:"left"},y.createElement("div",{onClick:IF.er.current.scale.reset},y.createElement(BU.Icon.Reset,null))),y.createElement(W$,{placement:"left",title:y.createElement("div",{className:Wne.Title},"setting"),overlayStyle:{zIndex:Qg.sqlflow.visualize.setting.zIndex},content:y.createElement(Vne,null),trigger:"click"},y.createElement("div",{className:"icon"},y.createElement(BU.Icon.Setting,null))),y.createElement(Kne,null))})),Kne=y.memo((function(e){var t=gm((function(e){var t;return(null===(t=e.er.current)||void 0===t?void 0:t.scale.value)||1}));return y.useEffect((function(){var e;null===(e=RF.er.graph)||void 0===e||e.zoomTo(t)}),[t]),null})),Jne=Q7.getProvider();RR.registerNode("er-rect",{inherit:"react-shape",component:y.createElement(Fne,null)});var Xne=y.memo((function(e){var t=y.useRef({container:null,minimap:null,scroller:null,graph:null,resizeObserver:null}),n=gm((function(e){return e.widget.width}));y.useEffect((function(){var e;if(t.current.container&&t.current.minimap){var n=null===(e=RF.er.scroller)||void 0===e?void 0:e.getBoundingClientRect(),r=(null==n?void 0:n.width)||document.documentElement.offsetWidth,i=(null==n?void 0:n.height)||document.documentElement.offsetHeight;return RF.er.graph=t.current.graph=new RR({container:t.current.container,width:r,height:i,background:{color:"#eee"},autoResize:!0,scroller:{enabled:!0,pannable:!0,autoResize:!0,padding:50,pageWidth:100,pageHeight:100},interacting:function(){return{nodeMovable:jF.er.setting.tableMovable,edgeMovable:!1}}}),function(){var e;null===(e=RF.er.graph)||void 0===e||e.dispose()}}}),[]),pm("ER");var r=fm((function(e){var n;(RF.er.scroller=t.current.scroller=e,t.current.resizeObserver||(t.current.resizeObserver=new ResizeObserver((function(e){Zne()}))),e)&&(null===(n=t.current.resizeObserver)||void 0===n||n.observe(e))})),i=fm((function(e){t.current.minimap=e})),o=fm((function(e){t.current.container=e})),a=fm((function(){RU.er.saveAsPNG()})),s=fm((function(){var e=jF.er.current;if(e){var t="---\ntitle: er diagram from ".concat(og,"\n---\nerDiagram\n"),n="".concat(t),r=" ".repeat(4),i=" ".repeat(8),o=function(e){return e.includes('"')?e:'"'.concat(e,'"')};ky(e.graph).forEach((function(t){n+="".concat(r).concat(o(t.title)," {\n"),ky(e.field).findByIds(t.fields).forEach((function(e){var t,r=[];e.isPrimaryKey&&r.push("PK"),e.isUniqueKey&&r.push("UK"),(e.isIndexKey||e.isForeignKey)&&r.push("FK");var o=r.length>0?r.join(","):"";n+="".concat(i).concat(function(e){return e.title.replaceAll('"',"").replaceAll("`","")}(e)," ").concat(null!==(t=e.dataType)&&void 0!==t?t:"unkonwn"," ").concat(o,"\n")})),n+="".concat(r,"}\n")})),ky(e.edge).forEach((function(t){var i=ky(e.graph).findById(t.source.graphId),a=ky(e.graph).findById(t.target.graphId);i&&a&&(n+="".concat(r).concat(o(i.title)," }|..|{ ").concat(o(a.title)," : uses\n"))}));var a={code:n,mermaid:'{\n "theme": "dark"\n}',autoSync:!0,updateDiagram:!1,editorMode:"code"},s="https://mermaid.live/edit#pako:".concat(function(e){var t=(new TextEncoder).encode(e),n=Lne(t,{level:9});return u9(n,!0)}(JSON.stringify(a)));window.open(s)}})),l=fm((function(){IF.er.field.pin.cancel()})),c=y.createElement(q0,null,y.createElement(q0.Item,{onClick:a},"download as png"),y.createElement(q0.Item,{onClick:s},"show graph in mermaid editor"),y.createElement(q0.Item,{onClick:l},"cancel"));return Xp&&(c=y.createElement(q0,null,y.createElement(q0.Item,{onClick:a},"download as png"),y.createElement(q0.Item,{onClick:l},"cancel"))),y.createElement(nQ,{overlay:c,trigger:["contextMenu"],transitionName:""},y.createElement("div",{className:K7},y.createElement("div",{className:"scroller",style:{width:Xp?n:void 0},ref:r},y.createElement(Jne,null),y.createElement("div",{className:"minimap",ref:i}),y.createElement("div",{className:"container",ref:o}),y.createElement($ne,null),y.createElement(qne,null),y.createElement(Yne,null)),y.createElement(Qne,null)))})),Zne=function(){var e,t,n=null===(e=RF.er.scroller)||void 0===e?void 0:e.getBoundingClientRect(),r=(null==n?void 0:n.width)||800,i=(null==n?void 0:n.height)||600;null===(t=RF.er.graph)||void 0===t||t.resize(r,i)},Qne=y.memo((function(e){var t=gm((function(e){return e.tab.current}));y.useEffect((function(){var e=function(){Zne()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]);var n=gm((function(e){var t;return ky(null===(t=e.er.current)||void 0===t?void 0:t.edge).filter((function(e){return e.highlight})).map((function(e){return e.id}))}));y.useEffect((function(){var e;((null===(e=jF.er.current)||void 0===e?void 0:e.edge.all)||[]).forEach((function(e){var t,n=null===(t=RF.er.graph)||void 0===t?void 0:t.findViewByCell(e);null!=n&&n.isEdgeView()&&(n.cell.attrs={line:{stroke:"#ababab",targetMarker:{fill:"#ababab",stroke:"#ababab"}}})})),n.forEach((function(e){var t,n=null===(t=RF.er.graph)||void 0===t?void 0:t.findViewByCell(e);null!=n&&n.isEdgeView()&&(n.cell.attrs={line:{stroke:"black",targetMarker:{fill:"black",stroke:"black"}}})}))}),[n]);var r=gm((function(e){var t;return null===(t=e.er.current)||void 0===t?void 0:t.x6Data})),i=gm((function(e){var t,n;return null===(t=e.er.current)||void 0===t||null===(n=t.x6)||void 0===n?void 0:n.loaded}));return y.useEffect((function(){var e;if(r&&t===xg.er&&!0!==i){IF.er.current.x6.loaded();var n=ZR()(r);null===(e=RF.er.graph)||void 0===e||e.fromJSON(n),Zne()}}),[r,t,i]),y.useEffect((function(){var e;t===xg.er&&(Zne(),null===(e=RF.er.graph)||void 0===e||e.positionContent("top-left",{padding:40}))}),[t]),null})),ere=y.memo((function(e){var t=gm((function(e){return e.widget.component}));return y.createElement("div",{className:J7},y.createElement(GU,{className:"body"},y.createElement(GU,{className:"main"},t.sqlEditor&&y.createElement(b5,null),y.createElement(Xne,null))))})),tre=y.memo((function(e){var t=gm((function(e){return e.tab.current}));return y.createElement(ed,{value:cg.intl},t===xg.sqlflow?y.createElement(Y8,null):t===xg.lineage?y.createElement($7,null):t===xg.er?y.createElement(ere,null):null)})),nre={Head:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",onClick:IF.login.show},y.createElement("title",null,"my"),y.createElement("path",{d:"M509.41092347 17.48638025c-272.37085235 0-493.47798914 221.1071368-493.47798916 493.47798914 0 272.37085235 221.1071368 493.47798914 493.47798916 493.47798913 272.37085235 0 493.47798914-221.1071368 493.47798912-493.47798913-0.51781531-272.37085235-221.1071368-493.47798914-493.47798912-493.47798914z m296.70817184 843.00332247c-34.69362569-16.05227457-142.91702518-39.87177876-167.2543447-55.40623803-28.99765728-18.12353581-19.67698173-117.54407506-19.67698172-117.54407506l19.67698172-17.08790518s5.17815309-45.04993185 13.46319803-61.10220642c19.15916642-36.76488691 39.35396347-97.86709333 39.35396346-97.86709334s19.67698173-14.49882864 19.67698173-39.35396345-19.67698173-39.35396347-19.67698173-39.35396346 7.24941431-69.38725136 7.24941432-117.54407506c0-100.97398518-63.69128297-156.89803852-177.61065087-156.89803853-113.9193679 0-197.28763259 47.12119309-197.28763258 156.89803853 0 48.1568237 15.53445925 117.54407506 15.53445925 117.54407506s-19.67698173 14.49882864-19.67698172 39.35396346 19.67698173 39.35396347 19.67698172 39.35396345 22.78387358 70.94069728 39.35396347 97.86709334c9.32067555 15.53445925 13.46319803 61.10220642 13.46319801 61.10220642l19.67698173 17.08790518s9.32067555 99.42053925-19.67698173 117.54407506c-25.89076543 16.05227457-140.84576395 41.42522469-170.36123653 57.47749926-101.4918005-83.36826469-165.70089876-209.7152-165.70089878-351.07877926 0-252.17605531 204.01923161-456.19528691 456.19528692-456.19528691 252.17605531 0 456.19528691 204.01923161 456.19528691 456.19528691 0 140.32794864-63.17346765 265.63925333-162.59400691 349.00751803z",fill:"#7B7B7B","p-id":"27641"}),y.createElement("path",{d:"M509.41092347 17.48638025c-272.37085235 0-493.47798914 221.1071368-493.47798916 493.47798914 0 272.37085235 221.1071368 493.47798914 493.47798916 493.47798913 272.37085235 0 493.47798914-221.1071368 493.47798912-493.47798913-0.51781531-272.37085235-221.1071368-493.47798914-493.47798912-493.47798914z m296.70817184 843.00332247c-34.69362569-16.05227457-142.91702518-39.87177876-167.2543447-55.40623803-28.99765728-18.12353581-19.67698173-117.54407506-19.67698172-117.54407506l19.67698172-17.08790518s5.17815309-45.04993185 13.46319803-61.10220642c19.15916642-36.76488691 39.35396347-97.86709333 39.35396346-97.86709334s19.67698173-14.49882864 19.67698173-39.35396345-19.67698173-39.35396347-19.67698173-39.35396346 7.24941431-69.38725136 7.24941432-117.54407506c0-100.97398518-63.69128297-156.89803852-177.61065087-156.89803853-113.9193679 0-197.28763259 47.12119309-197.28763258 156.89803853 0 48.1568237 15.53445925 117.54407506 15.53445925 117.54407506s-19.67698173 14.49882864-19.67698172 39.35396346 19.67698173 39.35396347 19.67698172 39.35396345 22.78387358 70.94069728 39.35396347 97.86709334c9.32067555 15.53445925 13.46319803 61.10220642 13.46319801 61.10220642l19.67698173 17.08790518s9.32067555 99.42053925-19.67698173 117.54407506c-25.89076543 16.05227457-140.84576395 41.42522469-170.36123653 57.47749926-101.4918005-83.36826469-165.70089876-209.7152-165.70089878-351.07877926 0-252.17605531 204.01923161-456.19528691 456.19528692-456.19528691 252.17605531 0 456.19528691 204.01923161 456.19528691 456.19528691 0 140.32794864-63.17346765 265.63925333-162.59400691 349.00751803z"}))})),Help:y.memo((function(e){return y.createElement("svg",{className:"help",viewBox:"0 0 18 18",version:"1.1"},y.createElement("title",null,"feedback"),y.createElement("path",{d:"M9 1a8 8 0 1 0 0 16A8 8 0 0 0 9 1zm.81 12.13c-.02.71-.55 1.15-1.24 1.13-.66-.02-1.17-.49-1.15-1.2.02-.72.56-1.18 1.22-1.16.7.03 1.2.51 1.17 1.23zM11.77 8a5.8 5.8 0 0 1-1.02.91l-.53.37c-.26.2-.42.43-.5.69a4 4 0 0 0-.09.75c0 .05-.03.16-.18.16H7.88c-.16 0-.18-.1-.18-.15.03-.66.12-1.21.4-1.66a5.29 5.29 0 0 1 1.43-1.22c.16-.12.28-.25.38-.39a1.34 1.34 0 0 0 .02-1.71c-.24-.31-.51-.46-1.03-.46-.51 0-.8.26-1.02.6-.21.33-.18.73-.18 1.1H5.75c0-1.38.35-2.25 1.1-2.76.52-.35 1.17-.5 1.93-.5 1 0 1.79.18 2.49.71.64.5.98 1.18.98 2.12 0 .57-.2 1.05-.48 1.44z"}))})),Github:y.memo((function(e){return y.createElement("svg",{viewBox:"64 64 896 896",version:"1.1"},y.createElement("path",{d:"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 0138.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"}))})),Twitter:y.memo((function(e){return y.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M1024 512c0-282.763636-229.236364-512-512-512C229.236364 0 0 229.236364 0 512s229.236364 512 512 512C794.763636 1024 1024 794.763636 1024 512zM236.311273 693.946182c8.843636 1.117091 17.873455 1.722182 26.996364 1.722182 53.015273 0.093091 101.794909-19.037091 140.474182-51.153455-49.524364-1.163636-91.275636-36.165818-105.658182-84.200727 6.888727 1.442909 14.010182 2.280727 21.271273 2.327273 10.333091 0.046545 20.293818-1.349818 29.789091-4.049455-51.758545-11.450182-90.763636-60.555636-90.763636-119.063273 0-0.512 0-1.024 0-1.536 15.266909 9.216 32.674909 14.801455 51.246545 15.639273C279.365818 431.709091 259.397818 394.472727 259.397818 352.581818c0-22.155636 5.585455-42.821818 15.313455-60.509091 55.808 73.774545 139.170909 122.740364 233.146182 128.837818-1.954909-8.797091-2.932364-17.966545-2.932364-27.322182 0-66.141091 50.641455-118.923636 113.105455-117.899636 32.535273 0.558545 61.952 15.499636 82.571636 38.958545 25.786182-4.933818 49.989818-14.429091 71.819636-27.694545-8.424727 27.601455-26.391273 50.594909-49.757091 64.977455 22.900364-2.56 44.683636-8.610909 64.977455-17.780364-15.173818 23.598545-34.350545 44.218182-56.459636 60.695273 0.232727 5.12 0.325818 10.24 0.325818 15.36 0 157.044364-113.803636 338.152727-321.861818 338.059636C345.832727 748.311273 286.347636 728.296727 236.311273 693.946182z"}))})),Follow:y.memo((function(e){return y.createElement("svg",{className:"follow",viewBox:"0 0 24 24"},y.createElement("g",null,y.createElement("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})))})),Share:y.memo((function(e){return y.createElement("svg",{className:"share",viewBox:"0 0 1024 1024",version:"1.1"},y.createElement("path",{d:"M835.571429 369.142857a178.571429 178.571429 0 0 1-125-50.928571l-346.428572 129.214285a188.928571 188.928571 0 0 1 2.857143 28.571429 176.857143 176.857143 0 0 1-17.142857 75.214286l347.857143 169.785714a177.714286 177.714286 0 1 1-40.714286 112.357143 72.785714 72.785714 0 0 1 1.428571-12.428572l-386.428571-188.357142a174.857143 174.857143 0 0 1-83.571429 21.785714 178.571429 178.571429 0 1 1 127.142858-303.285714l344.285714-128.571429a235.714286 235.714286 0 0 1-2.857143-32.142857 178.571429 178.571429 0 1 1 178.571429 178.785714z"}))})),Love:y.memo((function(e){return y.createElement("svg",{className:"love",viewBox:"0 0 24 24"},y.createElement("g",null,y.createElement("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})))})),Retweet:y.memo((function(e){return y.createElement("svg",{className:"retweet",viewBox:"0 0 24 24"},y.createElement("g",null,y.createElement("path",{d:"M4.75 3.79l4.603 4.3-1.706 1.82L6 8.38v7.37c0 .97.784 1.75 1.75 1.75H13V20H7.75c-2.347 0-4.25-1.9-4.25-4.25V8.38L1.853 9.91.147 8.09l4.603-4.3zm11.5 2.71H11V4h5.25c2.347 0 4.25 1.9 4.25 4.25v7.37l1.647-1.53 1.706 1.82-4.603 4.3-4.603-4.3 1.706-1.82L18 15.62V8.25c0-.97-.784-1.75-1.75-1.75z"})))}))},rre={Twitter:"Twitter___ofKS",Menu:"Menu__pJBBr"},ire=y.memo((function(e){var t=y.createElement(q0,{className:rre.Menu},y.createElement(q0.Item,{key:"1"},y.createElement("a",{href:"https://twitter.com/GSqlflow",target:"_blank"},y.createElement(nre.Follow,null),y.createElement("span",{style:{left:0}},"follow @GSqlflow"))),y.createElement(q0.Item,{key:"2"},y.createElement("a",{href:"https://twitter.com/intent/tweet?text=Automated%20data%20lineage%20tool&url=https%3A%2F%2Fsqlflow.gudusoft.com&hashtags=sqlflow&via=GSqlflow",target:"_blank"},y.createElement(nre.Share,null),y.createElement("span",{style:{left:11}},"share"))),y.createElement(q0.Item,{key:"3"},y.createElement("a",{href:"https://twitter.com/intent/retweet?tweet_id=1583469001250078720",target:"_blank"},y.createElement(nre.Retweet,null),y.createElement("span",{style:{left:10}},"retweet"))),y.createElement(q0.Item,{key:"4"},y.createElement("a",{href:"https://twitter.com/intent/like?tweet_id=1583469001250078720",target:"_blank"},y.createElement(nre.Love,null),y.createElement("span",{style:{left:10}},"like"))));return y.createElement(nQ,{overlay:t,placement:"bottomCenter",overlayClassName:rre.Dropdown,align:{offset:[0,12]}},y.createElement("div",{className:rre.Twitter},y.createElement(nre.Twitter,null)))})),ore=__webpack_require__(30381),are=__webpack_require__.n(ore),sre="Info__XWwdH",lre=y.memo((function(e){var t=gm((function(e){return e.share.info})),n=are()(new Date(t.createTime));return y.createElement(KU,{className:sre},y.createElement(Y2,{bordered:!0,size:"small",column:1},t.dbobj&&y.createElement(Y2.Item,{label:"dbobj"},y.createElement("div",null,t.dbobj)),t.database&&y.createElement(Y2.Item,{label:"database"},y.createElement("div",null,t.database)),t.schema&&y.createElement(Y2.Item,{label:"schema"},y.createElement("div",null,t.schema)),t.table&&y.createElement(Y2.Item,{label:"table"},y.createElement("div",null,t.table)),t.column&&y.createElement(Y2.Item,{label:"column"},y.createElement("div",null,t.column)),y.createElement(Y2.Item,{label:"createTime"},y.createElement("div",null,n.format("YYYY-MM-DD HH:mm:ss"))),y.createElement(Y2.Item,{label:"spendTime"},y.createElement("div",null,t.spendTime,"s"))))})),cre="Share__CWjtM",ure="Title__Nda93",dre=y.memo((function(e){var t=gm((function(e){return e.tab.current}));return y.createElement(ed,{value:cg.intl},y.createElement("div",{className:cre},y.createElement(GU,{className:"header",y:"center",x:"between"},y.createElement("a",{className:"left",href:window.location.origin,target:"_blank"},y.createElement(VU,{cover:!0,className:"logo",url:"https://sqlflow.gudusoft.com/images/logo.png"})),y.createElement(GU,{className:"right"},y.createElement(W$,{trigger:"click",placement:"bottomRight",align:{offset:[8,2]},title:y.createElement("span",{className:ure},"info"),content:y.createElement(lre,null),overlayStyle:{maxWidth:400}},y.createElement("div",{className:"icon"},y.createElement(BU.Icon.Info,null))),y.createElement(ire,null),y.createElement("a",{target:"_blank",href:"https://github.com/sqlparser/sqlflow_public"},y.createElement(nre.Github,null)))),y.createElement("div",{className:"body"},t===xg.sqlflow?y.createElement(Y8,null):y.createElement($7,null))))})),hre=/(sqlflow\.widget(\.\d*\.\d*\.\d*)?)\.js(\?t=\d+)?/;function fre(e){e&&(e.style.width="100%",e.style.height="100%")}function pre(){var e=wy()(document.getElementsByTagName("script")).map((function(e){return e.src})).find((function(e){return hre.test(e)}));if(e)return e;throw new Error("cannot find sqlflow widget script")}function gre(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return mre(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mre(e,t)}(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function mre(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}na(),_o.config({duration:5});var vre=function(){var e,t;null!==(e=_re.options)&&void 0!==e&&e.container.clientWidth&&window.setWidth(null===(t=_re.options)||void 0===t?void 0:t.container.clientWidth)};if(Xp){var yre=function(e,t){var n=0;return function(){var r=Date.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},bre=yre((function(e){IF.widget.setWidth(e)}),300),wre=yre((function(e){IF.widget.setFullWidth(e)}),300);window.setWidth=function(e){var t=e-(jF.widget.component.sqlEditor?jF.sql.width:0)-2;RF.sqlflow.scroll&&(RF.sqlflow.scroll.style.width="".concat(t,"px")),RF.er.scroller&&(RF.er.scroller.style.width="".concat(t,"px")),bre(t),wre(e)},window.setWidth2=function(e){var t=jF.widget.fullWidth-e-2;RF.sqlflow.scroll&&(RF.sqlflow.scroll.style.width="".concat(t,"px")),RF.er.scroller&&(RF.er.scroller.style.width="".concat(t,"px")),bre(t)}}var _re={options:null,init:function(e){return new Promise((function(t,n){var r,i=function(){},o=new ResizeObserver((function(e){var t,n=gre(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;i(r.contentRect.width)}}catch(e){n.e(e)}finally{n.f()}}));if(_re.options=e,!e.width)throw new Error("width is invalid");if("number"==typeof e.width?e.container.style.width=e.width+"px":"string"==typeof e.width&&(e.container.style.width=e.width),!e.height)throw new Error("height is invalid");"number"==typeof e.height?e.container.style.height=e.height+"px":"string"==typeof e.height&&(e.container.style.height=e.height),e.container.style.fontSize="0",e.userId&&IF.user.setUserId(e.userId);var a=document.createElement("iframe");a.style.border="0",a.onload=function(){var r,s=a.contentDocument;if(!s)throw new Error("cannot read contentDocument in iframe");var l=s.createElement("div");l.id="App",s.body.appendChild(l),fre(l);var c=document.createElement("script");c.src=pre(),c.onload=function(){var n;o.observe(e.container);var r=a.contentWindow,s=null===(n=a.contentWindow)||void 0===n?void 0:n.SQLFlow;s.insertFont(),s.mount(e),s.options=e,i=r.setWidth,t(s)},c.onerror=function(){n("load sqlflow widget script error")};var u=document.createElement("link");u.href=pre().replace(/\.js/,".css"),u.rel="stylesheet",u.onload=function(){null==d||d.appendChild(c)};var d=null==s||null===(r=s.getElementsByTagName("head"))||void 0===r?void 0:r[0];null==d||d.appendChild(u)},null===(r=e.container)||void 0===r||r.appendChild(a),fre(a)}))},mount:function(e){om.ApiPrefix=e.apiPrefix,om.Authorization.base64token=e.token,void 0!==e.component&&IF.widget.setComponent(e.component),e.visualizeShare?(b.render(y.createElement(M,{store:FF},y.createElement(dre,null)),document.getElementById("App")),RU.sqlflow.visualizeShare()):b.render(y.createElement(M,{store:FF},y.createElement(tre,null)),document.getElementById("App"))},insertFont:function(){cg.insertFont()},token:{set:function(e){nm(e)}},message:{error:function(e){_o.error(e)}},vendor:{set:function(e){IF.license.vendor.current.set(e)},get:function(){return jF.license.vendor.current}},sqltext:{set:function(e){var t;IF.setting.sqltext.set(e),null===(t=cg.editor.sql)||void 0===t||t.setValue(e),setTimeout((function(){var e;null===(e=cg.editor.sql)||void 0===e||e.refresh()}),100)},get:function(){return jF.setting.sqltext}},setting:{dataflow:{set:function(e){RU.sqlflow.setting.dataflow.set(e)}},impact:{set:function(e){RU.sqlflow.setting.impact.set(e)}},dataflowOfAggregateFunction:{set:function(e){RU.sqlflow.setting.dataflowOfAggregateFunction.set(e)}},showIntermediateRecordset:{set:function(e){RU.sqlflow.setting.ignoreRecordSet.set(!e)}},showFunction:{set:function(e){RU.sqlflow.setting.ignoreFunction.set(!e)}},showConstant:{set:function(e){RU.sqlflow.setting.showConstant.set(e)}},showTransform:{set:function(e){RU.sqlflow.setting.showTransform.set(e)}}},config:{dataflow:{set:function(e){RU.sqlflow.config.dataflow.set(e)}},impact:{set:function(e){RU.sqlflow.config.impact.set(e)}},dataflowOfAggregateFunction:{set:function(e){RU.sqlflow.config.dataflowOfAggregateFunction.set(e)}},showIntermediateRecordset:{set:function(e){RU.sqlflow.config.ignoreRecordSet.set(!e)}},showFunction:{set:function(e){RU.sqlflow.config.ignoreFunction.set(!e)}},showConstant:{set:function(e){RU.sqlflow.config.showConstant.set(e)}},showTransform:{set:function(e){RU.sqlflow.config.showTransform.set(e)}}},job:{list:{get:function(){return g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,RU.job.getAll();case 2:return e.abrupt("return",jF.job.list);case 3:case"end":return e.stop()}}),e)})))()}},lineage:{viewDetailById:function(e){return g()(v().mark((function t(){var n,r;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_re.job.list.get();case 2:if(n=t.sent,!e){t.next=10;break}if(r=n.find((function(t){return t.jobId===e}))){t.next=8;break}return _re.message.error("cannot find job id '".concat(e,"'")),t.abrupt("return");case 8:t.next=15;break;case 10:if(!(n.length>0)){t.next=14;break}r=n[0],t.next=15;break;case 14:return t.abrupt("return");case 15:if(!("success"!==r.status&&"partial_success"!==r.status)){t.next=18;break}return t.abrupt("return");case 18:if(!jF.loading.spinning){t.next=20;break}return t.abrupt("return");case 20:return t.next=22,RU.sqlflow.visualizeJob(r);case 22:case"end":return t.stop()}}),t)})))()},getNodes:function(){var e;return ky(null===(e=jF.tree.lineage)||void 0===e?void 0:e.nodes).map((function(e){return e}))},selectGraph:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,RU.sqlflow.widgetSelectGraph(e);case 4:case"end":return t.stop()}}),t)})))()}}},error:{get:function(){var e;return null===(e=jF.sqlflow.current)||void 0===e?void 0:e.error.messages}},visualize:function(){return g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,RU.sqlflow.visualizeSQL();case 2:case"end":return e.stop()}}),e)})))()},visualizeJSON:function(e,t){return g()(v().mark((function n(){var r;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null!=t&&t.sqltext&&(null===(r=cg.editor.sql)||void 0===r||r.setValue(null==t?void 0:t.sqltext)),n.next=3,RU.sqlflow.visualizeJSON(e,t);case 3:vre();case 4:case"end":return n.stop()}}),n)})))()},visualizeURL:function(e,t){return g()(v().mark((function n(){return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,RU.sqlflow.visualizeURL(e,t);case 2:case"end":return n.stop()}}),n)})))()},visualizeTableLevel:function(){return g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,RU.lineage.visualizeSQL({activateTab:!0});case 2:case"end":return e.stop()}}),e)})))()},visualizeFreestyle:function(e){return g()(v().mark((function t(){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,RU.sqlflow.visualizeFreestyle(e);case 2:case"end":return t.stop()}}),t)})))()},visualizeER:function(){return g()(v().mark((function e(){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,RU.er.visualizeSQL({activateTab:!0});case 2:vre();case 3:case"end":return e.stop()}}),e)})))()},visualizeERJSON:function(e,t){return g()(v().mark((function n(){var r,i;return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return void 0===(null===(r=_re.options)||void 0===r?void 0:r.component)&&(document.body.style.overflow="hidden"),n.next=3,RU.er.visualizeJSON({json:e,layout:null==t?void 0:t.layout});case 3:null===(i=RF.er.graph)||void 0===i||i.centerPoint();case 4:case"end":return n.stop()}}),n)})))()},submitPersistJob:function(e,t){return g()(v().mark((function n(){return v().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,RU.sqlflow.submitPersistJob(e,t);case 2:case"end":return n.stop()}}),n)})))()},addEventListener:function(e,t){hm[e].push(t)},removeEventListener:function(e,t){var n=hm[e].findIndex((function(e){return e===t}));n>-1&&hm[e].splice(n,1)},removeAllEventListener:function(){Object.keys(Mg).forEach((function(e){hm[e]=[]}))},saveAsPng:function(){RU.sqlflow.saveAsPNG()},saveERAsPng:function(){RU.er.saveAsPNG()}},xre=_re}(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__}()}));
|
||
//# sourceMappingURL=sqlflow.widget.3.5.19.js.map |