(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-vendors"],{"00ee":function(e,t,n){"use strict";var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},"016f":function(e,t,n){},"01b4":function(e,t,n){"use strict";function r(){this.head=null,this.tail=null}r.prototype={add:function(e){e={item:e,next:null};var t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},"02de":function(e,t,n){"use strict";function r(e){var t=window.getComputedStyle(e),n="none"===t.display;e=null===e.offsetParent&&"fixed"!==t.position;return n||e}n.d(t,"a",(function(){return r}))},"0366":function(e,t,n){"use strict";var r=n("4625"),i=n("59ed"),o=n("40d5"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"03d6":function(e,t,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)!r(s,n=t[u++])||~o(c,n)||c.push(n);return c}},"04f8":function(e,t,n){"use strict";var r=n("2d00"),i=n("d039"),o=n("da84").String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"051b":function(e,t,n){var r=n("1a14"),i=n("10db");e.exports=n("0bad")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"057f":function(e,t,n){"use strict";var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("4dae"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){if(!s||"Window"!==r(e))return o(i(e));try{return o(e)}catch(e){return a(s)}}},"05f5":function(e,t,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"0653":function(e,t,n){"use strict";n("68ef"),n("5c56")},"06cf":function(e,t,n){"use strict";var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),u=n("a04b"),c=n("1a2d"),l=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=u(t),l)try{return d(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},"06f1":function(e,t,n){},"06f9":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},99:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"el-badge"},[e._t("default"),t("transition",{attrs:{name:"el-zoom-in-center"}},[t("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:["el-badge__content--"+e.type,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)}n.r(t),r._withStripped=!0;var i={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return-1<["primary","success","warning","info","danger"].indexOf(e)}}},computed:{content:function(){var e,t;if(!this.isDot)return e=this.value,t=this.max,"number"==typeof e&&"number"==typeof t&&tc;)u.call(e,a=s[c++])&&t.push(a);return t}},"0b33":function(e,t,n){"use strict";var r=n("c31d"),i=n("d282"),o=n("9884"),a=(n=n("48f4"),i=Object(i.a)("tab"),i[0]),s=i[1];t.a=a({mixins:[Object(o.a)("vanTabs")],props:Object(r.a)({},n.c,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var e;return null!=(e=this.name)?e:this.index},isActive:function(){var e=this.computedName===this.parent.currentName;return e&&(this.inited=!0),e}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(e){var t=this;this.parent.lazyRender&&e&&this.$nextTick((function(){t.parent.$emit("rendered",t.computedName,t.title)}))}},render:function(e){var t,n=this.slots,r=this.parent,i=this.isActive;n=n();if(n||r.animated)return t=r.scrollspy||i,n=this.inited||r.scrollspy||!r.lazyRender?n:e(),r.animated?e("div",{attrs:{role:"tabpanel","aria-hidden":!i},class:s("pane-wrapper",{inactive:!i})},[e("div",{class:s("pane")},[n])]):e("div",{directives:[{name:"show",value:t}],attrs:{role:"tabpanel"},class:s("pane")},[n])}})},"0b42":function(e,t,n){"use strict";var r=n("e8b5"),i=n("68ee"),o=n("861d"),a=n("b622")("species"),s=Array;e.exports=function(e){var t;return void 0===(t=r(e)&&(t=e.constructor,i(t)&&(t===s||r(t.prototype))||o(t)&&null===(t=t[a]))?void 0:t)?s:t}},"0b43":function(e,t,n){"use strict";n=n("04f8"),e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},"0b99":function(e,t,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e=this._t,t=this._i;return t>=e.length?{value:void 0,done:!0}:(e=r(e,t),this._i+=e.length,{value:e,done:!1})}))},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0c67":function(e,t,n){},"0cb2":function(e,t,n){"use strict";var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,f){var p=n+e.length,h=r.length,m=l;return void 0!==d&&(d=i(d),m=c),s(f,m,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":c=d[u(s,1,-1)];break;default:var l,f=+s;if(0==f)return i;if(h, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t,n,r,i,o=this.layout;return o&&(!this.hideOnSinglePage||this.internalPageCount&&1!==this.internalPageCount)?(t=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),n={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default||""]),total:e("total")},o=o.split(",").map((function(e){return e.trim()})),r=e("div",{class:"el-pagination__rightwrapper"}),i=!1,t.children=t.children||[],r.children=r.children||[],o.forEach((function(e){"->"===e?i=!0:(i?r:t).children.push(n[e])})),i&&t.children.unshift(r),t):null},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[u.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(c.valueEquals)(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=-1this.internalPageCount&&(t=this.internalPageCount):(isNaN(e)||e<1)&&(t=1),void 0===(t=void 0===t&&isNaN(e)||0===t?1:t)?e:t},emitChange:function(){var e=this;this.$nextTick((function(){e.internalCurrentPage===e.lastEmittedPage&&!e.userChangePageSize||(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"==typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"==typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;0b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"107e":function(e,t,n){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},1098:function(e,t,n){"use strict";t.__esModule=!0;var r=a(n("17ed")),i=a(n("f893")),o="function"==typeof i.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===o(r.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":o(e)}},"10cb":function(e,t,n){},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1146:function(e,t,n){},1148:function(e,t,n){"use strict";var r=n("5926"),i=n("577e"),o=n("1d80"),a=RangeError;e.exports=function(e){var t=i(o(this)),n="",s=r(e);if(s<0||s===1/0)throw a("Wrong number of repetitions");for(;0>>=1)&&(t+=t))1&s&&(n+=t);return n}},1175:function(e,t,n){},1212:function(e,t,n){(function(e){var r;!function(e){function i(e){var t,n=this,r=(t=4022871197,function(e){e=String(e);for(var n=0;n>>0))*t)>>>0,t+=4294967296*(r-=t)}return 2.3283064365386963e-10*(t>>>0)});n.next=function(){var e=2091639*n.s0+2.3283064365386963e-10*n.c;return n.s0=n.s1,n.s1=n.s2,n.s2=e-(n.c=0|e)},n.c=1,n.s0=r(" "),n.s1=r(" "),n.s2=r(" "),n.s0-=r(e),n.s0<0&&(n.s0+=1),n.s1-=r(e),n.s1<0&&(n.s1+=1),n.s2-=r(e),n.s2<0&&(n.s2+=1)}function o(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function a(e,t){var n=new i(e),r=(e=t&&t.state,n.next);return r.int32=function(){return 4294967296*n.next()|0},r.double=function(){return r()+11102230246251565e-32*(2097152*r()|0)},r.quick=r,e&&("object"==typeof e&&o(e,n),r.state=function(){return o(n,{})}),r}e&&e.exports?e.exports=a:n("07d6")&&n("3c35")?void 0!==(r=function(){return a}.call(t,n,t,e))&&(e.exports=r):this.alea=a}(e,n("07d6"))}).call(this,n("62e4")(e))},1276:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("825a"),u=n("7234"),c=n("44e7"),l=n("1d80"),d=n("4840"),f=n("8aa5"),p=n("50c4"),h=n("577e"),m=n("dc4a"),g=n("4dae"),v=n("14c3"),y=n("9263"),b=n("9f7f"),x=(n=n("d039"),b.UNSUPPORTED_Y),w=4294967295,_=Math.min,S=[].push,C=o(/./.exec),A=o(S),E=o("".slice);a("split",(function(e,t,n){var o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,n){var o=h(l(this)),a=void 0===n?w:n>>>0;if(0==a)return[];if(void 0===e)return[o];if(!c(e))return i(t,o,e,a);for(var s,u,d,f=[],p=(n=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),0),m=new RegExp(e.source,n+"g");(s=i(y,m,o))&&!(p<(u=m.lastIndex)&&(A(f,E(o,p,s.index)),1>>0;if(0==m)return[];if(0===a.length)return null===v(l,a)?[a]:[];for(var g=0,y=0,b=[];ythis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?-1=t&&!this.isChecked||this.model.length<=e&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t,n=this;this.isLimitExceeded||(t=void 0,t=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",t,e),this.$nextTick((function(){n._checkboxGroup&&n.dispatch("ElCheckboxGroup","change",[n._checkboxGroup.value])})))}},created:function(){this.checked&&this.addToStore()}},n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/checkbox/src/checkbox-button.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o},4:function(e,t){e.exports=n("d010")}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=124))},"159b":function(e,t,n){"use strict";function r(t){if(t&&t.forEach!==u)try{c(t,"forEach",u)}catch(e){t.forEach=u}}var i,o=n("da84"),a=n("fdbc"),s=n("785a"),u=n("17c2"),c=n("9112");for(i in a)a[i]&&r(o[i]&&o[i].prototype);r(s)},1609:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},1626:function(e,t,n){"use strict";n=n("8ea1");var r=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach;n=n("a640")("forEach");e.exports=n?[].forEach:function(e){return r(this,e,1this.minContentHeight}},data:function(){return{containerId:"outer-"+Math.random().toString(36).substring(3,8),contentId:"inner-"+Math.random().toString(36).substring(3,8),state:0,loadingState:0,showLoading:!1,container:void 0,content:void 0,scroller:void 0,pullToRefreshLayer:void 0,mousedown:!1,infiniteTimer:void 0,resizeTimer:void 0}},mounted:function(){function e(){return{width:t.content.offsetWidth,height:t.content.offsetHeight}}var t=this,n=(this.container=document.getElementById(this.containerId),this.container.style.width=this.w,this.container.style.height=this.h,this.content=document.getElementById(this.contentId),this.cssClass&&this.content.classList.add(this.cssClass),this.pullToRefreshLayer=this.content.getElementsByTagName("div")[0],(0,s.default)(this.content)),r=(n=(this.scroller=new a.default(n,{scrollingX:!1,snapping:this.snapping,animating:this.animating,animationDuration:this.animationDuration,bouncing:this.bouncing}),this.onRefresh&&this.scroller.activatePullToRefresh(60,(function(){t.state=1}),(function(){t.state=0}),(function(){t.state=2,t.$on("$finishPullToRefresh",(function(){setTimeout((function(){t.state=0,t.finishPullToRefresh()}))})),t.onRefresh(t.finishPullToRefresh)})),this.onInfinite&&(this.infiniteTimer=setInterval((function(){var e=t.scroller.getValues(),n=(e.left,e.top);e.zoom,0t.content.offsetHeight-t.container.clientHeight&&(t.loadingState||(t.loadingState=1,t.showLoading=!0,t.onInfinite(t.finishInfinite)))}),10)),this.container.getBoundingClientRect()),n=(this.scroller.setPosition(n.left+this.container.clientLeft,n.top+this.container.clientTop),this.snapping&&this.scroller.setSnapSize(this.snapWidth,this.snapHeight),e()),n.content_width),i=n.content_height;this.resizeTimer=setInterval((function(){var n=e(),o=n.width;n=n.height;o===r&&n===i||(r=o,i=n,t.resize())}),10)},destroyed:function(){clearInterval(this.resizeTimer),this.infiniteTimer&&clearInterval(this.infiniteTimer)},methods:{resize:function(){var e=this.container,t=this.content;this.scroller.setDimensions(e.clientWidth,e.clientHeight,t.offsetWidth,t.offsetHeight)},finishPullToRefresh:function(){this.scroller.finishPullToRefresh()},finishInfinite:function(e){this.loadingState=e?2:0,this.showLoading=!1,2==this.loadingState&&this.resetLoadingState()},triggerPullToRefresh:function(){this.scroller.triggerPullToRefresh()},scrollTo:function(e,t,n){this.scroller.scrollTo(e,t,n)},scrollBy:function(e,t,n){this.scroller.scrollBy(e,t,n)},touchStart:function(e){e.target.tagName.match(/input|textarea|select/i)||this.scroller.doTouchStart(e.touches,e.timeStamp)},touchMove:function(e){e.preventDefault(),this.scroller.doTouchMove(e.touches,e.timeStamp)},touchEnd:function(e){this.scroller.doTouchEnd(e.timeStamp)},mouseDown:function(e){e.target.tagName.match(/input|textarea|select/i)||(this.scroller.doTouchStart([{pageX:e.pageX,pageY:e.pageY}],e.timeStamp),this.mousedown=!0)},mouseMove:function(e){this.mousedown&&(this.scroller.doTouchMove([{pageX:e.pageX,pageY:e.pageY}],e.timeStamp),this.mousedown=!0)},mouseUp:function(e){this.mousedown&&(this.scroller.doTouchEnd(e.timeStamp),this.mousedown=!1)},getPosition:function(){var e=this.scroller.getValues();return{left:parseInt(e.left),top:parseInt(e.top)}},resetLoadingState:function(){var e=this,t=this.scroller.getValues(),n=(t.left,t.top);t.zoom,this.container,this.content,n+60>this.content.offsetHeight-this.container.clientHeight?setTimeout((function(){e.resetLoadingState()}),1e3):this.loadingState=0}}}},function(e,t,n){"use strict";function r(e){r.installed||(r.installed=!0,e.component("scroller",o.default))}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=(n=n(1),n&&n.__esModule?n:{default:n});n={install:r,Scroller:o.default};void 0!==("undefined"==typeof window?"undefined":i(window))&&window.Vue&&window.Vue.use(n),t.default=n},function(e,t,n){"use strict";var r=window;function i(){}function o(e,t){for(var n in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:i,penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[n]=t[n]}function a(e){return Math.pow(e-1,3)+1}function s(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)}p=Date.now||function(){return+new Date},h={},m=1,(g={effect:{}}).effect.Animate={requestAnimationFrame:(f=r.requestAnimationFrame||r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||r.oRequestAnimationFrame,r=!!f,(r=!(f&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(f.toString()))&&r)?function(e,t){f(e,t)}:(u={},c=1,l=null,d=+new Date,function(e,t){var n=c++;return u[n]=e,null===l&&(l=setInterval((function(){var e,t=+new Date,n=u;for(e in u={},n)n.hasOwnProperty(e)&&(n[e](t),d=t);2500o.__maxScrollLeft?n=o.__maxScrollLeft:n<0&&(n=0),i>o.__maxScrollTop?i=o.__maxScrollTop:i<0&&(i=0),o.__publish(n,i,e,t)},zoomBy:function(e,t,n,r,i){this.zoomTo(this.__zoomLevel*e,t,n,r,i)},scrollTo:function(e,t,n,r){var i=this;if(i.__isDecelerating&&(y.effect.Animate.stop(i.__isDecelerating),i.__isDecelerating=!1),null!=r&&r!==i.__zoomLevel){if(!i.options.zooming)throw new Error("Zooming is not enabled!");e*=r,t*=r,i.__computeScrollMax(r)}else r=i.__zoomLevel;i.options.scrollingX?i.options.paging?e=Math.round(e/i.__clientWidth)*i.__clientWidth:i.options.snapping&&(e=Math.round(e/i.__snapWidth)*i.__snapWidth):e=i.__scrollLeft,i.options.scrollingY?i.options.paging?t=Math.round(t/i.__clientHeight)*i.__clientHeight:i.options.snapping&&(t=Math.round(t/i.__snapHeight)*i.__snapHeight):t=i.__scrollTop,e=Math.max(Math.min(i.__maxScrollLeft,e),0),t=Math.max(Math.min(i.__maxScrollTop,t),0),e===i.__scrollLeft&&t===i.__scrollTop&&(n=!1),i.__isTracking||i.__publish(e,t,r,n)},scrollBy:function(e,t,n){var r=this,i=r.__isAnimating?r.__scheduledLeft:r.__scrollLeft,o=r.__isAnimating?r.__scheduledTop:r.__scrollTop;r.scrollTo(i+(e||0),o+(t||0),n)},doMouseZoom:function(e,t,n,r){return this.zoomTo(this.__zoomLevel*(0-f.__refreshHeight&&(f.__refreshActive=!1,f.__refreshDeactivate)&&f.__refreshDeactivate())):a=ut.__lastTouchMove-100;s-=3)a=s;a!==o&&(o=i[o]-i[a],r=t.__scrollLeft-i[a-2],n=t.__scrollTop-i[a-1],t.__decelerationVelocityX=r/o*(1e3/60),t.__decelerationVelocityY=n/o*(1e3/60),r=t.options.paging||t.options.snapping?4:1,Math.abs(t.__decelerationVelocityX)>r||Math.abs(t.__decelerationVelocityY)>r)?t.__refreshActive||t.__startDeceleration(e):t.options.scrollingComplete()}else 100=a||Math.abs(o.__decelerationVelocityY)>=a;return e||(o.__didDecelerationComplete=!0),e}),(function(e,t,n){o.__isDecelerating=!1,o.__didDecelerationComplete&&o.options.scrollingComplete(),o.scrollTo(o.__scrollLeft,o.__scrollTop,o.options.snapping)}))},__stepThroughDeceleration:function(e){var t,n,r,i=this,o=i.__scrollLeft+i.__decelerationVelocityX,a=i.__scrollTop+i.__decelerationVelocityY;i.options.bouncing||((t=Math.max(Math.min(i.__maxDecelerationScrollLeft,o),i.__minDecelerationScrollLeft))!==o&&(o=t,i.__decelerationVelocityX=0),(t=Math.max(Math.min(i.__maxDecelerationScrollTop,a),i.__minDecelerationScrollTop))!==a&&(a=t,i.__decelerationVelocityY=0)),e?i.__publish(o,a,i.__zoomLevel):(i.__scrollLeft=o,i.__scrollTop=a),i.options.paging||(i.__decelerationVelocityX*=.95,i.__decelerationVelocityY*=.95),i.options.bouncing&&(e=t=0,n=i.options.penetrationDeceleration,r=i.options.penetrationAcceleration,oi.__maxDecelerationScrollLeft&&(t=i.__maxDecelerationScrollLeft-o),ai.__maxDecelerationScrollTop&&(e=i.__maxDecelerationScrollTop-a),0!==t&&(t*i.__decelerationVelocityX<=0?i.__decelerationVelocityX+=t*n:i.__decelerationVelocityX=t*r),0!==e)&&(e*i.__decelerationVelocityY<=0?i.__decelerationVelocityY+=e*n:i.__decelerationVelocityY=e*r)}};for(v in b)o.prototype[v]=b[v];void 0!==e&&e.exports?e.exports=o:void 0!==(r=function(){return o}.call(t,n,t,e))&&(e.exports=r)},function(e,t,n){"use strict";e.exports=function(e){var t,n=window,r=document.documentElement.style,i=(n=(n.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?t="presto":"MozAppearance"in r?t="gecko":"WebkitAppearance"in r?t="webkit":"string"==typeof navigator.cpuClass&&(t="trident"),{trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[t]),r=document.createElement("div"),n+"Transform");return void 0!==r.style[n+"Perspective"]?function(t,n,r){e.style[i]="translate3d("+-t+"px,"+-n+"px,0) scale("+r+")"}:void 0!==r.style[i]?function(t,n,r){e.style[i]="translate("+-t+"px,"+-n+"px) scale("+r+")"}:function(t,n,r){e.style.marginLeft=t?-t/r+"px":"",e.style.marginTop=n?-n/r+"px":"",e.style.zoom=r||""}}},function(e,t,n){(e.exports=n(8)()).push([e.i,"._v-container[data-v-ecaca2b0]{-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}._v-container>._v-content[data-v-ecaca2b0]{width:100%;-webkit-transform-origin:left top;-webkit-transform:translateZ(0);-moz-transform-origin:left top;-moz-transform:translateZ(0);-ms-transform-origin:left top;-ms-transform:translateZ(0);-o-transform-origin:left top;-o-transform:translateZ(0);transform-origin:left top;transform:translateZ(0)}._v-container>._v-content>.pull-to-refresh-layer[data-v-ecaca2b0]{width:100%;height:60px;margin-top:-60px;text-align:center;font-size:16px;color:#aaa}._v-container>._v-content>.loading-layer[data-v-ecaca2b0]{width:100%;height:60px;text-align:center;font-size:16px;line-height:60px;color:#aaa;position:relative}._v-container>._v-content>.loading-layer>.no-data-text[data-v-ecaca2b0]{position:absolute;left:0;top:0;width:100%;height:100%;z-index:1}._v-container>._v-content>.loading-layer>.no-data-text[data-v-ecaca2b0],._v-container>._v-content>.loading-layer>.spinner-holder[data-v-ecaca2b0]{opacity:0;transition:opacity .15s linear;-webkit-transition:opacity .15s linear}._v-container>._v-content>.loading-layer>.no-data-text.active[data-v-ecaca2b0],._v-container>._v-content>.loading-layer>.spinner-holder.active[data-v-ecaca2b0]{opacity:1}._v-container>._v-content>.loading-layer .spinner-holder[data-v-ecaca2b0],._v-container>._v-content>.pull-to-refresh-layer .spinner-holder[data-v-ecaca2b0]{text-align:center;-webkit-font-smoothing:antialiased}._v-container>._v-content>.loading-layer .spinner-holder .arrow[data-v-ecaca2b0],._v-container>._v-content>.pull-to-refresh-layer .spinner-holder .arrow[data-v-ecaca2b0]{width:20px;height:20px;margin:8px auto 0;-webkit-transform:translateZ(0) rotate(0deg);transform:translateZ(0) rotate(0deg);transition:transform .2s linear}._v-container>._v-content>.loading-layer .spinner-holder .text[data-v-ecaca2b0],._v-container>._v-content>.pull-to-refresh-layer .spinner-holder .text[data-v-ecaca2b0]{display:block;margin:0 auto;font-size:14px;line-height:20px;color:#aaa}._v-container>._v-content>.loading-layer .spinner-holder .spinner[data-v-ecaca2b0],._v-container>._v-content>.pull-to-refresh-layer .spinner-holder .spinner[data-v-ecaca2b0]{margin-top:14px;width:32px;height:32px;fill:#444;stroke:#69717d}._v-container>._v-content>.pull-to-refresh-layer.active .spinner-holder .arrow[data-v-ecaca2b0]{-webkit-transform:translateZ(0) rotate(180deg);transform:translateZ(0) rotate(180deg)}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;tn.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;ithis.max||(e=this.value,this.range&&Array.isArray(e)?e[1]this.max?this.$emit("input",[this.max,this.max]):e[0]this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!=typeof e||isNaN(e)||(ethis.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e))))},setPosition:function(e){var t,n=this.min+e*(this.max-this.min)/100;(this.range?(t=void 0,t=Math.abs(this.minValue-n)this.secondValue?"button1":"button2",this.$refs[t]):this.$refs.button1).setPosition(e)},onSliderClick:function(e){var t;this.sliderDisabled||this.dragging||(this.resetSize(),this.vertical?(t=this.$refs.slider.getBoundingClientRect().bottom,this.setPosition((t-e.clientY)/this.sliderSize*100)):(t=this.$refs.slider.getBoundingClientRect().left,this.setPosition((e.clientX-t)/this.sliderSize*100)),this.emitChange())},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),r=[],i=1;i100*(e.maxValue-e.min)/(e.max-e.min)})):r.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;return this.marks?Object.keys(this.marks).map(parseFloat).sort((function(e,t){return e-t})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}})):[]},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){return e=(""+e).split(".")[1],e?e.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;e=this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],this.firstValue+"-"+this.secondValue):("number"!=typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,this.firstValue);this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label||"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},c=Object(s.a)(n,r,[],!1,null,null,null),c.options.__file="packages/slider/src/main.vue",c.exports);l.install=function(e){e.component(l.name,l)},t.default=l}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=62))},"20fb":function(e,t,n){"use strict";var r=n("2638"),i=n.n(r),o=(r=n("d282"),n("ea8e")),a=n("a142"),s=n("a8fa"),u=n("1325"),c=n("482d"),l=n("90c6"),d=(n=n("78eb"),r=Object(r.a)("stepper"),r[0]),f=r[1];function p(e,t){return String(e)===String(t)}t.a=d({mixins:[n.a],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var e=null!=(e=this.value)?e:this.defaultValue;e=this.format(e);return p(e,this.value)||this.$emit("input",e),{currentValue:e}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var e={};return this.inputWidth&&(e.width=Object(o.a)(this.inputWidth)),this.buttonSize&&(e.height=Object(o.a)(this.buttonSize)),e},buttonStyle:function(){var e;if(this.buttonSize)return{width:e=Object(o.a)(this.buttonSize),height:e}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(e){p(e,this.currentValue)||(this.currentValue=this.format(e))},currentValue:function(e){this.$emit("input",e),this.$emit("change",e,{name:this.name})}},methods:{check:function(){var e=this.format(this.currentValue);p(e,this.currentValue)||(this.currentValue=e)},formatNumber:function(e){return Object(c.b)(String(e),!this.integer)},format:function(e){return this.allowEmpty&&""===e||(e=""===(e=this.formatNumber(e))?0:+e,e=Object(l.a)(e)?this.min:e,e=Math.max(Math.min(this.max,e),this.min),Object(a.c)(this.decimalLength)&&(e=e.toFixed(this.decimalLength))),e},onInput:function(e){var t=e.target.value,n=this.formatNumber(t);p(t,n=Object(a.c)(this.decimalLength)&&-1!==n.indexOf(".")?(t=n.split("."))[0]+"."+t[1].slice(0,this.decimalLength):n)||(e.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(e){this.asyncChange?(this.$emit("input",e),this.$emit("change",e,{name:this.name})):this.currentValue=e},onChange:function(){var e,t=this.type;this[t+"Disabled"]?this.$emit("overlimit",t):(e="minus"===t?-this.step:+this.step,e=this.format(Object(c.a)(+this.currentValue,e)),this.emitChange(e),this.$emit(t))},onFocus:function(e){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",e)},onBlur:function(e){var t=this.format(e.target.value);e.target.value=t,this.emitChange(t),this.$emit("blur",e),Object(s.a)()},longPressStep:function(){var e=this;this.longPressTimer=setTimeout((function(){e.onChange(),e.longPressStep(e.type)}),200)},onTouchStart:function(){var e=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout((function(){e.isLongPress=!0,e.onChange(),e.longPressStep()}),600))},onTouchEnd:function(e){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress)&&Object(u.c)(e)},onMousedown:function(e){this.disableInput&&e.preventDefault()}},render:function(){function e(e){return{on:{click:function(n){n.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}}var t=this,n=arguments[0];return n("div",{class:f([this.theme])},[n("button",i()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:f("minus",{disabled:this.minusDisabled})},e("minus")])),n("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:f("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),n("button",i()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:f("plus",{disabled:this.plusDisabled})},e("plus")]))])}})},"21a1":function(e,t,n){(function(t){e.exports=function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&e(n)?o(t(n),n,r):n}function r(t,r,i){var a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):e(r)?a[s]=o(t[s],r,i):-1===t.indexOf(r)&&a.push(n(r,i))})),a}function i(t,r,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=o(t[s],r[s],i):a[s]=n(r[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:r},u=s.arrayMerge||r;return a?Array.isArray(e)?u(e,t,o):n(t,o):i(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))}));function r(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var i,o=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),a=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},s=o.svg,u=o.xlink,c={},l=(c[s.name]=s.uri,c[u.name]=u.uri,function(e,t){void 0===e&&(e="");var r=n(c,t||{}),i=a(r);return""+e+""}),d=o.svg,f=o.xlink,p={attrs:((i={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"})[d.name]=d.uri,i[f.name]=f.uri,i)},h=function(e){this.config=n(p,e||{}),this.symbols=[]},m=(h.prototype.add=function(e){var t=this,n=t.symbols,r=this.find(e.id);return r?(n[n.indexOf(r)]=e,!1):(n.push(e),!0)},h.prototype.remove=function(e){var t=this,n=t.symbols,r=this.find(e);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},h.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},h.prototype.has=function(e){return null!==this.find(e)},h.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return l(n,t)},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))},function(e){var t=e.id,n=e.viewBox,r=e.content;this.id=t,this.viewBox=n,this.content=r}),g=(m.prototype.stringify=function(){return this.content},m.prototype.toString=function(){return this.stringify()},m.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))},function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n}),v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return g(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(m),y={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(e){return Array.prototype.slice.call(e,0)},x={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},w=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},_=function(e){var t=[];return b(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},S=function(e){return(e||window.location.href).split("#")[0]},C=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){w(e,{oldUrl:r,newUrl:n})}))}])},A="linearGradient, radialGradient, pattern, mask, clipPath",E=function(e,t){return void 0===t&&(t=A),b(e.querySelectorAll("symbol")).forEach((function(e){b(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function N(e,t){var n=b(e).reduce((function(e,n){if(!n.attributes)return e;var r=b(n.attributes),i=t?r.filter(t):r;return e.concat(i)}),[]);return n}var k=o.xlink.uri,O="xlink:href",D=/[{}|\\\^\[\]`"<>]/g;function M(e){return e.replace(D,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function T(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j(e,t,n){return b(e).forEach((function(e){var r=e.getAttribute(O);if(r&&0===r.indexOf(t)){var i=r.replace(t,n);e.setAttributeNS(k,O,i)}})),e}var I,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],$=P.map((function(e){return"["+e+"]"})).join(","),R=function(e,t,n,r){var i=M(n),o=M(r),a=e.querySelectorAll($),s=N(a,(function(e){var t=e.localName,n=e.value;return-1!==P.indexOf(t)&&-1!==n.indexOf("url("+i)}));s.forEach((function(e){return e.value=e.value.replace(new RegExp(T(i),"g"),o)})),j(t,i,o)},B={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},F=function(e){function t(t){var i=this;void 0===t&&(t={}),e.call(this,n(y,t));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(t),s.syncUrlsWithBaseTag){var u=document.getElementsByTagName("base")[0].getAttribute("href");o.on(B.MOUNT,(function(){return i.updateUrls("#",u)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,c),s.locationChangeAngularEmitter&&C(s.locationChangeEvent),o.on(B.MOUNT,(function(e){s.moveGradientsOutsideSymbol&&E(e)})),o.on(B.SYMBOL_MOUNT,(function(e){s.moveGradientsOutsideSymbol&&E(e.parentNode),(x.isIE()||x.isEdge())&&_(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=x.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,r=t.newUrl;this.updateUrls(n,r)},t.prototype.add=function(t){var n=this,r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(n.node),this._emitter.emit(B.SYMBOL_MOUNT,t.node)),r},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e;return n.node=r,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(B.SYMBOL_MOUNT,e.node)})),b(r.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(B.MOUNT,r),r},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,r=e._emitter;n.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof e?document.querySelector(e):e,i=n.render();return this.node=i,t&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(B.MOUNT,i),i},t.prototype.render=function(){return g(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return R(this.node,n,S(e)+"#",S(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(h),L=e((function(e){ /*! * domready (c) Dustin Diaz 2014 - License MIT */ !function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,e=function(){n.removeEventListener(i,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),z="__SVG_SPRITE_NODE__",V="__SVG_SPRITE__";window[V]?I=window[V]:(I=new F({attrs:{id:z,"aria-hidden":"true"}}),window[V]=I);var q=function(){var e=document.getElementById(z);e?I.attach(e):I.mount(document.body,!0)};return document.body?q():L(q),I}()}).call(this,n("c8ba"))},"21ab":function(e,t,n){"use strict";var r=n("c31d"),i=n("d282"),o=n("ea8e"),a=n("b1d2"),s=n("48f4"),u=n("9884"),c=n("6f2f"),l=n("ad06"),d=(n=Object(i.a)("grid-item"),i=n[0],n[1]);t.a=i({mixins:[Object(u.a)("vanGrid")],props:Object(r.a)({},s.c,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var e=this.parent,t=e.square,n=e.gutter,r=(e=e.columnNum,100/e+"%"),i={flexBasis:r};return t?i.paddingTop=r:n&&(t=Object(o.a)(n),i.paddingRight=t,this.index>=e)&&(i.marginTop=t),i},contentStyle:function(){var e=this.parent,t=e.square;e=e.gutter;if(t&&e)return{right:t=Object(o.a)(e),bottom:t,height:"auto"}}},methods:{onClick:function(e){this.$emit("click",e),Object(s.b)(this.$router,this)},genIcon:function(){var e=this.$createElement,t=this.slots("icon"),n=null!=(n=this.badge)?n:this.info;return t?e("div",{class:d("icon-wrapper")},[t,e(c.a,{attrs:{dot:this.dot,info:n}})]):this.icon?e(l.a,{attrs:{name:this.icon,dot:this.dot,badge:n,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:d("icon")}):void 0},getText:function(){var e=this.$createElement,t=this.slots("text");return t||(this.text?e("span",{class:d("text")},[this.text]):void 0)},genContent:function(){var e=this.slots();return e||[this.genIcon(),this.getText()]}},render:function(){var e=arguments[0],t=this.parent,n=t.center,r=t.border,i=t.square,o=t.gutter,s=t.direction;t=t.clickable;return e("div",{class:[d({square:i})],style:this.style},[e("div",{style:this.contentStyle,attrs:{role:t?"button":null,tabindex:t?0:null},class:[d("content",[s,{center:n,square:i,clickable:t,surround:r&&o}]),((e={})[a.a]=r,e)],on:{click:this.onClick}},[this.genContent()])])}})},2221:function(e,t,n){},2241:function(e,t,n){"use strict";var r,i=n("c31d"),o=n("2b0e"),a=n("2638"),s=n.n(a),u=(a=n("d282"),n("a142")),c=n("ea8e"),l=n("b1d2"),d=n("6605"),f=n("b650"),p=n("bb33"),h=n("82a8"),m=(n=Object(a.a)("dialog"),a=n[0],n[1]),g=n[2],v=a({mixins:[Object(d.a)()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(e){var t=this;this.$emit(e),this.value&&(this.beforeClose?(this.loading[e]=!0,this.beforeClose(e,(function(n){!1!==n&&t.loading[e]&&t.onClose(e),t.loading.confirm=!1,t.loading.cancel=!1}))):this.onClose(e))},onClose:function(e){this.close(),this.callback&&this.callback(e)},onOpened:function(){var e=this;this.$emit("opened"),this.$nextTick((function(){var t;null!=(t=e.$refs.dialog)&&t.focus()}))},onClosed:function(){this.$emit("closed")},onKeydown:function(e){var t=this;"Escape"!==e.key&&"Enter"!==e.key||e.target===this.$refs.dialog&&({Enter:this.showConfirmButton?function(){return t.handleAction("confirm")}:u.h,Escape:this.showCancelButton?function(){return t.handleAction("cancel")}:u.h}[e.key](),this.$emit("keydown",e))},genRoundButtons:function(){var e=this,t=this.$createElement;return t(p.a,{class:m("footer")},[this.showCancelButton&&t(h.a,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||g("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:m("cancel"),on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&t(h.a,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||g("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:m("confirm"),on:{click:function(){e.handleAction("confirm")}}})])},genButtons:function(){var e=this,t=this.$createElement,n=this.showCancelButton&&this.showConfirmButton;return t("div",{class:[l.e,m("footer")]},[this.showCancelButton&&t(f.a,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||g("cancel"),nativeType:"button"},class:m("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&t(f.a,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||g("confirm"),nativeType:"button"},class:[m("confirm"),((t={})[l.c]=n,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(e,t){var n,r,i=this.$createElement;return t?i("div",{class:m("content")},[t]):(t=this.message,n=this.messageAlign,t?(r={class:m("message",((r={"has-title":e})[n]=n,r)),domProps:((n={})[this.allowHtml?"innerHTML":"textContent"]=t,n)},i("div",{class:m("content",{isolated:!e})},[i("div",s()([{},r]))])):void 0)}},render:function(){var e,t,n,r,i=arguments[0];if(this.shouldRender)return e=this.message,t=this.slots(),r=(n=this.slots("title")||this.title)&&i("div",{class:m("header",{isolated:!e&&!t})},[n]),i("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[i("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e,tabIndex:0},class:[m([this.theme]),this.className],style:{width:Object(c.a)(this.width)},ref:"dialog",on:{keydown:this.onKeydown}},[r,this.genContent(n,t),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}});function y(e){return u.g?Promise.resolve():new Promise((function(t,n){var a;r&&(a=r.$el,document.body.contains(a))||(r&&r.$destroy(),(r=new(o.default.extend(v))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",(function(e){r.value=e}))),Object(i.a)(r,y.currentOptions,e,{resolve:t,reject:n})}))}y.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(e){r["confirm"===e?"resolve":"reject"](e)}},(y.alert=y).confirm=function(e){return y(Object(i.a)({showCancelButton:!0},e))},y.close=function(){r&&(r.value=!1)},y.setDefaultOptions=function(e){Object(i.a)(y.currentOptions,e)},(y.resetDefaultOptions=function(){y.currentOptions=Object(i.a)({},y.defaultOptions)})(),y.install=function(){o.default.use(v)},y.Component=v,o.default.prototype.$dialog=y,t.a=y},2266:function(e,t,n){"use strict";function r(e,t){this.stopped=e,this.result=t}var i=n("0366"),o=n("c65b"),a=n("825a"),s=n("0d51"),u=n("e95a"),c=n("07fa"),l=n("3a9b"),d=n("9a1f"),f=n("35a1"),p=n("2a62"),h=TypeError,m=r.prototype;e.exports=function(e,t,n){function g(e){return y&&p(y,"normal",e),new r(!0,e)}function v(e){return A?(a(e),k?O(e[0],e[1],g):O(e[0],e[1])):k?O(e,g):O(e)}var y,b,x,w,_,S,C=n&&n.that,A=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),N=!(!n||!n.IS_ITERATOR),k=!(!n||!n.INTERRUPTED),O=i(t,C);if(E)y=e.iterator;else if(N)y=e;else{if(!(n=f(e)))throw h(s(e)+" is not iterable");if(u(n)){for(b=0,x=c(e);bdocument.createEvent("Event").timeStamp&&(br=function(){return dr.now()}),function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id});function wr(){var e,t;for(yr=br(),gr=!0,fr.sort(xr),vr=0;vre.id;)n--;fr.splice(n+1,0,e)}else fr.push(e);mr||(mr=!0,Dn(wr))}}function Sr(e,t){if(e){for(var n=Object.create(null),r=se?Reflect.ownKeys(e):Object.keys(e),i=0;iparseInt(this.max)&&si(n,r[0],r,this._vnode),this.vnodeToCache=null)}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)si(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){ai(e,(function(e){return oi(t,e)}))})),this.$watch("exclude",(function(t){ai(e,(function(e){return!oi(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=hn(e),n=t&&t.componentOptions;if(n){var r=ii(n),i=this.include,o=this.exclude;if(i&&(!r||!oi(i,r))||o&&r&&oi(o,r))return t;i=this.cache,o=this.keys,r=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key,i[r]?(t.componentInstance=i[r].componentInstance,x(o,r),o.push(r)):(this.vnodeToCache=t,this.keyToCache=r),t.data.keepAlive=!0}return t||e&&e[0]}}};ui=ni,V={get:function(){return q}},Object.defineProperty(ui,"config",V),ui.util={warn:Mr,extend:M,mergeOptions:Br,defineReactive:$e},ui.set=Re,ui.delete=Be,ui.nextTick=Dn,ui.observable=function(e){return Pe(e),e},ui.options=Object.create(null),z.forEach((function(e){ui.options[e+"s"]=Object.create(null)})),M((ui.options._base=ui).options.components,di),ui.use=function(e){var t,n=this._installedPlugins||(this._installedPlugins=[]);return-1=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}),Hi.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Ji(e,t,n,r){(r||Hi).removeEventListener(e,t._wrapper||t,n)}function Zi(e,t){var n,r,i;o(e.data.on)&&o(t.data.on)||(n=t.data.on||{},r=e.data.on||{},Hi=t.elm||e.elm,a((e=n)[Yi])&&(e[i=K?"change":"input"]=[].concat(e[Yi],e[i]||[]),delete e[Yi]),a(e[Gi])&&(e.change=[].concat(e[Gi],e.change||[]),delete e[Gi]),jt(n,r,Ki,Ji,Xi,t.context),Hi=void 0)}var eo;re={create:Zi,update:Zi,destroy:function(e){return Zi(e,ji)}};function to(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,i,u,c=t.elm,l=e.data.domProps||{},d=t.data.domProps||{};for(n in(a(d.__ob__)||s(d._v_attr_proxy))&&(d=t.data.domProps=M({},d)),l)n in d||(c[n]="");for(n in d){if(r=d[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===c.childNodes.length&&c.removeChild(c.childNodes[0])}if("value"===n&&"PROGRESS"!==c.tagName){var f=o(c._value=r)?"":String(r);u=f,(i=c).composing||"OPTION"!==i.tagName&&!function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(i,u)&&!function(e,t){var n=e.value;e=e._vModifiers;if(a(e)){if(e.number)return v(n)!==v(t);if(e.trim)return n.trim()!==t.trim()}return n!==t}(i,u)||(c.value=f)}else if("innerHTML"===n&&ki(c.tagName)&&o(c.innerHTML)){(eo=eo||document.createElement("div")).innerHTML="".concat(r,"");for(var p=eo.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;p.firstChild;)c.appendChild(p.firstChild)}else if(r!==l[n])try{c[n]=r}catch(e){}}}}U={create:to,update:to};var no=S((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){e&&1<(e=e.split(n)).length&&(t[e[0].trim()]=e[1].trim())})),t}));function ro(e){var t=io(e.style);return e.staticStyle?M(e.staticStyle,t):t}function io(e){return Array.isArray(e)?T(e):"string"==typeof e?no(e):e}function oo(e,t,n){if(so.test(t))e.style.setProperty(t,n);else if(uo.test(n))e.style.setProperty(k(t),n.replace(uo,""),"important");else{var r=lo(t);if(Array.isArray(n))for(var i=0,o=n.length;i=o&&c()}var s=r===xo?So:Ao,u=0,c=function(){e.removeEventListener(s,a),n()};setTimeout((function(){u * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var o,a="Expected a function",s="__lodash_hash_undefined__",u="__lodash_placeholder__",c=9007199254740991,l=NaN,d=4294967295,f=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],p="[object Arguments]",h="[object Array]",m="[object Boolean]",g="[object Date]",v="[object Error]",y="[object Function]",b="[object GeneratorFunction]",x="[object Map]",w="[object Number]",_="[object Object]",S="[object Promise]",C="[object RegExp]",A="[object Set]",E="[object String]",N="[object Symbol]",k="[object WeakMap]",O="[object ArrayBuffer]",D="[object DataView]",M="[object Float32Array]",T="[object Float64Array]",j="[object Int8Array]",I="[object Int16Array]",P="[object Int32Array]",$="[object Uint8Array]",R="[object Uint8ClampedArray]",B="[object Uint16Array]",F="[object Uint32Array]",L=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,H=RegExp(q.source),W=RegExp(U.source),Y=/<%-([\s\S]+?)%>/g,G=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,ee=RegExp(Z.source),te=/^\s+/,ne=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ie=/\{\n\/\* \[wrapped with (.+)\] \*/,oe=/,? & /,ae=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,pe=/^\[object .+?Constructor\]$/,he=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,be="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",we="\\u2700-\\u27bf",_e="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ae="\\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",Ee="["+be+"]",Ne="["+Ae+"]",ke="["+xe+"]",Oe="["+we+"]",De="["+_e+"]",Me=(Ae="[^"+be+Ae+"\\d+"+we+_e+Se+"]",we="\\ud83c[\\udffb-\\udfff]",_e="[^"+be+"]","(?:\\ud83c[\\udde6-\\uddff]){2}"),Te="[\\ud800-\\udbff][\\udc00-\\udfff]",je=(Se="["+Se+"]","(?:"+De+"|"+Ae+")"),Ie=(Ae="(?:"+Se+"|"+Ae+")","(?:['’](?:d|ll|m|re|s|t|ve))?"),Pe="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+ke+"|"+we+")?",Re="["+Ce+"]?",Be=(Re=Re+$e+"(?:\\u200d(?:"+[_e,Me,Te].join("|")+")"+Re+$e+")*",$e="(?:"+[Oe,Me,Te].join("|")+")"+Re,Oe="(?:"+[_e+ke+"?",ke,Me,Te,Ee].join("|")+")",RegExp("['’]","g")),Fe=RegExp(ke,"g"),Le=RegExp(we+"(?="+we+")|"+Oe+Re,"g"),ze=RegExp([Se+"?"+De+"+"+Ie+"(?="+[Ne,Se,"$"].join("|")+")",Ae+"+"+Pe+"(?="+[Ne,Se+je,"$"].join("|")+")",Se+"?"+je+"+"+Ie,Se+"+"+Pe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",$e].join("|"),"g"),Ve=RegExp("[\\u200d"+be+xe+Ce+"]"),qe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ue=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],He=-1,We={},Ye=(We[M]=We[T]=We[j]=We[I]=We[P]=We[$]=We[R]=We[B]=We[F]=!0,We[p]=We[h]=We[O]=We[m]=We[D]=We[g]=We[v]=We[y]=We[x]=We[w]=We[_]=We[C]=We[A]=We[E]=We[k]=!1,{}),Ge=(Ye[p]=Ye[h]=Ye[O]=Ye[D]=Ye[m]=Ye[g]=Ye[M]=Ye[T]=Ye[j]=Ye[I]=Ye[P]=Ye[x]=Ye[w]=Ye[_]=Ye[C]=Ye[A]=Ye[E]=Ye[N]=Ye[$]=Ye[R]=Ye[B]=Ye[F]=!0,Ye[v]=Ye[y]=Ye[k]=!1,{"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"}),Xe=parseFloat,Qe=parseInt,Ke=(_e="object"==typeof e&&e&&e.Object===Object&&e,Me="object"==typeof self&&self&&self.Object===Object&&self,_e||Me||Function("return this")()),Je=(Te=t&&!t.nodeType&&t,Te&&"object"==typeof r&&r&&!r.nodeType&&r),Ze=Je&&Je.exports===Te,et=Ze&&_e.process,tt=(Ee=function(){try{var e=Je&&Je.require&&Je.require("util").types;return e||et&&et.binding&&et.binding("util")}catch(e){}}(),Ee&&Ee.isArrayBuffer),nt=Ee&&Ee.isDate,rt=Ee&&Ee.isMap,it=Ee&&Ee.isRegExp,ot=Ee&&Ee.isSet,at=Ee&&Ee.isTypedArray;function st(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function ut(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i":">",'"':""","'":"'"});function Lt(e){return"\\"+Ge[e]}function zt(e){return Ve.test(e)}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qt(e,t){return function(n){return e(t(n))}}function Ut(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"}),Qt=function e(t){var n=(t=null==t?Ke:Qt.defaults(Ke.Object(),t,Qt.pick(Ke,Ue))).Array,r=t.Date,i=t.Error,ne=t.Function,be=t.Math,xe=t.Object,we=t.RegExp,_e=t.String,Se=t.TypeError,Ce=n.prototype,Ae=ne.prototype,Ee=xe.prototype,Ne=t["__core-js_shared__"],ke=Ae.toString,Oe=Ee.hasOwnProperty,De=0,Me=(Ae=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||""))?"Symbol(src)_1."+Ae:"",Te=Ee.toString,je=ke.call(xe),Ie=Ke._,Pe=we("^"+ke.call(Oe).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=(Ae=Ze?t.Buffer:o,t.Symbol),Re=t.Uint8Array,Le=Ae?Ae.allocUnsafe:o,Ve=qt(xe.getPrototypeOf,xe),Ge=xe.create,Je=Ee.propertyIsEnumerable,et=Ce.splice,xt=$e?$e.isConcatSpreadable:o,kt=$e?$e.iterator:o,Kt=$e?$e.toStringTag:o,Jt=function(){try{var e=to(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),Zt=t.clearTimeout!==Ke.clearTimeout&&t.clearTimeout,en=r&&r.now!==Ke.Date.now&&r.now,tn=t.setTimeout!==Ke.setTimeout&&t.setTimeout,nn=be.ceil,rn=be.floor,on=xe.getOwnPropertySymbols,an=(Ae=Ae?Ae.isBuffer:o,t.isFinite),sn=Ce.join,un=qt(xe.keys,xe),cn=be.max,ln=be.min,dn=r.now,fn=t.parseInt,pn=be.random,hn=Ce.reverse,mn=(r=to(t,"DataView"),to(t,"Map")),gn=to(t,"Promise"),vn=to(t,"Set"),yn=(t=to(t,"WeakMap"),to(xe,"create")),bn=t&&new t,xn={},wn=Oo(r),_n=Oo(mn),Sn=Oo(gn),Cn=Oo(vn),An=Oo(t),En=($e=$e?$e.prototype:o,$e?$e.valueOf:o),Nn=$e?$e.toString:o;function kn(e){if($a(e)&&!Ea(e)&&!(e instanceof jn)){if(e instanceof Tn)return e;if(Oe.call(e,"__wrapped__"))return Do(e)}return new Tn(e)}var On=function(e){return Pa(e)?Ge?Ge(e):(Dn.prototype=e,e=new Dn,Dn.prototype=o,e):{}};function Dn(){}function Mn(){}function Tn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function jn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function In(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t>>0,t>>>=0,n(o));++i>>1,a=e[o];null!==a&&!qa(a)&&(n?a<=t:a>>0)?(e=Za(e))&&("string"==typeof t||null!=t&&!La(t))&&!(t=Kr(t))&&zt(e)?ci(Yt(e),0,n):e.split(t,n):[]},kn.spread=function(e,t){if("function"!=typeof e)throw new Se(a);return t=null==t?0:cn(Xa(t),0),Fr((function(n){var r=n[t];n=ci(n,0,t);return r&>(n,r),st(e,this,n)}))},kn.tail=function(e){var t=null==e?0:e.length;return t?Hr(e,1,t):[]},kn.take=function(e,t,n){return e&&e.length?Hr(e,0,(t=n||t===o?1:Xa(t))<0?0:t):[]},kn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Hr(e,(t=r-(t=n||t===o?1:Xa(t)))<0?0:t,r):[]},kn.takeRightWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3),!1,!0):[]},kn.takeWhile=function(e,t){return e&&e.length?ti(e,Ji(t,3)):[]},kn.tap=function(e,t){return t(e),e},kn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Se(a);return Pa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ma(e,t,{leading:r,maxWait:t,trailing:i})},kn.thru=Ko,kn.toArray=Ya,kn.toPairs=bs,kn.toPairsIn=xs,kn.toPath=function(e){return Ea(e)?mt(e,ko):qa(e)?[e]:vi(No(Za(e)))},kn.toPlainObject=Ja,kn.transform=function(e,t,n){var r,i=Ea(e),o=i||Da(e)||Ua(e);return t=Ji(t,4),null==n&&(r=e&&e.constructor,n=o?i?new r:[]:Pa(e)&&Ta(r)?On(Ve(e)):{}),(o?ct:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},kn.unary=function(e){return da(e,1)},kn.union=Fo,kn.unionBy=Lo,kn.unionWith=zo,kn.uniq=function(e){return e&&e.length?Jr(e):[]},kn.uniqBy=function(e,t){return e&&e.length?Jr(e,Ji(t,2)):[]},kn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Jr(e,o,t):[]},kn.unset=function(e,t){return null==e||Zr(e,t)},kn.unzip=Vo,kn.unzipWith=qo,kn.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},kn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ei(e,t,ai(n),r)},kn.values=ws,kn.valuesIn=function(e){return null==e?[]:It(e,ps(e))},kn.without=Uo,kn.words=Ts,kn.wrap=function(e,t){return ba(ai(t),e)},kn.xor=Ho,kn.xorBy=Wo,kn.xorWith=Yo,kn.zip=Go,kn.zipObject=function(e,t){return ii(e||[],t||[],Un)},kn.zipObjectDeep=function(e,t){return ii(e||[],t||[],Vr)},kn.zipWith=Xo,kn.entries=bs,kn.entriesIn=xs,kn.extend=ts,kn.extendWith=ns,Vs(kn,kn),kn.add=Zs,kn.attempt=js,kn.camelCase=_s,kn.capitalize=Ss,kn.ceil=eu,kn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Ka(n))==n?n:0),t!==o&&(t=(t=Ka(t))==t?t:0),Qn(Ka(e),t,n)},kn.clone=function(e){return Kn(e,4)},kn.cloneDeep=function(e){return Kn(e,5)},kn.cloneDeepWith=function(e,t){return Kn(e,5,t="function"==typeof t?t:o)},kn.cloneWith=function(e,t){return Kn(e,4,t="function"==typeof t?t:o)},kn.conformsTo=function(e,t){return null==t||Jn(e,t,fs(t))},kn.deburr=Cs,kn.defaultTo=function(e,t){return null==e||e!=e?t:e},kn.divide=tu,kn.endsWith=function(e,t,n){e=Za(e),t=Kr(t);var r=e.length;r=n=n===o?r:Qn(Xa(n),0,r);return 0<=(n-=t.length)&&e.slice(n,r)==t},kn.eq=_a,kn.escape=function(e){return(e=Za(e))&&W.test(e)?e.replace(U,Ft):e},kn.escapeRegExp=function(e){return(e=Za(e))&&ee.test(e)?e.replace(Z,"\\$&"):e},kn.every=function(e,t,n){return(Ea(e)?dt:rr)(e,Ji(t=n&&co(e,t,n)?o:t,3))},kn.find=ea,kn.findIndex=Mo,kn.findKey=function(e,t){return wt(e,Ji(t,3),cr)},kn.findLast=ta,kn.findLastIndex=To,kn.findLastKey=function(e,t){return wt(e,Ji(t,3),lr)},kn.floor=nu,kn.forEach=na,kn.forEachRight=ra,kn.forIn=function(e,t){return null==e?e:sr(e,Ji(t,3),ps)},kn.forInRight=function(e,t){return null==e?e:ur(e,Ji(t,3),ps)},kn.forOwn=function(e,t){return e&&cr(e,Ji(t,3))},kn.forOwnRight=function(e,t){return e&&lr(e,Ji(t,3))},kn.get=ss,kn.gt=Sa,kn.gte=Ca,kn.has=function(e,t){return null!=e&&oo(e,t,gr)},kn.hasIn=us,kn.head=Io,kn.identity=Bs,kn.includes=function(e,t,n,r){return e=ka(e)?e:ws(e),n=n&&!r?Xa(n):0,r=e.length,n<0&&(n=cn(r+n,0)),Va(e)?n<=r&&-1=ln(t=t,n=n)&&e=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},kn.prototype.plant=function(e){for(var t,n=this;n instanceof Mn;){var r=Do(n),i=(r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r,r);n=n.__wrapped__}return i.__wrapped__=e,t},kn.prototype.reverse=function(){var e=this.__wrapped__;return e instanceof jn?(e=e,(e=(e=this.__actions__.length?new jn(this):e).reverse()).__actions__.push({func:Ko,args:[Bo],thisArg:o}),new Tn(e,this.__chain__)):this.thru(Bo)},kn.prototype.toJSON=kn.prototype.valueOf=kn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},kn.prototype.first=kn.prototype.head,kt&&(kn.prototype[kt]=function(){return this}),kn}();Ke._=Qt,(i=function(){return Qt}.call(t,n,t,r))!==o&&(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"2f02":function(e,t,n){},"2f9a":function(e,t){e.exports=function(){}},"2fcb":function(e,t,n){},"301c":function(e,t,n){n("e198")("asyncIterator")},"301f":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},119:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?t("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)}n.r(t),r._withStripped=!0;var i=n(3),o={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:ethis.value;e=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||e},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){var t,n;this.rateDisabled||(t=this.currentValue,38===(n=e.keyCode)||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:--t,e.stopPropagation(),e.preventDefault()),t=(t=t<0?0:t)>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t))},setCurrentValue:function(e,t){var n;this.rateDisabled||(this.allowHalf?(n=t.target,Object(i.hasClass)(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(i.hasClass)(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e):this.currentValue=e,this.hoverIndex=e)},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},n=n(0),n=Object(n.a)(a,r,[],!1,null,null,null),n.options.__file="packages/rate/src/main.vue",n.exports);s.install=function(e){e.component(s.name,s)},t.default=s},11:function(e,t){e.exports=n("2bb5")},17:function(e,t){e.exports=n("a742")},2:function(e,t){e.exports=n("5924")}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=106))},"342a":function(e,t,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("1a04"),n("bff0")},"342f":function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},"34db":function(e,t,n){},"34e9":function(e,t,n){"use strict";var r=n("2638"),i=n.n(r),o=(r=n("d282"),n("ba31")),a=n("b1d2"),s=(n=Object(r.a)("cell-group"),r=n[0],n[1]);function u(e,t,n,r){var u=e("div",i()([{class:[s({inset:t.inset}),((u={})[a.f]=t.border,u)]},Object(o.b)(r,!0)]),[null==n.default?void 0:n.default()]);return t.title||n.title?e("div",{key:r.data.key},[e("div",{class:s("title",{inset:t.inset})},[n.title?n.title():t.title]),u]):u}u.props={title:String,inset:Boolean,border:{type:Boolean,default:!0}},t.a=r(u)},3511:function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if(9007199254740991=t.length?s(void 0,!0):(t=r(t,n),e.index+=t.length,s(t,!1))}))},"3d2d":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},84:function(e,t,n){"use strict";function r(){var e=this.$createElement;return(this._self._c||e)("section",{staticClass:"el-container",class:{"is-vertical":this.isVertical}},[this._t("default")],2)}n.r(t),r._withStripped=!0;var i={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){return e=e.componentOptions&&e.componentOptions.tag,"el-header"===e||"el-footer"===e}))}}},o=(n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/container/src/main.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=84))},"3db2":function(e,t,n){},"3df5":function(e,t,n){"use strict";n("68ef"),n("75ad")},"3e9c":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},1:function(e,t){e.exports=n("d940")},10:function(e,t){e.exports=n("f3ad")},12:function(e,t){e.exports=n("417f")},15:function(e,t){e.exports=n("14e9")},31:function(e,t){e.exports=n("2a5e")},32:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement;t=e._self._c||t;return e.ranged?t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[t("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),t("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[t("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),t("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?t("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):t("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[t("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?t("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])}function i(e,t){return"timestamp"===t?e.getTime():Object(m.formatDate)(e,t)}function o(e,t){return"timestamp"===t?new Date(Number(e)):Object(m.parseDate)(e,t)}function a(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0];e=e[1];if(n&&e)return[i(n,t),i(e,t)]}return""}function s(e,t,n){return 2===(e=Array.isArray(e)?e:e.split(n)).length?(n=e[0],e=e[1],[o(n,t),o(e,t)]):[]}function u(e,t,n){return e?(0,(S[n]||S.default).parser)(e,t||w[n],3=n.length)break;t=n[i++]}else{if((i=n.next()).done)break;t=i.value}var o=t.target.__resizeListeners__||[];o.length&&o.forEach((function(e){e()}))}}var o="undefined"==typeof window;t.addResizeListener=function(e,t){o||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new r.default(i),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},4056:function(e,t,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("09fe")},"408a":function(e,t,n){"use strict";n=n("e330"),e.exports=n(1..valueOf)},"40d5":function(e,t,n){"use strict";n=n("d039"),e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4105:function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},109:function(e,t,n){"use strict";function r(){var e=this.$createElement;return(this._self._c||e)("form",{staticClass:"el-form",class:[this.labelPosition?"el-form--label-"+this.labelPosition:"",{"el-form--inline":this.inline}]},[this._t("default")],2)}n.r(t),r._withStripped=!0;var i=n(9),o=n.n(i),a=(i={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){var e;return this.potentialLabelWidthArr.length?(e=Math.max.apply(Math,this.potentialLabelWidthArr))?e+"px":"":0}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model&&this.fields.forEach((function(e){e.resetField()}))},clearValidate:function(){var e=0 * MIT Licence */var i,o,a,s=9e15,u=1e9,c="0123456789abcdef",l="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",d="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",f={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-s,maxE:s,crypto:!1},p=!0,h="[DecimalError] ",m=h+"Invalid argument: ",g=h+"Precision limit exceeded",v=h+"crypto unavailable",y="[object Decimal]",b=Math.floor,x=Math.pow,w=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,_=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,S=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,C=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,A=1e7,E=7,N=l.length-1,k=d.length-1,O={toStringTag:y};function D(e){var t,n,r,i=e.length-1,o="",a=e[0];if(0e.e^o<0?1:-1;for(t=0,n=(a=r.length)<(e=i.length)?a:e;ti[t]^o<0?1:-1;return a===e?0:ethis.d.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isPositive=O.isPos=function(){return 0t&&(t=this.e+1)):t=NaN,t},O.round=function(){var e=this.constructor;return B(new e(this),this.e+1,e.rounding)},O.sine=O.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+E,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:J(e,2,t,t);n=16<(n=1.4*Math.sqrt(r))?16:0|n,t=t.times(1/Z(5,n)),t=J(e,2,t,t);for(var i,o=new e(5),a=new e(16),s=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(a.times(i).minus(s))));return t}(r,ee(r,n)),r.precision=e,r.rounding=t,B(2=e.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=H(u,s,n,r),e.s<0?new u(1).div(i):B(i,r,o);if((a=s.s)<0){if(tu.maxE+1||t=r.toExpPos):(M(e,1,u),void 0===t?t=r.rounding:M(t,0,8),F(n=B(new r(n),e,t),e<=n.e||n.e<=r.toExpNeg,e));return n.isNeg()&&!n.isZero()?"-"+t:t},O.toSignificantDigits=O.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(M(e,1,u),void 0===t?t=n.rounding:M(t,0,8)),B(new n(this),e,t)},O.toString=function(){var e=this.constructor;e=F(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+e:e},O.truncated=O.trunc=function(){return B(new this.constructor(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var e=this.constructor;e=F(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+e:e};var I=function(e,t,n,r,i,a){var s,u,c,l,d,f,p,h,m,g,v,y,x,w,_,S,C,N,k,O=e.constructor,D=e.s==t.s?1:-1,M=e.d,T=t.d;if(!(M&&M[0]&&T&&T[0]))return new O(e.s&&t.s&&(M?!T||M[0]!=T[0]:T)?M&&0==M[0]||!T?0*D:D/0:NaN);for(u=a?(d=1,e.e-t.e):(a=A,b(e.e/(d=E))-b(t.e/d)),N=T.length,S=M.length,m=(D=new O(D)).d=[],c=0;T[c]==(M[c]||0);c++);if(T[c]>(M[c]||0)&&u--,null==n?(x=n=O.precision,r=O.rounding):x=i?n+(e.e-t.e)+1:n,x<0)m.push(1),f=!0;else{if(x=x/d+2|0,c=0,1==N){for(T=T[l=0],x++;(c=a/2&&++C;l=0,(s=$(T,g,N,v))<0?(y=g[0],1<(l=(y=N!=v?y*a+(g[1]||0):y)/C|0)?1==(s=$(p=P(T,l=a<=l?a-1:l,a),g,h=p.length,v=g.length))&&(l--,R(p,Nt[i]?1:-1;break}return o}function R(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]f.maxE?(e.d=null,e.e=NaN):e.ee.constructor.maxE?(e.d=null,e.e=NaN):e.ei-1;)p[n]=0,n||(++a,p.unshift(1));for(l=p.length;!p[l-1];--l);for(s=0,f="";sl)for(a-=l;a--;)f+="0";else at&&(e.length=t,1)}function re(e){return new this(e).abs()}function ie(e){return new this(e).acos()}function oe(e){return new this(e).acosh()}function ae(e,t){return new this(e).plus(t)}function se(e){return new this(e).asin()}function ue(e){return new this(e).asinh()}function ce(e){return new this(e).atan()}function le(e){return new this(e).atanh()}function de(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?V(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=V(this,o,1).times(.5)).s=e.s:n=t.s<0?(this.precision=o,this.rounding=1,n=this.atan(I(e,t,o,1)),t=V(this,o,1),this.precision=r,this.rounding=i,e.s<0?n.minus(t):n.plus(t)):this.atan(I(e,t,o,1)):(n=V(this,o,1).times(0a.maxE?(o.e=NaN,o.d=null):e.e\n \n '):o||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold)))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,r={on:{}},i=(n&&(r.on.expand=this.handleExpand),this.nodes.map((function(n,i){var o=n.hasChildren;return e("cascader-node",a()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+i,"aria-haspopup":o,"aria-owns":o?t:null}},r]))})));return[].concat(i,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,r={nativeOn:{}};return this.panel.isHoverMenu&&(r.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",a()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},r]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},o=Object(u.a)(l,void 0,void 0,!1,null,null,null),s=(o.options.__file="packages/cascader-panel/src/cascader-menu.vue",o.exports),n(21));l=function(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e};function f(e,t){for(var n=0;n=t.length&&s.slice(0,t.length)===t&&(u+=c[l[n]],s=s.slice(t.length,s.length),e=!0)})),e||(u+=s.slice(0,1),s=s.slice(1,s.length))}();return u}},"480b":function(e,t,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("9ee3")},"482d":function(e,t,n){"use strict";function r(e,t,n){return Math.min(Math.max(e,t),n)}function i(e,t,n){var r=e.indexOf(t),i="";return-1===r?e:"-"===t&&0!==r?e.slice(0,r):(i="."===t&&e.match(/^(\.|-\.)/)?r?"-0":"0":i)+e.slice(0,r+1)+e.slice(r).replace(n,"")}function o(e,t,n){return void 0===n&&(n=!0),e=(t=void 0===t||t)?i(e,".",/\./g):e.split(".")[0],(e=n?i(e,"-",/-/g):e.replace(/-/,"")).replace(t?/[^-0-9.]/g:/[^-0-9]/g,"")}function a(e,t){var n=Math.pow(10,10);return Math.round((e+t)*n)/n}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}))},4840:function(e,t,n){"use strict";var r=n("825a"),i=n("5087"),o=n("7234"),a=n("b622")("species");e.exports=function(e,t){e=r(e).constructor;return void 0===e||o(e=r(e)[a])?t:i(e)}},"485a":function(e,t,n){"use strict";var r=n("c65b"),i=n("1626"),o=n("861d"),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},"486c":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},85:function(e,t,n){"use strict";function r(){var e=this.$createElement;return(e=this._self._c||e)("ul",{directives:[{name:"show",rawName:"v-show",value:this.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[e("li",{staticClass:"el-select-group__title"},[this._v(this._s(this.label))]),e("li",[e("ul",{staticClass:"el-select-group"},[this._t("default")],2)])])}n.r(t),r._withStripped=!0;var i=n(4),o=(i={mixins:[n.n(i).a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(e){return!0===e.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/select/src/option-group.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=85))},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=a(n("f0d9")),i=a(n("2b0e")),o=a(n("3c4e"));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,a(n("9d7e")).default)(i.default),u=r.default,c=!1,l=function(){var e=Object.getPrototypeOf(this||i.default).$t;if("function"==typeof e&&i.default.locale)return c||(c=!0,i.default.locale(i.default.config.lang,(0,o.default)(u,i.default.locale(i.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},d=(n=t.t=function(e,t){if(null!=(a=l.apply(this,arguments)))return a;for(var n=e.split("."),r=u,i=0,o=n.length;i@^][^\s!#%&*+<=>@^]*>/,I=/a/g,P=/a/g,$=(n=new A(I)!==I,h.MISSED_STICKY),R=h.UNSUPPORTED_Y;w=r&&(!n||$||_||S||v((function(){return P[C]=!1,A(I)!==I||A(P)===P||"/a/i"!==String(A(I,"i"))})));if(a("RegExp",w)){for(var B=function(e,t){var n,r,i=l(E,this),o=d(e),a=void 0===t,c=[],h=e;if(!i&&o&&a&&e.constructor===B)return e;if((o||l(E,e))&&(e=e.source,a)&&(t=p(h)),e=void 0===e?"":f(e),t=void 0===t?"":f(t),h=e,o=t=_&&"dotAll"in I&&(n=!!t&&-1"===t&&u:if(""===l||y(a,l))throw new N("Invalid capture group name");a[l]=!0,u=!(o[o.length]=[l,c]),l="";continue}u?l+=t:i+=t}return[i,o]}(e))[0],c=a[1]),a=s(A(e,t),i?this:E,B),(n||r||c.length)&&(t=b(a),n&&(t.dotAll=!0,t.raw=B(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"===(t=O(e,r))?i+=t+O(e,++r):o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]";return i}(e),o)),r&&(t.sticky=!0),c.length)&&(t.groups=c),e!==h)try{u(a,"source",""===h?"(?:)":h)}catch(e){}return a},F=c(A),L=0;F.length>L;)m(B,A,F[L++]);(E.constructor=B).prototype=E,g(i,"RegExp",B,{constructor:!0})}x("RegExp")},"4d64":function(e,t,n){"use strict";function r(e){return function(t,n,r){var s,u=i(t),c=a(u),l=o(r,c);if(e&&n!=n){for(;l=this.select.multipleLimit&&0 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)}function i(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":this.$parent.multiple},this.popperClass],style:{minWidth:this.minWidth}},[this._t("default")],2)}n.r(t),r._withStripped=!0;var o=n(4),a=(o=n.n(o),n(22)),s=(a=n.n(a),n(6)),u=(s=n.n(s),n(10)),c=(u=n.n(u),i._withStripped=!0,n(5)),l=(c={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[n.n(c).a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},n(0)),d=(c=Object(l.a)(c,i,[],!1,null,null,null),c=(c.options.__file="packages/select/src/select-dropdown.vue",c.exports),n(33)),f=n(37),p=(f=n.n(f),n(15)),h=(p=n.n(p),n(18)),m=n.n(h),g=(h=n(12),h=n.n(h),n(16)),v=n(31),y=n.n(v),b=n(3),x=n(21),w=(v={mixins:[o.a,s.a,a()("reference"),{data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"==typeof e&&-1")}))||!n||E)},"537a":function(e,t,n){"use strict";n("68ef"),n("9312")},"543e":function(e,t,n){"use strict";var r=n("2638"),i=n.n(r),o=(r=n("d282"),n("ea8e")),a=n("ba31"),s=(n=Object(r.a)("loading"),r=n[0],n[1]);function u(e,t,n,r){var u=t.color,c=t.size,l=t.type;u={color:u};return c&&(c=Object(o.a)(c),u.width=c,u.height=c),e("div",i()([{class:s([l,{vertical:t.vertical}])},Object(a.b)(r,!0)]),[e("span",{class:s("spinner",l),style:u},[function(e,t){if("spinner"!==t.type)return e("svg",{class:s("circular"),attrs:{viewBox:"25 25 50 50"}},[e("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]);for(var n=[],r=0;r<12;r++)n.push(e("i"));return n}(e,t)]),function(e,t,n){var r;if(n.default)return r={fontSize:Object(o.a)(t.textSize),color:null!=(r=t.textColor)?r:t.color},e("span",{class:s("text"),style:r},[n.default()])}(e,t,n)])}u.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}},t.a=r(u)},5466:function(e,t,n){},5488:function(e,t,n){"use strict";t.__esModule=!0;var r=n("5924");o.prototype.beforeEnter=function(e){(0,r.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},o.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?e.style.height=e.scrollHeight+"px":e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"},o.prototype.afterEnter=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},o.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},o.prototype.leave=function(e){0!==e.scrollHeight&&((0,r.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},o.prototype.afterLeave=function(e){(0,r.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom};var i=o;function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function")}t.default={name:"ElCollapseTransition",functional:!0,render:function(e,t){return t=t.children,e("transition",{on:new i},t)}}},5524:function(e,t){e=e.exports={version:"2.6.12"},"number"==typeof __e&&(__e=e)},5596:function(e,t,n){"use strict";var r=n("d282"),i=n("02de"),o=n("1325"),a=n("4598"),s=n("482d"),u=n("3875"),c=n("9884"),l=(n=n("5fbe"),r=Object(r.a)("swipe"),r[0]),d=r[1];t.a=l({mixins:[u.a,Object(c.b)("vanSwipe"),Object(n.a)((function(e,t){e(window,"resize",this.resize,!0),e(window,"orientationchange",this.resize,!0),e(window,"visibilitychange",this.onVisibilityChange),t?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(e){0e/2)&&this.isCorrectDirection?(n=this.vertical?this.offsetY:this.offsetX,r=0,r=this.loop?0=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var e=this,t=this.autoplay;0n&&(e=this.value&&this.value.length===+n?this.value:e.slice(0,n)),"number"!==this.type&&"digit"!==this.type||(n="number"===this.type,e=Object(s.b)(e,n,n)),this.formatter&&t===this.formatTrigger&&(e=this.formatter(e)),n=this.$refs.input;n&&e!==n.value&&(n.value=e),e!==this.value&&this.$emit("input",e)},onInput:function(e){e.target.composing||this.updateValue(e.target.value)},onFocus:function(e){this.focused=!0,this.$emit("focus",e),this.$nextTick(this.adjustSize),this.getProp("readonly")&&this.blur()},onBlur:function(e){this.getProp("readonly")||(this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",e),this.validateWithTrigger("onBlur"),this.$nextTick(this.adjustSize),Object(a.a)())},onClick:function(e){this.$emit("click",e)},onClickInput:function(e){this.$emit("click-input",e)},onClickLeftIcon:function(e){this.$emit("click-left-icon",e)},onClickRightIcon:function(e){this.$emit("click-right-icon",e)},onClear:function(e){Object(u.c)(e),this.$emit("input",""),this.$emit("clear",e)},onKeypress:function(e){13===e.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||Object(u.c)(e),"search"===this.type)&&this.blur(),this.$emit("keypress",e)},adjustSize:function(){var e,t,n,r,i=this.$refs.input;"textarea"===this.type&&this.autosize&&i&&(e=Object(c.b)(),i.style.height="auto",t=i.scrollHeight,t=Object(l.e)(this.autosize)&&(n=(r=this.autosize).maxHeight,r=r.minHeight,n&&(t=Math.min(t,n)),r)?Math.max(t,r):t)&&(i.style.height=t+"px",Object(c.g)(e))},genInput:function(){var e,t=this.$createElement,n=this.type,r=this.getProp("disabled"),a=this.getProp("readonly"),s=this.slots("input"),u=this.getProp("inputAlign");return s?t("div",{class:m("control",[u,"custom"]),on:{click:this.onClickInput}},[s]):(s={ref:"input",class:m("control",u),domProps:{value:this.value},attrs:Object(o.a)({},this.$attrs,{name:this.name,disabled:r,readonly:a,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]},"textarea"===n?t("textarea",i()([{},s])):("number"===(u=n)&&(u="text",e="decimal"),"digit"===n&&(u="tel",e="numeric"),t("input",i()([{attrs:{type:u,inputmode:e}},s]))))},genLeftIcon:function(){var e=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return e("div",{class:m("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||e(f.a,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var e=this.$createElement,t=this.slots;if(t("right-icon")||this.rightIcon)return e("div",{class:m("right-icon"),on:{click:this.onClickRightIcon}},[t("right-icon")||e(f.a,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var e,t=this.$createElement;if(this.showWordLimit&&this.maxlength)return e=(this.value||"").length,t("div",{class:m("word-limit")},[t("span",{class:m("word-num")},[e]),"/",this.maxlength])},genMessage:function(){var e,t,n=this.$createElement;return this.vanForm&&!1===this.vanForm.showErrorMessage||!(e=this.errorMessage||this.validateMessage)?void 0:(t=this.getProp("errorMessageAlign"),n("div",{class:m("error-message",t)},[e]))},getProp:function(e){return Object(l.c)(this[e])?this[e]:this.vanForm&&Object(l.c)(this.vanForm[e])?this.vanForm[e]:void 0},genLabel:function(){var e=this.$createElement,t=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),t]:this.label?e("span",[this.label+t]):void 0}},render:function(){var e=arguments[0],t=this.slots,n=this.getProp("disabled"),r=this.getProp("labelAlign"),i={icon:this.genLeftIcon},o=this.genLabel(),a=(o&&(i.title=function(){return o}),this.slots("extra"));return a&&(i.extra=function(){return a}),e(p.a,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:m("value"),titleClass:[m("label",r),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:i,class:m(((i={error:this.showError,disabled:n})["label-"+r]=r,i["min-height"]="textarea"===this.type&&!this.autosize,i)),on:{click:this.onClick}},[e("div",{class:m("body")},[this.genInput(),this.showClear&&e(f.a,{attrs:{name:"clear"},class:m("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),t("button")&&e("div",{class:m("button")},[t("button")])]),this.genWordLimit(),this.genMessage()])}})},5692:function(e,t,n){"use strict";var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,n){"use strict";var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},"570a":function(e,t,n){"use strict";n("68ef"),n("d8ac")},"577e":function(e,t,n){"use strict";var r=n("f5df"),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},"57b9":function(e,t,n){"use strict";var r=n("c65b"),i=n("d066"),o=n("b622"),a=n("cb2d");e.exports=function(){var e=i("Symbol"),t=(e=e&&e.prototype,e&&e.valueOf),n=o("toPrimitive");e&&!e[n]&&a(e,n,(function(e){return r(t,this)}),{arity:1})}},5852:function(e,t,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("1a04"),n("1146"),n("f032")},5899:function(e,t,n){"use strict";e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){"use strict";function r(e){return function(t){return t=a(o(t)),1&e&&(t=s(t,u,"")),2&e?s(t,c,"$1"):t}}var i=n("e330"),o=n("1d80"),a=n("577e"),s=(n=n("5899"),i("".replace)),u=RegExp("^["+n+"]+"),c=RegExp("(^|[^"+n+"])["+n+"]+$");e.exports={start:r(1),end:r(2),trim:r(3)}},"58b8":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},11:function(e,t){e.exports=n("2bb5")},12:function(e,t){e.exports=n("417f")},15:function(e,t){e.exports=n("14e9")},18:function(e,t){e.exports=n("0e15")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},4:function(e,t){e.exports=n("d010")},5:function(e,t){e.exports=n("e974")},65:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleKeyEnter(t):null},function(t){return"button"in t||!e._k(t.keyCode,"tab",9,t.key,"Tab")?e.close(t):null}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass||""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,r){return n("li",{key:r,class:{highlighted:e.highlightedIndex===r},attrs:{id:e.id+"-item-"+r,role:"option","aria-selected":e.highlightedIndex===r},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)}function i(){var e=this,t=e.$createElement;return(t=e._self._c||t)("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[t("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?t("li",[t("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])}n.r(t),r._withStripped=!0;var o=n(18),a=n.n(o),s=(o=n(10),o=n.n(o),n(12)),u=(s=n.n(s),i._withStripped=!0,n(5)),c=(u=n.n(u),n(4)),l=(c=n.n(c),n(15)),d=(l={components:{ElScrollbar:n.n(l).a},mixins:[u.a,c.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},u=n(0),l=Object(u.a)(l,i,[],!1,null,null,null),l=(l.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue",l.exports),n(11)),f=(d=n.n(d),n(3)),p=n(22),h=(n=n.n(p),p={name:"ElAutocomplete",mixins:[c.a,n()("input"),d.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:o.a,ElAutocompleteSuggestions:l},directives:{Clickoutside:s.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions;return(Array.isArray(e)&&0=this.suggestions.length&&(e=this.suggestions.length-1),n=(t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap")).querySelectorAll(".el-autocomplete-suggestion__list li")[e],r=t.scrollTop,(i=n.offsetTop)+n.scrollHeight>r+t.clientHeight&&(t.scrollTop+=n.scrollHeight),in.top&&e.right>n.left&&e.leftt)return(t=this.height+r-t)this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var e=this.children[this.currentIndex];if(e)return e.computedName},offsetTopPx:function(){return Object(i.b)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(e){e!==this.currentName&&this.setCurrentIndexByName(e)},children:function(){var e=this;this.setCurrentIndexByName(this.active),this.setLine(),this.$nextTick((function(){e.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(s.g)(Math.ceil(Object(s.a)(this.$el)-this.offsetTopPx))},scrollspy:function(e){e?Object(l.b)(this.scroller,"scroll",this.onScroll,!0):Object(l.a)(this.scroller,"scroll",this.onScroll)}},mounted:function(){var e=this;this.init(),this.vanPopup&&this.vanPopup.onReopen((function(){e.setLine()}))},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var e=this;this.$nextTick((function(){e.inited=!0,e.tabHeight=Object(s.e)(e.$refs.wrap),e.scrollIntoView(!0)}))},setLine:function(){var e=this,t=this.inited;this.$nextTick((function(){var n,r,a=e.$refs.titles;a&&a[e.currentIndex]&&"line"===e.type&&!Object(c.a)(e.$el)&&(a=a[e.currentIndex].$el,r=e.lineWidth,n=e.lineHeight,a=a.offsetLeft+a.offsetWidth/2,r={width:Object(i.a)(r),backgroundColor:e.color,transform:"translateX("+a+"px) translateX(-50%)"},t&&(r.transitionDuration=e.duration+"s"),Object(o.c)(n)&&(a=Object(i.a)(n),r.height=a,r.borderRadius=a),e.lineStyle=r)}))},setCurrentIndexByName:function(e){var t=this.children.filter((function(t){return t.computedName===e})),n=(this.children[0]||{}).index||0;this.setCurrentIndex(t.length?t[0].index:n)},setCurrentIndex:function(e){var t,n,r;e=this.findAvailableTab(e);Object(o.c)(e)&&(n=(t=this.children[e]).computedName,r=null!==this.currentIndex,this.currentIndex=e,n!==this.active)&&(this.$emit("input",n),r)&&this.$emit("change",n,t.title)},findAvailableTab:function(e){for(var t=ethis.scrollOffset)return 0===t?0:t-1;return e.length-1}},render:function(){var e=this,t=arguments[0],n=this.type,r=this.animated,i=this.scrollable,o=this.children.map((function(r,o){var a;return t(b,{ref:"titles",refInFor:!0,attrs:{type:n,dot:r.dot,info:null!=(a=r.badge)?a:r.info,title:r.title,color:e.color,isActive:o===e.currentIndex,disabled:r.disabled,scrollable:i,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:r.titleStyle,class:r.titleClass,scopedSlots:{default:function(){return r.slots("title")}},on:{click:function(){e.onClick(r,o)}}})})),a=t("div",{ref:"wrap",class:[A("wrap",{scrollable:i}),((a={})[d.f]="line"===n&&this.border,a)]},[t("div",{ref:"nav",attrs:{role:"tablist"},class:A("nav",[n,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),o,"line"===n&&t("div",{class:A("line"),style:this.lineStyle}),this.slots("nav-right")])]);return t("div",{class:A([n])},[this.sticky?t(w,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[a]):a,t(C,{attrs:{count:this.children.length,animated:r,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}})},"5e77":function(e,t,n){"use strict";var r=n("83ab"),i=(n=n("1a2d"),Function.prototype),o=r&&Object.getOwnPropertyDescriptor,a=(n=n(i,"name"),n&&"something"===function(){}.name);r=n&&(!r||o(i,"name").configurable);e.exports={EXISTS:n,PROPER:a,CONFIGURABLE:r}},"5e7e":function(e,t,n){"use strict";function r(e,t){var n,r,i,o,a=t.value,s=t.state===U,u=s?e.ok:e.fail,f=e.resolve,p=e.reject,h=e.domain;try{u?(s||(t.rejection===Y&&(o=t,d(w,l,(function(){var e=o.facade;c?B.emit("rejectionHandled",e):Q(q,e,o.value)}))),t.rejection=W),!0===u?n=a:(h&&h.enter(),n=u(a),h&&(h.exit(),i=!0)),n===e.promise?p($("Promise-chain cycle")):(r=G(n))?d(r,n,f,p):f(n)):p(a)}catch(e){h&&!i&&h.exit(),p(e)}}var i,o,a,s=n("23e7"),u=n("c430"),c=n("605d"),l=n("da84"),d=n("c65b"),f=n("cb2d"),p=n("d2bb"),h=n("d44e"),m=n("2626"),g=n("59ed"),v=n("1626"),y=n("861d"),b=n("19aa"),x=n("4840"),w=n("2cf4").set,_=n("b575"),S=n("44de"),C=n("e667"),A=n("01b4"),E=n("69f3"),N=n("d256"),k=n("4738"),O=(n=n("f069"),"Promise"),D=k.CONSTRUCTOR,M=k.REJECTION_EVENT,T=(k=k.SUBCLASSING,E.getterFor(O)),j=E.set,I=(E=N&&N.prototype,N),P=E,$=l.TypeError,R=l.document,B=l.process,F=n.f,L=F,z=!!(R&&R.createEvent&&l.dispatchEvent),V="unhandledrejection",q="rejectionhandled",U=1,H=2,W=1,Y=2,G=function(e){var t;return!(!y(e)||!v(t=e.then))&&t},X=function(e,t){e.notified||(e.notified=!0,_((function(){for(var n,i,o=e.reactions;n=o.get();)r(n,e);e.notified=!1,t&&!e.rejection&&(i=e,d(w,l,(function(){var e=i.facade,t=i.value,n=K(i);if(n&&(n=C((function(){c?B.emit("unhandledRejection",t,e):Q(V,e,t)})),i.rejection=c||K(i)?Y:W,n.error))throw n.value})))})))},Q=function(e,t,n){var r;z?((r=R.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!M&&(t=l["on"+e])?t(r):e===V&&S("Unhandled promise rejection",n)},K=function(e){return e.rejection!==W&&!e.parent},J=function(e,t,n){return function(r){e(t,r,n)}},Z=function(e,t,n){e.done||(e.done=!0,(e=n||e).value=t,e.state=H,X(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw $("Promise can't be resolved itself");var r=G(t);r?_((function(){var n={done:!1};try{d(r,t,J(ee,n,e),J(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=U,X(e,!1))}catch(t){Z({done:!1},t,e)}}};if(D&&(P=(I=function(e){b(this,P),g(e),d(i,this);var t=T(this);try{e(J(ee,t),J(Z,t))}catch(e){Z(t,e)}}).prototype,(i=function(e){j(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=f(P,"then",(function(e,t){var n=T(this),i=F(x(this,I));return n.parent=!0,i.ok=!v(e)||e,i.fail=v(t)&&t,i.domain=c?B.domain:void 0,0===n.state?n.reactions.add(i):_((function(){r(i,n)})),i.promise})),o=function(){var e=new i,t=T(e);this.promise=e,this.resolve=J(ee,t),this.reject=J(Z,t)},n.f=F=function(e){return e===I||void 0===e?new o:L(e)},!u)&&v(N)&&E!==Object.prototype){a=E.then,k||f(E,"then",(function(e,t){var n=this;return new I((function(e,t){d(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete E.constructor}catch(n){}p&&p(E,P)}s({global:!0,constructor:!0,wrap:!0,forced:D},{Promise:I}),h(I,O,!1,!0),m(O)},"5eed":function(e,t,n){"use strict";var r=n("d256"),i=n("1c7e");n=n("4738").CONSTRUCTOR;e.exports=n||!i((function(e){r.all(e).then(void 0,(function(){}))}))},"5f5f":function(e,t,n){"use strict";n("68ef"),n("e3b3"),n("a526")},"5fbe":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("1325"),i=0;function o(e){var t="binded_"+i++;function n(){this[t]||(e.call(this,r.b,!0),this[t]=!0)}function o(){this[t]&&(e.call(this,r.a,!1),this[t]=!1)}return{mounted:n,activated:n,deactivated:o,beforeDestroy:o}}},"605d":function(e,t,n){"use strict";var r=n("da84");n=n("c6b6");e.exports="process"===n(r.process)},6069:function(e,t,n){"use strict";var r=n("6c59");n=n("605d");e.exports=!r&&!n&&"object"==typeof window&&"object"==typeof document},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),a=n("d039"),s=n("df75"),u=n("7418"),c=n("d1e7"),l=n("7b0b"),d=n("44ad"),f=Object.assign,p=Object.defineProperty,h=i([].concat);e.exports=!f||a((function(){var e,t,n,i;return!(!r||1===f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)||(t={},i="abcdefghijklmnopqrst",(e={})[n=Symbol("assign detection")]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n])||s(f({},t)).join("")!==i}))?function(e,t){for(var n=l(e),i=arguments.length,a=1,f=u.f,p=c.f;a1&&a instanceof Element===!1&&(a=a[0]),a.appendChild(i),i;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function u(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=u(t);if(this._options.forceAbsolute)return"absolute";var r=l(t,n);return r?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=m(t,u(e),o),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,o,a={};if("window"===r){var s=e.document.body,l=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),i=Math.max(s.scrollWidth,s.offsetWidth,l.clientWidth,l.scrollWidth,l.offsetWidth),a={top:0,right:i,bottom:o,left:0}}else if("viewport"===r){var d=u(this._popper),f=c(this._popper),h=p(d),m=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},g=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:m(f),y="fixed"===t.offsets.popper.position?0:g(f);a={top:0-(h.top-v),right:e.document.documentElement.clientWidth-(h.left-y),bottom:e.document.documentElement.clientHeight-(h.top-v),left:0-(h.left-y)}}else a=u(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:p(r);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(t){f(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},(n.prototype.modifiers={}).applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=g("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,e.styles),d(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&d(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},u=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[u][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),r={left:function(){var t=n.left;return n.lefte.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.tope.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,r[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.rightr(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottomr(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,a.forEach(function(s,u){if(t===s&&a.length!==u+1){t=e.placement.split("-")[0],n=i(t);var c=o(e.offsets.popper),l=-1!==["right","bottom"].indexOf(t);(l&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!l&&Math.floor(e.offsets.reference[t])s[p]&&(e.offsets.popper[d]+=u[d]+h-s[p]);var m=u[d]+(n||u[l]/2-h/2),g=m-s[d];return g=Math.max(Math.min(s[l]-h-8,g),8),i[d]=g,i[f]="",e.offsets.arrow=i,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;nthis.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},o=(n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/steps/src/step.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=115))},"66b9":function(e,t,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("e3b3"),n("bc1b")},"66fd":function(e,t,n){"use strict";var r=n("2638"),i=n.n(r),o=(r=n("d282"),n("a142")),a=n("ba31"),s=n("ad06"),u=Object(r.a)("tag"),c=u[0],l=u[1];function d(e,t,n,r){var o,u=t.type,c=t.mark,d=t.plain,f=t.color,p=t.round,h=t.size,m=t.textColor;(o={})[d?"color":"backgroundColor"]=f,d?(o.color=m||f,o.borderColor=f):(o.color=m,o.background=f),m={mark:c,plain:d,round:p},h&&(m[h]=h),f=t.closeable&&e(s.a,{attrs:{name:"cross"},class:l("close"),on:{click:function(e){e.stopPropagation(),Object(a.a)(r,"close")}}});return e("transition",{attrs:{name:t.closeable?"van-fade":null}},[e("span",i()([{key:"content",style:o,class:l([m,u])},Object(a.b)(r,!0)]),[null==n.default?void 0:n.default(),f])])}d.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var f=c(d),p=n("44bf"),h=(u=Object(r.a)("card"),c=u[0],u[1]);function m(e,t,n,r){var s=t.thumb,u=n.num||Object(o.c)(t.num),c=n.price||Object(o.c)(t.price),l=n["origin-price"]||Object(o.c)(t.originPrice),d=u||c||l||n.bottom;function m(e){Object(a.a)(r,"click-thumb",e)}return e("div",i()([{class:h()},Object(a.b)(r,!0)]),[e("div",{class:h("header")},[function(){if(n.thumb||s)return e("a",{attrs:{href:t.thumbLink},class:h("thumb"),on:{click:m}},[n.thumb?n.thumb():e(p.a,{attrs:{src:s,width:"100%",height:"100%",fit:"cover","lazy-load":t.lazyLoad}}),function(){if(n.tag||t.tag)return e("div",{class:h("tag")},[n.tag?n.tag():e(f,{attrs:{mark:!0,type:"danger"}},[t.tag])])}()])}(),e("div",{class:h("content",{centered:t.centered})},[e("div",[n.title?n.title():t.title?e("div",{class:[h("title"),"van-multi-ellipsis--l2"]},[t.title]):void 0,n.desc?n.desc():t.desc?e("div",{class:[h("desc"),"van-ellipsis"]},[t.desc]):void 0,null==n.tags?void 0:n.tags()]),d&&e("div",{class:"van-card__bottom"},[null==(d=n["price-top"])?void 0:d.call(n),function(){if(c)return e("div",{class:h("price")},[n.price?n.price():(r=t.price.toString().split("."),e("div",[e("span",{class:h("price-currency")},[t.currency]),e("span",{class:h("price-integer")},[r[0]]),".",e("span",{class:h("price-decimal")},[r[1]])]))]);var r}(),function(){var r;if(l)return r=n["origin-price"],e("div",{class:h("origin-price")},[r?r():t.currency+" "+t.originPrice])}(),function(){if(u)return e("div",{class:h("num")},[n.num?n.num():"x"+t.num])}(),null==n.bottom?void 0:n.bottom()])])]),function(){if(n.footer)return e("div",{class:h("footer")},[n.footer()])}()])}m.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}},t.a=c(m)},6721:function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},19:function(e,t){e.exports=n("dcdc")},2:function(e,t){e.exports=n("5924")},20:function(e,t){e.exports=n("4897")},28:function(e,t){e.exports=n("5488")},3:function(e,t){e.exports=n("8122")},4:function(e,t){e.exports=n("d010")},60:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)}function i(e,t){t&&!t[u]&&Object.defineProperty(t,u,{value:e.id,enumerable:!1,configurable:!1,writable:!1})}function o(e,t){return e?t[e]:t[u]}n.r(t),r._withStripped=!0;var a=n(9),s=n.n(a),u="$treeNodeId",c=n(3);a=function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e};function l(e,t){for(var n=0;np.height*(a?o?.75:i?.55:0:1)?"after":o?"inner":"none",d=f.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),p=e.$refs.dropIndicator,"before"===l?c=d.top-u.top:"after"===l&&(c=d.bottom-u.top),p.style.top=c+"px",p.style.left=d.right-u.left+"px",Object("inner"===l?C.addClass:C.removeClass)(f.$el,"is-drop-inner"),t.showDropIndicator="before"===l||"after"===l,t.allowDrop=t.showDropIndicator||s,t.dropType=l,e.$emit("node-drag-over",h.node,f.node,n))})),this.$on("tree-node-drag-end",(function(n){var r,i=t.draggingNode,o=t.dropType,a=t.dropNode;n.preventDefault(),n.dataTransfer.dropEffect="move",i&&a&&(r={data:i.node.data},"none"!==o&&i.node.remove(),"before"===o?a.node.parent.insertBefore(r,a.node):"after"===o?a.node.parent.insertAfter(r,a.node):"inner"===o&&a.node.insertChild(r),"none"!==o&&e.store.registerNode(r),Object(C.removeClass)(a.$el,"is-drop-inner"),e.$emit("node-drag-end",i.node,a.node,o,n),"none"!==o)&&e.$emit("node-drop",i.node,a.node,o,n),i&&!a&&e.$emit("node-drag-end",i.node,null,o,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},_=Object(w.a)(n,r,[],!1,null,null,null),_.options.__file="packages/tree/src/tree.vue",_.exports);A.install=function(e){e.component(A.name,A)},t.default=A},9:function(e,t){e.exports=n("7f4d")}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=60))},"672e":function(e,t,n){},6762:function(e,t,n){},6858:function(e,t,n){"use strict";var r=n("2f9a"),i=n("ea34"),o=n("8a0d"),a=n("6ca1");e.exports=n("393a")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"68ee":function(e,t,n){"use strict";function r(){}function i(e){if(!u(e))return!1;try{return p(r,f,e),!0}catch(e){return!1}}function o(e){if(!u(e))return!1;switch(c(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!m(h,d(e))}catch(e){return!0}}var a=n("e330"),s=n("d039"),u=n("1626"),c=n("f5df"),l=n("d066"),d=n("8925"),f=[],p=l("Reflect","construct"),h=/^\s*(?:class|function)\b/,m=a(h.exec),g=!h.exec(r);o.sham=!0,e.exports=!p||s((function(){var e;return i(i.call)||!i(Object)||!i((function(){e=!0}))||e}))?o:i},"68ef":function(e,t,n){},"693d":function(e,t,n){"use strict";function r(e){var t=Y[e]=D(F[V]);return t._k=e,t}function i(e,t){C(e);for(var n,r=_(t=N(t)),i=0,o=r.length;ii;)l(Y,t=n[i++])||t==q||t==h||r.push(t);return r}function u(e){for(var t,n=e===X,r=B(n?G:N(e)),i=[],o=0;r.length>o;)!l(Y,t=r[o++])||n&&!l(X,t)||i.push(Y[t]);return i}var c=n("ef08"),l=n("9c0e"),d=n("0bad"),f=n("512c"),p=n("ba01"),h=n("e34a").KEY,m=n("4b8b"),g=n("b367"),v=n("92f0"),y=n("8b1a"),b=n("cc15"),x=n("fcd4"),w=n("e198"),_=n("0ae2"),S=n("4ebc"),C=n("77e9"),A=n("7a41"),E=n("0983"),N=n("6ca1"),k=n("3397"),O=n("10db"),D=n("6f4f"),M=n("1836"),T=n("4d20"),j=n("fed5"),I=n("1a14"),P=n("9876"),$=T.f,R=I.f,B=M.f,F=c.Symbol,L=c.JSON,z=L&&L.stringify,V="prototype",q=b("_hidden"),U=b("toPrimitive"),H={}.propertyIsEnumerable,W=g("symbol-registry"),Y=g("symbols"),G=g("op-symbols"),X=Object[V],Q=(g="function"==typeof F&&!!j.f,c.QObject),K=!Q||!Q[V]||!Q[V].findChild,J=d&&m((function(){return 7!=D(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=$(X,t);r&&delete X[t],R(e,t,n),r&&e!==X&&R(X,t,r)}:R,Z=g&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof F},ee=function(e,t,n){return e===X&&ee(G,t,n),C(e),t=k(t,!0),C(n),(l(Y,t)?(n.enumerable?(l(e,q)&&e[q][t]&&(e[q][t]=!1),n=D(n,{enumerable:O(0,!1)})):(l(e,q)||R(e,q,O(1,{})),e[q][t]=!0),J):R)(e,t,n)};g||(p((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var e=y(0ne;)b(te[ne++]);for(var re=P(b.store),ie=0;re.length>ie;)w(re[ie++]);f(f.S+f.F*!g,"Symbol",{for:function(e){return l(W,e+="")?W[e]:W[e]=F(e)},keyFor:function(e){if(!Z(e))throw TypeError(e+" is not a symbol!");for(var t in W)if(W[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),f(f.S+f.F*!g,"Object",{create:function(e,t){return void 0===t?D(e):i(D(e),t)},defineProperty:ee,defineProperties:i,getOwnPropertyDescriptor:a,getOwnPropertyNames:s,getOwnPropertySymbols:u}),Q=m((function(){j.f(1)})),f(f.S+f.F*Q,"Object",{getOwnPropertySymbols:function(e){return j.f(E(e))}}),L&&f(f.S+f.F*(!g||m((function(){var e=F();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;idocument.F=Object<\/script>"),e.close(),c=e.F;t--;)delete c[u][a[t]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(r[u]=i(e),n=new r,r[u]=null,n[s]=e):n=c(),void 0===t?n:o(n,t)}},"6fad":function(e,t,n){var r;window,r=function(){return t=[function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(142)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return f})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__spreadArray",(function(){return y})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return x})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return S})),n.d(t,"__importStar",(function(){return A})),n.d(t,"__importDefault",(function(){return E})),n.d(t,"__classPrivateFieldGet",(function(){return N})),n.d(t,"__classPrivateFieldSet",(function(){return k})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;ni[0]&&u[1]=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(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||0]+>/g,(function(){return""}))},x.prototype.html=function(e){var t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML},x.prototype.val=function(){var e=this.elems[0];return(0,u.default)(e=e.value).call(e)},x.prototype.focus=function(){return(0,a.default)(this).call(this,(function(e){e.focus()}))},x.prototype.prev=function(){return w(this.elems[0].previousElementSibling)},x.prototype.next=function(){return w(this.elems[0].nextElementSibling)},x.prototype.getNextSibling=function(){return w(this.elems[0].nextSibling)},x.prototype.parent=function(){return w(this.elems[0].parentElement)},x.prototype.parentUntil=function(e,t){t=t||this.elems[0];return"BODY"===t.nodeName||null===(t=t.parentElement)?null:t.matches(e)?w(t):this.parentUntil(e,t)},x.prototype.parentUntilEditor=function(e,t,n){n=n||this.elems[0];return w(n).equal(t.$textContainerElem)||w(n).equal(t.$toolbarElem)||null===(n=n.parentElement)?null:n.matches(e)?w(n):this.parentUntilEditor(e,t,n)},x.prototype.equal=function(e){return e instanceof x?this.elems[0]===e.elems[0]:e instanceof HTMLElement&&this.elems[0]===e},x.prototype.insertBefore=function(e){var t=w(e).elems[0];return t?(0,a.default)(this).call(this,(function(e){var n=t.parentNode;null!=n&&n.insertBefore(e,t)})):this},x.prototype.insertAfter=function(e){var t=w(e).elems[0],n=t&&t.nextSibling;return t?(0,a.default)(this).call(this,(function(e){var r=t.parentNode;n?r.insertBefore(e,n):r.appendChild(e)})):this},x.prototype.data=function(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)},x.prototype.getNodeTop=function(e){var t;return this.length<1||(t=this.parent(),e.$textElem.equal(this))||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))},x.prototype.getOffsetData=function(){var e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}},x.prototype.scrollTop=function(e){this.elems[0].scrollTo({top:e})};var b=x;function x(e){if(this.elems=[],this.length=this.elems.length,this.dataSource=new c.default,e){if(e instanceof x)return e;var t,n=[],r=e instanceof Node?e.nodeType:-1,i=(this.selector=e,1===r||9===r?n=[e]:(r=e)&&(r instanceof HTMLCollection||r instanceof NodeList)?n=g.toArray(e):e instanceof Array?n=e:"string"==typeof e&&(e=(0,u.default)(r=e.replace("/\n/mg","")).call(r),n=0===(0,l.default)(e).call(e,"<")?(r=e,(t=document.createElement("div")).innerHTML=r,r=t.children,g.toArray(r)):(t=e,t=document.querySelectorAll(e),g.toArray(t))),n.length);if(!i)return this;for(var o=0;o/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")},t.replaceSpecialSymbol=function(e){return e.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')},t.forEach=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!1===t(n,e[n]))break},t.arrForEach=function(e,t){for(var n,r=e.length||0,i=0;i

',t.EMPTY_P_LAST_REGEX=/

<\/p>$/gim,t.EMPTY_P_REGEX=/

/gim},function(e,t,n){(function(t){function n(e){return e&&e.Math==Math&&e}e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(145))},function(e,t){e.exports={}},function(e,t,n){var r=n(8),i=n(74),o=n(16),a=n(64),s=n(76),u=(n=n(106),i("wks")),c=r.Symbol,l=n?c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(s&&o(c,e)?u[e]=c[e]:u[e]=l("Symbol."+e)),u[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(9),i=n(16),o=n(93),a=n(18).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){n=n(11),e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(9);e.exports=function(e){return r[e+"Prototype"]}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=n(192)},function(e,t,n){var r=n(14),i=n(100),o=n(25),a=n(60),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),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}},function(e,t,n){var r=n(14),i=n(18),o=n(48);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";var r,i,o=function(){return r=void 0===r?Boolean(window&&document&&document.all&&!window.atob):r},a=(i={},function(e){if(void 0===i[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}i[e]=t}return i[e]}),s=[];function u(e){for(var t=-1,n=0;n'),t.append(n),n.on("click",(function(){g.remove()})),r=u.default('

    '),i=u.default('
    '),t.append(r).append(i),(d=e.height)&&i.css("height",d+"px").css("overflow-y","auto"),f=e.tabs||[],p=[],h=[],(0,o.default)(f).call(f,(function(e,t){var n,a,s;e&&(n=e.title||"",e=e.tpl||"",a=u.default('
  • '+n+"
  • "),r.append(a),s=u.default(e),i.append(s),p.push(a),h.push(s),0===t?(a.data("active",!0),a.addClass("w-e-active")):s.hide(),a.on("click",(function(){a.data("active")||((0,o.default)(p).call(p,(function(e){e.data("active",!1),e.removeClass("w-e-active")})),(0,o.default)(h).call(h,(function(e){e.hide()})),a.data("active",!0),a.addClass("w-e-active"),s.show())})))})),t.on("click",(function(e){e.stopPropagation()})),v.$elem.append(t),e.setLinkValue&&e.setLinkValue(t,"text"),e.setLinkValue&&e.setLinkValue(t,"link"),(0,o.default)(f).call(f,(function(e,t){e&&(e=e.events||[],(0,o.default)(e).call(e,(function(e){function n(e){return s.__awaiter(g,void 0,void 0,(function(){return s.__generator(this,(function(t){switch(t.label){case 0:return e.stopPropagation(),[4,o(e)];case 1:return t.sent()&&this.remove(),[2]}}))}))}var r=e.selector,i=e.type,o=e.fn||c.EMPTY_FN,u=h[t];e=null!=(e=e.bindEnter)&&e;(0,a.default)(u).call(u,r).on(i,n),e&&"click"===i&&u.on("keyup",(function(e){13==e.keyCode&&n(e)}))})))})),(m=(0,a.default)(t).call(t,"input[type=text],textarea")).length&&m.get(0).focus(),l.hideCurAllPanels(),v.setPanel(this),l.createdMenus.add(v))},l.prototype.remove=function(){var e=this.menu,t=this.$container;t&&t.remove(),l.createdMenus.delete(e)},l.hideCurAllPanels=function(){var e;0!==l.createdMenus.size&&(0,o.default)(e=l.createdMenus).call(e,(function(e){e=e.panel,e&&e.remove()}))},l.createdMenus=new r.default,i=l;function l(e,t){this.menu=e,this.conf=t,this.$container=u.default('
    '),t=e.editor,t.txt.eventHooks.clickEvents.push(l.hideCurAllPanels),t.txt.eventHooks.toolbarClickEvents.push(l.hideCurAllPanels),t.txt.eventHooks.dropListMenuHoverEvents.push(l.hideCurAllPanels)}t.default=i},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(62),i=Math.min;e.exports=function(e){return 0"),e.addClass("w-e-tooltip"),this.$container=e}u.prototype.getPositionData=function(){var e,t,n=this.$container,r=0,i=0,o=document.documentElement.scrollTop,a=this.$targetElem.getBoundingClientRect(),u=this.editor.$textElem.getBoundingClientRect(),c=this.$targetElem.getOffsetData(),l=s.default(c.parent),d=this.editor.$textElem.elems[0].scrollTop;return this._isInsertTextContainer=l.equal(this.editor.$textContainerElem),i=this._isInsertTextContainer?(l=l.getBoundingClientRect().height,t=c.top,e=c.left,c=c.height,25<(t-=d)?(r=t-20-15,n.addClass("w-e-tooltip-up")):(r=t+c+20");u.addClass("w-e-tooltip-item-wrapper "),u.append(a),i.append(u),a.on("click",(function(i){i.preventDefault(),t.onClick(n,r)&&e.remove()}))}))},u.prototype.create=function(){var e=this.editor,t=this.$container,n=(this.appendMenus(),this.getPositionData()),r=n.top;n=n.left;t.css("top",r+"px"),t.css("left",n+"px"),t.css("z-index",e.zIndex.get("tooltip")),(this._isInsertTextContainer?this.editor.$textContainerElem:s.default("body")).append(t),this._show=!0,e.beforeDestroy((0,a.default)(r=this.remove).call(r,this)),e.txt.eventHooks.onBlurEvents.push((0,a.default)(n=this.remove).call(n,this))},u.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(u.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),t.default=u},function(e,t,n){var r=n(41);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)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r,i,o,a,s,u,c,l,d=n(165),f=n(8),p=n(13),h=n(19),m=n(16),g=n(63);n=n(51),f=f.WeakMap;c=d?(r=new f,i=r.get,o=r.has,a=r.set,s=function(e,t){return a.call(r,e,t),t},u=function(e){return i.call(r,e)||{}},function(e){return o.call(r,e)}):(n[l=g("state")]=!0,s=function(e,t){return h(e,l,t),t},u=function(e){return m(e,l)?e[l]:{}},function(e){return m(e,l)}),e.exports={set:s,get:u,has:c,enforce:function(e){return c(e)?u(e):s(e,{})},getterFor:function(e){return function(t){if(p(t)&&(t=u(t)).type===e)return t;throw TypeError("Incompatible receiver, "+e+" required")}}}},function(e,t){e.exports=!0},function(e,t){e.exports={}},function(e,t,n){e.exports=n(261)},function(e,t,n){e.exports=n(265)},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4)),a=(r=((0,i.default)(t,"__esModule",{value:!0}),t.createElementFragment=t.createDocumentFragment=t.createElement=t.insertBefore=t.getEndPoint=t.getStartPoint=t.updateRange=t.filterSelectionNodes=void 0,n(2)),n(137)),s=r.__importDefault(n(3));function u(e){return document.createElement(e)}t.filterSelectionNodes=function(e){var t=[];return(0,o.default)(e).call(e,(function(e){var n=e.getNodeName();n!==a.ListType.OrderedList&&n!==a.ListType.UnorderedList?t.push(e):e.prior?t.push(e.prior):null!=(n=e.children())&&(0,o.default)(n).call(n,(function(e){t.push(s.default(e))}))})),t},t.updateRange=function(e,t,n){e=e.selection;var r=document.createRange();1=t.length?{value:void 0,done:!0}:(t=r(t,n),e.index+=t.length,{value:t,done:!1})}))},function(e,t){e.exports={}},function(e,t,n){var r=n(107),i=n(80);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(19);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:r(e,t,n)}},function(e,t,n){n(173);var r,i=n(174),o=n(8),a=n(65),s=n(19),u=n(44),c=n(10)("toStringTag");for(r in i){var l=o[r];l=l&&l.prototype;l&&a(l)!==c&&s(l,c,r),u[r]=u.Array}},function(e,t,n){var r=n(34);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(11),i=n(10),o=n(86),a=i("species");e.exports=function(e){return 51<=o||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){e.exports=n(222)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListHandle=void 0;var r=n(2).__importDefault(n(373));t.ListHandle=function(e){this.options=e,this.selectionRangeElem=new r.default}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){return e=i(this,e),!!e&&e.enumerable}:r},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e))||"function"==typeof(n=e.valueOf)&&!r(i=n.call(e))||!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0"+e+""},m=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(e){}m=i?((e=i).write(h("")),e.close(),t=e.parentWindow.Object,e=null,t):(e=l("iframe"),t="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F);for(var e,t,n=s.length;n--;)delete m[d][s[n]];return m()};u[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(r[d]=o(e),n=new r,r[d]=null,n[p]=e):n=m(),void 0===t?n:a(n,t)}},function(e,t,n){function r(e){return function(t,n,r){var s,u=i(t),c=o(u.length),l=a(r,c);if(e&&n!=n){for(;l"),this.$textContainerElem=a.default("
    "),this.$textElem=a.default("
    "),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new c.default(this),this.cmd=new l.default(this),this.txt=new d.default(this),this.menus=new f.default(this),this.zIndex=new b.default,this.change=new x.default(this),this.history=new w.default(this),this.onSelectionChange=new S.default(this),e=_.default(this),t=e.disable,e=e.enable,this.disable=t,this.enable=e,this.isEnable=!0}D.prototype.initSelection=function(e){h.default(this,e)},D.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),g.default(this),p.default(this),this.txt.init(),this.menus.init(),v.default(this),this.initSelection(!0),m.default(this),this.change.observe(),this.history.observe(),C.default(this)},D.prototype.beforeDestroy=function(e){return this.beforeDestroyHooks.push(e),this},D.prototype.destroy=function(){var e,t=this;(0,o.default)(e=this.beforeDestroyHooks).call(e,(function(e){return e.call(t)})),this.$toolbarElem.remove(),this.$textContainerElem.remove()},D.prototype.fullScreen=function(){v.setFullScreen(this)},D.prototype.unFullScreen=function(){v.setUnFullScreen(this)},D.prototype.scrollToHead=function(e){y.default(this,e)},D.registerMenu=function(e,t){t&&"function"==typeof t&&(D.globalCustomMenuConstructorList[e]=t)},D.prototype.registerPlugin=function(e,t){C.registerPlugin(e,t,this.pluginsFunctionList)},D.registerPlugin=function(e,t){C.registerPlugin(e,t,D.globalPluginsFunctionList)},D.$=a.default,D.BtnMenu=i.default,D.DropList=A.default,D.DropListMenu=E.default,D.Panel=N.default,D.PanelMenu=k.default,D.Tooltip=r.default,D.globalCustomMenuConstructorList={},D.globalPluginsFunctionList={},t.default=D},function(e,t,n){var r=n(13),i=n(55),o=n(10)("species");e.exports=function(e,t){var n;return new(void 0===(n=i(e)&&("function"==typeof(n=e.constructor)&&(n===Array||i(n.prototype))||r(n)&&null===(n=n[o]))?void 0:n)?Array:n)(0===t?0:t)}},function(e,t,n){e.exports=n(185)},function(e,t,n){function r(e){return function(t){return t=String(i(t)),1&e&&(t=t.replace(o,"")),2&e?t.replace(a,""):t}}var i=n(49),o=(n="["+n(68)+"]",RegExp("^"+n+n+"*")),a=RegExp(n+n+"*$");e.exports={start:r(1),end:r(2),trim:r(3)}},function(e,t,n){e.exports=n(205)},function(e,t,n){var r=n(227),i=n(230);function o(t){return e.exports=o="function"==typeof i&&"symbol"==typeof r?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e},o(t)}e.exports=o},function(e,t,n){n=n(10),t.f=n},function(e,t,n){e.exports=n(306)},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(33));function s(e,t){var n=this;this.$elem=e,this.editor=t,this._active=!1,e.on("click",(function(e){var r;a.default.hideCurAllPanels(),(0,o.default)(r=t.txt.eventHooks.menuClickEvents).call(r,(function(e){return e()})),e.stopPropagation(),null!=t.selection.getRange()&&n.clickHandler(e)}))}s.prototype.clickHandler=function(e){},s.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},s.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(s.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),t.default=s},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(28));function a(e){for(var n,r=e.elems[0];r&&(0,o.default)(n=t.EXTRA_TAG).call(n,r.nodeName);)if("A"===(r=r.parentElement).nodeName)return r}(0,i.default)(t,"__esModule",{value:!0}),t.getParentNodeA=t.EXTRA_TAG=void 0,t.EXTRA_TAG=["B","FONT","I","STRIKE"],t.getParentNodeA=a,t.default=function(e){var t;e=e.selection.getSelectionContainerElem();return!(null==(t=null==e?void 0:e.elems)||!t.length||"A"!==e.getNodeName()&&(!(t=a(e))||"A"!==t.nodeName))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(57)),a=r(n(4)),s=r(n(27)),u=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),c=r.__importDefault(n(135)),l=r.__importDefault(n(136));function d(e){this.editor=e}d.prototype.insertImg=function(e,t,n){function r(e,t){return i.i18next.t((t=void 0===t?a:t)+e)}var i=this.editor,o=i.config,a="validate.",s=(s=e.replace(//g,">")).replace("'",'"'),u="",c=(n&&(u=n.replace("'",'"'),u="data-href='"+encodeURIComponent(u)+"' "),""),l=(t&&(c="alt='"+(c=(c=t.replace(//g,">")).replace("'",'"'))+"' "),i.cmd.do("insertHTML","'),o.linkImgCallback(e,t,n),document.createElement("img"));l.onload=function(){l=null},l.onerror=function(){o.customAlert(r("插入图片错误"),"error","wangEditor: "+r("插入图片错误")+","+r("图片链接")+' "'+e+'",'+r("下载链接失败")),l=null},l.onabort=function(){return l=null},l.src=e},d.prototype.uploadImg=function(e){var t,n,r,i,d,f,p,h,m,g,v,y,b,x,w,_,S,C,A,E=this;e.length&&(t=this.editor,n=t.config,r=function(e){return t.i18next.t("validate."+e)},S=n.uploadImgServer,i=n.uploadImgShowBase64,d=n.uploadImgMaxSize,f=d/1024/1024,C=n.uploadImgMaxLength,p=n.uploadFileName,h=n.uploadImgParams,m=n.uploadImgParamsWithUrl,g=n.uploadImgHeaders,v=n.uploadImgHooks,y=n.uploadImgTimeout,b=n.withCredentials,(A=n.customUploadImg)||S||i)&&(x=[],w=[],u.arrForEach(e,(function(e){var n,i,o;e&&(n=e.name||e.type.replace("/","."),i=e.size,n)&&i&&(o=t.config.uploadImgAccept.join("|"),!1===new RegExp(".("+o+")$","i").test(n)?w.push("【"+n+"】"+r("不是图片")):du;)!r(s,n=t[u++])||~o(c,n)||c.push(n);return c}},function(e,t,n){n=n(36),e.exports=n("document","documentElement")},function(e,t,n){n=n(8),e.exports=n.Promise},function(e,t,n){var r=n(53);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(36),i=n(18),o=n(10),a=n(14),s=o("species");e.exports=function(e){e=r(e);var t=i.f;a&&e&&!e[s]&&t(e,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(10),i=n(44),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(65),i=n(44),o=n(10)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(25);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw i=e.return,void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(10)("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}},function(e,t,n){var r=n(25),i=n(41),o=n(10)("species");e.exports=function(e,t){e=r(e).constructor;return void 0===e||null==(e=r(e)[o])?t:i(e)}},function(e,t,n){function r(e){return function(){_(e)}}function i(e){_(e.data)}function o(e){s.postMessage(e+"",p.protocol+"//"+p.host)}var a,s=n(8),u=n(11),c=n(34),l=n(40),d=n(108),f=n(73),p=(n=n(118),s.location),h=s.setImmediate,m=s.clearImmediate,g=s.process,v=s.MessageChannel,y=s.Dispatch,b=0,x={},w="onreadystatechange",_=function(e){var t;x.hasOwnProperty(e)&&(t=x[e],delete x[e],t())};h&&m||(h=function(e){for(var t=[],n=1;n"+r+"

    "}return i=(i=i.replace(/<(\d)/gm,(function(e,t){return"<"+t}))).replace(/<(\/?meta.*?)>/gim,""),s.default(i,t,n)},t.getPasteImgs=function(e){var t=[];return u(e)||(e=null==(e=e.clipboardData)?void 0:e.items)&&(0,o.default)(a).call(a,e,(function(e,n){var r=n.type;/image/i.test(r)&&t.push(n.getAsFile())})),t}},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(46));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3)),u=n(7);function c(e,t){var n=this,r=(e=(this.hideTimeoutId=0,this.menu=e,this.conf=t,s.default('
    ')),s.default("

    "+t.title+"

    ")),i=(r=(r.addClass("w-e-dp-title"),e.append(r),t.list||[]),t.type||"list"),c=t.clickHandler||u.EMPTY_FN,l=s.default('
      ');(0,o.default)(r).call(r,(function(e){var t=e.$elem,r=e.value;e=s.default('
    • ');t&&(e.append(t),l.append(e),e.on("click",(function(e){c(r),e.stopPropagation(),n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})))})),e.append(l),e.on("mouseleave",(function(){n.hideTimeoutId=(0,a.default)((function(){n.hide()}))})),this.$container=e,this.rendered=!1,this._show=!1}c.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var e,t,n=this.menu.$elem,r=this.$container;this._show||(this.rendered?r.show():(e=n.getBoundingClientRect().height||0,t=this.conf.width||100,r.css("margin-top",e+"px").css("width",t+"px"),n.append(r),this.rendered=!0),this._show=!0)},c.prototype.hide=function(){var e=this.$container;this._show&&(e.hide(),this._show=!1)},(0,i.default)(c.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),t.default=c},function(e,t,n){"use strict";var r=n(0),i=r(n(92)),o=r(n(1)),a=r(n(4)),s=((0,o.default)(t,"__esModule",{value:!0}),n(6));t.default=function(e,t){var n=new XMLHttpRequest;return n.open("POST",e),n.timeout=t.timeout||1e4,n.ontimeout=function(){t.onTimeout&&t.onTimeout(n)},n.upload&&(n.upload.onprogress=function(e){var n=e.loaded/e.total;t.onProgress&&t.onProgress(n,e)}),t.headers&&(0,a.default)(s).call(s,t.headers,(function(e,t){n.setRequestHeader(e,t)})),n.withCredentials=!!t.withCredentials,t.beforeSend&&(e=t.beforeSend(n),e&&"object"===(0,i.default)(e)&&e.prevent)?e.msg:(n.onreadystatechange=function(){if(4===n.readyState){var e=n.status;if(!(e<200||300<=e&&e<400))if(400<=e)t.onError&&t.onError(n);else{var r;e=n.responseText;if("object"!==(0,i.default)(e))try{r=JSON.parse(e)}catch(r){return void(t.onFail&&t.onFail(n,e))}else r=e;t.onSuccess(n,r)}}},n.send(t.formData||null),n)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(342)),a=r(n(46));(0,i.default)(t,"__esModule",{value:!0});var s=n(2).__importDefault(n(3));function u(e){this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=s.default('
      '),this.isShow=!1,this.time=0,this.timeoutId=0}u.prototype.show=function(e){var t,n=this;this.isShow||(this.isShow=!0,t=this.$bar,this.$textContainer.append(t),100<(0,o.default)()-this.time&&e<=1&&(t.css("width",100*e+"%"),this.time=(0,o.default)()),(t=this.timeoutId)&&clearTimeout(t),this.timeoutId=(0,a.default)((function(){n.hide()}),500))},u.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},t.default=u},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.ListType=void 0;var r,i,o=n(2),a=o.__importDefault(n(3)),s=o.__importDefault(n(24)),u=n(47),c=o.__importStar(n(371));(n=r=t.ListType||(t.ListType={})).OrderedList="OL",n.UnorderedList="UL",i=s.default,o.__extends(l,i),l.prototype.command=function(e){void 0!==this.editor.selection.getSelectionContainerElem()&&(this.handleSelectionRangeNodes(e),this.tryChangeActive())},l.prototype.validator=function(e,t,n){return!(!e.length||!t.length||n.equal(e)||n.equal(t))},l.prototype.handleSelectionRangeNodes=function(e){var t,n=this.editor,r=n.selection,i=e.toLowerCase(),o=r.getSelectionContainerElem(),a=r.getSelectionStartElem().getNodeTop(n),s=r.getSelectionEndElem().getNodeTop(n);this.validator(a,s,n.$textElem)&&(t=null==(r=r.getRange())?void 0:r.collapsed,n.$textElem.equal(o)||(o=o.getNodeTop(n)),e={editor:n,listType:e,listTarget:i,$selectionElem:o,$startElem:a,$endElem:s},i=this.isOrderElem(o)?c.ClassType.Wrap:this.isOrderElem(a)&&this.isOrderElem(s)?c.ClassType.Join:this.isOrderElem(a)?c.ClassType.StartJoin:this.isOrderElem(s)?c.ClassType.EndJoin:c.ClassType.Other,o=new c.default(c.createListHandle(i,e,r)),u.updateRange(n,o.getSelectionRangeElem(),!!t))},l.prototype.isOrderElem=function(e){return e=e.getNodeName(),e===r.OrderedList||e===r.UnorderedList},l.prototype.tryChangeActive=function(){},n=l;function l(e){var t=this,n=a.default('
      \n \n
      '),o={width:130,title:"序列",type:"list",list:[{$elem:a.default('\n

      \n \n '+e.i18next.t("menus.dropListMenu.list.无序列表")+"\n

      "),value:r.UnorderedList},{$elem:a.default('

      \n \n '+e.i18next.t("menus.dropListMenu.list.有序列表")+"\n

      "),value:r.OrderedList}],clickHandler:function(e){t.command(e)}};return t=i.call(this,n,e,o)||this}t.default=n},function(e,t,n){e.exports=n(395)},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){return!(null==(e=e.selection.getSelectionContainerElem())||!e.length||"CODE"!=e.getNodeName()&&"PRE"!=e.getNodeName()&&"CODE"!=e.parent().getNodeName()&&"PRE"!=e.parent().getNodeName()&&!/hljs/.test(e.parent().attr("class")))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.todo=void 0;var a=n(2).__importDefault(n(3)),s=(u.prototype.init=function(){var e=this.$child,t=this.getInputContainer();e&&e.insertAfter(t)},u.prototype.getInput=function(){var e=this.$todo;return(0,o.default)(e).call(e,"input")},u.prototype.getInputContainer=function(){return this.getInput().parent()},u.prototype.getTodo=function(){return this.$todo},u);function u(e){this.template='

      ',this.checked=!1,this.$todo=a.default(this.template),this.$child=null==(e=null==e?void 0:e.childNodes())?void 0:e.clone(!0)}t.todo=s,t.default=function(e){return(e=new s(e)).init(),e}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=(n(146),n(148),n(152),n(154),n(156),n(158),n(160),r.__importDefault(n(87)));r.__exportStar(n(442),t);try{document}catch(e){throw new Error("请在浏览器环境下运行")}t.default=i.default},function(e,t,n){n=n(143),e.exports=n},function(e,t,n){n(144);var r=n(9).Object;n=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(n.sham=!0)},function(e,t,n){var r=n(5),i=n(14);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(18).f})},function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(20),i=(n=n(147),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar,\n.w-e-text-container,\n.w-e-menu-panel {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n background-color: #fff;\n /*表情菜单样式*/\n /*分割线样式*/\n}\n.w-e-toolbar h1,\n.w-e-text-container h1,\n.w-e-menu-panel h1 {\n font-size: 32px !important;\n}\n.w-e-toolbar h2,\n.w-e-text-container h2,\n.w-e-menu-panel h2 {\n font-size: 24px !important;\n}\n.w-e-toolbar h3,\n.w-e-text-container h3,\n.w-e-menu-panel h3 {\n font-size: 18.72px !important;\n}\n.w-e-toolbar h4,\n.w-e-text-container h4,\n.w-e-menu-panel h4 {\n font-size: 16px !important;\n}\n.w-e-toolbar h5,\n.w-e-text-container h5,\n.w-e-menu-panel h5 {\n font-size: 13.28px !important;\n}\n.w-e-toolbar p,\n.w-e-text-container p,\n.w-e-menu-panel p {\n font-size: 16px !important;\n}\n.w-e-toolbar .eleImg,\n.w-e-text-container .eleImg,\n.w-e-menu-panel .eleImg {\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n padding: 0 3px;\n}\n.w-e-toolbar *,\n.w-e-text-container *,\n.w-e-menu-panel * {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n.w-e-toolbar hr,\n.w-e-text-container hr,\n.w-e-menu-panel hr {\n cursor: pointer;\n display: block;\n height: 0px;\n border: 0;\n border-top: 3px solid #ccc;\n margin: 20px 0;\n}\n.w-e-clear-fix:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-drop-list-item {\n position: relative;\n top: 1px;\n padding-right: 7px;\n color: #333 !important;\n}\n.w-e-drop-list-tl {\n padding-left: 10px;\n text-align: left;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(20),i=(n=n(149),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){var r=n(21),i=n(150);n=n(151),t=r(!1),r=i(n);t.push([e.i,"@font-face {\n font-family: 'w-e-icon';\n src: url("+r+') format(\'truetype\');\n font-weight: normal;\n font-style: normal;\n}\n[class^="w-e-icon-"],\n[class*=" w-e-icon-"] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: \'w-e-icon\' !important;\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n.w-e-icon-close:before {\n content: "\\f00d";\n}\n.w-e-icon-upload2:before {\n content: "\\e9c6";\n}\n.w-e-icon-trash-o:before {\n content: "\\f014";\n}\n.w-e-icon-header:before {\n content: "\\f1dc";\n}\n.w-e-icon-pencil2:before {\n content: "\\e906";\n}\n.w-e-icon-paint-brush:before {\n content: "\\f1fc";\n}\n.w-e-icon-image:before {\n content: "\\e90d";\n}\n.w-e-icon-play:before {\n content: "\\e912";\n}\n.w-e-icon-location:before {\n content: "\\e947";\n}\n.w-e-icon-undo:before {\n content: "\\e965";\n}\n.w-e-icon-redo:before {\n content: "\\e966";\n}\n.w-e-icon-quotes-left:before {\n content: "\\e977";\n}\n.w-e-icon-list-numbered:before {\n content: "\\e9b9";\n}\n.w-e-icon-list2:before {\n content: "\\e9bb";\n}\n.w-e-icon-link:before {\n content: "\\e9cb";\n}\n.w-e-icon-happy:before {\n content: "\\e9df";\n}\n.w-e-icon-bold:before {\n content: "\\ea62";\n}\n.w-e-icon-underline:before {\n content: "\\ea63";\n}\n.w-e-icon-italic:before {\n content: "\\ea64";\n}\n.w-e-icon-strikethrough:before {\n content: "\\ea65";\n}\n.w-e-icon-table2:before {\n content: "\\ea71";\n}\n.w-e-icon-paragraph-left:before {\n content: "\\ea77";\n}\n.w-e-icon-paragraph-center:before {\n content: "\\ea78";\n}\n.w-e-icon-paragraph-right:before {\n content: "\\ea79";\n}\n.w-e-icon-paragraph-justify:before {\n content: "\\ea7a";\n}\n.w-e-icon-terminal:before {\n content: "\\f120";\n}\n.w-e-icon-page-break:before {\n content: "\\ea68";\n}\n.w-e-icon-cancel-circle:before {\n content: "\\ea0d";\n}\n.w-e-icon-font:before {\n content: "\\ea5c";\n}\n.w-e-icon-text-heigh:before {\n content: "\\ea5f";\n}\n.w-e-icon-paint-format:before {\n content: "\\e90c";\n}\n.w-e-icon-indent-increase:before {\n content: "\\ea7b";\n}\n.w-e-icon-indent-decrease:before {\n content: "\\ea7c";\n}\n.w-e-icon-row-height:before {\n content: "\\e9be";\n}\n.w-e-icon-fullscreen_exit:before {\n content: "\\e900";\n}\n.w-e-icon-fullscreen:before {\n content: "\\e901";\n}\n.w-e-icon-split-line:before {\n content: "\\ea0b";\n}\n.w-e-icon-checkbox-checked:before {\n content: "\\ea52";\n}\n',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t=t||{},"string"==typeof(e=e&&e.__esModule?e.default:e)&&(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes)?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e}},function(e,t,n){"use strict";n.r(t),t.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(e,t,n){var r=n(20),i=(n=n(153),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-toolbar {\n display: flex;\n padding: 0 6px;\n flex-wrap: wrap;\n position: relative;\n /* 单个菜单 */\n}\n.w-e-toolbar .w-e-menu {\n position: relative;\n display: flex;\n width: 40px;\n height: 40px;\n align-items: center;\n justify-content: center;\n text-align: center;\n cursor: pointer;\n}\n.w-e-toolbar .w-e-menu i {\n color: #999;\n}\n.w-e-toolbar .w-e-menu:hover {\n background-color: #F6F6F6;\n}\n.w-e-toolbar .w-e-menu:hover i {\n color: #333;\n}\n.w-e-toolbar .w-e-active i {\n color: #1e88e5;\n}\n.w-e-toolbar .w-e-active:hover i {\n color: #1e88e5;\n}\n.w-e-menu-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-menu-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-menu-tooltip-item-wrapper {\n font-size: 14px;\n margin: 0 5px;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(20),i=(n=n(155),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-text-container {\n position: relative;\n height: 100%;\n}\n.w-e-text-container .w-e-progress {\n position: absolute;\n background-color: #1e88e5;\n top: 0;\n left: 0;\n height: 1px;\n}\n.w-e-text-container .placeholder {\n color: #D4D4D4;\n position: absolute;\n font-size: 11pt;\n line-height: 22px;\n left: 10px;\n top: 10px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n z-index: -1;\n}\n.w-e-text {\n padding: 0 10px;\n overflow-y: auto;\n}\n.w-e-text p,\n.w-e-text h1,\n.w-e-text h2,\n.w-e-text h3,\n.w-e-text h4,\n.w-e-text h5,\n.w-e-text table,\n.w-e-text pre {\n margin: 10px 0;\n line-height: 1.5;\n}\n.w-e-text ul,\n.w-e-text ol {\n margin: 10px 0 10px 20px;\n}\n.w-e-text blockquote {\n display: block;\n border-left: 8px solid #d0e5f2;\n padding: 5px 10px;\n margin: 10px 0;\n line-height: 1.4;\n font-size: 100%;\n background-color: #f1f1f1;\n}\n.w-e-text code {\n display: inline-block;\n background-color: #f1f1f1;\n border-radius: 3px;\n padding: 3px 5px;\n margin: 0 3px;\n}\n.w-e-text pre code {\n display: block;\n}\n.w-e-text table {\n border-top: 1px solid #ccc;\n border-left: 1px solid #ccc;\n}\n.w-e-text table td,\n.w-e-text table th {\n border-bottom: 1px solid #ccc;\n border-right: 1px solid #ccc;\n padding: 3px 5px;\n min-height: 30px;\n height: 30px;\n}\n.w-e-text table th {\n border-bottom: 2px solid #ccc;\n text-align: center;\n background-color: #f1f1f1;\n}\n.w-e-text:focus {\n outline: none;\n}\n.w-e-text img {\n cursor: pointer;\n}\n.w-e-text img:hover {\n box-shadow: 0 0 5px #333;\n}\n.w-e-text .w-e-todo {\n margin: 0 0 0 20px;\n}\n.w-e-text .w-e-todo li {\n list-style: none;\n font-size: 1em;\n}\n.w-e-text .w-e-todo li span:nth-child(1) {\n position: relative;\n left: -18px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input {\n position: absolute;\n margin-right: 3px;\n}\n.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {\n top: 50%;\n margin-top: -6px;\n}\n.w-e-tooltip {\n position: absolute;\n display: flex;\n color: #f1f1f1;\n background-color: rgba(0, 0, 0, 0.75);\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);\n border-radius: 4px;\n padding: 4px 5px 6px;\n justify-content: center;\n align-items: center;\n}\n.w-e-tooltip-up::after {\n content: "";\n position: absolute;\n top: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-top-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-down::after {\n content: "";\n position: absolute;\n bottom: 100%;\n left: 50%;\n margin-left: -5px;\n border: 5px solid rgba(0, 0, 0, 0);\n border-bottom-color: rgba(0, 0, 0, 0.73);\n}\n.w-e-tooltip-item-wrapper {\n cursor: pointer;\n font-size: 14px;\n margin: 0 5px;\n}\n.w-e-tooltip-item-wrapper:hover {\n color: #ccc;\n text-decoration: underline;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(20),i=(n=n(157),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,'.w-e-menu .w-e-panel-container {\n position: absolute;\n top: 0;\n left: 50%;\n border: 1px solid #ccc;\n border-top: 0;\n box-shadow: 1px 1px 2px #ccc;\n color: #333;\n background-color: #fff;\n text-align: left;\n /* 为 emotion panel 定制的样式 */\n /* 上传图片、上传视频的 panel 定制样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close {\n position: absolute;\n right: 0;\n top: 0;\n padding: 5px;\n margin: 2px 5px 0 0;\n cursor: pointer;\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-close:hover {\n color: #333;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title {\n list-style: none;\n display: flex;\n font-size: 14px;\n margin: 2px 10px 0 10px;\n border-bottom: 1px solid #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {\n padding: 3px 5px;\n color: #999;\n cursor: pointer;\n margin: 0 3px;\n position: relative;\n top: 1px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {\n color: #333;\n border-bottom: 1px solid #333;\n cursor: default;\n font-weight: 700;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content {\n padding: 10px 15px 10px 15px;\n font-size: 16px;\n /* 输入框的样式 */\n /* 按钮的样式 */\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {\n outline: none;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {\n width: 100%;\n border: 1px solid #ccc;\n padding: 5px;\n margin-top: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {\n border-color: #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {\n border: none;\n border-bottom: 1px solid #ccc;\n font-size: 14px;\n height: 20px;\n color: #333;\n text-align: left;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {\n width: 30px;\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {\n display: block;\n width: 100%;\n margin: 10px 0;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {\n border-bottom: 2px solid #1e88e5;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {\n font-size: 14px;\n color: #1e88e5;\n border: none;\n padding: 5px 10px;\n background-color: #fff;\n cursor: pointer;\n border-radius: 3px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {\n float: left;\n margin-right: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {\n float: right;\n margin-left: 10px;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {\n color: #999;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {\n color: #c24f4a;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {\n background-color: #f1f1f1;\n}\n.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {\n content: "";\n display: table;\n clear: both;\n}\n.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {\n cursor: pointer;\n font-size: 18px;\n padding: 0 3px;\n display: inline-block;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container,\n.w-e-menu .w-e-panel-container .w-e-up-video-container {\n text-align: center;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {\n display: inline-block;\n color: #999;\n cursor: pointer;\n font-size: 60px;\n line-height: 1;\n}\n.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,\n.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {\n color: #333;\n}\n',""]),e.exports=t},function(e,t,n){var r=n(20),i=(n=n(159),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-toolbar .w-e-droplist {\n position: absolute;\n left: 0;\n top: 0;\n background-color: #fff;\n border: 1px solid #f1f1f1;\n border-right-color: #ccc;\n border-bottom-color: #ccc;\n}\n.w-e-toolbar .w-e-droplist .w-e-dp-title {\n text-align: center;\n color: #999;\n line-height: 2;\n border-bottom: 1px solid #f1f1f1;\n font-size: 13px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list {\n list-style: none;\n line-height: 1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {\n color: #333;\n padding: 5px 0;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block {\n list-style: none;\n text-align: left;\n padding: 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {\n display: inline-block;\n padding: 3px 5px;\n}\n.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {\n background-color: #f1f1f1;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";n=n(0)(n(161)),Element.prototype.matches||(Element.prototype.matches=function(e){for(var t=this.ownerDocument.querySelectorAll(e),n=t.length;0<=n&&t.item(n)!==this;n--);return-1=t.length?{value:e.target=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")},function(e,t){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}},function(e,t,n){"use strict";var r,i,o,a,s=n(5),u=n(43),c=n(8),l=n(36),d=n(109),f=n(53),p=n(110),h=n(37),m=n(111),g=n(13),v=n(41),y=n(83),b=n(34),x=n(102),w=n(66),_=n(115),S=n(116),C=n(117).set,A=n(176),E=n(119),N=n(177),k=n(85),O=n(120),D=n(42),M=n(101),T=n(10),j=n(86),I=T("species"),P="Promise",$=D.get,R=D.set,B=D.getterFor(P),F=d,L=c.TypeError,z=c.document,V=c.process,q=l("fetch"),U=k.f,H=U,W="process"==b(V),Y=!!(z&&z.createEvent&&c.dispatchEvent),G="unhandledrejection",X="rejectionhandled",Q=1,K=2,J=1,Z=2,ee=(n=M(P,(function(){var e,t;if(x(F)===String(F)){if(66===j)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}return!(!u||F.prototype.finally)||!(51<=j&&/native code/.test(F)||(t=function(e){e((function(){}),(function(){}))},((e=F.resolve(1)).constructor={})[I]=t,e.then((function(){}))instanceof t))})),T=n||!_((function(e){F.all(e).catch((function(){}))})),function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t}),te=function(e,t,n){var r;t.notified||(t.notified=!0,r=t.reactions,A((function(){for(var i,o,a=t.value,s=t.state==Q,u=0;r.length>u;){var l,d,f,p=r[u++],h=s?p.ok:p.fail,m=p.resolve,g=p.reject,v=p.domain;try{h?(s||(t.rejection===Z&&function(e,t){C.call(c,(function(){W?V.emit("rejectionHandled",e):ne(X,e,t.value)}))}(e,t),t.rejection=J),!0===h?l=a:(v&&v.enter(),l=h(a),v&&(v.exit(),f=!0)),l===p.promise?g(L("Promise-chain cycle")):(d=ee(l))?d.call(l,m,g):m(l)):g(a)}catch(a){v&&!f&&v.exit(),g(a)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&(i=e,o=t,C.call(c,(function(){var e=o.value,t=re(o);if(t&&(t=O((function(){W?V.emit("unhandledRejection",e,i):ne(G,i,e)})),o.rejection=W||re(o)?Z:J,t.error))throw t.value})))})))},ne=function(e,t,n){var r;Y?((r=z.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(t=c["on"+e])?t(r):e===G&&N("Unhandled promise rejection",n)},re=function(e){return e.rejection!==J&&!e.parent},ie=function(e,t,n,r){return function(i){e(t,n,i,r)}},oe=function(e,t,n,r){t.done||(t.done=!0,(t=r||t).value=n,t.state=K,te(e,t,!0))},ae=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw L("Promise can't be resolved itself");var i=ee(n);i?A((function(){var r={done:!1};try{i.call(n,ie(ae,e,r,t),ie(oe,e,r,t))}catch(n){oe(e,r,n,t)}})):(t.value=n,t.state=Q,te(e,t,!1))}catch(n){oe(e,{done:!1},n,t)}}};n&&(F=function(e){y(this,F,P),v(e),r.call(this);var t=$(this);try{e(ie(ae,this,t),ie(oe,this,t))}catch(e){oe(this,t,e)}},(r=function(e){R(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(F.prototype,{then:function(e,t){var n=B(this),r=U(S(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=W?V.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&te(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=$(e);this.promise=e,this.resolve=ie(ae,e,t),this.reject=ie(oe,e,t)},k.f=U=function(e){return e===F||e===o?new i:H(e)},u||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof q&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return E(F,q.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:n},{Promise:F}),h(F,P,!1,!0),m(P),o=l(P),s({target:P,stat:!0,forced:n},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),s({target:P,stat:!0,forced:u||n},{resolve:function(e){return E(u&&this===o?F:this,e)}}),s({target:P,stat:!0,forced:T},{all:function(e){var t=this,n=U(t),r=n.resolve,i=n.reject,o=O((function(){var n=v(t.resolve),o=[],a=0,s=1;w(e,(function(e){var u=a++,c=!1;o.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,o[u]=e,--s)||r(o)}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=U(t),r=n.reject,i=O((function(){var i=v(t.resolve);w(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(e,t,n){var r,i,o,a,s,u,c,l,d=n(8),f=n(71).f,p=n(34),h=n(117).set,m=(n=n(118),d.MutationObserver||d.WebKitMutationObserver),g=d.process,v=d.Promise,y="process"==p(g);p=f(d,"queueMicrotask"),f=p&&p.value;f||(r=function(){var e,t;for(y&&(e=g.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()},a=y?function(){g.nextTick(r)}:m&&!n?(s=!0,u=document.createTextNode(""),new m(r).observe(u,{characterData:!0}),function(){u.data=s=!s}):v&&v.resolve?(c=v.resolve(void 0),l=c.then,function(){l.call(c,r)}):function(){h.call(d,r)}),e.exports=f||function(e){e={fn:e,next:void 0},o&&(o.next=e),i||(i=e,a()),o=e}},function(e,t,n){var r=n(8);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var r=n(5),i=n(41),o=n(85),a=n(120),s=n(66);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,u=n.reject,c=a((function(){var n=i(t.resolve),o=[],a=0,u=1;s(e,(function(e){var i=a++,s=!1;o.push(void 0),u++,n.call(t,e).then((function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--u)||r(o)}),(function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--u)||r(o)}))})),--u||r(o)}));return c.error&&u(c.value),n.promise}})},function(e,t,n){"use strict";var r=n(5),i=n(43),o=n(109),a=n(11),s=n(36),u=n(116),c=n(119);n=n(53);r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(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||o.prototype.finally||n(o.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){n(54);var r=n(181),i=n(65),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===o||e instanceof Array&&t===o.forEach||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){n=n(182),e.exports=n},function(e,t,n){n(183),n=n(15),e.exports=n("Array").forEach},function(e,t,n){"use strict";var r=n(5);n=n(184);r({target:"Array",proto:!0,forced:[].forEach!=n},{forEach:n})},function(e,t,n){"use strict";var r=n(32).forEach,i=n(67);n=n(22),i=i("forEach"),n=n("forEach");e.exports=i&&n?[].forEach:function(e){return r(this,e,1>>0||(a.test(e)?16:10))}:o},function(e,t,n){n=n(262),e.exports=n},function(e,t,n){var r=n(263),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?r:t}},function(e,t,n){n(264),n=n(15),e.exports=n("Array").slice},function(e,t,n){"use strict";var r=n(5),i=n(13),o=n(55),a=n(79),s=n(35),u=n(30),c=n(69),l=n(10),d=n(56),f=(n=n(22),d=d("slice"),n=n("slice",{ACCESSORS:!0,0:0,1:2}),l("species")),p=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!d||!n},{slice:function(e,t){var n,r,l,d=u(this),m=s(d.length),g=a(e,m),v=a(void 0===t?m:t,m);if(o(d)&&((n="function"==typeof(n=d.constructor)&&(n===Array||o(n.prototype))||i(n)&&null===(n=n[f])?void 0:n)===Array||void 0===n))return p.call(d,g,v);for(r=new(void 0===n?Array:n)(h(v-g,0)),l=0;g​"),t.cmd.do("insertElem",e),this.createRangeByElem(e,!0))}catch(e){}},c.prototype.createRangeByElems=function(e,t){var n=(window.getSelection?window:document).getSelection();null!=n&&n.removeAllRanges(),n=document.createRange();n.setStart(e,0),n.setEnd(t,t.childNodes.length||1),this.saveRange(n),this.restoreSelection()},c.prototype.createRangeByElem=function(e,t,n){var r;e.length&&(e=e.elems[0],r=document.createRange(),n?r.selectNodeContents(e):r.selectNode(e),null!=t&&(r.collapse(t),t||(this.saveRange(r),this.editor.selection.moveCursor(e))),this.saveRange(r))},c.prototype.getSelectionRangeTopNodes=function(){var e=null==(e=this.getSelectionStartElem())?void 0:e.getNodeTop(this.editor),t=null==(t=this.getSelectionEndElem())?void 0:t.getNodeTop(this.editor);return this.recordSelectionNodes(a.default(e),a.default(t))},c.prototype.moveCursor=function(e,t){var n=this.getRange(),r=3===e.nodeType?null==(r=e.nodeValue)?void 0:r.length:e.childNodes.length;!s.UA.isFirefox&&!s.UA.isIE()||0===r||3!==e.nodeType&&"BR"!==e.childNodes[r-1].nodeName||(r-=1),t=null!=t?t:r;n&&e&&(n.setStart(e,t),n.setEnd(e,t),this.restoreSelection())},c.prototype.getCursorPos=function(){var e=window.getSelection();return null==e?void 0:e.anchorOffset},c.prototype.clearWindowSelectionRange=function(){var e=window.getSelection();e&&e.removeAllRanges()},c.prototype.recordSelectionNodes=function(e,t){var n=[],r=!0;try{for(var i=e,o=this.editor.$textElem;r;){var s=null==i?void 0:i.getNodeTop(this.editor);"BODY"===s.getNodeName()&&(r=!1),0<\/p>/gim,"")).replace(m.EMPTY_P_LAST_REGEX,"")).replace(m.EMPTY_P_REGEX,"

      ")).match(/<(img|br|hr|input)[^>]*>/gi))&&(0,a.default)(n).call(n,(function(e){e.match(/\/>/)||(t=t.replace(e,e.substring(0,e.length-1)+"/>"))})),t;""===(e=(0,s.default)(e).call(e))&&(e=m.EMPTY_P),0!==(0,u.default)(e).call(e,"<")&&(e="

      "+e+"

      "),i.html(e),r.initSelection()},g.prototype.setJSON=function(e){e=h.default(e).children();var t=this.editor.$textElem;e&&t.replaceChildAll(e)},g.prototype.getJSON=function(){var e=this.editor.$textElem;return p.default(e)},g.prototype.text=function(e){var t=this.editor,n=t.$textElem;if(null==e)return n.text().replace(/\u200b/gm,"");n.text("

      "+e+"

      "),t.initSelection()},g.prototype.append=function(e){var t=this.editor;0!==(0,u.default)(e).call(e,"<")&&(e="

      "+e+"

      "),this.html(this.html()+e),t.initSelection()},g.prototype._saveRange=function(){var e=this.editor,t=e.$textElem,n=l.default(document);function r(){e.selection.saveRange(),e.menus.changeActive()}function i(){r(),n.off("mouseup",i)}function o(){n.on("mouseup",i),t.off("mouseleave",o)}t.on("keyup",r),t.on("click",(function e(){r(),t.off("click",e)})),t.on("mousedown",(function(){t.on("mouseleave",o)})),t.on("mouseup",(function(n){t.off("mouseleave",o),(0,c.default)((function(){null!==e.selection.getRange()&&r()}),0)}))},g.prototype._bindEventHooks=function(){var e=this.editor,t=e.$textElem,n=this.eventHooks;function r(e){e.preventDefault()}t.on("click",(function(e){var t=n.clickEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){var t;13===e.keyCode&&(t=n.enterUpEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keyup",(function(e){var t=n.keyupEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keydown",(function(e){var t=n.keydownEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("keyup",(function(e){var t;8!==e.keyCode&&46!==e.keyCode||(t=n.deleteUpEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keydown",(function(e){var t;8!==e.keyCode&&46!==e.keyCode||(t=n.deleteDownEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("paste",(function(e){var t;f.UA.isIE()||(e.preventDefault(),t=n.pasteEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keydown",(function(t){(e.isFocus||e.isCompatibleMode)&&(t.ctrlKey||t.metaKey)&&90===t.keyCode&&(t.preventDefault(),t.shiftKey?e.history.restore():e.history.revoke())})),t.on("keyup",(function(e){var t;9===e.keyCode&&(e.preventDefault(),t=n.tabUpEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("keydown",(function(e){var t;9===e.keyCode&&(e.preventDefault(),t=n.tabDownEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("scroll",f.throttle((function(e){var t=n.textScrollEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))}),100)),l.default(document).on("dragleave",r).on("drop",r).on("dragenter",r).on("dragover",r),e.beforeDestroy((function(){l.default(document).off("dragleave",r).off("drop",r).off("dragenter",r).off("dragover",r)})),t.on("drop",(function(e){e.preventDefault();var t=n.dropEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),t.on("click",(function(e){var t=null;e=e.target,e=l.default(e);("A"===e.getNodeName()||null!=(e=e.parentUntil("a")))&&(t=e),t&&(e=n.linkClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(e){var t=null,r=e.target;r=l.default(r);"IMG"!==r.getNodeName()||r.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),t=r),t&&(e=n.imgClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(e){var t=null;e=e.target,e=l.default(e);("PRE"===e.getNodeName()||null!==(e=e.parentUntil("pre")))&&(t=e),t&&(e=n.codeClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))})),t.on("click",(function(t){var r=null;t=t.target,t=l.default(t);(r="HR"===t.getNodeName()?t:r)&&(e.selection.createRangeByElem(r),e.selection.restoreSelection(),t=n.splitLineEvents,(0,a.default)(t).call(t,(function(e){return e(r)})))})),e.$toolbarElem.on("click",(function(e){var t=n.toolbarClickEvents;(0,a.default)(t).call(t,(function(t){return t(e)}))})),e.$textContainerElem.on("mousedown",(function(e){e=e.target;l.default(e).hasClass("w-e-img-drag-rb")&&(e=n.imgDragBarMouseDownEvents,(0,a.default)(e).call(e,(function(e){return e()})))})),t.on("click",(function(t){var r,i=t.target;(r=l.default(i).parentUntilEditor("TABLE",e,i))&&(i=n.tableClickEvents,(0,a.default)(i).call(i,(function(e){return e(r,t)})))})),t.on("keydown",(function(e){var t;13===e.keyCode&&(t=n.enterDownEvents,(0,a.default)(t).call(t,(function(t){return t(e)})))})),t.on("click",(function(e){var t=null,r=e.target;r=l.default(r);"VIDEO"===r.getNodeName()&&(e.stopPropagation(),t=r),t&&(e=n.videoClickEvents,(0,a.default)(e).call(e,(function(e){return e(t)})))}))},t.default=g},function(e,t,n){n=n(284),e.exports=n},function(e,t,n){var r=n(285),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||e instanceof Array&&t===i.find?r:t}},function(e,t,n){n(286),n=n(15),e.exports=n("Array").find},function(e,t,n){"use strict";var r=n(5),i=n(32).find,o=n(82),a=(n=n(22),"find"),s=!0;n=n(a);a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!n},{find:function(e){return i(this,e,1
      "===i.html()||"FONT"===n.getNodeName()&&""===n.text()&&"monospace"===n.attr("face")?r(i):!i.equal(t)||"P"===n.getNodeName()&&null===n.attr("data-we-empty-p")||n.text()||r(n)})),n.push((function(t){var n;e.selection.saveRange(null==(n=getSelection())?void 0:n.getRangeAt(0)),e.selection.getSelectionContainerElem().id===e.textElemId&&(t.preventDefault(),e.cmd.do("insertHTML","


      "))}))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(17)),a=r(n(28)),s=(r=((0,i.default)(t,"__esModule",{value:!0}),t.cutToKeepP=void 0,n(2)),n(7)),u=r.__importDefault(n(3));t.cutToKeepP=function(e,t){t.push((function(t){var n;88!==t.keyCode||(t=e.$textElem,(n=(0,o.default)(n=t.html().toLowerCase()).call(n))&&"
      "!==n)||(n=u.default(s.EMPTY_P),t.html(" "),t.append(n),e.selection.createRangeByElem(n,!1,!0),e.selection.restoreSelection(),e.selection.moveCursor(n.getNode(),0))}))},t.default=function(e,t,n){t.push((function(){var t=e.$textElem,n=e.$textElem.html(),r=e.$textElem.text(),i=(n=(0,o.default)(n).call(n),["


      ","
      ",'

      ',s.EMPTY_P]);!/^\s*$/.test(r)||n&&!(0,a.default)(i).call(i,n)||(t.html(s.EMPTY_P),r=t.getNode(),e.selection.createRangeByElems(r.childNodes[0],r.childNodes[0]),i=e.selection.getSelectionContainerElem(),e.selection.restoreSelection(),e.selection.moveCursor(i.getNode(),0))})),n.push((function(t){var n=e.$textElem;(0,o.default)(n=n.html().toLowerCase()).call(n)===s.EMPTY_P&&t.preventDefault()}))}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e,t){t.push((function(){var t,n;e.cmd.queryCommandSupported("insertHTML")&&(t=e.selection.getSelectionContainerElem())&&(n=t.parent(),t=t.getNodeName(),n=n.getNodeName(),"CODE"==t||"CODE"===n||"PRE"===n||/hljs/.test(n)?e.cmd.do("insertHTML",e.config.languageTab):e.cmd.do("insertHTML","    "))}))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(17)),a=r(n(4)),s=((0,i.default)(t,"__esModule",{value:!0}),n(131)),u=n(6),c=n(7);function l(e){e=(0,o.default)(e=e.replace(/
      /gim,"

      ").replace(/<\/div>/gim,"

      ")).call(e);var t=document.createElement("div");return t.innerHTML=e,t.innerHTML.replace(/

      <\/p>/gim,"")}t.default=function(e,t){t.push((function(t){var n=(i=e.config).pasteFilterStyle,r=i.pasteIgnoreImg,i=i.pasteTextHandle,o=(r=s.getPasteHtml(t,n,r),t=(t=s.getPasteText(t)).replace(/\n/gm,"
      "),e.selection.getSelectionContainerElem());if(o){var d,f,p=null==o?void 0:o.getNodeName(),h=null==o?void 0:o.getNodeTop(e),m="";if(h.elems[0]&&(m=null==h?void 0:h.getNodeName()),"CODE"===p||"PRE"===m)i&&u.isFunction(i)&&(t=""+(i(t)||"")),e.cmd.do("insertHTML",t.replace(/
      |/gm,"\n").replace(/<[^>]+>/gm,""));else if(c.urlRegex.test(t)&&n){p=(t=i&&u.isFunction(i)?""+(i(t)||""):t).replace(c.urlRegex,(function(e){return'
      '+e+""})),m=e.selection.getRange();var g=document.createElement("div"),v=document.createDocumentFragment();if(g.innerHTML=p,null!=m){for(;g.childNodes.length;)v.append(g.childNodes[0]);p=v.querySelectorAll("a"),(0,a.default)(p).call(p,(function(e){e.innerText=e.href})),m.insertNode&&(m.deleteContents(),m.insertNode(v)),e.selection.clearWindowSelectionRange()}}else if(r)try{i&&u.isFunction(i)&&(r=""+(i(r)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(r)&&n?e.cmd.do("insertHTML",""+l(t)):function(e){var t;if(""!==e)return(t=document.createElement("div")).innerHTML=e,"P"===(null==(e=t.firstChild)?void 0:e.nodeName)}(d=l(r))?(f=e.$textElem,e.cmd.do("insertHTML",d),f.equal(o)?e.selection.createEmptyRange():function(e){if(null!=e&&e.length)return"P"===(e=e.elems[0]).nodeName&&"
      "===e.innerHTML}(h)&&h.remove()):e.cmd.do("insertHTML",d)}catch(n){i&&u.isFunction(i)&&(t=""+(i(t)||"")),e.cmd.do("insertHTML",""+l(t))}}}))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(17)),a=r(n(4)),s=r(n(28)),u=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(293)),c=r.__importDefault(n(297));function l(e,t){var n;return e=(0,o.default)(n=e.toLowerCase()).call(n),u.IGNORE_TAGS.has(e)||!(!t||"img"!==e)}t.default=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=[],i="";function d(e){(e=(0,o.default)(e).call(e))&&!u.EMPTY_TAGS.has(e)&&(i=e)}(new c.default).parse(e,{startElement:function(e,i){var o,c,f,p;d(e),l(e,n)||(o=u.NECESSARY_ATTRS.get(e)||[],c=[],(0,a.default)(i).call(i,(function(e){var n=e.name;"style"===n?t||c.push(e):!1!==(0,s.default)(o).call(o,n)&&c.push(e)})),i=c,f="",f="<"+(e=e),p=[],(0,a.default)(i).call(i,(function(e){p.push(e.name+'="'+e.value+'"')})),0",r.push(e))},characters:function(e){!e||l(i,n)||r.push(e)},endElement:function(e){l(e,n)||(r.push(""),i="")},comment:function(e){d(e)}});var f;e=r.join("");return f=/(.*?)<\/span>/,e.replace(/.*?<\/span>/gi,(function(e){return e=e.match(f),null==e?"":e[1]}))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(132));r=r(n(121));(0,i.default)(t,"__esModule",{value:!0}),t.TOP_LEVEL_TAGS=t.EMPTY_TAGS=t.NECESSARY_ATTRS=t.IGNORE_TAGS=void 0,t.IGNORE_TAGS=new o.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),t.NECESSARY_ATTRS=new r.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),t.EMPTY_TAGS=new o.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),t.TOP_LEVEL_TAGS=new o.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(e,t,n){n=n(295),e.exports=n},function(e,t,n){n(296),n(61),n(50),n(54),n=n(9),e.exports=n.Set},function(e,t,n){"use strict";var r=n(122);n=n(124);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},function(e,t){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);for(var n,r,i,o=!1,a=this;0\n

      \n
      \n
      \n
      '),i=(r.css("visibility","hidden"),t.append(r),r.css("z-index",e.zIndex.get("tooltip")),0);function o(){i&&clearTimeout(i)}function a(){o(),r.css("visibility","hidden")}t.on("mouseover",(function(s){var u,c;s=s.target,s=g.default(s);!s.isContain(t)&&(null!=s.parentUntil(".w-e-droplist")?a():(s.attr("data-title")||null!=(s=s.parentUntil(".w-e-menu")))&&(c=s.attr("data-title"),u=s),c)&&u?(o(),s=u.getOffsetData(),r.text(e.i18next.t("menus.title."+c)),u=r.getOffsetData(),c=s.left+s.width/2-u.width/2,r.css("left",c+"px"),"up"===n?r.css("top",s.top-u.height-8+"px"):"down"===n&&r.css("top",s.top+s.height+8+"px"),i=(0,f.default)((function(){r.css("visibility","visible")}),200)):a()})).on("mouseleave",(function(){a()}))},v.prototype._addToToolbar=function(){var e,t=this.editor.$toolbarElem;(0,c.default)(e=this.menuList).call(e,(function(e){e=e.$elem,e&&t.append(e)}))},v.prototype.menuFind=function(e){for(var t=this.menuList,n=0,r=t.length;n\n \n ');return r.call(this,t,e)||this}t.default=n},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(27)),s=i(n(29)),u=i(n(4)),c=i(n(317)),l=i(n(28)),d=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),o=i.__importDefault(n(24)),i.__importDefault(n(3))),f=n(6),p=n(7);r=o.default,i.__extends(h,r),h.prototype.command=function(e){var t,n=this.editor,r=n.selection.getSelectionContainerElem();if(r&&n.$textElem.equal(r))this.setMultilineHead(e);else{if(-1<(0,a.default)(t=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(t,d.default(r).getNodeName()))return;n.cmd.do("formatBlock",e)}"

      "!==e&&this.addUidForSelectionElem()},h.prototype.addUidForSelectionElem=function(){var e=this.editor.selection.getSelectionContainerElem(),t=f.getRandomCode();d.default(e).attr("id",t)},h.prototype.addListenerCatalog=function(){var e=this;this.editor.txt.eventHooks.changeEvents.push((function(){e.getCatalogs()}))},h.prototype.getCatalogs=function(){var e=this.editor,t=this.editor.$textElem,n=(e=e.config.onCatalogChange,t=(0,s.default)(t).call(t,"h1,h2,h3,h4,h5"),[]);(0,u.default)(t).call(t,(function(e,t){e=d.default(e);var r=e.attr("id"),i=e.getNodeName(),o=e.text();r||(r=f.getRandomCode(),e.attr("id",r)),o&&n.push({tag:i,id:r,text:o})})),(0,c.default)(this.oldCatalogs)!==(0,c.default)(n)&&(this.oldCatalogs=n,e)&&e(n)},h.prototype.setMultilineHead=function(e){for(var t=this,n=this.editor,r=n.selection,i=null==(i=r.getSelectionContainerElem())?void 0:i.elems[0],o=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],a=d.default(r.getSelectionStartElem()),s=d.default(r.getSelectionEndElem()),c=(s.elems[0].outerHTML!==d.default(p.EMPTY_P).elems[0].outerHTML||s.elems[0].nextSibling||(s=s.prev()),[]),l=(c.push(a.getNodeTop(n)),[]),f=(a=null==(a=r.getRange())?void 0:a.commonAncestorContainer.childNodes,null!=a&&(0,u.default)(a).call(a,(function(e,t){e===c[0].getNode()&&l.push(t),e===s.getNodeTop(n).getNode()&&l.push(t)})),0);c[f].getNode()!==s.getNodeTop(n).getNode();){if(!c[f].elems[0])return;var h=d.default(c[f].next().getNode());c.push(h),f++}null!=c&&(0,u.default)(c).call(c,(function(n,r){var i,a;t.hasTag(n,o)||(i=d.default(e),a=n.parent().getNode(),i.html(""+n.html()),a.insertBefore(i.getNode(),n.getNode()),n.remove())})),r.createRangeByElems(i.children[l[0]],i.children[l[1]])},h.prototype.hasTag=function(e,t){var n,r=this;return!!e&&(!!(0,l.default)(t).call(t,null==e?void 0:e.getNodeName())||(n=!1,null!=(e=e.children())&&(0,u.default)(e).call(e,(function(e){n=r.hasTag(d.default(e),t)})),n))},h.prototype.tryChangeActive=function(){var e=this.editor.cmd.queryCommandValue("formatBlock");/^h/i.test(e)?this.active():this.unActive()},n=h;function h(e){var t=this,n=d.default('

      '),i={width:100,title:"设置标题",type:"list",list:[{$elem:d.default("

      H1

      "),value:"

      "},{$elem:d.default("

      H2

      "),value:"

      "},{$elem:d.default("

      H3

      "),value:"

      "},{$elem:d.default("

      H4

      "),value:"

      "},{$elem:d.default("

      H5
      "),value:"
      "},{$elem:d.default("

      "+e.i18next.t("menus.dropListMenu.head.正文")+"

      "),value:"

      "}],clickHandler:function(e){t.command(e)}};t=r.call(this,n,e,i)||this;return e.config.onCatalogChange&&(t.oldCatalogs=[],t.addListenerCatalog(),t.getCatalogs()),t}t.default=n},function(e,t,n){e.exports=n(318)},function(e,t,n){n=n(319),e.exports=n},function(e,t,n){n(320);var r=n(9);r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return r.JSON.stringify.apply(null,arguments)}},function(e,t,n){function r(e,t,n){var r=n.charAt(t-1);n=n.charAt(t+1);return u.test(e)&&!c.test(n)||c.test(e)&&!u.test(r)?"\\u"+e.charCodeAt(0).toString(16):e}var i=n(5),o=n(36),a=(n=n(11),o("JSON","stringify")),s=/[\uD800-\uDFFF]/g,u=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/;o=n((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&i({target:"JSON",stat:!0,forced:o},{stringify:function(e,t,n){var i=a.apply(null,arguments);return"string"==typeof i?i.replace(s,r):i}})},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(17)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),o=i.__importDefault(n(38)),i.__importDefault(n(3))),u=i.__importDefault(n(322)),c=i.__importStar(n(96)),l=i.__importDefault(n(33)),d=i.__importDefault(n(324)),f=n(7);r=o.default,i.__extends(p,r),p.prototype.clickHandler=function(){var e,t=this.editor,n=t.selection.getSelectionContainerElem(),r=t.$textElem,i=r.html();(0,a.default)(i).call(i)===f.EMPTY_P&&(i=r.children(),t.selection.createRangeByElem(i,!0,!0),n=t.selection.getSelectionContainerElem()),n&&t.$textElem.equal(n)||(this.isActive?(i=r="",(n=t.selection.getSelectionContainerElem())&&("A"!==n.getNodeName()&&(e=c.getParentNodeA(n),n=s.default(e)),r=n.elems[0].innerText,i=n.attr("href"),this.createPanel(r,i))):t.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(t.selection.getSelectionText(),""))},p.prototype.createPanel=function(e,t){e=u.default(this.editor,e,t),new l.default(this,e).create()},p.prototype.tryChangeActive=function(){var e=this.editor;c.default(e)?this.active():this.unActive()},n=p;function p(e){var t=s.default('

      ');t=r.call(this,t,e)||this;return d.default(e),t}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(28)),a=r(n(17)),s=r(n(29)),u=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),c=r.__importDefault(n(3)),l=r.__importStar(n(96)),d=n(323);t.default=function(e,t,n){var r,i=u.getRandom("input-link"),f=u.getRandom("input-text"),p=u.getRandom("btn-ok"),h=u.getRandom("btn-del"),m=l.default(e)?"inline-block":"none";function g(){var t;l.default(e)&&(t=e.selection.getSelectionContainerElem())&&(e.selection.createRangeByElem(t),e.selection.restoreSelection(),r=t)}return{width:300,height:0,tabs:[{title:e.i18next.t("menus.panelMenus.link.链接"),tpl:'
      \n \n \n \n \n
      \n \n \n
      \n
      ",events:[{selector:"#"+p,type:"click",fn:function(){var t=e.selection.getSelectionContainerElem(),n=null==t?void 0:t.elems[0],r=(e.selection.restoreSelection(),e.selection.getSelectionRangeTopNodes()[0].getNode()),s=window.getSelection(),u=c.default("#"+i),p=c.default("#"+f),h=(u=(0,a.default)(u=u.val()).call(u),p=(0,a.default)(p=p.val()).call(p),"");r=null==(h=!s||null!=s&&s.isCollapsed?h:null==(s=d.insertHtml(s,r))?void 0:(0,a.default)(s).call(s))?void 0:h.replace(/<.*?>/g,""),h=null!=(s=null==r?void 0:r.length)?s:0;if(h<=p.length&&(s=p.substring(0,h),h=p.substring(h),r===s)&&(p=r+h),u&&function(t,n){if(void 0!==(t=e.config.linkCheck(t,n))){if(!0===t)return 1;e.config.customAlert(t,"warning")}}(p=p||u,u)){if("A"===(null==n?void 0:n.nodeName))n.setAttribute("href",u),n.innerText=p;else{if("A"!==(null==n?void 0:n.nodeName)&&(0,o.default)(s=l.EXTRA_TAG).call(s,n.nodeName)&&(r=l.getParentNodeA(t),r))return r.setAttribute("href",u),n.innerText=p,!0;h=u,t=(s=p).replace(//g,">"),(r=(t=c.default(''+t+"")).elems[0]).innerText=s,r.href=h,l.default(e)&&g(),e.cmd.do("insertElem",t)}return!0}},bindEnter:!0},{selector:"#"+h,type:"click",fn:function(){var t,n,i;return l.default(e)&&(g(),"A"===r.getNodeName()?(n=(t=r.elems[0]).parentElement)&&(0,o.default)(i=l.EXTRA_TAG).call(i,n.nodeName)?n.innerHTML=t.innerHTML:e.cmd.do("insertHTML",""+t.innerHTML+""):(i=l.getParentNodeA(r).innerHTML,e.cmd.do("insertHTML",""+i+""))),!0}}]}],setLinkValue:function(e,r){var o="",a="";"text"===r&&(o="#"+f,a=t),"link"===r&&(o="#"+i,a=n),(0,s.default)(e).call(e,o).elems[0].value=a}}}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4));function a(e,t){for(var n=e,r=e;n.textContent!==t&&"P"!==(null==(n=(r=n).parentNode?null==n?void 0:n.parentNode:n)?void 0:n.nodeName););return r}function s(e,t){var n,r=e.nodeName,i="";return 3===e.nodeType||/^(h|H)[1-6]$/.test(r)?t:(1===e.nodeType&&((n=e.getAttribute("style"))&&(i=i+' style="'+n+'"'),(n=e.getAttribute("face"))&&(i=i+' face="'+n+'"'),n=e.getAttribute("color"))&&(i=i+' color="'+n+'"'),"<"+(r=r.toLowerCase())+i+">"+t+"")}function u(e,t,n,r){for(var i,o=null==(i=t.textContent)?void 0:i.substring(n,r),a=t,u="";o=u=s(a,null!=o?o:""),(a=null==a?void 0:a.parentElement)&&a.textContent!==e;);return u}function c(e,t){return(0,o.default)(e).call(e,(function(e){t=s(e,t)})),t}(0,i.default)(t,"__esModule",{value:!0}),t.insertHtml=t.createPartHtml=t.makeHtmlString=t.getTopNode=void 0,t.getTopNode=a,t.makeHtmlString=s,t.createPartHtml=u,t.insertHtml=function(e,t){var n=e.anchorNode,r=e.focusNode,i=e.anchorOffset,o=(e=e.focusOffset,null!=(o=t.textContent)?o:""),l=(t=function(e){for(var t,n=null!=(t=e.textContent)?t:"",r=[];(null==e?void 0:e.textContent)===n;)"P"!==e.nodeName&&"TABLE"!==e.nodeName&&r.push(e),e=e.childNodes[0];return r}(t),""),d="",f="",p=n,h=r,m=n;if(null!=n&&n.isEqualNode(null!=r?r:null))return c(t,u(o,n,i,e));for(n&&(l=u(o,n,null!=i?i:0)),r&&(f=u(o,r,0,e)),n&&(p=a(n,o)),r&&(h=a(r,o)),m=null!=(i=null==p?void 0:p.nextSibling)?i:n;null==m||!m.isEqualNode(null!=h?h:null);){"#text"===(null==m?void 0:m.nodeName)?d+=null==m?void 0:m.textContent:(g=null==(g=null==(g=null==m?void 0:m.firstChild)?void 0:g.parentElement)?void 0:g.innerHTML,m&&(d+=s(m,null!=g?g:"")));var g,v=null!=(g=null==m?void 0:m.nextSibling)?g:m;if(v===m)break;m=v}return c(t,""+l+d+f)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(325));t.default=function(e){r.default(e)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(28)),a=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),r.__importDefault(n(3))),s=r.__importDefault(n(39)),u=n(96);function c(e){var t;return{showLinkTooltip:function(n){var r=[{$elem:a.default(""+e.i18next.t("menus.panelMenus.link.查看链接")+""),onClick:function(e,t){return t=t.attr("href"),window.open(t,"_target"),!0}},{$elem:a.default(""+e.i18next.t("menus.panelMenus.link.取消链接")+""),onClick:function(e,t){e.selection.createRangeByElem(t),e.selection.restoreSelection();var n,r=t.childNodes();return"IMG"===(null==r?void 0:r.getNodeName())?(r=null==(r=null==(r=e.selection.getSelectionContainerElem())?void 0:r.children())?void 0:r.elems[0].children[0],e.cmd.do("insertHTML","")):(t=(r=t.elems[0]).innerHTML,(r=r.parentElement)&&(0,o.default)(n=u.EXTRA_TAG).call(n,r.nodeName)?r.innerHTML=t:e.cmd.do("insertHTML",""+t+"")),!0}}];(t=new s.default(e,n,r)).create()},hideLinkTooltip:function(){t&&(t.remove(),t=null)}}}t.default=function(e){var t=(n=c(e)).showLinkTooltip,n=n.hideLinkTooltip;e.txt.eventHooks.linkClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(23)),a=i.__importDefault(n(3));r=o.default,i.__extends(s,r),s.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("italic"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},s.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},n=s;function s(e){var t=a.default('
      \n \n
      ');return r.call(this,t,e)||this}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(23)),a=i.__importDefault(n(3));r=o.default,i.__extends(s,r),s.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("underline"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},s.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},n=s;function s(e){var t=a.default('
      \n \n
      ');return r.call(this,t,e)||this}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(23)),a=i.__importDefault(n(3));r=o.default,i.__extends(s,r),s.prototype.clickHandler=function(){var e=this.editor,t=e.selection.isSelectionEmpty();t&&e.selection.createEmptyRange(),e.cmd.do("strikeThrough"),t&&(e.selection.collapseRange(),e.selection.restoreSelection())},s.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},n=s;function s(e){var t=a.default('
      \n \n
      ');return r.call(this,t,e)||this}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(24)),a=i.__importDefault(n(3)),s=i.__importDefault(n(330));r=o.default,i.__extends(u,r),u.prototype.command=function(e){var t,n,r=this.editor,i=r.selection.isSelectionEmpty(),o=null==(o=r.selection.getSelectionContainerElem())?void 0:o.elems[0];null!=o&&(n="p"!==(null==o?void 0:o.nodeName.toLowerCase()),t=(null==o?void 0:o.getAttribute("face"))===e,i&&(n&&!t&&(n=r.selection.getSelectionRangeTopNodes(),r.selection.createRangeByElem(n[0]),r.selection.moveCursor(n[0].elems[0])),r.selection.setRangeToElem(o),r.selection.createEmptyRange()),r.cmd.do("fontName",e),i)&&(r.selection.collapseRange(),r.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=a.default('
      \n \n
      '),i={width:100,title:"设置字体",type:"list",list:new s.default(e.config.fontNames).getItemList(),clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function s(e){var t=this;this.itemList=[],(0,o.default)(e).call(e,(function(e){var n="string"==typeof e?e:e.value;e="string"==typeof e?e:e.name;t.itemList.push({$elem:a.default("

      "+e+"

      "),value:e})}))}s.prototype.getItemList=function(){return this.itemList},t.default=s},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(24)),a=i.__importDefault(n(3)),s=i.__importDefault(n(332));r=o.default,i.__extends(u,r),u.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty();null!=(null==(t=n.selection.getSelectionContainerElem())?void 0:t.elems[0])&&(n.cmd.do("fontSize",e),r)&&(n.selection.collapseRange(),n.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=a.default('
      \n \n
      '),i={width:160,title:"设置字号",type:"list",list:new s.default(e.config.fontSizes).getItemList(),clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3));function i(e){for(var t in this.itemList=[],e){var n=e[t];this.itemList.push({$elem:r.default('

      '+n.name+"

      "),value:n.value})}}i.prototype.getItemList=function(){return this.itemList},t.default=i},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(4)),s=i(n(27)),u=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),o=i.__importDefault(n(24)),i.__importDefault(n(3))),c=["LI"],l=["BLOCKQUOTE"];r=o.default,i.__extends(d,r),d.prototype.command=function(e){var t=this.editor,n=t.selection,r=n.getSelectionContainerElem();n.saveRange(),t=t.selection.getSelectionRangeTopNodes();if(null!=r&&r.length)if(this.isSpecialNode(r,t[0])||this.isSpecialTopNode(t[0])){if(r=this.getSpecialNodeUntilTop(r,t[0]),null==r)return;u.default(r).css("text-align",e)}else(0,a.default)(t).call(t,(function(t){t.css("text-align",e)}));n.restoreSelection()},d.prototype.getSpecialNodeUntilTop=function(e,t){for(var n=e.elems[0],r=t.elems[0];null!=n;){if(-1!==(0,s.default)(c).call(c,null==n?void 0:n.nodeName))return n;if(n.parentNode===r)return n;n=n.parentNode}return n},d.prototype.isSpecialNode=function(e,t){return e=this.getSpecialNodeUntilTop(e,t),null!=e&&-1!==(0,s.default)(c).call(c,e.nodeName)},d.prototype.isSpecialTopNode=function(e){return null!=e&&-1!==(0,s.default)(l).call(l,null==(e=e.elems[0])?void 0:e.nodeName)},d.prototype.tryChangeActive=function(){},n=d;function d(e){var t=this,n=u.default('
      '),i={width:100,title:"对齐方式",type:"list",list:[{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.靠左")+"\n

      "),value:"left"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.居中")+"\n

      "),value:"center"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.靠右")+"\n

      "),value:"right"},{$elem:u.default('

      \n \n '+e.i18next.t("menus.dropListMenu.justify.两端")+"\n

      "),value:"justify"}],clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=n},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(4)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(o=i.__importDefault(n(23)),i.__importDefault(n(335))),c=i.__importDefault(n(336)),l=n(7);r=o.default,i.__extends(d,r),d.prototype.clickHandler=function(){var e,t,n,r=this.editor,i=r.selection.isSelectionEmpty(),o=r.selection.getSelectionRangeTopNodes(),u=o[o.length-1];if("BLOCKQUOTE"!==this.getTopNodeName())return t=c.default(o),r.$textElem.equal(u)?(n=null==(n=r.selection.getSelectionContainerElem())?void 0:n.elems[0],r.selection.createRangeByElems(n.children[0],n.children[0]),o=r.selection.getSelectionRangeTopNodes(),t=c.default(o),u.append(t)):t.insertAfter(u),this.delSelectNode(o),null==(o=null==(n=t.childNodes())?void 0:n.last().getNode())?void 0:(o.textContent?r.selection.moveCursor(o):r.selection.moveCursor(o,0),this.tryChangeActive(),void s.default(l.EMPTY_P).insertAfter(t));o=(n=s.default(u.childNodes())).length,e=u,(0,a.default)(n).call(n,(function(t){t=s.default(t),t.insertAfter(e),e=t})),u.remove(),r.selection.moveCursor(n.elems[o-1]),this.tryChangeActive(),i&&(r.selection.collapseRange(),r.selection.restoreSelection())},d.prototype.tryChangeActive=function(){var e;"BLOCKQUOTE"===(null==(e=this.editor.selection.getSelectionRangeTopNodes()[0])?void 0:e.getNodeName())?this.active():this.unActive()},d.prototype.getTopNodeName=function(){var e=this.editor.selection.getSelectionRangeTopNodes()[0];return null==e?void 0:e.getNodeName()},d.prototype.delSelectNode=function(e){(0,a.default)(e).call(e,(function(e){e.remove()}))},n=d;function d(e){var t=s.default('
      \n \n
      ');t=r.call(this,t,e)||this;return u.default(e),t}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),o=r.__importDefault(n(3));t.default=function(e){e.txt.eventHooks.enterDownEvents.push((function(t){var n,r=e.selection.getSelectionContainerElem(),a=e.selection.getSelectionRangeTopNodes()[0];"BLOCKQUOTE"===(null==a?void 0:a.getNodeName())&&("BLOCKQUOTE"===r.getNodeName()&&(n=null==(n=r.childNodes())?void 0:n.getNode(),e.selection.moveCursor(n)),""===r.text()&&(t.preventDefault(),r.remove(),(n=o.default(i.EMPTY_P)).insertAfter(a),e.selection.moveCursor(n.getNode(),0)),""===a.text())&&a.remove()}))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e){var t=a.default("
      ");return(0,o.default)(e).call(e,(function(e){t.append(e.clone(!0))})),t}},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(26)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),o=i.__importDefault(n(24)),i.__importDefault(n(3))),u=n(6);r=o.default,i.__extends(c,r),c.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null==(i=n.selection.getSelectionContainerElem())?void 0:i.elems[0];null!=i&&(t="p"!==(null==i?void 0:i.nodeName.toLowerCase()),i=null==i?void 0:i.style.backgroundColor,i=u.hexToRgb(e)===i,r&&(t&&!i&&(t=n.selection.getSelectionRangeTopNodes(),n.selection.createRangeByElem(t[0]),n.selection.moveCursor(t[0].elems[0])),n.selection.createEmptyRange()),n.cmd.do("backColor",e),r)&&(n.selection.collapseRange(),n.selection.restoreSelection())},c.prototype.tryChangeActive=function(){},n=c;function c(e){var t=this,n=s.default('
      \n \n
      '),i={width:120,title:"背景颜色",type:"inline-block",list:(0,a.default)(i=e.config.colors).call(i,(function(e){return{$elem:s.default(''),value:e}})),clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=n},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(26)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),o=i.__importDefault(n(24)),i.__importDefault(n(3)));r=o.default,i.__extends(u,r),u.prototype.command=function(e){var t,n=this.editor,r=n.selection.isSelectionEmpty(),i=null==(i=n.selection.getSelectionContainerElem())?void 0:i.elems[0];null!=i&&(t=n.selection.getSelectionText(),"A"===i.nodeName&&i.textContent===t&&(t=s.default("").getNode(),i.appendChild(t)),n.cmd.do("foreColor",e),r)&&(n.selection.collapseRange(),n.selection.restoreSelection())},u.prototype.tryChangeActive=function(){},n=u;function u(e){var t=this,n=s.default('
      \n \n
      '),i={width:120,title:"文字颜色",type:"inline-block",list:(0,a.default)(i=e.config.colors).call(i,(function(e){return{$elem:s.default(''),value:e}})),clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(3)),a=i.__importDefault(n(33)),s=i.__importDefault(n(38)),u=i.__importDefault(n(340)),c=i.__importDefault(n(346));r=s.default,i.__extends(l,r),l.prototype.clickHandler=function(){this.createPanel("")},l.prototype.createPanel=function(e){e=u.default(this.editor,e),new a.default(this,e).create()},l.prototype.tryChangeActive=function(){},n=l;function l(e){var t=o.default('
      \n \n
      ');t=r.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(17)),a=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),s=r.__importDefault(n(3)),u=r.__importDefault(n(341)),c=n(7);t.default=function(e,t){var n=e.config,r=new u.default(e),i=a.getRandom("input-iframe"),l=a.getRandom("btn-ok"),d=a.getRandom("input-upload"),f=a.getRandom("btn-local-ok");return f=[{title:e.i18next.t("menus.panelMenus.video.上传视频"),tpl:'
      \n
      \n \n
      \n
      \n \n
      \n
      ',events:[{selector:"#"+f,type:"click",fn:function(){var e=s.default("#"+d).elems[0];if(!e)return!0;e.click()}},{selector:"#"+d,type:"change",fn:function(){var e=s.default("#"+d).elems[0];return e&&(e=e.files).length&&r.uploadVideo(e),!0}}]},{title:e.i18next.t("menus.panelMenus.video.插入视频"),tpl:'
      \n "/>\n \n
      \n \n
      \n
      ",events:[{selector:"#"+l,type:"click",fn:function(){var t=s.default("#"+i);t=(0,o.default)(t=t.val()).call(t);if(t&&function(t){if(!0===(t=e.config.onlineVideoCheck(t)))return 1;"string"==typeof t&&e.config.customAlert(t,"error")}(t))return t=t,e.cmd.do("insertHTML",t+c.EMPTY_P),e.config.onlineVideoCallback(t),!0},bindEnter:!0}]}],l={width:300,height:0,tabs:[]},window.FileReader&&(n.uploadVideoServer||n.customUploadVideo)&&l.tabs.push(f[0]),n.showLinkVideo&&l.tabs.push(f[1]),l}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(133)),a=r(n(57)),s=r(n(4)),u=r(n(27)),c=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),l=r.__importDefault(n(135)),d=r.__importDefault(n(136)),f=n(7),p=n(6);function h(e){this.editor=e}h.prototype.uploadVideo=function(e){var t,n,r,i,f,p,h,m,g,v,y,b,x,w,_,S,C,A=this;e.length&&(t=this.editor,n=t.config,r=function(e){return t.i18next.t("validate."+e)},S=n.uploadVideoServer,i=n.uploadVideoMaxSize/1024,f=n.uploadVideoName,p=n.uploadVideoParams,h=n.uploadVideoParamsWithUrl,m=n.uploadVideoHeaders,g=n.uploadVideoHooks,v=n.uploadVideoTimeout,y=n.withVideoCredentials,C=n.customUploadVideo,b=n.uploadVideoAccept,x=[],w=[],c.arrForEach(e,(function(e){var t=e.name,n=e.size/1024/1024;t&&n&&(b instanceof Array?(0,o.default)(b).call(b,(function(e){return e===t.split(".")[t.split(".").length-1]}))?i

      '):r.cmd.do("insertHTML",''+f.EMPTY_P),(n=document.createElement("video")).onload=function(){n=null},n.onerror=function(){i.customAlert(t("插入视频错误"),"error","wangEditor: "+t("插入视频错误")+","+t("视频链接")+' "'+e+'",'+t("下载链接失败")),n=null},n.onabort=function(){return n=null},n.src=e)},t.default=h},function(e,t,n){e.exports=n(343)},function(e,t,n){n=n(344),e.exports=n},function(e,t,n){n(345),n=n(9),e.exports=n.Date.now},function(e,t,n){n(5)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(347)),o=r.__importDefault(n(349));t.default=function(e){i.default(e),o.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(39)),a=r.__importDefault(n(348));function s(e){function t(t,n){return e.i18next.t((n=void 0===n?"":n)+t)}var n;return{showVideoTooltip:function(r){var s=[{$elem:i.default(""),onClick:function(e,t){return t.remove(),!0}},{$elem:i.default("100%"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}},{$elem:i.default("50%"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("30%"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default(""+t("重置")+""),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}},{$elem:i.default(""+t("menus.justify.靠左")+""),onClick:function(e,t){return a.default(t,"left"),!0}},{$elem:i.default(""+t("menus.justify.居中")+""),onClick:function(e,t){return a.default(t,"center"),!0}},{$elem:i.default(""+t("menus.justify.靠右")+""),onClick:function(e,t){return a.default(t,"right"),!0}}];(n=new o.default(e,r,s)).create()},hideVideoTooltip:function(){n&&(n.remove(),n=null)}}}t.createShowHideFn=s,t.default=function(e){var t=(n=s(e)).showVideoTooltip,n=n.hideVideoTooltip;e.txt.eventHooks.videoClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(28));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));t.default=function(e,t){(e=function(e,t){for(var n,r=e.elems[0];null!=r;){if((0,o.default)(t).call(t,null==r?void 0:r.nodeName))return r;if("BODY"===(null==(n=null==r?void 0:r.parentNode)?void 0:n.nodeName))return null;r=r.parentNode}return r}(e,["P"]))&&a.default(e).css("text-align",t)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(6);t.default=function(e){var t,n;r.UA.isFirefox&&(t=e.txt,n=e.selection,t.eventHooks.keydownEvents.push((function(t){var r=n.getSelectionContainerElem();r&&(r=(r=r.getNodeTop(e)).length&&r.prev().length?r.prev():null)&&r.attr("data-we-video-p")&&0===n.getCursorPos()&&8===t.keyCode&&r.remove()})))}},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(26)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),n(7)),u=i.__importDefault(n(3)),c=i.__importDefault(n(33)),l=(o=i.__importDefault(n(38)),i.__importDefault(n(351))),d=i.__importDefault(n(364));r=o.default,i.__extends(f,r),f.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},f.prototype.createPanel=function(){var e=this.imgPanelConfig;e=new c.default(this,e);this.setPanel(e),e.create()},f.prototype.tryChangeActive=function(){},n=f;function f(e){var t,n=this,i=u.default('
      '),o=d.default(e);return o.onlyUploadConf&&(i=o.onlyUploadConf.$elem,(0,a.default)(t=o.onlyUploadConf.events).call(t,(function(e){var t=e.type,n=e.fn||s.EMPTY_FN;i.on(t,(function(e){e.stopPropagation(),n(e)}))}))),(n=r.call(this,i,e)||this).imgPanelConfig=o,l.default(e),n}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(352)),o=r.__importDefault(n(353)),a=r.__importDefault(n(354)),s=r.__importDefault(n(362)),u=r.__importDefault(n(363));t.default=function(e){i.default(e),o.default(e),a.default(e),s.default(e),u.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(131),o=r.__importDefault(n(97));function a(e,t){var n,r,a;!function(e){for(var t=(null==(e=e.clipboardData)?void 0:e.types)||[],n=0;n\n
      \n
      \n ')).hide(),n.append(r),r);function p(){(0,o.default)(d).call(d,".w-e-img-drag-mask").hide()}return l=d,(i=f).on("click",(function(e){e.stopPropagation()})),i.on("mousedown",".w-e-img-drag-rb",(function(e){var n,r,u,d,f,p,h,m,g,v,y;function b(){y.off("mousemove",x),y.off("mouseup",w)}function x(e){e.stopPropagation(),e.preventDefault(),g=d+(e.clientX-n),v=f+(e.clientY-r),g/v!=m&&(v=g/m),g=(0,a.default)(g.toFixed(2)),v=(0,a.default)(v.toFixed(2)),(0,o.default)(i).call(i,".w-e-img-drag-show-size").text(g.toFixed(2).replace(".00","")+"px * "+v.toFixed(2).replace(".00","")+"px"),c(i,g,v,p,h)}function w(){t.attr("width",g+""),t.attr("height",v+"");var e=t.getBoundingClientRect();c(i,g,v,e.left-u.left,e.top-u.top),b()}e.preventDefault(),t&&(n=e.clientX,r=e.clientY,u=l.getBoundingClientRect(),e=t.getBoundingClientRect(),d=e.width,f=e.height,p=e.left-u.left,h=e.top-u.top,m=d/f,g=d,v=f,(y=s.default(document)).on("mousemove",x),y.on("mouseup",w),y.on("mouseleave",b))})),s.default(document).on("click",p),e.beforeDestroy((function(){s.default(document).off("click",p)})),{showDrag:function(e){if(u.UA.isIE())return!1;var n,r,i,s;e&&(r=f,e=t=e,n=(n=d).getBoundingClientRect(),i=(e=e.getBoundingClientRect()).width.toFixed(2),s=e.height.toFixed(2),(0,o.default)(r).call(r,".w-e-img-drag-show-size").text(i+"px * "+s+"px"),c(r,(0,a.default)(i),(0,a.default)(s),e.left-n.left,e.top-n.top),r.show())},hideDrag:p}}t.createShowHideFn=l,t.default=function(e){var t=(n=l(e)).showDrag,n=n.hideDrag;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){e.exports=n(356)},function(e,t,n){n=n(357),e.exports=n},function(e,t,n){n(358),n=n(9),e.exports=n.parseFloat},function(e,t,n){var r=n(5);n=n(359);r({global:!0,forced:parseFloat!=n},{parseFloat:n})},function(e,t,n){var r=n(8),i=n(90).trim,o=(n=n(68),r.parseFloat);r=1/o(n+"-0")!=-1/0;e.exports=r?function(e){e=i(String(e));var t=o(e);return 0===t&&"-"==e.charAt(0)?-0:t}:o},function(e,t,n){var r=n(20),i=(n=n(361),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-text-container {\n overflow: hidden;\n}\n.w-e-img-drag-mask {\n position: absolute;\n z-index: 1;\n border: 1px dashed #ccc;\n box-sizing: border-box;\n}\n.w-e-img-drag-mask .w-e-img-drag-rb {\n position: absolute;\n right: -5px;\n bottom: -5px;\n width: 16px;\n height: 16px;\n border-radius: 50%;\n background: #ccc;\n cursor: se-resize;\n}\n.w-e-img-drag-mask .w-e-img-drag-show-size {\n min-width: 110px;\n height: 22px;\n line-height: 22px;\n font-size: 14px;\n color: #999;\n position: absolute;\n left: 0;\n top: 0;\n background-color: #999;\n color: #fff;\n border-radius: 2px;\n padding: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(39));function a(e){function t(t,n){return e.i18next.t((n=void 0===n?"":n)+t)}var n;return{showImgTooltip:function(r){var a=[{$elem:i.default(""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}},{$elem:i.default("30%"),onClick:function(e,t){return t.attr("width","30%"),t.removeAttr("height"),!0}},{$elem:i.default("50%"),onClick:function(e,t){return t.attr("width","50%"),t.removeAttr("height"),!0}},{$elem:i.default("100%"),onClick:function(e,t){return t.attr("width","100%"),t.removeAttr("height"),!0}}];a.push({$elem:i.default(""+t("重置")+""),onClick:function(e,t){return t.removeAttr("width"),t.removeAttr("height"),!0}}),r.attr("data-href")&&a.push({$elem:i.default(""+t("查看链接")+""),onClick:function(e,t){return t=t.attr("data-href"),t&&(t=decodeURIComponent(t),window.open(t,"_target")),!0}}),(n=new o.default(e,r,a)).create()},hideImgTooltip:function(){n&&(n.remove(),n=null)}}}t.createShowHideFn=a,t.default=function(e){var t=(n=a(e)).showImgTooltip,n=n.hideImgTooltip;e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n),e.txt.eventHooks.imgDragBarMouseDownEvents.push(n),e.txt.eventHooks.changeEvents.push(n)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(e){var t=n.getSelectionContainerElem(),r=n.getRange();if(r&&t&&8===e.keyCode&&n.isSelectionEmpty()){var i=r.startContainer,o=(r=r.startOffset,null);if(0===r)for(;i!==t.elems[0]&&t.elems[0].contains(i)&&i.parentNode&&!o;){if(i.previousSibling){o=i.previousSibling;break}i=i.parentNode}else 3!==i.nodeType&&(o=i.childNodes[r-1]);if(o){for(var a=o;a.childNodes.length;)a=a.childNodes[a.childNodes.length-1];a instanceof HTMLElement&&"IMG"===a.tagName&&(a.remove(),e.preventDefault())}}}))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(26)),a=r(n(17)),s=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),r.__importDefault(n(3))),u=n(6),c=r.__importDefault(n(97));t.default=function(e){function t(t,n){return e.i18next.t((n=void 0===n?"menus.panelMenus.image.":n)+t)}var n=e.config,r=new c.default(e),i=u.getRandom("up-trigger-id"),l=u.getRandom("up-file-id"),d=u.getRandom("input-link-url"),f=u.getRandom("input-link-url-alt"),p=u.getRandom("input-link-url-href"),h=u.getRandom("btn-link");function m(e,t,n){return'
      \n
      \n \n
      \n
      \n \n
      \n
      '}var g=1===n.uploadImgMaxLength?"":'multiple="multiple"',v=(0,o.default)(y=n.uploadImgAccept).call(y,(function(e){return"image/"+e})).join(","),y=[{selector:"#"+i,type:"click",fn:function(){var e=n.uploadImgFromMedia;return e&&"function"==typeof e?(e(),!0):!(e=s.default("#"+l).elems[0])||void e.click()}},{selector:"#"+l,type:"change",fn:function(){var e,t=s.default("#"+l).elems[0];return t&&(null!=(e=t.files)&&e.length&&r.uploadImg(e),t)&&(t.value=""),!0}}],b=[''];n.showLinkImgAlt&&b.push('\n '),n.showLinkImgHref&&b.push('\n '),b=[{title:t("上传图片"),tpl:m("w-e-up-img-container","w-e-icon-upload2",""),events:y},{title:t("网络图片"),tpl:"
      \n "+b.join("")+'\n
      \n \n
      \n
      ",events:[{selector:"#"+h,type:"click",fn:function(){var e,t,i=s.default("#"+d);i=(0,a.default)(i=i.val()).call(i);if(i&&(n.showLinkImgAlt&&(e=(0,a.default)(e=s.default("#"+f).val()).call(e)),n.showLinkImgHref&&(t=(0,a.default)(t=s.default("#"+p).val()).call(t)),function(e){if(!0===(e=n.linkImgCheck(e)))return 1;"string"==typeof e&&n.customAlert(e,"error")}(i)))return r.insertImg(i,e,t),!0},bindEnter:!0}]}],h={width:300,height:0,tabs:[],onlyUploadConf:{$elem:s.default(m("w-e-menu","w-e-icon-image","图片")),events:y}};return window.FileReader&&(n.uploadImgShowBase64||n.uploadImgServer||n.customUploadImg||n.uploadImgFromMedia)&&h.tabs.push(b[0]),n.showLinkImg&&(h.tabs.push(b[1]),h.onlyUploadConf=void 0),h}},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(4)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(o=i.__importDefault(n(24)),i.__importDefault(n(366)));r=o.default,i.__extends(c,r),c.prototype.command=function(e){var t,n=this.editor,r=n.selection.getSelectionContainerElem();r&&n.$textElem.equal(r)?0<(t=n.selection.getSelectionRangeTopNodes()).length&&(0,a.default)(t).call(t,(function(t){u.default(s.default(t),e,n)})):r&&0\n \n '),i={width:130,title:"设置缩进",type:"list",list:[{$elem:s.default('

      \n \n '+e.i18next.t("menus.dropListMenu.indent.增加缩进")+"\n

      "),value:"increase"},{$elem:s.default('

      \n \n '+e.i18next.t("menus.dropListMenu.indent.减少缩进")+"\n

      "),value:"decrease"}],clickHandler:function(e){t.command(e)}};return t=r.call(this,n,e,i)||this}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(45)),a=r(n(17)),s=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),r.__importDefault(n(367))),u=r.__importDefault(n(368)),c=/^(\d+)(\w+)$/,l=/^(\d+)%$/;function d(e){var t,n;e=e.config.indentation;if("string"==typeof e){if(c.test(e))return t=(n=(0,o.default)(n=(0,a.default)(e).call(e).match(c)).call(n,1,3))[0],n=n[1],{value:Number(t),unit:n};if(l.test(e))return{value:Number((0,a.default)(e).call(e).match(l)[1]),unit:"%"}}else if(void 0!==e.value&&e.unit)return e;return{value:2,unit:"em"}}t.default=function(e,t,n){e=e.getNodeTop(n),/^(P|H[0-9]*)$/.test(e.getNodeName())&&("increase"===t?s.default(e,d(n)):"decrease"===t&&u.default(e,d(n)))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(45));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];""===n.style.paddingLeft?e.css("padding-left",t.value+t.unit):(n=n.style.paddingLeft,n=(0,o.default)(n).call(n,0,n.length-t.unit.length),n=Number(n)+t.value,e.css("padding-left",""+n+t.unit))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(45));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.elems[0];""!==n.style.paddingLeft&&(n=n.style.paddingLeft,n=(0,o.default)(n).call(n,0,n.length-t.unit.length),0<(n=Number(n)-t.value)?e.css("padding-left",""+n+t.unit):e.css("padding-left",""))}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(3)),a=i.__importDefault(n(38)),s=i.__importDefault(n(33)),u=i.__importDefault(n(370));r=a.default,i.__extends(c,r),c.prototype.createPanel=function(){var e=u.default(this.editor);new s.default(this,e).create()},c.prototype.clickHandler=function(){this.createPanel()},c.prototype.tryChangeActive=function(){},n=c;function c(e){var t=o.default('

      \n \n
      ');return r.call(this,t,e)||this}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(26)),a=r(n(70)),s=r(n(17));(0,i.default)(t,"__esModule",{value:!0});var u=n(2).__importDefault(n(3));t.default=function(e){var t=e.config.emotions;return{width:300,height:230,tabs:(0,o.default)(t).call(t,(function(t){return{title:e.i18next.t("menus.panelMenus.emoticon."+t.title),tpl:"
      "+(r=[],(r="image"==(t=t).type?(r=(0,o.default)(n=t.content).call(n,(function(e){return"string"==typeof e?"":'\n ['+e.alt+']\n '})),(0,a.default)(r).call(r,(function(e){return""!==e}))):(0,o.default)(n=t.content).call(n,(function(e){return''+e+""}))).join("").replace(/ /g,"")+"
      "),events:[{selector:".eleImg",type:"click",fn:function(t){var n;t=u.default(t.target);return n="IMG"===t.getNodeName()?(0,s.default)(n=t.parent().html()).call(n):""+t.html()+"",e.cmd.do("insertHTML",n),!0}}]};var n,r}))}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createListHandle=t.ClassType=void 0;var r,i=n(2),o=i.__importDefault(n(3)),a=i.__importDefault(n(372)),s=i.__importDefault(n(374)),u=i.__importDefault(n(375)),c=i.__importDefault(n(376)),l=(i=i.__importDefault(n(377)),(n=r=t.ClassType||(t.ClassType={})).Wrap="WrapListHandle",n.Join="JoinListHandle",n.StartJoin="StartJoinListHandle",n.EndJoin="EndJoinListHandle",n.Other="OtherListHandle",{WrapListHandle:a.default,JoinListHandle:s.default,StartJoinListHandle:u.default,EndJoinListHandle:c.default,OtherListHandle:i.default});function d(e){this.handle=e,this.handle.exec()}t.createListHandle=function(e,t,n){if(e===r.Other&&void 0===n)throw new Error("other 类需要传入 range");return e!==r.Other?new l[e](t):new l[e](t,n)},d.prototype.getSelectionRangeElem=function(){return o.default(this.handle.selectionRangeElem.get())},t.default=d},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(4)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(o=n(58),n(47));r=o.ListHandle,i.__extends(c,r),c.prototype.exec=function(){var e,t=this.options,n=t.listType,r=t.listTarget,i=t.$selectionElem,o=t.$startElem,c=(t=t.$endElem,[]),l=null==i?void 0:i.getNodeName(),d=o.prior,f=t.prior;if((o.prior||t.prior)&&(null!=d&&d.prev().length||null!=f&&f.next().length)){for(var p=d;p.length;)c.push(p),p=null!=f&&f.equal(p)?s.default(void 0):p.next();o=d.prev();var h=f.next();if(l===n?e=u.createElementFragment(c,u.createDocumentFragment(),"p"):(e=u.createElement(r),(0,a.default)(c).call(c,(function(t){e.append(t.elems[0])}))),o.length&&h.length){for(var m=[];h.length;)m.push(h),h=h.next();var g,v=u.createElement(l);(0,a.default)(m).call(m,(function(e){v.append(e.elems[0])})),s.default(v).insertAfter(i),this.selectionRangeElem.set(e),(g=i.next()).length?u.insertBefore(i,e,g.elems[0]):i.parent().elems[0].append(e)}else o.length?(this.selectionRangeElem.set(e),(g=i.next()).length?u.insertBefore(i,e,g.elems[0]):i.parent().elems[0].append(e)):(this.selectionRangeElem.set(e),u.insertBefore(i,e,i.elems[0]))}else(0,a.default)(t=null==i?void 0:i.children()).call(t,(function(e){c.push(s.default(e))})),l===n?e=u.createElementFragment(c,u.createDocumentFragment(),"p"):(e=u.createElement(r),(0,a.default)(c).call(c,(function(t){e.appendChild(t.elems[0])}))),this.selectionRangeElem.set(e),u.insertBefore(i,e,i.elems[0]),i.remove()},n=c;function c(e){return r.call(this,e)||this}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4));function a(){this._element=null}(0,i.default)(t,"__esModule",{value:!0}),a.prototype.set=function(e){var t,n;e instanceof DocumentFragment&&(n=[],(0,o.default)(t=e.childNodes).call(t,(function(e){n.push(e)})),e=n),this._element=e},a.prototype.get=function(){return this._element},a.prototype.clear=function(){this._element=null},t.default=a},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(4)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(o=n(58),n(47));r=o.ListHandle,i.__extends(c,r),c.prototype.exec=function(){var e,t=this.options,n=t.editor,r=t.listType,i=t.listTarget,o=t.$startElem,c=(t=t.$endElem,n.selection.getSelectionRangeTopNodes());n=null==o?void 0:o.getNodeName();if(n===(null==t?void 0:t.getNodeName()))if(2\n \n '),i={width:100,title:"设置行高",type:"list",list:new c.default(e,e.config.lineHeights).getItemList(),clickHandler:function(n){e.selection.saveRange(),t.command(n)}};return t=r.call(this,n,e,i)||this}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function s(e,t){var n=this;this.itemList=[{$elem:a.default(""+e.i18next.t("默认")+""),value:""}],(0,o.default)(t).call(t,(function(e){n.itemList.push({$elem:a.default(""+e+""),value:e})}))}s.prototype.getItemList=function(){return this.itemList},t.default=s},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(3));n=i.__importDefault(n(23)),r=n.default,i.__extends(a,r),a.prototype.clickHandler=function(){var e=this.editor,t=(e.history.revoke(),e.$textElem.children());null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},n=a;function a(e){var t=o.default('
      \n \n
      ');return r.call(this,t,e)||this}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(3));n=i.__importDefault(n(23)),r=n.default,i.__extends(a,r),a.prototype.clickHandler=function(){var e=this.editor,t=(e.history.restore(),e.$textElem.children());null!=t&&t.length&&(t=t.last(),e.selection.createRangeByElem(t,!1,!0),e.selection.restoreSelection())},a.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},n=a;function a(e){var t=o.default('
      \n \n
      ');return r.call(this,t,e)||this}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(38)),a=i.__importDefault(n(3)),s=i.__importDefault(n(383)),u=i.__importDefault(n(33)),c=i.__importDefault(n(392));r=o.default,i.__extends(l,r),l.prototype.clickHandler=function(){this.createPanel()},l.prototype.createPanel=function(){var e=s.default(this.editor);new u.default(this,e).create()},l.prototype.tryChangeActive=function(){},n=l;function l(e){var t=a.default('
      ');t=r.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(384)),a=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),s=r.__importDefault(n(3)),u=(n(389),r.__importDefault(n(391)));function c(e){return 0\n
      \n '+t("创建")+'\n \n '+t(l+"行")+'\n \n '+(t(l+"列")+t(l+"的")+t(l+"表格"))+'\n
      \n
      \n \n
      \n ",events:[{selector:"#"+o,type:"click",fn:function(){var t=Number(s.default("#"+r).val()),o=Number(s.default("#"+i).val());return c(o)&&c(t)?(n.createAction(o,t),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}];return(o={width:330,height:0,tabs:[]}).tabs.push(l[0]),o}},function(e,t,n){e.exports=n(385)},function(e,t,n){n=n(386),e.exports=n},function(e,t,n){n(387),n=n(9),e.exports=n.Number.isInteger},function(e,t,n){n(5)({target:"Number",stat:!0},{isInteger:n(388)})},function(e,t,n){var r=n(13),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(20),i=(n=n(390),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-table {\n display: flex;\n}\n.w-e-table .w-e-table-input {\n width: 40px;\n text-align: center!important;\n margin: 0 5px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),o=r.__importDefault(n(3));function a(e){this.editor=e}a.prototype.createAction=function(e,t){var n=this.editor,r=o.default(n.selection.getSelectionContainerElem()),i=o.default(r.elems[0]).parentUntilEditor("UL",n);r=o.default(r.elems[0]).parentUntilEditor("OL",n);i||r||(i=this.createTableHtml(e,t),n.cmd.do("insertHTML",i))},a.prototype.createTableHtml=function(e,t){for(var n="",r="",o=0;o":"";n=n+""+r+""}return''+n+"
      "+i.EMPTY_P},t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(393)),i=n(400);t.default=function(e){r.default(e),i.bindEventKeyboardEvent(e),i.bindClickEvent(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(39)),a=r.__importDefault(n(394)),s=r.__importDefault(n(399)),u=n(7);function c(e){var t;return{showTableTooltip:function(n){function r(t,n){return e.i18next.t((n=void 0===n?"menus.panelMenus.table.":n)+t)}var c=new s.default(e),f=[{$elem:i.default(""+r("删除表格")+""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",u.EMPTY_P),!0}},{$elem:i.default(""+r("添加行")+""),onClick:function(e,t){var n,r;return!l(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(n=Number(c.getCurrentRowIndex(t.elems[0],n)),r=c.getTableHtml(t.elems[0]),r=d(t,r=c.getTableHtml(a.default.ProcessingRow(i.default(r),n).elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",r)),!0}},{$elem:i.default(""+r("删除行")+""),onClick:function(e,t){var n,r,o,s;return!l(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(n=Number(c.getCurrentRowIndex(t.elems[0],n)),r=c.getTableHtml(t.elems[0]),o=a.default.DeleteRow(i.default(r),n).elems[0].children[0].children.length,s="",e.selection.createRangeByElem(t),e.selection.restoreSelection(),s=d(t,s=0===o?u.EMPTY_P:c.getTableHtml(a.default.DeleteRow(i.default(r),n).elems[0])),e.cmd.do("insertHTML",s)),!0}},{$elem:i.default(""+r("添加列")+""),onClick:function(e,t){var n,r;return l(e)||(n=i.default(e.selection.getSelectionStartElem()),n=c.getCurrentColIndex(n.elems[0]),r=c.getTableHtml(t.elems[0]),r=d(t,r=c.getTableHtml(a.default.ProcessingCol(i.default(r),n).elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",r)),!0}},{$elem:i.default(""+r("删除列")+""),onClick:function(e,t){var n,r,o;return l(e)||(r=i.default(e.selection.getSelectionStartElem()),r=c.getCurrentColIndex(r.elems[0]),n=c.getTableHtml(t.elems[0]),r=(n=a.default.DeleteCol(i.default(n),r)).elems[0].children[0].children[0].children.length,o="",e.selection.createRangeByElem(t),e.selection.restoreSelection(),o=d(t,o=0===r?u.EMPTY_P:c.getTableHtml(n.elems[0])),e.cmd.do("insertHTML",o)),!0}},{$elem:i.default(""+r("设置表头")+""),onClick:function(e,t){var n,r;return!l(e)&&(n=i.default(e.selection.getSelectionStartElem()),n=c.getRowNode(n.elems[0]))&&(0!==(n=Number(c.getCurrentRowIndex(t.elems[0],n)))&&(n=0),r=c.getTableHtml(t.elems[0]),r=d(t,r=c.getTableHtml(a.default.setTheHeader(i.default(r),n,"th").elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",r)),!0}},{$elem:i.default(""+r("取消表头")+""),onClick:function(e,t){var n,r=i.default(e.selection.getSelectionStartElem());r=c.getRowNode(r.elems[0]);return r&&(0!==(r=Number(c.getCurrentRowIndex(t.elems[0],r)))&&(r=0),n=c.getTableHtml(t.elems[0]),n=d(t,n=c.getTableHtml(a.default.setTheHeader(i.default(n),r,"td").elems[0])),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",n)),!0}}];(t=new o.default(e,n,f)).create()},hideTableTooltip:function(){t&&(t.remove(),t=null)}}}function l(e){var t=e.selection.getSelectionStartElem();e=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==e?void 0:e.elems[0])}function d(e,t){return e=e.elems[0].nextSibling,e&&"
      "!==e.innerHTML||(t+=""+u.EMPTY_P),t}t.default=function(e){var t=(n=c(e)).showTableTooltip,n=n.hideTableTooltip;e.txt.eventHooks.tableClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(45)),a=r(n(91)),s=r(n(4)),u=r(n(138));(0,i.default)(t,"__esModule",{value:!0});var c=n(2).__importDefault(n(3));function l(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(var n=0;n'+s.default(e).html()+""},t.default=u},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.bindEventKeyboardEvent=t.bindClickEvent=void 0;var r=n(2).__importDefault(n(3));t.bindClickEvent=function(e){e.txt.eventHooks.tableClickEvents.push((function(t,n){var i;3<=n.detail&&(n=window.getSelection())&&(i=n.focusNode,n=n.anchorNode,n=r.default(null==n?void 0:n.parentElement),t.isContain(r.default(i))||(t="TD"===n.elems[0].tagName?n:n.parentUntilEditor("td",e))&&(null!=(i=e.selection.getRange())&&i.setEnd(t.elems[0],t.elems[0].childNodes.length),e.selection.restoreSelection()))}))},t.bindEventKeyboardEvent=function(e){var t=e.txt,n=e.selection;t.eventHooks.keydownEvents.push((function(t){e.selection.saveRange();var r,i=n.getSelectionContainerElem();i&&(r=(i=i.getNodeTop(e)).length&&i.prev().length?i.prev():null)&&"TABLE"===r.getNodeName()&&n.isSelectionEmpty()&&0===n.getCursorPos()&&8===t.keyCode&&(!!(r=i.next()).length&&function(e){if(e.length)return"P"===(e=e.elems[0]).nodeName&&"
      "===e.innerHTML}(i)&&(i.remove(),e.selection.setRangeToElem(r.elems[0])),t.preventDefault())}))}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(26)),a=(r=((0,i.default)(t,"__esModule",{value:!0}),t.formatCodeHtml=void 0,n(2)),i=r.__importDefault(n(38)),r.__importDefault(n(3))),s=n(6),u=r.__importDefault(n(402)),c=r.__importDefault(n(139)),l=r.__importDefault(n(33)),d=r.__importDefault(n(403));t.formatCodeHtml=function(e,t){var n,r;return t&&(t=function e(t){var n,r=t.match(//gm);if(!r||!r.length)return t;for(var i=(0,o.default)(n=s.deepClone(r)).call(n,(function(e){return(e=e.replace(/]+>/,"")).replace(/<\/span>/,"")})),a=0;a/g))&&(0,o.default)(r).call(r,(function(e){n=n.replace(e,e.replace(/<\/code>/g,"\n").replace(/
      /g,""))})),t=n,t=s.replaceSpecialSymbol(t)),t},f=i.default,r.__extends(p,f),p.prototype.insertLineCode=function(e){var t=this.editor;e=a.default(""+e+"");t.cmd.do("insertElem",e),t.selection.createRangeByElem(e,!1),t.selection.restoreSelection()},p.prototype.clickHandler=function(){var e=this.editor,t=e.selection.getSelectionText();this.isActive||(e.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(t))},p.prototype.createPanel=function(e,t){e=u.default(this.editor,e,t),new l.default(this,e).create()},p.prototype.tryChangeActive=function(){var e=this.editor;c.default(e)?this.active():this.unActive()};var f;n=p;function p(e){var t=a.default('
      ');t=f.call(this,t,e)||this;return d.default(e),t}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(26)),a=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),n(6)),s=r.__importDefault(n(3)),u=r.__importDefault(n(139)),c=n(7);t.default=function(e,t,n){var r,i=a.getRandom("input-iframe"),l=a.getRandom("select"),d=a.getRandom("btn-ok");function f(t,n){var r;u.default(e)&&u.default(e)&&(r=null==(r=e.selection.getSelectionStartElem())?void 0:r.getNodeTop(e))&&(e.selection.createRangeByElem(r),e.selection.restoreSelection()),(null==(r=e.selection.getSelectionStartElem())?void 0:r.elems[0].innerHTML)&&e.cmd.do("insertHTML",c.EMPTY_P),n=n.replace(//g,">"),e.highlight&&(n=e.highlight.highlightAuto(n).value),e.cmd.do("insertHTML",'
      '+n+"
      "),t=e.selection.getSelectionStartElem(),n=null==t?void 0:t.getNodeTop(e),0===(null==n?void 0:n.getNextSibling().elems.length)&&s.default(c.EMPTY_P).insertAfter(n)}function p(t){return e.i18next.t(t)}return{width:500,height:0,tabs:[{title:p("menus.panelMenus.code.插入代码"),tpl:'
      \n \n \n
      \n \n
      \n
      ",events:[{selector:"#"+d,type:"click",fn:function(){var t=document.getElementById(i),n=s.default("#"+l).val();t=t.value;if(t)return!u.default(e)&&(f(n,t),!0)}}]}]}}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(404)),o=r.__importDefault(n(405));t.default=function(e){i.default(e),o.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.createShowHideFn=void 0;var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(39));function a(e){var t;return{showCodeTooltip:function(n){var r,a=[{$elem:i.default(""+(r="删除代码",e.i18next.t((a=void 0===a?"menus.panelMenus.code.":a)+r)+"")),onClick:function(e,t){return t.remove(),!0}}];(t=new o.default(e,n,a)).create()},hideCodeTooltip:function(){t&&(t.remove(),t=null)}}}t.createShowHideFn=a,t.default=function(e){var t=(n=a(e)).showCodeTooltip,n=n.hideCodeTooltip;e.txt.eventHooks.codeClickEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=n(7),o=r.__importDefault(n(3));t.default=function(e){var t=e.$textElem,n=e.selection,r=e.txt.eventHooks.keydownEvents;r.push((function(e){var r;40===e.keyCode&&(e=n.getSelectionContainerElem(),r=null==(r=t.children())?void 0:r.last(),"XMP"===(null==e?void 0:e.elems[0].tagName))&&"PRE"===(null==r?void 0:r.elems[0].tagName)&&(e=o.default(i.EMPTY_P),t.append(e))})),r.push((function(r){e.selection.saveRange();var a,s=n.getSelectionContainerElem();s&&(a=null==(s=s.getNodeTop(e))?void 0:s.prev(),s=null==s?void 0:s.getNextSibling(),a.length)&&"PRE"===(null==a?void 0:a.getNodeName())&&0===s.length&&0===n.getCursorPos()&&8===r.keyCode&&(a=o.default(i.EMPTY_P),t.append(a))}))}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(23)),a=i.__importDefault(n(3)),s=i.__importDefault(n(407)),u=n(6),c=n(7);r=o.default,i.__extends(l,r),l.prototype.clickHandler=function(){var e,t,n=this.editor,r=n.selection.getRange();n=n.selection.getSelectionContainerElem();null!=n&&n.length&&(n=(e=a.default(n.elems[0])).parentUntil("TABLE",n.elems[0]),t=e.children(),"CODE"===e.getNodeName()||n&&"TABLE"===a.default(n.elems[0]).getNodeName()||(!t||0===t.length||"IMG"!==a.default(t.elems[0]).getNodeName()||null!=r&&r.collapsed)&&this.createSplitLine())},l.prototype.createSplitLine=function(){var e="
      "+c.EMPTY_P;u.UA.isFirefox&&(e="

      "),this.editor.cmd.do("insertHTML",e)},l.prototype.tryChangeActive=function(){},n=l;function l(e){var t=a.default('
      ');t=r.call(this,t,e)||this;return s.default(e),t}t.default=n},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(408));t.default=function(e){r.default(e)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(3)),o=r.__importDefault(n(39));function a(e){var t;return{showSplitLineTooltip:function(n){var r=[{$elem:i.default(""+e.i18next.t("menus.panelMenus.删除")+""),onClick:function(e,t){return e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0}}];(t=new o.default(e,n,r)).create()},hideSplitLineTooltip:function(){t&&(t.remove(),t=null)}}}t.default=function(e){var t=(n=a(e)).showSplitLineTooltip,n=n.hideSplitLineTooltip;e.txt.eventHooks.splitLineEvents.push(t),e.txt.eventHooks.clickEvents.push(n),e.txt.eventHooks.keyupEvents.push(n),e.txt.eventHooks.toolbarClickEvents.push(n),e.txt.eventHooks.menuClickEvents.push(n),e.txt.eventHooks.textScrollEvents.push(n)}},function(e,t,n){"use strict";var r,i=n(0),o=i(n(1)),a=i(n(4)),s=(i=((0,o.default)(t,"__esModule",{value:!0}),n(2)),i.__importDefault(n(3))),u=(o=i.__importDefault(n(23)),n(98)),c=i.__importDefault(n(415)),l=i.__importDefault(n(140));r=o.default,i.__extends(d,r),d.prototype.clickHandler=function(){var e=this.editor;u.isAllTodo(e)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},d.prototype.tryChangeActive=function(){u.isAllTodo(this.editor)?this.active():this.unActive()},d.prototype.setTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,a.default)(t).call(t,(function(t){var n,r;"P"===(null==t?void 0:t.getNodeName())&&(r=null==(r=(n=l.default(t).getTodo()).children())?void 0:r.getNode(),n.insertAfter(t),e.selection.moveCursor(r),t.remove())})),this.tryChangeActive()},d.prototype.cancelTodo=function(){var e=this.editor,t=e.selection.getSelectionRangeTopNodes();(0,a.default)(t).call(t,(function(t){var n=null==(n=null==(n=t.childNodes())?void 0:n.childNodes())?void 0:n.clone(!0),r=s.default("

      ");r.append(n),r.insertAfter(t),null!=(n=r.childNodes())&&n.get(0).remove(),e.selection.moveCursor(r.getNode()),t.remove()}))},n=d;function d(e){var t=s.default('
      \n \n
      ');t=r.call(this,t,e)||this;return c.default(e),t}t.default=n},function(e,t,n){e.exports=n(411)},function(e,t,n){n=n(412),e.exports=n},function(e,t,n){var r=n(413),i=Array.prototype;e.exports=function(e){var t=e.every;return e===i||e instanceof Array&&t===i.every?r:t}},function(e,t,n){n(414),n=n(15),e.exports=n("Array").every},function(e,t,n){"use strict";var r=n(5),i=n(32).every,o=n(67);n=n(22),o=o("every"),n=n("every");r({target:"Array",proto:!0,forced:!o||!n},{every:function(e){return i(this,e,1")),v.insertAfter(n),y&&""!==(null==y?void 0:y.textContent)?t.moveCursor(g):("BR"!==(null==y?void 0:y.nodeName)&&a.default("
      ").insertAfter(m),t.moveCursor(g,1))))})),e.txt.eventHooks.deleteUpEvents.push((function(){var t=e.selection.getSelectionRangeTopNodes()[0];t&&c.isTodo(t)&&""===t.text()&&(a.default(l.EMPTY_P).insertAfter(t),t.remove())})),e.txt.eventHooks.deleteDownEvents.push((function(t){var n,r,i,u,c,d,f,p;s.isAllTodo(e)&&(r=null==(r=(n=(p=e.selection).getSelectionRangeTopNodes()[0]).childNodes())?void 0:r.getNode(),i=a.default("

      "),u=i.getNode(),d=null==(d=window.getSelection())?void 0:d.anchorNode,c=p.getCursorPos(),d=d.previousSibling,""===n.text()?(t.preventDefault(),(f=a.default(l.EMPTY_P)).insertAfter(n),n.remove(),p.moveCursor(f.getNode(),0)):"SPAN"===(null==d?void 0:d.nodeName)&&"INPUT"===d.childNodes[0].nodeName&&0===c&&(t.preventDefault(),null!=r&&(0,o.default)(p=r.childNodes).call(p,(function(e,t){0!==t&&u.appendChild(e.cloneNode(!0))})),i.insertAfter(n),n.remove()))})),e.txt.eventHooks.clickEvents.push((function(e){e&&e.target instanceof HTMLInputElement&&"checkbox"===e.target.type&&(e.target.checked?e.target.setAttribute("checked","true"):e.target.removeAttribute("checked"))}))}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.selectorValidator=void 0;var r=n(2),i=r.__importDefault(n(3)),o=n(6),a=n(7),s=r.__importDefault(n(130)),u="1px solid #c9d8db",c="#FFF",l="1px solid #EEE";t.default=function(e){var t=e.toolbarSelector,n=(t=i.default(t),e.textSelector),r=e.config.height,d=e.i18next,f=i.default("
      "),p=i.default("
      "),h=null,m=(t=(null==n?(m=t.children(),t.append(f).append(p),f.css("background-color",c).css("border",u).css("border-bottom",l),p.css("border",u).css("border-top","none").css("height",r+"px")):(t.append(f),h=i.default(n).children(),i.default(n).append(p),m=p.children()),(r=i.default("
      ")).attr("contenteditable","true").css("width","100%").css("height","100%"),e.config.placeholder),d=((n=t!==s.default.placeholder?i.default("
      "+t+"
      "):i.default("
      "+d.t(t)+"
      ")).addClass("placeholder"),m&&m.length?(r.append(m),n.hide()):r.append(i.default(a.EMPTY_P)),h&&h.length&&(r.append(h),n.hide()),p.append(r),p.append(n),f.addClass("w-e-toolbar").css("z-index",e.zIndex.get("toolbar")),p.addClass("w-e-text-container"),p.css("z-index",e.zIndex.get()),r.addClass("w-e-text"),o.getRandom("toolbar-elem")),t=(f.attr("id",d),o.getRandom("text-elem")),r.attr("id",t),p.getBoundingClientRect().height);m!==r.getBoundingClientRect().height&&r.css("min-height",m+"px"),e.$toolbarElem=f,e.$textContainerElem=p,e.$textElem=r,e.toolbarElemId=d,e.textElemId=t},t.selectorValidator=function(e){var t="data-we-id",n=/^wangEditor-\d+$/,r=e.textSelector,o=e.toolbarSelector,a={bar:i.default("
      "),text:i.default("
      ")};if(null==o)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(a.bar=i.default(o),!a.bar.elems.length)throw new Error("无效的节点选择器:"+o);if(n.test(a.bar.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(r){if(a.text=i.default(r),!a.text.elems.length)throw new Error("无效的节点选择器:"+r);if(n.test(a.text.attr(t)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}a.bar.attr(t,e.id),a.text.attr(t,e.id),e.beforeDestroy((function(){a.bar.removeAttr(t),a.text.removeAttr(t)}))}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(3)),i=n(7);t.default=function e(t,n){var o=t.$textElem,a=o.children();if(a&&a.length){if(a=a.last(),n){n=a.html().toLowerCase();var s=a.getNodeName();if("
      "!==n&&"
      "!==n||"P"!==s)return o.append(r.default(i.EMPTY_P)),void e(t)}t.selection.createRangeByElem(a,!1,!0),t.config.focus?t.selection.restoreSelection():t.selection.clearWindowSelectionRange()}else o.append(r.default(i.EMPTY_P)),e(t)}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));function s(e){(0,e.config.onfocus)(e.txt.html()||"")}t.default=function(e){(t=e).txt.eventHooks.changeEvents.push((function(){var e,n=t.config.onchange;n&&(e=t.txt.html()||"",t.isFocus=!0,n(e)),t.txt.togglePlaceholder()}));var t,n,r=e;function i(e){var t=e.target,n=(t=a.default(t),r.$textElem),i=r.$toolbarElem;n=n.isContain(t),t=i.isContain(t),i=i.elems[0]==e.target;n?(r.isFocus||s(r),r.isFocus=!0):t&&!i||!r.isFocus||(n=(e=r).config.onblur,t=e.txt.html()||"",(0,o.default)(e=e.txt.eventHooks.onBlurEvents).call(e,(function(e){return e()})),n(t),r.isFocus=!1)}r.isFocus=!1,document.activeElement===r.$textElem.elems[0]&&r.config.focus&&(s(r),r.isFocus=!0),a.default(document).on("click",i),r.beforeDestroy((function(){a.default(document).off("click",i)})),(n=e).$textElem.on("compositionstart",(function(){n.isComposing=!0,n.txt.togglePlaceholder()})).on("compositionend",(function(){n.isComposing=!1,n.txt.togglePlaceholder()}))}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),t.default=function(e){var t=(n=e.config).lang,n=n.languages;if(null!=e.i18next)try{e.i18next.init({ns:"wangEditor",lng:t,defaultNS:"wangEditor",resources:n})}catch(e){throw new Error("i18next:"+e)}else e.i18next={t:function(e){return e=e.split("."),e[e.length-1]}}}},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.setUnFullScreen=t.setFullScreen=void 0;var a=n(2).__importDefault(n(3)),s=(n(421),"w-e-icon-fullscreen"),u="w-e-icon-fullscreen_exit",c="w-e-full-screen-editor";t.setFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,r=e.$toolbarElem,i=(0,o.default)(r).call(r,"i."+s);e=e.config,i.removeClass(s),i.addClass(u),t.addClass(c),t.css("z-index",e.zIndexFullScreen),i=r.getBoundingClientRect();n.css("height","calc(100% - "+i.height+"px)")},t.setUnFullScreen=function(e){var t=a.default(e.toolbarSelector),n=e.$textContainerElem,r=e.$toolbarElem;r=(0,o.default)(r).call(r,"i."+u),e=e.config;r.removeClass(u),r.addClass(s),t.removeClass(c),t.css("z-index","auto"),n.css("height",e.height+"px")},t.default=function(e){var n,r;e.textSelector||e.config.showFullScreen&&(n=e.$toolbarElem,(r=a.default('
      \n \n
      ')).on("click",(function(n){(0,o.default)(n=a.default(n.currentTarget)).call(n,"i").hasClass(s)?(r.attr("data-title","取消全屏"),t.setFullScreen(e)):(r.attr("data-title","全屏"),t.setUnFullScreen(e))})),n.append(r))}},function(e,t,n){var r=n(20),i=(n=n(422),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-full-screen-editor {\n position: fixed;\n width: 100%!important;\n height: 100%!important;\n left: 0;\n top: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(29));(0,i.default)(t,"__esModule",{value:!0}),t.default=function(e,t){e=e.isEnable?e.$textElem:(0,o.default)(e=e.$textContainerElem).call(e,".w-e-content-mantle"),t=(0,o.default)(e).call(e,"[id='"+t+"']").getOffsetData().top,e.scrollTop(t)}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2).__importDefault(n(129)),i={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1};function o(){this.tier=i,this.baseZIndex=r.default.zIndex}o.prototype.get=function(e){return e&&this.tier[e]?this.baseZIndex+this.tier[e]:this.baseZIndex},o.prototype.init=function(e){this.baseZIndex==r.default.zIndex&&(this.baseZIndex=e.config.zIndex)},t.default=o},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(70)),a=r(n(4)),s=(r=((0,i.default)(t,"__esModule",{value:!0}),n(2)),i=r.__importDefault(n(426)),n(6)),u=n(7);c=i.default,r.__extends(l,c),l.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},l.prototype.emit=function(){var e;(0,a.default)(e=this.editor.txt.eventHooks.changeEvents).call(e,(function(e){return e()}))},l.prototype.observe=function(){var e=this,t=(c.prototype.observe.call(this,this.editor.$textElem.elems[0]),this.editor.config.onchangeTimeout);this.asyncSave=s.debounce((function(){e.save()}),t),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",(function(){e.asyncSave()}))};var c;n=l;function l(e){var t=c.call(this,(function(n,r){var i,a;if(i=n,a=r.target,n=(0,o.default)(i).call(i,(function(e){var t=e.type,n=e.target;e=e.attributeName;return"attributes"!=t||"attributes"==t&&("contenteditable"==e||n!=a)})),(r=t.data).push.apply(r,n),e.isCompatibleMode)t.asyncSave();else if(!e.isComposing)return t.asyncSave()}))||this;return t.editor=e,t.data=[],t.asyncSave=u.EMPTY_FN,t}t.default=n},function(e,t,n){"use strict";function r(e,t){var n=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(t){e(t,n)},this.observer=new MutationObserver(this.callback),t&&(this.options=t)}n=n(0)(n(1)),(0,n.default)(t,"__esModule",{value:!0}),(0,n.default)(r.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),r.prototype.observe=function(e){this.node instanceof Node||(this.node=e,this.connect())},r.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},r.prototype.disconnect=function(){var e=this.observer.takeRecords();e.length&&this.callback(e),this.observer.disconnect()},t.default=r},function(e,t,n){"use strict";var r=n(0)(n(1)),i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),o=i.__importDefault(n(428)),a=i.__importDefault(n(435)),s=i.__importDefault(n(436));function u(e){this.editor=e,this.content=new o.default(e),this.scroll=new a.default(e),this.range=new s.default(e)}(0,r.default)(u.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),u.prototype.observe=function(){this.content.observe(),this.scroll.observe(),this.editor.isCompatibleMode||this.range.observe()},u.prototype.save=function(e){e.length&&(this.content.save(e),this.scroll.save(),this.editor.isCompatibleMode||this.range.save())},u.prototype.revoke=function(){this.editor.change.disconnect();var e=this.content.revoke();e&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},u.prototype.restore=function(){this.editor.change.disconnect();var e=this.content.restore();e&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),e&&this.editor.change.emit()},t.default=u},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r=n(2),i=r.__importDefault(n(429)),o=r.__importDefault(n(433));function a(e){this.editor=e}a.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new o.default(this.editor):this.cache=new i.default(this.editor),this.cache.observe()},a.prototype.save=function(e){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(e)},a.prototype.revoke=function(){var e;return null==(e=this.cache)?void 0:e.revoke()},a.prototype.restore=function(){var e;return null==(e=this.cache)?void 0:e.restore()},t.default=a},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2),o=i.__importDefault(n(99)),a=i.__importDefault(n(431)),s=n(432);r=o.default,i.__extends(u,r),u.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},u.prototype.compile=function(e){return this.save(a.default(e)),this},u.prototype.revoke=function(){return r.prototype.revoke.call(this,(function(e){s.revoke(e)}))},u.prototype.restore=function(){return r.prototype.restore.call(this,(function(e){s.restore(e)}))},n=u;function u(e){var t=r.call(this,e.config.historyMaxSize)||this;return t.editor=e,t}t.default=n},function(e,t,n){"use strict";function r(e){void 0===e&&(e=0),this.data=[],this.max=0,this.reset=!1,(e=Math.abs(e))&&(this.max=e)}n=n(0)(n(1)),(0,n.default)(t,"__esModule",{value:!0}),t.CeilStack=void 0,r.prototype.resetMax=function(e){e=Math.abs(e),this.reset||isNaN(e)||(this.max=e,this.reset=!0)},(0,n.default)(r.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),r.prototype.instack=function(e){return this.data.unshift(e),this.max&&this.size>this.max&&(this.data.length=this.max),this},r.prototype.outstack=function(){return this.data.shift()},r.prototype.clear=function(){return this.data.length=0,this},n=r,t.CeilStack=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(4)),a=r(n(27)),s=((0,i.default)(t,"__esModule",{value:!0}),t.compliePosition=t.complieNodes=t.compileValue=t.compileType=void 0,n(6));function u(e){switch(e){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function c(e){switch(e.type){case"attributes":return e.target.getAttribute(e.attributeName)||"";case"characterData":return e.target.textContent;default:return""}}function l(e){var t={};return e.addedNodes.length&&(t.add=s.toArray(e.addedNodes)),e.removedNodes.length&&(t.remove=s.toArray(e.removedNodes)),t}function d(e){return e=e.previousSibling?{type:"before",target:e.previousSibling}:e.nextSibling?{type:"after",target:e.nextSibling}:{type:"parent",target:e.target},e}t.compileType=u,t.compileValue=c,t.complieNodes=l,t.compliePosition=d;var f=["UL","OL","H1","H2","H3","H4","H5","H6"];function p(e,t){for(var n=0,r=t.length-1;0this.max;)this.data.shift();return this.point=this.size-1,this},a.prototype.current=function(){return this.data[this.point]},a.prototype.prev=function(){if(this.isRe||(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},a.prototype.next=function(){if(this.isRe||(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},r=a;function a(){this.data=[],this.max=0,this.point=0,this.isRe=!1}t.TailChain=r},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0});var r,i=n(2);n=i.__importDefault(n(99)),r=n.default,i.__extends(o,r),o.prototype.observe=function(){var e=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",(function(){e.last=e.target.scrollTop})),this.resetMaxSize(this.editor.config.historyMaxSize)},o.prototype.save=function(){return r.prototype.save.call(this,[this.last,this.target.scrollTop]),this},o.prototype.revoke=function(){var e=this;return r.prototype.revoke.call(this,(function(t){e.target.scrollTop=t[0]}))},o.prototype.restore=function(){var e=this;return r.prototype.restore.call(this,(function(t){e.target.scrollTop=t[1]}))},n=o;function o(e){var t=r.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.last=0,t.target=e.$textElem.elems[0],t}t.default=n},function(e,t,n){"use strict";var r=n(0)(n(1)),i=((0,r.default)(t,"__esModule",{value:!0}),n(2)),o=i.__importDefault(n(99)),a=i.__importDefault(n(3)),s=n(6);function u(e){return{start:[e.startContainer,e.startOffset],end:[e.endContainer,e.endOffset],root:e.commonAncestorContainer,collapsed:e.collapsed}}c=o.default,i.__extends(l,c),(0,r.default)(l.prototype,"rangeHandle",{get:function(){var e=document.getSelection();return e&&e.rangeCount?e.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),l.prototype.observe=function(){var e=this;function t(){var t=e.rangeHandle;e.root!==t.commonAncestorContainer&&!e.root.contains(t.commonAncestorContainer)||e.editor.isComposing||e.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),a.default(document).on("selectionchange",t),this.editor.beforeDestroy((function(){a.default(document).off("selectionchange",t)})),e.editor.$textElem.on("keydown",(function(t){"Backspace"!=t.key&&"Delete"!=t.key||e.updateLastRange()}))},l.prototype.save=function(){var e=u(this.rangeHandle);return c.prototype.save.call(this,[this.lastRange,e]),this.lastRange=e,this},l.prototype.set=function(e){try{var t;if(e)return(t=this.rangeHandle).setStart.apply(t,e.start),t.setEnd.apply(t,e.end),this.editor.menus.changeActive(),!0}catch(e){}return!1},l.prototype.revoke=function(){var e=this;return c.prototype.revoke.call(this,(function(t){e.set(t[0])}))},l.prototype.restore=function(){var e=this;return c.prototype.restore.call(this,(function(t){e.set(t[1])}))};var c;n=l;function l(e){var t=c.call(this,e.config.historyMaxSize)||this;return t.editor=e,t.lastRange=u(document.createRange()),t.root=e.$textElem.elems[0],t.updateLastRange=s.debounce((function(){t.lastRange=u(t.rangeHandle)}),e.config.onchangeTimeout),t}t.default=n},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(29));(0,i.default)(t,"__esModule",{value:!0});var a=n(2).__importDefault(n(3));n(438),t.default=function(e){var t,n,r=!1;return e.txt.eventHooks.changeEvents.push((function(){r&&(0,o.default)(t).call(t,".w-e-content-preview").html(e.$textElem.html())})),{disable:function(){var i,o;r||(e.$textElem.hide(),o=e.zIndex.get("textContainer"),i=e.txt.html(),t=a.default('
      \n
      '+i+"
      \n
      "),e.$textContainerElem.append(t),o=e.zIndex.get("menu"),n=a.default('
      '),e.$toolbarElem.append(n),r=!0,e.isEnable=!1)},enable:function(){r&&(t.remove(),n.remove(),e.$textElem.show(),r=!1,e.isEnable=!0)}}}},function(e,t,n){var r=n(20),i=(n=n(439),{insert:"head",singleton:!1});r(n="string"==typeof(n=n.__esModule?n.default:n)?[[e.i,n,""]]:n,i),e.exports=n.locals||{}},function(e,t,n){(t=n(21)(!1)).push([e.i,".w-e-content-mantle {\n width: 100%;\n height: 100%;\n overflow-y: auto;\n}\n.w-e-content-mantle .w-e-content-preview {\n width: 100%;\n min-height: 100%;\n padding: 0 10px;\n line-height: 1.5;\n}\n.w-e-content-mantle .w-e-content-preview img {\n cursor: default;\n}\n.w-e-content-mantle .w-e-content-preview img:hover {\n box-shadow: none;\n}\n.w-e-menue-mantle {\n position: absolute;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";function r(e){function t(){document.activeElement===e.$textElem.elems[0]&&n.emit()}var n=this;this.editor=e,window.document.addEventListener("selectionchange",t),this.editor.beforeDestroy((function(){window.document.removeEventListener("selectionchange",t)}))}(0,n(0)(n(1)).default)(t,"__esModule",{value:!0}),r.prototype.emit=function(){var e,t=this.editor.config.onSelectionChange;t&&((e=this.editor.selection).saveRange(),e.isSelectionEmpty()||t({text:e.getSelectionText(),html:null==(t=e.getSelectionContainerElem())?void 0:t.elems[0].innerHTML,selection:e}))},t.default=r},function(e,t,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(128)),a=r(n(94)),s=r(n(4));(0,i.default)(t,"__esModule",{value:!0}),t.registerPlugin=void 0;var u=n(2).__importDefault(n(87)),c=n(6);t.registerPlugin=function(e,t,n){if(!e)throw new TypeError("name is not define");if(!t)throw new TypeError("options is not define");if(!t.intention)throw new TypeError("options.intention is not define");if(t.intention&&"function"!=typeof t.intention)throw new TypeError("options.intention is not function");n[e],n[e]=t},t.default=function(e){var t=(0,o.default)({},c.deepClone(u.default.globalPluginsFunctionList),c.deepClone(e.pluginsFunctionList));t=(0,a.default)(t);(0,s.default)(t).call(t,(function(t){t[0];t=t[1];var n=t.intention;t=t.config;n(e,t)}))}},function(e,t,n){"use strict";(0,n(0)(n(1)).default)(t,"__esModule",{value:!0})}],n={},e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=141).default;function e(r){var i;return(n[r]||(i=n[r]={i:r,l:!1,exports:{}},t[r].call(i.exports,i,i.exports,e),i.l=!0,i)).exports}var t,n},e.exports=r()},7149:function(e,t,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("c430"),a=n("d256"),s=n("4738").CONSTRUCTOR,u=n("cdf9"),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return u(l&&this===c?a:this,e)}})},7156:function(e,t,n){"use strict";var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){return o&&r(t=t.constructor)&&t!==n&&i(t=t.prototype)&&t!==n.prototype&&o(e,t),e}},"722f":function(e,t,n){"use strict";t.__esModule=!0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=(n=n("e452"),(n=n)&&n.__esModule?n:{default:n});n={Dialog:function(e,t,n){var a=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"==typeof t?this.focusAfterClosed=document.getElementById(t):"object"===(void 0===t?"undefined":i(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"==typeof n?this.focusFirst=document.getElementById(n):"object"===(void 0===n?"undefined":i(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():o.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,r=function(e){a.trapFocus(e)},this.addListeners()}};n.Dialog.prototype.addListeners=function(){document.addEventListener("focus",r,!0)},n.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",r,!0)},n.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},n.Dialog.prototype.trapFocus=function(e){o.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(o.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&o.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=n.Dialog},7234:function(e,t,n){"use strict";e.exports=function(e){return null==e}},7282:function(e,t,n){"use strict";var r=n("e330"),i=n("59ed");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},"72aa":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},16:function(e,t){e.exports=n("4010")},3:function(e,t){e.exports=n("8122")},63:function(e,t,n){"use strict";function r(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"el-tabs__active-bar",class:"is-"+this.rootTabs.tabPosition,style:this.barStyle})}n.r(t),r._withStripped=!0;var i=n(3),o={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){function e(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))}var t=this,n={},r=0,o=0,a=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",s="width"==a?"x":"y";this.tabs.every((function(n,s){var u,c=Object(i.arrayFind)(t.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===n.paneName}));return!!c&&(n.active?(o=c["client"+e(a)],u=window.getComputedStyle(c),"width"==a&&1n.right&&(o=i+t.right-n.right)):(t.topn.bottom&&(o=i+(t.bottom-n.bottom))),o=Math.max(o,0),this.navOffset=Math.min(o,r))},update:function(){var e,t,n,r;this.$refs.nav&&(t=this.sizeName,e=this.$refs.nav["offset"+c(t)],t=this.$refs.navScroll["offset"+c(t)],n=this.navOffset,t3?e.slice(3):"any":e,i=r.split("|").map(L).filter(z).filter(F),o=M(t,i),a=i.map((function(e){var t=c(e);return{name:e,typeIndex:l(t),test:t.test,conversion:null,conversionIndex:-1}})),s=o.map((function(e){var n=c(e.from);return{name:e.from,typeIndex:l(n),test:n.test,conversion:e,conversionIndex:t.indexOf(e)}}));return{types:a.concat(s),restParam:n}}function g(e,t,n){var r=[];return""!==e.trim()&&(r=e.split(",").map(L).map((function(e,t,r){var i=m(e,n);if(i.restParam&&t!==r.length-1)throw new SyntaxError('Unexpected rest parameter "'+e+'": only allowed for the last parameter');return i}))),r.some(q)?null:{params:r,fn:t}}function v(e){var t=H(e);return!!t&&t.restParam}function y(e){return e.types.some((function(e){return null!=e.conversion}))}function b(t){if(t&&0!==t.types.length){if(1===t.types.length)return c(t.types[0].name).test;if(2===t.types.length){var n=c(t.types[0].name).test,r=c(t.types[1].name).test;return function(e){return n(e)||r(e)}}var i=t.types.map((function(e){return c(e.name).test}));return function(e){for(var t=0;t=i+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(n=b(e[0]),function(e){return n(e[0])&&1===e.length}):2===e.length?(n=b(e[0]),r=b(e[1]),function(e){return n(e[0])&&r(e[1])&&2===e.length}):(t=e.map(b),function(e){for(var n=0;n0){var c=d(t[o]);return r=new TypeError("Unexpected type of argument in function "+a+" (expected: "+i.join(" or ")+", actual: "+c+", index: "+o+")"),r.data={category:"wrongType",fn:a,index:o,actual:c,expected:i},r}}else s=u}var l=s.map((function(e){return v(e.params)?1/0:e.params.length}));if(t.lengthf?(r=new TypeError("Too many arguments in function "+a+" (expected: "+f+", actual: "+t.length+")"),r.data={category:"tooManyArgs",fn:a,index:t.length,expectedLength:f},r):(r=new TypeError('Arguments of type "'+t.join(", ")+'" do not match any of the defined signatures of function '+a+"."),r.data={category:"mismatch",actual:t.map(d)},r)}function N(e){for(var t=999,n=0;n=a:c?a>=s:a===s}function R(e,r){if(0===Object.keys(r).length)throw new SyntaxError("No signatures provided");var i=[];Object.keys(r).map((function(e){return g(e,r[e],u.conversions)})).filter(V).forEach((function(e){var t=X(i,(function(t){return $(t,e)}));if(t)throw new TypeError('Conflicting signatures "'+h(t.params)+'" and "'+h(e.params)+'".');i.push(e)}));var o=K(i,(function(e){var t=e?P(e.params,!1):[];return t.map((function(t){return{params:t,fn:e.fn}}))})).filter(V);o.sort(D);var a=o[0]&&o[0].params.length<=2&&!v(o[0].params),s=o[1]&&o[1].params.length<=2&&!v(o[1].params),c=o[2]&&o[2].params.length<=2&&!v(o[2].params),l=o[3]&&o[3].params.length<=2&&!v(o[3].params),d=o[4]&&o[4].params.length<=2&&!v(o[4].params),f=o[5]&&o[5].params.length<=2&&!v(o[5].params),p=a&&s&&c&&l&&d&&f,m=o.map((function(e){return x(e.params)})),y=a?b(o[0].params[0]):t,w=s?b(o[1].params[0]):t,_=c?b(o[2].params[0]):t,S=l?b(o[3].params[0]):t,C=d?b(o[4].params[0]):t,A=f?b(o[5].params[0]):t,E=a?b(o[0].params[1]):t,N=s?b(o[1].params[1]):t,k=c?b(o[2].params[1]):t,O=l?b(o[3].params[1]):t,M=d?b(o[4].params[1]):t,j=f?b(o[5].params[1]):t,R=o.map((function(e){return T(e.params,e.fn)})),B=a?R[0]:n,F=s?R[1]:n,L=c?R[2]:n,z=l?R[3]:n,q=d?R[4]:n,U=f?R[5]:n,H=a?o[0].params.length:-1,W=s?o[1].params.length:-1,Y=c?o[2].params.length:-1,G=l?o[3].params.length:-1,Q=d?o[4].params.length:-1,J=f?o[5].params.length:-1,Z=p?6:0,ee=o.length,te=function(){for(var t=Z;t>>15^(e^=e<<17)^e>>>12,t.i=o,n+(r^r>>>16)|0};var n,r,i,o,a,s=t,u=e,c=[],l=128;for(u===(0|u)?(r=u,u=null):(u+="\0",r=0,l=Math.max(l,u.length)),i=0,o=-32;o>>15)^r<<4)^r>>>13,0<=o&&(i=0==(n=c[127&o]^=r+(a=a+1640531527|0))?i+1:0);for(128<=i&&(c[127&(u&&u.length||0)]=-1),i=127,o=512;0>>15)^(n=(n^=n<<17)^n>>>12);s.w=a,s.X=c,s.i=i}function o(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function a(e,t){function n(){return(r.next()>>>0)/4294967296}var r=new i(e=null==e?+new Date:e);e=t&&t.state;return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,e&&(e.X&&o(e,r),n.state=function(){return o(r,{})}),n}e&&e.exports?e.exports=a:n("07d6")&&n("3c35")?void 0!==(r=function(){return a}.call(t,n,t,e))&&(e.exports=r):this.xor4096=a}(e,n("07d6"))}).call(this,n("62e4")(e))},"7b0a":function(e,t,n){},"7b0b":function(e,t,n){"use strict";var r=n("1d80"),i=Object;e.exports=function(e){return i(r(e))}},"7b31":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},88:function(e,t,n){"use strict";function r(){var e=this.$createElement;return(this._self._c||e)("header",{staticClass:"el-header",style:{height:this.height}},[this._t("default")],2)}n.r(t),r._withStripped=!0;var i={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},o=(n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/header/src/main.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=88))},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","") /** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */),e.exports=function(e,t){var n,o;return!(!i.canUseDOM||t&&!("addEventListener"in document))&&((n=(t="on"+e)in document)||((o=document.createElement("div")).setAttribute(t,"return;"),n="function"==typeof o[t]),!n&&r&&"wheel"===e?document.implementation.hasFeature("Events.wheel","3.0"):n)}},"7bc3":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},103:function(e,t,n){"use strict";function r(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])}n.r(t),r._withStripped=!0;var i={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},o=(n=n(0),n=Object(n.a)(i,r,[],!0,null,null,null),n.options.__file="packages/divider/src/main.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=103))},"7c73":function(e,t,n){"use strict";function r(){}function i(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t}var o,a=n("825a"),s=n("37e8"),u=n("7839"),c=n("d012"),l=n("1be4"),d=n("cc12"),f=(n=n("f772"),"prototype"),p="script",h=n("IE_PROTO"),m=function(e){return"<"+p+">"+e+""},g=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}g="undefined"==typeof document||document.domain&&o?i(o):(e=d("iframe"),t="java"+p+":",e.style.display="none",l.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F);for(var e,t,n=u.length;n--;)delete g[f][u[n]];return g()};c[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(r[f]=a(e),n=new r,r[f]=null,n[h]=e):n=g(),void 0===t?n:s.f(n,t)}},"7c7f":function(e,t,n){},"7d94":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},121:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement;return(t=e._self._c||t)("transition",{attrs:{name:"el-fade-in"}},[e.visible?t("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[t("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])}n.r(t),r._withStripped=!0;var i=n(25),o=n.n(i),a=function(e){return Math.pow(e,3)},s=(i={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=o()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,r=window.requestAnimationFrame||function(e){return setTimeout(e,16)};r((function i(){var o=(Date.now()-t)/500;o<1?(e.scrollTop=n*(1-((o=o)<.5?a(2*o)/2:1-a(2*(1-o))/2)),r(i)):e.scrollTop=0}))}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/backtop/src/main.vue",n.exports);s.install=function(e){e.component(s.name,s)},t.default=s},25:function(e,t){e.exports=n("597f")}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=121))},"7e3e":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("a142");function i(e){var t=e.interceptor,n=e.args,i=e.done;t?(e=t.apply(void 0,n),Object(r.f)(e)?e.then((function(e){e&&i()})).catch(r.h):e&&i()):i()}},"7f4d":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;tthis.limit?this.onExceed&&this.onExceed(e,this.fileList):(e=Array.prototype.slice.call(e),0!==(e=this.multiple?e:e.slice(0,1)).length&&e.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)})))},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var r=Object.prototype.toString.call(n);if("[object File]"===r||"[object Blob]"===r){for(var i in"[object Blob]"===r&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(i)&&(n[i]=e[i]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t,n=this.reqs;e?((t=e).uid&&(t=e.uid),n[t]&&n[t].abort()):Object.keys(n).forEach((function(e){n[e]&&n[e].abort(),delete n[e]}))},post:function(e){var t=this,n=e.uid,r={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(r){t.onSuccess(r,e),delete t.reqs[n]},onError:function(r){t.onError(r,e),delete t.reqs[n]}},i=this.httpRequest(r);(this.reqs[n]=i)&&i.then&&i.then(r.onSuccess,r.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target!==e.currentTarget||13!==e.keyCode&&32!==e.keyCode||this.handleClick()}},render:function(e){var t=this.handleClick,n=this.drag,r=this.name,i=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,c=this.uploadFiles,l=this.disabled;t={class:{"el-upload":!0},on:{click:t,keydown:this.handleKeydown}};return t.class["el-upload--"+s]=!0,e("div",u()([t,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:l},on:{file:c}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:r,multiple:o,accept:a},ref:"input",on:{change:i}})])}},i=Object(a.a)(i,void 0,void 0,!1,null,null,null),i.options.__file="packages/upload/src/upload.vue",i=i.exports;var l=n(11);function d(){}n={name:"ElUpload",mixins:[n.n(l).a],components:{ElProgress:o.a,UploadList:s,Upload:i},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:d},onChange:{type:Function,default:d},onPreview:{type:Function},onSuccess:{type:Function,default:d},onProgress:{type:Function,default:d},onError:{type:Function,default:d},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:d}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(e){}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(e){return}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){t=this.getFile(t),this.onProgress(e,t,this.uploadFiles),t.status="uploading",t.percentage=e.percent||0},handleSuccess:function(e,t){t=this.getFile(t),t&&(t.status="success",t.response=e,this.onSuccess(e,t,this.uploadFiles),this.onChange(t,this.uploadFiles))},handleError:function(e,t){t=this.getFile(t);var n=this.uploadFiles;t.status="fail",n.splice(n.indexOf(t),1),this.onError(e,t,this.uploadFiles),this.onChange(t,this.uploadFiles)},handleRemove:function(e,t){function n(){r.abort(e);var t=r.uploadFiles;t.splice(t.indexOf(e),1),r.onRemove(e,t)}var r=this;t&&(e=this.getFile(t)),this.beforeRemove?"function"==typeof this.beforeRemove&&((t=this.beforeRemove(e,this.uploadFiles))&&t.then?t.then((function(){n()}),d):!1!==t&&n()):n()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return!(n=e.uid===t.uid?t:null)})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0,r=(this.showFileList&&(n=e(s,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}])),{props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"});r=e("upload",r,[this.$slots.trigger||this.$slots.default]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[r,this.$slots.default]:r,this.$slots.tip,"picture-card"!==this.listType?n:""])}},l=Object(a.a)(n,void 0,void 0,!1,null,null,null);var f=(l.options.__file="packages/upload/src/index.vue",l.exports);f.install=function(e){e.component(f.name,f)},t.default=f},6:function(e,t){e.exports=n("6b7c")}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=58))},"89ed":function(e,t,n){(function(e){var r;!function(e){function i(e){var t=this,n="";t.next=function(){var e=(e=t.b)<<25^e>>>7^(n=t.c),n=n-(r=t.d)|0,r=r<<24^r>>>8^(i=t.a),i=i-e|0;return t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r>>0)/4294967296}var r=new i(e);e=t&&t.state;return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,e&&("object"==typeof e&&o(e,r),n.state=function(){return o(r,{})}),n}e&&e.exports?e.exports=a:n("07d6")&&n("3c35")?void 0!==(r=function(){return a}.call(t,n,t,e))&&(e.exports=r):this.tychei=a}(e,n("07d6"))}).call(this,n("62e4")(e))},"8a0b":function(e,t,n){},"8a0d":function(e,t){e.exports={}},"8a58":function(e,t,n){"use strict";n("68ef"),n("a71a"),n("9d70"),n("3743"),n("4d75")},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8b17":function(e,t,n){var r=n("31da");e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},"8b1a":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"8bbc":function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},130:function(e,t,n){"use strict";n.r(t);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect;t=e("span",{class:["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?t:e("transition",{attrs:{name:"el-zoom-in-center"}},[t])}},i=(n=n(0),n=Object(n.a)(r,void 0,void 0,!1,null,null,null),n.options.__file="packages/tag/src/tag.vue",n.exports);i.install=function(e){e.component(i.name,i)},t.default=i}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=130))},"8bd8":function(e,t,n){},"8c4f":function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e){return encodeURIComponent(e).replace(o,a).replace(s,",")}n.d(t,"a",(function(){return Le}));var o=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},s=/%2C/g;function u(e){try{return decodeURIComponent(e)}catch(e){}return e}var c=function(e){return null==e||"object"==typeof e?e:String(e)};function l(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))&&e.split("&").forEach((function(e){e=e.replace(/\+/g," ").split("=");var n=u(e.shift());e=0=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)}r(0)}function _e(e){return function(t,n,r){var i=!1,o=0,a=null;Se(e,(function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){i=!0,o++;var u,c=Ee((function(t){var i;((i=t).__esModule||Ae&&"Module"===i[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:V.extend(t),n.components[s]=t,--o<=0&&r()})),l=Ee((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=be(e)?e:new Error(t),r(a))}));try{u=e(c,l)}catch(t){l(t)}u&&("function"==typeof u.then||(u=u.component)&&"function"==typeof u.then)&&u.then(c,l)}})),i||r()}}function Se(e,t){return Ce(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ce(e){return Array.prototype.concat.apply([],e)}var Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Ee(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}function Ne(e,t){this.router=e,this.base=function(e){var t;return e=e||(W?(t=document.querySelector("base"),(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")):"/"),"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]}function ke(e,t,n,r){return e=Se(e,(function(e,r,i,o){if(e=function(e,t){return"function"!=typeof e&&(e=V.extend(e)),e.options[t]}(e,t),e)return Array.isArray(e)?e.map((function(e){return n(e,r,i,o)})):n(e,r,i,o)})),Ce(r?e.reverse():e)}function Oe(e,t){if(t)return function(){return e.apply(t,arguments)}}Ne.prototype.listen=function(e){this.cb=e},Ne.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Ne.prototype.onError=function(e){this.errorCbs.push(e)},Ne.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),!e||i.ready||xe(e,he.redirected)&&o===m||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)})))}))},Ne.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current,o=(this.pending=e,function(e){!xe(e)&&be(e)&&r.errorCbs.length&&r.errorCbs.forEach((function(t){t(e)})),n&&n(e)}),a=e.matched.length-1,s=i.matched.length-1;if(v(e,i)&&a==s&&e.matched[a]===i.matched[s])return this.ensureURL(),e.hash&&re(this.router,i,e,!1),o(((s=ve(a=i,s=e,he.duplicated,'Avoided redundant navigation to current location: "'+a.fullPath+'".')).name="NavigationDuplicated",s));function u(t,n){if(r.pending!==e)return o(ge(i,e));try{t(e,i,(function(t){var a;!1===t?(r.ensureURL(!0),o(ve(a=i,e,he.aborted,'Navigation aborted from "'+a.fullPath+'" to "'+e.fullPath+'" via a navigation guard.'))):be(t)?(r.ensureURL(!0),o(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(o(me(i,e)),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(t){o(t)}}a=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n=this.stack.length||(t=this.stack[r],this.confirmTransition(t,(function(){var e=n.current;n.index=r,n.updateRoute(t),n.router.afterHooks.forEach((function(n){n&&n(t,e)}))}),(function(e){xe(e,he.duplicated)&&(n.index=r)})))},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Ne),Le=(n={currentRoute:{configurable:!0}},Be.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},n.currentRoute.get=function(){return this.history&&this.history.current},Be.prototype.init=function(e){var t,n,r,i=this;this.apps.push(e),e.$once("hook:destroyed",(function(){var t=i.apps.indexOf(e);-1this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=o(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=o(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(u.clearMilliseconds)(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(u.clearMilliseconds)(e),this.handleChange()},handleChange:function(){var e;this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[(e=this.minDate,Object(u.modifyDate)(d,e.getFullYear(),e.getMonth(),e.getDate())),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,i(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=0 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex()\[\]\\.,;:\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},g={integer:function(e){return g.number(e)&&parseInt(e,10)===e},float:function(e){return g.number(e)&&!g.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},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o()(e))&&!g.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(m.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(m.url)},hex:function(e){return"string"==typeof e&&!!e.match(m.hex)}},v={required:p,whitespace:h,type:function(e,t,n,r,i){e.required&&void 0===t?p(e,t,n,r,i):(n=e.type,-1<["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(n)?g[n](t)||r.push(s(i.messages.types[n],e.fullField,e.type)):n&&(void 0===t?"undefined":o()(t))!==e.type&&r.push(s(i.messages.types[n],e.fullField,e.type)))},range:function(e,t,n,r,i){var o="number"==typeof e.len,a="number"==typeof e.min,u="number"==typeof e.max,c=t,l=null,d="number"==typeof t,f="string"==typeof t,p=Array.isArray(t);if(d?l="number":f?l="string":p&&(l="array"),!l)return!1;p&&(c=t.length),f&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?c!==e.len&&r.push(s(i.messages[l].len,e.fullField,e.len)):a&&!u&&ce.max?r.push(s(i.messages[l].max,e.fullField,e.max)):a&&u&&(ce.max)&&r.push(s(i.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(s(i.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||r.push(s(i.messages.pattern.mismatch,e.fullField,t,e.pattern)))}};function y(e,t,n,r,i){var o=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t,o)&&!e.required)return n();v.required(e,t,r,a,i,o),u(t,o)||v.type(e,t,r,a,i)}n(a)}var b={string:function(e,t,n,r,i){var o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t,"string")&&!e.required)return n();v.required(e,t,r,o,i,"string"),u(t,"string")||(v.type(e,t,r,o,i),v.range(e,t,r,o,i),v.pattern(e,t,r,o,i),!0===e.whitespace&&v.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(u(t)&&!e.required)return n();v.required(e,t,r,o,i),void 0!==t&&v.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(u(t)&&!e.required)return n();v.required(e,t,r,o,i),void 0!==t&&(v.type(e,t,r,o,i),v.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(u(t)&&!e.required)return n();v.required(e,t,r,o,i),void 0!==t&&v.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(u(t)&&!e.required)return n();v.required(e,t,r,o,i),u(t)||v.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(u(t)&&!e.required)return n();v.required(e,t,r,o,i),void 0!==t&&(v.type(e,t,r,o,i),v.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(u(t)&&!e.required)return n();v.required(e,t,r,o,i),void 0!==t&&(v.type(e,t,r,o,i),v.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(u(t,"array")&&!e.required)return n();v.required(e,t,r,o,i,"array"),u(t,"array")||(v.type(e,t,r,o,i),v.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(u(t)&&!e.required)return n();v.required(e,t,r,o,i),void 0!==t&&v.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(u(t)&&!e.required)return n();v.required(e,t,r,o,i),t&&v.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(u(t,"string")&&!e.required)return n();v.required(e,t,r,o,i),u(t,"string")||v.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(u(t)&&!e.required)return n();v.required(e,t,r,a,i),u(t)||(o=void 0,o="number"==typeof t?new Date(t):t,v.type(e,o,r,a,i),o&&v.range(e,o.getTime(),r,a,i))}n(a)},url:y,hex:y,email:y,required:function(e,t,n,r,i){var a=[],s=Array.isArray(t)?"array":void 0===t?"undefined":o()(t);v.required(e,t,r,a,i,s),n(a)}};function x(){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 w=x();function _(e){this.rules=null,this._messages=w,this.define(e)}_.prototype={messages:function(e){return e&&(this._messages=f(x(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":o()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,n=void 0;for(n in e)e.hasOwnProperty(n)&&(t=e[n],this.rules[n]=Array.isArray(t)?t:[t])},validate:function(e){var t,n,r,a,u=this,c=e,p=1>>=1;return(e+n)/t}var f=[],v=(e=m(function e(t,n){var r,i=[],o=typeof t;if(n&&"object"==o)for(r in t)try{i.push(e(t[r],n-1))}catch(e){}return i.length?i:"string"==o?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,g(o)]:null==e?function(){try{return r&&(t=r.randomBytes)?t=t(s):(t=new Uint8Array(s),(i.crypto||i.msCrypto).getRandomValues(t)),g(t)}catch(e){var t=i.navigator;t=t&&t.plugins;return[+new Date,i,t,i.screen,g(o)]}}():e,3),f),new p(f));return d.int32=function(){return 0|v.g(4)},d.quick=function(){return v.g(4)/4294967296},d.double=d,m(g(v.S),o),(t.pass||n||function(e,t,n,r){return r&&(r.S&&h(r,v),e.state=function(){return h(v,{})}),n?(a.random=e,t):e})(d,e,"global"in t?t.global:this==a,t.state)}function p(e){var t,n=e.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);i>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,e===((t.v=0)|e)?t.x=e:n+=e;for(var r=0;r>>4),t.next()}function o(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function a(e,t){function n(){return(r.next()>>>0)/4294967296}var r=new i(e);e=t&&t.state;return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,e&&("object"==typeof e&&o(e,r),n.state=function(){return o(r,{})}),n}e&&e.exports?e.exports=a:n("07d6")&&n("3c35")?void 0!==(r=function(){return a}.call(t,n,t,e))&&(e.exports=r):this.xorwow=a}(e,n("07d6"))}).call(this,n("62e4")(e))},a4b4:function(e,t,n){"use strict";n=n("342f"),e.exports=/web0s(?!.*chrome)/i.test(n)},a4c4:function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},105:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?t("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),t("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])}n.r(t),r._withStripped=!0;var i={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},o=(n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/card/src/main.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=105))},a4d3:function(e,t,n){"use strict";n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a526:function(e,t,n){},a52c:function(e,t,n){"use strict";n("68ef"),n("9d70"),n("3743"),n("ae73")},a578:function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},89:function(e,t,n){"use strict";function r(){var e=this.$createElement;return(this._self._c||e)("i",{class:"el-icon-"+this.name})}n.r(t),r._withStripped=!0;var i={name:"ElIcon",props:{name:String}},o=(n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/icon/src/icon.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=89))},a586:function(e,t,n){},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},a673:function(e,t,n){},a71a:function(e,t,n){},a742:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=(n=(t.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},t.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},t.isHtmlElement=function(e){return e&&e.nodeType===Node.ELEMENT_NODE},n("2b0e")),n=(n=n)&&n.__esModule?n:{default:n},function(e){return e&&"[object Function]"==={}.toString.call(e)});"object"===("undefined"==typeof Int8Array?"undefined":r(Int8Array))||!n.default.prototype.$isServer&&"function"==typeof document.childNodes||(t.isFunction=i=function(e){return"function"==typeof e||!1}),t.isFunction=i,t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return null!=e}},a769:function(e,t,n){},a79d:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("d256"),a=n("d039"),s=n("d066"),u=n("1626"),c=n("4840"),l=n("cdf9"),d=(n=n("cb2d"),o&&o.prototype);r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=u(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!i&&u(o)&&(r=s("Promise").prototype.finally,d.finally!==r)&&n(d,"finally",r,{unsafe:!0})},a7cc:function(e,t,n){},a8c1:function(e,t,n){"use strict";function r(e){return e===window}n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return f}));var i=/scroll|auto|overlay/i;function o(e,t){void 0===t&&(t=window);for(var n=e;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==t;){var r=window.getComputedStyle(n).overflowY;if(i.test(r))return n;n=n.parentNode}return t}function a(e){return e="scrollTop"in e?e.scrollTop:e.pageYOffset,Math.max(e,0)}function s(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function u(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function c(e){s(window,e),s(document.body,e)}function l(e,t){return r(e)?0:(t=t?a(t):u(),e.getBoundingClientRect().top+t)}function d(e){return r(e)?e.innerHeight:e.getBoundingClientRect().height}function f(e){return r(e)?0:e.getBoundingClientRect().top}},a8fa:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),t=n("a142");var r=n("a8c1"),i=!t.g&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function o(){i&&Object(r.g)(Object(r.b)())}},a9e3:function(e,t,n){"use strict";function r(e){var t;e=arguments.length<1?0:S(function(e){return e=g(e,"number"),"bigint"==typeof e?e:O(e)}(e));return h(A,t=this)&&v((function(){w(t)}))?p(Object(e),this,r):e}function i(e,t){for(var n,r=s?y(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)f(t,n=r[i])&&!f(e,n)&&x(e,n,b(t,n))}var o=n("23e7"),a=n("c430"),s=n("83ab"),u=n("da84"),c=n("428f"),l=n("e330"),d=n("94ca"),f=n("1a2d"),p=n("7156"),h=n("3a9b"),m=n("d9b5"),g=n("c04e"),v=n("d039"),y=n("241c").f,b=n("06cf").f,x=n("9bf2").f,w=n("408a"),_=n("58a8").trim,S=(n="Number",u[n]),C=c[n],A=S.prototype,E=u.TypeError,N=l("".slice),k=l("".charCodeAt),O=function(e){var t,n,r,i,o,a,s,u=g(e,"number");if(m(u))throw E("Cannot convert a Symbol value to a number");if("string"==typeof u&&2t.key[n])return 1}return 0}(e,t)||e.index-t.index)*n})).map((function(e){return e.value}))},u=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},c=function(e,t){for(var n=null,r=0;r 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[t("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),0 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[t("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),0 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[t("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),0this.bodyHeight,e!==(this.scrollY=t))},S.prototype.setHeight=function(e){var t=this,n=1 col");if(t.length){e=e.getFlattenColumns();var n={};e.forEach((function(e){n[e.id]=e}));for(var r=0,i=t.length;r col[name=gutter]"),n=0,r=t.length;n=this.leftFixedLeafCount:"right"===this.fixed?e=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,r){var i=1,o=1,a=this.table.spanMethod;return"function"==typeof a&&(a=a({row:e,column:t,rowIndex:n,columnIndex:r}),Array.isArray(a)?(i=a[0],o=a[1]):"object"===(void 0===a?"undefined":k(a))&&(i=a.rowspan,o=a.colspan)),{rowspan:i,colspan:o}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"==typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"],r=(this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2==1&&n.push("el-table__row--striped"),this.table.rowClassName);return"string"==typeof r?n.push(r):"function"==typeof r&&n.push(r.call(null,{row:e,rowIndex:t})),-1t.offsetWidth||t.scrollWidth>t.offsetWidth)&&this.$refs.tooltip&&(n=this.$refs.tooltip,this.tooltipContent=i.innerText||i.textContent,n.referenceElm=i,n.$refs.popper&&(n.$refs.popper.style.display="none"),n.doDestroy(),n.setExpectedState(!0),this.activateTooltip(n))},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper()),Object(g.b)(e)&&(t=this.table.hoverState||{},this.table.$emit("cell-mouse-leave",t.row,t.column,t.cell,e))},handleMouseEnter:x()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:x()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var r=this.table,i=Object(g.b)(e),o=void 0;i&&(o=Object(g.c)(r,i))&&r.$emit("cell-"+n,t,o,i,e),r.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var r=this,i=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,u=a.map((function(e,t){return r.isColumnHidden(t)})),c=this.getRowClass(e,t),l=!0;return n&&(c.push("el-table__row--level-"+n.level),l=n.display),i("tr",{style:[l?null:{display:"none"},this.getRowStyle(e,t)],class:c,key:this.getKeyOfRow(e,t),on:{dblclick:function(t){return r.handleDoubleClick(t,e)},click:function(t){return r.handleClick(t,e)},contextmenu:function(t){return r.handleContextMenu(t,e)},mouseenter:function(e){return r.handleMouseEnter(t)},mouseleave:this.handleMouseLeave}},[a.map((function(c,l){var d,f=r.getSpan(e,c,t,l),p=f.rowspan;f=f.colspan;return p&&f?((d=O({},c)).realWidth=r.getColspanRealWidth(a,f,l),d={store:r.store,_self:r.context||r.table.$vnode.context,column:d,row:e,$index:t},l===s&&n&&(d.treeNode={indent:n.level*o,level:n.level},"boolean"==typeof n.expanded)&&(d.treeNode.expanded=n.expanded,"loading"in n&&(d.treeNode.loading=n.loading),"noLazyChildren"in n)&&(d.treeNode.noLazyChildren=n.noLazyChildren),i("td",{style:r.getCellStyle(t,l,e,c),class:r.getCellClass(t,l,e,c),attrs:{rowspan:p,colspan:f},on:{mouseenter:function(t){return r.handleCellMouseEnter(t,e)},mouseleave:r.handleCellMouseLeave}},[c.renderCell.call(r._renderProxy,r.$createElement,d,u[l])])):null}))])},wrappedRowRender:function(e,t){var n,r,i,o=this,a=this.$createElement,s=this.store,u=s.isRowExpanded,c=s.assertRowKey,l=(s=s.states,s.treeData),d=s.lazyTreeNodeMap,f=s.childrenColumnName,p=s.rowKey;return this.hasExpandColumn&&u(e)?(s=this.table.renderExpanded,u=this.rowRender(e,t),s?[[u,a("tr",{key:"expanded-row__"+u.key},[a("td",{attrs:{colspan:this.columnsCount},class:"el-table__expanded-cell"},[s(this.$createElement,{row:e,$index:t,store:this.store})])])]]:u):Object.keys(l).length?(c(),a=Object(g.g)(e,p),s=null,(n=l[a])&&(s={expanded:n.expanded,level:n.level,display:!0},"boolean"==typeof n.lazy)&&("boolean"==typeof n.loaded&&n.loaded&&(s.noLazyChildren=!(n.children&&n.children.length)),s.loading=n.loading),r=[this.rowRender(e,t,s)],n&&(i=0,u=function e(a,s){a&&a.length&&s&&a.forEach((function(a){var u={display:s.display&&s.expanded,level:s.level+1},c=Object(g.g)(a,p);if(null==c)throw new Error("for nested data item, row-key is required.");(n=O({},l[c]))&&(u.expanded=n.expanded,n.level=n.level||u.level,n.display=!(!n.expanded||!u.display),"boolean"==typeof n.lazy)&&("boolean"==typeof n.loaded&&n.loaded&&(u.noLazyChildren=!(n.children&&n.children.length)),u.loading=n.loading),i++,r.push(o.rowRender(a,t+i,u)),n&&(u=d[c]||a[f],e(u,n))}))},n.display=!0,u(d[a]||e[f],n)),r):this.rowRender(e,t)}}},C._withStripped=!0,n(5)),M=(D=n.n(D),n(13)),T=n(12),j=(T=n.n(T),[]);function I(e){var t=[];return e.forEach((function(e){e.children?(t.push(e),t.push.apply(t,I(e.children))):t.push(e)})),t}h.a.prototype.$isServer||document.addEventListener("click",(function(e){j.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var P=function(e){e&&j.push(e)},$=function(e){-1!==j.indexOf(e)&&j.splice(e,1)},R=n(39),B=(R=n.n(R),n(15)),F=(D={name:"ElTableFilterPanel",mixins:[D.a,d.a],directives:{Clickoutside:T.a},components:{ElCheckbox:o.a,ElCheckboxGroup:R.a,ElScrollbar:n.n(B).a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){null!=(this.filterValue=e)?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&(null!=e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),(t?P:$)(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)=this.leftFixedLeafCount:"right"===this.fixed?n=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"==typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"==typeof n?t.push(n):"function"==typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,r){var i=this.table.headerCellStyle;return"function"==typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getHeaderCellClass:function(e,t,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName],o=(0===e&&this.isCellHidden(t,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable"),this.table.headerCellClassName);return"string"==typeof o?i.push(o):"function"==typeof o&&i.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.join(" ")},toggleAllSelection:function(e){e.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n,r;e=e.target,e="TH"===e.tagName?e:e.parentNode;Object(E.hasClass)(e,"noclick")||(e=e.querySelector(".el-table__column-filter-trigger")||e,n=this.$parent,(r=this.filterPanels[t.id])&&t.filterOpened?r.showPopper=!1:(r||(r=new h.a(F),this.filterPanels[t.id]=r,t.filterPlacement&&(r.placement=t.filterPlacement),r.table=n,r.cell=e,r.column=t,this.$isServer)||r.$mount(document.createElement("div")),setTimeout((function(){r.showPopper=!0}),16)))},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n,r,i,o,a,s,u,c=this;this.$isServer||t.children&&0e.length-2?0:t+1])},handleSortClick:function(e,t,n){e.stopPropagation();n=t.order===n?null:n||this.toggleOrder(t);for(var r,i,o,a=e.target;a&&"TH"!==a.tagName;)a=a.parentNode;a&&"TH"===a.tagName&&Object(E.hasClass)(a,"noclick")?Object(E.removeClass)(a,"noclick"):t.sortable&&(r=(e=this.store.states).sortProp,i=void 0,((o=e.sortingColumn)!==t||o===t&&null===o.order)&&(o&&(o.order=null),r=(e.sortingColumn=t).property),i=t.order=n||null,e.sortProp=r,e.sortOrder=i,this.store.commit("changeSortCondition"))}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},D=Object.assign||function(e){for(var t=1;t=this.leftFixedLeafCount;if("right"!==this.fixed)return!(this.fixed||!n.fixed)||e=this.columnsCount-this.rightFixedCount;for(var r=0,i=0;in&&e.preventDefault(),r.scrollTop+=Math.ceil(t.pixelY/5)):r.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,r=t.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:Object(a.throttle)(20,(function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,r=e.offsetWidth,i=(e=e.scrollWidth,this.$refs),o=i.headerWrapper,a=i.footerWrapper,s=i.fixedBodyWrapper;i=i.rightFixedBodyWrapper;o&&(o.scrollLeft=t),a&&(a.scrollLeft=t),s&&(s.scrollTop=n),i&&(i.scrollTop=n),this.scrollPosition=e-r-1<=t?"right":0===t?"left":"middle"})),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(s.addResizeListener)(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(s.removeResizeListener)(this.$el,this.resizeListener)},resizeListener:function(){var e,t,n,r;this.$ready&&(e=!1,r=this.$el,n=(t=this.resizeState).width,t=t.height,n!==(n=r.offsetWidth)&&(e=!0),r=r.offsetHeight,e=!(!this.height&&!this.shouldUpdateHeight||t===r)||e)&&(this.resizeState.width=n,this.resizeState.height=r,this.doLayout())},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:B({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||0>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r>>0)/4294967296}var r=new i(e);e=t&&t.state;return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,e&&("object"==typeof e&&o(e,r),n.state=function(){return o(r,{})}),n}e&&e.exports?e.exports=a:n("07d6")&&n("3c35")?void 0!==(r=function(){return a}.call(t,n,t,e))&&(e.exports=r):this.xor128=a}(e,n("07d6"))}).call(this,n("62e4")(e))},b84d:function(e,t,n){},b8e0:function(e,t,n){},b9c7:function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},ba01:function(e,t,n){e.exports=n("051b")},ba31:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return c}));var r=n("c31d"),i=n("2b0e"),o=["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],a={nativeOn:"on"};function s(e,t){var n=o.reduce((function(t,n){return e.data[n]&&(t[a[n]||n]=e.data[n]),t}),{});return t&&(n.on=n.on||{},Object(r.a)(n.on,e.data.on)),n}function u(e,t){for(var n=arguments.length,r=new Array(2=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:t}):this.$emit("pick",{minDate:t,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:t,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",e))}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,r=[],i=s(new Date),o=0;o<3;o++)for(var a=t[o],u=0;u<4;u++)!function(t){var u=a[t],c=((u=u||{row:o,column:t,type:"normal",inRange:!1,start:!1,end:!1}).type="normal",4*o+t),l=new Date(e.date.getFullYear(),c).getTime();u.inRange=l>=s(e.minDate)&&l<=s(e.maxDate),u.start=e.minDate&&l===s(e.minDate),u.end=e.maxDate&&l===s(e.maxDate),l===i&&(u.type="today"),u.text=c;var d=new Date(l);u.disabled="function"==typeof n&&n(d),u.selected=Object(S.arrayFind)(r,(function(e){return e.getTime()===d.getTime()})),e.$set(a,t,u)}(u);return t}}}),E=(A=Object(n.a)(A,o,[],!1,null,null,null),A=(A.options.__file="packages/date-picker/src/basic/month-table.vue",A.exports),u._withStripped=!0,["sun","mon","tue","wed","thu","fri","sat"]),N={mixins:[y.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return 1<=e&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(g.isDate)(e)||Array.isArray(e)&&e.every(g.isDate)}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return 3=c(e.minDate)&&m<=c(e.maxDate),a.start=e.minDate&&m===c(e.minDate),a.end=e.maxDate&&m===c(e.maxDate),m===p&&(a.type="today"),0<=h&&h<=1?(v=n+o<0?7+n+o:n+o)<=t+7*h?a.text=s++:(a.text=i-(v-t%7)+1+7*h,a.type="prev-month"):s<=r?a.text=s++:(a.text=s++-r,a.type="next-month");var v,y=new Date(m);a.disabled="function"==typeof l&&l(y),a.selected=Object(S.arrayFind)(f,(function(e){return e.getTime()===y.getTime()})),a.customClass="function"==typeof d&&d(y),e.$set(b,e.showWeekNumber?t+1:t,a)}(x);"week"===this.selectionMode&&(m=this.showWeekNumber?1:0,v=this.showWeekNumber?7:6,y=this.isWeekActive(b[1+m]),b[m].inRange=y,b[m].start=y,b[v].inRange=y,b[v].end=y)}return a}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){c(e)!==c(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){c(e)!==c(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){return t=new Date(t),this.year===t.getFullYear()&&this.month===t.getMonth()&&Number(e.text)===t.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?i.push(e.type):(i.push("available"),"today"===e.type&&i.push("today")),"normal"===e.type&&r.some((function(n){return t.cellMatchesDate(e,n)}))&&i.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||i.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(i.push("in-range"),e.start&&i.push("start-date"),e.end&&i.push("end-date")),e.disabled&&i.push("disabled"),e.selected&&i.push("selected"),e.customClass&&i.push(e.customClass),i.join(" ")},getDateOfCell:function(e,t){return e=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay,Object(g.nextDate)(this.startDate,e)},isWeekActive:function(e){var t,n,r;return"week"===this.selectionMode&&(n=(t=new Date(this.year,this.month,1)).getFullYear(),r=t.getMonth(),"prev-month"===e.type&&(t.setMonth(0===r?11:r-1),t.setFullYear(0===r?n-1:n)),"next-month"===e.type&&(t.setMonth(11===r?0:r+1),t.setFullYear(11===r?n+1:n)),t.setDate(parseInt(e.text,10)),!!Object(g.isDate)(this.value))&&(r=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,Object(g.prevDate)(this.value,r).getTime()===t.getTime())},markRange:function(e,t){e=c(e),t=c(t)||e;for(var n=[Math.min(e,t),Math.max(e,t)],r=(e=n[0],t=n[1],this.startDate),i=this.rows,o=0,a=i.length;o=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:n}):this.$emit("pick",{minDate:n,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:n,maxDate:null}),this.rangeState.selecting=!0):"day"===this.selectionMode?this.$emit("pick",n):"week"===this.selectionMode?(r=Object(g.getWeekNumber)(n),e=n.getFullYear()+"w"+r,this.$emit("pick",{year:n.getFullYear(),week:r,value:e,date:n})):"dates"===this.selectionMode&&(r=this.value||[],e=t.selected?function(e,t){return t="function"==typeof t?Object(S.arrayFindIndex)(e,t):e.indexOf(t),0<=t?[].concat(e.slice(0,t),e.slice(t+1)):e}(r,(function(e){return e.getTime()===n.getTime()})):[].concat(r,[n]),this.$emit("pick",e)))}}},k=(N=Object(n.a)(N,u,[],!1,null,null,null),N=(N.options.__file="packages/date-picker/src/basic/date-table.vue",N.exports),C={mixins:[y.a],directives:{Clickoutside:v.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||(Object(g.isDate)(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(g.isDate)(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){function e(e){i.$refs.timepicker.value=e}function t(e){i.$refs.timepicker.date=e}function n(e){i.$refs.timepicker.selectableRange=e}var r,i=this;this.$watch("value",e),this.$watch("date",t),this.$watch("selectableRange",n),r=this.timeFormat,i.$refs.timepicker.format=r,e(this.value),t(this.date),n(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t,n=this,r=arguments.length,i=Array(1this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(g.modifyDate)(this.maxDate,e.getFullYear(),e.getMonth(),e.getDate()),this.maxDatethis.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(g.modifyTime)(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds()),this.maxDatethis.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(g.prevYear)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(g.nextMonth)(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(g.prevMonth)(this.leftDate),this.unlinkPanels||(this.rightDate=Object(g.nextMonth)(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(g.nextYear)(this.rightDate):(this.leftDate=Object(g.nextYear)(this.leftDate),this.rightDate=Object(g.nextMonth)(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(g.nextMonth)(this.rightDate):(this.leftDate=Object(g.nextMonth)(this.leftDate),this.rightDate=Object(g.nextMonth)(this.leftDate))},leftNextYear:function(){this.leftDate=Object(g.nextYear)(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(g.nextMonth)(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(g.prevYear)(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(g.prevMonth)(this.rightDate)},handleConfirm:function(){var e=0this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(g.nextYear)(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){var t;e?Array.isArray(e)&&(this.minDate=Object(g.isDate)(e[0])?new Date(e[0]):null,this.maxDate=Object(g.isDate)(e[1])?new Date(e[1]):null,this.minDate?(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate?(e=this.minDate.getFullYear(),t=this.maxDate.getFullYear(),this.rightDate=e===t?Object(g.nextYear)(this.maxDate):this.maxDate):this.rightDate=Object(g.nextYear)(this.leftDate)):(this.leftDate=p(this.defaultValue)[0],this.rightDate=Object(g.nextYear)(this.leftDate))):(this.minDate=null,this.maxDate=null)},defaultValue:function(e){var t,n;Array.isArray(this.value)||(t=(n=p(e))[0],n=n[1],this.leftDate=t,this.rightDate=e&&e[1]&&t.getFullYear()!==n.getFullYear()&&this.unlinkPanels?n:Object(g.nextYear)(this.leftDate))}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=p(this.defaultValue)[0],this.rightDate=Object(g.nextYear)(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(1e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"==typeof e?{color:e,percentage:(n+1)*t}:e}))}}},o=(n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/progress/src/progress.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=90))},c2cc:function(e,t){function n(e){var t;return(i[e]||(t=i[e]={i:e,l:!1,exports:{}},r[e].call(t.exports,t,t.exports,n),t.l=!0,t)).exports}var r,i;e.exports=(r={137:function(e,t,n){"use strict";n.r(t);var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){for(var e=this.$parent;e&&"ElRow"!==e.$options.componentName;)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],i={};return this.gutter&&(i.paddingLeft=this.gutter/2+"px",i.paddingRight=i.paddingLeft),["span","offset","pull","push"].forEach((function(e){!t[e]&&0!==t[e]||n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){var i;"number"==typeof t[e]?n.push("el-col-"+e+"-"+t[e]):"object"===r(t[e])&&(i=t[e],Object.keys(i).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+i[t]:"el-col-"+e+"-"+i[t])})))})),e(this.tag,{class:["el-col",n],style:i},this.$slots.default)},install:function(e){e.component(i.name,i)}};t.default=i}},i={},n.m=r,n.c=i,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=137))},c31d:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;te?this.zIndex:e}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick((function(e){t.$refs.img[0].complete||(t.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){switch(t.stopPropagation(),t.keyCode){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut")}},this._mouseWheelHandler=Object(s.rafThrottle)((function(t){0<(t.wheelDelta||-t.detail)?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(a.on)(document,"keydown",this._keyDownHandler),Object(a.on)(document,d,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(a.off)(document,"keydown",this._keyDownHandler),Object(a.off)(document,d,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t,n,r,i,o,u=this;this.loading||0!==e.button||(t=this.transform,n=t.offsetX,r=t.offsetY,i=e.pageX,o=e.pageY,this._dragHandler=Object(s.rafThrottle)((function(e){u.transform.offsetX=n+e.pageX-i,u.transform.offsetY=r+e.pageY-o})),Object(a.on)(document,"mousemove",this._dragHandler),Object(a.on)(document,"mouseup",(function(e){Object(a.off)(document,"mousemove",u._dragHandler)})),e.preventDefault())},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){var e,t;this.loading||(e=Object.keys(l),t=(Object.values(l).indexOf(this.mode)+1)%e.length,this.mode=l[e[t]],this.reset())},prev:function(){var e;this.isFirst&&!this.infinite||(e=this.urlList.length,this.index=(this.index-1+e)%e)},next:function(){var e;this.isLast&&!this.infinite||(e=this.urlList.length,this.index=(this.index+1)%e)},handleActions:function(e){var t=1e[t])}var Z=["Matrix","Array"],ee=["number","BigNumber","Fraction"];function te(e,t){function n(n){var r,i;return n?(r=W(e,H),ne(n,"matrix",Z),ne(n,"number",ee),function e(t,n){if(Array.isArray(n))throw new TypeError("Arrays are not supported by deepExtend");for(var r in n)if(K(n,r)&&!(r in Object.prototype)&&!(r in Function.prototype))if(n[r]&&n[r].constructor===Object)void 0===t[r]&&(t[r]={}),t[r]&&t[r].constructor===Object?e(t[r],n[r]):t[r]=n[r];else{if(Array.isArray(n[r]))throw new TypeError("Arrays are not supported by deepExtend");t[r]=n[r]}}(e,n),i=W(e,H),n=W(n,H),t("config",i,r,n),i):W(e,H)}return n.MATRIX_OPTIONS=Z,n.NUMBER_OPTIONS=ee,Object.keys(o).forEach(t=>{Object.defineProperty(n,t,{get:()=>e[t],enumerable:!0,configurable:!0})}),n}function ne(e,t,n){void 0!==e[t]&&(e=e[t],n.indexOf(e))}var re=function(e){if(e)throw new Error("The global config is readonly. \nPlease create a mathjs instance if you want to change the default configuration. \nExample:\n\n import { create, all } from 'mathjs';\n const mathjs = create(all);\n mathjs.config({ number: 'BigNumber' });\n");return Object.freeze(o)},ie=(r=(i()(re,o,{MATRIX_OPTIONS:Z,NUMBER_OPTIONS:ee}),n("4128")),n.n(r));function oe(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}var ae=Math.sign||function(e){return 0c.length||u-l+1>c.length;)c.push(0);else for(var d=Math.abs(u-l)-(c.length-1),f=0;f=n?ge(e,t):(r=i.coefficients,n=i.exponent,r=(r=r.lengtht&&5<=r.splice(t,r.length-t)[0]){var i=t-1;for(r[i]++;10===r[i];)r.pop(),0===i&&(r.unshift(0),n.exponent++,i++),r[--i]++}return n}function ye(e){for(var t=[],n=0;n'"'+n+'": '+De(e[n],t)).join(", ")+"}":String(e)}(e,t),t&&"object"==typeof t&&"truncate"in t&&e.length>t.truncate?e.substring(0,t.truncate-3)+"...":e}function Me(e){for(var t=String(e),n="",r=0;r/g,">")}function je(e,t){if(!d(e))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+U(e)+", index: 0)");if(d(t))return e===t?0:t=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=(new Error).stack}function $e(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function Re(e,t){if(0===t.length){if(Array.isArray(e))throw new Ie(e.length,0)}else!function e(t,n,r){var i=t.length;if(i!==n[r])throw new Ie(i,n[r]);if(r")}(e,t,0)}function Be(e,t){if(!a(e)||!oe(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"==typeof t&&t<=e)throw new Pe(e,t)}function Fe(e,t,n){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(0===t.length)throw new Error("Resizing to scalar is not supported");return t.forEach((function(e){if(!a(e)||!oe(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+De(t)+")")})),function e(t,n,r,i){var o,a,s=t.length,u=n[r],c=Math.min(s,u);if(t.length=u,re*t,1)}function qe(e,t){for(var n=t||$e(e);Array.isArray(e)&&1===e.length;)e=e[0],n.shift();for(var r=n.length;1===n[r-1];)r--;return rt.test(e))}function Qe(e,t){return Array.prototype.join.call(e,t)}function Ke(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(0===e.length)return e;var t=[],n=0;t[0]={value:e[0],identifier:0};for(var r=1;r!((e=e)&&"?"===e[0])).every(e=>void 0!==s[e]))return n(i);throw a=a.filter(e=>void 0===s[e]),new Error('Cannot create function "'.concat(o,'", ')+"some dependencies are missing: ".concat(a.map(e=>'"'.concat(e,'"')).join(", "),"."))}return i.isFactory=!0,i.fn=e,i.dependencies=t.slice().sort(),r&&(i.meta=r),i}function nt(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function rt(e){return e&&"?"===e[0]?e.slice(1):e}(Ie.prototype=new RangeError).constructor=RangeError,Ie.prototype.name="DimensionError",Ie.prototype.isDimensionError=!0,(Pe.prototype=new RangeError).constructor=RangeError,Pe.prototype.name="IndexError";var it=tt("BigNumber",["?on","config"],e=>{var{on:e,config:t}=e,n=ie.a.clone({precision:t.precision,modulo:ie.a.EUCLID});return n.prototype=Object.create(n.prototype),n.prototype.type="BigNumber",n.prototype.isBigNumber=!0,n.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},n.fromJSON=function(e){return new n(e.value)},e&&e("config",(function(e,t){e.precision!==t.precision&&n.config({precision:e.precision})})),n},{isClass:Pe.prototype.isIndexError=!0}),ot=(r=n("edaf"),n.n(r)),at=tt("Complex",[],()=>(ot.a.prototype.type="Complex",ot.a.prototype.isComplex=!0,ot.a.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},ot.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},ot.a.prototype.format=function(e){var t=this.im,n=this.re,r=pe(this.re,e),i=pe(this.im,e);e=a(e)?e:e?e.precision:null;return 0===(t=null!==e&&(e=Math.pow(10,-e),Math.abs(n/t)t.re?1:e.ret.im?1:e.im!0),bt=tt("false",[],()=>!1),xt=tt("null",[],()=>null),wt=Rt("Infinity",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?new t(1/0):1/0}),_t=Rt("NaN",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?new t(NaN):NaN}),St=Rt("pi",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?ft(t):mt}),Ct=Rt("tau",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?pt(t):gt}),At=Rt("e",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?lt(t):vt}),Et=Rt("phi",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?dt(t):1.618033988749895}),Nt=Rt("LN2",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?new t(2).ln():Math.LN2}),kt=Rt("LN10",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?new t(10).ln():Math.LN10}),Ot=Rt("LOG2E",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?new t(1).div(new t(2).ln()):Math.LOG2E}),Dt=Rt("LOG10E",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?new t(1).div(new t(10).ln()):Math.LOG10E}),Mt=Rt("SQRT1_2",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?new t("0.5").sqrt():Math.SQRT1_2}),Tt=Rt("SQRT2",["config","?BigNumber"],e=>{var{config:e,BigNumber:t}=e;return"BigNumber"===e.number?new t(2).sqrt():Math.SQRT2}),jt=Rt("i",["Complex"],e=>(e=e.Complex,e.I)),It=tt("PI",["pi"],e=>(e=e.pi,e)),Pt=tt("E",["e"],e=>(e=e.e,e)),$t=tt("version",[],()=>"10.6.4");function Rt(e,t,n){return tt(e,t,n,{recreateOnConfigChange:!0})}var Bt=Pn("speedOfLight","299792458","m s^-1"),Ft=Pn("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),Lt=Pn("planckConstant","6.62607015e-34","J s"),zt=Pn("reducedPlanckConstant","1.0545718176461565e-34","J s"),Vt=Pn("magneticConstant","1.25663706212e-6","N A^-2"),qt=Pn("electricConstant","8.8541878128e-12","F m^-1"),Ut=Pn("vacuumImpedance","376.730313667","ohm"),Ht=Pn("coulomb","8.987551792261171e9","N m^2 C^-2"),Wt=Pn("elementaryCharge","1.602176634e-19","C"),Yt=Pn("bohrMagneton","9.2740100783e-24","J T^-1"),Gt=Pn("conductanceQuantum","7.748091729863649e-5","S"),Xt=Pn("inverseConductanceQuantum","12906.403729652257","ohm"),Qt=Pn("magneticFluxQuantum","2.0678338484619295e-15","Wb"),Kt=Pn("nuclearMagneton","5.0507837461e-27","J T^-1"),Jt=Pn("klitzing","25812.807459304513","ohm"),Zt=Pn("bohrRadius","5.29177210903e-11","m"),en=Pn("classicalElectronRadius","2.8179403262e-15","m"),tn=Pn("electronMass","9.1093837015e-31","kg"),nn=Pn("fermiCoupling","1.1663787e-5","GeV^-2"),rn=$n("fineStructure",.0072973525693),on=Pn("hartreeEnergy","4.3597447222071e-18","J"),an=Pn("protonMass","1.67262192369e-27","kg"),sn=Pn("deuteronMass","3.3435830926e-27","kg"),un=Pn("neutronMass","1.6749271613e-27","kg"),cn=Pn("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),ln=Pn("rydberg","10973731.568160","m^-1"),dn=Pn("thomsonCrossSection","6.6524587321e-29","m^2"),fn=$n("weakMixingAngle",.2229),pn=$n("efimovFactor",22.7),hn=Pn("atomicMass","1.66053906660e-27","kg"),mn=Pn("avogadro","6.02214076e23","mol^-1"),gn=Pn("boltzmann","1.380649e-23","J K^-1"),vn=Pn("faraday","96485.33212331001","C mol^-1"),yn=Pn("firstRadiation","3.7417718521927573e-16","W m^2"),bn=Pn("loschmidt","2.686780111798444e25","m^-3"),xn=Pn("gasConstant","8.31446261815324","J K^-1 mol^-1"),wn=Pn("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),_n=Pn("molarVolume","0.022413969545014137","m^3 mol^-1"),Sn=$n("sackurTetrode",-1.16487052358),Cn=Pn("secondRadiation","0.014387768775039337","m K"),An=Pn("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),En=Pn("wienDisplacement","2.897771955e-3","m K"),Nn=Pn("molarMass","0.99999999965e-3","kg mol^-1"),kn=Pn("molarMassC12","11.9999999958e-3","kg mol^-1"),On=Pn("gravity","9.80665","m s^-2"),Dn=Pn("planckLength","1.616255e-35","m"),Mn=Pn("planckMass","2.176435e-8","kg"),Tn=Pn("planckTime","5.391245e-44","s"),jn=Pn("planckCharge","1.87554603778e-18","C"),In=Pn("planckTemperature","1.416785e+32","K");function Pn(e,t,n){return tt(e,["config","Unit","BigNumber"],e=>{var{config:e,Unit:r,BigNumber:i}=e,r=new r("BigNumber"===e.number?new i(t):parseFloat(t),n);return r.fixPrefix=!0,r})}function $n(e,t){return tt(e,["config","BigNumber"],e=>{var{config:e,BigNumber:n}=e;return"BigNumber"===e.number?new n(t):t})}r=n("d61e");var Rn=n.n(r),Bn=tt("Fraction",[],()=>(Rn.a.prototype.type="Fraction",Rn.a.prototype.isFraction=!0,Rn.a.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},Rn.a.fromJSON=function(e){return new Rn.a(e)},Rn.a),{isClass:!0}),Fn=tt("Matrix",[],()=>{function e(){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw new Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,n){throw new Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw new Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,n){throw new Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw new Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw new Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw new Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw new Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw new Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0}),Ln=tt("Range",[],()=>{function e(t,n,r){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");var i=null!=t,o=null!=n,a=null!=r;if(i)if(s(t))t=t.toNumber();else if("number"!=typeof t)throw new TypeError("Parameter start must be a number");if(o)if(s(n))n=n.toNumber();else if("number"!=typeof n)throw new TypeError("Parameter end must be a number");if(a)if(s(r))r=r.toNumber();else if("number"!=typeof r)throw new TypeError("Parameter step must be a number");this.start=i?parseFloat(t):0,this.end=o?parseFloat(n):0,this.step=a?parseFloat(r):1}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(t){if("string"!=typeof t)return null;var n=t.split(":").map((function(e){return parseFloat(e)}));if(n.some((function(e){return isNaN(e)})))return null;switch(n.length){case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[2],n[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var e=0,t=this.start,n=this.step;t=this.end-t;return ae(n)===ae(t)?e=Math.ceil(t/n):0==t&&(e=0),[e=isNaN(e)?0:e]},e.prototype.min=function(){var e=this.size()[0];if(0{function e(t){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=t||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(t){return new e(t.entries)},e},{isClass:!0}),Vn=tt("DenseMatrix",["Matrix"],e=>{function t(e,n){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(n&&!d(n))throw new Error("Invalid datatype: "+n);if(p(e))"DenseMatrix"===e.type?(this._data=H(e._data),this._size=H(e._size)):(this._data=e.toArray(),this._size=e.size()),this._datatype=n||e._datatype;else if(e&&f(e.data)&&f(e.size))this._data=e.data,this._size=e.size,Re(this._data,this._size),this._datatype=n||e.datatype;else{if(f(e))this._data=function e(t){for(var n=0,r=t.length;ni[a]&&(i[a]=t[a],o=!0);o&&n(e,i,r)}return e=e.Matrix,(t.prototype=new e).createDenseMatrix=function(e,n){return new t(e,n)},t.prototype.type="DenseMatrix",t.prototype.isDenseMatrix=!0,t.prototype.getDataType=function(){return Ze(this._data,U)},t.prototype.storage=function(){return"dense"},t.prototype.datatype=function(){return this._datatype},t.prototype.create=function(e,n){return new t(e,n)},t.prototype.subset=function(e,n,i){switch(arguments.length){case 1:var o=this,a=e;if(!y(a))throw new TypeError("Invalid index");if(a.isScalar())return o.get(a.min());var s=a.size();if(s.length!==o._size.length)throw new Ie(s.length,o._size.length);for(var u=a.min(),c=a.max(),l=0,d=o._size.length;l");v=s.max().map((function(e){return e+1})),r(a,v,h),v=g.length,function e(t,n,r,i,o){var a=o===i-1,s=n.dimension(o);a?s.forEach((function(e,n){Be(e),t[e]=r[n[0]]})):s.forEach((function(a,s){Be(a),e(t[a],n,r[s[0]],i,o+1)}))}(a._data,s,f,v,0)}return a;default:throw new SyntaxError("Wrong number of arguments")}},t.prototype.get=function(e){if(!f(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new Ie(e.length,this._size.length);for(var t=0;tArray.isArray(e)&&1===e.length?e[0]:e),n(r?this.clone():this,e,t);throw new TypeError("Array or Matrix expected")},t.prototype.reshape=function(e,t){t=t?this.clone():this;var n=(t._data=Le(t._data,e),t._size.reduce((e,t)=>e*t));return t._size=ze(e,n),t},t.prototype.clone=function(){return new t({data:H(this._data),size:H(this._size),datatype:this._datatype})},t.prototype.size=function(){return this._size.slice(0)},t.prototype.map=function(e){var n=this,r=function t(r,i){return f(r)?r.map((function(e,n){return t(e,i.concat(n))})):e(r,i,n)}(this._data,[]);return new t(r,void 0!==this._datatype?Ze(r,U):void 0)},t.prototype.forEach=function(e){var t=this;(function n(r,i){f(r)?r.forEach((function(e,t){n(e,i.concat(t))})):e(r,i,t)})(this._data,[])},t.prototype[Symbol.iterator]=function*(){yield*function*e(t,n){if(f(t))for(var r=0;r[e[r]]);n.push(new t(o,e._datatype))}(o);return n},t.prototype.toArray=function(){return H(this._data)},t.prototype.valueOf=function(){return this._data},t.prototype.format=function(e){return De(this._data,e)},t.prototype.toString=function(){return De(this._data)},t.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},t.prototype.diagonal=function(e){if(e){if(!a(e=s(e)?e.toNumber():e)||!oe(e))throw new TypeError("The parameter k must be an integer number")}else e=0;for(var n=0function(e,t){return"number"!=typeof t||isFinite(t)&&!isNaN(t)?t:{mathjs:"number",value:String(t)}}),Un=(r=n("7634"),n.n(r));function Hn(e,t){if(Xn(e)&&Yn(e,t))return e[t];if("function"==typeof e[t]&&Gn(e,t))throw new Error('Cannot access method "'+t+'" as a property');throw new Error('No access to property "'+t+'"')}function Wn(e,t,n){if(!Xn(e)||!Yn(e,t))throw new Error('No access to property "'+t+'"');e[t]=n}function Yn(e,t){return e&&"object"==typeof e&&(K(Qn,t)||!(t in Object.prototype||t in Function.prototype))}function Gn(e,t){return null!=e&&"function"==typeof e[t]&&!(K(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e))&&(K(Kn,t)||!(t in Object.prototype||t in Function.prototype))}function Xn(e){return"object"==typeof e&&e&&e.constructor===Object}var Qn={length:!0,name:!0},Kn={toString:!0,valueOf:!0,toLocaleString:!0};class Jn{constructor(e){this.wrappedObject=e}keys(){return Object.keys(this.wrappedObject)}get(e){return Hn(this.wrappedObject,e)}set(e,t){return Wn(this.wrappedObject,e,t),this}has(e){return t=this.wrappedObject,e in t;var t}}function Zn(){return new Map}function er(e){if(!e)return Zn();if(tr(e))return e;if(A(e))return new Jn(e);throw new Error("createMap can create maps from objects or Maps")}function tr(e){return!!e&&(e instanceof Map||e instanceof Jn||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}function nr(e){for(var t,n=arguments.length,r=new Array(115 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new t(e)}},{from:"number",to:"Complex",convert:function(e){return n||ar(e),new n(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return n||ar(e),new n(e.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return n||ar(e),new n(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||sr(e);var t=new i(e);if(t.valueOf()!==e)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw new Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(n){t||or(n);try{return new t(n)}catch(e){throw new Error('Cannot convert "'+n+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(t){i||sr(t);try{return new i(t)}catch(e){throw new Error('Cannot convert "'+t+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(t){n||ar(t);try{return new n(t)}catch(e){throw new Error('Cannot convert "'+t+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return t||or(e),new t(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||sr(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){if(r)return new r(e);throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}],e}));function or(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function ar(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function sr(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}function ur(e){for(var t=e.length,n=e[0].length,r=[],i=0;i=r.length)throw new Pe(t,r.length);return p(e)?e.create(pr(e.valueOf(),t,n)):pr(e,t,n)}function pr(e,t,n){var r,i,o,a;if(t<=0){if(Array.isArray(e[0])){for(a=ur(e),i=[],r=0;r{var{typed:e,config:t,BigNumber:n}=e;return e("unaryPlus",{number:xr,Complex:function(e){return e},BigNumber:function(e){return e},Fraction:function(e){return e},Unit:function(e){return e.clone()},"Array | Matrix":function(e){return dr(e,this,!0)},"boolean | string":function(e){return"BigNumber"===t.number?new n(+e):+e}})}),Rr=tt("abs",["typed"],e=>(e=e.typed,e("abs",{number:gr,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},Fraction:function(e){return e.abs()},"Array | Matrix":function(e){return dr(e,this,!0)},Unit:function(e){return e.abs()}}))),Br=tt("acos",["typed","config","Complex"],e=>{var{typed:e,config:t,Complex:n}=e;return e("acos",{number:function(e){return-1<=e&&e<=1||t.predictable?Math.acos(e):new n(e,0).acos()},Complex:function(e){return e.acos()},BigNumber:function(e){return e.acos()},"Array | Matrix":function(e){return dr(e,this)}})});r="number";function Fr(e){return we(e)}function Lr(e){return Math.atan(1/e)}function zr(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}function Vr(e){return Math.asin(1/e)}function qr(e){return e=1/e,Math.log(e+Math.sqrt(e*e+1))}function Ur(e){return Math.acos(1/e)}function Hr(e){e=1/e;var t=Math.sqrt(e*e-1);return Math.log(t+e)}function Wr(e){return _e(e)}function Yr(e){return Se(e)}function Gr(e){return 1/Math.tan(e)}function Xr(e){return e=Math.exp(2*e),(e+1)/(e-1)}function Qr(e){return 1/Math.sin(e)}function Kr(e){return 0===e?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*ae(e)}function Jr(e){return 1/Math.cos(e)}function Zr(e){return 2/(Math.exp(e)+Math.exp(-e))}function ei(e){return Ae(e)}ei.signature=Zr.signature=Jr.signature=Kr.signature=Qr.signature=Xr.signature=Gr.signature=Yr.signature=Wr.signature=Hr.signature=Ur.signature=qr.signature=Vr.signature=zr.signature=Lr.signature=Fr.signature=r;var ti=tt("acot",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("acot",{number:Lr,Complex:function(e){return e.acot()},BigNumber:function(e){return new t(1).div(e).atan()},"Array | Matrix":function(e){return dr(e,this)}})}),ni=tt("acsc",["typed","config","Complex","BigNumber"],e=>{var{typed:e,config:t,Complex:n,BigNumber:r}=e;return e("acsc",{number:function(e){return e<=-1||1<=e||t.predictable?Vr(e):new n(e,0).acsc()},Complex:function(e){return e.acsc()},BigNumber:function(e){return new r(1).div(e).asin()},"Array | Matrix":function(e){return dr(e,this)}})}),ri=tt("addScalar",["typed"],e=>(e=e.typed,e("addScalar",{"number, number":vr,"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":function(e,t){if(null===e.value||void 0===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value||void 0===t.value)throw new Error("Parameter y contains a unit with undefined value");if(e.equalBase(t))return(e=e.clone()).value=this(e.value,t.value),e.fixPrefix=!1,e;throw new Error("Units do not match")}}))),ii=tt("arg",["typed"],e=>(e=e.typed,e("arg",{number:function(e){return Math.atan2(0,e)},BigNumber:function(e){return e.constructor.atan2(0,e)},Complex:function(e){return e.arg()},"Array | Matrix":function(e){return dr(e,this)}}))),oi=tt("asech",["typed","config","Complex","BigNumber"],e=>{var{typed:e,config:t,Complex:n,BigNumber:r}=e;return e("asech",{number:function(e){var r,i;return e<=1&&-1<=e||t.predictable?0<(r=1/e)||t.predictable?Hr(e):(i=Math.sqrt(r*r-1),new n(Math.log(i-r),Math.PI)):new n(e,0).asech()},Complex:function(e){return e.asech()},BigNumber:function(e){return new r(1).div(e).acosh()},"Array | Matrix":function(e){return dr(e,this)}})}),ai=tt("asinh",["typed"],e=>(e=e.typed,e("asinh",{number:Wr,Complex:function(e){return e.asinh()},BigNumber:function(e){return e.asinh()},"Array | Matrix":function(e){return dr(e,this,!0)}}))),si=tt("atan",["typed"],e=>(e=e.typed,e("atan",{number:function(e){return Math.atan(e)},Complex:function(e){return e.atan()},BigNumber:function(e){return e.atan()},"Array | Matrix":function(e){return dr(e,this,!0)}}))),ui=tt("atanh",["typed","config","Complex"],e=>{var{typed:e,config:t,Complex:n}=e;return e("atanh",{number:function(e){return e<=1&&-1<=e||t.predictable?Yr(e):new n(e,0).atanh()},Complex:function(e){return e.atanh()},BigNumber:function(e){return e.atanh()},"Array | Matrix":function(e){return dr(e,this,!0)}})}),ci=tt("bignumber",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("bignumber",{"":function(){return new t(0)},number:function(e){return new t(e+"")},string:function(e){var n=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(n){var r=n[2],i=(n=t(n[1]),new t(2).pow(Number(r)));if(n.gt(i.sub(1)))throw new SyntaxError('String "'.concat(e,'" is out of range'));return r=new t(2).pow(Number(r)-1),n.gte(r)?n.sub(i):n}return new t(e)},BigNumber:function(e){return e},Fraction:function(e){return new t(e.n).div(e.d).times(e.s)},null:function(e){return new t(0)},"Array | Matrix":function(e){return dr(e,this)}})});function li(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitAnd");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);if(e.isZero()||t.eq(-1)||e.eq(t))return e;if(t.isZero()||e.eq(-1))return t;if(!e.isFinite()||!t.isFinite()){if(!e.isFinite()&&!t.isFinite())return e.isNegative()===t.isNegative()?e:new n(0);if(!e.isFinite())return t.isNegative()?e:e.isNegative()?new n(0):t;if(!t.isFinite())return e.isNegative()?t:t.isNegative()?new n(0):e}return pi(e,t,(function(e,t){return e&t}))}function di(e){if(e.isFinite()&&!e.isInteger())throw new Error("Integer expected in function bitNot");var t=e.constructor,n=t.precision;t.config({precision:1e9}),e=e.plus(new t(1));return e.s=-e.s||null,t.config({precision:n}),e}function fi(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitOr");var n=e.constructor;return e.isNaN()||t.isNaN()?new n(NaN):(n=new n(-1),e.isZero()||t.eq(n)||e.eq(t)?t:t.isZero()||e.eq(n)?e:e.isFinite()&&t.isFinite()?pi(e,t,(function(e,t){return e|t})):!e.isFinite()&&!e.isNegative()&&t.isNegative()||e.isNegative()&&!t.isNegative()&&!t.isFinite()?n:e.isNegative()&&t.isNegative()?e.isFinite()?e:t:e.isFinite()?t:e)}function pi(e,t,n){var r,i,o=e.constructor,a=+(e.s<0),s=+(t.s<0);if(a)for(var u=hi(di(e)),c=0;ce)for(s-=e;s--;)u+="0";else s>1,c[f]&=1)}return c.reverse()}function mi(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitXor");var n,r=e.constructor;return e.isNaN()||t.isNaN()?new r(NaN):e.isZero()?t:t.isZero()?e:e.eq(t)?new r(0):(n=new r(-1),e.eq(n)?di(t):t.eq(n)?di(e):e.isFinite()&&t.isFinite()?pi(e,t,(function(e,t){return e^t})):e.isFinite()||t.isFinite()?new r(e.isNegative()===t.isNegative()?1/0:-1/0):n)}function gi(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function leftShift");var n=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new n(NaN):e.isZero()||t.isZero()?e:e.isFinite()||t.isFinite()?t.lt(55)?e.times(Math.pow(2,t.toNumber())+""):e.times(new n(2).pow(t)):new n(NaN)}function vi(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function rightArithShift");var n=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new n(NaN):e.isZero()||t.isZero()?e:t.isFinite()?(t.lt(55)?e.div(Math.pow(2,t.toNumber())+""):e.div(new n(2).pow(t))).floor():e.isNegative()?new n(-1):e.isFinite()?new n(0):new n(NaN)}function yi(e,t){if(oe(e)&&oe(t))return e&t;throw new Error("Integers expected in function bitAnd")}function bi(e){if(oe(e))return~e;throw new Error("Integer expected in function bitNot")}function xi(e,t){if(oe(e)&&oe(t))return e|t;throw new Error("Integers expected in function bitOr")}function wi(e,t){if(oe(e)&&oe(t))return e^t;throw new Error("Integers expected in function bitXor")}function _i(e,t){if(oe(e)&&oe(t))return e<>t;throw new Error("Integers expected in function rightArithShift")}function Ci(e,t){if(oe(e)&&oe(t))return e>>>t;throw new Error("Integers expected in function rightLogShift")}mr="number, number",yi.signature=mr,bi.signature="number",Ci.signature=Si.signature=_i.signature=wi.signature=xi.signature=mr;var Ai=tt("bitNot",["typed"],e=>(e=e.typed,e("bitNot",{number:bi,BigNumber:di,"Array | Matrix":function(e){return dr(e,this)}}))),Ei=tt("boolean",["typed"],e=>(e=e.typed,e("boolean",{"":function(){return!1},boolean:function(e){return e},number:function(e){return!!e},null:function(e){return!1},BigNumber:function(e){return!e.isZero()},string:function(e){var t=e.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if(t=Number(e),""===e||isNaN(t))throw new Error('Cannot convert "'+e+'" to a boolean');return!!t},"Array | Matrix":function(e){return dr(e,this)}}))),Ni=tt("clone",["typed"],e=>(e=e.typed,e("clone",{any:H})));function ki(e,t){return t>1)*ki(1+e,t)}function Oi(e,t){if(!oe(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!oe(t)||t<0)throw new TypeError("Positive integer value expected in function combinations");if(e(e=e.typed,e(Di,{"number, number":Oi,"BigNumber, BigNumber":function(e,t){var n,r,i=e.constructor,o=e.minus(t),a=new i(1);if(!Ti(e)||!Ti(t))throw new TypeError("Positive integer value expected in function combinations");if(t.gt(e))throw new TypeError("k must be less than n in function combinations");if(n=a,t.lt(o))for(r=a;r.lte(o);r=r.plus(a))n=n.times(t.plus(r)).dividedBy(r);else for(r=a;r.lte(t);r=r.plus(a))n=n.times(o.plus(r)).dividedBy(r);return n}})));function Ti(e){return e.isInteger()&&e.gte(0)}var ji=tt("complex",["typed","Complex"],e=>{var{typed:e,Complex:t}=e;return e("complex",{"":function(){return t.ZERO},number:function(e){return new t(e,0)},"number, number":function(e,n){return new t(e,n)},"BigNumber, BigNumber":function(e,n){return new t(e.toNumber(),n.toNumber())},Fraction:function(e){return new t(e.valueOf(),0)},Complex:function(e){return e.clone()},string:function(e){return t(e)},null:function(e){return t(0)},Object:function(e){if("re"in e&&"im"in e)return new t(e.re,e.im);if("r"in e&&"phi"in e||"abs"in e&&"arg"in e)return new t(e);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":function(e){return dr(e,this)}})}),Ii=tt("conj",["typed"],e=>(e=e.typed,e("conj",{number:function(e){return e},BigNumber:function(e){return e},Complex:function(e){return e.conjugate()},"Array | Matrix":function(e){return dr(e,this)}}))),Pi=tt("cosh",["typed"],e=>(e=e.typed,e("cosh",{number:Ce,Complex:function(e){return e.cosh()},BigNumber:function(e){return e.cosh()},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function cosh is no angle")},"Array | Matrix":function(e){return dr(e,this)}}))),$i=tt("coth",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("coth",{number:Xr,Complex:function(e){return e.coth()},BigNumber:function(e){return new t(1).div(e.tanh())},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function coth is no angle")},"Array | Matrix":function(e){return dr(e,this)}})}),Ri=tt("csc",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("csc",{number:Qr,Complex:function(e){return e.csc()},BigNumber:function(e){return new t(1).div(e.sin())},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function csc is no angle")},"Array | Matrix":function(e){return dr(e,this)}})}),Bi=tt("cube",["typed"],e=>(e=e.typed,e("cube",{number:_r,Complex:function(e){return e.mul(e).mul(e)},BigNumber:function(e){return e.times(e).times(e)},Fraction:function(e){return e.pow(3)},"Array | Matrix":function(e){return dr(e,this,!0)},Unit:function(e){return e.pow(3)}})));function Fi(e,t,n){var r;return null==n?e.eq(t):!!e.eq(t)||!e.isNaN()&&!t.isNaN()&&!(!e.isFinite()||!t.isFinite())&&(!!(r=e.minus(t).abs()).isZero()||(e=e.constructor.max(e.abs(),t.abs()),r.lte(e.times(n))))}var Li="equalScalar",zi=tt(Li,["typed","config"],e=>{var{typed:e,config:t}=e;return e(Li,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,n){return xe(e,n,t.epsilon)},"BigNumber, BigNumber":function(e,n){return e.eq(n)||Fi(e,n,t.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,n){return e=e,n=n,r=t.epsilon,xe(e.re,n.re,r)&&xe(e.im,n.im,r);var r},"Unit, Unit":function(e,t){if(e.equalBase(t))return this(e.value,t.value);throw new Error("Cannot compare units with different base")}})}),Vi=(tt(Li,["typed","config"],e=>{var{typed:e,config:t}=e;return e(Li,{"number, number":function(e,n){return xe(e,n,t.epsilon)}})}),tt("erf",["typed"],e=>(e=e.typed,e("name",{number:function(e){var t=Math.abs(e);return Yi<=t?ae(e):t<=qi?ae(e)*function(e){var t,n=e*e,r=Hi[0][4]*n,i=n;for(t=0;t<3;t+=1)r=(r+Hi[0][t])*n,i=(i+Wi[0][t])*n;return e*(r+Hi[0][3])/(i+Wi[0][3])}(t):t<=4?ae(e)*(1-function(e){var t,n=Hi[1][8]*e,r=e;for(t=0;t<7;t+=1)n=(n+Hi[1][t])*e,r=(r+Wi[1][t])*e;var i=(n+Hi[1][7])/(r+Wi[1][7]),o=parseInt(16*e)/16,a=(e-o)*(e+o);return Math.exp(-o*o)*Math.exp(-a)*i}(t)):ae(e)*(1-function(e){var t,n=1/(e*e),r=Hi[2][5]*n,i=n;for(t=0;t<4;t+=1)r=(r+Hi[2][t])*n,i=(i+Wi[2][t])*n;var o=n*(r+Hi[2][4])/(i+Wi[2][4]);o=(Ui-o)/e,n=parseInt(16*e)/16,e=(e-n)*(e+n);return Math.exp(-n*n)*Math.exp(-e)*o}(t))},"Array | Matrix":function(e){return dr(e,this)}})))),qi=.46875,Ui=.5641895835477563,Hi=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,2.1531153547440383e-8],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],Wi=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],Yi=Math.pow(2,53),Gi=tt("exp",["typed"],e=>(e=e.typed,e("exp",{number:Sr,Complex:function(e){return e.exp()},BigNumber:function(e){return e.exp()},"Array | Matrix":function(e){return dr(e,this)}}))),Xi=tt("expm1",["typed","Complex"],e=>{var{typed:e,Complex:t}=e;return e("expm1",{number:Cr,Complex:function(e){var n=Math.exp(e.re);return new t(n*Math.cos(e.im)-1,n*Math.sin(e.im))},BigNumber:function(e){return e.exp().minus(1)},"Array | Matrix":function(e){return dr(e,this)}})}),Qi=tt("filter",["typed"],e=>(e=e.typed,e("filter",{"Array, function":Ki,"Matrix, function":function(e,t){return e.create(Ki(e.toArray(),t))},"Array, RegExp":Xe,"Matrix, RegExp":function(e,t){return e.create(Xe(e.toArray(),t))}})));function Ki(e,t){var n=ct(t);return Ge(e,(function(e,r,i){return 1===n?t(e):2===n?t(e,[r]):t(e,[r],i)}))}var Ji=tt("forEach",["typed"],e=>(e=e.typed,e("forEach",{"Array, function":Zi,"Matrix, function":function(e,t){return e.forEach(t)}})));function Zi(e,t){var n=ct(t);(function r(i,o){Array.isArray(i)?Ye(i,(function(e,t){r(e,o.concat(t))})):1===n?t(i):2===n?t(i,o):t(i,o,e)})(e,[])}var eo=tt("format",["typed"],e=>(e=e.typed,e("format",{any:De,"any, Object | function | number":De}))),to="getMatrixDataType",no=tt(to,["typed"],e=>(e=e.typed,e(to,{Array:function(e){return Ze(e,U)},Matrix:function(e){return e.getDataType()}}))),ro=tt("hex",["typed","format"],e=>{var{typed:e,format:t}=e;return e("hex",{"number | BigNumber":function(e){return t(e,{notation:"hex"})},"number | BigNumber, number":function(e,n){return t(e,{notation:"hex",wordSize:n})}})}),io=tt("im",["typed"],e=>(e=e.typed,e("im",{number:function(e){return 0},BigNumber:function(e){return e.mul(0)},Fraction:function(e){return e.mul(0)},Complex:function(e){return e.im},"Array | Matrix":function(e){return dr(e,this)}}))),oo=tt("isInteger",["typed"],e=>(e=e.typed,e("isInteger",{number:oe,BigNumber:function(e){return e.isInt()},Fraction:function(e){return 1===e.d&&isFinite(e.n)},"Array | Matrix":function(e){return dr(e,this)}})));r="number";function ao(e){return e<0}function so(e){return 0(e=e.typed,e(lo,{number:ao,BigNumber:function(e){return e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return e.s<0},Unit:function(e){return this(e.value)},"Array | Matrix":function(e){return dr(e,this)}}))),po="isPositive",ho=tt(po,["typed"],e=>(e=e.typed,e(po,{number:so,BigNumber:function(e){return!e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return 0(e=e.typed,e("isZero",{number:uo,BigNumber:function(e){return e.isZero()},Complex:function(e){return 0===e.re&&0===e.im},Fraction:function(e){return 1===e.d&&0===e.n},Unit:function(e){return this(e.value)},"Array | Matrix":function(e){return dr(e,this)}})));function go(e){var t,n,r;if(oe(e))return e<=0?isFinite(e)?1/0:NaN:171{var{Complex:t,typed:e}=e,n=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return e("lgamma",{number:wo,Complex:function(e){var n,o,a;return e.isNaN()?new t(NaN,NaN):0===e.im?new t(wo(e.re),0):7<=e.re||7<=Math.abs(e.im)?r(e):e.re<=.1?(o=6.283185307179586,a=e.im,a=((0{var{typed:e,config:t,Complex:n}=e;return e("log10",{number:function(e){return 0<=e||t.predictable?Nr(e):new n(e,0).log().div(Math.LN10)},Complex:function(e){return new n(e).log().div(Math.LN10)},BigNumber:function(e){return!e.isNegative()||t.predictable?e.log():new n(e.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":function(e){return dr(e,this)}})}),Co=tt("log2",["typed","config","Complex"],e=>{var{typed:e,config:t,Complex:n}=e;return e("log2",{number:function(e){return 0<=e||t.predictable?kr(e):r(new n(e,0))},Complex:r,BigNumber:function(e){return!e.isNegative()||t.predictable?e.log(2):r(new n(e.toNumber(),0))},"Array | Matrix":function(e){return dr(e,this)}});function r(e){var t=Math.sqrt(e.re*e.re+e.im*e.im);return new n(Math.log2?Math.log2(t):Math.log(t)/Math.LN2,Math.atan2(e.im,e.re)/Math.LN2)}}),Ao=tt("map",["typed"],e=>(e=e.typed,e("map",{"Array, function":Eo,"Matrix, function":function(e,t){return e.map(t)}})));function Eo(e,t){var n=ct(t);return function r(i,o){if(Array.isArray(i))return i.map((function(e,t){return r(e,o.concat(t))}));try{return 1===n?t(i):2===n?t(i,o):t(i,o,e)}catch(t){var a;if(t instanceof TypeError&&"data"in t&&"wrongType"===t.data.category)throw i="map attempted to call '".concat(t.data.fn,"(").concat(i),a=JSON.stringify(o),2===n?i+=","+a:1!==n&&(i+=",".concat(a,",").concat(e)),i=(i=(i+=")' but argument ".concat(t.data.index+1," of type "))+"".concat(t.data.actual," does not match expected type "))+t.data.expected.join(" or "),new TypeError(i);throw t}}(e,[])}var No=tt("multiplyScalar",["typed"],e=>(e=e.typed,e("multiplyScalar",{"number, number":yr,"Complex, Complex":function(e,t){return e.mul(t)},"BigNumber, BigNumber":function(e,t){return e.times(t)},"Fraction, Fraction":function(e,t){return e.mul(t)},"number | Fraction | BigNumber | Complex, Unit":function(e,t){return t=t.clone(),t.value=null===t.value?t._normalize(e):this(t.value,e),t},"Unit, number | Fraction | BigNumber | Complex":function(e,t){return e=e.clone(),e.value=null===e.value?e._normalize(t):this(e.value,t),e},"Unit, Unit":function(e,t){return e.multiply(t)}})));mr="number, number";function ko(e){return!e}function Oo(e,t){return!(!e&&!t)}function Do(e,t){return!!e!=!!t}function Mo(e,t){return!(!e||!t)}ko.signature="number",Mo.signature=Do.signature=Oo.signature=mr;var To=tt("not",["typed"],e=>(e=e.typed,e("not",{number:ko,Complex:function(e){return 0===e.re&&0===e.im},BigNumber:function(e){return e.isZero()||e.isNaN()},Unit:function(e){return null===e.value||this(e.value)},"Array | Matrix":function(e){return dr(e,this)}}))),jo=tt("number",["typed"],e=>(e=e.typed,e=e("number",{"":function(){return 0},number:function(e){return e},string:function(e){if("NaN"===e)return NaN;var t=(r=(t=e).match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/))?{input:t,radix:{"0b":2,"0o":8,"0x":16}[r[1]],integerPart:r[2],fractionalPart:r[3]}:null;if(t){for(var n=t,r=parseInt(n.integerPart,n.radix),i=0,o=0;o{var{typed:e,format:t}=e;return e("oct",{"number | BigNumber":function(e){return t(e,{notation:"oct"})},"number | BigNumber, number":function(e,n){return t(e,{notation:"oct",wordSize:n})}})}),Po=(r=n("6125"),n.n(r)),$o=Po()(Date.now());function Ro(e){var t;return t=null===(e=e)?$o:Po()(String(e)),function(){return t()}}var Bo="pickRandom",Fo=tt(Bo,["typed","config","?on"],e=>{var{typed:e,config:t,on:n}=e,r=Ro(t.randomSeed);return n&&n("config",(function(e,t){e.randomSeed!==t.randomSeed&&(r=Ro(e.randomSeed))})),e(Bo,{"Array | Matrix":function(e){return i(e,{})},"Array | Matrix, Object":i,"Array | Matrix, number":function(e,t){return i(e,{number:t})},"Array | Matrix, Array | Matrix":function(e,t){return i(e,{weights:t})},"Array | Matrix, Array | Matrix, number":function(e,t,n){return i(e,{number:n,weights:t})},"Array | Matrix, number, Array | Matrix":function(e,t,n){return i(e,{number:t,weights:n})}});function i(e,t){var{number:n,weights:i,elementWise:t=!0}=t,o=void 0===n,s=(o&&(n=1),p(e)?e.create:p(i)?i.create:null),u=(e=e.valueOf(),i=i&&i.valueOf(),!0===t&&(e=He(e),i=He(i)),0);if(void 0!==i){if(i.length!==e.length)throw new Error("Weights must have the same length as possibles");for(var c=0,l=i.length;c(e=e.typed,e("print",{"string, Object | Array":zo,"string, Object | Array, number | Object":zo})));function zo(e,t,n){return e.replace(/\$([\w.]+)/g,(function(e,r){for(var i=r.split("."),o=t[i.shift()];i.length&&void 0!==o;){var a=i.shift();o=a?o[a]:o+"."}return void 0!==o?d(o)?o:De(o,n):e}))}function Vo(e,t){var n=[];if(1<(e=e.slice(0)).length)for(var r=0,i=e.shift();r{var{typed:e,config:t,on:n}=e,r=Ro(t.randomSeed);return n&&n("config",(function(e,t){e.randomSeed!==t.randomSeed&&(r=Ro(e.randomSeed))})),e(qo,{"":()=>o(0,1),number:e=>o(0,e),"number, number":(e,t)=>o(e,t),"Array | Matrix":e=>i(e,0,1),"Array | Matrix, number":(e,t)=>i(e,0,t),"Array | Matrix, number, number":(e,t,n)=>i(e,t,n)});function i(e,t,n){var r=Vo(e.valueOf(),()=>o(t,n));return p(e)?e.create(r):r}function o(e,t){return e+r()*(t-e)}}),Ho=tt("re",["typed"],e=>(e=e.typed,e("re",{number:function(e){return e},BigNumber:function(e){return e},Fraction:function(e){return e},Complex:function(e){return e.re},"Array | Matrix":function(e){return dr(e,this)}}))),Wo=tt("sec",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("sec",{number:Jr,Complex:function(e){return e.sec()},BigNumber:function(e){return new t(1).div(e.cos())},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function sec is no angle")},"Array | Matrix":function(e){return dr(e,this)}})}),Yo=tt("sign",["typed","BigNumber","Fraction","complex"],e=>{var{typed:e,BigNumber:t,complex:n,Fraction:r}=e;return e("sign",{number:Mr,Complex:function(e){return 0===e.im?n(Mr(e.re)):e.sign()},BigNumber:function(e){return new t(e.cmp(0))},Fraction:function(e){return new r(e.s,1)},"Array | Matrix":function(e){return dr(e,this,!0)},Unit:function(e){if(e._isDerived()||0===e.units[0].unit.offset)return this(e.value);throw new TypeError("sign is ambiguous for units with offset")}})}),Go=tt("sin",["typed"],e=>(e=e.typed,e("sin",{number:Math.sin,Complex:function(e){return e.sin()},BigNumber:function(e){return e.sin()},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function sin is no angle")},"Array | Matrix":function(e){return dr(e,this,!0)}}))),Xo=tt("SparseMatrix",["typed","equalScalar","Matrix"],e=>{var{typed:t,equalScalar:n,Matrix:e}=e;function r(e,t){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!d(t))throw new Error("Invalid datatype: "+t);if(p(e))n=this,a=t,"SparseMatrix"===(o=e).type?(n._values=o._values?H(o._values):void 0,n._index=H(o._index),n._ptr=H(o._ptr),n._size=H(o._size),n._datatype=a||o._datatype):i(n,o.valueOf(),a||o._datatype);else if(e&&f(e.index)&&f(e.ptr)&&f(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if(f(e))i(this,e,t);else{if(e)throw new TypeError("Unsupported type of data ("+U(e)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}var n,o,a}function i(e,r,i){e._values=[],e._index=[],e._ptr=[],e._datatype=i;var o=r.length,a=0,s=n,u=0;if(d(i)&&(s=t.find(n,[i,i])||n,u=t.convert(0,i)),0");1===O.length?v.dimension(0).forEach((function(e,t){Be(e),C.set([e,0],A[t[0]],E)})):(o=v.dimension(0),k=v.dimension(1),o.forEach((function(e,t){Be(e),k.forEach((function(n,r){Be(n),C.set([e,n],A[t[0]][r[0]],E)}))})))}return C;default:throw new SyntaxError("Wrong number of arguments")}},r.prototype.get=function(e){if(!f(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new Ie(e.length,this._size.length);var t,n;if(this._values)return t=e[0],e=e[1],Be(t,this._size[0]),Be(e,this._size[1]),(n=o(t,this._ptr[e],this._ptr[e+1],this._index))Array.isArray(e)&&1===e.length?e[0]:e);if(2!==r.length)throw new Error("Only two dimensions matrix are supported");return r.forEach((function(e){if(!a(e)||!oe(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+De(r)+")")})),c(n?this.clone():this,r[0],r[1],t)},r.prototype.reshape=function(e,t){if(!f(e))throw new TypeError("Array expected");if(2!==e.length)throw new Error("Sparse matrices can only be reshaped in two dimensions");e.forEach((function(t){if(!a(t)||!oe(t)||t<=-2||0===t)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+De(e)+")")}));var n=this._size[0]*this._size[1];if(n!=(e=ze(e,n))[0]*e[1])throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var r=t?this.clone():this;if(this._size[0]!==e[0]||this._size[1]!==e[1]){for(var i=[],s=0;s "+(this._values?De(this._values[u],e):"X");return i},r.prototype.toString=function(){return De(this.toArray())},r.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},r.prototype.diagonal=function(e){if(e){if(!a(e=s(e)?e.toNumber():e)||!oe(e))throw new TypeError("The parameter k must be an integer number")}else e=0;var t=0(e=e.typed,e("splitUnit",{"Unit, Array":function(e,t){return e.splitUnit(t)}}))),Ko=tt("square",["typed"],e=>(e=e.typed,e("square",{number:Tr,Complex:function(e){return e.mul(e)},BigNumber:function(e){return e.times(e)},Fraction:function(e){return e.mul(e)},"Array | Matrix":function(e){return dr(e,this,!0)},Unit:function(e){return e.pow(2)}}))),Jo=tt("string",["typed"],e=>(e=e.typed,e("string",{"":function(){return""},number:pe,null:function(e){return"null"},boolean:function(e){return e+""},string:function(e){return e},"Array | Matrix":function(e){return dr(e,this)},any:function(e){return String(e)}}))),Zo=tt("tan",["typed"],e=>(e=e.typed,e("tan",{number:Math.tan,Complex:function(e){return e.tan()},BigNumber:function(e){return e.tan()},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function tan is no angle")},"Array | Matrix":function(e){return dr(e,this,!0)}}))),ea=tt("typeOf",["typed"],e=>(e=e.typed,e("typeOf",{any:U}))),ta=tt("acosh",["typed","config","Complex"],e=>{var{typed:e,config:t,Complex:n}=e;return e("acosh",{number:function(e){return 1<=e||t.predictable?Fr(e):e<=-1?new n(Math.log(Math.sqrt(e*e-1)-e),Math.PI):new n(e,0).acosh()},Complex:function(e){return e.acosh()},BigNumber:function(e){return e.acosh()},"Array | Matrix":function(e){return dr(e,this)}})}),na=tt("acsch",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("acsch",{number:qr,Complex:function(e){return e.acsch()},BigNumber:function(e){return new t(1).div(e).asinh()},"Array | Matrix":function(e){return dr(e,this)}})}),ra=tt("apply",["typed","isInteger"],e=>{var{typed:e,isInteger:t}=e;return e("apply",{"Array | Matrix, number | BigNumber, function":function(e,n,r){if(!t(n))throw new TypeError("Integer number expected for dimension");var i=Array.isArray(e)?$e(e):e.size();if(n<0||n>=i.length)throw new Pe(n,i.length);return p(e)?e.create(ia(e.valueOf(),n,r)):ia(e,n,r)}})});function ia(e,t,n){var r,i,o;if(t<=0){if(Array.isArray(e[0])){for(o=function(e){var t,n,r=e.length,i=e[0].length,o=[];for(n=0;n{var{typed:e,config:t,Complex:n,BigNumber:r}=e;return e("asec",{number:function(e){return e<=-1||1<=e||t.predictable?Ur(e):new n(e,0).asec()},Complex:function(e){return e.asec()},BigNumber:function(e){return new r(1).div(e).acos()},"Array | Matrix":function(e){return dr(e,this)}})}),aa=tt("bin",["typed","format"],e=>{var{typed:e,format:t}=e;return e("bin",{"number | BigNumber":function(e){return t(e,{notation:"bin"})},"number | BigNumber, number":function(e,n){return t(e,{notation:"bin",wordSize:n})}})}),sa="combinationsWithRep",ua=tt(sa,["typed"],e=>(e=e.typed,e(sa,{"number, number":function(e,t){if(!oe(e)||e<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!oe(t)||t<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(e<1)throw new TypeError("k must be less than or equal to n + k - 1");return t(e=e.typed,e("cos",{number:Math.cos,Complex:function(e){return e.cos()},BigNumber:function(e){return e.cos()},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function cos is no angle")},"Array | Matrix":function(e){return dr(e,this)}}))),da=tt("csch",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("csch",{number:Kr,Complex:function(e){return e.csch()},BigNumber:function(e){return new t(1).div(e.sinh())},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function csch is no angle")},"Array | Matrix":function(e){return dr(e,this)}})}),fa=tt("isNaN",["typed"],e=>(e=e.typed,e("isNaN",{number:co,BigNumber:function(e){return e.isNaN()},Fraction:function(e){return!1},Complex:function(e){return e.isNaN()},Unit:function(e){return Number.isNaN(e.value)},"Array | Matrix":function(e){return dr(e,Number.isNaN)}}))),pa=tt("isPrime",["typed"],e=>(e=e.typed,e("isPrime",{number:function(e){if(0*e!=0)return!1;if(e<=3)return 1t{var{typed:e,config:t,on:n}=e,r=Ro(t.randomSeed);return n&&n("config",(function(e,t){e.randomSeed!==t.randomSeed&&(r=Ro(e.randomSeed))})),e("randomInt",{"":()=>o(0,1),number:e=>o(0,e),"number, number":(e,t)=>o(e,t),"Array | Matrix":e=>i(e,0,1),"Array | Matrix, number":(e,t)=>i(e,0,t),"Array | Matrix, number, number":(e,t,n)=>i(e,t,n)});function i(e,t,n){var r=Vo(e.valueOf(),()=>o(t,n));return p(e)?e.create(r):r}function o(e,t){return Math.floor(e+r()*(t-e))}}),ma=tt("sech",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("sech",{number:Zr,Complex:function(e){return e.sech()},BigNumber:function(e){return new t(1).div(e.cosh())},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function sech is no angle")},"Array | Matrix":function(e){return dr(e,this)}})}),ga=tt("sinh",["typed"],e=>(e=e.typed,e("sinh",{number:ei,Complex:function(e){return e.sinh()},BigNumber:function(e){return e.sinh()},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function sinh is no angle")},"Array | Matrix":function(e){return dr(e,this,!0)}}))),va=tt("sparse",["typed","SparseMatrix"],e=>{var{typed:e,SparseMatrix:t}=e;return e("sparse",{"":function(){return new t([])},string:function(e){return new t([],e)},"Array | Matrix":function(e){return new t(e)},"Array | Matrix, string":function(e,n){return new t(e,n)}})}),ya=tt("sqrt",["config","typed","Complex"],e=>{var{config:t,typed:e,Complex:n}=e;return e("sqrt",{number:r,Complex:function(e){return e.sqrt()},BigNumber:function(e){return!e.isNegative()||t.predictable?e.sqrt():r(e.toNumber())},"Array | Matrix":function(e){return dr(e,this,!0)},Unit:function(e){return e.pow(.5)}});function r(e){return isNaN(e)?NaN:0<=e||t.predictable?Math.sqrt(e):new n(e,0).sqrt()}}),ba=tt("tanh",["typed"],e=>(e=e.typed,e("tanh",{number:Ee,Complex:function(e){return e.tanh()},BigNumber:function(e){return e.tanh()},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function tanh is no angle")},"Array | Matrix":function(e){return dr(e,this,!0)}}))),xa="unaryMinus",wa=tt(xa,["typed"],e=>(e=e.typed,e(xa,{number:br,Complex:function(e){return e.neg()},BigNumber:function(e){return e.neg()},Fraction:function(e){return e.neg()},Unit:function(e){var t=e.clone();return t.value=this(e.value),t},"Array | Matrix":function(e){return dr(e,this,!0)}}))),_a=tt("acoth",["typed","config","Complex","BigNumber"],e=>{var{typed:e,config:t,Complex:n,BigNumber:r}=e;return e("acoth",{number:function(e){return 1<=e||e<=-1||t.predictable?zr(e):new n(e,0).acoth()},Complex:function(e){return e.acoth()},BigNumber:function(e){return new r(1).div(e).atanh()},"Array | Matrix":function(e){return dr(e,this)}})}),Sa=tt("cot",["typed","BigNumber"],e=>{var{typed:e,BigNumber:t}=e;return e("cot",{number:Gr,Complex:function(e){return e.cot()},BigNumber:function(e){return new t(1).div(e.tan())},Unit:function(e){if(e.hasBase(e.constructor.BASE_UNITS.ANGLE))return this(e.value);throw new TypeError("Unit in function cot is no angle")},"Array | Matrix":function(e){return dr(e,this)}})}),Ca=tt("fraction",["typed","Fraction"],e=>{var{typed:e,Fraction:t}=e;return e("fraction",{number:function(e){if(!isFinite(e)||isNaN(e))throw new Error(e+" cannot be represented as a fraction");return new t(e)},string:function(e){return new t(e)},"number, number":function(e,n){return new t(e,n)},null:function(e){return new t(0)},BigNumber:function(e){return new t(e.toString())},Fraction:function(e){return e},Object:function(e){return new t(e)},"Array | Matrix":function(e){return dr(e,this)}})}),Aa=tt("isNumeric",["typed"],e=>(e=e.typed,e("isNumeric",{"number | BigNumber | Fraction | boolean":function(){return!0},"Complex | Unit | string | null | undefined | Node":function(){return!1},"Array | Matrix":function(e){return dr(e,this)}}))),Ea=tt("matrix",["typed","Matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:e,DenseMatrix:t,SparseMatrix:n}=e;return e("matrix",{"":function(){return r([])},string:function(e){return r([],e)},"string, string":function(e,t){return r([],e,t)},Array:function(e){return r(e)},Matrix:function(e){return r(e,e.storage())},"Array | Matrix, string":r,"Array | Matrix, string, string":r});function r(e,r,i){if("dense"===r||"default"===r||void 0===r)return new t(e,i);if("sparse"===r)return new n(e,i);throw new TypeError("Unknown matrix type "+JSON.stringify(r)+".")}}),Na="matrixFromFunction",ka=tt(Na,["typed","matrix","isZero"],e=>{var{typed:e,matrix:t,isZero:n}=e;return e(Na,{"Array | Matrix, function, string, string":r,"Array | Matrix, function, string":function(e,t,n){return r(e,t,n)},"Matrix, function":function(e,t){return r(e,t,"dense")},"Array, function":function(e,t){return r(e,t,"dense").toArray()},"Array | Matrix, string, function":function(e,t,n){return r(e,n,t)},"Array | Matrix, string, string, function":function(e,t,n,i){return r(e,i,t,n)}});function r(e,r,i,o){var a=void 0!==o?t(i,o):t(i);return a.resize(e),a.forEach((function(e,t){var i=r(t);n(i)||a.set(t,i)})),a}}),Oa=tt("algorithm02",["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i,o){var a=e._data,s=e._size,u=(e=e._datatype,r._values),c=r._index,l=r._ptr,d=r._size,f=r._datatype;if(s.length!==d.length)throw new Ie(s.length,d.length);if(s[0]!==d[0]||s[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+d+")");if(!u)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");d=s[0];for(var p,h=s[1],m=n,g=0,v=i,y=("string"==typeof e&&e===f&&(m=t.find(n,[p=e,p]),g=t.convert(0,p),v=t.find(i,[p,p])),[]),b=[],x=[],w=0;w{var t=e["typed"];return function(e,n,r,i){var o=e._data,a=e._size,s=e._datatype,u=n._values,c=n._index,l=n._ptr,d=n._size;n=n._datatype;if(a.length!==d.length)throw new Ie(a.length,d.length);if(a[0]!==d[0]||a[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+d+")");if(!u)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");for(var f,p=a[0],h=a[1],m=0,g=r,v=("string"==typeof s&&s===n&&(m=t.convert(0,f=s),g=t.find(r,[f,f])),[]),y=0;y{var{typed:t,equalScalar:n}=e;return function(e,r,i){var o=e._values,a=e._index,s=e._ptr,u=e._size,c=e._datatype,l=r._values,d=r._index,f=r._ptr,p=r._size;r=r._datatype;if(u.length!==p.length)throw new Ie(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+p+")");p=u[0];for(var h,m=u[1],g=n,v=0,y=i,b=("string"==typeof c&&c===r&&(g=t.find(n,[h=c,h]),v=t.convert(0,h),y=t.find(i,[h,h])),o&&l?[]:void 0),x=[],w=[],_=b?[]:void 0,S=b?[]:void 0,C=[],A=[],E=0;E{var{typed:t,equalScalar:n}=e;return function(e,r,i,o){var a=e._values,s=e._index,u=e._ptr,c=e._size,l=e._datatype;if(!a)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");for(var d,f=c[0],p=c[1],h=n,m=0,g=i,v=("string"==typeof l&&(h=t.find(n,[d=l,d]),m=t.convert(0,d),r=t.convert(r,d),g=t.find(i,[d,d])),[]),y=[],b=[],x=0;x{var{typed:t,DenseMatrix:n}=e;return function(e,r,i,o){var a=e._values,s=e._index,u=e._ptr,c=e._size;e=e._datatype;if(!a)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");for(var l,d=c[0],f=c[1],p=i,h=("string"==typeof e&&(r=t.convert(r,l=e),p=t.find(i,[l,l])),[]),m=[],g=[],v=0;v{var t=e["typed"];return function(e,n,r){var i=e._data,o=e._size,a=e._datatype,s=n._data,u=n._size,c=(n=n._datatype,[]);if(o.length!==u.length)throw new Ie(o.length,u.length);for(var l,d=0;d{var t=e["typed"];return function(e,n,r,i){var o,a=e._data,s=e._size,u=e._datatype,c=r;"string"==typeof u&&(n=t.convert(n,o=u),c=t.find(r,[o,o])),u=0{var{typed:e,matrix:t,equalScalar:n,DenseMatrix:r}=e,i=Oa({typed:e,equalScalar:n}),o=Da({typed:e}),a=Ma({typed:e,equalScalar:n}),s=Ta({typed:e,equalScalar:n}),u=ja({typed:e,DenseMatrix:r}),c=Ia({typed:e}),l=Pa({typed:e});return e("mod",{"number, number":Or,"BigNumber, BigNumber":function(e,t){if(t.isNeg())throw new Error("Cannot calculate mod for a negative divisor");return t.isZero()?e:e.mod(t)},"Fraction, Fraction":function(e,t){if(t.compare(0)<0)throw new Error("Cannot calculate mod for a negative divisor");return(0<=e.compare(0)?e:e.mod(t).add(t)).mod(t)},"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return u(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,n){return l(t(e),n,this,!1).valueOf()},"any, Array":function(e,n){return l(t(n),e,this,!0).valueOf()}})}),Ra=tt("algorithm01",["typed"],e=>{var t=e["typed"];return function(e,n,r,i){var o=e._data,a=e._size,s=e._datatype,u=n._values,c=n._index,l=n._ptr,d=n._size;n=n._datatype;if(a.length!==d.length)throw new Ie(a.length,d.length);if(a[0]!==d[0]||a[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+d+")");if(!u)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");for(var f=a[0],p=a[1],h=(d="string"==typeof s&&s===n?s:void 0,d?t.find(r,[d,d]):r),m=[],g=0;g{var{typed:t,equalScalar:n}=e;return function(e,r,i){var o=e._values,a=e._size,s=e._datatype,u=r._values,c=r._size,l=r._datatype;if(a.length!==c.length)throw new Ie(a.length,c.length);if(a[0]!==c[0]||a[1]!==c[1])throw new RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+c+")");c=a[0];for(var d,f=a[1],p=n,h=0,m=i,g=("string"==typeof s&&s===l&&(p=t.find(n,[d=s,d]),h=t.convert(0,d),m=t.find(i,[d,d])),o&&u?[]:void 0),v=[],y=[],b=g?[]:void 0,x=[],w=[],_=0;_{var{typed:e,matrix:t,equalScalar:n,BigNumber:r}=e,i=Ra({typed:e}),o=Oa({typed:e,equalScalar:n}),a=Ba({typed:e,equalScalar:n}),s=Ta({typed:e,equalScalar:n}),u=Ia({typed:e}),c=Pa({typed:e}),l="Complex number not supported in function nthRoot. Use nthRoots instead.";return e(Fa,{number:Dr,"number, number":Dr,BigNumber:function(e){return d(e,new r(2))},Complex:function(e){throw new Error(l)},"Complex, number":function(e,t){throw new Error(l)},"BigNumber, BigNumber":d,"Array | Matrix":function(e){return this(e,2)},"SparseMatrix, SparseMatrix":function(e,t){if(1===t.density())return a(e,t,this);throw new Error("Root must be non-zero")},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){if(1===t.density())return i(e,t,this,!1);throw new Error("Root must be non-zero")},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){if(1===t.density())return s(t,e,this,!0);throw new Error("Root must be non-zero")},"number | BigNumber, DenseMatrix":function(e,t){return c(t,e,this,!0)},"Array, number | BigNumber":function(e,n){return this(t(e),n).valueOf()},"number | BigNumber, Array":function(e,n){return this(e,t(n)).valueOf()}});function d(e,t){var n=r.precision,i=r.clone({precision:n+2}),o=new r(0),a=new i(1),s=t.isNegative();if((t=s?t.neg():t).isZero())throw new Error("Root must be non-zero");if(e.isNegative()&&!t.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");return e.isZero()?s?new i(1/0):0:e.isFinite()?(i=e.abs().pow(a.div(t)),i=e.isNeg()?i.neg():i,new r((s?a.div(i):i).toPrecision(n))):s?o:e}});function za(){throw new Error('No "bignumber" implementation available')}function Va(){throw new Error('No "fraction" implementation available')}function qa(){throw new Error('No "matrix" implementation available')}var Ua=tt("numeric",["number","?bignumber","?fraction"],e=>{var{number:t,bignumber:n,fraction:r}=e,i={string:!0,number:!0,BigNumber:!0,Fraction:!0},o={number:e=>t(e),BigNumber:n?e=>n(e):za,Fraction:r?e=>r(e):Va};return function(e,t){var n=U(e);if(!(n in i))throw new TypeError("Cannot convert "+e+' of type "'+n+'"; valid input types are '+Object.keys(i).join(", "));if(t in o)return t===n?e:o[t](e);throw new TypeError("Cannot convert "+e+' to type "'+t+'"; valid output types are '+Object.keys(o).join(", "))}}),Ha=tt("or",["typed","matrix","equalScalar","DenseMatrix"],e=>{var{typed:e,matrix:t,equalScalar:n,DenseMatrix:r}=e,i=Da({typed:e}),o=Ma({typed:e,equalScalar:n}),a=ja({typed:e,DenseMatrix:r}),s=Ia({typed:e}),u=Pa({typed:e});return e("or",{"number, number":Oo,"Complex, Complex":function(e,t){return 0!==e.re||0!==e.im||0!==t.re||0!==t.im},"BigNumber, BigNumber":function(e,t){return!e.isZero()&&!e.isNaN()||!t.isZero()&&!t.isNaN()},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return a(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return a(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,n){return u(t(e),n,this,!1).valueOf()},"any, Array":function(e,n){return u(t(n),e,this,!0).valueOf()}})});function Wa(e,t,n){var r;return-1!==String(e).indexOf("Unexpected type")?(r=2{var{typed:e,config:t,multiplyScalar:n,numeric:r}=e;return e("prod",{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(e,t){throw new Error("prod(A, dim) is not yet supported")},"...":i});function i(e){var i;if(lr(e,(function(t){try{i=void 0===i?t:n(i,t)}catch(e){throw Wa(e,"prod",t)}})),void 0===(i="string"==typeof i?r(i,t.number):i))throw new Error("Cannot calculate prod of an empty array");return i}}),Ga=tt("reshape",["typed","isInteger","matrix"],e=>{var{typed:e,isInteger:t}=e;return e("reshape",{"Matrix, Array":function(e,t){return e.reshape(t)},"Array, Array":function(e,n){return n.forEach((function(e){if(!t(e))throw new TypeError("Invalid size for dimension: "+e)})),Le(e,n)}})}),Xa=tt("size",["typed","config","?matrix"],e=>{var{typed:e,config:t,matrix:n}=e;return e("size",{Matrix:function(e){return e.create(e.size())},Array:$e,string:function(e){return"Array"===t.matrix?[e.length]:n([e.length])},"number | Complex | BigNumber | Unit | boolean | null":function(e){return"Array"===t.matrix?[]:n?n([]):qa()}})}),Qa=tt("algorithm07",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,i,o){var a=e._size,s=e._datatype,u=i._size,c=i._datatype;if(a.length!==u.length)throw new Ie(a.length,u.length);if(a[0]!==u[0]||a[1]!==u[1])throw new RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+u+")");for(var l,d=a[0],f=a[1],p=0,h=o,m=("string"==typeof s&&s===c&&(p=t.convert(0,l=s),h=t.find(o,[l,l])),[]),g=0;g{var{typed:e,config:t,matrix:n,DenseMatrix:r}=e,i=Da({typed:e}),o=Qa({typed:e,DenseMatrix:r}),a=ja({typed:e,DenseMatrix:r}),s=Ia({typed:e}),u=Pa({typed:e});return e(Ka,{"boolean, boolean":function(e,t){return e{var{typed:e,matrix:t}=e;return e("squeeze",{Array:function(e){return qe(H(e))},Matrix:function(e){return e=qe(e.toArray()),Array.isArray(e)?t(e):e},any:H})}),es=tt("subset",["typed","matrix"],e=>{var{typed:e,matrix:t}=e;return e("subset",{"Array, Index":function(e,n){return e=t(e).subset(n),n.isScalar()?e:e.valueOf()},"Matrix, Index":function(e,t){return e.subset(t)},"Object, Index":rs,"string, Index":ts,"Array, Index, any":function(e,n,r){return t(H(e)).subset(n,r,void 0).valueOf()},"Array, Index, any, any":function(e,n,r,i){return t(H(e)).subset(n,r,i).valueOf()},"Matrix, Index, any":function(e,t,n){return e.clone().subset(t,n)},"Matrix, Index, any, any":function(e,t,n,r){return e.clone().subset(t,n,r)},"string, Index, string":ns,"string, Index, string, string":ns,"Object, Index, any":is})});function ts(e,t){if(!y(t))throw new TypeError("Index expected");if(1!==t.size().length)throw new Ie(t.size().length,1);var n=e.length,r=(n=(Be(t.min()[0],n),Be(t.max()[0],n),t.dimension(0)),"");return n.forEach((function(t){r+=e.charAt(t)})),r}function ns(e,t,n,r){if(!t||!0!==t.isIndex)throw new TypeError("Index expected");if(1!==t.size().length)throw new Ie(t.size().length,1);if(void 0!==r){if("string"!=typeof r||1!==r.length)throw new TypeError("Single character expected as defaultValue")}else r=" ";var i=t.dimension(0);if(i.size()[0]!==n.length)throw new Ie(i.size()[0],n.length);for(var o=e.length,a=(Be(t.min()[0]),Be(t.max()[0]),[]),s=0;s{var{typed:t,DenseMatrix:n}=e;return function(e,r,i,o){var a=e._values,s=e._index,u=e._ptr,c=e._size;e=e._datatype;if(!a)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");for(var l,d=c[0],f=c[1],p=i,h=("string"==typeof e&&(r=t.convert(r,l=e),p=t.find(i,[l,l])),[]),m=[],g=[],v=0;v{var{typed:e,matrix:t,equalScalar:n,addScalar:r,unaryMinus:i,DenseMatrix:o}=e,a=Ra({typed:e}),s=Da({typed:e}),u=Ma({typed:e,equalScalar:n}),c=os({typed:e,DenseMatrix:o}),l=Ia({typed:e}),d=Pa({typed:e});return e("subtract",{"number, number":function(e,t){return e-t},"Complex, Complex":function(e,t){return e.sub(t)},"BigNumber, BigNumber":function(e,t){return e.minus(t)},"Fraction, Fraction":function(e,t){return e.sub(t)},"Unit, Unit":function(e,t){if(null===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value)throw new Error("Parameter y contains a unit with undefined value");if(e.equalBase(t))return(e=e.clone()).value=this(e.value,t.value),e.fixPrefix=!1,e;throw new Error("Units do not match")},"SparseMatrix, SparseMatrix":function(e,t){return ss(e,t),u(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return ss(e,t),s(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return ss(e,t),a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return ss(e,t),l(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return c(e,i(t),r)},"DenseMatrix, any":function(e,t){return d(e,t,this)},"any, SparseMatrix":function(e,t){return c(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,n){return d(t(e),n,this,!1).valueOf()},"any, Array":function(e,n){return d(t(n),e,this,!0).valueOf()}})});function ss(e,t){if(e=e.size(),t=t.size(),e.length!==t.length)throw new Ie(e.length,t.length)}var us=tt("to",["typed","matrix"],e=>{var{typed:e,matrix:t}=e,n=Ia({typed:e}),r=Pa({typed:e});return e("to",{"Unit, Unit | string":function(e,t){return e.to(t)},"Matrix, Matrix":function(e,t){return n(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"Matrix, any":function(e,t){return r(e,t,this,!1)},"any, Matrix":function(e,t){return r(t,e,this,!0)},"Array, any":function(e,n){return r(t(e),n,this,!1).valueOf()},"any, Array":function(e,n){return r(t(n),e,this,!0).valueOf()}})}),cs=tt("transpose",["typed","matrix"],e=>{var{typed:e,matrix:t}=e;return e("transpose",{Array:function(e){return this(t(e)).valueOf()},Matrix:function(e){var t,n=e.size();switch(n.length){case 1:t=e.clone();break;case 2:var r=n[0],i=n[1];if(0===i)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+De(n)+")");switch(e.storage()){case"dense":t=function(e,t,n){for(var r,i=e._data,o=[],a=0;a{var{typed:e,config:t,matrix:n,BigNumber:r}=e;return e("xgcd",{"number, number":function(e,r){return e=jr(e,r),"Array"===t.matrix?e:n(e)},"BigNumber, BigNumber":function(e,i){var o,a,s,u=new r(0),c=new r(1),l=u,d=c,f=c,p=u;if(!e.isInt()||!i.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!i.isZero();)a=e.div(i).floor(),s=e.mod(i),o=l,l=d.minus(a.times(l)),d=o,o=f,f=p.minus(a.times(f)),p=o,e=i,i=s;return c=e.lt(u)?[e.neg(),d.neg(),p.neg()]:[e,e.isZero()?0:d,p],"Array"===t.matrix?c:n(c)}})}),ds=tt("zeros",["typed","config","matrix","BigNumber"],e=>{var{typed:e,config:t,matrix:n,BigNumber:r}=e;return e("zeros",{"":function(){return"Array"===t.matrix?i([]):i([],"default")},"...number | BigNumber | string":function(e){var n;return"string"==typeof e[e.length-1]?(n=e.pop(),i(e,n)):"Array"===t.matrix?i(e):i(e,"default")},Array:i,Matrix:function(e){var t=e.storage();return i(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return i(e.valueOf(),t)}});function i(e,t){i=!1,e.forEach((function(e,t,n){s(e)&&(i=!0,n[t]=e.toNumber())}));var i,o=i?new r(0):0;return e.forEach((function(e){if("number"!=typeof e||!oe(e)||e<0)throw new Error("Parameters in function zeros must be positive integers")})),t?(t=n(t),0{var{typed:e,matrix:t,equalScalar:n,zeros:r,not:i}=e,o=Oa({typed:e,equalScalar:n}),a=Ba({typed:e,equalScalar:n}),s=Ta({typed:e,equalScalar:n}),u=Ia({typed:e}),c=Pa({typed:e});return e("and",{"number, number":Mo,"Complex, Complex":function(e,t){return!(0===e.re&&0===e.im||0===t.re&&0===t.im)},"BigNumber, BigNumber":function(e,t){return!(e.isZero()||t.isZero()||e.isNaN()||t.isNaN())},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return i(t)?r(e.size(),e.storage()):s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return i(t)?r(e.size(),e.storage()):c(e,t,this,!1)},"any, SparseMatrix":function(e,t){return i(e)?r(e.size(),e.storage()):s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return i(e)?r(e.size(),e.storage()):c(t,e,this,!0)},"Array, any":function(e,n){return this(t(e),n).valueOf()},"any, Array":function(e,n){return this(e,t(n)).valueOf()}})}),ps=tt("bitAnd",["typed","matrix","equalScalar"],e=>{var{typed:e,matrix:t,equalScalar:n}=e,r=Oa({typed:e,equalScalar:n}),i=Ba({typed:e,equalScalar:n}),o=Ta({typed:e,equalScalar:n}),a=Ia({typed:e}),s=Pa({typed:e});return e("bitAnd",{"number, number":yi,"BigNumber, BigNumber":li,"SparseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return r(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return r(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return a(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return s(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return s(t,e,this,!0)},"Array, any":function(e,n){return s(t(e),n,this,!1).valueOf()},"any, Array":function(e,n){return s(t(n),e,this,!0).valueOf()}})}),hs=tt("bitXor",["typed","matrix","DenseMatrix"],e=>{var{typed:e,matrix:t,DenseMatrix:n}=e,r=Da({typed:e}),i=Qa({typed:e,DenseMatrix:n}),o=ja({typed:e,DenseMatrix:n}),a=Ia({typed:e}),s=Pa({typed:e});return e("bitXor",{"number, number":wi,"BigNumber, BigNumber":mi,"SparseMatrix, SparseMatrix":function(e,t){return i(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return r(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return r(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return a(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return s(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return s(t,e,this,!0)},"Array, any":function(e,n){return s(t(e),n,this,!1).valueOf()},"any, Array":function(e,n){return s(t(n),e,this,!0).valueOf()}})}),ms=tt("cbrt",["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],e=>{var{config:t,typed:e,isNegative:n,unaryMinus:r,matrix:i,Complex:o,BigNumber:a,Fraction:l}=e;return e("cbrt",{number:wr,Complex:d,"Complex, boolean":d,BigNumber:function(e){return e.cbrt()},Unit:function(e){var t,i;return e.value&&u(e.value)?((t=e.clone()).value=1,(t=t.pow(1/3)).value=d(e.value),t):((t=n(e.value))&&(e.value=r(e.value)),i=s(e.value)?new a(1).div(3):c(e.value)?new l(1,3):1/3,e=e.pow(i),t&&(e.value=r(e.value)),e)},"Array | Matrix":function(e){return dr(e,this,!0)}});function d(e,n){var r=e.arg()/3,a=(e=e.abs(),new o(wr(e),0).mul(new o(0,r).exp()));return n?(n=[a,new o(wr(e),0).mul(new o(0,r+2*Math.PI/3).exp()),new o(wr(e),0).mul(new o(0,r-2*Math.PI/3).exp())],"Array"===t.matrix?n:i(n)):a}}),gs="compare",vs=tt(gs,["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix"],e=>{var{typed:e,config:t,equalScalar:n,matrix:r,BigNumber:i,Fraction:o,DenseMatrix:a}=e,s=Da({typed:e}),u=Ma({typed:e,equalScalar:n}),c=ja({typed:e,DenseMatrix:a}),l=Ia({typed:e}),d=Pa({typed:e});return e(gs,{"boolean, boolean":function(e,t){return e===t?0:t{var{typed:e,matrix:t}=e,n=Ia({typed:e}),r=Pa({typed:e});return e(ys,{"any, any":je,"DenseMatrix, DenseMatrix":function(e,t){return n(e,t,je)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"DenseMatrix, any":function(e,t){return r(e,t,je,!1)},"any, DenseMatrix":function(e,t){return r(t,e,je,!0)},"Array, any":function(e,n){return r(t(e),n,je,!1).valueOf()},"any, Array":function(e,n){return r(t(n),e,je,!0).valueOf()}})}),xs=tt("concat",["typed","matrix","isInteger"],e=>{var{typed:e,matrix:t,isInteger:n}=e;return e("concat",{"...Array | Matrix | number | BigNumber":function(e){for(var r,i=e.length,o=-1,u=!1,c=[],l=0;l{var{typed:e,size:t,prod:n}=e;return e("count",{string:function(e){return e.length},"Matrix | Array":function(e){return n(t(e))}})}),_s="ctranspose",Ss=tt(_s,["typed","transpose","conj"],e=>{var{typed:e,transpose:t,conj:n}=e;return e(_s,{any:function(e){return n(t(e))}})}),Cs=tt("diag",["typed","matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:e,matrix:t,DenseMatrix:n,SparseMatrix:r}=e;return e("diag",{Array:function(e){return i(e,0,$e(e),null)},"Array, number":function(e,t){return i(e,t,$e(e),null)},"Array, BigNumber":function(e,t){return i(e,t.toNumber(),$e(e),null)},"Array, string":function(e,t){return i(e,0,$e(e),t)},"Array, number, string":function(e,t,n){return i(e,t,$e(e),n)},"Array, BigNumber, string":function(e,t,n){return i(e,t.toNumber(),$e(e),n)},Matrix:function(e){return i(e,0,e.size(),e.storage())},"Matrix, number":function(e,t){return i(e,t,e.size(),e.storage())},"Matrix, BigNumber":function(e,t){return i(e,t.toNumber(),e.size(),e.storage())},"Matrix, string":function(e,t){return i(e,0,e.size(),t)},"Matrix, number, string":function(e,t,n){return i(e,t,e.size(),n)},"Matrix, BigNumber, string":function(e,t,n){return i(e,t.toNumber(),e.size(),n)}});function i(e,i,o,a){if(!oe(i))throw new TypeError("Second parameter in function diag must be an integer");var s=0{var{typed:e,numeric:t}=e;return e(As,{"number, number":function(e,t){return e/t},"Complex, Complex":function(e,t){return e.div(t)},"BigNumber, BigNumber":function(e,t){return e.div(t)},"Fraction, Fraction":function(e,t){return e.div(t)},"Unit, number | Fraction | BigNumber":function(e,n){e=e.clone();var r=t(1,U(n));return e.value=this(null===e.value?e._normalize(r):e.value,n),e},"number | Fraction | BigNumber, Unit":function(e,n){var r=(r=n.clone()).pow(-1),i=t(1,U(e));return r.value=this(e,null===n.value?n._normalize(i):n.value),r},"Unit, Unit":function(e,t){return e.divide(t)}})}),Ns=tt("dotDivide",["typed","matrix","equalScalar","divideScalar","DenseMatrix"],e=>{var{typed:e,matrix:t,equalScalar:n,divideScalar:r,DenseMatrix:i}=e,o=Oa({typed:e,equalScalar:n}),a=Da({typed:e}),s=Qa({typed:e,DenseMatrix:i}),u=Ta({typed:e,equalScalar:n}),c=ja({typed:e,DenseMatrix:i}),l=Ia({typed:e}),d=Pa({typed:e});return e("dotDivide",{"any, any":r,"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,r,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,r,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,r,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,r)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return u(e,t,r,!1)},"DenseMatrix, any":function(e,t){return d(e,t,r,!1)},"any, SparseMatrix":function(e,t){return c(t,e,r,!0)},"any, DenseMatrix":function(e,t){return d(t,e,r,!0)},"Array, any":function(e,n){return d(t(e),n,r,!1).valueOf()},"any, Array":function(e,n){return d(t(n),e,r,!0).valueOf()}})}),ks="equal",Os=tt(ks,["typed","matrix","equalScalar","DenseMatrix"],e=>{var{typed:e,matrix:t,equalScalar:n,DenseMatrix:r}=e,i=Da({typed:e}),o=Qa({typed:e,DenseMatrix:r}),a=ja({typed:e,DenseMatrix:r}),s=Ia({typed:e}),u=Pa({typed:e});return e(ks,{"any, any":function(e,t){return null===e?null===t:null===t?null===e:void 0===e?void 0===t:void 0===t?void 0===e:n(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,n)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,n,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,n,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,n)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return a(e,t,n,!1)},"DenseMatrix, any":function(e,t){return u(e,t,n,!1)},"any, SparseMatrix":function(e,t){return a(t,e,n,!0)},"any, DenseMatrix":function(e,t){return u(t,e,n,!0)},"Array, any":function(e,r){return u(t(e),r,n,!1).valueOf()},"any, Array":function(e,r){return u(t(r),e,n,!0).valueOf()}})}),Ds=(tt(ks,["typed","equalScalar"],e=>{var{typed:e,equalScalar:t}=e;return e(ks,{"any, any":function(e,n){return null===e?null===n:null===n?null===e:void 0===e?void 0===n:void 0===n?void 0===e:t(e,n)}})}),tt("fft",["typed","matrix","addScalar","multiplyScalar","divideScalar","exp","tau","i"],e=>{var{typed:e,addScalar:t,multiplyScalar:n,divideScalar:r,exp:i,tau:o,i:a}=e;return e("fft",{Array:s,Matrix:function(e){return e.create(s(e.toArray()))}});function s(e){var t=$e(e);return 1===t.length?u(e,t[0]):function e(t,n){var r=$e(t);if(0!==n)return new Array(r[0]).fill(0).map((r,i)=>e(t[i],n-1));if(1===r.length)return u(t);function i(e){var t=$e(e);return new Array(t[1]).fill(0).map((n,r)=>new Array(t[0]).fill(0).map((t,n)=>e[n][r]))}return i(e(i(t),1))}(e.map(e=>s(e,t.slice(1))),0)}function u(e){var s=e.length;if(1===s)return[e[0]];if(s%2!=0)throw new Error("Can only calculate FFT of power-of-two size");for(var c=[...u(e.filter((e,t)=>t%2==0)),...u(e.filter((e,t)=>t%2==1))],l=0;l{var{typed:e,matrix:t}=e;return e("flatten",{Array:function(e){return He(H(e))},Matrix:function(e){return e=He(H(e.toArray())),t(e)}})}),Ts=tt("algorithm04",["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var o=e._values,a=e._index,s=e._ptr,u=e._size,c=e._datatype,l=r._values,d=r._index,f=r._ptr,p=r._size;r=r._datatype;if(u.length!==p.length)throw new Ie(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+p+")");p=u[0];for(var h,m=u[1],g=n,v=0,y=i,b=("string"==typeof c&&c===r&&(g=t.find(n,[h=c,h]),v=t.convert(0,h),y=t.find(i,[h,h])),o&&l?[]:void 0),x=[],w=[],_=o&&l?[]:void 0,S=o&&l?[]:void 0,C=[],A=[],E=0;E{var{typed:e,matrix:t,equalScalar:n,BigNumber:r,DenseMatrix:i}=e,o=Ra({typed:e}),a=Ts({typed:e,equalScalar:n}),s=os({typed:e,DenseMatrix:i}),u=Ia({typed:e}),c=Pa({typed:e});return e("gcd",{"number, number":Ar,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw new Error("Parameters in function gcd must be integer numbers");for(var n=new r(0);!t.isZero();){var i=e.mod(t);e=t,t=i}return e.lt(n)?e.neg():e},"Fraction, Fraction":function(e,t){return e.gcd(t)},"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return s(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return c(t,e,this,!0)},"Array, number | BigNumber":function(e,n){return c(t(e),n,this,!1).valueOf()},"number | BigNumber, Array":function(e,n){return c(t(n),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,n){for(var r=this(e,t),i=0;i{var{typed:e,isNumeric:t}=e;return e(Is,{string:function(e){return 0{var{typed:e,abs:t,addScalar:n,divideScalar:r,multiplyScalar:i,sqrt:o,smaller:a,isPositive:s}=e;return e("hypot",{"... number | BigNumber":function(e){for(var u=0,c=0,l=0;l{var{typed:e,fft:t,dotDivide:n,conj:r}=e;return e("ifft",{"Array | Matrix":function(e){var i=p(e)?e.size():$e(e);return n(r(t(r(e))),i.reduce((e,t)=>e*t,1))}})}),Bs=tt("kron",["typed","matrix","multiplyScalar"],e=>{var{typed:e,matrix:t,multiplyScalar:n}=e;return e("kron",{"Matrix, Matrix":function(e,n){return t(r(e.toArray(),n.toArray()))},"Matrix, Array":function(e,n){return t(r(e.toArray(),n))},"Array, Matrix":function(e,n){return t(r(e,n.toArray()))},"Array, Array":r});function r(e,t){if(1===$e(e).length&&(e=[e]),1===$e(t).length&&(t=[t]),2<$e(e).length||2<$e(t).length)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(e.length)+", y = "+JSON.stringify(t.length)+")");var r=[],i=[];return e.map((function(e){return t.map((function(t){return i=[],r.push(i),e.map((function(e){return t.map((function(t){return i.push(n(e,t))}))}))}))}))&&r}}),Fs="largerEq",Ls=tt(Fs,["typed","config","matrix","DenseMatrix"],e=>{var{typed:e,config:t,matrix:n,DenseMatrix:r}=e,i=Da({typed:e}),o=Qa({typed:e,DenseMatrix:r}),a=ja({typed:e,DenseMatrix:r}),s=Ia({typed:e}),u=Pa({typed:e});return e(Fs,{"boolean, boolean":function(e,t){return t<=e},"number, number":function(e,n){return n<=e||xe(e,n,t.epsilon)},"BigNumber, BigNumber":function(e,n){return e.gte(n)||Fi(e,n,t.epsilon)},"Fraction, Fraction":function(e,t){return-1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(e.equalBase(t))return this(e.value,t.value);throw new Error("Cannot compare units with different base")},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return a(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return a(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(n(t),e,this,!0).valueOf()}})}),zs=tt("algorithm08",["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,i){var o=e._values,a=e._index,s=e._ptr,u=e._size,c=e._datatype,l=r._values,d=r._index,f=r._ptr,p=r._size;r=r._datatype;if(u.length!==p.length)throw new Ie(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+p+")");if(!o||!l)throw new Error("Cannot perform operation on Pattern Sparse Matrices");p=u[0];for(var h,m=u[1],g=n,v=0,y=i,b=("string"==typeof c&&c===r&&(g=t.find(n,[h=c,h]),v=t.convert(0,h),y=t.find(i,[h,h])),[]),x=[],w=[],_=[],S=[],C=0;C{var{typed:e,matrix:t,equalScalar:n,zeros:r,DenseMatrix:i}=e,o=Ra({typed:e}),a=Oa({typed:e,equalScalar:n}),s=zs({typed:e,equalScalar:n}),u=os({typed:e,DenseMatrix:i}),c=Ta({typed:e,equalScalar:n}),l=Ia({typed:e}),d=Pa({typed:e});return e("leftShift",{"number, number":_i,"BigNumber, BigNumber":gi,"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():d(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return n(e,0)?r(t.size(),t.storage()):u(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return n(e,0)?r(t.size(),t.storage()):d(t,e,this,!0)},"Array, number | BigNumber":function(e,n){return this(t(e),n).valueOf()},"number | BigNumber, Array":function(e,n){return this(e,t(n)).valueOf()}})});function qs(e){var t=e["DenseMatrix"];return function(e,n,r){if(e=e.size(),2!==e.length)throw new RangeError("Matrix must be two dimensional (size: "+De(e)+")");var i=e[0];if(i!==e[1])throw new RangeError("Matrix must be square (size: "+De(e)+")");var o=[];if(p(n)){e=n.size();var a=n._data;if(1===e.length){if(e[0]!==i)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var s=0;s{var{typed:e,matrix:t,divideScalar:n,multiplyScalar:r,subtract:i,equalScalar:o,DenseMatrix:a}=e,s=qs({DenseMatrix:a});return e("lsolve",{"SparseMatrix, Array | Matrix":function(e,t){for(var u=(t=s(e,t=t,!0))._data,c=(t=e._size[0],e._size[1]),l=e._values,d=e._index,f=e._ptr,p=[],h=0;h{var{typed:e,matrix:t,flatten:n,size:r}=e;return e(Hs,{"...Array":i,"...Matrix":function(e){return t(i(e.map(e=>e.toArray())))}});function i(e){if(0===e.length)throw new TypeError("At least one column is needed to construct a matrix.");for(var t,r=o(e[0]),i=[],a=0;a{var{typed:e,config:t,numeric:n,smaller:r}=e;return e("min",{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(e,t){return fr(e,t.valueOf(),i)},"...":function(e){if(cr(e))throw new TypeError("Scalar values expected in function min");return o(e)}});function i(e,t){try{return r(e,t)?e:t}catch(e){throw Wa(e,"min",t)}}function o(e){var i;if(lr(e,(function(t){try{isNaN(t)&&"number"==typeof t?i=NaN:void 0!==i&&!r(t,i)||(i=t)}catch(e){throw Wa(e,"min",t)}})),void 0===i)throw new Error("Cannot calculate min of an empty array");return i="string"==typeof i?n(i,t.number):i}}),Gs=tt("mode",["typed","isNaN","isNumeric"],e=>{var{typed:e,isNaN:t,isNumeric:n}=e;return e("mode",{"Array | Matrix":r,"...":r});function r(e){if(0===(e=He(e.valueOf())).length)throw new Error("Cannot calculate mode of an empty array");for(var r={},i=[],o=0,a=0;a{var{typed:e,Complex:t}=e,n=[function(e){return new t(e,0)},function(e){return new t(0,e)},function(e){return new t(-e,0)},function(e){return new t(0,-e)}];function r(e,r){if(r<0)throw new Error("Root must be greater than zero");if(0===r)throw new Error("Root must be non-zero");if(r%1!=0)throw new Error("Root must be an integer");if(0===e||0===e.abs())return[new t(0,0)];for(var i,o="number"==typeof e,a=(!o&&0!==e.re&&0!==e.im||(i=o?2*(e<0):0===e.im?2*(e.re<0):2*(e.im<0)+1),e.arg()),s=(o=e.abs(),[]),u=Math.pow(o,1/r),c=0;c{var{typed:e,config:t,matrix:n,BigNumber:r}=e;return e("ones",{"":function(){return"Array"===t.matrix?i([]):i([],"default")},"...number | BigNumber | string":function(e){var n;return"string"==typeof e[e.length-1]?(n=e.pop(),i(e,n)):"Array"===t.matrix?i(e):i(e,"default")},Array:i,Matrix:function(e){var t=e.storage();return i(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return i(e.valueOf(),t)}});function i(e,t){i=!1,e.forEach((function(e,t,n){s(e)&&(i=!0,n[t]=e.toNumber())}));var i,o=i?new r(1):1;return e.forEach((function(e){if("number"!=typeof e||!oe(e)||e<0)throw new Error("Parameters in function ones must be positive integers")})),t?(t=n(t),0{var{typed:e,isNumeric:t,isNaN:n,compare:r}=e,i=r,o=(e,t)=>-r(e,t);return e(Ks,{"Array | Matrix, number":function(e,t){return a(e,t,i)},"Array | Matrix, number, string":function(e,t,n){if("asc"===n)return a(e,t,i);if("desc"===n)return a(e,t,o);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":a});function a(e,t,n){if(!oe(t)||t<0)throw new Error("k must be a non-negative integer");if(p(e)){if(1=e.length)throw new Error("k out of bounds");for(var o=0;o{var{config:t,matrix:n}=e;return function(e,r,i){if(2!==arguments.length&&3!==arguments.length)throw new Zs("resize",arguments.length,2,3);if(s((r=p(r)?r.valueOf():r)[0])&&(r=r.map((function(e){return s(e)?e.toNumber():e}))),p(e))return e.resize(r,i,!0);if("string"==typeof e){var o=e,a=r,u=i;if(void 0!==u){if("string"!=typeof u||1!==u.length)throw new TypeError("Single character expected as defaultValue")}else u=" ";if(1!==a.length)throw new Ie(a.length,1);var c=a[0];if("number"!=typeof c||!oe(c))throw new TypeError("Invalid size, must contain positive integers (size: "+De(a)+")");if(o.length>c)return o.substring(0,c);if(o.length{var{typed:e,matrix:t,equalScalar:n,zeros:r,DenseMatrix:i}=e,o=Ra({typed:e}),a=Oa({typed:e,equalScalar:n}),s=zs({typed:e,equalScalar:n}),u=os({typed:e,DenseMatrix:i}),c=Ta({typed:e,equalScalar:n}),l=Ia({typed:e}),d=Pa({typed:e});return e(tu,{"number, number":Si,"BigNumber, BigNumber":vi,"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():d(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return n(e,0)?r(t.size(),t.storage()):u(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return n(e,0)?r(t.size(),t.storage()):d(t,e,this,!0)},"Array, number | BigNumber":function(e,n){return this(t(e),n).valueOf()},"number | BigNumber, Array":function(e,n){return this(e,t(n)).valueOf()}})}),ru="Number of decimals in function round must be an integer",iu=tt("round",["typed","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],e=>{var{typed:e,matrix:t,equalScalar:n,zeros:r,BigNumber:i,DenseMatrix:o}=e,a=Ta({typed:e,equalScalar:n}),s=ja({typed:e,DenseMatrix:o}),u=Pa({typed:e});return e("round",{number:Pr,"number, number":Pr,"number, BigNumber":function(e,t){if(t.isInteger())return new i(e).toDecimalPlaces(t.toNumber());throw new TypeError(ru)},Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw new TypeError(ru);return e.round(t)},"Complex, BigNumber":function(e,t){if(t.isInteger())return t=t.toNumber(),e.round(t);throw new TypeError(ru)},BigNumber:function(e){return e.toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(t.isInteger())return e.toDecimalPlaces(t.toNumber());throw new TypeError(ru)},Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw new TypeError(ru);return e.round(t)},"Fraction, BigNumber":function(e,t){if(t.isInteger())return e.round(t.toNumber());throw new TypeError(ru)},"Array | Matrix":function(e){return dr(e,this,!0)},"SparseMatrix, number | BigNumber":function(e,t){return a(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return u(e,t,this,!1)},"Array, number | BigNumber":function(e,n){return u(t(e),n,this,!1).valueOf()},"number | Complex | BigNumber | Fraction, SparseMatrix":function(e,t){return n(e,0)?r(t.size(),t.storage()):s(t,e,this,!0)},"number | Complex | BigNumber | Fraction, DenseMatrix":function(e,t){return n(e,0)?r(t.size(),t.storage()):u(t,e,this,!0)},"number | Complex | BigNumber | Fraction, Array":function(e,n){return u(t(n),e,this,!0).valueOf()}})}),ou="smallerEq",au=tt(ou,["typed","config","matrix","DenseMatrix"],e=>{var{typed:e,config:t,matrix:n,DenseMatrix:r}=e,i=Da({typed:e}),o=Qa({typed:e,DenseMatrix:r}),a=ja({typed:e,DenseMatrix:r}),s=Ia({typed:e}),u=Pa({typed:e});return e(ou,{"boolean, boolean":function(e,t){return e<=t},"number, number":function(e,n){return e<=n||xe(e,n,t.epsilon)},"BigNumber, BigNumber":function(e,n){return e.lte(n)||Fi(e,n,t.epsilon)},"Fraction, Fraction":function(e,t){return 1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(e.equalBase(t))return this(e.value,t.value);throw new Error("Cannot compare units with different base")},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return a(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return a(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(n(t),e,this,!0).valueOf()}})}),su="unequal",uu=tt(su,["typed","config","equalScalar","matrix","DenseMatrix"],e=>{var{typed:e,equalScalar:t,matrix:n,DenseMatrix:r}=e,i=Da({typed:e}),o=Qa({typed:e,DenseMatrix:r}),a=ja({typed:e,DenseMatrix:r}),s=Ia({typed:e}),u=Pa({typed:e});return e("unequal",{"any, any":function(e,t){return null===e?null!==t:null===t?null!==e:void 0===e?void 0!==t:void 0===t?void 0!==e:c(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,c)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,c,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,c,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,c)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return a(e,t,c,!1)},"DenseMatrix, any":function(e,t){return u(e,t,c,!1)},"any, SparseMatrix":function(e,t){return a(t,e,c,!0)},"any, DenseMatrix":function(e,t){return u(t,e,c,!0)},"Array, any":function(e,t){return u(n(e),t,c,!1).valueOf()},"any, Array":function(e,t){return u(n(t),e,c,!0).valueOf()}});function c(e,n){return!t(e,n)}}),cu=(tt(su,["typed","equalScalar"],e=>{var{typed:e,equalScalar:t}=e;return e(su,{"any, any":function(e,n){return null===e?null!==n:null===n?null!==e:void 0===e?void 0!==n:void 0===n?void 0!==e:!t(e,n)}})}),tt("usolve",["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],e=>{var{typed:e,matrix:t,divideScalar:n,multiplyScalar:r,subtract:i,equalScalar:o,DenseMatrix:a}=e,s=qs({DenseMatrix:a});return e("usolve",{"SparseMatrix, Array | Matrix":function(e,t){for(var u=(t=s(e,t=t,!0))._data,c=(t=e._size[0],e._size[1]),l=e._values,d=e._index,f=e._ptr,p=[],h=c-1;0<=h;h--){var m=u[h][0]||0;if(o(m,0))p[h]=[0];else{for(var g=0,v=[],y=[],b=f[h],x=f[h+1]-1;b<=x;x--){var w=d[x];w===h?g=l[x]:w{var{typed:e,matrix:t,DenseMatrix:n}=e,r=Da({typed:e}),i=Qa({typed:e,DenseMatrix:n}),o=ja({typed:e,DenseMatrix:n}),a=Ia({typed:e}),s=Pa({typed:e});return e("xor",{"number, number":Do,"Complex, Complex":function(e,t){return(0!==e.re||0!==e.im)!=(0!==t.re||0!==t.im)},"BigNumber, BigNumber":function(e,t){return(!e.isZero()&&!e.isNaN())!=(!t.isZero()&&!t.isNaN())},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return i(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return r(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return r(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return a(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return s(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return s(t,e,this,!0)},"Array, any":function(e,n){return s(t(e),n,this,!1).valueOf()},"any, Array":function(e,n){return s(t(n),e,this,!0).valueOf()}})}),du=tt("add",["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix"],e=>{var{typed:e,matrix:t,addScalar:n,equalScalar:r,DenseMatrix:i}=e,o=Ra({typed:e}),a=Ts({typed:e,equalScalar:r}),s=os({typed:e,DenseMatrix:i}),u=Ia({typed:e}),c=Pa({typed:e});return e("add",Y({"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,n)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,n,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,n,!0)},"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,n)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"DenseMatrix, any":function(e,t){return c(e,t,n,!1)},"SparseMatrix, any":function(e,t){return s(e,t,n,!1)},"any, DenseMatrix":function(e,t){return c(t,e,n,!0)},"any, SparseMatrix":function(e,t){return s(t,e,n,!0)},"Array, any":function(e,r){return c(t(e),r,n,!1).valueOf()},"any, Array":function(e,r){return c(t(r),e,n,!0).valueOf()},"any, any":n,"any, any, ...any":function(e,t,n){for(var r=this(e,t),i=0;i{var{typed:t,equalScalar:n}=e;return function(e,r,i){var o=e._values,a=e._index,s=e._ptr,u=e._size,c=e._datatype,l=r._values,d=r._index,f=r._ptr,p=r._size;r=r._datatype;if(u.length!==p.length)throw new Ie(u.length,p.length);if(u[0]!==p[0]||u[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+p+")");p=u[0];for(var h,m,g,v,y=u[1],b=n,x=0,w=i,_=("string"==typeof c&&c===r&&(b=t.find(n,[h=c,h]),x=t.convert(0,h),w=t.find(i,[h,h])),o&&l?[]:void 0),S=[],C=[],A=_?[]:void 0,E=[],N=0;N{var{typed:e,matrix:t,equalScalar:n,BigNumber:r,DenseMatrix:i}=e,o=Oa({typed:e,equalScalar:n}),a=Da({typed:e}),s=fu({typed:e,equalScalar:n}),u=Ta({typed:e,equalScalar:n}),c=ja({typed:e,DenseMatrix:i}),l=Ia({typed:e}),d=Pa({typed:e});return e("atan2",{"number, number":Math.atan2,"BigNumber, BigNumber":function(e,t){return r.atan2(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, number | BigNumber":function(e,t){return u(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return d(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return c(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, number | BigNumber":function(e,n){return d(t(e),n,this,!1).valueOf()},"number | BigNumber, Array":function(e,n){return d(t(n),e,this,!0).valueOf()}})}),hu=tt("bitOr",["typed","matrix","equalScalar","DenseMatrix"],e=>{var{typed:e,matrix:t,equalScalar:n,DenseMatrix:r}=e,i=Ra({typed:e}),o=Ts({typed:e,equalScalar:n}),a=os({typed:e,DenseMatrix:r}),s=Ia({typed:e}),u=Pa({typed:e});return e("bitOr",{"number, number":xi,"BigNumber, BigNumber":fi,"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return a(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return a(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,n){return u(t(e),n,this,!1).valueOf()},"any, Array":function(e,n){return u(t(n),e,this,!0).valueOf()}})}),mu=tt("catalan",["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],e=>{var{typed:e,addScalar:t,divideScalar:n,multiplyScalar:r,combinations:i,isNegative:o,isInteger:a}=e;return e("catalan",{"number | BigNumber":function(e){if(!a(e)||o(e))throw new TypeError("Non-negative integer value expected in function catalan");return n(i(r(e,2),e),t(e,1))}})}),gu=(mr=n("e975"),n.n(mr)),vu="compareNatural",yu=tt(vu,["typed","compare"],e=>{var{typed:e,compare:t}=e,n=t.signatures["boolean,boolean"];return e(vu,{"any, any":function(e,i){var o,a=U(e),s=U(i);if(!("number"!==a&&"BigNumber"!==a&&"Fraction"!==a||"number"!==s&&"BigNumber"!==s&&"Fraction"!==s))return"0"!==(o=t(e,i)).toString()?0o.re?1:s.reo.im?1:s.imn.length?1:t.length{var{typed:e,add:t,unaryPlus:n}=e;return e(bu,{Array:r,Matrix:function(e){return e.create(r(e.valueOf()))},"Array, number | BigNumber":o,"Matrix, number | BigNumber":function(e,t){return e.create(o(e.valueOf(),t))},"...":function(e){if(cr(e))throw new TypeError("All values expected to be scalar in function cumsum");return r(e)}});function r(e){try{return i(e)}catch(e){throw Wa(e,bu)}}function i(e){if(0===e.length)return[];for(var r=[n(e[0])],i=1;i=n.length)throw new Pe(t,n.length);try{return function e(t,n){var r,o,a;if(n<=0){var s=t[0][0];if(Array.isArray(s)){for(a=ur(t),o=[],r=0;r{var{typed:e,equal:t}=e;return e("deepEqual",{"any, any":function(e,n){return function e(n,r){if(Array.isArray(n)){if(Array.isArray(r)){var i=n.length;if(i!==r.length)return!1;for(var o=0;o{var{typed:e,matrix:t,subtract:n,number:r}=e;return e("diff",{"Array | Matrix":function(e){return p(e)?t(o(e.toArray())):o(e)},"Array | Matrix, number":function(e,n){if(oe(n))return p(e)?t(i(e.toArray(),n)):i(e,n);throw new RangeError("Dimension must be a whole number")},"Array | Matrix, BigNumber":function(e,t){return this(e,r(t))}});function i(e,t){if(p(e)&&(e=e.toArray()),!Array.isArray(e))throw RangeError("Array/Matrix does not have that many dimensions");var n;if(0{n.push(i(e,t-1))}),n;if(0===t)return o(e);throw RangeError("Cannot have negative dimension")}function o(e){var t=[],n=e.length;if(n<2)return e;for(var r=1;r{var{typed:t,addScalar:n,multiplyScalar:r,conj:i,size:o}=e;return t("dot",{"Array | DenseMatrix, Array | DenseMatrix":function(e,o){var u=a(e,o),c=p(e)?e._data:e,l=p(e)?e._datatype:void 0,d=p(o)?o._data:o,f=p(o)?o._datatype:void 0,h=(e=2===s(e).length,o=2===s(o).length,n),m=r;if(l&&f&&l===f&&"string"==typeof l&&(f=l,h=t.find(n,[f,f]),m=t.find(r,[f,f])),!e&&!o){for(var g=m(i(c[0]),d[0]),v=1;v{var{typed:e,compareText:t,isZero:n}=e;return e("equalText",{"any, any":function(e,r){return n(t(e,r))}})}),Au=(r=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],tt("floor",["typed","config","round"],e=>{var{typed:e,config:t,round:n}=e;return e("floor",{number:function(e){return xe(e,n(e),t.epsilon)?n(e):Math.floor(e)},"number, number":function(e,r){var i,o;return xe(e,n(e,r),t.epsilon)?n(e,r):([e,i]="".concat(e,"e").split("e"),o=Math.floor(Number("".concat(e,"e").concat(Number(i)+r))),[e,i]="".concat(o,"e").split("e"),Number("".concat(e,"e").concat(Number(i)-r)))}})})),Eu=tt("floor",r,e=>{var{typed:e,config:t,round:n,matrix:r,equalScalar:i,zeros:o,DenseMatrix:a}=e,s=Ta({typed:e,equalScalar:i}),u=ja({typed:e,DenseMatrix:a}),c=Pa({typed:e}),a=Au({typed:e,config:t,round:n});return e("floor",{number:a.signatures.number,"number,number":a.signatures["number,number"],Complex:function(e){return e.floor()},"Complex, number":function(e,t){return e.floor(t)},"Complex, BigNumber":function(e,t){return e.floor(t.toNumber())},BigNumber:function(e){return Fi(e,n(e),t.epsilon)?n(e):e.floor()},"BigNumber, BigNumber":function(e,r){return Fi(e,n(e,r),t.epsilon)?n(e,r):e.toDecimalPlaces(r.toNumber(),ie.a.ROUND_FLOOR)},Fraction:function(e){return e.floor()},"Fraction, number":function(e,t){return e.floor(t)},"Fraction, BigNumber":function(e,t){return e.floor(t.toNumber())},"Array | Matrix":function(e){return dr(e,this,!0)},"Array, number | BigNumber":function(e,t){return dr(e,e=>this(e,t),!0)},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | Complex | Fraction | BigNumber, Array":function(e,t){return c(r(t),e,this,!0).valueOf()},"number | Complex | Fraction | BigNumber, Matrix":function(e,t){return i(e,0)?o(t.size(),t.storage()):("dense"===t.storage()?c:u)(t,e,this,!0)}})}),Nu=tt("identity",["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],e=>{var{typed:e,config:t,matrix:n,BigNumber:r,DenseMatrix:i,SparseMatrix:o}=e;return e("identity",{"":function(){return"Matrix"===t.matrix?n([]):[]},string:function(e){return n(e)},"number | BigNumber":function(e){return u(e,e,"Matrix"===t.matrix?"dense":void 0)},"number | BigNumber, string":function(e,t){return u(e,e,t)},"number | BigNumber, number | BigNumber":function(e,n){return u(e,n,"Matrix"===t.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":u,Array:function(e){return a(e)},"Array, string":a,Matrix:function(e){return a(e.valueOf(),e.storage())},"Matrix, string":function(e,t){return a(e.valueOf(),t)}});function a(e,t){switch(e.length){case 0:return t?n(t):[];case 1:return u(e[0],e[0],t);case 2:return u(e[0],e[1],t);default:throw new Error("Vector containing two values expected")}}function u(e,t,n){var a=s(e)||s(t)?r:null;if(s(e)&&(e=e.toNumber()),s(t)&&(t=t.toNumber()),!oe(e)||e<1)throw new Error("Parameters in function identity must be positive integers");if(!oe(t)||t<1)throw new Error("Parameters in function identity must be positive integers");var u=a?new r(1):1,c=(a=a?new a(0):0,[e,t]);if(n){if("sparse"===n)return o.diagonal(c,u,0,a);if("dense"===n)return i.diagonal(c,u,0,a);throw new TypeError('Unknown matrix type "'.concat(n,'"'))}for(var l=Fe([],c,a),d=e{var{typed:e,BigNumber:t,xgcd:n,equal:r,smaller:i,mod:o,add:a,isInteger:s}=e;return e("invmod",{"number, number":u,"BigNumber, BigNumber":u});function u(e,u){if(!s(e)||!s(u))throw new Error("Parameters in function invmod must be integer numbers");if(e=o(e,u),r(u,0))throw new Error("Divisor must be non zero");var[e,c]=n(e,u).valueOf();return r(e,t(1))?(c=o(c,u),i(c,t(0))?a(c,u):c):NaN}}),Ou="larger",Du=tt(Ou,["typed","config","matrix","DenseMatrix"],e=>{var{typed:e,config:t,matrix:n,DenseMatrix:r}=e,i=Da({typed:e}),o=Qa({typed:e,DenseMatrix:r}),a=ja({typed:e,DenseMatrix:r}),s=Ia({typed:e}),u=Pa({typed:e});return e(Ou,{"boolean, boolean":function(e,t){return t{var{typed:e,config:t,divideScalar:n,Complex:r}=e;return e("log",{number:function(e){return 0<=e||t.predictable?(n=e,i?Math.log(n)/Math.log(i):Math.log(n)):new r(e,0).log();var n,i},Complex:function(e){return e.log()},BigNumber:function(e){return!e.isNegative()||t.predictable?e.ln():new r(e.toNumber(),0).log()},"Array | Matrix":function(e){return dr(e,this)},"any, any":function(e,t){return n(this(e),this(t))}})}),Tu=tt("lsolveAll",["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],e=>{var{typed:e,matrix:t,divideScalar:n,multiplyScalar:r,subtract:i,equalScalar:o,DenseMatrix:a}=e,s=qs({DenseMatrix:a});return e("lsolveAll",{"SparseMatrix, Array | Matrix":function(e,t){for(var u=[s(e,t,!0)._data.map(e=>e[0])],c=e._size[0],l=e._size[1],d=e._values,f=e._index,p=e._ptr,h=0;hnew a({data:e.map(e=>[e]),size:[c,1]}))},"DenseMatrix, Array | Matrix":u,"Array, Array | Matrix":function(e,n){return u(t(e),n).map(e=>e.valueOf())}});function u(e,t){for(var u=[s(e,t,!0)._data.map(e=>e[0])],c=e._data,l=e._size[0],d=e._size[1],f=0;fnew a({data:e.map(e=>[e]),size:[l,1]}))}}),ju="matrixFromRows",Iu=tt(ju,["typed","matrix","flatten","size"],e=>{var{typed:e,matrix:t,flatten:n,size:r}=e;return e(ju,{"...Array":i,"...Matrix":function(e){return t(i(e.map(e=>e.toArray())))}});function i(e){if(0===e.length)throw new TypeError("At least one row is needed to construct a matrix.");var t,r=o(e[0]),i=[];for(t of e){var a=o(t);if(a!==r)throw new TypeError("The vectors had different length: "+(0|r)+" ≠ "+(0|a));i.push(n(t))}return i}function o(e){if(e=r(e),1===e.length)return e[0];if(2!==e.length)throw new TypeError("Only one- or two-dimensional vectors are supported.");if(1===e[0])return e[1];if(1===e[1])return e[0];throw new TypeError("At least one of the arguments is not a vector.")}}),Pu=tt("multiply",["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:i,equalScalar:o,dot:a}=e,s=Ta({typed:t,equalScalar:o}),u=Pa({typed:t});function c(e,t){switch(e.length){case 1:switch(t.length){case 1:if(e[0]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(e[0]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+e[0]+") must match Matrix rows ("+t[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;case 2:switch(t.length){case 1:if(e[1]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+e[1]+") must match Vector length ("+t[0]+")");break;case 2:if(e[1]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+e[1]+") must match Matrix B rows ("+t[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+e.length+" dimensions)")}}function l(e,n){if("dense"!==n.storage())throw new Error("Support for SparseMatrix not implemented");var o,a=e._data,s=e._size,u=e._datatype,c=n._data,l=n._size,d=(n=n._datatype,s[0]),f=l[1],p=r,h=i;u&&n&&u===n&&"string"==typeof u&&(o=u,p=t.find(r,[o,o]),h=t.find(i,[o,o]));for(var m=[],g=0;g{var{typed:e,matrix:t,zeros:n,identity:r,isZero:o,equal:a,sign:s,sqrt:u,conj:c,unaryMinus:l,addScalar:d,divideScalar:f,multiplyScalar:p,subtract:h,complex:m}=e;return i()(e("qr",{DenseMatrix:v,SparseMatrix:function(e){throw new Error("qr not implemented for sparse matrices yet")},Array:function(e){return e=v(t(e)),{Q:e.Q.valueOf(),R:e.R.valueOf()}}}),{_denseQRimpl:g});function g(e){for(var t=e._size[0],i=e._size[1],m=r([t],"dense"),g=m._data,v=(e=e.clone(),e._data),y=n([t],""),b=0;b{var{typed:e,config:t,matrix:n,bignumber:r,smaller:i,smallerEq:o,larger:a,largerEq:s}=e;return e("range",{string:c,"string, boolean":c,"number, number":function(e,t){return u(l(e,t,1))},"number, number, number":function(e,t,n){return u(l(e,t,n))},"number, number, boolean":function(e,t,n){return u((n?d:l)(e,t,1))},"number, number, number, boolean":function(e,t,n,r){return u((r?d:l)(e,t,n))},"BigNumber, BigNumber":function(e,t){return u(f(e,t,new e.constructor(1)))},"BigNumber, BigNumber, BigNumber":function(e,t,n){return u(f(e,t,n))},"BigNumber, BigNumber, boolean":function(e,t,n){var r=e.constructor;return u((n?p:f)(e,t,new r(1)))},"BigNumber, BigNumber, BigNumber, boolean":function(e,t,n,r){return u((r?p:f)(e,t,n))}});function u(e){return"Matrix"===t.matrix?n?n(e):qa():e}function c(e,n){var i=function(e){var t=e.split(":").map((function(e){return Number(e)}));if(t.some((function(e){return isNaN(e)})))return null;switch(t.length){case 2:return{start:t[0],end:t[1],step:1};case 3:return{start:t[0],end:t[2],step:t[1]};default:return null}}(e);if(i)return"BigNumber"===t.number?(void 0===r&&za(),u((n?p:f)(r(i.start),r(i.end),r(i.step)))):u((n?d:l)(i.start,i.end,i.step));throw new SyntaxError('String "'+e+'" is no valid range')}function l(e,t,n){var r=[],o=e;if(0{var{typed:e,matrix:t,equalScalar:n,zeros:r,DenseMatrix:i}=e,o=Ra({typed:e}),a=Oa({typed:e,equalScalar:n}),s=zs({typed:e,equalScalar:n}),u=os({typed:e,DenseMatrix:i}),c=Ta({typed:e,equalScalar:n}),l=Ia({typed:e}),d=Pa({typed:e});return e(Bu,{"number, number":Ci,"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return n(t,0)?e.clone():d(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return n(e,0)?r(t.size(),t.storage()):u(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return n(e,0)?r(t.size(),t.storage()):d(t,e,this,!0)},"Array, number | BigNumber":function(e,n){return this(t(e),n).valueOf()},"number | BigNumber, Array":function(e,n){return this(e,t(n)).valueOf()}})}),Lu=tt("setSize",["typed","compareNatural"],e=>{var{typed:e,compareNatural:t}=e;return e("setSize",{"Array | Matrix":function(e){return(Array.isArray(e)?He(e):He(e.toArray())).length},"Array | Matrix, boolean":function(e,n){if(!1===n||0===e.length)return(Array.isArray(e)?He(e):He(e.toArray())).length;for(var r=He(Array.isArray(e)?e:e.toArray()).sort(t),i=1,o=1;o{var{add:t,multiply:n,transpose:r}=e;return function(e,a){if(!a||e<=0||3s))for(var h=l[f+1];p=U?P[z+G]-=ne:0!==P[z+G]&&(P[z+G]=P[L+G]+re);for(A=Z;A{var t=e["transpose"];return function(e,n,r,i){if(!e||!n||!r)return null;for(var o,a,s,u,c,l=e._size,d=l[0],f=l[1],p=4*f+(i?f+d+1:0),h=[],m=f,g=2*f,v=3*f,y=4*f,b=5*f+1,x=0;x{var{add:e,multiply:t,transpose:n}=e,r=Vu({add:e,multiply:t,transpose:n}),i=qu({transpose:n});return function(e,t,n){var o,a=t._ptr,s=t._size[1],u={};if(u.q=r(e,t),e&&!u.q)return null;if(n){if(n=e?function(e,t,n,r){for(var i=e._values,o=e._index,a=e._ptr,s=e._size,u=e._datatype,c=s[0],l=s[1],d=r&&e._values?[]:null,f=[],p=[],h=0,m=0;m{var{divideScalar:t,multiply:n,subtract:r}=e;return function(e,i,o,a,s,u,c){for(var l,d,f,p=e._values,h=e._index,m=e._ptr,g=e._size[1],v=i._values,y=i._index,b=i._ptr,x=(e=Yu(e,i,o,a,u),e);x{var{abs:t,divideScalar:n,multiply:r,subtract:e,larger:i,largerEq:o,SparseMatrix:a}=e,s=Gu({divideScalar:n,multiply:r,subtract:e});return function(e,u,c){if(!e)return null;var l,d=e._size[1],f=100,p=100,h=(u&&(l=u.q,f=u.lnz||f,p=u.unz||p),[]),m=[],g=[],v=new a({values:h,index:m,ptr:g,size:[d,d]}),y=[],b=[],x=[],w=(u=new a({values:y,index:b,ptr:x,size:[d,d]}),[]),_=[],S=[];for(E=0;E{var{typed:e,abs:t,add:n,multiply:r,transpose:i,divideScalar:o,subtract:a,larger:s,largerEq:u,SparseMatrix:c}=e,l=Uu({add:n,multiply:r,transpose:i}),d=Xu({abs:t,divideScalar:o,multiply:r,subtract:a,larger:s,largerEq:u,SparseMatrix:c});return e("slu",{"SparseMatrix, number, number":function(e,t,n){if(!oe(t)||t<0||3{var{typed:e,config:t,add:n,numeric:r}=e;return e("sum",{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(e,t){try{return fr(e,t,n)}catch(e){throw Wa(e,"sum")}},"...":function(e){if(cr(e))throw new TypeError("Scalar values expected in function sum");return i(e)}});function i(e){var i;return lr(e,(function(t){try{i=void 0===i?t:n(i,t)}catch(e){throw Wa(e,"sum",t)}})),i="string"==typeof(i=void 0===i?r(0,t.number):i)?r(i,t.number):i}}),Ju=tt("trace",["typed","matrix","add"],e=>{var{typed:e,matrix:t,add:n}=e;return e("trace",{Array:function(e){return r(t(e))},SparseMatrix:function(e){var t=e._values,r=e._index,i=e._ptr,o=(e=e._size,e[0]),a=e[1];if(o!==a)throw new RangeError("Matrix must be square (size: "+De(e)+")");var s=0;if(0{var{typed:e,matrix:t,divideScalar:n,multiplyScalar:r,subtract:i,equalScalar:o,DenseMatrix:a}=e,s=qs({DenseMatrix:a});return e("usolveAll",{"SparseMatrix, Array | Matrix":function(e,t){for(var u=[s(e,t=t,!0)._data.map(e=>e[0])],c=e._size[0],l=(t=e._size[1],e._values),d=e._index,f=e._ptr,p=t-1;0<=p;p--)for(var h=u.length,m=0;mnew a({data:e.map(e=>[e]),size:[c,1]}))},"DenseMatrix, Array | Matrix":u,"Array, Array | Matrix":function(e,n){return u(t(e),n).map(e=>e.valueOf())}});function u(e,t){for(var u=[s(e,t,!0)._data.map(e=>e[0])],c=e._data,l=e._size[0],d=e._size[1]-1;0<=d;d--)for(var f=u.length,p=0;pnew a({data:e.map(e=>[e]),size:[l,1]}))}}),ec=tt("asin",["typed","config","Complex"],e=>{var{typed:e,config:t,Complex:n}=e;return e("asin",{number:function(e){return-1<=e&&e<=1||t.predictable?Math.asin(e):new n(e,0).asin()},Complex:function(e){return e.asin()},BigNumber:function(e){return e.asin()},"Array | Matrix":function(e){return dr(e,this,!0)}})}),tc=(mr=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],tt("ceil",["typed","config","round"],e=>{var{typed:e,config:t,round:n}=e;return e("ceil",{number:function(e){return xe(e,n(e),t.epsilon)?n(e):Math.ceil(e)},"number, number":function(e,r){var i,o;return xe(e,n(e,r),t.epsilon)?n(e,r):([e,i]="".concat(e,"e").split("e"),o=Math.ceil(Number("".concat(e,"e").concat(Number(i)+r))),[e,i]="".concat(o,"e").split("e"),Number("".concat(e,"e").concat(Number(i)-r)))}})})),nc=tt("ceil",mr,e=>{var{typed:e,config:t,round:n,matrix:r,equalScalar:i,zeros:o,DenseMatrix:a}=e,s=Ta({typed:e,equalScalar:i}),u=ja({typed:e,DenseMatrix:a}),c=Pa({typed:e}),a=tc({typed:e,config:t,round:n});return e("ceil",{number:a.signatures.number,"number,number":a.signatures["number,number"],Complex:function(e){return e.ceil()},"Complex, number":function(e,t){return e.ceil(t)},"Complex, BigNumber":function(e,t){return e.ceil(t.toNumber())},BigNumber:function(e){return Fi(e,n(e),t.epsilon)?n(e):e.ceil()},"BigNumber, BigNumber":function(e,r){return Fi(e,n(e,r),t.epsilon)?n(e,r):e.toDecimalPlaces(r.toNumber(),ie.a.ROUND_CEIL)},Fraction:function(e){return e.ceil()},"Fraction, number":function(e,t){return e.ceil(t)},"Fraction, BigNumber":function(e,t){return e.ceil(t.toNumber())},"Array | Matrix":function(e){return dr(e,this,!0)},"Array, number | BigNumber":function(e,t){return dr(e,e=>this(e,t),!0)},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | Complex | Fraction | BigNumber, Array":function(e,t){return c(r(t),e,this,!0).valueOf()},"number | Complex | Fraction | BigNumber, Matrix":function(e,t){return i(e,0)?o(t.size(),t.storage()):("dense"===t.storage()?c:u)(t,e,this,!0)}})}),rc="composition",ic=tt(rc,["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],e=>{var{typed:e,addScalar:t,combinations:n,isPositive:r,isInteger:i,larger:o}=e;return e(rc,{"number | BigNumber, number | BigNumber":function(e,a){if(!(i(e)&&r(e)&&i(a)&&r(a)))throw new TypeError("Positive integer value expected in function composition");if(o(a,e))throw new TypeError("k must be less than or equal to n in function composition");return n(t(e,-1),t(a,-1))}})}),oc=tt("cross",["typed","matrix","subtract","multiply"],e=>{var{typed:e,matrix:t,subtract:n,multiply:r}=e;return e("cross",{"Matrix, Matrix":function(e,n){return t(i(e.toArray(),n.toArray()))},"Matrix, Array":function(e,n){return t(i(e.toArray(),n))},"Array, Matrix":function(e,n){return t(i(e,n.toArray()))},"Array, Array":i});function i(e,t){var i=Math.max($e(e).length,$e(t).length),o=(e=qe(e),t=qe(t),$e(e)),a=$e(t);if(1!==o.length||1!==a.length||3!==o[0]||3!==a[0])throw new RangeError("Vectors with length 3 expected (Size A = ["+o.join(", ")+"], B = ["+a.join(", ")+"])");return o=[n(r(e[1],t[2]),r(e[2],t[1])),n(r(e[2],t[0]),r(e[0],t[2])),n(r(e[0],t[1]),r(e[1],t[0]))],1{var{typed:e,matrix:t,subtract:n,multiply:r,divideScalar:i,isZero:o,unaryMinus:a}=e;return e("det",{any:H,"Array | Matrix":function(e){var s=p(e)?e.size():Array.isArray(e)?(e=t(e)).size():[];switch(s.length){case 0:return H(e);case 1:if(1===s[0])return H(e.valueOf()[0]);throw new RangeError("Matrix must be square (size: "+De(s)+")");case 2:var u=s[0],c=s[1];if(u!==c)throw new RangeError("Matrix must be square (size: "+De(s)+")");var l=e.clone().valueOf(),d=u;if(1===d)return H(l[0][0]);if(2===d)return n(r(l[0][0],l[1][1]),r(l[1][0],l[0][1]));for(var f=!1,h=new Array(d).fill(0).map((e,t)=>t),m=0;m{var{typed:e,addScalar:t,subtract:n,multiplyScalar:r,divideScalar:i,unaryMinus:o,sqrt:a,abs:u}=e;return e("distance",{"Array, Array, Array":function(e,t,a){if(2!==e.length||2!==t.length||2!==a.length)throw new TypeError("Invalid Arguments: Try again");if(!l(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!l(t))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");var s;if(l(a))return a=i(n(a[1],a[0]),n(t[1],t[0])),s=r(r(a,a),t[0]),a=o(r(a,t[0])),t=e[1],m(e[0],e[1],s,a,t);throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument")},"Object, Object, Object":function(e,t,a){if(2!==Object.keys(e).length||2!==Object.keys(t).length||2!==Object.keys(a).length)throw new TypeError("Invalid Arguments: Try again");if(!l(e))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!l(t))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!l(a))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");var s;if("pointX"in e&&"pointY"in e&&"lineOnePtX"in t&&"lineOnePtY"in t&&"lineTwoPtX"in a&&"lineTwoPtY"in a)return a=i(n(a.lineTwoPtY,a.lineTwoPtX),n(t.lineOnePtY,t.lineOnePtX)),s=r(r(a,a),t.lineOnePtX),a=o(r(a,t.lineOnePtX)),t=e.pointX,m(e.pointX,e.pointY,s,a,t);throw new TypeError("Key names do not match")},"Array, Array":function(e,t){if(2===e.length&&3===t.length){if(!l(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(d(t))return m(e[0],e[1],t[0],t[1],t[2]);throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument")}if(3===e.length&&6===t.length){if(!d(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(p(t))return g(e[0],e[1],e[2],t[0],t[1],t[2],t[3],t[4],t[5]);throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument")}if(e.length===t.length&&02!==e.length||!c(e[0])||!c(e[1])))return}else{if(!(3===e[0].length&&c(e[0][0])&&c(e[0][1])&&c(e[0][2])))return;if(e.some(e=>3!==e.length||!c(e[0])||!c(e[1])||!c(e[2])))return}return 1}(e)){for(var t=e,n=[],r=[],i=[],o=0;o{var{typed:e,matrix:t,equalScalar:n,multiplyScalar:r}=e,i=Oa({typed:e,equalScalar:n}),o=fu({typed:e,equalScalar:n}),a=Ta({typed:e,equalScalar:n}),s=Ia({typed:e}),u=Pa({typed:e});return e(uc,{"any, any":r,"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,r,!1)},"SparseMatrix, DenseMatrix":function(e,t){return i(t,e,r,!0)},"DenseMatrix, SparseMatrix":function(e,t){return i(e,t,r,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,r)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, any":function(e,t){return a(e,t,r,!1)},"DenseMatrix, any":function(e,t){return u(e,t,r,!1)},"any, SparseMatrix":function(e,t){return a(t,e,r,!0)},"any, DenseMatrix":function(e,t){return u(t,e,r,!0)},"Array, any":function(e,n){return u(t(e),n,r,!1).valueOf()},"any, Array":function(e,n){return u(t(n),e,r,!0).valueOf()}})}),lc=tt("FibonacciHeap",["smaller","larger"],e=>{var{smaller:t,larger:n}=e,r=1/Math.log((1+Math.sqrt(5))/2);function i(){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}function o(e,t,n){t.left.right=t.right,t.right.left=t.left,n.degree--,n.child===t&&(n.child=t.right),0===n.degree&&(n.child=null),t.left=e,t.right=e.right,((e.right=t).right.left=t).parent=null,t.mark=!1}i.prototype.type="FibonacciHeap",i.prototype.isFibonacciHeap=!0,i.prototype.insert=function(e,n){var r;n={key:e,value:n,degree:0};return this._minimum?(r=this._minimum,n.left=r,n.right=r.right,(r.right=n).right.left=n,t(e,r.key)&&(this._minimum=n)):this._minimum=(n.left=n).right=n,this._size++,n},i.prototype.size=function(){return this._size},i.prototype.clear=function(){this._minimum=null,this._size=0},i.prototype.isEmpty=function(){return 0===this._size},i.prototype.extractMinimum=function(){var e=this._minimum;if(null!==e){for(var i=this._minimum,o=e.degree,s=e.child;0{var{typed:e,ceil:t,floor:n}=e;return e("fix",{number:function(e){return(0{var{typed:e,Complex:t,matrix:n,ceil:r,floor:i,equalScalar:o,zeros:a,DenseMatrix:s}=e,u=ja({typed:e,DenseMatrix:s}),c=Pa({typed:e}),s=dc({typed:e,ceil:r,floor:i});return e("fix",{number:s.signatures.number,"number, number | BigNumber":s.signatures["number,number"],Complex:function(e){return new t(0this(e,t),!0)},"number | Complex | Fraction | BigNumber, Array":function(e,t){return c(n(t),e,this,!0).valueOf()},"number | Complex | Fraction | BigNumber, Matrix":function(e,t){return o(e,0)?a(t.size(),t.storage()):("dense"===t.storage()?c:u)(t,e,this,!0)}})}),pc=tt("ImmutableDenseMatrix",["smaller","DenseMatrix"],e=>{var{smaller:t,DenseMatrix:n}=e;function r(e,t){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!d(t))throw new Error("Invalid datatype: "+t);if(p(e)||f(e)){var i=new n(e,t);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(e&&f(e.data)&&f(e.size))this._data=e.data,this._size=e.size,this._datatype=e.datatype,this._min=void 0!==e.min?e.min:null,this._max=void 0!==e.max?e.max:null;else{if(e)throw new TypeError("Unsupported type of data ("+U(e)+")");this._data=[],this._size=[0],this._datatype=t,this._min=null,this._max=null}}return(r.prototype=new n).type="ImmutableDenseMatrix",r.prototype.isImmutableDenseMatrix=!0,r.prototype.subset=function(e){switch(arguments.length){case 1:var t=n.prototype.subset.call(this,e);return p(t)?new r({data:t._data,size:t._size,datatype:t._datatype}):t;case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},r.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},r.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},r.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},r.prototype.clone=function(){return new r({data:H(this._data),size:H(this._size),datatype:this._datatype})},r.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.fromJSON=function(e){return new r(e)},r.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},r.prototype.min=function(){var e;return null===this._min&&(e=null,this.forEach((function(n){null!==e&&!t(n,e)||(e=n)})),this._min=null!==e?e:void 0),this._min},r.prototype.max=function(){var e;return null===this._max&&(e=null,this.forEach((function(n){null!==e&&!t(e,n)||(e=n)})),this._max=null!==e?e:void 0),this._max},r},{isClass:!0}),hc=tt("Index",["ImmutableDenseMatrix"],e=>{var t=e["ImmutableDenseMatrix"];function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._isScalar=!0;for(var t=0,i=arguments.length;t{var{typed:e,config:t,abs:n,add:r,addScalar:i,matrix:o,multiply:a,multiplyScalar:s,divideScalar:u,subtract:c,smaller:l,equalScalar:d,flatten:f,isZero:p,isNumeric:h}=e;return e("intersect",{"Array, Array, Array":m,"Array, Array, Array, Array":g,"Matrix, Matrix, Matrix":function(e,t,n){return e=m(e.valueOf(),t.valueOf(),n.valueOf()),null===e?null:o(e)},"Matrix, Matrix, Matrix, Matrix":function(e,t,n,r){return e=g(e.valueOf(),t.valueOf(),n.valueOf(),r.valueOf()),null===e?null:o(e)}});function m(e,t,n){if(e=v(e),t=v(t),n=v(n),!b(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!b(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");var r,o,a,l,d,f,p,m,g,y;if(4===(r=n).length&&h(r[0])&&h(r[1])&&h(r[2])&&h(r[3]))return r=e[0],o=e[1],e=e[2],a=t[0],l=t[1],t=t[2],d=n[0],f=n[1],p=n[2],n=n[3],m=s(r,d),d=s(a,d),g=s(o,f),f=s(l,f),y=s(e,p),p=s(t,p),n=c(c(c(n,m),g),y),d=c(c(c(i(i(d,f),p),m),g),y),f=u(n,d),p=i(r,s(f,c(a,r))),m=i(o,s(f,c(l,o))),g=i(e,s(f,c(t,e))),[p,m,g];throw new TypeError("Array with 4 numbers expected as third argument")}function g(e,o,f,h){if(e=v(e),o=v(o),f=v(f),h=v(h),2===e.length){if(!y(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!y(o))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!y(f))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(y(h))return A=f,_=h,C=c(E=e,C=o),_=c(A,_),S=c(s(C[0],_[1]),s(_[0],C[1])),p(S)||l(n(S),t.epsilon)?null:(m=s(_[0],E[1]),g=s(_[1],E[0]),w=s(_[0],A[1]),_=s(_[1],A[0]),A=u(i(c(c(m,g),w),_),S),r(a(C,A),E));throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument")}if(3!==e.length)throw new TypeError("Arrays with two or thee dimensional points expected");if(!b(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!b(o))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!b(f))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");var m,g,w,_,S,C,A,E,N,k,O,D,M;if(b(h))return m=e[0],g=e[1],w=e[2],_=o[0],S=o[1],C=o[2],A=f[0],E=f[1],e=f[2],o=h[0],f=h[1],h=h[2],N=x(m,A,o,A,g,E,f,E,w,e,h,e),k=x(o,A,_,m,f,E,S,g,h,e,C,w),D=x(m,A,_,m,g,E,S,g,w,e,C,w),O=x(o,A,o,A,f,E,f,E,h,e,h,e),M=x(_,m,_,m,S,g,S,g,C,w,C,w),D=c(s(N,k),s(D,O)),M=c(s(M,O),s(k,k)),!p(M)&&(D=u(D,M),M=u(i(N,s(D,k)),O),N=i(m,s(D,c(_,m))),k=i(g,s(D,c(S,g))),O=i(w,s(D,c(C,w))),_=i(A,s(M,c(o,A))),m=i(E,s(M,c(f,E))),S=i(e,s(M,c(h,e))),d(N,_))&&d(k,m)&&d(O,S)?[N,k,O]:null;throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument")}function v(e){return 1===e.length?e[0]:1Array.isArray(e)&&1===e.length)?f(e):e}function y(e){return 2===e.length&&h(e[0])&&h(e[1])}function b(e){return 3===e.length&&h(e[0])&&h(e[1])&&h(e[2])}function x(e,t,n,r,o,a,u,l,d,f,p,h){return e=s(c(e,t),c(n,r)),t=s(c(o,a),c(u,l)),n=s(c(d,f),c(p,h)),i(i(e,t),n)}}),gc=tt("lcm",["typed","matrix","equalScalar"],e=>{var{typed:e,matrix:t,equalScalar:n}=e,r=Oa({typed:e,equalScalar:n}),i=Ba({typed:e,equalScalar:n}),o=Ta({typed:e,equalScalar:n}),a=Ia({typed:e}),s=Pa({typed:e});return e("lcm",{"number, number":Er,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw new Error("Parameters in function lcm must be integer numbers");if(e.isZero())return e;if(t.isZero())return t;for(var n=e.times(t);!t.isZero();){var r=t;t=e.mod(r),e=r}return n.div(e).abs()},"Fraction, Fraction":function(e,t){return e.lcm(t)},"SparseMatrix, SparseMatrix":function(e,t){return i(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return r(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return r(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return a(e,t,this)},"Array, Array":function(e,n){return this(t(e),t(n)).valueOf()},"Array, Matrix":function(e,n){return this(t(e),n)},"Matrix, Array":function(e,n){return this(e,t(n))},"SparseMatrix, number | BigNumber":function(e,t){return o(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return o(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return s(t,e,this,!0)},"Array, number | BigNumber":function(e,n){return s(t(e),n,this,!1).valueOf()},"number | BigNumber, Array":function(e,n){return s(t(n),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,n){for(var r=this(e,t),i=0;i{var{typed:e,config:t,divideScalar:n,log:r,Complex:i}=e;return e("log1p",{number:function(e){return-1<=e||t.predictable?ce(e):o(new i(e,0))},Complex:o,BigNumber:function(e){var n=e.plus(1);return!n.isNegative()||t.predictable?n.ln():o(new i(e.toNumber(),0))},"Array | Matrix":function(e){return dr(e,this)},"any, any":function(e,t){return n(this(e),r(t))}});function o(e){var t=e.re+1;return new i(Math.log(Math.sqrt(t*t+e.im*e.im)),Math.atan2(e.im,t))}}),yc=tt("max",["typed","config","numeric","larger"],e=>{var{typed:e,config:t,numeric:n,larger:r}=e;return e("max",{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(e,t){return fr(e,t.valueOf(),i)},"...":function(e){if(cr(e))throw new TypeError("Scalar values expected in function max");return o(e)}});function i(e,t){try{return r(e,t)?e:t}catch(e){throw Wa(e,"max",t)}}function o(e){var i;if(lr(e,(function(t){try{isNaN(t)&&"number"==typeof t?i=NaN:void 0!==i&&!r(t,i)||(i=t)}catch(e){throw Wa(e,"max",t)}})),void 0===i)throw new Error("Cannot calculate max of an empty array");return i="string"==typeof i?n(i,t.number):i}}),bc=tt("quantileSeq",["typed","add","multiply","partitionSelect","compare"],e=>{var{typed:e,add:t,multiply:n,partitionSelect:r,compare:i}=e;function o(e,o,s){var c=He(e);e=c.length;if(0===e)throw new Error("Cannot calculate quantile of an empty sequence");if(a(o)){var l=o*(e-1),d=l%1;if(0==d)return g=s?c[l]:r(c,l),u(g),g;var f=Math.floor(l);if(s)h=c[f],p=c[f+1];else for(var p=r(c,f+1),h=c[f],m=0;m{var{typed:e,Index:t,matrix:n,range:r}=e;return e("row",{"Matrix, number":i,"Array, number":function(e,t){return i(n(H(e)),t).valueOf()}});function i(e,n){if(2!==e.size().length)throw new Error("Only two dimensional matrix is supported");Be(n,e.size()[0]);var i=r(0,e.size()[1]);n=new t(n,i);return e.subset(n)}}),wc="setCartesian",_c=tt(wc,["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:e,size:t,subset:n,compareNatural:r,Index:i,DenseMatrix:o}=e;return e(wc,{"Array | Matrix, Array | Matrix":function(e,a){var s=[];if(0!==n(t(e),new i(0))&&0!==n(t(a),new i(0)))for(var u=He(Array.isArray(e)?e:e.toArray()).sort(r),c=He(Array.isArray(a)?a:a.toArray()).sort(r),l=(s=[],0);l{var{typed:e,size:t,subset:n,compareNatural:r,Index:i,DenseMatrix:o}=e;return e(Sc,{"Array | Matrix":function(e){if(0===n(t(e),new i(0)))a=[];else{var a,s=He(Array.isArray(e)?e:e.toArray()).sort(r);(a=[]).push(s[0]);for(var u=1;u{var{typed:e,size:t,subset:n,compareNatural:r,Index:i}=e;return e(Ac,{"Array | Matrix, Array | Matrix":function(e,o){if(0!==n(t(e),new i(0))){if(0===n(t(o),new i(0)))return!1;for(var a=Ke(He(Array.isArray(e)?e:e.toArray()).sort(r)),s=Ke(He(Array.isArray(o)?o:o.toArray()).sort(r)),u=0;u{var{typed:e,size:t,subset:n,compareNatural:r,Index:i}=e;return e(Nc,{"Array | Matrix":function(e){if(0===n(t(e),new i(0)))return[];for(var o=He(Array.isArray(e)?e:e.toArray()).sort(r),a=[],s=0;s.toString(2).length<=o.length;)a.push(function(e,t){for(var n=[],r=0;ru[d+1].length&&(c=u[d],u[d]=u[d+1],u[d+1]=c);return u}})}),Oc=tt("sort",["typed","matrix","compare","compareNatural"],e=>{var{typed:e,matrix:t,compare:n,compareNatural:r}=e,i=n,o=(e,t)=>-n(e,t);return e("sort",{Array:function(e){return s(e),e.sort(i)},Matrix:function(e){return u(e),t(e.toArray().sort(i),e.storage())},"Array, function":function(e,t){return s(e),e.sort(t)},"Matrix, function":function(e,n){return u(e),t(e.toArray().sort(n),e.storage())},"Array, string":function(e,t){return s(e),e.sort(a(t))},"Matrix, string":function(e,n){return u(e),t(e.toArray().sort(a(n)),e.storage())}});function a(e){if("asc"===e)return i;if("desc"===e)return o;if("natural"===e)return r;throw new Error('String "asc", "desc", or "natural" expected')}function s(e){if(1!==$e(e).length)throw new Error("One dimensional array expected")}function u(e){if(1!==e.size().length)throw new Error("One dimensional matrix expected")}}),Dc=tt("column",["typed","Index","matrix","range"],e=>{var{typed:e,Index:t,matrix:n,range:r}=e;return e("column",{"Matrix, number":i,"Array, number":function(e,t){return i(n(H(e)),t).valueOf()}});function i(e,n){if(2!==e.size().length)throw new Error("Only two dimensional matrix is supported");Be(n,e.size()[1]);var i=r(0,e.size()[0]);i=new t(i,n);return e.subset(i)}}),Mc=tt("index",["typed","Index"],e=>{var{typed:e,Index:t}=e;return e("index",{"...number | string | BigNumber | Range | Array | Matrix":function(e){e=e.map((function(e){return s(e)?e.toNumber():Array.isArray(e)||p(e)?e.map((function(e){return s(e)?e.toNumber():e})):e}));var n=new t;return t.apply(n,e),n}})}),Tc=tt("inv",["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],e=>{var{typed:e,matrix:t,divideScalar:n,addScalar:r,multiply:i,unaryMinus:o,det:a,identity:s,abs:u}=e;return e("inv",{"Array | Matrix":function(e){var r=p(e)?e.size():$e(e);switch(r.length){case 1:if(1===r[0])return p(e)?t([n(1,e.valueOf()[0])]):[n(1,e[0])];throw new RangeError("Matrix must be square (size: "+De(r)+")");case 2:var i=r[0],o=r[1];if(i===o)return p(e)?t(c(e.valueOf(),i,o),e.storage()):c(e,i,o);throw new RangeError("Matrix must be square (size: "+De(r)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+De(r)+")")}},any:function(e){return n(1,e)}});function c(e,t,c){var l,d,f;if(1===t){if(0===(p=e[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[n(1,p)]]}if(2===t){var p=a(e);if(0===p)throw Error("Cannot calculate inverse, determinant is zero");return[[n(e[1][1],p),n(o(e[0][1]),p)],[n(o(e[1][0]),p),n(e[0][0],p)]]}var h=e.concat();for(b=0;bv&&(v=u(h[b][g]),y=b),b++;if(0===v)throw Error("Cannot calculate inverse, determinant is zero");(b=y)!==g&&(f=h[g],h[g]=h[b],h[b]=f,f=m[g],m[g]=m[b],m[b]=f);var x=h[g],w=m[g];for(b=0;b{var{typed:e,matrix:t,inv:n,deepEqual:r,equal:i,dotDivide:o,dot:a,ctranspose:s,divideScalar:u,multiply:c,add:l,Complex:d}=e;return e("pinv",{"Array | Matrix":function(e){var r=p(e)?e.size():$e(e);switch(r.length){case 1:return m(e)?s(e):1===r[0]?n(e):o(s(e),a(e,e));case 2:if(m(e))return s(e);var i=r[0],u=r[1];if(i===u)try{return n(e)}catch(e){if(!(e instanceof Error&&e.message.match(/Cannot calculate inverse, determinant is zero/)))throw e}return p(e)?t(f(e.valueOf(),i,u),e.storage()):f(e,i,u);default:throw new RangeError("Matrix must be two dimensional (size: "+De(r)+")")}},any:function(e){return i(e,0)?H(e):u(1,e)}});function f(e,t,r){u=function(e,t,n){for(var r=H(e),i=0,a=0;ae.filter((e,t)=>t!h(a(u[t],u[t])));var i,u,{C:r,F:t}={C:t,F:e};e=c(n(c(s(r),r)),s(r)),r=c(s(t),n(c(t,s(t))));return c(r,e)}function h(e){return i(l(e,d(1,1)),l(0,d(1,1)))}function m(e){return r(l(e,d(1,1)),l(c(e,0),d(1,1)))}}),Ic=tt("pow",["typed","config","identity","multiply","matrix","inv","fraction","number","Complex"],e=>{var{typed:e,config:t,identity:n,multiply:r,matrix:i,inv:o,number:a,fraction:s,Complex:u}=e;return e("pow",{"number, number":c,"Complex, Complex":function(e,t){return e.pow(t)},"BigNumber, BigNumber":function(e,n){return n.isInteger()||0<=e||t.predictable?e.pow(n):new u(e.toNumber(),0).pow(n.toNumber(),0)},"Fraction, Fraction":function(e,n){var r=e.pow(n);if(null!=r)return r;if(t.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return c(e.valueOf(),n.valueOf())},"Array, number":l,"Array, BigNumber":function(e,t){return l(e,t.toNumber())},"Matrix, number":d,"Matrix, BigNumber":function(e,t){return d(e,t.toNumber())},"Unit, number | BigNumber":function(e,t){return e.pow(t)}});function c(e,n){if(t.predictable&&!oe(n)&&e<0)try{var r=s(n),i=a(r);if((n===i||Math.abs((n-i)/n)<1e-14)&&r.d%2==1)return(r.n%2==0?1:-1)*Math.pow(-e,n)}catch(e){}return t.predictable&&(e<-1&&n===1/0||-1>=1,s=r(s,s);return a}function d(e,t){return i(l(e.valueOf(),t))}}),Pc="setDifference",$c=tt(Pc,["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:e,size:t,subset:n,compareNatural:r,Index:i,DenseMatrix:o}=e;return e(Pc,{"Array | Matrix, Array | Matrix":function(e,a){if(0===n(t(e),new i(0)))c=[];else{if(0===n(t(a),new i(0)))return He(e.toArray());for(var s=Ke(He(Array.isArray(e)?e:e.toArray()).sort(r)),u=Ke(He(Array.isArray(a)?a:a.toArray()).sort(r)),c=[],l=0;l{var{typed:e,size:t,subset:n,compareNatural:r,Index:i}=e;return e(Rc,{"number | BigNumber | Fraction | Complex, Array | Matrix":function(e,o){if(0===n(t(o),new i(0)))return 0;for(var a=He(Array.isArray(o)?o:o.toArray()),s=0,u=0;u{var{addScalar:t,equalScalar:n,FibonacciHeap:r}=e;function i(){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new r}return i.prototype.type="Spa",i.prototype.isSpa=!0,i.prototype.set=function(e,t){this._values[e]?this._values[e].value=t:(t=this._heap.insert(e,t),this._values[e]=t)},i.prototype.get=function(e){return e=this._values[e],e?e.value:0},i.prototype.accumulate=function(e,n){var r=this._values[e];r?r.value=t(r.value,n):(r=this._heap.insert(e,n),this._values[e]=r)},i.prototype.forEach=function(e,t,r){var i=this._heap,o=this._values,a=[];for((u=i.extractMinimum())&&a.push(u);u&&u.key<=t;)u.key>=e&&(n(u.value,0)||r(u.key,u.value,this)),(u=i.extractMinimum())&&a.push(u);for(var s=0;s{var{typed:e,abs:t,add:n,multiply:r,sqrt:i,subtract:o,inv:a,size:s,max:u,identity:c}=e;return e("sqrtm",{"Array | Matrix":function(e){var l=p(e)?e.size():$e(e);switch(l.length){case 1:if(1===l[0])return i(e);throw new RangeError("Matrix must be square (size: "+De(l)+")");case 2:if(l[0]!==l[1])throw new RangeError("Matrix must be square (size: "+De(l)+")");var d=0,f=e,h=c(s(e));do{var m=f;f=r(.5,n(m,a(h))),h=r(.5,n(h,a(m)));if(1e-6<(m=u(t(o(f,m))))&&1e3<++d)throw new Error("computing square root of matrix: iterative method could not converge")}while(1e-6{var t,n,r,{on:e,config:o,addScalar:a,subtract:s,multiplyScalar:c,divideScalar:d,pow:f,abs:p,fix:h,round:m,equal:g,isNumeric:v,format:y,number:b,Complex:x,BigNumber:w,Fraction:_}=e,S=b;function C(e,t){if(!(this instanceof C))throw new Error("Constructor must be called with the new operator");if(null!=e&&!v(e)&&!u(e))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(void 0!==t&&("string"!=typeof t||""===t))throw new TypeError("Second parameter in Unit constructor must be a string");if(void 0!==t)t=C.parse(t),this.units=t.units,this.dimensions=t.dimensions;else{this.units=[{unit:R,prefix:I.NONE,power:0}],this.dimensions=[];for(var n=0;n{var t,n;if(K(B,e))return{unit:t=B[e],prefix:t.prefixes[""]};for(n in B)if(K(B,n)&&(o=n,i=r=void 0,r=e.length-o.length,i=e.length,e.substring(r,i)===o)){var r=B[n],i=e.length-n.length,o=e.substring(0,i);i=K(r.prefixes,o)?r.prefixes[o]:void 0;if(void 0!==i)return{unit:r,prefix:i}}return null},{hasher:e=>e[0],limit:100});function T(e){return e.equalBase($.NONE)&&null!==e.value&&!o.predictable?e.value:e}C.isValuelessUnit=function(e){return null!==M(e)},C.prototype.hasBase=function(e){if(!(e="string"==typeof e?$[e]:e))return!1;for(var t=0;t0)},B={meter:{name:"meter",base:$.LENGTH,prefixes:I.LONG,value:1,offset:0},inch:{name:"inch",base:$.LENGTH,prefixes:I.NONE,value:.0254,offset:0},foot:{name:"foot",base:$.LENGTH,prefixes:I.NONE,value:.3048,offset:0},yard:{name:"yard",base:$.LENGTH,prefixes:I.NONE,value:.9144,offset:0},mile:{name:"mile",base:$.LENGTH,prefixes:I.NONE,value:1609.344,offset:0},link:{name:"link",base:$.LENGTH,prefixes:I.NONE,value:.201168,offset:0},rod:{name:"rod",base:$.LENGTH,prefixes:I.NONE,value:5.0292,offset:0},chain:{name:"chain",base:$.LENGTH,prefixes:I.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:$.LENGTH,prefixes:I.NONE,value:1e-10,offset:0},m:{name:"m",base:$.LENGTH,prefixes:I.SHORT,value:1,offset:0},in:{name:"in",base:$.LENGTH,prefixes:I.NONE,value:.0254,offset:0},ft:{name:"ft",base:$.LENGTH,prefixes:I.NONE,value:.3048,offset:0},yd:{name:"yd",base:$.LENGTH,prefixes:I.NONE,value:.9144,offset:0},mi:{name:"mi",base:$.LENGTH,prefixes:I.NONE,value:1609.344,offset:0},li:{name:"li",base:$.LENGTH,prefixes:I.NONE,value:.201168,offset:0},rd:{name:"rd",base:$.LENGTH,prefixes:I.NONE,value:5.02921,offset:0},ch:{name:"ch",base:$.LENGTH,prefixes:I.NONE,value:20.1168,offset:0},mil:{name:"mil",base:$.LENGTH,prefixes:I.NONE,value:254e-7,offset:0},m2:{name:"m2",base:$.SURFACE,prefixes:I.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:$.SURFACE,prefixes:I.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:$.SURFACE,prefixes:I.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:$.SURFACE,prefixes:I.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:$.SURFACE,prefixes:I.NONE,value:2589988.110336,offset:0},sqrd:{name:"sqrd",base:$.SURFACE,prefixes:I.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:$.SURFACE,prefixes:I.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:$.SURFACE,prefixes:I.NONE,value:6.4516e-10,offset:0},acre:{name:"acre",base:$.SURFACE,prefixes:I.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:$.SURFACE,prefixes:I.NONE,value:1e4,offset:0},m3:{name:"m3",base:$.VOLUME,prefixes:I.CUBIC,value:1,offset:0},L:{name:"L",base:$.VOLUME,prefixes:I.SHORT,value:.001,offset:0},l:{name:"l",base:$.VOLUME,prefixes:I.SHORT,value:.001,offset:0},litre:{name:"litre",base:$.VOLUME,prefixes:I.LONG,value:.001,offset:0},cuin:{name:"cuin",base:$.VOLUME,prefixes:I.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:$.VOLUME,prefixes:I.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:$.VOLUME,prefixes:I.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:$.VOLUME,prefixes:I.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:$.VOLUME,prefixes:I.NONE,value:15e-6,offset:0},drop:{name:"drop",base:$.VOLUME,prefixes:I.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:$.VOLUME,prefixes:I.NONE,value:5e-8,offset:0},minim:{name:"minim",base:$.VOLUME,prefixes:I.NONE,value:6.161152e-8,offset:0},fluiddram:{name:"fluiddram",base:$.VOLUME,prefixes:I.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:$.VOLUME,prefixes:I.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:$.VOLUME,prefixes:I.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:$.VOLUME,prefixes:I.NONE,value:1e-6,offset:0},cup:{name:"cup",base:$.VOLUME,prefixes:I.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:$.VOLUME,prefixes:I.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:$.VOLUME,prefixes:I.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:$.VOLUME,prefixes:I.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:$.VOLUME,prefixes:I.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:$.VOLUME,prefixes:I.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:$.VOLUME,prefixes:I.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:$.VOLUME,prefixes:I.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:$.VOLUME,prefixes:I.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:$.VOLUME,prefixes:I.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:$.VOLUME,prefixes:I.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:$.VOLUME,prefixes:I.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:$.VOLUME,prefixes:I.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:$.VOLUME,prefixes:I.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:$.VOLUME,prefixes:I.NONE,value:.1173478,offset:0},obl:{name:"obl",base:$.VOLUME,prefixes:I.NONE,value:.1589873,offset:0},g:{name:"g",base:$.MASS,prefixes:I.SHORT,value:.001,offset:0},gram:{name:"gram",base:$.MASS,prefixes:I.LONG,value:.001,offset:0},ton:{name:"ton",base:$.MASS,prefixes:I.SHORT,value:907.18474,offset:0},t:{name:"t",base:$.MASS,prefixes:I.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:$.MASS,prefixes:I.LONG,value:1e3,offset:0},grain:{name:"grain",base:$.MASS,prefixes:I.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:$.MASS,prefixes:I.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:$.MASS,prefixes:I.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:$.MASS,prefixes:I.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:$.MASS,prefixes:I.NONE,value:45.359237,offset:0},stick:{name:"stick",base:$.MASS,prefixes:I.NONE,value:.115,offset:0},stone:{name:"stone",base:$.MASS,prefixes:I.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:$.MASS,prefixes:I.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:$.MASS,prefixes:I.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:$.MASS,prefixes:I.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:$.MASS,prefixes:I.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:$.MASS,prefixes:I.NONE,value:45.359237,offset:0},s:{name:"s",base:$.TIME,prefixes:I.SHORT,value:1,offset:0},min:{name:"min",base:$.TIME,prefixes:I.NONE,value:60,offset:0},h:{name:"h",base:$.TIME,prefixes:I.NONE,value:3600,offset:0},second:{name:"second",base:$.TIME,prefixes:I.LONG,value:1,offset:0},sec:{name:"sec",base:$.TIME,prefixes:I.LONG,value:1,offset:0},minute:{name:"minute",base:$.TIME,prefixes:I.NONE,value:60,offset:0},hour:{name:"hour",base:$.TIME,prefixes:I.NONE,value:3600,offset:0},day:{name:"day",base:$.TIME,prefixes:I.NONE,value:86400,offset:0},week:{name:"week",base:$.TIME,prefixes:I.NONE,value:604800,offset:0},month:{name:"month",base:$.TIME,prefixes:I.NONE,value:2629800,offset:0},year:{name:"year",base:$.TIME,prefixes:I.NONE,value:31557600,offset:0},decade:{name:"decade",base:$.TIME,prefixes:I.NONE,value:315576e3,offset:0},century:{name:"century",base:$.TIME,prefixes:I.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:$.TIME,prefixes:I.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:$.FREQUENCY,prefixes:I.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:$.FREQUENCY,prefixes:I.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:$.ANGLE,prefixes:I.SHORT,value:1,offset:0},radian:{name:"radian",base:$.ANGLE,prefixes:I.LONG,value:1,offset:0},deg:{name:"deg",base:$.ANGLE,prefixes:I.SHORT,value:null,offset:0},degree:{name:"degree",base:$.ANGLE,prefixes:I.LONG,value:null,offset:0},grad:{name:"grad",base:$.ANGLE,prefixes:I.SHORT,value:null,offset:0},gradian:{name:"gradian",base:$.ANGLE,prefixes:I.LONG,value:null,offset:0},cycle:{name:"cycle",base:$.ANGLE,prefixes:I.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:$.ANGLE,prefixes:I.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:$.ANGLE,prefixes:I.NONE,value:null,offset:0},A:{name:"A",base:$.CURRENT,prefixes:I.SHORT,value:1,offset:0},ampere:{name:"ampere",base:$.CURRENT,prefixes:I.LONG,value:1,offset:0},K:{name:"K",base:$.TEMPERATURE,prefixes:I.NONE,value:1,offset:0},degC:{name:"degC",base:$.TEMPERATURE,prefixes:I.NONE,value:1,offset:273.15},degF:{name:"degF",base:$.TEMPERATURE,prefixes:I.NONE,value:1/1.8,offset:459.67},degR:{name:"degR",base:$.TEMPERATURE,prefixes:I.NONE,value:1/1.8,offset:0},kelvin:{name:"kelvin",base:$.TEMPERATURE,prefixes:I.NONE,value:1,offset:0},celsius:{name:"celsius",base:$.TEMPERATURE,prefixes:I.NONE,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:$.TEMPERATURE,prefixes:I.NONE,value:1/1.8,offset:459.67},rankine:{name:"rankine",base:$.TEMPERATURE,prefixes:I.NONE,value:1/1.8,offset:0},mol:{name:"mol",base:$.AMOUNT_OF_SUBSTANCE,prefixes:I.SHORT,value:1,offset:0},mole:{name:"mole",base:$.AMOUNT_OF_SUBSTANCE,prefixes:I.LONG,value:1,offset:0},cd:{name:"cd",base:$.LUMINOUS_INTENSITY,prefixes:I.SHORT,value:1,offset:0},candela:{name:"candela",base:$.LUMINOUS_INTENSITY,prefixes:I.LONG,value:1,offset:0},N:{name:"N",base:$.FORCE,prefixes:I.SHORT,value:1,offset:0},newton:{name:"newton",base:$.FORCE,prefixes:I.LONG,value:1,offset:0},dyn:{name:"dyn",base:$.FORCE,prefixes:I.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:$.FORCE,prefixes:I.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:$.FORCE,prefixes:I.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:$.FORCE,prefixes:I.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:$.FORCE,prefixes:I.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:$.FORCE,prefixes:I.NONE,value:9.80665,offset:0},J:{name:"J",base:$.ENERGY,prefixes:I.SHORT,value:1,offset:0},joule:{name:"joule",base:$.ENERGY,prefixes:I.SHORT,value:1,offset:0},erg:{name:"erg",base:$.ENERGY,prefixes:I.NONE,value:1e-7,offset:0},Wh:{name:"Wh",base:$.ENERGY,prefixes:I.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:$.ENERGY,prefixes:I.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:$.ENERGY,prefixes:I.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:$.ENERGY,prefixes:I.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:$.POWER,prefixes:I.SHORT,value:1,offset:0},watt:{name:"watt",base:$.POWER,prefixes:I.LONG,value:1,offset:0},hp:{name:"hp",base:$.POWER,prefixes:I.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:$.POWER,prefixes:I.SHORT,value:x.I,offset:0},VA:{name:"VA",base:$.POWER,prefixes:I.SHORT,value:1,offset:0},Pa:{name:"Pa",base:$.PRESSURE,prefixes:I.SHORT,value:1,offset:0},psi:{name:"psi",base:$.PRESSURE,prefixes:I.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:$.PRESSURE,prefixes:I.NONE,value:101325,offset:0},bar:{name:"bar",base:$.PRESSURE,prefixes:I.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:$.PRESSURE,prefixes:I.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:$.PRESSURE,prefixes:I.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:$.PRESSURE,prefixes:I.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:$.PRESSURE,prefixes:I.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:$.ELECTRIC_CHARGE,prefixes:I.LONG,value:1,offset:0},C:{name:"C",base:$.ELECTRIC_CHARGE,prefixes:I.SHORT,value:1,offset:0},farad:{name:"farad",base:$.ELECTRIC_CAPACITANCE,prefixes:I.LONG,value:1,offset:0},F:{name:"F",base:$.ELECTRIC_CAPACITANCE,prefixes:I.SHORT,value:1,offset:0},volt:{name:"volt",base:$.ELECTRIC_POTENTIAL,prefixes:I.LONG,value:1,offset:0},V:{name:"V",base:$.ELECTRIC_POTENTIAL,prefixes:I.SHORT,value:1,offset:0},ohm:{name:"ohm",base:$.ELECTRIC_RESISTANCE,prefixes:I.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:$.ELECTRIC_INDUCTANCE,prefixes:I.LONG,value:1,offset:0},H:{name:"H",base:$.ELECTRIC_INDUCTANCE,prefixes:I.SHORT,value:1,offset:0},siemens:{name:"siemens",base:$.ELECTRIC_CONDUCTANCE,prefixes:I.LONG,value:1,offset:0},S:{name:"S",base:$.ELECTRIC_CONDUCTANCE,prefixes:I.SHORT,value:1,offset:0},weber:{name:"weber",base:$.MAGNETIC_FLUX,prefixes:I.LONG,value:1,offset:0},Wb:{name:"Wb",base:$.MAGNETIC_FLUX,prefixes:I.SHORT,value:1,offset:0},tesla:{name:"tesla",base:$.MAGNETIC_FLUX_DENSITY,prefixes:I.LONG,value:1,offset:0},T:{name:"T",base:$.MAGNETIC_FLUX_DENSITY,prefixes:I.SHORT,value:1,offset:0},b:{name:"b",base:$.BIT,prefixes:I.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:$.BIT,prefixes:I.BINARY_LONG,value:1,offset:0},B:{name:"B",base:$.BIT,prefixes:I.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:$.BIT,prefixes:I.BINARY_LONG,value:8,offset:0}},F={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function L(e){"BigNumber"===e.number?(e=ft(w),B.rad.value=new w(1),B.deg.value=e.div(180),B.grad.value=e.div(200),B.cycle.value=e.times(2),B.arcsec.value=e.div(648e3),B.arcmin.value=e.div(10800)):(B.rad.value=1,B.deg.value=Math.PI/180,B.grad.value=Math.PI/200,B.cycle.value=2*Math.PI,B.arcsec.value=Math.PI/648e3,B.arcmin.value=Math.PI/10800),B.radian.value=B.rad.value,B.degree.value=B.deg.value,B.gradian.value=B.grad.value}L(o),e&&e("config",(function(e,t){e.number!==t.number&&L(e)}));var z,V,q,W={si:{NONE:{unit:R,prefix:I.NONE[""]},LENGTH:{unit:B.m,prefix:I.SHORT[""]},MASS:{unit:B.g,prefix:I.SHORT.k},TIME:{unit:B.s,prefix:I.SHORT[""]},CURRENT:{unit:B.A,prefix:I.SHORT[""]},TEMPERATURE:{unit:B.K,prefix:I.SHORT[""]},LUMINOUS_INTENSITY:{unit:B.cd,prefix:I.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:B.mol,prefix:I.SHORT[""]},ANGLE:{unit:B.rad,prefix:I.SHORT[""]},BIT:{unit:B.bits,prefix:I.SHORT[""]},FORCE:{unit:B.N,prefix:I.SHORT[""]},ENERGY:{unit:B.J,prefix:I.SHORT[""]},POWER:{unit:B.W,prefix:I.SHORT[""]},PRESSURE:{unit:B.Pa,prefix:I.SHORT[""]},ELECTRIC_CHARGE:{unit:B.C,prefix:I.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:B.F,prefix:I.SHORT[""]},ELECTRIC_POTENTIAL:{unit:B.V,prefix:I.SHORT[""]},ELECTRIC_RESISTANCE:{unit:B.ohm,prefix:I.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:B.H,prefix:I.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:B.S,prefix:I.SHORT[""]},MAGNETIC_FLUX:{unit:B.Wb,prefix:I.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:B.T,prefix:I.SHORT[""]},FREQUENCY:{unit:B.Hz,prefix:I.SHORT[""]}}},Y=(W.cgs=JSON.parse(JSON.stringify(W.si)),W.cgs.LENGTH={unit:B.m,prefix:I.SHORT.c},W.cgs.MASS={unit:B.g,prefix:I.SHORT[""]},W.cgs.FORCE={unit:B.dyn,prefix:I.SHORT[""]},W.cgs.ENERGY={unit:B.erg,prefix:I.NONE[""]},W.us=JSON.parse(JSON.stringify(W.si)),W.us.LENGTH={unit:B.ft,prefix:I.NONE[""]},W.us.MASS={unit:B.lbm,prefix:I.NONE[""]},W.us.TEMPERATURE={unit:B.degF,prefix:I.NONE[""]},W.us.FORCE={unit:B.lbf,prefix:I.NONE[""]},W.us.ENERGY={unit:B.BTU,prefix:I.BTU[""]},W.us.POWER={unit:B.hp,prefix:I.NONE[""]},W.us.PRESSURE={unit:B.psi,prefix:I.NONE[""]},W.auto=JSON.parse(JSON.stringify(W.si)),W.auto);for(z in C.setUnitSystem=function(e){if(!K(W,e))throw new Error("Unit system "+e+" does not exist. Choices are: "+Object.keys(W).join(", "));Y=W[e]},C.getUnitSystem=function(){for(var e in W)if(K(W,e)&&W[e]===Y)return e},C.typeConverters={BigNumber:function(e){return new w(e+"")},Fraction:function(e){return new _(e)},Complex:function(e){return e},number:function(e){return e}},C._getNumberConverter=function(e){if(C.typeConverters[e])return C.typeConverters[e];throw new TypeError('Unsupported type "'+e+'"')},B)K(B,z)&&((V=B[z]).dimensions=V.base.dimensions);for(q in F)if(K(F,q)){var G,X=B[F[q]],Q={};for(G in X)K(X,G)&&(Q[G]=X[G]);B[Q.name=q]=Q}return C.isValidAlpha=function(e){return/^[a-zA-Z]$/.test(e)},C.createUnit=function(e,t){if("object"!=typeof e)throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(t&&t.override)for(var n in e)if(K(e,n)&&C.deleteUnit(n),e[n].aliases)for(var r=0;r{var{typed:e,Unit:t}=e;return e(Hc,{"Object, Object":function(e,n){return t.createUnit(e,n)},Object:function(e){return t.createUnit(e,{})},"string, Unit | string | Object, Object":function(e,n,r){var i={};return i[e]=n,t.createUnit(i,r)},"string, Unit | string | Object":function(e,n){var r={};return r[e]=n,t.createUnit(r,{})},string:function(e){var n={};return n[e]={},t.createUnit(n,{})}})}),Yc=tt("dotPow",["typed","equalScalar","matrix","pow","DenseMatrix"],e=>{var{typed:e,equalScalar:t,matrix:n,pow:r,DenseMatrix:i}=e,o=Da({typed:e}),a=Qa({typed:e,DenseMatrix:i}),s=Ta({typed:e,equalScalar:t}),u=ja({typed:e,DenseMatrix:i}),c=Ia({typed:e}),l=Pa({typed:e});return e("dotPow",{"any, any":r,"SparseMatrix, SparseMatrix":function(e,t){return a(e,t,r,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,r,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,r,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,r)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return u(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(n(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(n(t),e,this,!0).valueOf()}})}),Gc=tt("expm",["typed","abs","add","identity","inv","multiply"],e=>{var{typed:e,abs:t,add:n,identity:r,inv:i,multiply:o}=e;return e("expm",{Matrix:function(e){var a=e.size();if(2!==a.length||a[0]!==a[1])throw new RangeError("Matrix must be square (size: "+De(a)+")");a=a[0];for(var s=function(e,t){for(var n=0;n<30;n++)for(var r=0;r<=n;r++){var i=n-r;if(function(e,t,n){for(var r=1,i=2;i<=t;i++)r*=i;for(var o=r,a=t+1;a<=2*t;a++)o*=a;var s=o*(2*t+1);return 8*Math.pow(e/Math.pow(2,n),2*t)*r*r/(o*s)}(e,r,i){var{typed:e,config:t,BigNumber:n,Complex:r}=e;return e("gamma",{number:go,Complex:function(e){if(0===e.im)return this(e.re);if(e.re<.5)return a=new r(1-e.re,-e.im),o=new r(Math.PI*e.re,Math.PI*e.im),new r(Math.PI).div(o.sin()).div(this(a));e=new r(e.re-1,e.im);for(var t=new r(yo[0],0),n=1;n{var{typed:e,size:t,subset:n,compareNatural:r,Index:i,DenseMatrix:o}=e;return e(Qc,{"Array | Matrix, Array | Matrix":function(e,a){if(0===n(t(e),new i(0))||0===n(t(a),new i(0)))c=[];else for(var s=Ke(He(Array.isArray(e)?e:e.toArray()).sort(r)),u=Ke(He(Array.isArray(a)?a:a.toArray()).sort(r)),c=[],l=0;l{var{typed:e,matrix:t,multiply:n,equalScalar:r,divideScalar:i,inv:o}=e,a=Ta({typed:e,equalScalar:r}),s=Pa({typed:e});return e("divide",Y({"Array | Matrix, Array | Matrix":function(e,t){return n(e,o(t))},"DenseMatrix, any":function(e,t){return s(e,t,i,!1)},"SparseMatrix, any":function(e,t){return a(e,t,i,!1)},"Array, any":function(e,n){return s(t(e),n,i,!1).valueOf()},"any, Array | Matrix":function(e,t){return n(e,o(t))}},i.signatures))}),Zc=tt("factorial",["typed","gamma"],e=>{var{typed:e,gamma:t}=e;return e("factorial",{number:function(e){if(e<0)throw new Error("Value must be non-negative");return t(e+1)},BigNumber:function(e){if(e.isNegative())throw new Error("Value must be non-negative");return t(e.plus(1))},"Array | Matrix":function(e){return dr(e,this)}})}),el=tt("lup",["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtract","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],e=>{var{typed:e,matrix:t,abs:n,addScalar:r,divideScalar:i,multiplyScalar:o,subtract:a,larger:s,equalScalar:u,unaryMinus:c,DenseMatrix:l,SparseMatrix:d,Spa:f}=e;return e("lup",{DenseMatrix:p,SparseMatrix:function(e){var t,r,a,l=e._size[0],p=e._size[1],h=Math.min(l,p),m=e._values,g=e._index,v=e._ptr,y=[],b=[],x=[],w=[l,h],_=[],S=[],C=[],A=[h,p],E=[],N=[];for(t=0;t{var{typed:e,add:t,divide:n,multiply:r,factorial:i,isInteger:o,isPositive:a}=e;return e(tl,{"Array | Matrix":function(e){var s=0,u=1;return lr(e,(function(e){if(!o(e)||!a(e))throw new TypeError("Positive integer value expected in function multinomial");s=t(s,e),u=r(u,i(e))})),n(i(s),u)}})}),rl="permutations",il=tt(rl,["typed","factorial"],e=>{var{typed:e,factorial:t}=e;return e(rl,{"number | BigNumber":t,"number, number":function(e,t){if(!oe(e)||e<0)throw new TypeError("Positive integer value expected in function permutations");if(!oe(t)||t<0)throw new TypeError("Positive integer value expected in function permutations");if(e{var{typed:e,addScalar:t,multiplyScalar:n,isNegative:r,isInteger:i,number:o,bignumber:s,larger:u}=e,c=[],l=[];return e(al,{"number | BigNumber, number | BigNumber":function(e,d){if(!i(e)||r(e)||!i(d)||r(d))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(u(d,e))throw new TypeError("k must be less than or equal to n in function stirlingS2");var f=!(a(e)&&a(d)),p=f?l:c,h=f?s:o,m=o(e),g=o(d);if(!(p[m]&&p[m].length>g))for(var v=0;v<=m;++v)if(p[v]||(p[v]=[h(0===v?1:0)]),0!==v)for(var y=p[v],b=p[v-1],x=y.length;x<=v&&x<=g;++x)y[x]=x===v?1:t(n(h(x),b[x]),b[x-1]);return p[m][g]}})}),ul=tt("unit",["typed","Unit"],e=>{var{typed:e,Unit:t}=e;return e("unit",{Unit:function(e){return e.clone()},string:function(e){return t.isValuelessUnit(e)?new t(null,e):t.parse(e,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string":function(e,n){return new t(e,n)},"Array | Matrix":function(e){return dr(e,this)}})}),cl="bellNumbers",ll=tt(cl,["typed","addScalar","isNegative","isInteger","stirlingS2"],e=>{var{typed:e,addScalar:t,isNegative:n,isInteger:r,stirlingS2:i}=e;return e(cl,{"number | BigNumber":function(e){if(!r(e)||n(e))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var o=0,a=0;a<=e;a++)o=t(o,i(e,a));return o}})});function dl(e){var{addScalar:t,subtract:n,flatten:r,multiply:i,multiplyScalar:o,divideScalar:a,sqrt:s,abs:u,bignumber:c,diag:l,inv:d,qr:f,usolve:p,usolveAll:h,equal:m,complex:g,larger:v,smaller:y,matrixFromColumns:b,dot:x}=e;function w(e,t){for(var n=0;n+n(u(e),u(t))),1002*Math.random()-1);return r&&(e=e.map(e=>c(e))),i&&(e=e.map(e=>g(e))),C(e=_(e,t),n)}(t,n,i),o=p(e,o),v(S(o),a))break;if(5<=++s)return null}for(s=0;;){var u=p(e,o);if(y(S(_(o,[u])),r))break;if(10<=++s)return null;o=C(u)}return o}(l,t,x,u,f);if(null==m){j.push(s);break}x.push(m)}var b=i(d(a),o),x=x.map(e=>i(b,e));O.push(...x.map(e=>r(e)))},P=0;P=Math.abs(C);){var k=N[0][0],O=N[0][1];x=function(e,n,r){var i=n-e;return Math.abs(i)<=t.epsilon?Math.PI/4:.5*Math.atan(2*r/(n-e))}(w[k][k],w[O][O],w[k][O]),w=function(e,t,n,r){for(var i=e.length,o=Math.cos(t),a=Math.sin(t),s=(t=o*o,a*a),u=g(i,0),c=g(i,0),l=t*e[n][n]-2*o*a*e[n][r]+s*e[r][r],d=(s=s*e[n][n]+2*o*a*e[n][r]+t*e[r][r],0);d=i(P);){var F=B[0][0],L=B[0][1];T=function(e,n,a){return n=r(n,e),i(n)<=t.epsilon?l(-1).acos().div(4):u(.5,o(d(2,a,c(n))))}(j[F][F],j[L][L],j[F][L]),j=function(e,t,i,o){for(var c=e.length,p=l(a(t)),h=l(s(t)),m=(t=u(p,p),u(h,h)),v=g(c,l(0)),y=g(c,l(0)),b=d(l(2),p,h,e[i][o]),x=n(r(u(t,e[i][i]),b),u(m,e[o][o])),w=(m=f(u(m,e[i][i]),b,u(t,e[o][o])),0);w{var{config:t,typed:e,matrix:n,addScalar:r,subtract:i,equal:o,abs:l,atan:d,cos:f,sin:p,multiplyScalar:h,divideScalar:m,inv:g,bignumber:v,multiply:y,add:b,larger:x,column:w,flatten:_,number:S,complex:C,sqrt:A,diag:E,qr:N,usolve:k,usolveAll:O,im:D,re:M,smaller:T,matrixFromColumns:j,dot:I}=e,P=fl({config:t,addScalar:r,subtract:i,column:w,flatten:_,equal:o,abs:l,atan:d,cos:f,sin:p,multiplyScalar:h,inv:g,bignumber:v,complex:C,multiply:y,add:b}),$=dl({config:t,addScalar:r,subtract:i,multiply:y,multiplyScalar:h,flatten:_,divideScalar:m,sqrt:A,abs:l,bignumber:v,diag:E,qr:N,inv:g,usolve:k,usolveAll:O,equal:o,complex:C,larger:x,smaller:T,matrixFromColumns:j,dot:I});return e("eigs",{Array:function(e){return R(n(e))},"Array, number|BigNumber":function(e,t){return R(n(e),t)},Matrix:function(e){var{values:e,vectors:t}=R(e);return{values:n(e),vectors:n(t)}},"Matrix, number|BigNumber":function(e,t){var{values:e,vectors:t}=R(e,t);return{values:n(e),vectors:n(t)}}});function R(e,n){void 0===n&&(n=t.epsilon);var r=e.size();if(2!==r.length||r[0]!==r[1])throw new RangeError("Matrix must be square (size: "+De(r)+")");var o=e.toArray();r=r[0];if(function(e,t,n){for(var r=0;r{var{typed:e,add:t,divide:n}=e;return e("mean",{"Array | Matrix":r,"Array | Matrix, number | BigNumber":function(e,r){try{var i=fr(e,r,t),o=Array.isArray(e)?$e(e):e.size();return n(i,o[r])}catch(e){throw Wa(e,"mean")}},"...":function(e){if(cr(e))throw new TypeError("Scalar values expected in function mean");return r(e)}});function r(e){var r,i=0;if(lr(e,(function(n){try{r=void 0===r?n:t(r,n),i++}catch(e){throw Wa(e,"mean",n)}})),0===i)throw new Error("Cannot calculate the mean of an empty array");return n(r,i)}}),ml="setSymDifference",gl=tt(ml,["typed","size","concat","subset","setDifference","Index"],e=>{var{typed:e,size:t,concat:n,subset:r,setDifference:i,Index:o}=e;return e(ml,{"Array | Matrix, Array | Matrix":function(e,a){return 0===r(t(e),new o(0))?He(a):0===r(t(a),new o(0))?He(e):(e=He(e),a=He(a),n(i(e,a),i(a,e)))}})});function vl(e,t){var n,r=t.length,i=[];if(e)for(n=0;n{var{typed:e,matrix:t,lup:n,slu:r,usolve:i,lsolve:o,DenseMatrix:a}=e,s=qs({DenseMatrix:a});return e("lusolve",{"Array, Array | Matrix":function(e,r){return e=t(e),e=n(e),c(e.L,e.U,e.p,null,r).valueOf()},"DenseMatrix, Array | Matrix":function(e,t){return e=n(e),c(e.L,e.U,e.p,null,t)},"SparseMatrix, Array | Matrix":function(e,t){return e=n(e),c(e.L,e.U,e.p,null,t)},"SparseMatrix, Array | Matrix, number, number":function(e,t,n,i){return e=r(e,n,i),c(e.L,e.U,e.p,e.q,t)},"Object, Array | Matrix":function(e,t){return c(e.L,e.U,e.p,e.q,t)}});function u(e){if(p(e))return e;if(f(e))return t(e);throw new TypeError("Invalid Matrix LU decomposition")}function c(e,t,n,r,a){return e=u(e),t=u(t),n&&((a=s(e,a,!0))._data=vl(n,a._data)),n=o(e,a),e=i(t,n),r&&(e._data=vl(r,e._data)),e}}),bl=tt("median",["typed","add","divide","compare","partitionSelect"],e=>{var{typed:e,add:t,divide:n,compare:r,partitionSelect:i}=e;function o(e){try{var t,n=(e=He(e.valueOf())).length;if(0===n)throw new Error("Cannot calculate median of an empty array");if(n%2!=0)return t=i(e,(n-1)/2),a(t);for(var o=n/2-1,u=i(e,1+o),c=e[o],l=0;l{var{typed:e,size:t,concat:n,subset:r,setIntersect:i,setSymDifference:o,Index:a}=e;return e("setUnion",{"Array | Matrix, Array | Matrix":function(e,s){return 0===r(t(e),new a(0))?He(s):0===r(t(s),new a(0))?He(e):(e=He(e),s=He(s),n(o(e,s),i(e,s)))}})}),wl="unbiased",_l=tt("variance",["typed","add","subtract","multiply","divide","apply","isNaN"],e=>{var{typed:e,add:t,subtract:n,multiply:r,divide:i,apply:o,isNaN:a}=e;return e("variance",{"Array | Matrix":function(e){return u(e,wl)},"Array | Matrix, string":u,"Array | Matrix, number | BigNumber":function(e,t){return c(e,t,wl)},"Array | Matrix, number | BigNumber, string":c,"...":function(e){return u(e,wl)}});function u(e,o){var u=0;if(0===e.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(lr(e,(function(n){try{l=void 0===l?n:t(l,n),u++}catch(e){throw Wa(e,"variance",n)}})),0===u)throw new Error("Cannot calculate variance of an empty array");var c=i(l,u),l=void 0;if(lr(e,(function(e){e=n(e,c),l=void 0===l?r(e,e):t(l,r(e,e))})),a(l))return l;switch(o){case"uncorrected":return i(l,u);case"biased":return i(l,u+1);case"unbiased":var d=s(l)?l.mul(0):0;return 1===u?d:i(l,u-1);default:throw new Error('Unknown normalization "'+o+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function c(e,t,n){try{if(0===e.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return o(e,t,e=>u(e,n))}catch(e){throw Wa(e,"variance")}}}),Sl="kldivergence",Cl=tt(Sl,["typed","matrix","divide","sum","multiply","dotDivide","log","isNumeric"],e=>{var{typed:e,matrix:t,divide:n,sum:r,multiply:i,dotDivide:o,log:a,isNumeric:s}=e;return e(Sl,{"Array, Array":function(e,n){return u(t(e),t(n))},"Matrix, Array":function(e,n){return u(e,t(n))},"Array, Matrix":function(e,n){return u(t(e),n)},"Matrix, Matrix":u});function u(e,t){var u=t.size().length,c=e.size().length;if(1{var{typed:e,abs:t,add:n,pow:r,conj:i,sqrt:o,multiply:a,equalScalar:s,larger:u,smaller:c,matrix:l,ctranspose:d,eigs:f}=e;return e("norm",{number:Math.abs,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},boolean:function(e){return Math.abs(e)},Array:function(e){return m(l(e),2)},Matrix:function(e){return m(e,2)},"number | Complex | BigNumber | boolean, number | BigNumber | string":function(e){return this(e)},"Array, number | BigNumber | string":function(e,t){return m(l(e),t)},"Matrix, number | BigNumber | string":m});function p(e,i){if(i===Number.POSITIVE_INFINITY||"inf"===i)return o=0,e.forEach((function(e){e=t(e),u(e,o)&&(o=e)}),!0),o;var o,a,l;if(i===Number.NEGATIVE_INFINITY||"-inf"===i)return e.forEach((function(e){e=t(e),a&&!c(e,a)||(a=e)}),!0),a||0;if("fro"===i)return m(e,2);if("number"!=typeof i||isNaN(i))throw new Error("Unsupported parameter value");return s(i,0)?Number.POSITIVE_INFINITY:(l=0,e.forEach((function(e){l=n(r(t(e),i),l)}),!0),r(l,1/i))}function h(e,r){if(1===r)return s=[],c=0,e.forEach((function(e,r){r=r[1],e=n(s[r]||0,t(e)),u(e,c)&&(c=e),s[r]=e}),!0),c;var s,c,l,p,h;if(r===Number.POSITIVE_INFINITY||"inf"===r)return l=[],p=0,e.forEach((function(e,r){r=r[0],e=n(l[r]||0,t(e)),u(e,p)&&(p=e),l[r]=e}),!0),p;if("fro"===r)return h=0,e.forEach((function(e,t){h=n(h,a(e,i(e)))})),t(o(h));if(2!==r)throw new Error("Unsupported parameter value "+r);if(r=e,e=r.size(),e[0]!==e[1])throw new RangeError("Invalid matrix dimensions");return e=d(r),e=a(e,r),r=f(e).values.toArray(),e=r[r.length-1],t(o(e))}function m(e,t){var n=e.size();if(1===n.length)return p(e,t);if(2===n.length){if(n[0]&&n[1])return h(e,t);throw new RangeError("Invalid matrix dimensions")}}}),El="rotationMatrix",Nl=tt(El,["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],e=>{var{typed:e,config:t,multiplyScalar:n,addScalar:r,unaryMinus:i,norm:o,BigNumber:a,matrix:u,DenseMatrix:c,SparseMatrix:l,cos:d,sin:f}=e;return e(El,{"":function(){return"Matrix"===t.matrix?u([]):[]},string:function(e){return u(e)},"number | BigNumber | Complex | Unit":function(e){return p(e,"Matrix"===t.matrix?"dense":void 0)},"number | BigNumber | Complex | Unit, string":p,"number | BigNumber | Complex | Unit, Array":function(e,t){return t=u(t),h(t),v(e,t,void 0)},"number | BigNumber | Complex | Unit, Matrix":function(e,n){h(n);var r=n.storage()||("Matrix"===t.matrix?"dense":void 0);return v(e,n,r)},"number | BigNumber | Complex | Unit, Array, string":function(e,t,n){return t=u(t),h(t),v(e,t,n)},"number | BigNumber | Complex | Unit, Matrix, string":function(e,t,n){return h(t),v(e,t,n)}});function p(e,t){var r=s(e)?new a(-1):-1,i=d(e);e=f(e);return g([[i,n(r,e)],[e,i]],t)}function h(e){if(e=e.size(),e.length<1||3!==e[0])throw new RangeError("Vector must be of dimensions 1x3")}function m(e){return e.reduce((e,t)=>n(e,t))}function g(e,t){if(t){if("sparse"===t)return new l(e);if("dense"===t)return new c(e);throw new TypeError('Unknown matrix type "'.concat(t,'"'))}return e}function v(e,t,n){var u=o(t);if(0===u)throw new RangeError("Rotation around zero vector");var c=s(e)?a:null,l=c?new c(1):1,p=c?new c(-1):-1,h=c?new c(t.get([0])/u):t.get([0])/u,v=c?new c(t.get([1])/u):t.get([1])/u;c=c?new c(t.get([2])/u):t.get([2])/u,t=d(e),u=r(l,i(t)),l=f(e);return g([[r(t,m([h,h,u])),r(m([h,v,u]),m([p,c,l])),r(m([h,c,u]),m([v,l]))],[r(m([h,v,u]),m([c,l])),r(t,m([v,v,u])),r(m([v,c,u]),m([p,h,l]))],[r(m([h,c,u]),m([p,v,l])),r(m([v,c,u]),m([h,l])),r(t,m([c,c,u]))]],n)}}),kl=tt("std",["typed","sqrt","variance"],e=>{var{typed:e,sqrt:t,variance:n}=e;return e("std",{"Array | Matrix":r,"Array | Matrix, string":r,"Array | Matrix, number | BigNumber":r,"Array | Matrix, number | BigNumber, string":r,"...":function(e){return r(e)}});function r(e,r){if(0===e.length)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{return t(n.apply(null,arguments))}catch(e){throw e instanceof TypeError&&-1!==e.message.indexOf(" variance")?new TypeError(e.message.replace(" variance"," std")):e}}}),Ol=tt("mad",["typed","abs","map","median","subtract"],e=>{var{typed:e,abs:t,map:n,median:r,subtract:i}=e;return e("mad",{"Array | Matrix":o,"...":o});function o(e){if(0===(e=He(e.valueOf())).length)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var o=r(e);return r(n(e,(function(e){return t(i(e,o))})))}catch(e){throw e instanceof TypeError&&-1!==e.message.indexOf("median")?new TypeError(e.message.replace("median","mad")):Wa(e,"mad")}}}),Dl=tt("rotate",["typed","multiply","rotationMatrix"],e=>{var{typed:e,multiply:t,rotationMatrix:n}=e;return e("rotate",{"Array , number | BigNumber | Complex | Unit":function(e,i){return r(e,2),t(n(i),e).toArray()},"Matrix , number | BigNumber | Complex | Unit":function(e,i){return r(e,2),t(n(i),e)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function(e,i,o){return r(e,3),t(n(i,o),e)},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function(e,i,o){return r(e,3),t(n(i,o),e)}});function r(e,t){if(e=Array.isArray(e)?$e(e):e.size(),2{var{on:e,math:t}=e;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");q(e)?this.value=e.value:this.value=e}function r(e,t){Q(n.prototype,e,(function(){var e=t();if("function"==typeof e)return i(e)}))}function i(e){return function(){for(var t=[this.value],r=0;re[t])}(a);var s})(t),e&&e("import",(function(e,t,n){n||r(e,t)})),n},{isClass:!0}),eg=new Set(["end"]),tg=tt("Node",["mathWithTransform"],e=>{var t=e["mathWithTransform"];function n(){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator")}return n.prototype.evaluate=function(e){return this.compile().evaluate(e)},n.prototype.type="Node",n.prototype.isNode=!0,n.prototype.comment="",n.prototype.compile=function(){var e=this._compile(t,{}),n={},r=null;return{evaluate:function(t){var i,o=t=er(t);for(i of[...eg])if(o.has(i))throw new Error('Scope contains an illegal symbol, "'+i+'" is a reserved keyword');return e(t,n,r)}}},n.prototype._compile=function(e,t){throw new Error("Method _compile should be implemented by type "+this.type)},n.prototype.forEach=function(e){throw new Error("Cannot run forEach on a Node interface")},n.prototype.map=function(e){throw new Error("Cannot run map on a Node interface")},n.prototype._ifNode=function(e){if(R(e))return e;throw new TypeError("Callback function must return a Node")},n.prototype.traverse=function(e){e(this,null,null),function e(t,n){t.forEach((function(t,r,i){n(t,r,i),e(t,n)}))}(this,e)},n.prototype.transform=function(e){return function t(n,r,i){return r=e(n,r,i),r!==n?r:n.map(t)}(this,null,null)},n.prototype.filter=function(e){var t=[];return this.traverse((function(n,r,i){e(n,r,i)&&t.push(n)})),t},n.prototype.clone=function(){throw new Error("Cannot clone a Node interface")},n.prototype.cloneDeep=function(){return this.map((function(e){return e.cloneDeep()}))},n.prototype.equals=function(e){return!!e&&G(this,e)},n.prototype.toString=function(e){var t=this._getCustomString(e);return void 0!==t?t:this._toString(e)},n.prototype.toJSON=function(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)},n.prototype.toHTML=function(e){var t=this._getCustomString(e);return void 0!==t?t:this.toHTML(e)},n.prototype._toString=function(){throw new Error("_toString not implemented for "+this.type)},n.prototype.toTex=function(e){var t=this._getCustomString(e);return void 0!==t?t:this._toTex(e)},n.prototype._toTex=function(e){throw new Error("_toTex not implemented for "+this.type)},n.prototype._getCustomString=function(e){if(e&&"object"==typeof e)switch(typeof e.handler){case"object":case"undefined":return;case"function":return e.handler(this,e);default:throw new TypeError("Object or function expected as callback")}},n.prototype.getIdentifier=function(){return this.type},n.prototype.getContent=function(){return this},n},{isClass:!0,isNode:!0}),ng=tt("ObjectNode",["Node"],e=>{function t(e){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(this.properties=e||{},e&&("object"!=typeof e||!Object.keys(e).every((function(t){return R(e[t])}))))throw new TypeError("Object containing Nodes expected")}return e=e.Node,(t.prototype=new e).type="ObjectNode",t.prototype.isObjectNode=!0,t.prototype._compile=function(e,t){var n,r={};for(n in this.properties)if(K(this.properties,n)){var i=Me(n);i=JSON.parse(i);if(!Yn(this.properties,i))throw new Error('No access to property "'+i+'"');r[i]=this.properties[n]._compile(e,t)}return function(e,t,n){var i,o={};for(i in r)K(r,i)&&(o[i]=r[i](e,t,n));return o}},t.prototype.forEach=function(e){for(var t in this.properties)K(this.properties,t)&&e(this.properties[t],"properties["+Me(t)+"]",this)},t.prototype.map=function(e){var n,r={};for(n in this.properties)K(this.properties,n)&&(r[n]=this._ifNode(e(this.properties[n],"properties["+Me(n)+"]",this)));return new t(r)},t.prototype.clone=function(){var e,n={};for(e in this.properties)K(this.properties,e)&&(n[e]=this.properties[e]);return new t(n)},t.prototype._toString=function(e){var t,n=[];for(t in this.properties)K(this.properties,t)&&n.push(Me(t)+": "+this.properties[t].toString(e));return"{"+n.join(", ")+"}"},t.prototype.toJSON=function(){return{mathjs:"ObjectNode",properties:this.properties}},t.fromJSON=function(e){return new t(e.properties)},t.prototype.toHTML=function(e){var t,n=[];for(t in this.properties)K(this.properties,t)&&n.push(''+Te(t)+':'+this.properties[t].toHTML(e));return'{'+n.join(',')+'}'},t.prototype._toTex=function(e){var t,n=[];for(t in this.properties)K(this.properties,t)&&n.push("\\mathbf{"+t+":} & "+this.properties[t].toTex(e)+"\\\\");return"\\left\\{\\begin{array}{ll}".concat(n.join("\n"),"\\end{array}\\right\\}")},t},{isClass:!0,isNode:!0}),rg=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{associativity:"left",associativeWith:[]}},{"OperatorNode:and":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{associativity:"left",associativeWith:[]},"OperatorNode:unequal":{associativity:"left",associativeWith:[]},"OperatorNode:smaller":{associativity:"left",associativeWith:[]},"OperatorNode:larger":{associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{associativity:"left",associativeWith:[]}},{"OperatorNode:to":{associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{associativity:"left",associativeWith:[]},"OperatorNode:mod":{associativity:"left",associativeWith:[]}},{"OperatorNode:unaryPlus":{associativity:"right"},"OperatorNode:unaryMinus":{associativity:"right"},"OperatorNode:bitNot":{associativity:"right"},"OperatorNode:not":{associativity:"right"}},{"OperatorNode:pow":{associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{associativity:"left"}},{"OperatorNode:transpose":{associativity:"left"}}];function ig(e,t){for(var n=e,r=(n="keep"!==t?e.getContent():n).getIdentifier(),i=0;i>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},lg={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(cg.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(cg.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(cg.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(cg.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(cg.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(cg.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(cg.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(cg.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(cg.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(cg.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(cg.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(cg.bitAnd,"${args[1]}\\right)")},bitNot:{1:cg.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(cg.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(cg.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(cg.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(cg.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(cg.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(cg.and,"${args[1]}\\right)")},not:{1:cg.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(cg.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(cg.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(cg.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(cg.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(cg.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(cg.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(cg.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(cg.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(cg.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(cg.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(cg.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(cg.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(cg.to,"${args[1]}\\right)")},numeric:function(e,t){return e.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(ug.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},dg={deg:"^\\circ"};function fg(e){return sg()(e,{preserveFormatting:!0})}function pg(e,t){return(t=void 0!==t&&t)?K(dg,e)?dg[e]:"\\mathrm{"+fg(e)+"}":K(ug,e)?ug[e]:fg(e)}var hg=tt("OperatorNode",["Node"],e=>{function t(e,n,r,i,o){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('string expected for parameter "op"');if("string"!=typeof n)throw new TypeError('string expected for parameter "fn"');if(!Array.isArray(r)||!r.every(R))throw new TypeError('Array containing Nodes expected for parameter "args"');this.implicit=!0===i,this.isPercentage=!0===o,this.op=e,this.fn=n,this.args=r||[]}function n(e,t,n,r,i){var o,a=ig(e,t),s=og(e,t);if("all"===t||2('+t+')'),"right"===r?''+Te(this.op)+""+t:t+''+Te(this.op)+""):2===o.length?(r=o[0].toHTML(e),t=o[1].toHTML(e),a[0]&&(r='('+r+')'),a[1]&&(t='('+t+')'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===i?r+''+t:r+''+Te(this.op)+""+t):(r=o.map((function(t,n){return t=t.toHTML(e),a[n]?'('+t+')':t})),2'):r.join(''+Te(this.op)+""):''+Te(this.fn)+'('+r.join(',')+')')},t.prototype._toTex=function(e){var t,r=e&&e.parenthesis?e.parenthesis:"keep",i=e&&e.implicit?e.implicit:"hide",o=this.args,a=n(this,r,i,o,!0),s=void 0===(s=cg[this.fn])?this.op:s;if(1===o.length)return t=og(this,r),u=o[0].toTex(e),a[0]&&(u="\\left(".concat(u,"\\right)")),"right"===t?s+u:u+s;if(2!==o.length)return 2{function t(e){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!R(e))throw new TypeError('Node expected for parameter "content"');this.content=e}return e=e.Node,(t.prototype=new e).type="ParenthesisNode",t.prototype.isParenthesisNode=!0,t.prototype._compile=function(e,t){return this.content._compile(e,t)},t.prototype.getContent=function(){return this.content.getContent()},t.prototype.forEach=function(e){e(this.content,"content",this)},t.prototype.map=function(e){return new t(e(this.content,"content",this))},t.prototype.clone=function(){return new t(this.content)},t.prototype._toString=function(e){return!e||!e.parenthesis||e&&"keep"===e.parenthesis?"("+this.content.toString(e)+")":this.content.toString(e)},t.prototype.toJSON=function(){return{mathjs:"ParenthesisNode",content:this.content}},t.fromJSON=function(e){return new t(e.content)},t.prototype.toHTML=function(e){return!e||!e.parenthesis||e&&"keep"===e.parenthesis?'('+this.content.toHTML(e)+')':this.content.toHTML(e)},t.prototype._toTex=function(e){return!e||!e.parenthesis||e&&"keep"===e.parenthesis?"\\left(".concat(this.content.toTex(e),"\\right)"):this.content.toTex(e)},t},{isClass:!0,isNode:!0}),gg=tt("RelationalNode",["Node"],e=>{function t(e,n){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!Array.isArray(e))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(n))throw new TypeError("Parameter params must be an array");if(e.length!==n.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=e,this.params=n}return e=e.Node,(t.prototype=new e).type="RelationalNode",t.prototype.isRelationalNode=!0,t.prototype._compile=function(e,t){var n=this,r=this.params.map(n=>n._compile(e,t));return function(t,i,o){for(var a=r[0](t,i,o),s=0;se(t,"params["+n+"]",this),this)},t.prototype.map=function(e){return new t(this.conditionals.slice(),this.params.map((t,n)=>this._ifNode(e(t,"params["+n+"]",this)),this))},t.prototype.clone=function(){return new t(this.conditionals,this.params)},t.prototype._toString=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",n=ig(this,t),r=this.params.map((function(r,i){var o=ig(r,t);return"all"===t||null!==o&&o<=n?"("+r.toString(e)+")":r.toString(e)})),i={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="},o=r[0],a=0;a('+r.toHTML(e)+')':r.toHTML(e)})),i={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="},o=r[0],a=0;a'+Te(i[this.conditionals[a]])+""+r[a+1];return o},t.prototype._toTex=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",n=ig(this,t),r=this.params.map((function(r,i){var o=ig(r,t);return"all"===t||null!==o&&o<=n?"\\left("+r.toTex(e)+"\right)":r.toTex(e)})),i=r[0],o=0;o{function t(e){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(this.items=e||[],!Array.isArray(this.items)||!this.items.every(R))throw new TypeError("Array containing Nodes expected")}return e=e.Node,(t.prototype=new e).type="ArrayNode",t.prototype.isArrayNode=!0,t.prototype._compile=function(e,t){var n,r=We(this.items,(function(n){return n._compile(e,t)}));return"Array"!==e.config.matrix?(n=e.matrix,function(e,t,i){return n(We(r,(function(n){return n(e,t,i)})))}):function(e,t,n){return We(r,(function(r){return r(e,t,n)}))}},t.prototype.forEach=function(e){for(var t=0;t['+this.items.map((function(t){return t.toHTML(e)})).join(',')+']'},t.prototype._toTex=function(e){return function t(n,r){var i=n.some(O)&&!n.every(O),o=r||i,a=o?"&":"\\\\";n=n.map((function(n){return n.items?t(n.items,!r):n.toTex(e)})).join(a);return i||!o||o&&!r?"\\begin{bmatrix}"+n+"\\end{bmatrix}":n}(this.items,!1)},t},{isClass:!0,isNode:!0}),yg=tt("BlockNode",["ResultSet","Node"],e=>{var{ResultSet:t,Node:e}=e;function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!Array.isArray(e))throw new Error("Array expected");this.blocks=e.map((function(e){var t=e&&e.node;e=!e||void 0===e.visible||e.visible;if(!R(t))throw new TypeError('Property "node" must be a Node');if("boolean"!=typeof e)throw new TypeError('Property "visible" must be a boolean');return{node:t,visible:e}}))}return(n.prototype=new e).type="BlockNode",n.prototype.isBlockNode=!0,n.prototype._compile=function(e,n){var r=We(this.blocks,(function(t){return{evaluate:t.node._compile(e,n),visible:t.visible}}));return function(e,n,i){var o=[];return Ye(r,(function(t){var r=t.evaluate(e,n,i);t.visible&&o.push(r)})),new t(o)}},n.prototype.forEach=function(e){for(var t=0;t;')})).join('
      ')},n.prototype._toTex=function(e){return this.blocks.map((function(t){return t.node.toTex(e)+(t.visible?"":";")})).join("\\;\\;\n")},n},{isClass:!0,isNode:!0}),bg=tt("ConditionalNode",["Node"],e=>{function t(e,n,r){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!R(e))throw new TypeError("Parameter condition must be a Node");if(!R(n))throw new TypeError("Parameter trueExpr must be a Node");if(!R(r))throw new TypeError("Parameter falseExpr must be a Node");this.condition=e,this.trueExpr=n,this.falseExpr=r}return e=e.Node,(t.prototype=new e).type="ConditionalNode",t.prototype.isConditionalNode=!0,t.prototype._compile=function(e,t){var n=this.condition._compile(e,t),r=this.trueExpr._compile(e,t),i=this.falseExpr._compile(e,t);return function(e,t,o){return(function(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e)return e;if(e){if(s(e))return!e.isZero();if(u(e))return e.re||e.im;if(l(e))return e.value}if(null!=e)throw new TypeError('Unsupported type of condition "'+U(e)+'"')}(n(e,t,o))?r:i)(e,t,o)}},t.prototype.forEach=function(e){e(this.condition,"condition",this),e(this.trueExpr,"trueExpr",this),e(this.falseExpr,"falseExpr",this)},t.prototype.map=function(e){return new t(this._ifNode(e(this.condition,"condition",this)),this._ifNode(e(this.trueExpr,"trueExpr",this)),this._ifNode(e(this.falseExpr,"falseExpr",this)))},t.prototype.clone=function(){return new t(this.condition,this.trueExpr,this.falseExpr)},t.prototype._toString=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=ig(this,t),r=this.condition.toString(e),i=ig(this.condition,t),o=(i=(("all"===t||"OperatorNode"===this.condition.type||null!==i&&i<=n)&&(r="("+r+")"),this.trueExpr.toString(e)),ig(this.trueExpr,t));("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=n)&&(i="("+i+")"),o=this.falseExpr.toString(e),e=ig(this.falseExpr,t);return r+" ? "+i+" : "+("all"===t||"OperatorNode"===this.falseExpr.type||null!==e&&e<=n?"("+o+")":o)},t.prototype.toJSON=function(){return{mathjs:"ConditionalNode",condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}},t.fromJSON=function(e){return new t(e.condition,e.trueExpr,e.falseExpr)},t.prototype.toHTML=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",n=ig(this,t),r=this.condition.toHTML(e),i=ig(this.condition,t),o=(i=(("all"===t||"OperatorNode"===this.condition.type||null!==i&&i<=n)&&(r='('+r+')'),this.trueExpr.toHTML(e)),ig(this.trueExpr,t));("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=n)&&(i='('+i+')'),o=this.falseExpr.toHTML(e),e=ig(this.falseExpr,t);return r+'?'+i+':'+("all"===t||"OperatorNode"===this.falseExpr.type||null!==e&&e<=n?'('+o+')':o)},t.prototype._toTex=function(e){return"\\begin{cases} {"+this.trueExpr.toTex(e)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(e)+"}\\\\{"+this.falseExpr.toTex(e)+"}, &\\quad{\\text{otherwise}}\\end{cases}"},t},{isClass:!0,isNode:!0}),xg=tt("ConstantNode",["Node"],e=>{function t(e){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");this.value=e}return e=e.Node,(t.prototype=new e).type="ConstantNode",t.prototype.isConstantNode=!0,t.prototype._compile=function(e,t){var n=this.value;return function(){return n}},t.prototype.forEach=function(e){},t.prototype.map=function(e){return this.clone()},t.prototype.clone=function(){return new t(this.value)},t.prototype._toString=function(e){return De(this.value,e)},t.prototype.toHTML=function(e){var t=this._toString(e);switch(U(this.value)){case"number":case"BigNumber":case"Fraction":return''+t+"";case"string":return''+t+"";case"boolean":return''+t+"";case"null":return''+t+"";case"undefined":return''+t+"";default:return''+t+""}},t.prototype.toJSON=function(){return{mathjs:"ConstantNode",value:this.value}},t.fromJSON=function(e){return new t(e.value)},t.prototype._toTex=function(e){var t,n=this._toString(e);switch(U(this.value)){case"string":return"\\mathtt{"+fg(n)+"}";case"number":case"BigNumber":return isFinite(this.value)?-1!==(t=n.toLowerCase().indexOf("e"))?n.substring(0,t)+"\\cdot10^{"+n.substring(t+1)+"}":n:this.value.valueOf()<0?"-\\infty":"\\infty";case"Fraction":return this.value.toLatex();default:return n}},t},{isClass:!0,isNode:!0}),wg=tt("RangeNode",["Node"],e=>{function t(e,n,r){if(!(this instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!R(e))throw new TypeError("Node expected");if(!R(n))throw new TypeError("Node expected");if(r&&!R(r))throw new TypeError("Node expected");if(3('+r+')':r,this.step&&(i=this.step.toHTML(e),r+=':'+(i=t.step?'('+i+')':i)),this.end.toHTML(e));return r+':'+(t.end?'('+i+')':i)},t.prototype._toTex=function(e){var t=n(this,e&&e.parenthesis?e.parenthesis:"keep"),r=this.start.toTex(e),i=(t.start&&(r="\\left(".concat(r,"\\right)")),this.step&&(i=this.step.toTex(e),r+=":"+(i=t.step?"\\left(".concat(i,"\\right)"):i)),this.end.toTex(e));return r+":"+(t.end?"\\left(".concat(i,"\\right)"):i)},t},{isClass:!0,isNode:!0}),_g=tt("reviver",["classes"],e=>{var t=e["classes"];return function(e,n){var r=t[n&&n.mathjs];return r&&"function"==typeof r.fromJSON?r.fromJSON(n):n}}),Sg=tt("chain",["typed","Chain"],e=>{var{typed:e,Chain:t}=e;return e("chain",{"":function(){return new t},any:function(e){return new t(e)}})}),Cg=tt("FunctionAssignmentNode",["typed","Node"],e=>{var{typed:t,Node:e}=e;function n(e,t,r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('String expected for parameter "name"');if(!Array.isArray(t))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!R(r))throw new TypeError('Node expected for parameter "expr"');if(eg.has(e))throw new Error('Illegal function name, "'+e+'" is a reserved keyword');this.name=e,this.params=t.map((function(e){return e&&e.name||e})),this.types=t.map((function(e){return e&&e.type||"any"})),this.expr=r}function r(e,t){var n=ig(e,t);e=ig(e.expr,t);return"all"===t||null!==e&&e<=n}return(n.prototype=new e).type="FunctionAssignmentNode",n.prototype.isFunctionAssignmentNode=!0,n.prototype._compile=function(e,n){var r=Object.create(n),i=(Ye(this.params,(function(e){r[e]=!0})),this.expr._compile(e,r)),o=this.name,a=this.params,s=Qe(this.types,","),u=o+"("+Qe(this.params,", ")+")";return function(e,n,r){var c={};c[s]=function(){for(var t=Object.create(n),o=0;o'+Te(this.params[i])+"");return e=this.expr.toHTML(e),r(this,t)&&(e='('+e+')'),''+Te(this.name)+'('+n.join(',')+')='+e},n.prototype._toTex=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep";e=this.expr.toTex(e);return r(this,t)&&(e="\\left(".concat(e,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(pg).join(",")+"\\right):="+e},n},{isClass:!0,isNode:!0});function Ag(e){return e&&e.isIndexError?new Pe(e.index+1,e.min+1,void 0!==e.max?e.max+1:void 0):e}function Eg(e){var t=e["subset"];return function(e,n){try{if(Array.isArray(e))return t(e,n);if(e&&"function"==typeof e.subset)return e.subset(n);if("string"==typeof e)return t(e,n);if("object"!=typeof e)throw new TypeError("Cannot apply index: unsupported type of object");if(n.isObjectProperty())return Hn(e,n.getObjectProperty());throw new TypeError("Cannot apply a numeric index as object property")}catch(e){throw Ag(e)}}}var Ng=tt("AccessorNode",["subset","Node"],e=>{var{subset:e,Node:t}=e,n=Eg({subset:e});function r(e,t){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!R(e))throw new TypeError('Node expected for parameter "object"');if(!$(t))throw new TypeError('IndexNode expected for parameter "index"');this.object=e||null,this.index=t,Object.defineProperty(this,"name",{get:function(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}function i(e){return!(k(e)||O(e)||j(e)||P(e)||B(e)||L(e)||V(e))}return(r.prototype=new t).type="AccessorNode",r.prototype.isAccessorNode=!0,r.prototype._compile=function(e,t){var r,i=this.object._compile(e,t),o=this.index._compile(e,t);return this.index.isObjectProperty()?(r=this.index.getObjectProperty(),function(e,t,n){return Hn(i(e,t,n),r)}):function(e,t,r){return r=i(e,t,r),e=o(e,t,r),n(r,e)}},r.prototype.forEach=function(e){e(this.object,"object",this),e(this.index,"index",this)},r.prototype.map=function(e){return new r(this._ifNode(e(this.object,"object",this)),this._ifNode(e(this.index,"index",this)))},r.prototype.clone=function(){return new r(this.object,this.index)},r.prototype._toString=function(e){var t=this.object.toString(e);return(t=i(this.object)?"("+t+")":t)+this.index.toString(e)},r.prototype.toHTML=function(e){var t=this.object.toHTML(e);return(t=i(this.object)?'('+t+')':t)+this.index.toHTML(e)},r.prototype._toTex=function(e){var t=this.object.toTex(e);return(t=i(this.object)?"\\left(' + object + '\\right)":t)+this.index.toTex(e)},r.prototype.toJSON=function(){return{mathjs:"AccessorNode",object:this.object,index:this.index}},r.fromJSON=function(e){return new r(e.object,e.index)},r},{isClass:!0,isNode:!0}),kg=tt("AssignmentNode",["subset","?matrix","Node"],e=>{var{subset:e,matrix:t,Node:n}=e,r=Eg({subset:e}),i=function(e){var{subset:t,matrix:n}=e;return function(e,r,i){try{if(Array.isArray(e))return n(e).subset(r,i).valueOf();if(e&&"function"==typeof e.subset)return e.subset(r,i);if("string"==typeof e)return t(e,r,i);if("object"!=typeof e)throw new TypeError("Cannot apply index: unsupported type of object");if(r.isObjectProperty())return Wn(e,r.getObjectProperty(),i),e;throw TypeError("Cannot apply a numeric index as object property")}catch(e){throw Ag(e)}}}({subset:e,matrix:t});function o(e,t,n){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");if(this.object=e,this.index=n?t:null,this.value=n||t,!V(e)&&!k(e))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(V(e)&&"end"===e.name)throw new Error('Cannot assign to symbol "end"');if(this.index&&!$(this.index))throw new TypeError('IndexNode expected as "index"');if(!R(this.value))throw new TypeError('Node expected as "value"');Object.defineProperty(this,"name",{get:function(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}function a(e,t){var n=ig(e,t=t||"keep");e=ig(e.value,t);return"all"===t||null!==e&&e<=n}return(o.prototype=new n).type="AssignmentNode",o.prototype.isAssignmentNode=!0,o.prototype._compile=function(e,t){var n,o,a,s,u=this.object._compile(e,t),c=this.index?this.index._compile(e,t):null,l=this.value._compile(e,t),d=this.object.name;if(this.index)return this.index.isObjectProperty()?(n=this.index.getObjectProperty(),function(e,t,r){var i=u(e,t,r);e=l(e,t,r);return Wn(i,n,e),e}):V(this.object)?function(e,t,n){var r=u(e,t,n);n=l(e,t,n),t=c(e,t,r);return e.set(d,i(r,t,n)),n}:(o=this.object.object._compile(e,t),this.object.index.isObjectProperty()?(a=this.object.index.getObjectProperty(),function(e,t,n){var r=o(e,t,n),s=Hn(r,a),u=c(e,t,s);e=l(e,t,n);return Wn(r,a,i(s,u,e)),e}):(s=this.object.index._compile(e,t),function(e,t,n){var a=o(e,t,n),u=s(e,t,a),d=r(a,u),f=c(e,t,d);e=l(e,t,n);return i(a,u,i(d,f,e)),e}));if(V(this.object))return function(e,t,n){return t=l(e,t,n),e.set(d,t),t};throw new TypeError("SymbolNode expected as object")},o.prototype.forEach=function(e){e(this.object,"object",this),this.index&&e(this.index,"index",this),e(this.value,"value",this)},o.prototype.map=function(e){return new o(this._ifNode(e(this.object,"object",this)),this.index?this._ifNode(e(this.index,"index",this)):null,this._ifNode(e(this.value,"value",this)))},o.prototype.clone=function(){return new o(this.object,this.index,this.value)},o.prototype._toString=function(e){var t=this.object.toString(e),n=this.index?this.index.toString(e):"",r=this.value.toString(e);return t+n+" = "+(a(this,e&&e.parenthesis)?"("+r+")":r)},o.prototype.toJSON=function(){return{mathjs:"AssignmentNode",object:this.object,index:this.index,value:this.value}},o.fromJSON=function(e){return new o(e.object,e.index,e.value)},o.prototype.toHTML=function(e){var t=this.object.toHTML(e),n=this.index?this.index.toHTML(e):"",r=this.value.toHTML(e);return t+n+'='+(a(this,e&&e.parenthesis)?'('+r+')':r)},o.prototype._toTex=function(e){var t=this.object.toTex(e),n=this.index?this.index.toTex(e):"",r=this.value.toTex(e);return t+n+":="+(a(this,e&&e.parenthesis)?"\\left(".concat(r,"\\right)"):r)},o},{isClass:!0,isNode:!0}),Og=tt("IndexNode",["Node","size"],e=>{var{Node:e,size:t}=e;function n(e,t){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(this.dimensions=e,this.dotNotation=t||!1,!Array.isArray(e)||!e.every(R))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}return(n.prototype=new e).type="IndexNode",n.prototype.isIndexNode=!0,n.prototype._compile=function(e,n){var r=We(this.dimensions,(function(r,i){var o,a;return 0e.isSymbolNode&&"end"===e.name).length?((o=Object.create(n)).end=!0,a=r._compile(e,o),function(e,n,r){var o;if(p(r)||f(r)||d(r))return o=t(r).valueOf(),(n=Object.create(n)).end=o[i],a(e,n,r);throw new TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+U(r))}):r._compile(e,n)})),i=Hn(e,"index");return function(e,t,n){var o=We(r,(function(r){return r(e,t,n)}));return i(...o)}},n.prototype.forEach=function(e){for(var t=0;t.'+Te(this.getObjectProperty())+"":'['+t.join(',')+']'},n.prototype._toTex=function(e){var t=this.dimensions.map((function(t){return t.toTex(e)}));return this.dotNotation?"."+this.getObjectProperty():"_{"+t.join(",")+"}"},n},{isClass:!0,isNode:!0}),Dg=tt("SymbolNode",["math","?Unit","Node"],e=>{var{math:t,Unit:n,Node:e}=e;function r(e){return!!n&&n.isValuelessUnit(e)}function i(e){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('String expected for parameter "name"');this.name=e}return(i.prototype=new e).type="SymbolNode",i.prototype.isSymbolNode=!0,i.prototype._compile=function(e,t){var o,a=this.name;return!0===t[a]?function(e,t,n){return t[a]}:a in e?function(t,n,r){return t.has(a)?t.get(a):Hn(e,a)}:(o=r(a),function(e,t,r){return e.has(a)?e.get(a):o?new n(null,a):i.onUndefinedSymbol(a)})},i.prototype.forEach=function(e){},i.prototype.map=function(e){return this.clone()},i.onUndefinedSymbol=function(e){throw new Error("Undefined symbol "+e)},i.prototype.clone=function(){return new i(this.name)},i.prototype._toString=function(e){return this.name},i.prototype.toHTML=function(e){var t=Te(this.name);return"true"===t||"false"===t?''+t+"":"i"===t?''+t+"":"Infinity"===t?''+t+"":"NaN"===t?''+t+"":"null"===t?''+t+"":"undefined"===t?''+t+"":''+t+""},i.prototype.toJSON=function(){return{mathjs:"SymbolNode",name:this.name}},i.fromJSON=function(e){return new i(e.name)},i.prototype._toTex=function(e){var n=!1;void 0===t[this.name]&&r(this.name)&&(n=!0),n=pg(this.name,n);return"\\"===n[0]?n:" "+n},i},{isClass:!0,isNode:!0});function Mg(e){for(var t=arguments.length,n=new Array(1{var{math:t,Node:e,SymbolNode:n}=e;function r(e,t){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!R(e="string"==typeof e?new n(e):e))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(t)||!t.every(R))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=e,this.args=t||[],Object.defineProperty(this,"name",{get:function(){return this.fn.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}(r.prototype=new e).type="FunctionNode",r.prototype.isFunctionNode=!0;var i=e=>De(e,{truncate:78}),o=(r.prototype._compile=function(e,t){if(!(this instanceof r))throw new TypeError("No valid FunctionNode");var n,o,a,s,u,c,l=this.args.map(n=>n._compile(e,t));if(!V(this.fn))return k(this.fn)&&$(this.fn.index)&&this.fn.index.isObjectProperty()?(n=this.fn.object._compile(e,t),o=this.fn.index.getObjectProperty(),a=this.args,function(t,r,i){var s,u=n(t,r,i),c=o;if(Gn(u,c))return u[o]&&u[o].rawArgs?u[o](a,e,Mg(t,r),t):(s=l.map(e=>e(t,r,i)),u[o].apply(u,s));throw new Error('No access to method "'+c+'"')}):(s=this.fn.toString(),u=this.fn._compile(e,t),c=this.args,function(t,n,r){var o,a=u(t,n,r);if("function"!=typeof a)throw new TypeError("Expression '".concat(s,"' did not evaluate to a function; value is:")+"\n ".concat(i(a)));return a.rawArgs?a(c,e,Mg(t,n),t):(o=l.map(e=>e(t,n,r)),a.apply(a,o))});var d,f=this.fn.name;if(t[f])return d=this.args,function(t,n,r){var o,a=n[f];if("function"!=typeof a)throw new TypeError("Argument '".concat(f,"' was not a function; received: ").concat(i(a)));return a.rawArgs?a(d,e,Mg(t,n),t):(o=l.map(e=>e(t,n,r)),a.apply(a,o))};var p,h=f in e?Hn(e,f):void 0,m=(h="function"==typeof h&&!0===h.rawArgs,t=>{var n;if(t.has(f))n=t.get(f);else{if(!(f in e))return r.onUndefinedFunction(f);n=Hn(e,f)}if("function"==typeof n)return n;throw new TypeError("'".concat(f,"' is not a function; its value is:\n ").concat(i(n)))});if(h)return p=this.args,function(t,n,r){return m(t)(p,e,Mg(t,n),t)};switch(l.length){case 0:return function(e,t,n){return m(e)()};case 1:return function(e,t,n){return m(e)((0,l[0])(e,t,n))};case 2:return function(e,t,n){var r=m(e),i=l[0],o=l[1];return r(i(e,t,n),o(e,t,n))};default:return function(e,t,n){return m(e)(...l.map(r=>r(e,t,n)))}}},r.prototype.forEach=function(e){e(this.fn,"fn",this);for(var t=0;t'+Te(this.fn)+'('+t.join(',')+')'};var s=r.prototype.toTex;return r.prototype.toTex=function(e){var t;return void 0!==(t=e&&"object"==typeof e.handler&&K(e.handler,this.name)?e.handler[this.name](this,e):t)?t:s.call(this,e)},r.prototype._toTex=function(e){var n,r,i=this.args.map((function(t){return t.toTex(e)}));switch(lg[this.name]&&(n=lg[this.name]),typeof(n=!t[this.name]||"function"!=typeof t[this.name].toTex&&"object"!=typeof t[this.name].toTex&&"string"!=typeof t[this.name].toTex?n:t[this.name].toTex)){case"function":r=n(this,e);break;case"string":r=a(n,this,e);break;case"object":switch(typeof n[i.length]){case"function":r=n[i.length](this,e);break;case"string":r=a(n[i.length],this,e)}}return void 0!==r?r:a("\\mathrm{${name}}\\left(${args}\\right)",this,e)},r.prototype.getIdentifier=function(){return this.type+":"+this.name},r},{isClass:!0,isNode:!0}),jg=tt("parse",["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],e=>{var{typed:e,numeric:t,config:n,AccessorNode:r,ArrayNode:o,AssignmentNode:a,BlockNode:s,ConditionalNode:u,ConstantNode:c,FunctionAssignmentNode:l,FunctionNode:d,IndexNode:f,ObjectNode:p,OperatorNode:h,ParenthesisNode:m,RangeNode:g,RelationalNode:v,SymbolNode:y}=e,b=e("parse",{string:function(e){return B(e,{})},"Array | Matrix":function(e){return x(e,{})},"string, Object":function(e,t){return B(e,void 0!==t.nodes?t.nodes:{})},"Array | Matrix, Object":x});function x(e){var t=1":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},S={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},C={true:!0,false:!1,null:null,undefined:void 0},A=["NaN","Infinity"];function E(e,t){return e.expression.substr(e.index,t)}function N(e){return E(e,1)}function O(e){e.index++}function D(e){return e.expression.charAt(e.index-1)}function M(e){return e.expression.charAt(e.index+1)}function T(e){for(e.tokenType=w.NULL,e.token="",e.comment="";;){if("#"===N(e))for(;"\n"!==N(e)&&""!==N(e);)e.comment+=N(e),O(e);if(!b.isWhitespace(N(e),e.nestingLevel))break;O(e)}if(""===N(e))e.tokenType=w.DELIMITER;else if("\n"!==N(e)||e.nestingLevel){var t=N(e),n=E(e,2),r=E(e,3);if(3===r.length&&_[r])e.tokenType=w.DELIMITER,e.token=r,O(e),O(e),O(e);else if(2===n.length&&_[n])e.tokenType=w.DELIMITER,e.token=n,O(e),O(e);else if(_[t])e.tokenType=w.DELIMITER,e.token=t,O(e);else if(b.isDigitDot(t))if(e.tokenType=w.NUMBER,r=E(e,2),"0b"===r||"0o"===r||"0x"===r){for(e.token+=N(e),O(e),e.token+=N(e),O(e);b.isHexDigit(N(e));)e.token+=N(e),O(e);if("."===N(e))for(e.token+=".",O(e);b.isHexDigit(N(e));)e.token+=N(e),O(e);else if("i"===N(e))for(e.token+="i",O(e);b.isDigit(N(e));)e.token+=N(e),O(e)}else{if("."===N(e)){if(e.token+=N(e),O(e),!b.isDigit(N(e)))return void(e.tokenType=w.DELIMITER)}else{for(;b.isDigit(N(e));)e.token+=N(e),O(e);b.isDecimalMark(N(e),M(e))&&(e.token+=N(e),O(e))}for(;b.isDigit(N(e));)e.token+=N(e),O(e);if("E"===N(e)||"e"===N(e))if(b.isDigit(M(e))||"-"===M(e)||"+"===M(e)){if(e.token+=N(e),O(e),"+"!==N(e)&&"-"!==N(e)||(e.token+=N(e),O(e)),!b.isDigit(N(e)))throw ce(e,'Digit expected, got "'+N(e)+'"');for(;b.isDigit(N(e));)e.token+=N(e),O(e);if(b.isDecimalMark(N(e),M(e)))throw ce(e,'Digit expected, got "'+N(e)+'"')}else if("."===M(e))throw O(e),ce(e,'Digit expected, got "'+N(e)+'"')}else{if(!b.isAlpha(N(e),D(e),M(e))){for(e.tokenType=w.UNKNOWN;""!==N(e);)e.token+=N(e),O(e);throw ce(e,'Syntax error in part "'+e.token+'"')}for(;b.isAlpha(N(e),D(e),M(e))||b.isDigit(N(e));)e.token+=N(e),O(e);K(S,e.token)?e.tokenType=w.DELIMITER:e.tokenType=w.SYMBOL}}else e.tokenType=w.DELIMITER,e.token=N(e),O(e)}function I(e){for(;T(e),"\n"===e.token;);}function $(e){e.nestingLevel++}function R(e){e.nestingLevel--}function B(e,t){var n={extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:w.NULL,nestingLevel:0,conditionalLevel:null};i()(n,{expression:e,extraNodes:t}),T(n),e=function(e){var t,n,r=[];for(""!==e.token&&"\n"!==e.token&&";"!==e.token&&((t=L(e)).comment=e.comment);"\n"===e.token||";"===e.token;)0===r.length&&t&&(n=";"!==e.token,r.push({node:t,visible:n})),T(e),"\n"!==e.token&&";"!==e.token&&""!==e.token&&((t=L(e)).comment=e.comment,n=";"!==e.token,r.push({node:t,visible:n}));return 0":"larger","<=":"smallerEq",">=":"largerEq"};K(r,e.token);){var i={name:e.token,fn:r[e.token]};n.push(i),I(e),t.push(G(e))}return 1===t.length?t[0]:2===t.length?new h(n[0].name,n[0].fn,t):new v(n.map(e=>e.fn),t)}function G(e){for(var t,n,r,i=X(e),o={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};K(o,e.token);)n=o[t=e.token],I(e),r=[i,X(e)],i=new h(t,n,r);return i}function X(e){for(var t,n,r,i=Q(e),o={to:"to",in:"to"};K(o,e.token);)n=o[t=e.token],I(e),i="in"===t&&""===e.token?new h("*","multiply",[i,new y("in")],!0):(r=[i,Q(e)],new h(t,n,r));return i}function Q(e){var t=[],n=":"===e.token?new c(1):J(e);if(":"===e.token&&e.conditionalLevel!==e.nestingLevel){for(t.push(n);":"===e.token&&t.length<3;)I(e),")"===e.token||"]"===e.token||","===e.token||""===e.token?t.push(new y("end")):t.push(J(e));n=3===t.length?new g(t[0],t[2],t[1]):new g(t[0],t[1])}return n}function J(e){o=Z(e);for(var t,n,r={"+":"add","-":"subtract"};K(r,e.token);){n=r[t=e.token],I(e);var i=Z(e),o=(i=i.isPercentage?[o,new h("*","multiply",[o,i])]:[o,i],new h(t,n,i))}return o}function Z(e){for(var t,n,r,i=ee(e),o={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};K(o,e.token);)n=o[t=e.token],I(e),r=ee(e),i=new h(t,n,[i,r]);return i}function ee(e){for(var t=te(e),n=t;e.tokenType===w.SYMBOL||"in"===e.token&&j(t)||!(e.tokenType!==w.NUMBER||j(n)||F(n)&&"!"!==n.op)||"("===e.token;)n=te(e),t=new h("*","multiply",[t,n],!0);return t}function te(e){for(var t=ne(e),n=t,r=[];"/"===e.token&&j(n);){if(r.push(i()({},e)),I(e),e.tokenType!==w.NUMBER){i()(e,r.pop());break}if(r.push(i()({},e)),I(e),e.tokenType!==w.SYMBOL&&"("!==e.token){r.pop(),i()(e,r.pop());break}i()(e,r.pop()),r.pop(),n=ne(e),t=new h("/","divide",[t,n])}return t}function ne(e){for(var t,n,r,i=re(e),o={"%":"mod",mod:"mod"};K(o,e.token);)n=o[t=e.token],I(e),i="%"===t&&e.tokenType===w.DELIMITER&&"("!==e.token?new h("/","divide",[i,new c(100)],!1,!0):(r=[i,re(e)],new h(t,n,r));return i}function re(e){var r,i,a={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return K(a,e.token)?(a=a[e.token],r=e.token,I(e),i=[re(e)],new h(r,a,i)):(a=function(e){r=function(e){var r=[];if(e.tokenType===w.SYMBOL&&K(e.extraNodes,e.token)){var i=e.extraNodes[e.token];if(T(e),"("===e.token){if(r=[],$(e),T(e),")"!==e.token)for(r.push(L(e));","===e.token;)T(e),r.push(L(e));if(")"!==e.token)throw ce(e,"Parenthesis ) expected");R(e),T(e)}return new i(r)}return function(e){var r;return e.tokenType===w.SYMBOL||e.tokenType===w.DELIMITER&&e.token in S?(r=e.token,T(e),r=K(C,r)?new c(C[r]):-1!==A.indexOf(r)?new c(t(r,"number")):new y(r),ie(e,r)):function(e){var r,i,a,s;if('"'===e.token)return u=oe(e),u=new c(u),ie(e,u);var u=e;if("'"===u.token)return b=ae(u),b=new c(b),ie(u,b);var l=u;if("["!==l.token){var d=l;if("{"!==d.token){var f,h=d;if(h.tokenType===w.NUMBER)return g=h.token,T(h),new c(t(g,n.number));var g=h;if("("!==g.token)throw""===(f=g).token?ce(f,"Unexpected end of expression"):ce(f,"Value expected");if($(g),T(g),f=L(g),")"!==g.token)throw ce(g,"Parenthesis ) expected");return R(g),T(g),f=new m(f),ie(g,f)}$(d);var v,y={};do{if(T(d),"}"!==d.token){if('"'===d.token)v=oe(d);else if("'"===d.token)v=ae(d);else{if(!(d.tokenType===w.SYMBOL||d.tokenType===w.DELIMITER&&d.token in S))throw ce(d,"Symbol or string expected as object key");v=d.token,T(d)}if(":"!==d.token)throw ce(d,"Colon : expected after object key");T(d),y[v]=L(d)}}while(","===d.token);if("}"!==d.token)throw ce(d,"Comma , or bracket } expected after object value");return R(d),T(d),h=new p(y),ie(d,h)}if($(l),T(l),"]"!==l.token){var b=se(l);if(";"===l.token){for(a=1,i=[b];";"===l.token;)T(l),i[a]=se(l),a++;if("]"!==l.token)throw ce(l,"End of matrix ] expected");R(l),T(l),s=i[0].items.length;for(var x=1;x{var{parse:t,ConstantNode:n,FunctionNode:r,OperatorNode:i,ParenthesisNode:o}=e;return function e(a,s){var u=2e(t,s,u))}});function Pg(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function $g(e){for(var t=1;t{var{FunctionNode:t,OperatorNode:n,SymbolNode:r}=e,i="defaultF",o={add:{trivial:!0,total:!0,commutative:!0,associative:!0},unaryPlus:{trivial:!0,total:!0,commutative:!0,associative:!0},subtract:{trivial:!1,total:!0,commutative:!1,associative:!1},multiply:{trivial:!0,total:!0,commutative:!0,associative:!0},divide:{trivial:!1,total:!0,commutative:!1,associative:!1},paren:{trivial:!0,total:!0,commutative:!0,associative:!1},defaultF:{trivial:!1,total:!0,commutative:!1,associative:!1}};function a(e,t){var n=2{var{equal:t,isZero:n,add:r,subtract:i,multiply:o,divide:a,pow:s,AccessorNode:u,ArrayNode:c,ConstantNode:l,FunctionNode:d,IndexNode:f,ObjectNode:p,OperatorNode:h,SymbolNode:e}=e,m=new l(0),g=new l(1),{hasProperty:v,isCommutative:y}=Rg({FunctionNode:d,OperatorNode:h,SymbolNode:e});return function e(b,x){var w=x?x.context:void 0;if(v(b,"trivial",w)){if(P(b)&&1===b.args.length)return e(b.args[0],x);var _=!1,S=0;if(b.forEach(t=>{1==++S&&(_=e(t,x))}),1===S)return _}if(F(b)&&b.isUnary()){var C=e(b.args[0],x);if("-"===b.op){if(F(C)){if(C.isUnary()&&"-"===C.op)return C.args[0];if(C.isBinary()&&"subtract"===C.fn)return new h("-","subtract",[C.args[1],C.args[0]])}return new h(b.op,b.fn,[C])}}else{if(F(b)&&b.isBinary()){C=e(b.args[0],x);var A=e(b.args[1],x);if("+"===b.op){if(j(C)){if(n(C.value))return A;if(j(A))return new l(r(C.value,A.value))}return j(A)&&n(A.value)?C:F(A)&&A.isUnary()&&"-"===A.op?new h("-","subtract",[C,A.args[0]]):new h(b.op,b.fn,A?[C,A]:[C])}if("-"===b.op){if(j(C)&&A){if(j(A))return new l(i(C.value,A.value));if(n(C.value))return new h("-","unaryMinus",[A])}if("subtract"===b.fn)return j(A)&&n(A.value)?C:F(A)&&A.isUnary()&&"-"===A.op?e(new h("+","add",[C,A.args[0]]),x):new h(b.op,b.fn,[C,A])}else{if("*"===b.op){if(j(C)){if(n(C.value))return m;if(t(C.value,1))return A;if(j(A))return new l(o(C.value,A.value))}if(j(A)){if(n(A.value))return m;if(t(A.value,1))return C;if(F(C)&&C.isBinary()&&C.op===b.op&&y(b,w)){var E=C.args[0];if(j(E))return E=new l(o(E.value,A.value)),new h(b.op,b.fn,[E,C.args[1]],b.implicit)}return y(b,w)?new h(b.op,b.fn,[A,C],b.implicit):new h(b.op,b.fn,[C,A],b.implicit)}return new h(b.op,b.fn,[C,A],b.implicit)}if("/"===b.op){if(j(C)){if(n(C.value))return m;if(j(A)&&(t(A.value,1)||t(A.value,2)||t(A.value,4)))return new l(a(C.value,A.value))}return new h(b.op,b.fn,[C,A])}if("^"===b.op&&j(A)){if(n(A.value))return g;if(t(A.value,1))return C;if(j(C))return new l(s(C.value,A.value));if(F(C)&&C.isBinary()&&"^"===C.op&&j(E=C.args[1]))return new h(b.op,b.fn,[C.args[0],new l(o(E.value,A.value))])}}return new h(b.op,b.fn,[C,A])}if(P(b))return new d(e(b.fn),b.args.map(t=>e(t,x)));if(O(b))return new c(b.items.map(t=>e(t,x)));if(k(b))return new u(e(b.object,x),e(b.index,x));if($(b))return new f(b.dimensions.map(t=>e(t,x)));if(B(b)){var N,D={};for(N in b.properties)D[N]=e(b.properties[N],x);return new p(D)}}return b}}),Fg=tt("compile",["typed","parse"],e=>{var{typed:e,parse:t}=e;return e("compile",{string:function(e){return t(e).compile()},"Array | Matrix":function(e){return dr(e,(function(e){return t(e).compile()}))}})}),Lg=tt("Help",["parse"],e=>{var t=e["parse"];function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!e)throw new Error('Argument "doc" missing');this.doc=e}return n.prototype.type="Help",n.prototype.isHelp=!0,n.prototype.toString=function(){var e=this.doc||{},n="\n";if(e.name&&(n+="Name: "+e.name+"\n\n"),e.category&&(n+="Category: "+e.category+"\n\n"),e.description&&(n+="Description:\n "+e.description+"\n\n"),e.syntax&&(n+="Syntax:\n "+e.syntax.join("\n ")+"\n\n"),e.examples){n+="Examples:\n";for(var r={},i=0;i"mathjs"!==e).forEach(n=>{t[n]=e[n]}),new n(t)},n.prototype.valueOf=n.prototype.toString,n},{isClass:!0}),zg=tt("leafCount",["parse","typed"],e=>{var{parse:t,typed:e}=e;return e("leafCount",{string:function(e){return this(t(e))},Node:function e(t){var n=0;return t.forEach(t=>{n+=e(t)}),n||1}})}),Vg=tt("simplifyConstant",["typed","config","mathWithTransform","matrix","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],e=>{var{typed:e,config:t,mathWithTransform:n,matrix:r,fraction:i,bignumber:o,AccessorNode:a,ArrayNode:s,ConstantNode:u,FunctionNode:l,IndexNode:d,ObjectNode:f,OperatorNode:h,SymbolNode:m}=e,{isCommutative:g,isAssociative:v,allChildren:y,createMakeNodeFunction:b}=Rg({FunctionNode:l,OperatorNode:h,SymbolNode:m});function x(e,t){return C(function e(t,i){switch(t.type){case"SymbolNode":return t;case"ConstantNode":switch(typeof t.value){case"number":return E(t.value,i);case"string":return t.value;default:if(!isNaN(t.value))return E(t.value,i)}return t;case"FunctionNode":if(n[t.name]&&n[t.name].rawArgs)return t;var o=["add","multiply"];if(-1===o.indexOf(t.name)){if(o=t.args.map(t=>e(t,i)),!o.some(R))try{return _(t.name,o,i)}catch(t){}if("size"===t.name&&1===o.length&&O(o[0])){for(var a=[],u=o[0];O(u);)a.push(u.items.length),u=u.items[0];return r(a)}return new l(t.name,o.map(C))}case"OperatorNode":o=t.fn.toString();var c,p,h=b(t);if(F(t)&&t.isUnary())c=[e(t.args[0],i)],p=R(c[0])?h(c):_(o,c,i);else if(v(t,i.context))if(c=(c=y(t,i.context)).map(t=>e(t,i)),g(o,i.context)){for(var m=[],w=[],S=0;Se(t,i)),p=D(o,c,h,i);return p;case"ParenthesisNode":return e(t.content,i);case"AccessorNode":return k(e(t.object,i),e(t.index,i),i);case"ArrayNode":return o=t.items.map(t=>e(t,i)),o.some(R)?new s(o.map(C)):r(o);case"IndexNode":return new d(t.dimensions.map(e=>x(e,i)));case"ObjectNode":var A,N={};for(A in t.properties)N[A]=x(t.properties[A],i);return new f(N);default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(t.type))}}(e,t))}function w(e){return c(e)?e.valueOf():e instanceof Array?e.map(w):p(e)?r(w(e.valueOf())):e}function _(t,r,i){try{return n[t].apply(null,r)}catch(e){return r=r.map(w),E(n[t].apply(null,r),i)}}var S=e({Fraction:function(e){var t=e.s*e.n;return t=t<0?new h("-","unaryMinus",[new u(-t)]):new u(t),1!==e.d?new h("/","divide",[t,new u(e.d)]):t},number:function(e){return e<0?N(new u(-e)):new u(e)},BigNumber:function(e){return e<0?N(new u(-e)):new u(e)},Complex:function(e){throw new Error("Cannot convert Complex number to Node")},string:function(e){return new u(e)},Matrix:function(e){return new s(e.valueOf().map(e=>S(e)))}});function C(e){return R(e)?e:S(e)}function A(e,t){if(t&&!1!==t.exactFractions&&isFinite(e)&&i){var n=i(e);t=t&&"number"==typeof t.fractionsLimit?t.fractionsLimit:1/0;if(n.valueOf()===e&&n.n{var{config:e,typed:t,parse:n,equal:r,resolve:i,simplifyCore:o,fraction:a,bignumber:s,mathWithTransform:u,matrix:c,AccessorNode:l,ArrayNode:d,ConstantNode:f,FunctionNode:p,IndexNode:h,ObjectNode:m,OperatorNode:g,ParenthesisNode:v,SymbolNode:y}=e,{hasProperty:b,isCommutative:x,isAssociative:w,mergeContext:_,flatten:S,unflattenr:C,unflattenl:A,createMakeNodeFunction:E,defaultContext:u,realContext:c,positiveContext:a}=(e=Vg({typed:t,config:e,mathWithTransform:u,matrix:c,fraction:a,bignumber:s,AccessorNode:l,ArrayNode:d,ConstantNode:f,FunctionNode:p,IndexNode:h,ObjectNode:m,OperatorNode:g,SymbolNode:y}),Rg({FunctionNode:p,OperatorNode:g,SymbolNode:y})),s=t("simplify",{string:function(e){return this(n(e),this.rules,Zn(),{})},"string, Map | Object":function(e,t){return this(n(e),this.rules,t,{})},"string, Map | Object, Object":function(e,t,r){return this(n(e),this.rules,t,r)},"string, Array":function(e,t){return this(n(e),t,Zn(),{})},"string, Array, Map | Object":function(e,t,r){return this(n(e),t,r,{})},"string, Array, Map | Object, Object":function(e,t,r,i){return this(n(e),t,r,i)},"Node, Map | Object":function(e,t){return this(e,this.rules,t,{})},"Node, Map | Object, Object":function(e,t,n){return this(e,this.rules,t,n)},Node:function(e){return this(e,this.rules,Zn(),{})},"Node, Array":function(e,t){return this(e,t,Zn(),{})},"Node, Array, Map | Object":function(e,t,n){return this(e,t,n,{})},"Node, Array, Object, Object":function(e,t,n,r){return this(e,t,er(n),r)},"Node, Array, Map, Object":function(e,t,r,o){for(var a=o.consoleDebug,s=(t=function(e,t){for(var r=[],i=0;i");if(2!==a.length)throw SyntaxError("Could not parse rule: "+e.s);o.l=a[0],o.r=a[1]}else o.l=e.l,o.r=e.r;for(r of(o.l=N(n(o.l)),o.r=N(n(o.r)),["imposeContext","repeat","assuming"]))r in e&&(o[r]=e[r]);return e.evaluate&&(o.evaluate=n(e.evaluate)),w(o.l,t)&&(a=E(o.l),i=new y("_p"+O++),o.expanded={},o.expanded.l=a([o.l.clone(),i]),S(o.expanded.l,t),C(o.expanded.l,t),o.expanded.r=a([o.r,i])),o}(o,t);break;case"function":a=o;break;default:throw TypeError("Unsupported type of rule: "+s)}r.push(a)}return r}(t,o.context),i(e,r)),u={},c=(s=N(s)).toString({parenthesis:"all"});!u[c];){u[c]=!0;for(var l=c,d=O=0;d ").concat(t[d].r.toString())),a&&(f=s.toString({parenthesis:"all"}))!==l&&(l=f),A(s,o.context)}c=s.toString({parenthesis:"all"})}return s}});function N(e){return e.transform((function(e,t,n){return L(e)?N(e.content):e}))}s.defaultContext=u,s.realContext=c,s.positiveContext=a;var k={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};s.rules=[o,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(c*v) -> v * (-c)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(c*v) -> (-c) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*c) -> v * (-c)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" v * ( v * n1 + n2)",r:"v^2 * n1 + v * n2"},{s:" v * (v^n4 * n1 + n2) -> v^(1+n4) * n1 + v * n2",assuming:{divide:{total:!0}}},{s:"v^n3 * ( v * n1 + n2) -> v^(n3+1) * n1 + v^n3 * n2",assuming:{divide:{total:!0}}},{s:"v^n3 * (v^n4 * n1 + n2) -> v^(n3+n4) * n1 + v^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},e,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"v*n + v",r:"v*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*v + v -> (n+1)*v",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*c + c",r:"(n+1)*c"},{s:"c*n + c -> c*(n+1)",assuming:{multiply:{commutative:!1}}},e,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"c+v -> v+c",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"v*c -> c*v",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];var O=0;function D(e,t,n){var r=e;if(e)for(var i=0;i2 commutative non-associative rule arguments not yet implemented");if(i=P(e.args[0],t.args[1],n),0===i.length)return[];var m=P(e.args[1],t.args[0],n);if(0===m.length)return[];l=[i,m]}o=function(e){if(0===e.length)return e;for(var t=e.reduce(I),n=[],r={},i=0;i{var{parse:t,simplify:n,typed:e,OperatorNode:r}=e;return e(Ug,{"string, string":function(e,n){return this(t(e),t(n),{})},"string, string, Object":function(e,n,r){return this(t(e),t(n),r)},"Node, string":function(e,n){return this(e,t(n),{})},"Node, string, Object":function(e,n,r){return this(e,t(n),r)},"string, Node":function(e,n){return this(t(e),n,{})},"string, Node, Object":function(e,n,r){return this(t(e),n,r)},"Node, Node":function(e,t){return this(e,t,{})},"Node, Node, Object":function(e,t,i){return e=new r("-","subtract",[e,t]),t=n(e,{},i),j(t)&&!t.value}})}),Wg=tt("evaluate",["typed","parse"],e=>{var{typed:e,parse:t}=e;return e("evaluate",{string:function(e){var n=Zn();return t(e).compile().evaluate(n)},"string, Map | Object":function(e,n){return t(e).compile().evaluate(n)},"Array | Matrix":function(e){var n=Zn();return dr(e,(function(e){return t(e).compile().evaluate(n)}))},"Array | Matrix, Map | Object":function(e,n){return dr(e,(function(e){return t(e).compile().evaluate(n)}))}})}),Yg=(mr={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},r={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},{bignumber:{name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},boolean:{name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},complex:{name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},createUnit:{name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},fraction:{name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},index:{name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["[]","[1, 2, 3]","A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[0:2, 0:2] = ones(2, 2)"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},matrix:{name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},number:{name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},sparse:{name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},splitUnit:{name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},string:{name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},unit:{name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},e:mr,E:mr,false:{name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},i:{name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},Infinity:{name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},LN2:{name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},LN10:{name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},LOG2E:{name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},LOG10E:{name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},NaN:{name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},null:{name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},pi:r,PI:r,phi:{name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},SQRT1_2:{name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},SQRT2:{name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},tau:{name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},true:{name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},version:{name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:{name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},lsolve:{name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},lsolveAll:{name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},lup:{name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},lusolve:{name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},leafCount:{name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},resolve:{name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},simplify:{name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},simplifyCore:{name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","evaluate"]},symbolicEqual:{name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},rationalize:{name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},slu:{name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},usolve:{name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},usolveAll:{name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},qr:{name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},abs:{name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},add:{name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},cbrt:{name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},ceil:{name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},cube:{name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},divide:{name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},dotDivide:{name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},dotMultiply:{name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},dotPow:{name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},exp:{name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},expm:{name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},expm1:{name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},fix:{name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},floor:{name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},gcd:{name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},hypot:{name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},lcm:{name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},log:{name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},log2:{name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},log1p:{name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},log10:{name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},mod:{name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},multiply:{name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},norm:{name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},nthRoot:{name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},nthRoots:{name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},pow:{name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","math.pow([[1, 2], [4, 3]], 2)","math.pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},round:{name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)"],seealso:["ceil","floor","fix"]},sign:{name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},sqrt:{name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},sqrtm:{name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[1, 2], [3, 4]])"],seealso:["sqrt","abs","square","multiply"]},square:{name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},subtract:{name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},unaryMinus:{name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},unaryPlus:{name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},xgcd:{name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},invmod:{name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)=NaN","invmod(7, 13)=2","math.invmod(15151, 15122)=10429"],seealso:["gcd","xgcd"]},bitAnd:{name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitNot:{name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitOr:{name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},bitXor:{name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},leftShift:{name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},rightArithShift:{name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},rightLogShift:{name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},bellNumbers:{name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},catalan:{name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},composition:{name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},stirlingS2:{name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},config:{name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},import:{name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},typed:{name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x })',"double(2)",'double("hello")'],seealso:[]},arg:{name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},conj:{name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},re:{name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},im:{name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},evaluate:{name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate([expr1, expr2, expr3, ...])"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(" + 4 + ")")'],seealso:[]},help:{name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},distance:{name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},intersect:{name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},and:{name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},not:{name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},or:{name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},xor:{name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},concat:{name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},count:{name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},cross:{name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},column:{name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},ctranspose:{name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},det:{name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diag:{name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diff:{name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["diff([1, 2, 4, 7, 0])","diff([1, 2, 4, 7, 0], 0)","diff(matrix([1, 2, 4, 7, 0]))","diff([[1, 2], [3, 4]])","diff([[1, 2], [3, 4]], 0)","diff([[1, 2], [3, 4]], 1)","diff([[1, 2], [3, 4]], bignumber(1))","diff(matrix([[1, 2], [3, 4]]), 1)","diff([[1, 2], matrix([3, 4])], 1)"],seealso:["subtract","partitionSelect"]},dot:{name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},getMatrixDataType:{name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},identity:{name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},filter:{name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},flatten:{name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},forEach:{name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},inv:{name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},pinv:{name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},eigs:{name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and eigenvectors of a real symmetric matrix",examples:["eigs([[5, 2.3], [2.3, 1]])"],seealso:["inv"]},kron:{name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},matrixFromFunction:{name:"matrixFromFunction",category:"Matrix",syntax:["math.matrixFromFunction(size, fn)","math.matrixFromFunction(size, fn, format)","math.matrixFromFunction(size, fn, format, datatype)","math.matrixFromFunction(size, format, fn)","math.matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},matrixFromRows:{name:"matrixFromRows",category:"Matrix",syntax:["math.matrixFromRows(...arr)","math.matrixFromRows(row1, row2)","math.matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},matrixFromColumns:{name:"matrixFromColumns",category:"Matrix",syntax:["math.matrixFromColumns(...arr)","math.matrixFromColumns(row1, row2)","math.matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},map:{name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},ones:{name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},partitionSelect:{name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1)'],seealso:["sort"]},range:{name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},resize:{name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},reshape:{name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])"],seealso:["size","squeeze","resize"]},rotate:{name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], math.pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},rotationMatrix:{name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},row:{name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},size:{name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},sort:{name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"])',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},squeeze:{name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},subset:{name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},trace:{name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},transpose:{name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},zeros:{name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},fft:{name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},ifft:{name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},combinations:{name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},combinationsWithRep:{name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},factorial:{name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},gamma:{name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},kldivergence:{name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},lgamma:{name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(math.i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},multinomial:{name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},permutations:{name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},pickRandom:{name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},random:{name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},randomInt:{name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},compare:{name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},compareNatural:{name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},compareText:{name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},deepEqual:{name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},equal:{name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},equalText:{name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},larger:{name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},largerEq:{name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},smaller:{name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},smallerEq:{name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},unequal:{name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},setCartesian:{name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},setDifference:{name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},setDistinct:{name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},setIntersect:{name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},setIsSubset:{name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},setMultiplicity:{name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},setPowerset:{name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},setSize:{name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},setSymDifference:{name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},setUnion:{name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},erf:{name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},cumsum:{name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},mad:{name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},max:{name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dim)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},mean:{name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dim)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},median:{name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},min:{name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dim)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},mode:{name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},prod:{name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},quantileSeq:{name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:"Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.",examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},std:{name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},sum:{name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},variance:{name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},acos:{name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},acosh:{name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},acot:{name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},acoth:{name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},acsc:{name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},acsch:{name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},asec:{name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},asech:{name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},asin:{name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},asinh:{name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},atan:{name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},atanh:{name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},atan2:{name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},cos:{name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},cosh:{name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},cot:{name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},coth:{name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},csc:{name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},csch:{name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},sec:{name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},sech:{name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},sin:{name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},sinh:{name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},tan:{name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},tanh:{name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},to:{name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},clone:{name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},format:{name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},bin:{name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},oct:{name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},hex:{name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},isNaN:{name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isInteger:{name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isNegative:{name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},isNumeric:{name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},hasNumericValue:{name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},isPositive:{name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isPrime:{name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isZero:{name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},print:{name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $0, $1, $2", [6, 9, 4])'],seealso:["format"]},typeOf:{name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},numeric:{name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction)','numeric(4, "Fraction")','numeric(fraction(2, 5), "number)'],seealso:["number","fraction","bignumber","string","format"]}}),Gg=tt("help",["typed","mathWithTransform","Help"],e=>{var{typed:e,mathWithTransform:t,Help:n}=e;return e("help",{any:function(e){var r,i=e;if("string"!=typeof e)for(r in t)if(K(t,r)&&e===t[r]){i=r;break}var o=Hn(Yg,i);if(o)return new n(o);throw o="function"==typeof i?i.name:i,new Error('No documentation found on "'+o+'"')}})}),Xg=tt("Parser",["evaluate"],e=>{var t=e["evaluate"];function n(){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:Zn(),writable:!1})}return n.prototype.type="Parser",n.prototype.isParser=!0,n.prototype.evaluate=function(e){return t(e,this.scope)},n.prototype.get=function(e){if(this.scope.has(e))return this.scope.get(e)},n.prototype.getAll=function(){var e=this.scope;if(e instanceof Jn)return e.wrappedObject;var t,n={};for(t of e.keys())Wn(n,t,e.get(t));return n},n.prototype.getAllAsMap=function(){return this.scope},n.prototype.set=function(e,t){return this.scope.set(e,t),t},n.prototype.remove=function(e){this.scope.delete(e)},n.prototype.clear=function(){this.scope.clear()},n},{isClass:!0}),Qg="rationalize",Kg=tt(Qg,["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],e=>{var{config:e,typed:t,parse:n,simplifyCore:r,simplify:i,fraction:o,bignumber:a,mathWithTransform:s,matrix:u,AccessorNode:c,ArrayNode:l,ConstantNode:d,FunctionNode:f,IndexNode:p,ObjectNode:h,OperatorNode:m,SymbolNode:g}=e,v=Vg({typed:t,config:e,mathWithTransform:s,matrix:u,fraction:o,bignumber:a,AccessorNode:c,ArrayNode:l,ConstantNode:d,FunctionNode:f,IndexNode:p,ObjectNode:h,OperatorNode:m,SymbolNode:g});return t(Qg,{string:function(e){return this(n(e),{},!1)},"string, boolean":function(e,t){return this(n(e),{},t)},"string, Object":function(e,t){return this(n(e),t,!1)},"string, Object, boolean":function(e,t,r){return this(n(e),t,r)},Node:function(e){return this(e,{},!1)},"Node, boolean":function(e,t){return this(e,{},t)},"Node, Object":function(e,t){return this(e,t,!1)},"Node, Object, boolean":function(e,t,n){(u={}).firstRules=(b=[r,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},v,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}]).concat(x=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],c=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}]),u.distrDivRules=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],u.sucDivRules=c,u.firstRulesAgain=b.concat(x),u.finalRules=[r,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},v,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}];var o,a,s=u,u=(c=!0,b=i(b=e,x=s.firstRules,t,{exactFractions:!(o=[])}),a="+-*"+((c=!!c)?"/":""),function e(t){var n=t.type;if("FunctionNode"===n)throw new Error("There is an unsolved function call");if("OperatorNode"===n)if("^"===t.op){if("ConstantNode"!==t.args[1].type||!oe(parseFloat(t.args[1].value)))throw new Error("There is a non-integer exponent");e(t.args[0])}else{if(-1===a.indexOf(t.op))throw new Error("Operator "+t.op+" invalid in polynomial expression");for(var r=0;r{var{typed:e,config:t,parse:n,simplify:r,equal:i,isZero:o,numeric:a,ConstantNode:s,FunctionNode:u,OperatorNode:c,ParenthesisNode:l,SymbolNode:d}=e,f=e("derivative",{"Node, SymbolNode, Object":function(e,t,n){var i={};h(i,e,t.name),t=m(e,i);return n.simplify?r(t):t},"Node, SymbolNode":function(e,t){return this(e,t,{simplify:!0})},"string, SymbolNode":function(e,t){return this(n(e),t)},"string, SymbolNode, Object":function(e,t,r){return this(n(e),t,r)},"string, string":function(e,t){return this(n(e),n(t))},"string, string, Object":function(e,t,r){return this(n(e),n(t),r)},"Node, string":function(e,t){return this(e,n(t))},"Node, string, Object":function(e,t,r){return this(e,n(t),r)}}),p=(f._simplify=!0,f.toTex=function(e){return p.apply(null,e.args)},e("_derivTex",{"Node, SymbolNode":function(e,t){return j(e)&&"string"===U(e.value)?p(n(e.value).toString(),t.toString(),1):p(e.toTex(),t.toString(),1)},"Node, ConstantNode":function(e,t){if("string"===U(t.value))return p(e,n(t.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(e,t,n){return p(e.toString(),t.name,n.value)},"string, string, number":function(e,t,n){return t=1===n?"{d\\over d"+t+"}":"{d^{"+n+"}\\over d"+t+"^{"+n+"}}",t+"\\left[".concat(e,"\\right]")}})),h=e("constTag",{"Object, ConstantNode, string":function(e,t){return e[t]=!0},"Object, SymbolNode, string":function(e,t,n){return t.name!==n&&(e[t]=!0)},"Object, ParenthesisNode, string":function(e,t,n){return h(e,t.content,n)},"Object, FunctionAssignmentNode, string":function(e,t,n){return-1===t.params.indexOf(n)?e[t]=!0:h(e,t.expr,n)},"Object, FunctionNode | OperatorNode, string":function(e,t,n){if(0{var{typed:e,Parser:t}=e;return e("parser",{"":function(){return new t}})});function ev(e,t,n){var r,i,o,a=e.filter((function(e){return V(e)&&!(e.name in t)&&!n.has(e.name)}))[0];if(a)return r=a.name,i=Mg(n),o=e.compile(),function(e){return i.set(r,e),o.evaluate(i)};throw new Error('No undefined variable found in inline expression "'+e+'"')}var tv=tt("filter",["typed"],e=>{function t(e,t,r){var i,o;return e[0]&&(i=e[0].compile().evaluate(r)),e[1]&&(o=V(e[1])||I(e[1])?e[1].compile().evaluate(r):ev(e[1],t,r)),n(i,o)}e=e.typed,t.rawArgs=!0;var n=e("filter",{"Array, function":nv,"Matrix, function":function(e,t){return e.create(nv(e.toArray(),t))},"Array, RegExp":Xe,"Matrix, RegExp":function(e,t){return e.create(Xe(e.toArray(),t))}});return t},{isTransformFunction:!0});function nv(e,t){var n=ct(t);return Ge(e,(function(e,r,i){return 1===n?t(e):2===n?t(e,[r+1]):t(e,[r+1],i)}))}var rv=tt("forEach",["typed"],e=>{function t(e,t,r){var i,o;return e[0]&&(i=e[0].compile().evaluate(r)),e[1]&&(o=V(e[1])||I(e[1])?e[1].compile().evaluate(r):ev(e[1],t,r)),n(i,o)}e=e.typed,t.rawArgs=!0;var n=e("forEach",{"Array | Matrix, function":function(e,t){var n=ct(t);(function r(i,o){Array.isArray(i)?Ye(i,(function(e,t){r(e,o.concat(t+1))})):1===n?t(i):2===n?t(i,o):t(i,o,e)})(e.valueOf(),[])}});return t},{isTransformFunction:!0}),iv=tt("map",["typed"],e=>{function t(e,t,r){var i,o;return e[0]&&(i=e[0].compile().evaluate(r)),e[1]&&(o=V(e[1])||I(e[1])?e[1].compile().evaluate(r):ev(e[1],t,r)),n(i,o)}e=e.typed,t.rawArgs=!0;var n=e("map",{"Array, function":function(e,t){return ov(e,t,e)},"Matrix, function":function(e,t){return e.create(ov(e.valueOf(),t,e))}});return t},{isTransformFunction:!0});function ov(e,t,n){var r=ct(t);return function e(i,o){return Array.isArray(i)?We(i,(function(t,n){return e(t,o.concat(n+1))})):1===r?t(i):2===r?t(i,o):t(i,o,n)}(e,[])}var av=tt("apply",["typed","isInteger"],e=>{var{typed:e,isInteger:t}=e,n=ra({typed:e,isInteger:t});return e("apply",{"...any":function(e){var t=e[1];a(t)?e[1]=t-1:s(t)&&(e[1]=t.minus(1));try{return n.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0});function sv(e){var t;return 2===e.length&&h(e[0])&&(a(t=(e=e.slice())[1])?e[1]=t-1:s(t)&&(e[1]=t.minus(1))),e}var uv=tt("diff",["typed","matrix","subtract","number","bignumber"],e=>{var{typed:e,matrix:t,subtract:n,number:r,bignumber:i}=e,o=_u({typed:e,matrix:t,subtract:n,number:r,bignumber:i});return e("diff",{"...any":function(e){e=sv(e);try{return o.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),cv=tt("subset",["typed","matrix"],e=>{var{typed:e,matrix:t}=e,n=es({typed:e,matrix:t});return e("subset",{"...any":function(e){try{return n.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),lv=tt("concat",["typed","matrix","isInteger"],e=>{var{typed:e,matrix:t,isInteger:n}=e,r=xs({typed:e,matrix:t,isInteger:n});return e("concat",{"...any":function(e){var t=e.length-1,n=e[t];a(n)?e[t]=n-1:s(n)&&(e[t]=n.minus(1));try{return r.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),dv=tt("max",["typed","config","numeric","larger"],e=>{var{typed:e,config:t,numeric:n,larger:r}=e,i=yc({typed:e,config:t,numeric:n,larger:r});return e("max",{"...any":function(e){e=sv(e);try{return i.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),fv=tt("min",["typed","config","numeric","smaller"],e=>{var{typed:e,config:t,numeric:n,smaller:r}=e,i=Ys({typed:e,config:t,numeric:n,smaller:r});return e("min",{"...any":function(e){e=sv(e);try{return i.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),pv=tt("range",["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],e=>{var{typed:e,config:t,matrix:n,bignumber:r,smaller:i,smallerEq:o,larger:a,largerEq:s}=e,u=Ru({typed:e,config:t,matrix:n,bignumber:r,smaller:i,smallerEq:o,larger:a,largerEq:s});return e("range",{"...any":function(e){return"boolean"!=typeof e[e.length-1]&&e.push(!0),u.apply(null,e)}})},{isTransformFunction:!0}),hv=tt("sum",["typed","config","add","numeric"],e=>{var{typed:e,config:t,add:n,numeric:r}=e,i=Ku({typed:e,config:t,add:n,numeric:r});return e("sum",{"...any":function(e){e=sv(e);try{return i.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),mv=tt("cumsum",["typed","add","unaryPlus"],e=>{var{typed:e,add:t,unaryPlus:n}=e,r=xu({typed:e,add:t,unaryPlus:n});return e("cumsum",{"...any":function(e){var t;2===e.length&&h(e[0])&&(a(t=e[1])?e[1]=t-1:s(t)&&(e[1]=t.minus(1)));try{return r.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),gv=tt("row",["typed","Index","matrix","range"],e=>{var{typed:e,Index:t,matrix:n,range:r}=e,i=xc({typed:e,Index:t,matrix:n,range:r});return e("row",{"...any":function(e){var t=e.length-1,n=e[t];a(n)&&(e[t]=n-1);try{return i.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),vv=tt("column",["typed","Index","matrix","range"],e=>{var{typed:e,Index:t,matrix:n,range:r}=e,i=Dc({typed:e,Index:t,matrix:n,range:r});return e("column",{"...any":function(e){var t=e.length-1,n=e[t];a(n)&&(e[t]=n-1);try{return i.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),yv=tt("index",["Index"],e=>{var t=e["Index"];return function(){for(var e=[],n=0,r=arguments.length;n{var{typed:e,add:t,divide:n}=e,r=hl({typed:e,add:t,divide:n});return e("mean",{"...any":function(e){e=sv(e);try{return r.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),xv=tt("variance",["typed","add","subtract","multiply","divide","apply","isNaN"],e=>{var{typed:e,add:t,subtract:n,multiply:r,divide:i,apply:o,isNaN:a}=e,s=_l({typed:e,add:t,subtract:n,multiply:r,divide:i,apply:o,isNaN:a});return e("variance",{"...any":function(e){e=sv(e);try{return s.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),wv=tt("std",["typed","sqrt","variance"],e=>{var{typed:e,sqrt:t,variance:n}=e,r=kl({typed:e,sqrt:t,variance:n});return e("std",{"...any":function(e){e=sv(e);try{return r.apply(null,e)}catch(e){throw Ag(e)}}})},{isTransformFunction:!0}),_v=(mr={},r={},{}),Sv=Zm({math:mr}),Cv=tg({mathWithTransform:r}),Av=ng({Node:Cv}),Ev=hg({Node:Cv}),Nv=mg({Node:Cv}),kv=gg({Node:Cv}),Ov=vg({Node:Cv}),Dv=yg({Node:Cv,ResultSet:Wl}),Mv=bg({Node:Cv}),Tv=xg({Node:Cv}),jv=wg({Node:Cv}),Iv=_g({classes:_v}),Pv=Sg({Chain:Sv,typed:id}),$v=Cg({Node:Cv,typed:id}),Rv=Ng({Node:Cv,subset:qf}),Bv=kg({matrix:Tf,Node:Cv,subset:qf}),Fv=Og({Node:Cv,size:Lf}),Lv=Dg({Unit:Ih,Node:Cv,math:mr}),zv=Tg({Node:Cv,SymbolNode:Lv,math:mr}),Vv=jg({AccessorNode:Rv,ArrayNode:Ov,AssignmentNode:Bv,BlockNode:Dv,ConditionalNode:Mv,ConstantNode:Tv,FunctionAssignmentNode:$v,FunctionNode:zv,IndexNode:Fv,ObjectNode:Av,OperatorNode:Ev,ParenthesisNode:Nv,RangeNode:jv,RelationalNode:kv,SymbolNode:Lv,config:re,numeric:$f,typed:id}),qv=Ig({ConstantNode:Tv,FunctionNode:zv,OperatorNode:Ev,ParenthesisNode:Nv,parse:Vv}),Uv=Bg({AccessorNode:Rv,ArrayNode:Ov,ConstantNode:Tv,FunctionNode:zv,IndexNode:Fv,ObjectNode:Av,OperatorNode:Ev,ParenthesisNode:Nv,SymbolNode:Lv,add:Mp,divide:ym,equal:sp,isZero:zd,multiply:Gp,pow:Oh,subtract:Uf}),Hv=Fg({parse:Vv,typed:id}),Wv=Lg({parse:Vv}),Yv=zg({parse:Vv,typed:id}),Gv=qg({bignumber:vd,fraction:Df,AccessorNode:Rv,ArrayNode:Ov,ConstantNode:Tv,FunctionNode:zv,IndexNode:Fv,ObjectNode:Av,OperatorNode:Ev,ParenthesisNode:Nv,SymbolNode:Lv,add:Mp,config:re,divide:ym,equal:sp,isZero:zd,mathWithTransform:r,matrix:Tf,multiply:Gp,parse:Vv,pow:Oh,resolve:qv,simplifyCore:Uv,subtract:Uf,typed:id}),Xv=Hg({OperatorNode:Ev,parse:Vv,simplify:Gv,typed:id}),Qv=Wg({parse:Vv,typed:id}),Kv=Gg({Help:Wv,mathWithTransform:r,typed:id}),Jv=Xg({evaluate:Qv}),Zv=Kg({bignumber:vd,fraction:Df,AccessorNode:Rv,ArrayNode:Ov,ConstantNode:Tv,FunctionNode:zv,IndexNode:Fv,ObjectNode:Av,OperatorNode:Ev,ParenthesisNode:Nv,SymbolNode:Lv,add:Mp,config:re,divide:ym,equal:sp,isZero:zd,mathWithTransform:r,matrix:Tf,multiply:Gp,parse:Vv,pow:Oh,simplify:Gv,simplifyCore:Uv,subtract:Uf,typed:id}),ey=Jg({ConstantNode:Tv,FunctionNode:zv,OperatorNode:Ev,ParenthesisNode:Nv,SymbolNode:Lv,config:re,equal:sp,isZero:zd,numeric:$f,parse:Vv,simplify:Gv,typed:id}),ty=Zg({Parser:Jv,typed:id}),ny=(i()(mr,{e:jl,false:Il,fineStructure:Pl,i:Rl,Infinity:Bl,LN10:Fl,LOG10E:Ll,NaN:Vl,null:ql,phi:Ul,SQRT1_2:Yl,sackurTetrode:Gl,tau:Xl,true:Ql,E:jl,version:Kl,efimovFactor:Zl,LN2:ed,pi:td,replacer:nd,reviver:Iv,SQRT2:rd,typed:id,unaryPlus:od,PI:td,weakMixingAngle:ad,abs:sd,acos:ud,acot:cd,acsc:ld,addScalar:dd,arg:fd,asech:pd,asinh:hd,atan:md,atanh:gd,bignumber:vd,bitNot:yd,boolean:bd,chain:Pv,clone:xd,combinations:wd,complex:_d,conj:Sd,cosh:Cd,coth:Ad,csc:Ed,cube:Nd,equalScalar:kd,erf:Od,exp:Dd,expm1:Md,filter:Td,forEach:jd,format:Id,getMatrixDataType:Pd,hex:$d,im:Rd,isInteger:Bd,isNegative:Fd,isPositive:Ld,isZero:zd,LOG2E:Vd,lgamma:qd,log10:Ud,log2:Hd,map:Wd,multiplyScalar:Yd,not:Gd,number:Xd,oct:Qd,pickRandom:Kd,print:Jd,random:Zd,re:ef,sec:tf,sign:nf,sin:rf,splitUnit:af,square:sf,string:uf,tan:cf,typeOf:lf,acosh:df,acsch:ff,apply:pf,asec:hf,bin:mf,combinationsWithRep:gf,cos:vf,csch:yf,isNaN:bf,isPrime:xf,randomInt:wf,sech:_f,sinh:Sf,sparse:Cf,sqrt:Af,tanh:Ef,unaryMinus:Nf,acoth:kf,cot:Of,fraction:Df,isNumeric:Mf,matrix:Tf,matrixFromFunction:jf,mod:If,nthRoot:Pf,numeric:$f,or:Rf,prod:Bf,reshape:Ff,size:Lf,smaller:zf,squeeze:Vf,subset:qf,subtract:Uf,to:Hf,transpose:Wf,xgcd:Yf,zeros:Gf,and:Xf,bitAnd:Qf,bitXor:Kf,cbrt:Jf,compare:Zf,compareText:ep,concat:tp,count:np,ctranspose:rp,diag:ip,divideScalar:op,dotDivide:ap,equal:sp,fft:up,flatten:cp,gcd:lp,hasNumericValue:dp,hypot:fp,ifft:pp,kron:hp,largerEq:mp,leftShift:gp,lsolve:vp,matrixFromColumns:yp,min:bp,mode:xp,nthRoots:wp,ones:_p,partitionSelect:Sp,resize:Cp,rightArithShift:Ap,round:Ep,smallerEq:Np,unequal:kp,usolve:Op,xor:Dp,add:Mp,atan2:Tp,bitOr:jp,catalan:Ip,compareNatural:Pp,cumsum:$p,deepEqual:Rp,diff:Bp,dot:Fp,equalText:Lp,floor:zp,identity:Vp,invmod:qp,larger:Up,log:Hp,lsolveAll:Wp,matrixFromRows:Yp,multiply:Gp,qr:Xp,range:Qp,rightLogShift:Kp,setSize:Jp,slu:Zp,sum:eh,trace:th,usolveAll:nh,asin:rh,ceil:ih,composition:oh,cross:ah,det:sh,distance:uh,dotMultiply:ch,fix:dh,intersect:hh,lcm:mh,log1p:gh,max:vh,quantileSeq:yh,row:bh,setCartesian:xh,setDistinct:wh,setIsSubset:_h,setPowerset:Sh,sort:Ch,column:Ah,index:Eh,inv:Nh,pinv:kh,pow:Oh,setDifference:Dh,setMultiplicity:Mh,sqrtm:jh,vacuumImpedance:Ph,wienDisplacement:$h,atomicMass:Rh,bohrMagneton:Bh,boltzmann:Fh,conductanceQuantum:Lh,createUnit:zh,deuteronMass:Vh,dotPow:qh,electricConstant:Uh,elementaryCharge:Hh,expm:Wh,faraday:Yh,firstRadiation:Gh,gamma:Xh,gravitationConstant:Qh,hartreeEnergy:Kh,klitzing:Jh,loschmidt:Zh,magneticConstant:em,molarMass:tm,molarPlanckConstant:nm,neutronMass:rm,nuclearMagneton:im,planckCharge:om,planckLength:am,planckTemperature:sm,protonMass:um,reducedPlanckConstant:cm,rydberg:lm,setIntersect:dm,speedOfLight:fm,stefanBoltzmann:pm,thomsonCrossSection:hm,avogadro:mm,bohrRadius:gm,coulomb:vm,divide:ym,electronMass:bm,factorial:xm,gravity:wm,inverseConductanceQuantum:_m,lup:Sm,magneticFluxQuantum:Cm,molarMassC12:Am,multinomial:Em,parse:Vv,permutations:Nm,planckMass:km,quantumOfCirculation:Om,resolve:qv,secondRadiation:Dm,simplifyCore:Uv,stirlingS2:Mm,unit:Tm,bellNumbers:jm,compile:Hv,eigs:Im,fermiCoupling:Pm,leafCount:Yv,mean:$m,molarVolume:Rm,planckConstant:Bm,setSymDifference:Fm,simplify:Gv,symbolicEqual:Xv,classicalElectronRadius:Lm,evaluate:Qv,help:Kv,lusolve:zm,median:Vm,rationalize:Zv,setUnion:qm,variance:Um,derivative:ey,kldivergence:Hm,norm:Wm,planckTime:Ym,rotationMatrix:Gm,gasConstant:Xm,parser:ty,std:Qm,mad:Km,rotate:Jm,config:re}),i()(r,mr,{filter:tv({typed:id}),forEach:rv({typed:id}),map:iv({typed:id}),apply:av({isInteger:Bd,typed:id}),diff:uv({bignumber:vd,matrix:Tf,number:Xd,subtract:Uf,typed:id}),subset:cv({matrix:Tf,typed:id}),concat:lv({isInteger:Bd,matrix:Tf,typed:id}),max:dv({config:re,larger:Up,numeric:$f,typed:id}),min:fv({config:re,numeric:$f,smaller:zf,typed:id}),range:pv({bignumber:vd,matrix:Tf,config:re,larger:Up,largerEq:mp,smaller:zf,smallerEq:Np,typed:id}),sum:hv({add:Mp,config:re,numeric:$f,typed:id}),cumsum:mv({add:Mp,typed:id,unaryPlus:od}),row:gv({Index:ph,matrix:Tf,range:Qp,typed:id}),column:vv({Index:ph,matrix:Tf,range:Qp,typed:id}),index:yv({Index:ph}),mean:bv({add:Mp,divide:ym,typed:id}),variance:xv({add:Mp,apply:pf,divide:ym,isNaN:bf,multiply:Gp,subtract:Uf,typed:id}),std:wv({sqrt:Af,typed:id,variance:Um})}),i()(_v,{BigNumber:Ml,Chain:Sv,Complex:Tl,Fraction:$l,Matrix:zl,Node:Cv,ObjectNode:Av,OperatorNode:Ev,ParenthesisNode:Nv,Range:Hl,RelationalNode:kv,ResultSet:Wl,ArrayNode:Ov,BlockNode:Dv,ConditionalNode:Mv,ConstantNode:Tv,DenseMatrix:Jl,RangeNode:jv,FunctionAssignmentNode:$v,SparseMatrix:of,AccessorNode:Rv,AssignmentNode:Bv,IndexNode:Fv,FibonacciHeap:lh,ImmutableDenseMatrix:fh,Index:ph,Spa:Th,Unit:Ih,SymbolNode:Lv,FunctionNode:zv,Help:Wv,Parser:Jv}),Sv.createProxy(mr),{createBigNumberClass:it}),ry={createComplexClass:at},iy={createMatrixClass:Fn},oy={MatrixDependencies:iy,createDenseMatrixClass:Vn},ay={createFractionClass:Bn},sy={BigNumberDependencies:ny,ComplexDependencies:ry,DenseMatrixDependencies:oy,FractionDependencies:ay,createTyped:ir},uy={typedDependencies:sy,createAbs:Rr},cy={createNode:tg},ly={typedDependencies:sy,createEqualScalar:zi},dy={MatrixDependencies:iy,equalScalarDependencies:ly,typedDependencies:sy,createSparseMatrixClass:Xo},fy={DenseMatrixDependencies:oy,MatrixDependencies:iy,SparseMatrixDependencies:dy,typedDependencies:sy,createMatrix:Ea},py={matrixDependencies:fy,typedDependencies:sy,createSubset:es},hy={NodeDependencies:cy,subsetDependencies:py,createAccessorNode:Ng},my={ComplexDependencies:ry,typedDependencies:sy,createAcos:Br},gy={ComplexDependencies:ry,typedDependencies:sy,createAcosh:ta},vy={BigNumberDependencies:ny,typedDependencies:sy,createAcot:ti},yy={BigNumberDependencies:ny,ComplexDependencies:ry,typedDependencies:sy,createAcoth:_a},by={BigNumberDependencies:ny,ComplexDependencies:ry,typedDependencies:sy,createAcsc:ni},xy={BigNumberDependencies:ny,typedDependencies:sy,createAcsch:na},wy={typedDependencies:sy,createAddScalar:ri},_y={DenseMatrixDependencies:oy,SparseMatrixDependencies:dy,addScalarDependencies:wy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createAdd:du},Sy={typedDependencies:sy,createNot:To},Cy={BigNumberDependencies:ny,matrixDependencies:fy,typedDependencies:sy,createZeros:ds},Ay={equalScalarDependencies:ly,matrixDependencies:fy,notDependencies:Sy,typedDependencies:sy,zerosDependencies:Cy,createAnd:fs},Ey={typedDependencies:sy,createIsInteger:oo},Ny={isIntegerDependencies:Ey,typedDependencies:sy,createApply:ra},ky={isIntegerDependencies:Ey,typedDependencies:sy,createApplyTransform:av},Oy={typedDependencies:sy,createArg:ii},Dy={NodeDependencies:cy,createArrayNode:vg},My={BigNumberDependencies:ny,ComplexDependencies:ry,typedDependencies:sy,createAsec:oa},Ty={BigNumberDependencies:ny,ComplexDependencies:ry,typedDependencies:sy,createAsech:oi},jy={ComplexDependencies:ry,typedDependencies:sy,createAsin:ec},Iy={typedDependencies:sy,createAsinh:ai},Py={matrixDependencies:fy,NodeDependencies:cy,subsetDependencies:py,createAssignmentNode:kg},$y={typedDependencies:sy,createAtan:si},Ry={BigNumberDependencies:ny,DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createAtan2:pu},By={ComplexDependencies:ry,typedDependencies:sy,createAtanh:ui},Fy={BigNumberDependencies:ny,typedDependencies:sy,createBignumber:ci},Ly={FractionDependencies:ay,typedDependencies:sy,createFraction:Ca},zy={typedDependencies:sy,createNumber:jo},Vy={bignumberDependencies:Fy,fractionDependencies:Ly,numberDependencies:zy,createNumeric:Ua},qy={numericDependencies:Vy,typedDependencies:sy,createDivideScalar:Es},Uy={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createEqual:Os},Hy={BigNumberDependencies:ny,DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,zerosDependencies:Cy,createRound:iu},Wy={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,roundDependencies:Hy,typedDependencies:sy,zerosDependencies:Cy,createCeil:nc},Yy={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,roundDependencies:Hy,typedDependencies:sy,zerosDependencies:Cy,createFloor:Eu},Gy={ComplexDependencies:ry,DenseMatrixDependencies:oy,ceilDependencies:Wy,equalScalarDependencies:ly,floorDependencies:Yy,matrixDependencies:fy,typedDependencies:sy,zerosDependencies:Cy,createFix:fc},Xy={typedDependencies:sy,createFormat:eo},Qy={typedDependencies:sy,createIsNumeric:Aa},Ky={typedDependencies:sy,createMultiplyScalar:No},Jy={BigNumberDependencies:ny,DenseMatrixDependencies:oy,SparseMatrixDependencies:dy,matrixDependencies:fy,typedDependencies:sy,createIdentity:Nu},Zy={typedDependencies:sy,createIsZero:mo},eb={typedDependencies:sy,createConj:Ii},tb={matrixDependencies:fy,typedDependencies:sy,createSize:Xa},nb={addScalarDependencies:wy,conjDependencies:eb,multiplyScalarDependencies:Ky,sizeDependencies:tb,typedDependencies:sy,createDot:Su},rb={addScalarDependencies:wy,dotDependencies:nb,equalScalarDependencies:ly,matrixDependencies:fy,multiplyScalarDependencies:Ky,typedDependencies:sy,createMultiply:Pu},ib={typedDependencies:sy,createUnaryMinus:wa},ob={DenseMatrixDependencies:oy,addScalarDependencies:wy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,unaryMinusDependencies:ib,createSubtract:as},ab={divideScalarDependencies:qy,isZeroDependencies:Zy,matrixDependencies:fy,multiplyDependencies:rb,subtractDependencies:ob,typedDependencies:sy,unaryMinusDependencies:ib,createDet:ac},sb={absDependencies:uy,addScalarDependencies:wy,detDependencies:ab,divideScalarDependencies:qy,identityDependencies:Jy,matrixDependencies:fy,multiplyDependencies:rb,typedDependencies:sy,unaryMinusDependencies:ib,createInv:Tc},ub={ComplexDependencies:ry,fractionDependencies:Ly,identityDependencies:Jy,invDependencies:sb,matrixDependencies:fy,multiplyDependencies:rb,numberDependencies:zy,typedDependencies:sy,createPow:Ic},cb={BigNumberDependencies:ny,ComplexDependencies:ry,FractionDependencies:ay,absDependencies:uy,addScalarDependencies:wy,divideScalarDependencies:qy,equalDependencies:Uy,fixDependencies:Gy,formatDependencies:Xy,isNumericDependencies:Qy,multiplyScalarDependencies:Ky,numberDependencies:zy,powDependencies:ub,roundDependencies:Hy,subtractDependencies:ob,createUnitClass:Uc},lb={BigNumberDependencies:ny,UnitDependencies:cb,createAtomicMass:hn},db={BigNumberDependencies:ny,UnitDependencies:cb,createAvogadro:mn},fb={typedDependencies:sy,createIsNegative:fo},pb={typedDependencies:sy,createCombinations:Mi},hb={BigNumberDependencies:ny,ComplexDependencies:ry,multiplyScalarDependencies:Ky,powDependencies:ub,typedDependencies:sy,createGamma:Xc},mb={gammaDependencies:hb,typedDependencies:sy,createFactorial:Zc},gb={DenseMatrixDependencies:oy,matrixDependencies:fy,typedDependencies:sy,createLarger:Du},vb={bignumberDependencies:Fy,addScalarDependencies:wy,combinationsDependencies:pb,divideScalarDependencies:qy,factorialDependencies:mb,isIntegerDependencies:Ey,isNegativeDependencies:fb,largerDependencies:gb,multiplyScalarDependencies:Ky,numberDependencies:zy,powDependencies:ub,subtractDependencies:ob,typedDependencies:sy,createStirlingS2:sl},yb={addScalarDependencies:wy,isIntegerDependencies:Ey,isNegativeDependencies:fb,stirlingS2Dependencies:vb,typedDependencies:sy,createBellNumbers:ll},bb={formatDependencies:Xy,typedDependencies:sy,createBin:aa},xb={equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createBitAnd:ps},wb={typedDependencies:sy,createBitNot:Ai},_b={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createBitOr:hu},Sb={DenseMatrixDependencies:oy,matrixDependencies:fy,typedDependencies:sy,createBitXor:hs},Cb={createResultSet:zn},Ab={NodeDependencies:cy,ResultSetDependencies:Cb,createBlockNode:yg},Eb={BigNumberDependencies:ny,UnitDependencies:cb,createBohrMagneton:Yt},Nb={BigNumberDependencies:ny,UnitDependencies:cb,createBohrRadius:Zt},kb={BigNumberDependencies:ny,UnitDependencies:cb,createBoltzmann:gn},Ob={typedDependencies:sy,createBoolean:Ei},Db={addScalarDependencies:wy,combinationsDependencies:pb,divideScalarDependencies:qy,isIntegerDependencies:Ey,isNegativeDependencies:fb,multiplyScalarDependencies:Ky,typedDependencies:sy,createCatalan:mu},Mb={BigNumberDependencies:ny,ComplexDependencies:ry,FractionDependencies:ay,isNegativeDependencies:fb,matrixDependencies:fy,typedDependencies:sy,unaryMinusDependencies:ib,createCbrt:ms},Tb={createChainClass:Zm},jb={ChainDependencies:Tb,typedDependencies:sy,createChain:Sg},Ib={BigNumberDependencies:ny,UnitDependencies:cb,createClassicalElectronRadius:en},Pb={typedDependencies:sy,createClone:Ni},$b={DenseMatrixDependencies:oy,matrixDependencies:fy,typedDependencies:sy,createSmaller:Ja},Rb={DenseMatrixDependencies:oy,smallerDependencies:$b,createImmutableDenseMatrixClass:pc},Bb={ImmutableDenseMatrixDependencies:Rb,createIndexClass:hc},Fb={DenseMatrixDependencies:oy,matrixDependencies:fy,typedDependencies:sy,createLargerEq:Ls},Lb={DenseMatrixDependencies:oy,matrixDependencies:fy,typedDependencies:sy,createSmallerEq:au},zb={bignumberDependencies:Fy,matrixDependencies:fy,largerDependencies:gb,largerEqDependencies:Fb,smallerDependencies:$b,smallerEqDependencies:Lb,typedDependencies:sy,createRange:Ru},Vb={IndexDependencies:Bb,matrixDependencies:fy,rangeDependencies:zb,typedDependencies:sy,createColumn:Dc},qb={IndexDependencies:Bb,matrixDependencies:fy,rangeDependencies:zb,typedDependencies:sy,createColumnTransform:vv},Ub={typedDependencies:sy,createCombinationsWithRep:ua},Hb={BigNumberDependencies:ny,DenseMatrixDependencies:oy,FractionDependencies:ay,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createCompare:vs},Wb={compareDependencies:Hb,typedDependencies:sy,createCompareNatural:yu},Yb={matrixDependencies:fy,typedDependencies:sy,createCompareText:bs},Gb={NodeDependencies:cy,createConditionalNode:bg},Xb={NodeDependencies:cy,createConstantNode:xg},Qb={NodeDependencies:cy,typedDependencies:sy,createFunctionAssignmentNode:Cg},Kb={UnitDependencies:cb,NodeDependencies:cy,createSymbolNode:Dg},Jb={NodeDependencies:cy,SymbolNodeDependencies:Kb,createFunctionNode:Tg},Zb={NodeDependencies:cy,sizeDependencies:tb,createIndexNode:Og},ex={NodeDependencies:cy,createObjectNode:ng},tx={NodeDependencies:cy,createOperatorNode:hg},nx={NodeDependencies:cy,createParenthesisNode:mg},rx={NodeDependencies:cy,createRangeNode:wg},ix={NodeDependencies:cy,createRelationalNode:gg},ox={AccessorNodeDependencies:hy,ArrayNodeDependencies:Dy,AssignmentNodeDependencies:Py,BlockNodeDependencies:Ab,ConditionalNodeDependencies:Gb,ConstantNodeDependencies:Xb,FunctionAssignmentNodeDependencies:Qb,FunctionNodeDependencies:Jb,IndexNodeDependencies:Zb,ObjectNodeDependencies:ex,OperatorNodeDependencies:tx,ParenthesisNodeDependencies:nx,RangeNodeDependencies:rx,RelationalNodeDependencies:ix,SymbolNodeDependencies:Kb,numericDependencies:Vy,typedDependencies:sy,createParse:jg},ax={parseDependencies:ox,typedDependencies:sy,createCompile:Fg},sx={ComplexDependencies:ry,typedDependencies:sy,createComplex:ji},ux={typedDependencies:sy,createIsPositive:ho},cx={addScalarDependencies:wy,combinationsDependencies:pb,isIntegerDependencies:Ey,isNegativeDependencies:fb,isPositiveDependencies:ux,largerDependencies:gb,typedDependencies:sy,createComposition:ic},lx={isIntegerDependencies:Ey,matrixDependencies:fy,typedDependencies:sy,createConcat:xs},dx={isIntegerDependencies:Ey,matrixDependencies:fy,typedDependencies:sy,createConcatTransform:lv},fx={BigNumberDependencies:ny,UnitDependencies:cb,createConductanceQuantum:Gt},px={typedDependencies:sy,createCos:la},hx={typedDependencies:sy,createCosh:Pi},mx={BigNumberDependencies:ny,typedDependencies:sy,createCot:Sa},gx={BigNumberDependencies:ny,typedDependencies:sy,createCoth:$i},vx={BigNumberDependencies:ny,UnitDependencies:cb,createCoulomb:Ht},yx={multiplyScalarDependencies:Ky,numericDependencies:Vy,typedDependencies:sy,createProd:Ya},bx={prodDependencies:yx,sizeDependencies:tb,typedDependencies:sy,createCount:ws},xx={UnitDependencies:cb,typedDependencies:sy,createCreateUnit:Wc},wx={matrixDependencies:fy,multiplyDependencies:rb,subtractDependencies:ob,typedDependencies:sy,createCross:oc},_x={BigNumberDependencies:ny,typedDependencies:sy,createCsc:Ri},Sx={BigNumberDependencies:ny,typedDependencies:sy,createCsch:da},Cx={matrixDependencies:fy,typedDependencies:sy,createTranspose:cs},Ax={conjDependencies:eb,transposeDependencies:Cx,typedDependencies:sy,createCtranspose:Ss},Ex={typedDependencies:sy,createCube:Bi},Nx={BigNumberDependencies:ny,typedDependencies:sy,createUnaryPlus:$r},kx={addDependencies:_y,typedDependencies:sy,unaryPlusDependencies:Nx,createCumSum:xu},Ox={addDependencies:_y,typedDependencies:sy,unaryPlusDependencies:Nx,createCumSumTransform:mv},Dx={equalDependencies:Uy,typedDependencies:sy,createDeepEqual:wu},Mx={divideScalarDependencies:qy,equalScalarDependencies:ly,invDependencies:sb,matrixDependencies:fy,multiplyDependencies:rb,typedDependencies:sy,createDivide:Jc},Tx={ConstantNodeDependencies:Xb,FunctionNodeDependencies:Jb,OperatorNodeDependencies:tx,ParenthesisNodeDependencies:nx,parseDependencies:ox,createResolve:Ig},jx={AccessorNodeDependencies:hy,ArrayNodeDependencies:Dy,ConstantNodeDependencies:Xb,FunctionNodeDependencies:Jb,IndexNodeDependencies:Zb,ObjectNodeDependencies:ex,OperatorNodeDependencies:tx,ParenthesisNodeDependencies:nx,SymbolNodeDependencies:Kb,addDependencies:_y,divideDependencies:Mx,equalDependencies:Uy,isZeroDependencies:Zy,multiplyDependencies:rb,powDependencies:ub,subtractDependencies:ob,createSimplifyCore:Bg},Ix={bignumberDependencies:Fy,fractionDependencies:Ly,AccessorNodeDependencies:hy,ArrayNodeDependencies:Dy,ConstantNodeDependencies:Xb,FunctionNodeDependencies:Jb,IndexNodeDependencies:Zb,ObjectNodeDependencies:ex,OperatorNodeDependencies:tx,ParenthesisNodeDependencies:nx,SymbolNodeDependencies:Kb,addDependencies:_y,divideDependencies:Mx,equalDependencies:Uy,isZeroDependencies:Zy,matrixDependencies:fy,multiplyDependencies:rb,parseDependencies:ox,powDependencies:ub,resolveDependencies:Tx,simplifyCoreDependencies:jx,subtractDependencies:ob,typedDependencies:sy,createSimplify:qg},Px={ConstantNodeDependencies:Xb,FunctionNodeDependencies:Jb,OperatorNodeDependencies:tx,ParenthesisNodeDependencies:nx,SymbolNodeDependencies:Kb,equalDependencies:Uy,isZeroDependencies:Zy,numericDependencies:Vy,parseDependencies:ox,simplifyDependencies:Ix,typedDependencies:sy,createDerivative:Jg},$x={BigNumberDependencies:ny,UnitDependencies:cb,createDeuteronMass:sn},Rx={DenseMatrixDependencies:oy,SparseMatrixDependencies:dy,matrixDependencies:fy,typedDependencies:sy,createDiag:Cs},Bx={matrixDependencies:fy,numberDependencies:zy,subtractDependencies:ob,typedDependencies:sy,createDiff:_u},Fx={bignumberDependencies:Fy,matrixDependencies:fy,numberDependencies:zy,subtractDependencies:ob,typedDependencies:sy,createDiffTransform:uv},Lx={ComplexDependencies:ry,typedDependencies:sy,createSqrt:ya},zx={absDependencies:uy,addScalarDependencies:wy,divideScalarDependencies:qy,multiplyScalarDependencies:Ky,sqrtDependencies:Lx,subtractDependencies:ob,typedDependencies:sy,unaryMinusDependencies:ib,createDistance:sc},Vx={DenseMatrixDependencies:oy,divideScalarDependencies:qy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createDotDivide:Ns},qx={equalScalarDependencies:ly,matrixDependencies:fy,multiplyScalarDependencies:Ky,typedDependencies:sy,createDotMultiply:cc},Ux={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,powDependencies:ub,typedDependencies:sy,createDotPow:Yc},Hx={BigNumberDependencies:ny,createE:At},Wx={BigNumberDependencies:ny,createEfimovFactor:pn},Yx={matrixDependencies:fy,typedDependencies:sy,createFlatten:Ms},Gx={typedDependencies:sy,createIm:io},Xx={flattenDependencies:Yx,matrixDependencies:fy,sizeDependencies:tb,typedDependencies:sy,createMatrixFromColumns:Ws},Qx={BigNumberDependencies:ny,FractionDependencies:ay,complexDependencies:sx,typedDependencies:sy,createSign:Yo},Kx={addScalarDependencies:wy,complexDependencies:sx,conjDependencies:eb,divideScalarDependencies:qy,equalDependencies:Uy,identityDependencies:Jy,isZeroDependencies:Zy,matrixDependencies:fy,multiplyScalarDependencies:Ky,signDependencies:Qx,sqrtDependencies:Lx,subtractDependencies:ob,typedDependencies:sy,unaryMinusDependencies:ib,zerosDependencies:Cy,createQr:$u},Jx={typedDependencies:sy,createRe:Ho},Zx={typedDependencies:sy,createSin:Go},ew={DenseMatrixDependencies:oy,divideScalarDependencies:qy,equalScalarDependencies:ly,matrixDependencies:fy,multiplyScalarDependencies:Ky,subtractDependencies:ob,typedDependencies:sy,createUsolve:cu},tw={DenseMatrixDependencies:oy,divideScalarDependencies:qy,equalScalarDependencies:ly,matrixDependencies:fy,multiplyScalarDependencies:Ky,subtractDependencies:ob,typedDependencies:sy,createUsolveAll:Zu},nw={absDependencies:uy,addDependencies:_y,addScalarDependencies:wy,atanDependencies:$y,bignumberDependencies:Fy,columnDependencies:Vb,complexDependencies:sx,cosDependencies:px,diagDependencies:Rx,divideScalarDependencies:qy,dotDependencies:nb,equalDependencies:Uy,flattenDependencies:Yx,imDependencies:Gx,invDependencies:sb,largerDependencies:gb,matrixDependencies:fy,matrixFromColumnsDependencies:Xx,multiplyDependencies:rb,multiplyScalarDependencies:Ky,numberDependencies:zy,qrDependencies:Kx,reDependencies:Jx,sinDependencies:Zx,smallerDependencies:$b,sqrtDependencies:Lx,subtractDependencies:ob,typedDependencies:sy,usolveDependencies:ew,usolveAllDependencies:tw,createEigs:pl},rw={BigNumberDependencies:ny,UnitDependencies:cb,createElectricConstant:qt},iw={BigNumberDependencies:ny,UnitDependencies:cb,createElectronMass:tn},ow={BigNumberDependencies:ny,UnitDependencies:cb,createElementaryCharge:Wt},aw={compareTextDependencies:Yb,isZeroDependencies:Zy,typedDependencies:sy,createEqualText:Cu},sw={typedDependencies:sy,createErf:Vi},uw={parseDependencies:ox,typedDependencies:sy,createEvaluate:Wg},cw={typedDependencies:sy,createExp:Gi},lw={absDependencies:uy,addDependencies:_y,identityDependencies:Jy,invDependencies:sb,multiplyDependencies:rb,typedDependencies:sy,createExpm:Gc},dw={ComplexDependencies:ry,typedDependencies:sy,createExpm1:Xi},fw={createFalse:bt},pw={BigNumberDependencies:ny,UnitDependencies:cb,createFaraday:vn},hw={BigNumberDependencies:ny,UnitDependencies:cb,createFermiCoupling:nn},mw={ComplexDependencies:ry,createI:jt},gw={BigNumberDependencies:ny,createTau:Ct},vw={addScalarDependencies:wy,divideScalarDependencies:qy,expDependencies:cw,iDependencies:mw,matrixDependencies:fy,multiplyScalarDependencies:Ky,tauDependencies:gw,typedDependencies:sy,createFft:Ds},yw={largerDependencies:gb,smallerDependencies:$b,createFibonacciHeapClass:lc},bw={typedDependencies:sy,createFilter:Qi},xw={typedDependencies:sy,createFilterTransform:tv},ww={BigNumberDependencies:ny,createFineStructure:rn},_w={BigNumberDependencies:ny,UnitDependencies:cb,createFirstRadiation:yn},Sw={typedDependencies:sy,createForEach:Ji},Cw={typedDependencies:sy,createForEachTransform:rv},Aw={BigNumberDependencies:ny,UnitDependencies:cb,createGasConstant:xn},Ew={BigNumberDependencies:ny,DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createGcd:js},Nw={typedDependencies:sy,createGetMatrixDataType:no},kw={BigNumberDependencies:ny,UnitDependencies:cb,createGravitationConstant:Ft},Ow={BigNumberDependencies:ny,UnitDependencies:cb,createGravity:On},Dw={BigNumberDependencies:ny,UnitDependencies:cb,createHartreeEnergy:on},Mw={isNumericDependencies:Qy,typedDependencies:sy,createHasNumericValue:Ps},Tw={parseDependencies:ox,createHelpClass:Lg},jw={HelpDependencies:Tw,typedDependencies:sy,createHelp:Gg},Iw={formatDependencies:Xy,typedDependencies:sy,createHex:ro},Pw={absDependencies:uy,addScalarDependencies:wy,divideScalarDependencies:qy,isPositiveDependencies:ux,multiplyScalarDependencies:Ky,smallerDependencies:$b,sqrtDependencies:Lx,typedDependencies:sy,createHypot:$s},$w={conjDependencies:eb,dotDivideDependencies:Vx,fftDependencies:vw,typedDependencies:sy,createIfft:Rs},Rw={IndexDependencies:Bb,typedDependencies:sy,createIndex:Mc},Bw={IndexDependencies:Bb,createIndexTransform:yv},Fw={BigNumberDependencies:ny,createInfinity:wt},Lw={absDependencies:uy,addDependencies:_y,addScalarDependencies:wy,divideScalarDependencies:qy,equalScalarDependencies:ly,flattenDependencies:Yx,isNumericDependencies:Qy,isZeroDependencies:Zy,matrixDependencies:fy,multiplyDependencies:rb,multiplyScalarDependencies:Ky,smallerDependencies:$b,subtractDependencies:ob,typedDependencies:sy,createIntersect:mc},zw={BigNumberDependencies:ny,UnitDependencies:cb,createInverseConductanceQuantum:Xt},Vw={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createMod:$a},qw={BigNumberDependencies:ny,matrixDependencies:fy,typedDependencies:sy,createXgcd:ls},Uw={BigNumberDependencies:ny,addDependencies:_y,equalDependencies:Uy,isIntegerDependencies:Ey,modDependencies:Vw,smallerDependencies:$b,typedDependencies:sy,xgcdDependencies:qw,createInvmod:ku},Hw={typedDependencies:sy,createIsNaN:fa},Ww={typedDependencies:sy,createIsPrime:pa},Yw={ComplexDependencies:ry,divideScalarDependencies:qy,typedDependencies:sy,createLog:Mu},Gw={addDependencies:_y,numericDependencies:Vy,typedDependencies:sy,createSum:Ku},Xw={divideDependencies:Mx,dotDivideDependencies:Vx,isNumericDependencies:Qy,logDependencies:Yw,matrixDependencies:fy,multiplyDependencies:rb,sumDependencies:Gw,typedDependencies:sy,createKldivergence:Cl},Qw={BigNumberDependencies:ny,UnitDependencies:cb,createKlitzing:Jt},Kw={matrixDependencies:fy,multiplyScalarDependencies:Ky,typedDependencies:sy,createKron:Bs},Jw={BigNumberDependencies:ny,createLN10:kt},Zw={BigNumberDependencies:ny,createLN2:Nt},e_={BigNumberDependencies:ny,createLOG10E:Dt},t_={BigNumberDependencies:ny,createLOG2E:Ot},n_={equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createLcm:gc},r_={parseDependencies:ox,typedDependencies:sy,createLeafCount:zg},i_={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,zerosDependencies:Cy,createLeftShift:Vs},o_={ComplexDependencies:ry,typedDependencies:sy,createLgamma:_o},a_={ComplexDependencies:ry,typedDependencies:sy,createLog10:So},s_={ComplexDependencies:ry,divideScalarDependencies:qy,logDependencies:Yw,typedDependencies:sy,createLog1p:vc},u_={ComplexDependencies:ry,typedDependencies:sy,createLog2:Co},c_={BigNumberDependencies:ny,UnitDependencies:cb,createLoschmidt:bn},l_={DenseMatrixDependencies:oy,divideScalarDependencies:qy,equalScalarDependencies:ly,matrixDependencies:fy,multiplyScalarDependencies:Ky,subtractDependencies:ob,typedDependencies:sy,createLsolve:Us},d_={DenseMatrixDependencies:oy,divideScalarDependencies:qy,equalScalarDependencies:ly,matrixDependencies:fy,multiplyScalarDependencies:Ky,subtractDependencies:ob,typedDependencies:sy,createLsolveAll:Tu},f_={FibonacciHeapDependencies:yw,addScalarDependencies:wy,equalScalarDependencies:ly,createSpaClass:Fc},p_={DenseMatrixDependencies:oy,SpaDependencies:f_,SparseMatrixDependencies:dy,absDependencies:uy,addScalarDependencies:wy,divideScalarDependencies:qy,equalScalarDependencies:ly,largerDependencies:gb,matrixDependencies:fy,multiplyScalarDependencies:Ky,subtractDependencies:ob,typedDependencies:sy,unaryMinusDependencies:ib,createLup:el},h_={SparseMatrixDependencies:dy,absDependencies:uy,addDependencies:_y,divideScalarDependencies:qy,largerDependencies:gb,largerEqDependencies:Fb,multiplyDependencies:rb,subtractDependencies:ob,transposeDependencies:Cx,typedDependencies:sy,createSlu:Qu},m_={DenseMatrixDependencies:oy,lsolveDependencies:l_,lupDependencies:p_,matrixDependencies:fy,sluDependencies:h_,typedDependencies:sy,usolveDependencies:ew,createLusolve:yl},g_={typedDependencies:sy,createMap:Ao},v_={compareDependencies:Hb,isNaNDependencies:Hw,isNumericDependencies:Qy,typedDependencies:sy,createPartitionSelect:Js},y_={addDependencies:_y,compareDependencies:Hb,divideDependencies:Mx,partitionSelectDependencies:v_,typedDependencies:sy,createMedian:bl},b_={absDependencies:uy,mapDependencies:g_,medianDependencies:y_,subtractDependencies:ob,typedDependencies:sy,createMad:Ol},x_={BigNumberDependencies:ny,UnitDependencies:cb,createMagneticConstant:Vt},w_={BigNumberDependencies:ny,UnitDependencies:cb,createMagneticFluxQuantum:Qt},__={typedDependencies:sy,createMapTransform:iv},S_={isZeroDependencies:Zy,matrixDependencies:fy,typedDependencies:sy,createMatrixFromFunction:ka},C_={flattenDependencies:Yx,matrixDependencies:fy,sizeDependencies:tb,typedDependencies:sy,createMatrixFromRows:Iu},A_={largerDependencies:gb,numericDependencies:Vy,typedDependencies:sy,createMax:yc},E_={largerDependencies:gb,numericDependencies:Vy,typedDependencies:sy,createMaxTransform:dv},N_={addDependencies:_y,divideDependencies:Mx,typedDependencies:sy,createMean:hl},k_={addDependencies:_y,divideDependencies:Mx,typedDependencies:sy,createMeanTransform:bv},O_={numericDependencies:Vy,smallerDependencies:$b,typedDependencies:sy,createMin:Ys},D_={numericDependencies:Vy,smallerDependencies:$b,typedDependencies:sy,createMinTransform:fv},M_={isNaNDependencies:Hw,isNumericDependencies:Qy,typedDependencies:sy,createMode:Gs},T_={BigNumberDependencies:ny,UnitDependencies:cb,createMolarMass:Nn},j_={BigNumberDependencies:ny,UnitDependencies:cb,createMolarMassC12:kn},I_={BigNumberDependencies:ny,UnitDependencies:cb,createMolarPlanckConstant:wn},P_={BigNumberDependencies:ny,UnitDependencies:cb,createMolarVolume:_n},$_={addDependencies:_y,divideDependencies:Mx,factorialDependencies:mb,isIntegerDependencies:Ey,isPositiveDependencies:ux,multiplyDependencies:rb,typedDependencies:sy,createMultinomial:nl},R_={BigNumberDependencies:ny,createNaN:_t},B_={BigNumberDependencies:ny,UnitDependencies:cb,createNeutronMass:un},F_={absDependencies:uy,addDependencies:_y,conjDependencies:eb,ctransposeDependencies:Ax,eigsDependencies:nw,equalScalarDependencies:ly,largerDependencies:gb,matrixDependencies:fy,multiplyDependencies:rb,powDependencies:ub,smallerDependencies:$b,sqrtDependencies:Lx,typedDependencies:sy,createNorm:Al},L_={BigNumberDependencies:ny,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createNthRoot:La},z_={ComplexDependencies:ry,divideScalarDependencies:qy,typedDependencies:sy,createNthRoots:Xs},V_={BigNumberDependencies:ny,UnitDependencies:cb,createNuclearMagneton:Kt},q_={createNull:xt},U_={formatDependencies:Xy,typedDependencies:sy,createOct:Io},H_={BigNumberDependencies:ny,matrixDependencies:fy,typedDependencies:sy,createOnes:Qs},W_={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createOr:Ha},Y_={evaluateDependencies:uw,createParserClass:Xg},G_={ParserDependencies:Y_,typedDependencies:sy,createParser:Zg},X_={factorialDependencies:mb,typedDependencies:sy,createPermutations:il},Q_={BigNumberDependencies:ny,createPhi:Et},K_={BigNumberDependencies:ny,createPi:St},J_={typedDependencies:sy,createPickRandom:Fo},Z_={ComplexDependencies:ry,addDependencies:_y,ctransposeDependencies:Ax,deepEqualDependencies:Dx,divideScalarDependencies:qy,dotDependencies:nb,dotDivideDependencies:Vx,equalDependencies:Uy,invDependencies:sb,matrixDependencies:fy,multiplyDependencies:rb,typedDependencies:sy,createPinv:jc},eS={BigNumberDependencies:ny,UnitDependencies:cb,createPlanckCharge:jn},tS={BigNumberDependencies:ny,UnitDependencies:cb,createPlanckConstant:Lt},nS={BigNumberDependencies:ny,UnitDependencies:cb,createPlanckLength:Dn},rS={BigNumberDependencies:ny,UnitDependencies:cb,createPlanckMass:Mn},iS={BigNumberDependencies:ny,UnitDependencies:cb,createPlanckTemperature:In},oS={BigNumberDependencies:ny,UnitDependencies:cb,createPlanckTime:Tn},aS={typedDependencies:sy,createPrint:Lo},sS={BigNumberDependencies:ny,UnitDependencies:cb,createProtonMass:an},uS={addDependencies:_y,compareDependencies:Hb,multiplyDependencies:rb,partitionSelectDependencies:v_,typedDependencies:sy,createQuantileSeq:bc},cS={BigNumberDependencies:ny,UnitDependencies:cb,createQuantumOfCirculation:cn},lS={typedDependencies:sy,createRandom:Uo},dS={typedDependencies:sy,createRandomInt:ha},fS={createRangeClass:Ln},pS={bignumberDependencies:Fy,matrixDependencies:fy,largerDependencies:gb,largerEqDependencies:Fb,smallerDependencies:$b,smallerEqDependencies:Lb,typedDependencies:sy,createRangeTransform:pv},hS={bignumberDependencies:Fy,fractionDependencies:Ly,AccessorNodeDependencies:hy,ArrayNodeDependencies:Dy,ConstantNodeDependencies:Xb,FunctionNodeDependencies:Jb,IndexNodeDependencies:Zb,ObjectNodeDependencies:ex,OperatorNodeDependencies:tx,ParenthesisNodeDependencies:nx,SymbolNodeDependencies:Kb,addDependencies:_y,divideDependencies:Mx,equalDependencies:Uy,isZeroDependencies:Zy,matrixDependencies:fy,multiplyDependencies:rb,parseDependencies:ox,powDependencies:ub,simplifyDependencies:Ix,simplifyCoreDependencies:jx,subtractDependencies:ob,typedDependencies:sy,createRationalize:Kg},mS={BigNumberDependencies:ny,UnitDependencies:cb,createReducedPlanckConstant:zt},gS={createReplacer:qn},vS={isIntegerDependencies:Ey,matrixDependencies:fy,typedDependencies:sy,createReshape:Ga},yS={matrixDependencies:fy,createResize:eu},bS={createReviver:_g},xS={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,zerosDependencies:Cy,createRightArithShift:nu},wS={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,zerosDependencies:Cy,createRightLogShift:Fu},_S={BigNumberDependencies:ny,DenseMatrixDependencies:oy,SparseMatrixDependencies:dy,addScalarDependencies:wy,cosDependencies:px,matrixDependencies:fy,multiplyScalarDependencies:Ky,normDependencies:F_,sinDependencies:Zx,typedDependencies:sy,unaryMinusDependencies:ib,createRotationMatrix:Nl},SS={multiplyDependencies:rb,rotationMatrixDependencies:_S,typedDependencies:sy,createRotate:Dl},CS={IndexDependencies:Bb,matrixDependencies:fy,rangeDependencies:zb,typedDependencies:sy,createRow:xc},AS={IndexDependencies:Bb,matrixDependencies:fy,rangeDependencies:zb,typedDependencies:sy,createRowTransform:gv},ES={BigNumberDependencies:ny,UnitDependencies:cb,createRydberg:ln},NS={BigNumberDependencies:ny,createSQRT1_2:Mt},kS={BigNumberDependencies:ny,createSQRT2:Tt},OS={BigNumberDependencies:ny,createSackurTetrode:Sn},DS={BigNumberDependencies:ny,typedDependencies:sy,createSec:Wo},MS={BigNumberDependencies:ny,typedDependencies:sy,createSech:ma},TS={BigNumberDependencies:ny,UnitDependencies:cb,createSecondRadiation:Cn},jS={DenseMatrixDependencies:oy,IndexDependencies:Bb,compareNaturalDependencies:Wb,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetCartesian:_c},IS={DenseMatrixDependencies:oy,IndexDependencies:Bb,compareNaturalDependencies:Wb,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetDifference:$c},PS={DenseMatrixDependencies:oy,IndexDependencies:Bb,compareNaturalDependencies:Wb,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetDistinct:Cc},$S={DenseMatrixDependencies:oy,IndexDependencies:Bb,compareNaturalDependencies:Wb,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetIntersect:Kc},RS={IndexDependencies:Bb,compareNaturalDependencies:Wb,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetIsSubset:Ec},BS={IndexDependencies:Bb,compareNaturalDependencies:Wb,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetMultiplicity:Bc},FS={IndexDependencies:Bb,compareNaturalDependencies:Wb,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetPowerset:kc},LS={compareNaturalDependencies:Wb,typedDependencies:sy,createSetSize:Lu},zS={IndexDependencies:Bb,concatDependencies:lx,setDifferenceDependencies:IS,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetSymDifference:gl},VS={IndexDependencies:Bb,concatDependencies:lx,setIntersectDependencies:$S,setSymDifferenceDependencies:zS,sizeDependencies:tb,subsetDependencies:py,typedDependencies:sy,createSetUnion:xl},qS={typedDependencies:sy,createSinh:ga},US={compareDependencies:Hb,compareNaturalDependencies:Wb,matrixDependencies:fy,typedDependencies:sy,createSort:Oc},HS={SparseMatrixDependencies:dy,typedDependencies:sy,createSparse:va},WS={BigNumberDependencies:ny,UnitDependencies:cb,createSpeedOfLight:Bt},YS={typedDependencies:sy,createSplitUnit:Qo},GS={absDependencies:uy,addDependencies:_y,identityDependencies:Jy,invDependencies:sb,maxDependencies:A_,multiplyDependencies:rb,sizeDependencies:tb,sqrtDependencies:Lx,subtractDependencies:ob,typedDependencies:sy,createSqrtm:Lc},XS={typedDependencies:sy,createSquare:Ko},QS={matrixDependencies:fy,typedDependencies:sy,createSqueeze:Za},KS={addDependencies:_y,applyDependencies:Ny,divideDependencies:Mx,isNaNDependencies:Hw,multiplyDependencies:rb,subtractDependencies:ob,typedDependencies:sy,createVariance:_l},JS={sqrtDependencies:Lx,typedDependencies:sy,varianceDependencies:KS,createStd:kl},ZS={sqrtDependencies:Lx,typedDependencies:sy,varianceDependencies:KS,createStdTransform:wv},eC={BigNumberDependencies:ny,UnitDependencies:cb,createStefanBoltzmann:An},tC={typedDependencies:sy,createString:Jo},nC={matrixDependencies:fy,typedDependencies:sy,createSubsetTransform:cv},rC={addDependencies:_y,numericDependencies:Vy,typedDependencies:sy,createSumTransform:hv},iC={OperatorNodeDependencies:tx,parseDependencies:ox,simplifyDependencies:Ix,typedDependencies:sy,createSymbolicEqual:Hg},oC={typedDependencies:sy,createTan:Zo},aC={typedDependencies:sy,createTanh:ba},sC={BigNumberDependencies:ny,UnitDependencies:cb,createThomsonCrossSection:dn},uC={matrixDependencies:fy,typedDependencies:sy,createTo:us},cC={addDependencies:_y,matrixDependencies:fy,typedDependencies:sy,createTrace:Ju},lC={createTrue:yt},dC={typedDependencies:sy,createTypeOf:ea},fC={DenseMatrixDependencies:oy,equalScalarDependencies:ly,matrixDependencies:fy,typedDependencies:sy,createUnequal:uu},pC={UnitDependencies:cb,typedDependencies:sy,createUnitFunction:ul},hC={eDependencies:Hx,createUppercaseE:Pt},mC={piDependencies:K_,createUppercasePi:It},gC={BigNumberDependencies:ny,UnitDependencies:cb,createVacuumImpedance:Ut},vC={addDependencies:_y,applyDependencies:Ny,divideDependencies:Mx,isNaNDependencies:Hw,multiplyDependencies:rb,subtractDependencies:ob,typedDependencies:sy,createVarianceTransform:xv},yC={createVersion:$t},bC={BigNumberDependencies:ny,createWeakMixingAngle:fn},xC={BigNumberDependencies:ny,UnitDependencies:cb,createWienDisplacement:En},wC={DenseMatrixDependencies:oy,matrixDependencies:fy,typedDependencies:sy,createXor:lu},_C=t,SC=(r=n("c0e2"),n.n(r));function CC(e,t,n,r){function i(e,t){t&&"function"==typeof t.transform?(n.expression.transform[e]=t.transform,d(e)&&(n.expression.mathWithTransform[e]=t.transform)):(delete n.expression.transform[e],d(e)&&(n.expression.mathWithTransform[e]=t))}function o(e){delete n.expression.transform[e],d(e)?n.expression.mathWithTransform[e]=n[e]:delete n.expression.mathWithTransform[e]}function a(e){return"function"==typeof e&&"object"==typeof e.signatures}function d(e){return!K(m,e)}function f(e){return!(-1!==e.fn.indexOf(".")||K(m,e.fn)||e.meta&&e.meta.isClass)}function h(e){return void 0!==e&&void 0!==e.meta&&!0===e.meta.isTransformFunction||!1}var m={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(t,d){var m=arguments.length;if(1!==m&&2!==m)throw new Zs("import",m,1,2);d=d||{};var g,v,y={};for(g in function e(t,n,r){if(Array.isArray(n))n.forEach(n=>e(t,n));else if("object"==typeof n)for(var i in n)K(n,i)&&e(t,n[i],i);else if(nt(n)||void 0!==r){if(r=nt(n)?h(n)?n.fn+".transform":n.fn:r,K(t,r)&&t[r]!==n&&!d.silent)throw new Error('Cannot import "'+r+'" twice');t[r]=n}else if(!d.silent)throw new TypeError("Factory, Object, or Array expected")}(y,t),y)if(K(y,g)){var b=y[g];if(nt(b))!function(t,i){var s=2{if(et(e,"."))throw new Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(e));"math"===e?r.math=n:"mathWithTransform"===e?r.mathWithTransform=n.expression.mathWithTransform:"classes"===e?r.classes=n:r[e]=n[e]}),t(r));if(o&&"function"==typeof o.transform)throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===d||i.override)return o;if(a(d)&&a(o))return e(d,o);if(i.silent)return d;throw new Error('Cannot import "'+s+'": already exists')}var c=h(t)?n.expression.transform:n,l=s in n.expression.transform,d=K(c,s)?c[s]:void 0;t.meta&&!1===t.meta.lazy?c[s]=u():Q(c,s,u),d&&l?o(s):(h(t)||f(t))&&Q(n.expression.mathWithTransform,s,()=>c[s]),r[s]=t,n.emit("import",s,u)}(b,d);else if("function"==typeof(v=b)||"number"==typeof v||"string"==typeof v||"boolean"==typeof v||null===v||l(v)||u(v)||s(v)||c(v)||p(v)||Array.isArray(v))!function(t,o,s){if(s.wrap&&"function"==typeof o&&(o=function(e){function t(){for(var t=[],r=0,i=arguments.length;r{J(H).forEach(e=>{e&&e.meta&&e.meta.recreateOnConfigChange&&W(e,{override:!0})})}),U.create=AC.bind(null,e),U.factory=tt,U.import(J(X(e))),U.ArgumentsError=Zs,U.DimensionError=Ie,U.IndexError=Pe,U}},c7ad:function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},101:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(n){e.deleteTag(t)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return"button"in t||!e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?e.handleDelete(t):null},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,r){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(r)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)}n.r(t),r._withStripped=!0;var i=n(5),o=(i=n.n(i),n(12)),a=(o=n.n(o),n(4)),s=(a=n.n(a),n(6)),u=(s=n.n(s),n(11)),c=(u=n.n(u),n(10)),l=(c=n.n(c),n(37)),d=(l=n.n(l),n(15)),f=(d=n.n(d),n(50)),p=(f=n.n(f),n(40)),h=(p=n.n(p),n(20)),m=n(3),g=n(17),v=n(21),y=n(16),b=n(18),x=n.n(b),w=p.a.keys,_={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},S=(b={props:{placement:{type:String,default:"bottom-start"},appendToBody:i.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:i.a.props.arrowOffset,offset:i.a.props.offset,boundariesPadding:i.a.props.boundariesPadding,popperOptions:i.a.props.popperOptions},methods:i.a.methods,data:i.a.data,beforeDestroy:i.a.beforeDestroy},{medium:36,small:32,mini:28}),C=(p={name:"ElCascader",directives:{Clickoutside:o.a},mixins:[b,a.a,s.a,u.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:c.a,ElTag:l.a,ElScrollbar:d.a,ElCascaderPanel:f.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(h.t)("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return-1<["small","mini"].indexOf(this.realSize)?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(_).forEach((function(n){var r=_[n],i=r.newProp,o=(r=r.type,t[n]||t[Object(m.kebabCase)(n)]);Object(v.isDef)(n)&&!Object(v.isDef)(e[i])&&(r===Boolean&&""===o&&(o=!0),e[i]=o)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover||(this.multiple?!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!this.presentText))},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(m.isEqual)(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,r=this.config,i=r.checkStrictly;r=r.multiple;Object(m.isEqual)(e,t)&&!Object(g.isUndefined)(t)||(this.computePresentContent(),r||i||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||S[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=x()(this.debounce,(function(){var t=e.inputValue;t?(t=e.beforeFilter(t))&&t.then?t.then(e.getSuggestions):!1!==t?e.getSuggestions():e.filtering=!1:e.filtering=!1})),Object(y.addResizeListener)(this.$el,this.updateStyle)},beforeDestroy:function(){Object(y.removeResizeListener)(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t,n,r=this;this.isDisabled||(t=this.dropDownVisible,n=this.$refs.input,(e=Object(v.isDef)(e)?e:!t)!==t&&((this.dropDownVisible=e)&&this.$nextTick((function(){r.updatePopper(),r.panel.scrollIntoView()})),n.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e)))},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText},handleKeyDown:function(e){switch(e.keyCode){case w.enter:this.toggleDropDownVisible();break;case w.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case w.esc:case w.tab:this.toggleDropDownVisible(!1)}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){this.dropDownVisible||this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,r=n.popper,i=(n=n.suggestionPanel,null);(i=t&&n?n.$el.querySelector(".el-cascader__suggestion-item"):r.querySelector(".el-cascader-menu").querySelector('.el-cascader-node[tabindex="-1"]'))&&(i.focus(),t||i.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},isEmptyValue:function(e){var t=this.multiple,n=this.panel.config.emitPath;return!(!t&&!n)&&Object(m.isEmpty)(e)},computePresentText:function(){var e=this.checkedValue,t=this.config;this.isEmptyValue(e)||(e=this.panel.getNodeByValue(e),!e||!t.checkStrictly&&!e.isLeaf)?this.presentText=null:this.presentText=e.getText(this.showAllLevels,this.separator)},computePresentTags:function(){function e(e){return{node:e,key:e.uid,text:e.getText(a,s),hitState:!1,closable:!i&&!e.isDisabled}}var t,n,r,i=this.isDisabled,o=this.leafOnly,a=this.showAllLevels,s=this.separator,u=this.collapseTags,c=(o=this.getCheckedNodes(o),[]);o.length&&(t=o[0],r=(n=o.slice(1)).length,c.push(e(t)),r)&&(u?c.push({key:-1,text:"+ "+r,closable:!1}):n.forEach((function(t){return c.push(e(t))}))),this.checkedNodes=o,this.presentTags=c},getSuggestions:function(){var e=this,t=this.filterMethod,n=(Object(g.isFunction)(t)||(t=function(e,t){return e.text.includes(t)}),this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))})));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(m.isEqual)(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case w.enter:n.click();break;case w.up:var r=n.previousElementSibling;r&&r.focus();break;case w.down:r=n.nextElementSibling,r&&r.focus();break;case w.esc:case w.tab:this.toggleDropDownVisible(!1)}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags;n=n[n.length-1];this.pressDeleteCount=e?0:t+1,n&&this.pressDeleteCount&&(n.hitState?this.deleteTag(n):n.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple;e=this.suggestions[e];t?(t=e.checked,e.doCheck(!t),this.panel.calculateMultiCheckedValue()):(this.checkedValue=e.getValueByOption(),this.toggleDropDownVisible(!1))},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption();e=t.find((function(e){return Object(m.isEqual)(e,n)}));this.checkedValue=t.filter((function(e){return!Object(m.isEqual)(e,n)})),this.$emit("remove-tag",e)},updateStyle:function(){var e,t,n,r=this.$el,i=this.inputInitialHeight;!this.$isServer&&r&&(n=this.$refs.suggestionPanel,e=r.querySelector(".el-input__inner"))&&(t=r.querySelector(".el-cascader__tags"),r=null,n&&(r=n.$el)&&(r.querySelector(".el-cascader__suggestion-list").style.minWidth=e.offsetWidth+"px"),t)&&(n=t.offsetHeight,r=Math.max(n+6,i)+"px",e.style.height=r,this.updatePopper())},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},i=n(0),o=Object(i.a)(p,r,[],!1,null,null,null),o.options.__file="packages/cascader/src/cascader.vue",o.exports);C.install=function(e){e.component(C.name,C)},t.default=C},11:function(e,t){e.exports=n("2bb5")},12:function(e,t){e.exports=n("417f")},15:function(e,t){e.exports=n("14e9")},16:function(e,t){e.exports=n("4010")},17:function(e,t){e.exports=n("a742")},18:function(e,t){e.exports=n("0e15")},20:function(e,t){e.exports=n("4897")},21:function(e,t){e.exports=n("d397")},3:function(e,t){e.exports=n("8122")},37:function(e,t){e.exports=n("8bbc")},4:function(e,t){e.exports=n("d010")},40:function(e,t){e.exports=n("e452")},5:function(e,t){e.exports=n("e974")},50:function(e,t){e.exports=n("4726")},6:function(e,t){e.exports=n("6b7c")}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=101))},c83c:function(e,t,n){"use strict";n.d(t,"a",(function(){return it}));t=n("2b0e");var r,i=function(e,t){return(i=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)};function o(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{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(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||0i[0]&&u[1]>>0;if(0!=r){t=0|t;for(var i,o,a=Math.max(0<=t?t:r-Math.abs(t),0);athis.length)&&-1!==this.indexOf(e,t)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i '"+t.src+"' 不能为空或不合法"),"WEB"!==r.config.flag?(t[n]=i,t.$reject=o):((a=new Image).onload=function(){return i(a)},a.onerror=function(){return o("=> '"+t.src+"' 图片加载失败")},a.src=e)}))},nt.prototype.drawImage=function(e,t){for(var n,r=[],i=2;i>0)+"px "+l,i=String(n.text);(d?Ce(o,xe(i),(function(e){return e=(r.prizeRadius-t(n,p,e.length))*Math.tan(r.prizeAng/2)*2-r.getLength(a.gutter),r.getLength(f,e)}),h):i.split("\n")).filter((function(e){return!!e})).forEach((function(r,i){o.fillText(r,e(n,r),t(n,p,i))}))})),o.rotate(Pe(360)-i-Pe(90)),o.translate(-m,-g)})),o.restore(),this.buttons.forEach((function(n,i){var a=r.getLength(n.radius,r.prizeRadius);r.maxBtnRadius=Math.max(r.maxBtnRadius,a),we(n.background)&&(o.beginPath(),o.fillStyle=n.background,o.arc(0,0,a,0,2*Math.PI,!1),o.fill()),n.pointer&&we(n.background)&&(o.beginPath(),o.fillStyle=n.background,o.moveTo(-a,0),o.lineTo(a,0),o.lineTo(0,2*-a),o.closePath(),o.fill()),n.imgs&&n.imgs.forEach((function(e,t){var n,i,s=r.ImageCache.get(e.src);s&&(n=(i=r.computedWidthAndHeight(s,e,2*a,2*a))[0],i=i[1],e=[r.getOffsetX(n)+r.getLength(e.left,a),r.getLength(e.top,a)],r.drawImage(o,s,e[0],e[1],n,i))})),n.fonts&&n.fonts.forEach((function(n){var i=n.fontColor||s.fontColor,u=n.fontWeight||s.fontWeight,c=r.getLength(n.fontSize||s.fontSize),l=n.fontStyle||s.fontStyle;o.fillStyle=i,o.font=u+" "+(c>>0)+"px "+l,String(n.text).split("\n").forEach((function(r,i){o.fillText(r,e(n,r),t(n,a,i))}))}))})),null!=(n=i.afterDraw)&&n.call(this,o)},tt.prototype.carveOnGunwaleOfAMovingBoat=function(){var e=this._defaultConfig,t=this.prizeFlag,n=this.prizeDeg,r=this.rotateDeg;this.endTime=Date.now();for(var i=this.stopDeg=r,o=e.speed,a=(Math.random()*n-n/2)*this.getLength(e.stopRange),s=0,u=0,c=0;++s;){var l=360*s-t*n-r-e.offsetDegree+a-n/2,d=Be(this.FPS,i,l,e.decelerationTime)-i;if(o>0:p)?a.background:e.background||o.background;we(u)&&(4===(s=(p?a.shadow:e.shadow||o.shadow).replace(/px/g,"").split(",")[0].split(" ").map((function(e,t){return t<3?Number(e):e}))).length&&(r.shadowColor=s[3],r.shadowOffsetX=s[0]*n.dpr,r.shadowOffsetY=s[1]*n.dpr,r.shadowBlur=s[2],0=t.prizes.length&&(i-=t.prizes.length),e.imgs&&e.imgs.forEach((function(e,n){var i,o=t.ImageCache.get(e.src),a=t.ImageCache.get(e.activeSrc);o&&(a=p&&a||o)&&(i=(o=t.computedWidthAndHeight(a,e,d,f))[0],o=o[1],e=[c+t.getOffsetX(i,d)+t.getLength(e.left,d),l+t.getLength(e.top,f)],t.drawImage(r,a,e[0],e[1],i,o))})),e.fonts&&e.fonts.forEach((function(e){var n,i=p&&a.fontStyle?a.fontStyle:e.fontStyle||o.fontStyle,s=p&&a.fontWeight?a.fontWeight:e.fontWeight||o.fontWeight,u=p&&a.fontSize?t.getLength(a.fontSize):t.getLength(e.fontSize||o.fontSize),h=p&&a.lineHeight?a.lineHeight:e.lineHeight||o.lineHeight||e.fontSize||o.fontSize,m=(be(e,"wordWrap")?e:o).wordWrap,g=e.lengthLimit||o.lengthLimit,v=e.lineClamp||o.lineClamp;r.font=s+" "+(u>>0)+"px "+i,r.fillStyle=p&&a.fontColor?a.fontColor:e.fontColor||o.fontColor,s=String(e.text);(m?(n=t.getLength(g,d),Ce(r,xe(s),(function(){return n}),v)):s.split("\n")).forEach((function(n,i){r.fillText(n,c+t.getOffsetX(r.measureText(n).width,d)+t.getLength(e.left,d),l+t.getLength(e.top,f)+(i+1)*t.getLength(h))}))}))})),null!=(e=n.afterDraw)&&e.call(this,r)},et.prototype.handleBackground=function(e,t,n,r,i){var o,a,s,u,c=this.ctx;return i.includes("linear-gradient")&&(c=c,e=e,t=t,n=n,r=r,o=i,o=/linear-gradient\((.+)\)/.exec(o)[1].split(",").map((function(e){return e.trim()})),a=o.shift(),s=[0,0,0,0],a.includes("deg")?(u=function(e){return Math.tan(e/180*Math.PI)},0<=(a=a.slice(0,-3)%360)&&a<45?s=[e,t+r,e+n,t+r-n*u(+a)]:45<=a&&a<90?s=[e,t+r,e+n-r*u(a-45),t]:90<=a&&a<135?s=[e+n,t+r,e+n-r*u(a-90),t]:135<=a&&a<180?s=[e+n,t+r,e,t+n*u(a-135)]:180<=a&&a<225?s=[e+n,t,e,t+n*u(a-180)]:225<=a&&a<270?s=[e+n,t,e+r*u(a-225),t+r]:270<=a&&a<315?s=[e,t,e+r*u(a-270),t+r]:315<=a&&a<360&&(s=[e,t,e+n,t+r-n*u(a-315)])):a.includes("top")?s=[e,t+r,e,t]:a.includes("bottom")?s=[e,t,e,t+r]:a.includes("left")?s=[e+n,t,e,t]:a.includes("right")&&(s=[e,t,e+n,t]),u=c.createLinearGradient.apply(c,s.map((function(e){return e>>0}))),i=o.reduce((function(e,t,n){return t=t.split(" "),1===t.length?e.addColorStop(n,t[0]):2===t.length&&e.addColorStop.apply(e,t),e}),u)),i},et.prototype.carveOnGunwaleOfAMovingBoat=function(){var e=this._defaultConfig,t=this.prizeFlag,n=this.currIndex;this.endTime=Date.now();for(var r=this.stopIndex=n,i=e.speed,o=0,a=0,s=0;++o;){var u=this.prizes.length*o+t-r,c=Be(this.FPS,r,u,e.decelerationTime)-r;if(i>0)+"px "+i,m.fillStyle=t.fontColor||n.fontColor,o=String(t.text);(l?(r=e.getLength(d,s),Ce(m,xe(o),(function(){return r}),f)):o.split("\n")).forEach((function(n,r){m.fillText(n,p+e.getOffsetX(m.measureText(n).width,s)+e.getLength(t.left,s),h+e.getLength(t.top,u)+(r+1)*e.getLength(c))}))}))}));i=e.displacement([o,0,s,d],[0,a,d,u]);for(var f=i[0],g=i[1],v=i[2],y=i[3],b=d;bs){e.endScroll[o]=p;break}}}))},Ze.prototype.play=function(){var e,t;0===this.step&&(this.startTime=Date.now(),this.prizeFlag=void 0,this.step=1,null!=(t=(e=this.config).afterStart)&&t.call(e),this.run())},Ze.prototype.stop=function(e){if(0!==this.step&&3!==this.step){if("number"==typeof e)this.prizeFlag=new Array(this.slots.length).fill(e);else{if(!ye(e,"array"))return void this.stop(-1);if(e.length!==this.slots.length)return void this.stop(-1);this.prizeFlag=e}null!=(e=this.prizeFlag)&&e.includes(-1)?(this.prizeFlag=[],this.step=0):this.step=2}},Ze.prototype.run=function(e){var t,n,r=this,i=(void 0===e&&(e=0),this.rAF),o=this.step,a=this.prizeFlag,s=this._defaultConfig,u=this.cellAndSpacing,c=this.slots,l=s.accelerationTime,d=s.decelerationTime;if(0!==this.step||(null==a?void 0:a.length)!==c.length)void 0!==a&&!a.length||(3!==this.step||this.endScroll.length||this.carveOnGunwaleOfAMovingBoat(),t=Date.now()-this.startTime,n=Date.now()-this.endTime,c.forEach((function(i,f){var p,h,m,g,v=i.order;v&&v.length&&(v=u*v.length,p=Math.abs(i.speed||s.speed),i=i.direction||s.direction,g=0,m=r.scroll[f],1===o||tc;)!i(r,n=t[c++])||~a(l,n)||u(l,n);return l}},cae0:function(e,t,n){(function(e){var r;!function(e){function i(e){var t=this;t.next=function(){var e=t.x,n=t.i,r=e[n],i=(r^=r>>>7)^r<<24;return i=(i^=(r=e[n+1&7])^r>>>10)^(r=e[n+3&7])^r>>>3^(r=e[n+4&7])^r<<7,r=e[n+7&7],e[n]=i^=(r^=r<<13)^r<<9,t.i=n+1&7,i};var n,r=t,i=e,o=[];if(i===(0|i))o[0]=i;else for(i=""+i,n=0;n>>0)/4294967296}var r=new i(e=null==e?+new Date:e);e=t&&t.state;return n.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},n.int32=r.next,n.quick=n,e&&(e.x&&o(e,r),n.state=function(){return o(r,{})}),n}e&&e.exports?e.exports=a:n("07d6")&&n("3c35")?void 0!==(r=function(){return a}.call(t,n,t,e))&&(e.exports=r):this.xorshift7=a}(e,n("07d6"))}).call(this,n("62e4")(e))},cb2d:function(e,t,n){"use strict";var r=n("1626"),i=n("9bf2"),o=n("13d2"),a=n("6374");e.exports=function(e,t,n,s){var u=(s=s||{}).enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},cb70:function(e,t,n){},cbb5:function(e,t,n){},cc12:function(e,t,n){"use strict";var r=n("da84"),i=(n=n("861d"),r.document),o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},cc15:function(e,t,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},cc98:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("4738").CONSTRUCTOR,a=n("d256"),s=n("d066"),u=n("1626"),c=(n=n("cb2d"),a&&a.prototype);r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)&&(r=s("Promise").prototype.catch,c.catch!==r)&&n(c,"catch",r,{unsafe:!0})},cca6:function(e,t,n){"use strict";var r=n("23e7");n=n("60da");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},cdce:function(e,t,n){"use strict";var r=n("da84");n=n("1626"),r=r.WeakMap;e.exports=n(r)&&/native code/.test(String(r))},cdf9:function(e,t,n){"use strict";var r=n("825a"),i=n("861d"),o=n("f069");e.exports=function(e,t){return r(e),i(t)&&t.constructor===e?t:((0,(e=o.f(e)).resolve)(t),e.promise)}},ce18:function(e,t,n){},ce7a:function(e,t,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b");function s(e){e=new o(e);var t=i(o.prototype.request,e);return r.extend(t,o.prototype,e),r.extend(t,e),t}var u=s(n("2444"));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.all=function(e){return Promise.all(e)},u.spread=n("0df6"),e.exports=u,e.exports.default=u},d010:function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(i){i.$options.componentName===e?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==e);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},d012:function(e,t,n){"use strict";e.exports={}},d039:function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},d066:function(e,t,n){"use strict";var r=n("da84"),i=n("1626");e.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},d16a:function(e,t,n){var r=n("fc5e"),i=Math.min;e.exports=function(e){return 0>=1)1&t&&(r=r*e%n);return r}(10,n,t),o=0;o<300;o++){if(r===i)return o;r=10*r%t,i=10*i%t}return 0}function c(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function l(e,t){if(s(e,t),!(this instanceof l))return o(n.s*n.n,n.d);e=c(n.d,n.n),this.s=n.s,this.n=n.n/e,this.d=n.d/e}l.DivisionByZero=new Error("Division by Zero"),l.InvalidParameter=new Error("Invalid argument"),l.NonIntegerParameter=new Error("Parameters must be integer"),l.prototype={s:1,n:0,d:1,abs:function(){return o(this.n,this.d)},neg:function(){return o(-this.s*this.n,this.d)},add:function(e,t){return s(e,t),o(this.s*this.n*n.d+n.s*this.d*n.n,this.d*n.d)},sub:function(e,t){return s(e,t),o(this.s*this.n*n.d-n.s*this.d*n.n,this.d*n.d)},mul:function(e,t){return s(e,t),o(this.s*n.s*this.n*n.n,this.d*n.d)},div:function(e,t){return s(e,t),o(this.s*n.s*this.n*n.d,this.d*n.n)},clone:function(){return o(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new l(NaN);if(void 0===e)return o(this.s*this.n%this.d,1);if(s(e,t),0===n.n&&0===this.d)throw l.DivisionByZero;return o(this.s*(n.d*this.n)%(n.n*this.d),n.d*this.d)},gcd:function(e,t){return s(e,t),o(c(n.n,this.n)*c(n.d,this.d),n.d*this.d)},lcm:function(e,t){return s(e,t),0===n.n&&0===this.n?o(0,1):o(n.n*this.n,c(n.n,this.n)*c(n.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):o(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):o(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new l(NaN):o(Math.round(e*this.s*this.n/this.d),e)},inverse:function(){return o(this.s*this.d,this.n)},pow:function(e,t){if(s(e,t),1===n.d)return n.s<0?o(Math.pow(this.s*this.d,n.n),Math.pow(this.n,n.n)):o(Math.pow(this.s*this.n,n.n),Math.pow(this.d,n.n));if(this.s<0)return null;var r,i=a(this.n),u=a(this.d),c=1,l=1;for(r in i)if("1"!==r){if("0"===r){c=0;break}if(i[r]*=n.n,i[r]%n.d!=0)return null;i[r]/=n.d,c*=Math.pow(r,i[r])}for(r in u)if("1"!==r){if(u[r]*=n.n,u[r]%n.d!=0)return null;u[r]/=n.d,l*=Math.pow(r,u[r])}return n.s<0?o(l,c):o(c,l)},equals:function(e,t){return s(e,t),this.s*this.n*n.d==n.s*n.n*this.d},compare:function(e,t){return s(e,t),e=this.s*this.n*n.d-n.s*n.n*this.d,(0=e[0]&&r<=e[1]})))?e:(o=t[0][0],a=t[0][0],t.forEach((function(e){o=new Date(Math.min(e[0],o)),a=new Date(Math.max(e[1],o))})),g(rthis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?-1=t&&!this.isChecked||this.model.length<=e&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t,n=this;this.isLimitExceeded||(t=void 0,t=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",t,e),this.$nextTick((function(){n.isGroup&&n.dispatch("ElCheckboxGroup","change",[n._checkboxGroup.value])})))}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},n=n(0),n=Object(n.a)(i,r,[],!1,null,null,null),n.options.__file="packages/checkbox/src/checkbox.vue",n.exports);o.install=function(e){e.component(o.name,o)},t.default=o},4:function(e,t){e.exports=n("d010")}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=120))},dd3d:function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},11:function(e,t){e.exports=n("2bb5")},14:function(e,t){e.exports=n("eedf")},19:function(e,t){e.exports=n("dcdc")},39:function(e,t){e.exports=n("7fc1")},4:function(e,t){e.exports=n("d010")},6:function(e,t){e.exports=n("6b7c")},68:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement;return(t=e._self._c||t)("div",{staticClass:"el-transfer"},[t("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),t("div",{staticClass:"el-transfer__buttons"},[t("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[t("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?t("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),t("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?t("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),t("i",{staticClass:"el-icon-arrow-right"})])],1),t("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)}function i(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&0 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])}n.r(t),r._withStripped=!0;var o=n(14),a=(o=n.n(o),n(4)),s=(a=n.n(a),n(6)),u=(s=n.n(s),i._withStripped=!0,n(39)),c=(u=n.n(u),n(19)),l=(c=n.n(c),n(10)),d=(u={mixins:[s.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:u.a,ElCheckbox:c.a,ElInput:n.n(l).a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"!==t.$options.componentName&&t.$parent?e(t.$parent):t}(this),n=t.$parent||t;return t.renderContent?t.renderContent(e,this.option):n.$scopedSlots.default?n.$scopedSlots.default({option:this.option}):e("span",[this.option[t.labelProp]||this.option[t.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){var n;this.updateAllChecked(),this.checkChangeByUser?(n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)})),this.$emit("checked-change",e,n)):(this.$emit("checked-change",e),this.checkChangeByUser=!0)},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){-1"+e+""}),d=e;function f(){d.apply(this,arguments)}d&&(f.__proto__=d),(f.prototype=Object.create(d&&d.prototype)).constructor=f;var p={isMounted:{}};return p.isMounted.get=function(){return!!this.node},f.createFromExistingNode=function(e){return new f({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},f.prototype.destroy=function(){this.isMounted&&this.unmount(),d.prototype.destroy.call(this)},f.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},f.prototype.render=function(){var e=this.stringify();return n(l(e)).childNodes[0]},f.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(f.prototype,p),f}()}).call(this,n("c8ba"))},e01a:function(e,t,n){"use strict";var r,i,o,a,s,u,c,l=n("23e7"),d=n("83ab"),f=n("da84"),p=n("e330"),h=n("1a2d"),m=n("1626"),g=n("3a9b"),v=n("577e"),y=n("edd0"),b=(n=n("e893"),f.Symbol),x=b&&b.prototype;!d||!m(b)||"description"in x&&void 0===b().description||(r={},n(f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:v(arguments[0]),t=g(x,this)?new b(e):void 0===e?b():b(e);return""===e&&(r[t]=!0),t},b),(f.prototype=x).constructor=f,i="Symbol(description detection)"===String(b("description detection")),o=p(x.valueOf),a=p(x.toString),s=/^Symbol\((.*)\)[^)]+$/,u=p("".replace),c=p("".slice),y(x,"description",{configurable:!0,get:function(){var e=o(this);return h(r,e)?"":(e=a(e),""===(e=i?c(e,7,-1):u(e,s,"$1"))?void 0:e)}}),l({global:!0,constructor:!0,forced:!0},{Symbol:f}))},e04d:function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},97:function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement;return(t=e._self._c||t)("transition",{attrs:{name:"el-alert-fade"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?t("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),t("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?t("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?t("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?t("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),t("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])}n.r(t),r._withStripped=!0;var i={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},o={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return i[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},a=(n=n(0),n=Object(n.a)(o,r,[],!1,null,null,null),n.options.__file="packages/alert/src/main.vue",n.exports);a.install=function(e){e.component(a.name,a)},t.default=a}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=97))},e065:function(e,t,n){"use strict";var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},e15d:function(e,t,n){},e163:function(e,t,n){"use strict";var r=n("1a2d"),i=n("1626"),o=n("7b0b"),a=n("f772"),s=(n=n("e177"),a("IE_PROTO")),u=Object,c=u.prototype;e.exports=n?u.getPrototypeOf:function(e){var t;e=o(e);return r(e,s)?e[s]:(t=e.constructor,i(t)&&e instanceof t?t.prototype:e instanceof u?c:null)}},e177:function(e,t,n){"use strict";n=n("d039"),e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e17f:function(e,t,n){"use strict";n("68ef"),n("a71a"),n("9d70"),n("3743"),n("4d75"),n("e3b3"),n("bc1b"),n("1175"),n("4cf9"),n("2fcb")},e198:function(e,t,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=!o&&r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},e1a5:function(e,t,n){function r(e){var t;return(o[e]||(t=o[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,r),t.l=!0,t)).exports}var i,o;e.exports=(i={0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var u,c,l="function"==typeof e?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u&&(l.functional?(l._injectStyles=u,c=l.render,l.render=function(e,t){return u.call(t),c(e,t)}):(t=l.beforeCreate,l.beforeCreate=t?[].concat(t,u):[u])),{exports:e,options:l}}n.d(t,"a",(function(){return r}))},131:function(e,t,n){"use strict";n.r(t);var r={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n=this.$slots.default||[];return e("ul",{class:{"el-timeline":!0,"is-reverse":t}},[n=t?n.reverse():n])}},i=(n=n(0),n=Object(n.a)(r,void 0,void 0,!1,null,null,null),n.options.__file="packages/timeline/src/main.vue",n.exports);i.install=function(e){e.component(i.name,i)},t.default=i}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=131))},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("9bf2").f,u=n("c6d2"),c=n("4754"),l=n("c430"),d=(n=n("83ab"),"Array Iterator"),f=a.set,p=a.getterFor(d);e.exports=u(Array,"Array",(function(e,t){f(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,c(void 0,!0);switch(n){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values"),a=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&n&&"values"!==a.name)try{s(a,"name",{value:"values"})}catch(e){}},e267:function(e,t,n){"use strict";var r=n("e330"),i=n("e8b5"),o=n("1626"),a=n("c6b6"),s=n("577e"),u=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r=this.max?this.max:e)<=this.min&&(e=this.min),this.currentValue=e,this.userInput=null,this.$emit("input",e)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,r=this.precision;t=n(t);return void 0!==r?r:Math.max(n(e),t)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){var e,t;return null!==this.userInput?this.userInput:"number"==typeof(t=this.currentValue)&&(this.stepStrictly&&(e=this.getPrecision(this.step),e=Math.pow(10,e),t=Math.round(t/this.step)*e*this.step/e),void 0!==this.precision)?t.toFixed(this.precision):t}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){var t,n;return void 0===e?0:(n=0,-1!==(t=(e=e.toString()).indexOf("."))?e.length-t-1:n)},_increase:function(e,t){var n;return"number"!=typeof e&&void 0!==e?this.currentValue:(n=Math.pow(10,this.numPrecision),this.toPrecision((n*e+n*t)/n))},_decrease:function(e,t){var n;return"number"!=typeof e&&void 0!==e?this.currentValue:(n=Math.pow(10,this.numPrecision),this.toPrecision((n*e-n*t)/n))},increase:function(){var e;this.inputNumberDisabled||this.maxDisabled||(e=this.value||0,e=this._increase(e,this.step),this.setCurrentValue(e))},decrease:function(){var e;this.inputNumberDisabled||this.minDisabled||(e=this.value||0,e=this._decrease(e,this.step),this.setCurrentValue(e))},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;t!==(e=(e=(e="number"==typeof e&&void 0!==this.precision?this.toPrecision(e,this.precision):e)>=this.max?this.max:e)<=this.min?this.min:e)&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){this.$refs&&this.$refs.input&&this.$refs.input.$refs.input.setAttribute("aria-valuenow",this.currentValue)}},a=n(0),i=Object(a.a)(o,r,[],!1,null,null,null),i.options.__file="packages/input-number/src/input-number.vue",i.exports);s.install=function(e){e.component(s.name,s)},t.default=s},2:function(e,t){e.exports=n("5924")},22:function(e,t){e.exports=n("12f2")},30:function(e,t,n){"use strict";var r=n(2);t.a={bind:function(e,t,n){function i(){return n.context[t.expression].apply()}function o(){Date.now()-a<100&&i(),clearInterval(s),s=null}var a,s=null;Object(r.on)(e,"mousedown",(function(e){0===e.button&&(a=Date.now(),Object(r.once)(document,"mouseup",o),clearInterval(s),s=setInterval(i,100))}))}}}},o={},r.m=i,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r(r.s=104))},e452:function(e,t,n){"use strict";t.__esModule=!0;var r={};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(e){for(var t=0;t=this.select.multipleLimit&&0t.key[n])return 1}return 0}(e,t)||e.index-t.index)*n})).map((function(e){return e.value}))},u=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},c=function(e,t){for(var n=null,r=0;rthis.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){var e,t;this.$isServer||(t=this.autosize,"textarea"===this.type&&(t?(e=t.minRows,t=t.maxRows,this.textareaCalcStyle=u(this.$refs.textarea,e,t)):this.textareaCalcStyle={minHeight:u(this.$refs.textarea).minHeight}))},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){e=e.target.value,e=e[e.length-1]||"",this.isComposing=!Object(d.isKorean)(e)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n,r=null,i=0;i>examples/element-ui/CNAME","deploy:extension":"cross-env NODE_ENV=production webpack --config build/webpack.extension.js","dev":"npm run bootstrap && npm run build:file && cross-env NODE_ENV=development webpack-dev-server --config build/webpack.demo.js & node build/bin/template.js","dev:extension":"rimraf examples/extension/dist && cross-env NODE_ENV=development webpack --watch --config build/webpack.extension.js","dev:play":"npm run build:file && cross-env NODE_ENV=development PLAY_ENV=true webpack-dev-server --config build/webpack.demo.js","dist":"npm run clean && npm run build:file && npm run lint && webpack --config build/webpack.conf.js && webpack --config build/webpack.common.js && webpack --config build/webpack.component.js && npm run build:utils && npm run build:umd && npm run build:theme","i18n":"node build/bin/i18n.js","lint":"eslint src/**/* test/**/* packages/**/* build/**/* --quiet","pub":"npm run bootstrap && sh build/git-release.sh && sh build/release.sh && node build/bin/gen-indices.js","test":"npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ BABEL_ENV=test karma start test/unit/karma.conf.js --single-run","test:watch":"npm run build:theme && cross-env BABEL_ENV=test karma start test/unit/karma.conf.js"},"style":"lib/theme-chalk/index.css","typings":"types/index.d.ts","unpkg":"lib/index.js","version":"2.15.4"}')},f772:function(e,t,n){"use strict";var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f893:function(e,t,n){e.exports={default:n("8119"),__esModule:!0}},f92a:function(e,t,n){},f9bd:function(e,t,n){"use strict";var r=n("d282"),i=n("9884"),o=n("b1d2"),a=(n=Object(r.a)("collapse"),r=n[0],n[1]);t.a=r({mixins:[Object(i.b)("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(e,t){this.accordion||(e=t?this.value.concat(e):this.value.filter((function(t){return t!==e}))),this.$emit("change",e),this.$emit("input",e)}},render:function(){var e;return(0,arguments[0])("div",{class:[a(),((e={})[o.f]=this.border,e)]},[this.slots()])}})},fa4c:function(e,t,n){},faf5:function(e,t,n){e.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("23cb"),u=n("07fa"),c=n("fc6a"),l=n("8418"),d=n("b622"),f=n("1dde"),p=n("f36a"),h=(n=f("slice"),d("species")),m=Array,g=Math.max;r({target:"Array",proto:!0,forced:!n},{slice:function(e,t){var n,r,d,f=c(this),v=u(f),y=s(e,v),b=s(void 0===t?v:t,v);if(i(f)&&(n=f.constructor,(n=o(n)&&(n===m||i(n.prototype))||a(n)&&null===(n=n[h])?void 0:n)===m||void 0===n))return p(f,y,b);for(r=new(void 0===n?m:n)(g(b-y,0)),d=0;y