PageSourceSearch

https://coachtribe.nl/wp-content/plugins/tin-canny-learndash-reporting/src/assets/admin/js/dist/vendors.min.js

js coachtribe.nl collected 2026-10-09 22:05:48 UTC 739,059 bytes, 1 lines download raw bytes

vendor: 15,855 bytes, line 1
1var vendors_lib;!function(){var e={458:function(e,t,i){var r,n,s;n=[i(692)],r=function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;return function(){var e,i,r;t&&t.requirejs||(t?i=t:t={},function(t){var n,s,a,o,l={},u={},h={},c={},d=Object.prototype.hasOwnProperty,p=[].slice,f=/\.js$/;function g(e,t){return d.call(e,t)}function m(e,t){var i,r,n,s,a,o,l,u,c,d,p,g=t&&t.split("/"),m=h.map,b=m&&m["*"]||{};if(e){for(a=(e=e.split("/")).length-1,h.nodeIdCompat&&f.test(e[a])&&(e[a]=e[a].replace(f,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),c=0;c<e.length;c++)if("."===(p=e[c]))e.splice(c,1),c-=1;else if(".."===p){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((g||b)&&m){for(c=(i=e.split("/")).length;c>0;c-=1){if(r=i.slice(0,c).join("/"),g)for(d=g.length;d>0;d-=1)if((n=m[g.slice(0,d).join("/")])&&(n=n[r])){s=n,o=c;break}if(s)break;!l&&b&&b[r]&&(l=b[r],u=c)}!s&&l&&(s=l,o=u),s&&(i.splice(0,o,s),e=i.join("/"))}return e}function b(e,i){return function(){var r=p.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),s.apply(t,r.concat([e,i]))}}function v(e){return function(t){return m(t,e)}}function y(e){return function(t){l[e]=t}}function _(e){if(g(u,e)){var i=u[e];delete u[e],c[e]=!0,n.apply(t,i)}if(!g(l,e)&&!g(c,e))throw new Error("No "+e);return l[e]}function w(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function x(e){return e?w(e):[]}function D(e){return function(){return h&&h.config&&h.config[e]||{}}}a=function(e,t){var i,r=w(e),n=r[0],s=t[1];return e=r[1],n&&(i=_(n=m(n,s))),n?e=i&&i.normalize?i.normalize(e,v(s)):m(e,s):(n=(r=w(e=m(e,s)))[0],e=r[1],n&&(i=_(n))),{f:n?n+"!"+e:e,n:e,pr:n,p:i}},o={require:function(e){return b(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:D(e)}}},n=function(e,i,r,n){var s,h,d,p,f,m,v,w=[],D=typeof r;if(m=x(n=n||e),"undefined"===D||"function"===D){for(i=!i.length&&r.length?["require","exports","module"]:i,f=0;f<i.length;f+=1)if("require"===(h=(p=a(i[f],m)).f))w[f]=o.require(e);else if("exports"===h)w[f]=o.exports(e),v=!0;else if("module"===h)s=w[f]=o.module(e);else if(g(l,h)||g(u,h)||g(c,h))w[f]=_(h);else{if(!p.p)throw new Error(e+" missing "+h);p.p.load(p.n,b(n,!0),y(h),{}),w[f]=l[h]}d=r?r.apply(l[e],w):void 0,e&&(s&&s.exports!==t&&s.exports!==l[e]?l[e]=s.exports:d===t&&v||(l[e]=d))}else e&&(l[e]=r)},e=i=s=function(e,i,r,l,u){if("string"==typeof e)return o[e]?o[e](i):_(a(e,x(i)).f);if(!e.splice){if((h=e).deps&&s(h.deps,h.callback),!i)return;i.splice?(e=i,i=r,r=null):e=t}return i=i||function(){},"function"==typeof r&&(r=l,l=u),l?n(t,e,i,r):setTimeout((function(){n(t,e,i,r)}),4),s},s.config=function(e){return s(e)},e._defined=l,(r=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),g(l,e)||g(u,e)||(u[e]=[e,t,i])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=i,t.define=r)}(),t.define("almond",(function(){})),t.define("jquery",[],(function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t})),t.define("select2/utils",["jquery"],(function(e){var t={};function i(e){var t=e.prototype,i=[];for(var r in t)"function"==typeof t[r]&&"constructor"!==r&&i.push(r);return i}t.Extend=function(e,t){var i={}.hasOwnProperty;function r(){this.constructor=e}for(var n in t)i.call(t,n)&&(e[n]=t[n]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},t.Decorate=function(e,t){var r=i(t),n=i(e);function s(){var i=Array.prototype.unshift,r=t.prototype.constructor.length,n=e.prototype.constructor;r>0&&(i.call(arguments,e.prototype.constructor),n=t.prototype.constructor),n.apply(this,arguments)}function a(){this.constructor=s}t.displayName=e.displayName,s.prototype=new a;for(var o=0;o<n.length;o++){var l=n[o];s.prototype[l]=e.prototype[l]}for(var u=function(e){var i=function(){};e in s.prototype&&(i=s.prototype[e]);var r=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,i),r.apply(this,arguments)}},h=0;h<r.length;h++){var c=r[h];s.prototype[c]=u(c)}return s};var r=function(){this.listeners={}};r.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},r.prototype.trigger=function(e){var t=Array.prototype.slice,i=t.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,t){for(var i=0,r=e.length;i<r;i++)e[i].apply(this,t)},t.Observable=r,t.generateChars=function(e){for(var t="",i=0;i<e;i++)t+=Math.floor(36*Math.random()).toString(36);return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var i=t.split("-"),r=e;if(1!==i.length){for(var n=0;n<i.length;n++){var s=i[n];(s=s.substring(0,1).toLowerCase()+s.substring(1))in r||(r[s]={}),n==i.length-1&&(r[s]=e[t]),r=r[s]}delete e[t]}}return e},t.hasScroll=function(t,i){var r=e(i),n=i.style.overflowX,s=i.style.overflowY;return(n!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===n||"scroll"===s||r.innerHeight()<i.scrollHeight||r.innerWidth()<i.scrollWidth)},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var n=0;return t.GetUniqueElementId=function(e){var i=e.getAttribute("data-select2-id");return null!=i||(i=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",i)),i},t.StoreData=function(e,i,r){var n=t.GetUniqueElementId(e);t.__cache[n]||(t.__cache[n]={}),t.__cache[n][i]=r},t.GetData=function(i,r){var n=t.GetUniqueElementId(i);return r?t.__cache[n]&&null!=t.__cache[n][r]?t.__cache[n][r]:e(i).data(r):t.__cache[n]},t.RemoveData=function(e){var i=t.GetUniqueElementId(e);null!=t.__cache[i]&&delete t.__cache[i],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var i=e.getAttribute("class").trim().split(/\s+/);i=i.filter((function(e){return 0===e.indexOf("select2-")}));var r=t.getAttribute("class").trim().split(/\s+/);r=r.filter((function(e){return 0!==e.indexOf("select2-")}));var n=i.concat(r);e.setAttribute("class",n.join(" "))},t})),t.define("select2/results",["jquery","./utils"],(function(e,t){function i(e,t,r){this.$element=e,this.data=r,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),n=this.options.get("translations").get(t.message);r.append(i(n(t.args))),r[0].className+=" select2-results__message",this.$results.append(r)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var i=0;i<e.results.length;i++){var r=e.results[i],n=this.option(r);t.push(n)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current((function(r){var n=r.map((function(e){return e.id.toString()}));i.$results.find(".select2-results__option--selectable").each((function(){var i=e(this),r=t.GetData(this,"data"),s=""+r.id;null!=r.element&&r.element.selected||null==r.element&&n.indexOf(s)>-1?(this.classList.add("select2-results__option--selected"),i.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),i.attr("aria-selected","false"))}))}))},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},i=this.option(t);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var r=document.createElement("li");r.classList.add("select2-results__option"),r.classList.add("select2-results__option--selectable");var n={role:"option"},s=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=i.element&&s.call(i.element,":disabled")||null==i.element&&i.disabled)&&(n["aria-disabled"]="true",r.classList.remove("select2-results__option--selectable"),r.classList.add("select2-results__option--disabled")),null==i.id&&r.classList.remove("select2-results__option--selectable"),null!=i._resultId&&(r.id=i._resultId),i.title&&(r.title=i.title),i.children&&(n.role="group",n["aria-label"]=i.text,r.classList.remove("select2-results__option--selectable"),r.classList.add("select2-results__option--group")),n){var o=n[a];r.setAttribute(a,o)}if(i.children){var l=e(r),u=document.createElement("strong");u.className="select2-results__group",this.template(i,u);for(var h=[],c=0;c<i.children.length;c++){var d=i.children[c],p=this.option(d);h.push(p)}var f=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});f.append(h),l.append(u),l.append(f)}else this.template(i,r);return t.StoreData(r,"data",i),r},i.prototype.bind=function(i,r){var n=this,s=i.id+"-results";this.$results.attr("id",s),i.on("results:all",(function(e){n.clear(),n.append(e.data),i.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),i.on("results:append",(function(e){n.append(e.data),i.isOpen()&&n.setClasses()})),i.on("query",(function(e){n.hideMessages(),n.showLoading(e)})),i.on("select",(function(){i.isOpen()&&(n.setClasses(),n.options.get("scrollAfterSelect")&&n.highlightFirstItem())})),i.on("unselect",(function(){i.isOpen()&&(n.setClasses(),n.options.get("scrollAfterSelect")&&n.highlightFirstItem())})),i.on("open",(function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()})),i.on("close",(function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")})),i.on("results:toggle",(function(){var e=n.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),i.on("results:select",(function(){var e=n.getHighlightedResults();if(0!==e.length){var i=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?n.trigger("close",{}):n.trigger("select",{data:i})}})),i.on("results:previous",(function(){var e=n.getHighlightedResults(),t=n.$results.find(".select2-results__option--selectable"),i=t.index(e);if(!(i<=0)){var r=i-1;0===e.length&&(r=0);var s=t.eq(r);s.trigger("mouseenter");var a=n.$results.offset().top,o=s.offset().top,l=n.$results.scrollTop()+(o-a);0===r?n.$results.scrollTop(0):o-a<0&&n.$results.scrollTop(l)}})),i.on("results:next",(function(){var e=n.getHighlightedResults(),t=n.$results.find(".select2-results__option--selectable"),i=t.index(e)+1;if(!(i>=t.length)){var r=t.eq(i);r.trigger("mouseenter");var s=n.$results.offset().top+n.$results.outerHeight(!1),a=r.offset().top+r.outerHeight(!1),o=n.$results.scrollTop()+a-s;0===i?n.$results.scrollTop(0):a>s&&n.$results.scrollTop(o)}})),i.on("results:focus",(function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")})),i.on("results:message",(function(e){n.displayMessage(e)})),e.fn.mousewheel&&this.$results.on("mousewheel",(function(e){var t=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-t+e.deltaY,r=e.deltaY>0&&t-e.deltaY<=0,s=e.deltaY<0&&i<=n.$results.height();r?(n.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):s&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),e.preventDefault(),e.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(i){var r=e(this),s=t.GetData(this,"data");r.hasClass("select2-results__option--selected")?n.options.get("multiple")?n.trigger("unselect",{originalEvent:i,data:s}):n.trigger("close",{}):n.trigger("select",{originalEvent:i,data:s})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(i){var r=t.GetData(this,"data");n.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),n.trigger("results:focus",{data:r,element:e(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable").index(e),i=this.$results.offset().top,r=e.offset().top,n=this.$results.scrollTop()+(r-i),s=r-i;n-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(n)}},i.prototype.template=function(t,i){var r=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),s=r(t,i);null==s?i.style.display="none":"string"==typeof s?i.innerHTML=n(s):e(i).append(s)},i})),t.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),t.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,i){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var i=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),i.attr("title",this.$element.attr("title")),i.attr("tabindex",this._tabindex),i.attr("aria-disabled","false"),this.$selection=i,i},r.prototype.bind=function(e,t){var r=this,n=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){r.trigger("focus",e)})),this.$selection.on("blur",(function(e){r._handleBlur(e)})),this.$selection.on("keydown",(function(e){r.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){r.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){r.update(e.data)})),e.on("open",(function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",n),r._attachCloseHandler(e)})),e.on("close",(function(){r.$selection.attr("aria-expanded","fal
1se"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.trigger("focus"),r._detachCloseHandler(e)})),e.on("enable",(function(){r.$selection.attr("tabindex",r._tabindex),r.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){r.$selection.attr("tabindex","-1"),r.$selection.attr("aria-disabled","true")}))},r.prototype._handleBlur=function(t){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||e.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)}),1)},r.prototype._attachCloseHandler=function(i){e(document.body).on("mousedown.select2."+i.id,(function(i){var r=e(i.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=r[0]&&t.GetData(this,"element").select2("close")}))}))},r.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(e,t){t.find(".selection").append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r})),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,i,r){function n(){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.attr("aria-controls",r),this.$selection.on("mousedown",(function(e){1===e.which&&i.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||i.$selection.trigger("focus")}))},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},n.prototype.selectionContainer=function(){return e("<span></span>")},n.prototype.update=function(e){if(0!==e.length){var t=e[0],i=this.$selection.find(".select2-selection__rendered"),r=this.display(t,i);i.empty().append(r);var n=t.title||t.text;n?i.attr("title",n):i.removeAttr("title")}else this.clear()},n})),t.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,i){function r(e,t){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},r.prototype.bind=function(t,n){var s=this;r.__super__.bind.apply(this,arguments);var a=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",a),this.$selection.on("click",(function(e){s.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){if(!s.isDisabled()){var r=e(this).parent(),n=i.GetData(r[0],"data");s.trigger("unselect",{originalEvent:t,data:n})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){s.isDisabled()||e.stopPropagation()}))},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,t))},r.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],r=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",n=0;n<e.length;n++){var s=e[n],a=this.selectionContainer(),o=this.display(s,a),l=r+i.generateChars(4)+"-";s.id?l+=s.id:l+=i.generateChars(4),a.find(".select2-selection__choice__display").append(o).attr("id",l);var u=s.title||s.text;u&&a.attr("title",u);var h=this.options.get("translations").get("removeItem"),c=a.find(".select2-selection__choice__remove");c.attr("title",h()),c.attr("aria-label",h()),c.attr("aria-describedby",l),i.StoreData(a[0],"data",s),t.push(a)}this.$selection.find(".select2-selection__rendered").append(t)}},r})),t.define("select2/selection/placeholder",[],(function(){function e(e,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var i=this.selectionContainer();i.html(this.display(t)),i[0].classList.add("select2-selection__placeholder"),i[0].classList.remove("select2-selection__choice");var r=t.title||t.text||i.text();return this.$selection.find(".select2-selection__rendered").attr("title",r),i},e.prototype.update=function(e,t){var i=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||i)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},e}
vendor: 5,590 bytes, line 1
1)),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(e,t,i){function r(){}return r.prototype.bind=function(e,t,i){var r=this;e.call(this,t,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(e){r._handleClear(e)})),t.on("keypress",(function(e){r._handleKeyboardClear(e,t)}))},r.prototype._handleClear=function(e,t){if(!this.isDisabled()){var r=this.$selection.find(".select2-selection__clear");if(0!==r.length){t.stopPropagation();var n=i.GetData(r[0],"data"),s=this.$element.val();this.$element.val(this.placeholder.id);var a={data:n};if(this.trigger("clear",a),a.prevented)this.$element.val(s);else{for(var o=0;o<n.length;o++)if(a={data:n[o]},this.trigger("unselect",a),a.prevented)return void this.$element.val(s);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},r.prototype._handleKeyboardClear=function(e,i,r){r.isOpen()||i.which!=t.DELETE&&i.which!=t.BACKSPACE||this._handleClear(i)},r.prototype.update=function(t,r){if(t.call(this,r),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===r.length)){var n=this.$selection.find(".select2-selection__rendered").attr("id"),s=this.options.get("translations").get("removeAllItems"),a=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');a.attr("title",s()),a.attr("aria-label",s()),a.attr("aria-describedby",n),i.StoreData(a[0],"data",r),this.$selection.prepend(a),this.$selection[0].classList.add("select2-selection--clearable")}},r})),t.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,i){function r(e,t,i){e.call(this,t,i)}return r.prototype.render=function(t){var i=this.options.get("translations").get("search"),r=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=r,this.$search=r.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i());var n=t.call(this);return this._transferTabIndex(),n.append(this.$searchContainer),n},r.prototype.bind=function(e,r,n){var s=this,a=r.id+"-results",o=r.id+"-container";e.call(this,r,n),s.$search.attr("aria-describedby",o),r.on("open",(function(){s.$search.attr("aria-controls",a),s.$search.trigger("focus")})),r.on("close",(function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")})),r.on("enable",(function(){s.$search.prop("disabled",!1),s._transferTabIndex()})),r.on("disable",(function(){s.$search.prop("disabled",!0)})),r.on("focus",(function(e){s.$search.trigger("focus")})),r.on("results:focus",(function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){s.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){s._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){if(e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===i.BACKSPACE&&""===s.$search.val()){var r=s.$selection.find(".select2-selection__choice").last();if(r.length>0){var n=t.GetData(r[0],"data");s.searchRemoveChoice(n),e.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(e){s.$search.val()&&e.stopPropagation()}));var l=document.documentMode,u=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){u?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){if(u&&"input"===e.type)s.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&s.handleSearch(e)}}))},r.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(e,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),i&&this.$search.trigger("focus")},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},r})),t.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),r=this.options.get("selectionCssClass")||"";return-1!==r.indexOf(":all:")&&(r=r.replace(":all:",""),e.copyNonInternalCssClasse
1s(i[0],this.$element[0])),i.addClass(r),i},t})),t.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,i,r){var n=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,i,r),i.on("*",(function(t,i){if(-1!==s.indexOf(t)){i=i||{};var r=e.Event("select2:"+t,{params:i});n.$element.trigger(r),-1!==a.indexOf(t)&&(i.prevented=r.isDefaultPrevented())}}))},t})),t.define("select2/translation",["jquery","require"],(function(e,t){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var r=t(e);i._cache[e]=r}return new i(i._cache[e])},i})),t.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"
1V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),t.define("select2/data/base",["../utils"],(function(e){function t(e,i){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=e.generateChars(4),null!=i.id?r+="-"+i.id.toString():r+="-"+e.generateChars(4),r},t})),t.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,i){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,e),r.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(i(e))})))},r.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var r=[];(e=[e]).push.apply(e,i);for(var n=0;n<e.length;n++){var s=e[n].id;-1===r.indexOf(s)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")}));else{var i=e.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},r.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var r=[],n=0;n<i.length;n++){var s=i[n].id;s!==e.id&&-1===r.indexOf(s)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")}))}},r.prototype.bind=function(e,t){var i=this;this.container=e,e.on("select",(function(e){i.select(e.data)})),e.on("unselect",(function(e){i.unselect(e.data)}))},r.prototype.destroy=function(){this.$element.find("*").each((function(){t.RemoveData(this)}))},r.prototype.query=function(e,t){var r=[],n=this;this.$element.children().each((function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=i(this),s=n.item(t),a=n.matches(e,s);null!==a&&r.push(a)}})),t({results:r})},r.prototype.addOptions=function(e){this.$element.append(e)},r.prototype.option=function(e){var r;e.children?(r=document.createElement("optgroup")).label=e.text:void 0!==(r=document.createElement("option")).textContent?r.textContent=e.text:r.innerText=e.text,void 0!==e.id&&(r.value=e.id),e.disabled&&(r.disabled=!0),e.selected&&(r.selected=!0),e.title&&(r.title=e.title);var n=this._normalizeItem(e);return n.element=r,t.StoreData(r,"data",n),i(r)},r.prototype.item=function(e){var r={};if(null!=(r=t.GetData(e[0],"data")))return r;var n=e[0];if("option"===n.tagName.toLowerCase())r={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){r={text:e.prop("label"),children:[],title:e.prop("title")};for(var s=e.children("option"),a=[],o=0;o<s.length;o++){var l=i(s[o]),u=this.item(l);a.push(u)}r.children=a}return(r=this._normalizeItem(r)).element=e[0],t.StoreData(e[0],"data",r),r},r.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=i.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),i.extend({},t,e)},r.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},r})),t.define("select2/data/array",["./select","../utils","jquery"],(function(e,t,i){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(e){var t=this.$element.find("option").filter((function(t,i){return i.value==e.id.toString()}));0===t.length&&(t=this.option(e),this.addOptions(t)),r.__super__.select.call(this,e)},r.prototype.convertToOptions=function(e){var t=this,r=this.$element.find("option"),n=r.map((function(){return t.item(i(this)).id})).get(),s=[];function a(e){return function(){return i(this).val()==e.id}}for(var o=0;o<e.length;o++){var l=this._normalizeItem(e[o]);if(n.indexOf(l.id)>=0){var u=r.filter(a(l)),h=this.item(u),c=i.extend(!0,{},l,h),d=this.option(c);u.replaceWith(d)}else{var p=this.option(l);if(l.children){var f=this.convertToOptions(l.children);p.append(f)}s.push(p)}}return s},r})),t.define("select2/data/ajax",["./array","../utils","jquery"],(function(e,t,i){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){var t={data:function(e){return i.extend({},e,{q:e.term})},transport:function(e,t,r){var n=i.ajax(e);return n.then(t),n.fail(r),n}};return i.extend({},t,e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(e,t){var r=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var n=i.extend({type:"GET"},this.ajaxOptions);function s(){var i=n.transport(n,(function(i){var n=r.processResults(i,e);r.options.get("debug")&&window.console&&console.error&&(n&&n.results&&Array.isArray(n.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(n)}),(function(){(!("status"in i)||0!==i.status&&"0"!==i.status)&&r.trigger("results:message",{message:"errorLoading"})}));r._request=i}"function"==typeof n.url&&(n.url=n.url.call(this.$element,e)),"function"==typeof n.data&&(n.data=n.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(s,this.ajaxOptions.delay)):s()},r})),t.define("select2/data/tags",["jquery"],(function(e){function t(e,t,i){var r=i.get("tags"),n=i.get("createTag");void 0!==n&&(this.createTag=n);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),e.call(this,t,i),Array.isArray(r))for(var a=0;a<r.length;a++){var o=r[a],l=this._normalizeItem(o),u=this.option(l);this.$element.append(u)}}return t.prototype.query=function(e,t,i){var r=this;
1function n(e,s){for(var a=e.results,o=0;o<a.length;o++){var l=a[o],u=null!=l.children&&!n({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||u)return!s&&(e.data=a,void i(e))}if(s)return!0;var h=r.createTag(t);if(null!=h){var c=r.option(h);c.attr("data-select2-tag","true"),r.addOptions([c]),r.insertTag(a,h)}e.results=a,i(e)}this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,n):e.call(this,t,i)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var i=t.term.trim();return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,i){t.unshift(i)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each((function(){this.selected||e(this).remove()}))},t})),t.define("select2/data/tokenizer",["jquery"],(function(e){function t(e,t,i){var r=i.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,i)}return t.prototype.bind=function(e,t,i){e.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,r){var n=this;function s(t){var i=n._normalizeItem(t);if(!n.$element.find("option").filter((function(){return e(this).val()===i.id})).length){var r=n.option(i);r.attr("data-select2-tag",!0),n._removeOldTags(),n.addOptions([r])}a(i)}function a(e){n.trigger("select",{data:e})}i.term=i.term||"";var o=this.tokenizer(i,this.options,s);o.term!==i.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),i.term=o.term),t.call(this,i,r)},t.prototype.tokenizer=function(t,i,r,n){for(var s=r.get("tokenSeparators")||[],a=i.term,o=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};o<a.length;){var u=a[o];if(-1!==s.indexOf(u)){var h=a.substr(0,o),c=l(e.extend({},i,{term:h}));null!=c?(n(c),a=a.substr(o+1)||"",o=0):o++}else o++}return{term:a}},t})),t.define("select2/data/minimumInputLength",[],(function(){function e(e,t,i){this.minimumInputLength=i.get("minimumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e})),t.define("select2/data/maximumInputLength",[],(function(){function e(e,t,i){this.maximumInputLength=i.get("maximumInputLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,i)},e})),t.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.bind=function(e,t,i){var r=this;e.call(this,t,i),t.on("select",(function(){r._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,i){var r=this;this._checkIfMaximumSelected((function(){e.call(r,t,i)}))},e.prototype._checkIfMaximumSelected=function(e,t){var i=this;this.current((function(e){var r=null!=e?e.length:0;i.maximumSelectionLength>0&&r>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):t&&t()}))},e})),t.define("select2/dropdown",["jquery","./utils"],(function(e,t){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(e,t){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),t.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),r=this.options.get("translations").get("search"),n=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",r()),i.prepend(n),i},t.prototype.bind=function(t,i,r){var n=this,s=i.id+"-results";t.call(this,i,r),this.$search.on("keydown",(function(e){n.trigger("keypress",e),n._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){n.handleSearch(e)})),i.on("open",(function(){n.$search.attr("tabindex",0),n.$search.attr("aria-controls",s),n.$search.trigger("focus"),window.setTimeout((function(){n.$search.trigger("focus")}),0)})),i.on("close",(function(){n.$search.attr("tabindex",-1),n.$search.removeAttr("aria-controls"),n.$search.removeAttr("aria-activedescendant"),n.$search.val(""),n.$search.trigger("blur")})),i.on("focus",(function(){i.isOpen()||n.$search.trigger("focus")})),i.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(n.showSearch(e)?
1n.$searchContainer[0].classList.remove("select2-search--hide"):n.$searchContainer[0].classList.add("select2-search--hide"))})),i.on("results:focus",(function(e){e.data._resultId?n.$search.attr("aria-activedescendant",e.data._resultId):n.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),t.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),r=t.length-1;r>=0;r--){var n=t[r];this.placeholder.id===n.id&&i.splice(r,1)}return i},e})),t.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,i,r){this.lastParams={},e.call(this,t,i,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,i){var r=this;e.call(this,t,i),t.on("query",(function(e){r.lastParams=e,r.loading=!0})),t.on("query:append",(function(e){r.lastParams=e,r.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t})),t.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function i(t,i,r){this.$dropdownParent=e(r.get("dropdownParent")||document.body),t.call(this,i,r)}return i.prototype.bind=function(e,t,i){var r=this;e.call(this,t,i),t.on("open",(function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)})),t.on("close",(function(){r._hideDropdown(),r._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},i.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(t){var i=e("<span></span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var i=this;t.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("results:message",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("select",(function(){i._positionDropdown(),i._resizeDropdown()})),t.on("unselect",(function(){i._positionDropdown(),i._resizeDropdown()})),this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(i,r){var n=this,s="scroll.select2."+r.id,a="resize.select2."+r.id,o="orientationchange.select2."+r.id,l=this.$container.parents().filter(t.hasScroll);l.each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),l.on(s,(function(i){var r=t.GetData(this,"select2-scroll-position");e(this).scrollTop(r.y)})),e(window).on(s+" "+a+" "+o,(function(e){n._positionDropdown(),n._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,r){var n="scroll.
1select2."+r.id,s="resize.select2."+r.id,a="orientationchange.select2."+r.id;this.$container.parents().filter(t.hasScroll).off(n),e(window).off(n+" "+s+" "+a)},i.prototype._positionDropdown=function(){var t=e(window),i=this.$dropdown[0].classList.contains("select2-dropdown--above"),r=this.$dropdown[0].classList.contains("select2-dropdown--below"),n=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=s.top,a.bottom=s.top+a.height;var o={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},u=l.top<s.top-o.height,h=l.bottom>s.bottom+o.height,c={left:s.left,top:a.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var p={top:0,left:0};(e.contains(document.body,d[0])||d[0].isConnected)&&(p=d.offset()),c.top-=p.top,c.left-=p.left,i||r||(n="below"),h||!u||i?!u&&h&&i&&(n="below"):n="above",("above"==n||i&&"below"!==n)&&(c.top=a.top-p.top-o.height),null!=n&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+n),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+n)),this.$dropdownContainer.css(c)},i.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),t.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(t){for(var i=0,r=0;r<t.length;r++){var n=t[r];n.children?i+=e(n.children):i++}return i}function t(e,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return!(e(i.data.results)<this.minimumResultsForSearch)&&t.call(this,i)},t})),t.define("select2/dropdown/selectOnClose",["../utils"],(function(e){function t(){}return t.prototype.bind=function(e,t,i){var r=this;e.call(this,t,i),t.on("close",(function(e){r._handleSelectOnClose(e)}))},t.prototype._handleSelectOnClose=function(t,i){if(i&&null!=i.originalSelect2Event){var r=i.originalSelect2Event;if("select"===r._type||"unselect"===r._type)return}var n=this.getHighlightedResults();if(!(n.length<1)){var s=e.GetData(n[0],"data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},t})),t.define("select2/dropdown/closeOnSelect",[],(function(){function e(){}return e.prototype.bind=function(e,t,i){var r=this;e.call(this,t,i),t.on("select",(function(e){r._selectTriggered(e)})),t.on("unselect",(function(e){r._selectTriggered(e)}))},e.prototype._selectTriggered=function(e,t){var i=t.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},e})),t.define("select2/dropdown/dropdownCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),r=this.options.get("dropdownCssClass")||"";return-1!==r.indexOf(":all:")&&(r=r.replace(":all:",""),e.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(r),i},t})),t.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var i=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(i.length>0){var r=i.first(),n=e.GetData(r[0],"data").element;if(n&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void r.trigger("mouseenter")}t.call(this)},t})),t.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),t.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(e,t,i,r,n,s,a,o,l,u,h,c,d,p,f,g,m,b,v,y,_,w,x,D,k,T,P,S,C,O,A){function E(){this.reset()}return E.prototype.apply=function(h){if(null==(h=e.extend(!0,{},this.defaults,h)).dataAdapter&&(null!=h.ajax?h.dataAdapter=f:null!=h.data?h.dataAdapter=p:h.dataAdapter=d,h.minimumInputLength>0&&(h.dataAdapter=u.Decorate(h.dataAdapter,b)),h.maximumInputLength>0&&(h.dataAdapter=u.Decorate(h.dataAdapter,v)),h.maximumSelectionLength>0&&(h.dataAdapter=u.Decorate(h.dataAdapter,y)),h.tags&&(h.dataAdapter=u.Decorate(h.dataAdapter,g)),null==h.tokenSeparators&&null==h.tokenizer||(h.dataAdapter=u.Decorate(h.dataAdapter,m))),null==h.resultsAdapter&&(h.resultsAdapter=t,null!=h.ajax&&(h.resultsAdapter=u.Decorate(h.resultsAdapter,D)),null!=h.placeholder&&(h.resultsAdapter=u.Decorate(h.resultsAdapter,x)),h.selectOnClose&&(h.resultsAdapter=u.Decorate(h.resultsAdapter,P)),h.tags&&(h.resultsAdapter=u.Decorate(h.resultsAdapter,O))),null==h.dropdownAdapter){if(h.multiple)h.dropdownAdapter=_;else{var c=u.Decorate(_,w);h.dropdownAdapter=c}0!==h.minimumResultsForSearch&&(h.dropdownAdapter=u.Decorate(h.dropdownAdapter,T)),h.closeOnSelect&&(h.dropdownAdapter=u.Decorate(h.dropdownAdapter,S)),null!=h.dropdownCssClass&&(h.dropdownAdapter=u.Decorate(h.dropdownAdapter,C)),h.dropdownAdapter=u.Decorate(h.dropdownAdapter,k)}null==h.selectionAdapter&&(h.multiple?h.selectionAdapter=r:h.selectionAdapter=i,null!=h.placeholder&&(h.selectionAdapter=u.Decorate(h.selectionAdapter,n)),h.allowClear&&(h.selectionAdapter=u.Decorate(h.selectionAdapter,s
vendor: 7,714 bytes, line 1
1)),h.multiple&&(h.selectionAdapter=u.Decorate(h.selectionAdapter,a)),null!=h.selectionCssClass&&(h.selectionAdapter=u.Decorate(h.selectionAdapter,o)),h.selectionAdapter=u.Decorate(h.selectionAdapter,l)),h.language=this._resolveLanguage(h.language),h.language.push("en");for(var A=[],E=0;E<h.language.length;E++){var j=h.language[E];-1===A.indexOf(j)&&A.push(j)}return h.language=A,h.translations=this._processTranslations(h.language,h.debug),h},E.prototype.reset=function(){function t(e){function t(e){return c[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function i(r,n){if(null==r.term||""===r.term.trim())return n;if(n.children&&n.children.length>0){for(var s=e.extend(!0,{},n),a=n.children.length-1;a>=0;a--)null==i(r,n.children[a])&&s.children.splice(a,1);return s.children.length>0?s:i(r,s)}var o=t(n.text).toUpperCase(),l=t(r.term).toUpperCase();return o.indexOf(l)>-1?n:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:{},matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},E.prototype.applyFromElement=function(e,t){var i=e.language,r=this.defaults.language,n=t.prop("lang"),s=t.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(r),this._resolveLanguage(s));return e.language=a,e},E.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var i;i=Array.isArray(t)?t:[t];for(var r=[],n=0;n<i.length;n++)if(r.push(i[n]),"string"==typeof i[n]&&i[n].indexOf("-")>0){var s=i[n].split("-")[0];r.push(s)}return r},E.prototype._processTranslations=function(t,i){for(var r=new h,n=0;n<t.length;n++){var s=new h,a=t[n];if("string"==typeof a)try{s=h.loadPath(a)}catch(e){try{a=this.defaults.amdLanguageBase+a,s=h.loadPath(a)}catch(e){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else s=e.isPlainObject(a)?new h(a):a;r.extend(s)}return r},E.prototype.set=function(t,i){var r={};r[e.camelCase(t)]=i;var n=u._convertData(r);e.extend(!0,this.defaults,n)},new E})),t.define("select2/options",["jquery","./defaults","./utils"],(function(e,t,i){function r(e,i){this.options=e,null!=i&&this.fromElement(i),null!=i&&(this.options=t.applyFromElement(this.options,i)),this.options=t.apply(this.options)}return r.prototype.fromElement=function(t){var r=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),i.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(t[0],"data",i.GetData(t[0],"select2Tags")),i.StoreData(t[0],"tags",!0)),i.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",i.GetData(t[0],"ajaxUrl")),i.StoreData(t[0],"ajax-Url",i.GetData(t[0],"ajaxUrl")));var n={};function s(e,t){return t.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var o=t[0].attributes[a].name,l="data-";if(o.substr(0,l.length)==l){var u=o.substring(l.length),h=i.GetData(t[0],u);n[u.replace(/-([a-z])/g,s)]=h}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(n=e.extend(!0,{},t[0].dataset,n));var c=e.extend(!0,{},i.GetData(t[0]),n);for(var d in c=i._convertData(c))r.indexOf(d)>-1||(e.isPlainObject(this.options[d])?e.extend(this.options[d],c[d]):this.options[d]=c[d]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r})),t.define("select2/core",["jquery","./options","./utils","./keys"],(function(e,t,i,r){var n=function(e,r){null!=i.GetData(e[0],"select2")&&i.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),r=r||{},this.options=new t(r,e),n.__super__.constructor.call(this);var s=e.attr("tabindex")||0;i.StoreData(e[0],"old-tabindex",s),e.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(e,this.options);var o=this.render();this._placeContainer(o);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var u=this.options.get("dropdownAdapter");this.dropdown=new u(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var h=this.options.get("resultsAdapter");this.results=new h(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(e){c.trigger("selection:update",{data:e})})),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),i.StoreData(e[0],"select2",this),e.data("select2",this)};return i.Extend(n,i.Observable),n.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},n.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},n.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var n=e.outerWidth(!1);return n<=0?"auto":n+"px"}if("style"==t){var s=e.attr("style");if("string"!=typeof s)return null;for(var a=s.split(";"),o=0,l=a.length;o<l;o+=1){var u=a[o].replace(/\s/g,"").match(i);if(null!==u&&u.length>=1)return u[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},n.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},n.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(t){e._syncA(),e._syncS(t)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},n.prototype._registerDataEvents=function(){var e=this;
1this.dataAdapter.on("*",(function(t,i){e.trigger(t,i)}))},n.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(i,r){-1===t.indexOf(i)&&e.trigger(i,r)}))},n.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",(function(t,i){e.trigger(t,i)}))},n.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",(function(t,i){e.trigger(t,i)}))},n.prototype._registerEvents=function(){var e=this;this.on("open",(function(){e.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){e.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){e.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){e.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){e.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,(function(i){e.trigger("results:all",{data:i,query:t})}))})),this.on("query:append",(function(t){this.dataAdapter.query(t,(function(i){e.trigger("results:append",{data:i,query:t})}))})),this.on("keypress",(function(t){var i=t.which;e.isOpen()?i===r.ESC||i===r.UP&&t.altKey?(e.close(t),t.preventDefault()):i===r.ENTER||i===r.TAB?(e.trigger("results:select",{}),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):i===r.UP?(e.trigger("results:previous",{}),t.preventDefault()):i===r.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&t.altKey)&&(e.open(),t.preventDefault())}))},n.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},n.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0){for(var i=0;i<e.addedNodes.length;i++)if(e.addedNodes[i].selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;if(Array.isArray(e))return e.some((function(e){return t._isChangeMutation(e)}))}return!1},n.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),i=this;t&&this.dataAdapter.current((function(e){i.trigger("selection:update",{data:e})}))},n.prototype.trigger=function(e,t){var i=n.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var s=r[e],a={prevented:!1,name:e,args:t};if(i.call(this,s,a),a.prevented)return void(t.prevented=!0)}i.call(this,e,t)},n.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},n.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},n.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},n.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},n.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},n.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},n.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current((function(t){e=t})),e},n.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map((function(e){return e.toString()}))),this.$element.val(t).trigger("input").trigger("change")},n.prototype.destroy=function(){i.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",i.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),i.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},n.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),i.StoreData(t[0],"element",this.$element),t},n})),t.define("jquery-mousewheel",["jquery"],(function(e){return e})),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,i,r,n){if(null==e.fn.select2){var s=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var r=e.extend(!0,{},t);new i(e(this),r)})),this;if("string"==typeof t){var r,a=Array.prototype.slice.call(arguments,1
1);return this.each((function(){var e=n.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=e[t].apply(e,a)})),s.indexOf(t)>-1?this:r}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=r),i})),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return e.fn.select2.amd=t,i},void 0===(s="function"==typeof r?r.apply(t,n):r)||(e.exports=s)},604:function(e,t,i){var r;!function(){"use strict";var n={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function s(e){return function(e,t){var i,r,a,o,l,u,h,c,d,p=1,f=e.length,g="";for(r=0;r<f;r++)if("string"==typeof e[r])g+=e[r];else if("object"==typeof e[r]){if((o=e[r]).keys)for(i=t[p],a=0;a<o.keys.length;a++){if(null==i)throw new Error(s('[sprintf] Cannot access property "%s" of undefined value "%s"',o.keys[a],o.keys[a-1]));i=i[o.keys[a]]}else i=o.param_no?t[o.param_no]:t[p++];if(n.not_type.test(o.type)&&n.not_primitive.test(o.type)&&i instanceof Function&&(i=i()),n.numeric_arg.test(o.type)&&"number"!=typeof i&&isNaN(i))throw new TypeError(s("[sprintf] expecting number but found %T",i));switch(n.number.test(o.type)&&(c=i>=0),o.type){case"b":i=parseInt(i,10).toString(2);break;case"c":i=String.fromCharCode(parseInt(i,10));break;case"d":case"i":i=parseInt(i,10);break;case"j":i=JSON.stringify(i,null,o.width?parseInt(o.width):0);break;case"e":i=o.precision?parseFloat(i).toExponential(o.precision):parseFloat(i).toExponential();break;case"f":i=o.precision?parseFloat(i).toFixed(o.precision):parseFloat(i);break;case"g":i=o.precision?String(Number(i.toPrecision(o.precision))):parseFloat(i);break;case"o":i=(parseInt(i,10)>>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}n.json.test(o.type)?g+=i:(!n.number.test(o.type)||c&&!o.sign?d="":(d=c?"+":"-",i=i.toString().replace(n.sign,"")),u=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",h=o.width-(d+i).length,l=o.width&&h>0?u.repeat(h):"",g+=o.align?d+i+l:"0"===u?d+l+i:l+d+i)}return g}(function(e){if(o[e])return o[e];var t,i=e,r=[],s=0;for(;i;){if(null!==(t=n.text.exec(i)))r.push(t[0]);else if(null!==(t=n.modulo.exec(i)))r.push("%");else{if(null===(t=n.placeholder.exec(i)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){s|=1;var a=[],l=t[2],u=[];if(null===(u=n.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=n.key_access.exec(l)))a.push(u[1]);else{if(null===(u=n.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else s|=2;if(3===s)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}i=i.substring(t[0].length)}return o[e]=r}(e),arguments)}function a(e,t){return s.apply(null,[e].concat(t||[]))}var o=Object.create(null);"undefined"!=typeof window&&(window.sprintf=s,window.vsprintf=a,void 0===(r=function(){return{sprintf:s,vsprintf:a}}.call(t,i,t,e))||(e.exports=r))}()},668:function(e,t,i){"use strict";var r,n,s,a,o=i(692),l=function(e,t){if(l.factory(e,t))return l;if(this instanceof l)return o(e).DataTable(t);var i=this,r=void 0===(t=e),s=this.length;return r&&(t={}),this.api=function(){return new n(this)},this.each((function(){var e,a=s>1?et({},t,!0):t,u=0,h=this.getAttribute("id"),c=l.defaults,d=o(this);if("table"==this.nodeName.toLowerCase()){a.on&&a.on.options&&ut(d,"options",a.on.options),d.trigger("options.dt",a),M(c),R(c.column),j(c,c,!0),j(c.column,c.column,!0),j(c,o.extend(a,d.data()),!0);var p=l.settings;for(u=0,e=p.length;u<e;u++){var f=p[u];if(f.nTable==this||f.nTHead&&f.nTHead.parentNode==this||f.nTFoot&&f.nTFoot.parentNode==this){var g=void 0!==a.bRetrieve?a.bRetrieve:c.bRetrieve,m=void 0!==a.bDestroy?a.bDestroy:c.bDestroy;if(r||g)return f.oInstance;if(m){new l.Api(f).destroy();break}return void Je(f,0,"Cannot reinitialise DataTable",3)}if(f.sTableId==this.id){p.splice(u,1);break}}null!==h&&""!==h||(h="DataTables_Table_"+l.ext._unique++,this.id=h
vendor: 1,743 bytes, line 1
1);var b=o.extend(!0,{},l.models.oSettings,{sDestroyWidth:d[0].style.width,sInstance:h,sTableId:h,colgroup:o("<colgroup>").prependTo(this),fastData:function(e,t,i){return K(b,e,t,i)}});b.nTable=this,b.oInit=a,p.push(b),b.api=new n(b),b.oInstance=1===i.length?i:d.dataTable(),M(a),a.aLengthMenu&&!a.iDisplayLength&&(a.iDisplayLength=Array.isArray(a.aLengthMenu[0])?a.aLengthMenu[0][0]:o.isPlainObject(a.aLengthMenu[0])?a.aLengthMenu[0].value:a.aLengthMenu[0]),a=et(o.extend(!0,{},c),a),Qe(b.oFeatures,a,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),Qe(b,a,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","orderIndicators","orderHandler","titleRow","typeDetect",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),Qe(b.oScroll,a,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),Qe(b.oLanguage,a,"fnInfoCallback"),it(b,"aoDrawCallback",a.fnDrawCallback),it(b,"aoStateSaveParams",a.fnStateSaveParams),it(b,"aoStateLoadParams",a.fnStateLoadParams),it(b,"aoStateLoaded",a.fnStateLoaded),it(b,"aoRowCallback",a.fnRowCallback),it(b,"aoRowCreatedCallback",a.fnCreatedRow),it(b,"aoHeaderCallback",a.fnHeaderCallback),it(b,"aoFooterCallback",a.fnFooterCallback),it(b,"aoInitComplete",a.fnInitComplete),it(b,"aoPreDrawCallback",a.fnPreDrawCallback),b.rowIdFn=ie(a.rowId),a.on&&Object.keys(a.on).forEac
1h((function(e){ut(d,e,a.on[e])})),function(e){if(!l.__browser){var t={};l.__browser=t;var i=o("<div/>").css({position:"fixed",top:0,left:-1*window.pageXOffset,height:1,width:1,overflow:"hidden"}).append(o("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(o("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=i.children(),n=r.children();t.barWidth=r[0].offsetWidth-r[0].clientWidth,t.bScrollbarLeft=1!==Math.round(n.offset().left),i.remove()}o.extend(e.oBrowser,l.__browser),e.oScroll.iBarWidth=l.__browser.barWidth}(b);var v=b.oClasses;o.extend(v,l.ext.classes,a.oClasses),d.addClass(v.table),b.oFeatures.bPaginate||(a.iDisplayStart=0),void 0===b.iInitDisplayStart&&(b.iInitDisplayStart=a.iDisplayStart,b._iDisplayStart=a.iDisplayStart);var y=a.iDeferLoading;if(null!==y){b.deferLoading=!0;var _=Array.isArray(y);b._iRecordsDisplay=_?y[0]:y,b._iRecordsTotal=_?y[1]:y}var w=[],x=this.getElementsByTagName("thead"),D=we(b,x[0]);if(a.aoColumns)w=a.aoColumns;else if(D.length)for(u=0,e=D[0].length;u<e;u++)w.push(null);for(u=0,e=w.length;u<e;u++)I(b);!function(e,t,i,r,n){var s,a,l,u,h,c,d,p=e.aoColumns;if(i)for(s=0,a=i.length;s<a;s++)i[s]&&i[s].name&&(p[s].sName=i[s].name);if(t)for(s=t.length-1;s>=0;s--){var f=void 0!==(d=t[s]).target?d.target:void 0!==d.targets?d.targets:d.aTargets;for(Array.isArray(f)||(f=[f]),l=0,u=f.length;l<u;l++){var g=f[l];if("number"==typeof g&&g>=0){for(;p.length<=g;)I(e);n(g,d)}else if("number"==typeof g&&g<0)n(p.length+g,d);else if("string"==typeof g)for(h=0,c=p.length;h<c;h++)"_all"===g?n(h,d):-1!==g.indexOf(":name")?p[h].sName===g.replace(":name","")&&n(h,d):r.forEach((function(e){if(e[h]){var t=o(e[h].cell);g.match(/^[a-z][\w-]*$/i)&&(g="."+g),t.is(g)&&n(h,d)}}))}}if(i)for(s=0,a=i.length;s<a;s++)n(s,i[s])}(b,a.aoColumnDefs,w,D,(function(e,t){B(b,e,t)}));var k=d.children("tbody").find("tr:first-child").eq(0);if(k.length){var T=function(e,t){return null!==e.getAttribute("data-"+t)?t:null};o(k[0]).children("th, td").each((function(e,t){var i=b.aoColumns[e];if(i||Je(b,0,"Incorrect column count",18),i.mData===e){var r=T(t,"sort")||T(t,"order"),n=T(t,"filter")||T(t,"search");null===r&&null===n||(i.mData={_:e+".display",sort:null!==r?e+".@data-"+r:void 0,type:null!==r?e+".@data-"+r:void 0,filter:null!==n?e+".@data-"+n:void 0},i._isArrayHost=!0,B(b,e))}}))}it(b,"aoDrawCallback",Ze);var P=b.oFeatures;if(a.bStateSave&&(P.bStateSave=!0),void 0===a.aaSorting){var S=b.aaSorting;for(u=0,e=S.length;u<e;u++)S[u][1]=b.aoColumns[u].asSorting[0]}Ye(b),it(b,"aoDrawCallback",(function(){(b.bSorted||"ssp"===at(b)||P.bDeferRender)&&Ye(b)}));var C=d.children("caption");b.caption&&(0===C.length&&(C=o("<caption/>").appendTo(d)),C.html(b.caption)),C.length&&(C[0]._captionSide=C.css("caption-side"),b.captionNode=C[0]),0===x.length&&(x=o("<thead/>").appendTo(d)),b.nTHead=x[0];var O=d.children("tbody");0===O.length&&(O=o("<tbody/>").insertAfter(x)),b.nTBody=O[0];var A=d.children("tfoot");0===A.length&&(A=o("<tfoot/>").appendTo(d)),b.nTFoot=A[0],b.aiDisplay=b.aiDisplayMaster.slice(),b.bInitialised=!0;var E=b.oLanguage;o.extend(!0,E,a.oLanguage),E.sUrl?o.ajax({dataType:"json",url:E.sUrl,success:function(e){j(c.oLanguage,e),o.extend(!0,E,e,b.oInit.oLanguage),rt(b,null,"i18n",[b],!0),Ae(b)},error:function(){Je(b,0,"i18n file loading error",21),Ae(b)}}):(rt(b,null,"i18n",[b],!0),Ae(b))}else Je(null,0,"Non-table node initialisation ("+this.nodeName+")",2)})),i=null,this};l.ext=r={builder:"-source-",buttons:{},ccContent:{},classes:{},errMode:"alert",feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:l.fnVersionCheck,iApiIndex:0,sVersion:l.version},o.extend(r,{afnFiltering:r.search,aTypes:r.type.detect,ofnSearch:r.type.search,oSort:r.type.order,afnSortData:r.order,aoFeatures:r.feature,oStdClasses:r.classes,oPagination:r.pager}),o.extend(l.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}});var u={},h=/[\r\n\u2028]/g,c=/<([^>
vendor: 5,712 bytes, line 1
1]*>)/g,d=Math.pow(2,28),p=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,f=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),g=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,m=function(e){return!e||!0===e||"-"===e},b=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},v=function(e,t){return u[t]||(u[t]=new RegExp(Se(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace(u[t],"."):e},y=function(e,t,i,r){var n=typeof e,s="string"===n;return"number"===n||"bigint"===n||(!(!r||!m(e))||(t&&s&&(e=v(e,t)),i&&s&&(e=e.replace(g,"")),!isNaN(parseFloat(e))&&isFinite(e)))},_=function(e,t,i,r){if(r&&m(e))return!0;if("string"==typeof e&&e.match(/<(input|select)/i))return null;var n=function(e){return m(e)||"string"==typeof e}(e);return n&&!!y(T(e),t,i,r)||null},w=function(e,t,i){var r=[],n=0,s=e.length;if(void 0!==i)for(;n<s;n++)e[n]&&e[n][t]&&r.push(e[n][t][i]);else for(;n<s;n++)e[n]&&r.push(e[n][t]);return r},x=function(e,t,i,r){var n=[],s=0,a=t.length;if(void 0!==r)for(;s<a;s++)e[t[s]]&&e[t[s]][i]&&n.push(e[t[s]][i][r]);else for(;s<a;s++)e[t[s]]&&n.push(e[t[s]][i]);return n},D=function(e,t){var i,r=[];void 0===t?(t=0,i=e):(i=t,t=e);for(var n=t;n<i;n++)r.push(n);return r},k=function(e){for(var t=[],i=0,r=e.length;i<r;i++)e[i]&&t.push(e[i]);return t},T=function(e){if(!e||"string"!=typeof e)return e;if(e.length>d)throw new Error("Exceeded max str len");var t;e=e.replace(c,"");do{t=e,e=e.replace(/<script/i,"")}while(e!==t);return t},P=function(e){return Array.isArray(e)&&(e=e.join(",")),"string"==typeof e?e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e},S=function(e,t){if("string"!=typeof e)return e;var i=e.normalize?e.normalize("NFD"):e;return i.length!==e.length?(!0===t?e+" ":"")+i.replace(/[\u0300-\u036f]/g,""):i},C=function(e){if(Array.from&&Set)return Array.from(new Set(e));if(function(e){if(e.length<2)return!0;for(var t=e.slice().sort(),i=t[0],r=1,n=t.length;r<n;r++){if(t[r]===i)return!1;i=t[r]}return!0}(e))return e.slice();var t,i,r,n=[],s=e.length,a=0;e:for(i=0;i<s;i++){for(t=e[i],r=0;r<a;r++)if(n[r]===t)continue e;n.push(t),a++}return n},O=function(e,t){if(Array.isArray(t))for(var i=0;i<t.length;i++)O(e,t[i]);else e.push(t);return e};function A(e,t){t&&t.split(" ").forEach((function(t){t&&e.classList.add(t)}))}function E(e){var t,i,r={};o.each(e,(function(n){(t=n.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(t[1]+" ")&&(i=n.replace(t[0],t[2].toLowerCase()),r[i]=n,"o"===t[1]&&E(e[n]))})),e._hungarianMap=r}function j(e,t,i){var r;e._hungarianMap||E(e),o.each(t,(function(n){void 0===(r=e._hungarianMap[n])||!i&&void 0!==t[r]||("o"===r.charAt(0)?(t[r]||(t[r]={}),o.extend(!0,t[r],t[n]),j(e[r],t[r],i)):t[r]=t[n])}))}l.util={diacritics:function(e,t){if("function"!==typeof e)return S(e,t);S=e},debounce:function(e,t){var i;return function(){var r=this,n=arguments;clearTimeout(i),i=setTimeout((function(){e.apply(r,n)}),t||250)}},throttle:function(e,t){var i,r,n=void 0!==t?t:200;return function(){var t=this,s=+new Date,a=arguments;i&&s<i+n?(clearTimeout(r),r=setTimeout((function(){i=void 0,e.apply(t,a)}),n)):(i=s,e.apply(t,a))}},escapeRegex:function(e){return e.replace(f,"\\$1")},set:function(e){if(o.isPlainObject(e))return l.util.set(e._);if(null===e)return function(){};if("function"==typeof e)return function(t,i,r){e(t,"set",i,r)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t,i){t[e]=i};var t=function(e,i,r){for(var n,s,a,o,l,u=te(r),h=u[u.length-1],c=0,d=u.length-1;c<d;c++){if("__proto__"===u[c]||"constructor"===u[c])throw new Error("Cannot set prototype values");if(s=u[c].match(Q),a=u[c].match(ee),s){if(u[c]=u[c].replace(Q,""),e[u[c]]=[],(n=u.slice()).splice(0,c+1),l=n.join("."),Array.isArray(i))for(var p=0,f=i.length;p<f;p++)t(o={},i[p],l),e[u[c]].push(o);else e[u[c]]=i;return}a&&(u[c]=u[c].replace(ee,""),e=e[u[c]](i)),null!==e[u[c]]&&void 0!==e[u[c]]||(e[u[c]]={}),e=e[u[c]]}h.match(ee)?e=e[h.replace(ee,"")](i):e[h.replace(Q,"")]=i};return function(i,r){return t(i,r,e)}},get:function(e){if(o.isPlainObject(e)){var t={};return o.each(e,(function(e,i){i&&(t[e]=l.util.get(i))})),function(e,i,r,n){var s=t[i]||t._;return void 0!==s?s(e,i,r,n):e}}if(null===e)return function(e){return e};if("function"==typeof e)return function(t,i,r,n){return e(t,i,r,n)};if("string"!=typeof e||-1===e.indexOf(".")&&-1===e.indexOf("[")&&-1===e.indexOf("("))return function(t){return t[e]};var i=function(e,t,r){var n,s,a,o;if(""!==r)for(var l=te(r),u=0,h=l.length;u<h;u++){if(n=l[u].match(Q),s=l[u].match(ee),n){if(l[u]=l[u].replace(Q,""),""!==l[u]&&(e=e[l[u]]),a=[],l.splice(0,u+1),o=l.join("."),Array.isArray(e))for(var c=0,d=e.length;c<d;c++)a.push(i(e[c],t,o));var p=n[0].substring(1,n[0].length-1);e=""===p?a:a.join(p);break}if(s)l[u]=l[u].replace(ee,""),e=e[l[u]]();else{if(null===e||null===e[l[u]])return null;if(void 0===e||void 0===e[l[u]])return;e=e[l[u]]}}return e};return function(t,r){return i(t,r,e)}},stripHtml:function(e){var t=typeof e;if("function"!==t)return"string"===t?T(e):e;T=e},escapeHtml:function(e){var t=typeof e;if("function"!==t)return"string"===t||Array.isArray(e)?P(e):e;P=e},unique:C};var L=function(e,t,i){void 0!==e[t]&&(e[i]=e[t])};function M(e){L(e,"ordering","bSort"),L(e,"orderMulti","bSortMulti"),L(e,"orderClasses","bSortClasses"),L(e,"orderCellsTop","bSortCellsTop"),L(e,"order","aaSorting"),L(e,"orderFixed","aaSortingFixed"),L(e,"paging","bPaginate"),L(e,"pagingType","sPaginationType"),L(e,"pageLength","iDisplayLength"),L(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&
1(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":""),"object"==typeof e.bSort?(e.orderIndicators=void 0===e.bSort.indicators||e.bSort.indicators,e.orderHandler=void 0===e.bSort.handler||e.bSort.handler,e.bSort=!0):!1===e.bSort&&(e.orderIndicators=!1,e.orderHandler=!1),"boolean"==typeof e.bSortCellsTop&&(e.titleRow=e.bSortCellsTop);var t=e.aoSearchCols;if(t)for(var i=0,r=t.length;i<r;i++)t[i]&&j(l.models.oSearch,t[i]);e.serverSide&&!e.searchDelay&&(e.searchDelay=400)}function R(e){L(e,"orderable","bSortable"),L(e,"orderData","aDataSort"),L(e,"orderSequence","asSorting"),L(e,"orderDataType","sortDataType");var t=e.aDataSort;"number"!=typeof t||Array.isArray(t)||(e.aDataSort=[t])}function I(e){var t=l.defaults.column,i=e.aoColumns.length,r=o.extend({},l.models.oColumn,t,{aDataSort:t.aDataSort?t.aDataSort:[i],mData:t.mData?t.mData:i,idx:i,searchFixed:{},colEl:o("<col>").attr("data-dt-column",i)});e.aoColumns.push(r);var n=e.aoPreSearchCols;n[i]=o.extend({},l.models.oSearch,n[i])}function B(e,t,i){var r=e.aoColumns[t];if(null!=i){R(i),j(l.defaults.column,i,!0),void 0===i.mDataProp||i.mData||(i.mData=i.mDataProp),i.sType&&(r._sManualType=i.sType),i.className&&!i.sClass&&(i.sClass=i.className);var n=r.sClass;o.extend(r,i),Qe(r,i,"sWidth","sWidthOrig"),n!==r.sClass&&(r.sClass=n+" "+r.sClass),void 0!==i.iDataSort&&(r.aDataSort=[i.iDataSort]),Qe(r,i,"aDataSort")}var s=r.mData,a=ie(s);if(r.mRender&&Array.isArray(r.mRender)){var u=r.mRender.slice(),h=u.shift();r.mRender=l.render[h].apply(window,u)}r._render=r.mRender?ie(r.mRender):null;var c=function(e){return"string"==typeof e&&-1!==e.indexOf("@")};r._bAttrSrc=o.isPlainObject(s)&&(c(s.sort)||c(s.type)||c(s.filter)),r._setter=null,r.fnGetData=function(e,t,i){var n=a(e,t,void 0,i);return r._render&&t?r._render(n,t,e,i):n},r.fnSetData=function(e,t,i){return re(s)(e,t,i)},"number"==typeof s||r._isArrayHost||(e._rowReadObject=!0),e.oFeatures.bSort||(r.bSortable=!1)}function N(e){!function(e){if(!e.oFeatures.bAutoWidth)return;var t,i,n,s=e.nTable,a=e.aoColumns,u=e.oScroll,h=u.sY,c=u.sX,d=u.sXInner,p=U(e,"bVisible"),f=s.getAttribute("width"),g=s.parentNode,m=s.style.width,b=Ne(e);if(b===e.containerWidth)return!1;e.containerWidth=b,m||f||(s.style.width="100%",m="100%");m&&-1!==m.indexOf("%")&&(f=m);rt(e,null,"column-calc",{visible:p},!1);var v=o(s.cloneNode()).css("visibility","hidden").removeAttr("id");v.append("<tbody>");var y=o("<tr/>").appendTo(v.find("tbody"));for(v.append(o(e.nTHead).clone()).append(o(e.nTFoot).clone()),v.find("tfoot th, tfoot td").css("width",""),v.find("thead th, thead td").each((function(){var t=V(e,this,!0,!1);t?(this.style.width=t,c&&(this.style.minWidth=t,o(this).append(o("<div/>").css({width:t,margin:0,padding:0,border:0,height:1})))):this.style.width=""})),t=0;t<p.length;t++){i=a[n=p[t]];var _=Fe(e,n),w=r.type.className[i.sType],x=_+i.sContentPadding,D=-1===_.indexOf("<")?document.createTextNode(x):x;o("<td/>").addClass(w).addClass(i.sClass).append(D).appendTo(y)}o("[name]",v).removeAttr("name");var k=o("<div/>").css(c||h?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(v).appendTo(g);c&&d?v.width(d):c?(v.css("width","auto"),v.removeAttr("width"),v.outerWidth()<g.clientWidth&&f&&v.outerWidth(g.clientWidth)):h?v.outerWidth(g.clientWidth):f&&v.outerWidth(f);var T=0,P=v.find("tbody tr").eq(0).children();for(t=0;t<p.length;t++){var S=P[t].getBoundingClientRect().width;T+=S,a[p[t]].sWidth=ze(S)}s.style.width=ze(T),k.remove(),f&&(s.style.width=ze(f));if((f||c)&&!e._reszEvt){var C=l.util.throttle((function(){var t=Ne(e);e.bDestroying||0===t||N(e)}));if(window.ResizeObserver){var O=o(e.nTableWrapper).is(":visible"),A=o("<div>").css({width:"100%",height:0}).addClass("dt-autosize").appendTo(e.nTableWrapper);e.resizeObserver=new ResizeObserver((function(e){O?O=!1:C()})),e.resizeObserver.observe(A[0])}else o(window).on("resize.DT-"+e.sInstance,C);e._reszEvt=!0}}(e),function(e){for(var t=e.aoColumns,i=0;i<t.length;i++){var r=V(e,[i],!1,!1);t[i].colEl.css("width",r),e.oScroll.sX&&t[i].colEl.css("min-width",r)}}(e);var t=e.oScroll;""===t.sY&&""===t.sX||Be(e),rt(e,null,"column-sizing",[e])}function F(e,t){var i=U(e,"bVisible");return"number"==typeof i[t]?i[t]:null}function z(e,t){var i=U(e,"bVisible").indexOf(t);return-1!==i?i:null}function H(e){var t=e.aoHeader,i=e.aoColumns,r=0;if(t.length)for(var n=0,s=t[0].length;n<s;n++)i[n].bVisible&&"none"!==o(t[0][n].cell).css("display")&&r++;return r}function U(e,t){var i=[];return e.aoColumns.map((function(e,r){e[t]&&i.push(r)})),i}function $(e,t){return!0===t?e._name:t}function W(e){var t,i,n,s,a,o,u,h,c,d=e.aoColumns,p=e.aoData,f=l.ext.type.detect;for(t=0,i=d.length;t<i;t++){if(c=[],!(u=d[t]).sType&&u._sManualType)u.sType=u._sManualType;else if(!u.sType){if(!e.typeDetect)return;for(n=0,s=f.length;n<s;n++){var g=f[n],b=g.oneOf,v=g.allOf||g,y=g.init,_=!1;if(h=null,y&&(h=$(g,y(e,u,t)))){u.sType=h;break}for(a=0,o=p.length;a<o;a++)if(p[a]){if(void 0===c[a]&&(c[a]=K(e,a,t,"type")),b&&!_&&(_=$(g,b(c[a],e))),!(h=$(g,v(c[a],e)))&&n!==f.length-3)break;if("html"===h&&!m(c[a]))break}if(b&&_&&h||!b&&h){u.sType=h;break}}
vendor: 4,684 bytes, line 1
1u.sType||(u.sType="string")}var w=r.type.className[u.sType];w&&(q(e.aoHeader,t,w),q(e.aoFooter,t,w));var x=r.type.render[u.sType];x&&!u._render&&(u._render=l.util.get(x),G(e,t))}}function G(e,t){for(var i=e.aoData,r=0;r<i.length;r++)if(i[r].nTr){var n=K(e,r,t,"display");i[r].displayData[t]=n,J(i[r].anCells[t],n)}}function q(e,t,i){e.forEach((function(e){e[t]&&e[t].unique&&A(e[t].cell,i)}))}function V(e,t,i,r){Array.isArray(t)||(t=Y(t));for(var n,s=0,a=e.aoColumns,o=0,l=t.length;o<l;o++){var u=a[t[o]],h=i?u.sWidthOrig:u.sWidth;if(r||!1!==u.bVisible){if(null==h)return null;if("number"==typeof h)n="px",s+=h;else{var c=h.match(/([\d\.]+)([^\d]*)/);c&&(s+=1*c[1],n=3===c.length?c[2]:"px")}}}return s+n}function Y(e){var t=o(e).closest("[data-dt-column]").attr("data-dt-column");return t?t.split(",").map((function(e){return 1*e})):[]}function X(e,t,i,r){var n=e.aoData.length,s=o.extend(!0,{},l.models.oRow,{src:i?"dom":"data",idx:n});s._aData=t,e.aoData.push(s);for(var a=e.aoColumns,u=0,h=a.length;u<h;u++)a[u].sType=null;e.aiDisplayMaster.push(n);var c=e.rowIdFn(t);return void 0!==c&&(e.aIds[c]=s),!i&&e.oFeatures.bDeferRender||ue(e,n,i,r),n}function Z(e,t){var i;return t instanceof o||(t=o(t)),t.map((function(t,r){return i=oe(e,r),X(e,i.data,r,i.cells)}))}function K(e,t,i,r){"search"===r?r="filter":"order"===r&&(r="sort");var n=e.aoData[t];if(n){var s=e.iDraw,a=e.aoColumns[i],o=n._aData,u=a.sDefaultContent,h=a.fnGetData(o,r,{settings:e,row:t,col:i});if("display"!==r&&h&&"object"==typeof h&&h.nodeName&&(h=h.innerHTML),void 0===h)return e.iDrawError!=s&&null===u&&(Je(e,0,"Requested unknown parameter "+("function"==typeof a.mData?"{function}":"'"+a.mData+"'")+" for row "+t+", column "+i,4),e.iDrawError=s),u;if(h!==o&&null!==h||null===u||void 0===r){if("function"==typeof h)return h.call(o)}else h=u;if(null===h&&"display"===r)return"";if("filter"===r){var c=l.ext.type.search;c[a.sType]&&(h=c[a.sType](h))}return h}}function J(e,t){t&&"object"==typeof t&&t.nodeName?o(e).empty().append(t):e.innerHTML=t}var Q=/\[.*?\]$/,ee=/\(\)$/;function te(e){return(e.match(/(\\.|[^.])+/g)||[""]).map((function(e){return e.replace(/\\\./g,".")}))}var ie=l.util.get,re=l.util.set;function ne(e){return w(e.aoData,"_aData")}function se(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function ae(e,t,i,r){var n,s,a=e.aoData[t];if(a._aSortData=null,a._aFilterData=null,a.displayData=null,"dom"!==i&&(i&&"auto"!==i||"dom"!==a.src)){var o=a.anCells,l=le(e,t);if(o)if(void 0!==r)J(o[r],l[r]);else for(n=0,s=o.length;n<s;n++)J(o[n],l[n])}else a._aData=oe(e,a,r,void 0===r?void 0:a._aData).data;var u=e.aoColumns;if(void 0!==r)u[r].sType=null,u[r].maxLenString=null;else{for(n=0,s=u.length;n<s;n++)u[n].sType=null,u[n].maxLenString=null;he(e,a)}}function oe(e,t,i,r){var n,s,a,o=[],l=t.firstChild,u=0,h=e.aoColumns,c=e._rowReadObject;r=void 0!==r?r:c?{}:[];var d=function(e,t){if("string"==typeof e){var i=e.indexOf("@");if(-1!==i){var n=e.substring(i+1);re(e)(r,t.getAttribute(n))}}},p=function(e){void 0!==i&&i!==u||(s=h[u],a=e.innerHTML.trim(),s&&s._bAttrSrc?(re(s.mData._)(r,a),d(s.mData.sort,e),d(s.mData.type,e),d(s.mData.filter,e)):c?(s._setter||(s._setter=re(s.mData)),s._setter(r,a)):r[u]=a);u++};if(l)for(;l;)"TD"!=(n=l.nodeName.toUpperCase())&&"TH"!=n||(p(l),o.push(l)),l=l.nextSibling;else for(var f=0,g=(o=t.anCells).length;f<g;f++)p(o[f]);var m=t.firstChild?t:t.nTr;if(m){var b=m.getAttribute("id");b&&re(e.rowId)(r,b)}return{data:r,cells:o}}function le(e,t){var i=e.aoData[t],r=e.aoColumns;if(!i.displayData){i.displayData=[];for(var n=0,s=r.length;n<s;n++)i.displayData.push(K(e,t,n,"display"))}return i.displayData}function ue(e,t,i,r){var n,s,a,l,u,h,c=e.aoData[t],d=c._aData,p=[],f=e.oClasses.tbody.row;if(null===c.nTr){for(n=i||document.createElement("tr"),c.nTr=n,c.anCells=p,A(n,f),n._DT_RowIndex=t,he(e,c),l=0,u=e.aoColumns.length;l<u;l++){a=e.aoColumns[l],(s=(h=!i||!r[l])?document.createElement(a.sCellType):r[l])||Je(e,0,"Incorrect column count",18),s._DT_CellIndex={row:t,column:l},p.push(s);var g=le(e,t);!h&&(!a.mRender&&a.mData===l||o.isPlainObject(a.mData)&&a.mData._===l+".display")||J(s,g[l]),A(s,a.sClass),a.bVisible&&h?n.appendChild(s):a.bVisible||h||s.parentNode.removeChild(s),a.fnCreatedCell&&a.fnCreatedCell.call(e.oInstance,s,K(e,t,l),d,t,l)}rt(e,"aoRowCreatedCallback","row-created",[n,d,t,p])}else A(c.nTr,f)}function he(e,t){var i=t.nTr,r=t._aData;if(i){var n=e.rowIdFn(r);if(n&&(i.id=n),r.DT_RowClass){var s=r.DT_RowClass.split(" ");t.__rowc=t.__rowc?C(t.__rowc.concat(s)):s,o(i).removeClass(t.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowAttr&&o(i).attr(r.DT_RowAttr),r.DT_RowData&&o(i).data(r.DT_RowData)}}
1function ce(e,t){var i,r,n,s=e.oClasses,a=e.aoColumns,l="header"===t?e.nTHead:e.nTFoot,u="header"===t?"sTitle":t;if(l){if(("header"===t||w(e.aoColumns,u).join(""))&&((n=o("tr",l)).length||(n=o("<tr/>").appendTo(l)),1===n.length)){var h=0;for(o("td, th",n).each((function(){h+=this.colSpan})),i=h,r=a.length;i<r;i++)o("<th/>").html(a[i][u]||"").appendTo(n)}var c=we(e,l,!0);"header"===t?(e.aoHeader=c,o("tr",l).addClass(s.thead.row)):(e.aoFooter=c,o("tr",l).addClass(s.tfoot.row)),o(l).children("tr").children("th, td").each((function(){st(e,t)(e,o(this),s)}))}}function de(e,t,i){var r,n,s,a,l,u=[],h=[],c=e.aoColumns,d=c.length;if(t){for(i||(i=D(d).filter((function(e){return c[e].bVisible}))),r=0;r<t.length;r++)u[r]=t[r].slice().filter((function(e,t){return i.includes(t)})),h.push([]);for(r=0;r<u.length;r++)for(n=0;n<u[r].length;n++)if(a=1,l=1,void 0===h[r][n]){for(s=u[r][n].cell;void 0!==u[r+a]&&u[r][n].cell==u[r+a][n].cell;)h[r+a][n]=null,a++;for(;void 0!==u[r][n+l]&&u[r][n].cell==u[r][n+l].cell;){for(var p=0;p<a;p++)h[r+p][n+l]=null;l++}var f=o("span.dt-column-title",s);h[r][n]={cell:s,colspan:l,rowspan:a,title:f.length?f.html():o(s).html()}}return h}}function pe(e,t){for(var i,r,n=de(e,t),s=0;s<t.length;s++){if(i=t[s].row)for(;r=i.firstChild;)i.removeChild(r);for(var a=0;a<n[s].length;a++){var l=n[s][a];l&&o(l.cell).appendTo(i).attr("rowspan",l.rowspan).attr("colspan",l.colspan)}}}function fe(e,t){if(function(e){var t="ssp"==at(e),i=e.iInitDisplayStart;void 0!==i&&-1!==i&&(e._iDisplayStart=t?i:i>=e.fnRecordsDisplay()?0:i,e.iInitDisplayStart=-1)}(e),-1===rt(e,"aoPreDrawCallback","preDraw",[e]).indexOf(!1)){var i,n=[],s=0,a="ssp"==at(e),l=e.aiDisplay,u=e._iDisplayStart,h=e.fnDisplayEnd(),c=e.aoColumns,d=o(e.nTBody);if(e.bDrawing=!0,e.deferLoading)e.deferLoading=!1,e.iDraw++,Me(e,!1);else if(a){if(!e.bDestroying&&!t)return 0===e.iDraw&&d.empty().append(me(e)),(i=e).iDraw++,Me(i,!0),void xe(i,function(e){var t=e.aoColumns,i=e.oFeatures,r=e.oPreviousSearch,n=e.aoPreSearchCols,s=function(e,i){return"function"==typeof t[e][i]?"function":t[e][i]};return{draw:e.iDraw,columns:t.map((function(e,t){return{data:s(t,"mData"),name:e.sName,searchable:e.bSearchable,orderable:e.bSortable,search:{value:n[t].search,regex:n[t].regex,fixed:Object.keys(e.searchFixed).map((function(t){return{name:t,term:e.searchFixed[t].toString()}}))}}})),order:Ge(e).map((function(e){return{column:e.col,dir:e.dir,name:s(e.col,"sName")}})),start:e._iDisplayStart,length:i.bPaginate?e._iDisplayLength:-1,search:{value:r.search,regex:r.regex,fixed:Object.keys(e.searchFixed).map((function(t){return{name:t,term:e.searchFixed[t].toString()}}))}}}(i),(function(e){!function(e,t){var i=De(e,t),r=ke(e,"draw",t),n=ke(e,"recordsTotal",t),s=ke(e,"recordsFiltered",t);if(void 0!==r){if(1*r<e.iDraw)return;e.iDraw=1*r}i||(i=[]),se(e),e._iRecordsTotal=parseInt(n,10),e._iRecordsDisplay=parseInt(s,10);for(var a=0,o=i.length;a<o;a++)X(e,i[a]);e.aiDisplay=e.aiDisplayMaster.slice(),W(e),fe(e,!0),Ee(e),Me(e,!1)}(i,e)}))}else e.iDraw++;if(0!==l.length)for(var p=a?0:u,f=a?e.aoData.length:h,g=p;g<f;g++){var m=l[g],b=e.aoData[m];null===b.nTr&&ue(e,m);for(var v=b.nTr,y=0;y<c.length;y++){var _=c[y],w=b.anCells[y];A(w,r.type.className[_.sType]),A(w,e.oClasses.tbody.cell)}rt(e,"aoRowCallback",null,[v,b._aData,s,g,m]),n.push(v),s++}else n[0]=me(e);rt(e,"aoHeaderCallback","header",[o(e.nTHead).children("tr")[0],ne(e),u,h,l]),rt(e,"aoFooterCallback","footer",[o(e.nTFoot).children("tr")[0],ne(e),u,h,l]),d[0].replaceChildren?d[0].replaceChildren.apply(d[0],n):(d.children().detach(),d.append(o(n))),o(e.nTableWrapper).toggleClass("dt-empty-footer",0===o("tr",e.nTFoot).length),rt(e,"aoDrawCallback","draw",[e],!0),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}else Me(e,!1)}function ge(e,t,i){var r=e.oFeatures,n=r.bSort,s=r.bFilter;void 0!==i&&!0!==i||(W(e),n&&qe(e),s?Te(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice()),!0!==t&&(e._iDisplayStart=0),e._drawHold=t,fe(e),e._drawHold=!1}function me(e){var t=e.oLanguage,i=t.sZeroRecords,r=at(e);return"ssp"!==r&&"ajax"!==r||e.json?t.sEmptyTable&&0===e.fnRecordsTotal()&&(i=t.sEmptyTable):i=t.sLoadingRecords,o("<tr/>").append(o("<td />
vendor: 8,307 bytes, line 1
1",{colSpan:H(e),class:e.oClasses.empty.row}).html(i))[0]}function be(e,t,i){if(Array.isArray(i))for(var r=0;r<i.length;r++)be(e,t,i[r]);else{var n=e[t];o.isPlainObject(i)?i.features?(i.rowId&&(e.id=i.rowId),i.rowClass&&(e.className=i.rowClass),n.id=i.id,n.className=i.className,be(e,t,i.features)):Object.keys(i).map((function(e){n.contents.push({feature:e,opts:i[e]})})):n.contents.push(i)}}function ve(e,t,i){var r=[];o.each(t,(function(e,t){if(null!==t){var n=e.match(/^([a-z]+)([0-9]*)([A-Za-z]*)$/),s=n[2]?1*n[2]:0,a=n[3]?n[3].toLowerCase():"full";if(n[1]===i){var o=function(e,t,i){for(var r,n=0;n<e.length;n++)if((r=e[n]).rowNum===t&&("full"===i&&r.full||("start"===i||"end"===i)&&(r.start||r.end)))return r[i]||(r[i]={contents:[]}),r;return(r={rowNum:t})[i]={contents:[]},e.push(r),r}(r,s,a);be(o,a,t)}}})),r.sort((function(e,t){var r=e.rowNum,n=t.rowNum;if(r===n){var s=e.full&&!t.full?-1:1;return"bottom"===i?-1*s:s}return n-r})),"bottom"===i&&r.reverse();for(var n=0;n<r.length;n++)delete r[n].rowNum,ye(e,r[n]);return r}function ye(e,t){var i=function(t,i){return r.features[t]||Je(e,0,"Unknown feature: "+t),r.features[t].apply(this,[e,i])},n=function(r){if(t[r])for(var n=t[r].contents,s=0,a=n.length;s<a;s++)if(n[s])if("string"==typeof n[s])n[s]=i(n[s],null);else if(o.isPlainObject(n[s]))n[s]=i(n[s].feature,n[s].opts);else if("function"==typeof n[s].node)n[s]=n[s].node(e);else if("function"==typeof n[s]){var l=n[s](e);n[s]="function"==typeof l.node?l.node():l}};n("start"),n("end"),n("full")}function _e(e){var t=e.oClasses,i=o(e.nTable),r=o("<div/>").attr({id:e.sTableId+"_wrapper",class:t.container}).insertBefore(i);if(e.nTableWrapper=r[0],e.sDom)!function(e,t,i){for(var r,n,s,a,u,h=t.match(/(".*?")|('.*?')|./g),c=0;c<h.length;c++){if(r=null,"<"==(n=h[c])){if(s=o("<div/>"),"'"==(a=h[c+1])[0]||'"'==a[0]){var d,p="";if(-1!=(u=a.replace(/['"]/g,"")).indexOf(".")){var f=u.split(".");p=f[0],d=f[1]}else"#"==u[0]?p=u:d=u;s.attr("id",p.substring(1)).addClass(d),c++}i.append(s),i=s}else">"==n?i=i.parent():"t"==n?r=Ie(e):l.ext.feature.forEach((function(t){n==t.cFeature&&(r=t.fnInit(e))}));r&&i.append(r)}}(e,e.sDom,r);else{var n=ve(e,e.layout,"top"),s=ve(e,e.layout,"bottom"),a=st(e,"layout");n.forEach((function(t){a(e,r,t)})),a(e,r,{full:{table:!0,contents:[Ie(e)]}}),s.forEach((function(t){a(e,r,t)}))}!function(e){var t=e.nTable,i=""!==e.oScroll.sX||""!==e.oScroll.sY;if(e.oFeatures.bProcessing){var r=o("<div/>",{id:e.sTableId+"_processing",class:e.oClasses.processing.container,role:"status"}).html(e.oLanguage.sProcessing).append("<div><div></div><div></div><div></div><div></div></div>");i?r.prependTo(o("div.dt-scroll",e.nTableWrapper)):r.insertBefore(t),o(t).on("processing.dt.DT",(function(e,t,i){r.css("display",i?"block":"none")}))}}(e)}function we(e,t,i){var r,n,s,a,l,u,h,c,d,p,f=e.aoColumns,g=o(t).children("tr"),m=e.titleRow,b=t&&"thead"===t.nodeName.toLowerCase(),v=[],y=function(e,t,i){for(var r=e[t];r[i];)i++;return i};for(s=0,u=g.length;s<u;s++)v.push([]);for(s=0,u=g.length;s<u;s++)for(n=(r=g[s]).firstChild;n;){if("TD"==n.nodeName.toUpperCase()||"TH"==n.nodeName.toUpperCase()){var _=[],w=o(n);if(c=(c=1*n.getAttribute("colspan"))&&0!==c&&1!==c?c:1,d=(d=1*n.getAttribute("rowspan"))&&0!==d&&1!==d?d:1,h=y(v,s,0),p=1===c,i){if(p){B(e,h,w.data());var x=f[h],D=n.getAttribute("width")||null,k=n.style.width.match(/width:\s*(\d+[pxem%]+)/);k&&(D=k[1]),x.sWidthOrig=x.sWidth||D,b?(null===x.sTitle||x.autoTitle||(!0===m&&0===s||!1===m&&s===g.length-1||m===s||null===m)&&(n.innerHTML=x.sTitle),!x.sTitle&&p&&(x.sTitle=T(n.innerHTML),x.autoTitle=!0)):x.footer&&(n.innerHTML=x.footer),x.ariaTitle||(x.ariaTitle=w.attr("aria-label")||x.sTitle),x.className&&w.addClass(x.className)}0===o("span.dt-column-title",n).length&&o("<span>").addClass("dt-column-title").append(n.childNodes).appendTo(n),e.orderIndicators&&b&&0!==w.filter(":not([data-dt-order=disable])").length&&0!==w.parent(":not([data-dt-order=disable])").length&&0===o("span.dt-column-order",n).length&&o("<span>").addClass("dt-column-order").appendTo(n);var P=b?"header":"footer";0===o("span.dt-column-"+P,n).length&&o("<div>").addClass("dt-column-"+P).append(n.childNodes).appendTo(n)}for(l=0;l<c;l++){for(a=0;a<d;a++)v[s+a][h+l]={cell:n,unique:p},v[s+a].row=r;_.push(h+l)}n.setAttribute("data-dt-column",C(_).join(","))}n=n.nextSibling}return v}function xe(e,t,i){var r,n=e.ajax,s=e.oInstance,a=function(t){var r=e.jqXHR?e.jqXHR.status:null;(null===t||"number"==typeof r&&204==r)&&De(e,t={},[]);var n=t.error||t.sError;if(n&&Je(e,0,n),t.d&&"string"==typeof t.d)try{t=JSON.parse(t.d)}catch(e){}e.json=t,rt(e,null,"xhr",[e,t,e.jqXHR],!0),i(t)};if(o.isPlainObject(n)&&n.data){var u="function"==typeof(r=n.data)?r(t,e):r;t="function"==typeof r&&u?u:o.extend(!0,t,u),delete n.data}var h={url:"string"==typeof n?n:"",data:t,success:a,dataType:"json",cache:!1,type:e.sServerMethod,error:function(t,i){-1===rt(e,null,"xhr",[e,null,e.jqXHR],!0).indexOf(!0)&&("parsererror"==i?Je(e,0,"Invalid JSON response",1):4===t.readyState&&Je(e,0,"Ajax error",7)),Me(e,!1)}};if(o.isPlainObject(n)&&o.extend(h,n),e.oAjaxData=t,rt(e,null,"preXhr",[e,t,h],!0),"json"===h.submitAs&&"object"==typeof t&&(h.data=JSON.stringify(t)),"function"==typeof n)e.jqXHR=n.call(s,t,a,e);else if(""===n.url){var c={};l.util.set(n.dataSrc)(c,[]),a(c)}else e.jqXHR=o.ajax(h);r&&(n.data=r)}function De(e,t,i){var r="data";if(o.isPlainObject(e.ajax)&&void 0!==e.ajax.dataSrc){var n=e.ajax.dataSrc;"string"==typeof n||"function"==typeof n?r=n:void 0!==n.data&&(r=n.data)}if(!i)return"data"===r?t.aaData||t[r]:""!==r?ie(r)(t):t;re(r)(t,i)}function ke(e,t,i){var r=o.isPlainObject(e.ajax)?e.ajax.dataSrc:null;if(r&&r[t])return ie(r[t])(i);var n="";return"draw"===t?n="sEcho":"recordsTotal"===t?n="iTotalRecords":"recordsFiltered"===t&&(n="iTotalDisplayRecords"),void 0!==i[n]?i[n]:i[t]}function Te(e,t){var i=e.aoPreSearchCols;if("ssp"!=at(e)){!function(e){for(var t,i,r,n,s,a=e.aoColumns,o=e.aoData,l=!1,u=0;u<o.length;u++)if(o[u]&&!(s=o[u])._aFilterData){for(r=[],t=0,i=a.length;t<i;t++)a[t].bSearchable?(null===(n=K(e,u,t,"filter"))&&(n=""),"string"!=typeof n&&n.toString&&(n=n.toString())):n="",n.indexOf&&-1!==n.indexOf("&")&&(Ce.innerHTML=n,n=Oe?Ce.textContent:Ce.innerText),n.replace&&(n=n.replace(/[\r\n\u2028]/g,"")),r.push(n);s._aFilterData=r,s._sFilterRow=r.join("  "),l=!0}}(e),e.aiDisplay=e.aiDisplayMaster.slice(),Pe(e.aiDisplay,e,t.search,t),o.each(e.searchFixed,(function(t,i){Pe(e.aiDisplay,e,i,{})}));for(var r=0;r<i.length;r++){var n=i[r];Pe(e.aiDisplay,e,n.search,n,r),o.each(e.aoColumns[r].searchFixed,(function(t,i){Pe(e.aiDisplay,e,i,{},r)}))}!function(e){for(var t,i,r=l.ext.search,n=e.aiDisplay,s=0,a=r.length;s<a;s++){for(var o=[],u=0,h=n.length;u<h;u++)i=n[u],t=e.aoData[i],r[s](e,t._aFilterData,i,t._aData,u)&&o.push(i);n.length=0,lt(n,o)}}(e)}e.bFiltered=!0,rt(e,null,"search",[e])}function Pe(e,t,i,r,n){if(""!==i){var s=0,a=[],l="function"==typeof i?i:null,u=i instanceof RegExp?i:l?null:function(e,t){var i=[],r=o.extend({},{boundary:!1,caseInsensitive:!0,exact:!1,regex:!1,smart:!0},t);"string"!=typeof e&&(e=e.toString());if(e=S(e),r.exact)return new RegExp("^"+Se(e)+"$",r.caseInsensitive?"i":"");if(e=r.regex?e:Se(e),r.smart){var n=(e.match(/!?["\u201C][^"\u201D]+["\u201D]|[^ ]+/g)||[""]).map((function(e){var t,r=!1;return"!"===e.charAt(0)&&(r=!0,e=e.substring(1)),'"'===e.charAt(0)?(t=e.match(/^"(.*)"$/),e=t?t[1]:e):"“"===e.charAt(0)&&(t=e.match(/^\u201C(.*)\u201D$/),e=t?t[1]:e),r&&(e.length>1&&i.push("(?!"+e+")"),e=""),e.replace(/"/g,"")})),s=i.length?i.join(""):"",a=r.boundary?"\\b":"";e="^(?=.*?"+a+n.join(")(?=.*?"+a)+")("+s+".)*$"}return new RegExp(e,r.caseInsensitive?"i":"")}(i,r);for(s=0;s<e.length;s++){var h=t.aoData[e[s]],c=void 0===n?h._sFilterRow:h._aFilterData[n];(l&&l(c,h._aData,e[s],n)||u&&u.test(c))&&a.push(e[s])}for(e.length=a.length,s=0;s<a.length;s++)e[s]=a[s]}}var Se=l.util.escapeRegex,Ce=o("<div>")[0],Oe=void 0!==Ce.textContent;function Ae(e){var t,i=e.oInit,r=e.deferLoading,n=at(e);e.bInitialised?(ce(e,"header"),ce(e,"footer"),function(e,t,i){if(!e.oFeatures.bStateSave)return void i();var r=function(t){Ke(e,t,i)},n=e.fnStateLoadCallback.call(e.oInstance,e,r);void 0!==n&&Ke(e,n,i)}(e,0,(function(){pe(e,e.aoHeader),pe(e,e.aoFooter);var s=e.iInitDisplayStart;if(i.aaData)for(t=0;
1t<i.aaData.length;t++)X(e,i.aaData[t]);else(r||"dom"==n)&&Z(e,o(e.nTBody).children("tr"));e.aiDisplay=e.aiDisplayMaster.slice(),_e(e),function(e){var t=e.nTHead,i=t.querySelectorAll("tr"),r=e.titleRow,n=':not([data-dt-order="disable"]):not([data-dt-order="icon-only"])';!0===r?t=i[0]:!1===r?t=i[i.length-1]:null!==r&&(t=i[r]);e.orderHandler&&Ue(e,t,t===e.nTHead?"tr"+n+" th"+n+", tr"+n+" td"+n:"th"+n+", td"+n);var s=[];We(e,s,e.aaSorting),e.aaSorting=s}(e),He(e),Me(e,!0),rt(e,null,"preInit",[e],!0),ge(e),("ssp"!=n||r)&&("ajax"==n?xe(e,{},(function(i){var r=De(e,i);for(t=0;t<r.length;t++)X(e,r[t]);e.iInitDisplayStart=s,ge(e),Me(e,!1),Ee(e)})):(Ee(e),Me(e,!1)))}))):setTimeout((function(){Ae(e)}),200)}function Ee(e){if(!e._bInitComplete){var t=[e,e.json];e._bInitComplete=!0,N(e),rt(e,null,"plugin-init",t,!0),rt(e,"aoInitComplete","init",t,!0)}}function je(e,t){var i=parseInt(t,10);e._iDisplayLength=i,nt(e),rt(e,null,"length",[e,i])}function Le(e,t,i){var r=e._iDisplayStart,n=e._iDisplayLength,s=e.fnRecordsDisplay();if(0===s||-1===n)r=0;else if("number"==typeof t)(r=t*n)>s&&(r=0);else if("first"==t)r=0;else if("previous"==t)(r=n>=0?r-n:0)<0&&(r=0);else if("next"==t)r+n<s&&(r+=n);else if("last"==t)r=Math.floor((s-1)/n)*n;else{if("ellipsis"===t)return;Je(e,0,"Unknown paging action: "+t,5)}var a=e._iDisplayStart!==r;return e._iDisplayStart=r,rt(e,null,a?"page":"page-nc",[e]),a&&i&&fe(e),a}function Me(e,t){e.bDrawing&&!1===t||rt(e,null,"processing",[e,t])}function Re(e,t,i){t?(Me(e,!0),setTimeout((function(){i(),Me(e,!1)}),0)):i()}function Ie(e){var t=o(e.nTable),i=e.oScroll;if(""===i.sX&&""===i.sY)return e.nTable;
1var r=i.sX,n=i.sY,s=e.oClasses.scrolling,a=e.captionNode,l=a?a._captionSide:null,u=o(t[0].cloneNode(!1)),h=o(t[0].cloneNode(!1)),c=t.children("tfoot"),d="<div/>",p=function(e){return e?ze(e):null};c.length||(c=null);var f=o(d,{class:s.container}).append(o(d,{class:s.header.self}).css({overflow:"hidden",position:"relative",border:0,width:r?p(r):"100%"}).append(o(d,{class:s.header.inner}).css({"box-sizing":"content-box",width:i.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?a:null).append(t.children("thead"))))).append(o(d,{class:s.body}).css({position:"relative",overflow:"auto",width:p(r)}).append(t));c&&f.append(o(d,{class:s.footer.self}).css({overflow:"hidden",border:0,width:r?p(r):"100%"}).append(o(d,{class:s.footer.inner}).append(h.removeAttr("id").css("margin-left",0).append("bottom"===l?a:null).append(t.children("tfoot")))));var g=f.children(),m=g[0],b=g[1],v=c?g[2]:null;return o(b).on("scroll.DT",(function(){var e=this.scrollLeft;m.scrollLeft=e,c&&(v.scrollLeft=e)})),o("th, td",m).on("focus",(function(){var e=m.scrollLeft;b.scrollLeft=e,c&&(b.scrollLeft=e)})),o(b).css("max-height",n),i.bCollapse||o(b).css("height",n),e.nScrollHead=m,e.nScrollBody=b,e.nScrollFoot=v,e.aoDrawCallback.push(Be),f[0]}function Be(e){var t,i,r=e.oScroll,n=r.iBarWidth,s=o(e.nScrollHead).children("div"),a=s.children("table"),l=e.nScrollBody,u=o(l),h=o(e.nScrollFoot).children("div"),c=h.children("table"),d=o(e.nTHead),p=o(e.nTable),f=e.nTFoot&&o("th, td",e.nTFoot).length?o(e.nTFoot):null,g=e.oBrowser,m=l.scrollHeight>l.clientHeight;if(e.scrollBarVis!==m&&void 0!==e.scrollBarVis)return e.scrollBarVis=m,void N(e);if(e.scrollBarVis=m,p.children("thead, tfoot").remove(),(t=d.clone().prependTo(p)).find("th, td").removeAttr("tabindex"),t.find("[id]").removeAttr("id"),f&&(i=f.clone().prependTo(p)).find("[id]").removeAttr("id"),e.aiDisplay.length){var b=null,v="ssp"!==at(e)?e._iDisplayStart:0;for(x=v;x<v+e.aiDisplay.length;x++){var y=e.aiDisplay[x],_=e.aoData[y].nTr;if(_){b=_;break}}if(b)for(var w=o(b).children("th, td").map((function(t){return{idx:F(e,t),width:o(this).outerWidth()}})),x=0;x<w.length;x++){var D=e.aoColumns[w[x].idx].colEl[0];D.style.width.replace("px","")!==w[x].width&&(D.style.width=w[x].width+"px",r.sX&&(D.style.minWidth=w[x].width+"px"))}}a.find("colgroup").remove(),a.append(e.colgroup.clone()),f&&(c.find("colgroup").remove(),c.append(e.colgroup.clone())),o("th, td",t).each((function(){o(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')})),f&&o("th, td",i).each((function(){o(this.childNodes).wrapAll('<div class="dt-scroll-sizing">')}));var k=Math.floor(p.height())>l.clientHeight||"scroll"==u.css("overflow-y"),T="padding"+(g.bScrollbarLeft?"Left":"Right"),P=p.outerWidth();a.css("width",ze(P)),s.css("width",ze(P)).css(T,k?n+"px":"0px"),f&&(c.css("width",ze(P)),h.css("width",ze(P)).css(T,k?n+"px":"0px")),p.children("colgroup").prependTo(p),u.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(l.scrollTop=0)}function Ne(e){return o(e.nTableWrapper).is(":visible")?o(e.nTableWrapper).width():0}function Fe(e,t){var i=e.aoColumns[t];if(!i.maxLenString){for(var r,n="",s=-1,a=0,o=e.aiDisplayMaster.length;a<o;a++){var l=le(e,e.aiDisplayMaster[a])[t],u=l&&"object"==typeof l&&l.nodeType?l.innerHTML:l+"";u=u.replace(/id=".*?"/g,"").replace(/name=".*?"/g,""),(r=T(u).replace(/&nbsp;/g," ")).length>s&&(n=u,s=r.length)}i.maxLenString=n}return i.maxLenString}function ze(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function He(e){var t=e.aoColumns;for(e.colgroup.empty(),Wt=0;Wt<t.length;Wt++)t[Wt].bVisible&&e.colgroup.append(t[Wt].colEl)}function Ue(e,t,i,r,n){tt(t,i,(function(t){var i=!1,s=void 0===r?Y(t.target):Array.isArray(r)?r:[r];if(s.length){for(var a=0,o=s.length;a<o;a++){if(!1!==Ve(e,s[a],a,t.shiftKey)&&(i=!0),1===e.aaSorting.length&&""===e.aaSorting[0][1])break}i&&Re(e,!0,(function(){qe(e),$e(e,e.aiDisplay),ge(e,!1,!1),n&&n()}))}}))}function $e(e,t){if(!(t.length<2)){var i,r=e.aiDisplayMaster,n={},s={};for(i=0;i<r.length;i++)n[r[i]]=i;for(i=0;i<t.length;i++)s[t[i]]=n[t[i]];t.sort((function(e,t){return s[e]-s[t]}))}}
vendor: 2,301 bytes, line 1
1function We(e,t,i){var r=function(i){if(o.isPlainObject(i)){if(void 0!==i.idx)t.push([i.idx,i.dir]);else if(i.name){var r=w(e.aoColumns,"sName").indexOf(i.name);-1!==r&&t.push([r,i.dir])}}else t.push(i)};if(o.isPlainObject(i))r(i);else if(i.length&&"number"==typeof i[0])r(i);else if(i.length)for(var n=0;n<i.length;n++)r(i[n])}function Ge(e){var t,i,r,n,s,a,u,h=[],c=l.ext.type.order,d=e.aoColumns,p=e.aaSortingFixed,f=o.isPlainObject(p),g=[];if(!e.oFeatures.bSort)return h;for(Array.isArray(p)&&We(e,g,p),f&&p.pre&&We(e,g,p.pre),We(e,g,e.aaSorting),f&&p.post&&We(e,g,p.post),t=0;t<g.length;t++)if(d[u=g[t][0]])for(i=0,r=(n=d[u].aDataSort).length;i<r;i++)a=d[s=n[i]].sType||"string",void 0===g[t]._idx&&(g[t]._idx=d[s].asSorting.indexOf(g[t][1])),g[t][1]&&h.push({src:u,col:s,dir:g[t][1],index:g[t]._idx,type:a,formatter:c[a+"-pre"],sorter:c[a+"-"+g[t][1]]});return h}function qe(e,t,i){var r,n,s,a,o=[],u=l.ext.type.order,h=e.aoData,c=e.aiDisplayMaster;if(W(e),void 0!==t){var d=e.aoColumns[t];a=[{src:t,col:t,dir:i,index:0,type:d.sType,formatter:u[d.sType+"-pre"],sorter:u[d.sType+"-"+i]}],c=c.slice()}else a=Ge(e);for(r=0,n=a.length;r<n;r++)Xe(e,a[r].col);if("ssp"!=at(e)&&0!==a.length){for(r=0,s=c.length;r<s;r++)o[r]=r;a.length&&"desc"===a[0].dir&&e.orderDescReverse&&o.reverse(),c.sort((function(e,t){var i,r,n,s,l,u=a.length,c=h[e]._aSortData,d=h[t]._aSortData;for(n=0;n<u;n++)if(i=c[(l=a[n]).col],r=d[l.col],l.sorter){if(0!==(s=l.sorter(i,r)))return s}else if(0!==(s=i<r?-1:i>r?1:0))return"asc"===l.dir?s:-s;return(i=o[e])<(r=o[t])?-1:i>r?1:0}))}else 0===a.length&&c.sort((function(e,t){return e<t?-1:e>t?1:0}));return void 0===t&&(e.bSorted=!0,e.sortDetails=a,rt(e,null,"order",[e,a])),c}function Ve(e,t,i,r){var n,s=e.aoColumns[t],a=e.aaSorting,o=s.asSorting,l=function(e,t){var i=e._idx;return void 0===i&&(i=o.indexOf(e[1])),i+1<o.length?i+1:t?null:0};if(!s.bSortable)return!1;if("number"==typeof a[0]&&(a=e.aaSorting=[a]),(r||i)&&e.oFeatures.bSortMulti){var u=w(a,"0").indexOf(t);-1!==u?(null===(n=l(a[u],!0))&&1===a.length&&(n=0),null===n?a.splice(u,1):(a[u][1]=o[n],a[u]._idx=n)):r?(a.push([t,o[0],0]),a[a.length-1]._idx=0):(a.push([t,a[0][1],0]),a[a.length-1]._idx=0)}else a.length&&a[0][0]==t?(n=l(a[0]),a.length=1,a[0][1]=o[n],a[0]._idx=n):(a.length=0,a.push([t,o[0]]),a[0]._idx=0)}
1function Ye(e){var t,i,r,n=e.aLastSort,s=e.oClasses.order.position,a=Ge(e),l=e.oFeatures;if(l.bSort&&l.bSortClasses){for(t=0,i=n.length;t<i;t++)r=n[t].src,o(w(e.aoData,"anCells",r)).removeClass(s+(t<2?t+1:3));for(t=0,i=a.length;t<i;t++)r=a[t].src,o(w(e.aoData,"anCells",r)).addClass(s+(t<2?t+1:3))}e.aLastSort=a}function Xe(e,t){var i,r,n,s=e.aoColumns[t],a=l.ext.order[s.sSortDataType];a&&(i=a.call(e.oInstance,e,t,z(e,t)));for(var o=l.ext.type.order[s.sType+"-pre"],u=e.aoData,h=0;h<u.length;h++)u[h]&&((r=u[h])._aSortData||(r._aSortData=[]),r._aSortData[t]&&!a||(n=a?i[h]:K(e,h,t,"sort"),r._aSortData[t]=o?o(n,e):n))}function Ze(e){if(!e._bLoadingState){var t=[];We(e,t,e.aaSorting);var i=e.aoColumns,r={time:+new Date,start:e._iDisplayStart,length:e._iDisplayLength,order:t.map((function(e){return i[e[0]]&&i[e[0]].sName?[i[e[0]].sName,e[1]]:e.slice()})),search:o.extend({},e.oPreviousSearch),columns:e.aoColumns.map((function(t,i){return{name:t.sName,visible:t.bVisible,search:o.extend({},e.aoPreSearchCols[i])}}))};e.oSavedState=r,rt(e,"aoStateSaveParams","stateSaveParams",[e,r]),e.oFeatures.bStateSave&&!e.bDestroying&&e.fnStateSaveCallback.call(e.oInstance,e,r)}}function Ke(e,t,i){var r,n,s=e.aoColumns,a=w(e.aoColumns,"sName");e._bLoadingState=!0;var u=e._bInitComplete?new l.Api(e):null;if(!t||!t.time)return e._bLoadingState=!1,void i();var h=e.iStateDuration;if(h>0&&t.time<+new Date-1e3*h)return e._bLoadingState=!1,void i();if(-1!==rt(e,"aoStateLoadParams","stateLoadParams",[e,t]).indexOf(!1))return e._bLoadingState=!1,void i();if(e.oLoadedState=o.extend(!0,{},t),rt(e,null,"stateLoadInit",[e,t],!0),void 0!==t.length&&(u?u.page.len(t.length):e._iDisplayLength=t.length),void 0!==t.start&&(null===u?(e._iDisplayStart=t.start,e.iInitDisplayStart=t.start):Le(e,t.start/e._iDisplayLength)),void 0!==t.order&&(e.aaSorting=[],o.each(t.order,(function(t,i){var r=[i[0],i[1]];if("string"==typeof i[0]){var n=a.indexOf(i[0]);if(n<0)return;r[0]=n}else if(r[0]>=s.length)return;e.aaSorting.push(r)}))),void 0!==t.search&&o.extend(e.oPreviousSearch,t.search),t.columns){var c=t.columns,d=w(t.columns,"name");if(d.join("").length&&d.join("")!==a.join(""))for(c=[],r=0;r<a.length;r++)if(""!=a[r]){var p=d.indexOf(a[r]);p>=0?c.push(t.columns[p]):c.push({})}else c.push({});if(c.length===s.length){for(r=0,n=c.length;r<n;r++){var f=c[r];void 0!==f.visible&&(u?u.column(r).visible(f.visible,!1):s[r].bVisible=f.visible),void 0!==f.search&&o.extend(e.aoPreSearchCols[r],f.search)}u&&u.columns.adjust()}}e._bLoadingState=!1,rt(e,"aoStateLoaded","stateLoaded",[e,t]),i()}function Je(e,t,i,r){if(i="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+i,r&&(i+=". For more information about this error, please see https://datatables.net/tn/"+r),t)window.console&&console.log&&console.log(i);else{var n=l.ext,s=n.sErrMode||n.errMode;if(e&&rt(e,null,"dt-error",[e,r,i],!0),"alert"==s)alert(i);else{if("throw"==s)throw new Error(i);"function"==typeof s&&s(e,r,i)}}}function Qe(e,t,i,r){Array.isArray(i)?o.each(i,(function(i,r){Array.isArray(r)?Qe(e,t,r[0],r[1]):Qe(e,t,r)})):(void 0===r&&(r=i),void 0!==t[i]&&(e[r]=t[i]))}function et(e,t,i){var r;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r=t[n],o.isPlainObject(r)?(o.isPlainObject(e[n])||(e[n]={}),o.extend(!0,e[n],r)):i&&"data"!==n&&"aaData"!==n&&Array.isArray(r)?e[n]=r.slice():e[n]=r);return e}function tt(e,t,i){o(e).on("click.DT",t,(function(e){i(e)})).on("keypress.DT",t,(function(e){13===e.which&&(e.preventDefault(),i(e))})).on("selectstart.DT",t,(function(){return!1}))}function it(e,t,i){i&&e[t].push(i)}function rt(e,t,i,r,n){var s=[];if(t&&(s=e[t].slice().reverse().map((function(t){return t.apply(e.oInstance,r)}))),null!==i){var a=o.Event(i+".dt"),l=o(e.nTable);a.dt=e.api,l[n?"trigger":"triggerHandler"](a,r),n&&0===l.parents("body").length&&o("body").trigger(a,r),s.push(a.result)}return s}function nt(e){var t=e._iDisplayStart,i=e.fnDisplayEnd(),r=e._iDisplayLength;t>=i&&(t=i-r),t-=t%r,(-1===r||t<0)&&(t=0),e._iDisplayStart=t}function st(e,t){var i=e.renderer,r=l.ext.renderer[t];return o.isPlainObject(i)&&i[t]?r[i[t]]||r._:"string"==typeof i&&r[i]||r._}function at(e){return e.oFeatures.bServerSide?"ssp":e.ajax?"ajax":"dom"}function ot(e,t,i){var r=e.fnFormatNumber,n=e._iDisplayStart+1,s=e._iDisplayLength,a=e.fnRecordsDisplay(),o=e.fnRecordsTotal(),l=-1===s;return t.replace(/_START_/g,r.call(e,n)).replace(/_END_/g,r.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,r.call(e,o)).replace(/_TOTAL_/g,r.call(e,a)).replace(/_PAGE_/g,r.call(e,l?1:Math.ceil(n/s))).replace(/_PAGES_/g,r.call(e,l?1:Math.ceil(a/s))).replace(/_ENTRIES_/g,e.api.i18n("entr
1ies","",i)).replace(/_ENTRIES-MAX_/g,e.api.i18n("entries","",o)).replace(/_ENTRIES-TOTAL_/g,e.api.i18n("entries","",a))}function lt(e,t){if(t)if(t.length<1e4)e.push.apply(e,t);else for(Wt=0;Wt<t.length;Wt++)e.push(t[Wt])}function ut(e,t,i){for(Array.isArray(i)||(i=[i]),Wt=0;Wt<i.length;Wt++)e.on(t+".dt",i[Wt])}var ht=[],ct=Array.prototype;function dt(e,t,i){return function(){var r=t.apply(e||this,arguments);return n.extend(r,r,i.methodExt),r}}function pt(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i].name===t)return e[i];return null}n=function(e,t){if(!(this instanceof n))return new n(e,t);var i,r=[],s=function(e){var t=function(e){var t,i,r=l.settings,n=w(r,"nTable");return e?e.nTable&&e.oFeatures?[e]:e.nodeName&&"table"===e.nodeName.toLowerCase()?-1!==(t=n.indexOf(e))?[r[t]]:null:e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?i=o(e).get():e instanceof o&&(i=e.get()),i?r.filter((function(e,t){return i.includes(n[t])})):void 0):[]}(e);t&&r.push.apply(r,t)};if(Array.isArray(e))for(i=0;i<e.length;i++)s(e[i]);else s(e);this.context=r.length>1?C(r):r,lt(this,t),this.selector={rows:null,cols:null,opts:null},n.extend(this,this,ht)},l.Api=n,o.extend(n.prototype,{any:function(){return 0!==this.count()},context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,i=this.length;t<i;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new n(t[e],this[e]):null},filter:function(e){var t=ct.filter.call(this,e,this);return new n(this.context,t)},flatten:function(){var e=[];return new n(this.context,e.concat.apply(e,this.toArray()))},get:function(e){return this[e]},join:ct.join,includes:function(e){return-1!==this.indexOf(e)},indexOf:ct.indexOf,iterator:function(e,t,i,r){var s,a,o,l,u,h,c,d,p=[],f=this.context,g=this.selector;for("string"==typeof e&&(r=i,i=t,t=e,e=!1),a=0,o=f.length;a<o;a++){var m=new n(f[a]);if("table"===t)void 0!==(s=i.call(m,f[a],a))&&p.push(s);else if("columns"===t||"rows"===t)void 0!==(s=i.call(m,f[a],this[a],a))&&p.push(s);else if("every"===t||"column"===t||"column-rows"===t||"row"===t||"cell"===t)for(c=this[a],"column-rows"===t&&(h=yt(f[a],g.opts)),l=0,u=c.length;l<u;l++)d=c[l],void 0!==(s="cell"===t?i.call(m,f[a],d.row,d.column,a,l):i.call(m,f[a],d,a,l,h))&&p.push(s)}if(p.length||r){var b=new n(f,e?p.concat.apply([],p):p),v=b.selector;return v.rows=g.rows,v.cols=g.cols,v.opts=g.opts,b}return this},lastIndexOf:ct.lastIndexOf,length:0,map:function(e){var t=ct.map.call(this,e,this);return new n(this.context,t)},pluck:function(e){var t=l.util.get(e);return this.map((function(e){return t(e)}))},pop:ct.pop,push:ct.push,reduce:ct.reduce,reduceRight:ct.reduceRight,reverse:ct.reverse,selector:null,shift:ct.shift,slice:function(){return new n(this.context,this)},sort:ct.sort,splice:ct.splice,toArray:function(){return ct.slice.call(this)},to$:function(){return o(this)},toJQuery:function(){return o(this)},unique:function(){return new n(this.context,C(this.toArray()))},unshift:ct.unshift}),window.__apiStruct=ht,n.extend=function(e,t,i){var r,s,a;if(i.length&&t&&(t instanceof n||t.__dt_wrapper))for(r=0,s=i.length;r<s;r++)"__proto__"!==(a=i[r]).name&&(t[a.name]="function"===a.type?dt(e,a.val,a):"object"===a.type?{}:a.val,t[a.name].__dt_wrapper=!0,n.extend(e,t[a.name],a.propExt))},n.register=s=function(e,t){if(Array.isArray(e))for(var i=0,r=e.length;i<r;i++)n.register(e[i],t);else{var s,a,l,u,h=e.split("."),c=ht;for(s=0,a=h.length;s<a;s++){var d=pt(c,l=(u=-1!==h[s].indexOf("()"))?h[s].replace("()",""):h[s]);d||(d={name:l,val:{},methodExt:[],propExt:[],type:"object"},c.push(d)),s===a-1?(d.val=t,d.type="function"==typeof t?"function":o.isPlainObject(t)?"object":"other"):c=u?d.methodExt:d.propExt}}},n.registerPlural=a=function(e,t,i){n.register(e,i),n.register(t,(function(){var e=i.apply(this,arguments);return e===this?this:e instanceof n?e.length?Array.isArray(e[0])?new n(e.context,e[0]):e[0]:void 0:e}))};var ft=function(e,t){if(Array.isArray(e)){var i=[];return e.forEach((function(e){var r=ft(e,t);lt(i,r)})),i.filter((function(e){return e}))}if("number"==typeof e)return[t[e]];var r=t.map((function(e){return e.nTable}));return o(r).filter(e).map((function(){var e=r.indexOf(this);return t[e]})).toArray()};s("tables()",(function(e){return null!=e?new n(ft(e,this.context)):this})),s("table()",(function(e){var t=this.tables(e),i=t.context;return i.length?new n(i[0]):t}
1)),[["nodes","node","nTable"],["body","body","nTBody"],["header","header","nTHead"],["footer","footer","nTFoot"]].forEach((function(e){a("tables()."+e[0]+"()","table()."+e[1]+"()",(function(){return this.iterator("table",(function(t){return t[e[2]]}),1)}))})),[["header","aoHeader"],["footer","aoFooter"]].forEach((function(e){s("table()."+e[0]+".structure()",(function(t){var i=this.columns(t).indexes().flatten().toArray(),r=this.context[0],n=de(r,r[e[1]],i),s=i.slice().sort((function(e,t){return e-t}));return n.map((function(e){return i.map((function(t){return e[s.indexOf(t)]}))}))}))})),a("tables().containers()","table().container()",(function(){return this.iterator("table",(function(e){return e.nTableWrapper}),1)})),s("tables().every()",(function(e){var t=this;return this.iterator("table",(function(i,r){e.call(t.table(r),r)}))})),s("caption()",(function(e,t){var i=this.context;if(void 0===e){var r=i[0].captionNode;return r&&i.length?r.innerHTML:null}return this.iterator("table",(function(i){var r=o(i.nTable),n=o(i.captionNode),s=o(i.nTableWrapper);if(n.length||(n=o("<caption/>").html(e),i.captionNode=n[0],t||(r.prepend(n),t=n.css("caption-side"))),n.html(e),t&&(n.css("caption-side",t),n[0]._captionSide=t),s.find("div.dataTables_scroll").length){var a="top"===t?"Head":"Foot";s.find("div.dataTables_scroll"+a+" table").prepend(n)}else r.prepend(n)}),1)})),s("caption.node()",(function(){var e=this.context;return e.length?e[0].captionNode:null})),s("draw()",(function(e){return this.iterator("table",(function(t){"page"===e?fe(t):("string"==typeof e&&(e="full-hold"!==e),ge(t,!1===e))}))})),s("page()",(function(e){return void 0===e?this.page.info().page:this.iterator("table",(function(t){Le(t,e)}))}
1)),s("page.info()",(function(){if(0!==this.context.length){var e=this.context[0],t=e._iDisplayStart,i=e.oFeatures.bPaginate?e._iDisplayLength:-1,r=e.fnRecordsDisplay(),n=-1===i;return{page:n?0:Math.floor(t/i),pages:n?1:Math.ceil(r/i),start:t,end:e.fnDisplayEnd(),length:i,recordsTotal:e.fnRecordsTotal(),recordsDisplay:r,serverSide:"ssp"===at(e)}}})),s("page.len()",(function(e){return void 0===e?0!==this.context.length?this.context[0]._iDisplayLength:void 0:this.iterator("table",(function(t){je(t,e)}))}));var gt=function(e,t,i){if(i){var r=new n(e);r.one("draw",(function(){i(r.ajax.json())}))}if("ssp"==at(e))ge(e,t);else{Me(e,!0);var s=e.jqXHR;s&&4!==s.readyState&&s.abort(),xe(e,{},(function(i){se(e);for(var r=De(e,i),n=0,s=r.length;n<s;n++)X(e,r[n]);ge(e,t),Ee(e),Me(e,!1)}))}};s("ajax.json()",(function(){var e=this.context;if(e.length>0)return e[0].json})),s("ajax.params()",(function(){var e=this.context;if(e.length>0)return e[0].oAjaxData})),s("ajax.reload()",(function(e,t){return this.iterator("table",(function(i){gt(i,!1===t,e)}))})),s("ajax.url()",(function(e){var t=this.context;if(void 0===e){if(0===t.length)return;return t=t[0],o.isPlainObject(t.ajax)?t.ajax.url:t.ajax}return this.iterator("table",(function(t){o.isPlainObject(t.ajax)?t.ajax.url=e:t.ajax=e}))})),s("ajax.url().load()",(function(e,t){return this.iterator("table",(function(i){gt(i,!1===t,e)}))}));var mt=function(e,t,i,n,s){var a,o,l,u=[],h=typeof t;for(t&&"string"!==h&&"function"!==h&&void 0!==t.length||(t=[t]),o=0,l=t.length;o<l;o++)(a=(a=i("string"==typeof t[o]?t[o].trim():t[o])).filter((function(e){return null!=e})))&&a.length&&(u=u.concat(a));var c=r.selector[e];if(c.length)for(o=0,l=c.length;o<l;o++)u=c[o](n,s,u);return C(u)},bt=function(e){return e||(e={}),e.filter&&void 0===e.search&&(e.search=e.filter),o.extend({columnOrder:"implied",search:"none",order:"current",page:"all"},e)},vt=function(e){var t=new n(e.context[0]);return e.length&&t.push(e[0]),t.selector=e.selector,t.length&&t[0].length>1&&t[0].splice(1),t},yt=function(e,t){var i,r,n,s=[],a=e.aiDisplay,o=e.aiDisplayMaster,l=t.search,u=t.order,h=t.page;if("ssp"==at(e))return"removed"===l?[]:D(0,o.length);if("current"==h)for(i=e._iDisplayStart,r=e.fnDisplayEnd();i<r;i++)s.push(a[i]);else if("current"==u||"applied"==u){if("none"==l)s=o.slice();else if("applied"==l)s=a.slice();else if("removed"==l){var c={};for(i=0,r=a.length;i<r;i++)c[a[i]]=null;o.forEach((function(e){Object.prototype.hasOwnProperty.call(c,e)||s.push(e)}))}}else if("index"==u||"original"==u)for(i=0,r=e.aoData.length;i<r;i++)e.aoData[i]&&("none"==l||-1===(n=a.indexOf(i))&&"removed"==l||n>=0&&"applied"==l)&&s.push(i);else if("number"==typeof u){var d=qe(e,u,"asc");if("none"===l)s=d;else for(i=0;i<d.length;i++)(-1===(n=a.indexOf(d[i]))&&"removed"==l||n>=0&&"applied"==l)&&s.push(d[i])}return s};s("rows()",(function(e,t){void 0===e?e="":o.isPlainObject(e)&&(t=e,e=""),t=bt(t);var i=this.iterator("table",(function(i){return function(e,t,i){var r,n=mt("row",t,(function(t){var n=b(t),s=e.aoData;if(null!==n&&!i)return[n];if(r||(r=yt(e,i)),null!==n&&-1!==r.indexOf(n))return[n];if(null==t||""===t)return r;if("function"==typeof t)return r.map((function(e){var i=s[e];return t(e,i._aData,i.nTr)?e:null}));if(t.nodeName){var a=t._DT_RowIndex,l=t._DT_CellIndex;if(void 0!==a)return s[a]&&s[a].nTr===t?[a]:[];if(l)return s[l.row]&&s[l.row].nTr===t.parentNode?[l.row]:[];var u=o(t).closest("*[data-dt-row]");return u.length?[u.data("dt-row")]:[]}if("string"==typeof t&&"#"===t.charAt(0)){var h=e.aIds[t.replace(/^#/,"")];if(void 0!==h)return[h.idx]}var c=k(x(e.aoData,r,"nTr"));return o(c).filter(t).map((function(){return this._DT_RowIndex})).toArray()}),e,i);return"current"!==i.order&&"applied"!==i.order||$e(e,n),n}(i,e,t)}),1);return i.selector.rows=e,i.selector.opts=t,i})),s("rows().nodes()",(function(){return this.iterator("row",(function(e,t){return e.aoData[t].nTr||void 0}),1)})),s("rows().data()",(function(){return this.iterator(!0,"rows",(function(e,t){return x(e.aoData,t,"_aData")}),1)})),a("rows().cache()","row().cache()",(function(e){return this.iterator("row",(function(t,i){var r=t.aoData[i];return"search"===e?r._aFilterData:r._aSortData}),1)})),a("rows().invalidate()","row().invalidate()",(function(e){return this.iterator("row",(function(t,i){ae(t,i,e)}))})),a("rows().indexes()","row().index()",(function(){return this.iterator("row",(function(e,t){return t}),1)})),a("rows().ids()","row().id()",(function(e){for(var t=[],i=this.context,r=0,s=i.length;r<s;r++)for(var a=0,o=this[r].length;a<o;a++){var l=i[r].rowIdFn(i[r].aoData[this[r][a]]._aData);t.push((!0===e?"#":"")+l)}return new n(i,t)})),a("rows().remove()","row().remove()",(function(){return this.iterator("row",(function(e,t){var i=e.aoData,r=i[t],n=e.aiDisplayMaster.indexOf(t);-1!==n&&e.aiDisplayMaster.splice(n,1),e._iRecordsDisplay>0&&e._iRecordsDisplay--,nt(e);var s=e.rowIdFn(r._aData);void 0!==s&&delete e.aIds[s],i[t]=null})),this})),s("rows.add()",(function(e){var t=this.iterator("table",(function(t){var i,r,n,s=[];for(r=0,n=e.length;r<n;r++)(i=e[r]).nodeName&&"TR"===i.nodeName.toUpperCase()?s.push(Z(t,i)[0]):s.push(X(t,i));return s}),1),i=this.rows(-1);return i.pop(),lt(i,t),i})),s("row()",(function(e,t){return vt(this.rows(e,t))})),s("row().data()",(function(e){var t=this.context;if(void 0===e)return t.length&&this.length&&this[0].length?t[0].aoData[this[0]]._aData:void 0;var i=t[0].aoData[this[0]];return i._aData=e,Array.isArray(e)&&i.nTr&&i.nTr.id&&re(t[0].rowId)(e,i.nTr.id),ae(t[0],this[0],"data"),this})),s("row().node()",(function(){var e=this.context;if(e.length&&this.length&&this[0].length){var t=e[0].aoData[this[0]];if(t&&t.nTr)return t.nTr}return null})),s("row.add()",(function(e){e instanceof o&&e.length&&(e=e[0]);
1var t=this.iterator("table",(function(t){return e.nodeName&&"TR"===e.nodeName.toUpperCase()?Z(t,e)[0]:X(t,e)}));return this.row(t[0])})),o(document).on("plugin-init.dt",(function(e,t){var i=new n(t);i.on("stateSaveParams.DT",(function(e,t,i){for(var r=t.rowIdFn,n=t.aiDisplayMaster,s=[],a=0;a<n.length;a++){var o=n[a],l=t.aoData[o];l._detailsShow&&s.push("#"+r(l._aData))}i.childRows=s})),i.on("stateLoaded.DT",(function(e,t,r){_t(i,r)})),_t(i,i.state.loaded())}));var _t=function(e,t){t&&t.childRows&&e.rows(t.childRows.map((function(e){return e.replace(/([^:\\]*(?:\\.[^:\\]*)*):/g,"$1\\:")}))).every((function(){rt(e.settings()[0],null,"requestChild",[this])}))},wt=l.util.throttle((function(e){Ze(e[0])}),500),xt=function(e,t){var i=e.context;if(i.length){var r=i[0].aoData[void 0!==t?t:e[0]];r&&r._details&&(r._details.remove(),r._detailsShow=void 0,r._details=void 0,o(r.nTr).removeClass("dt-hasChild"),wt(i))}},Dt=function(e,t){var i=e.context;if(i.length&&e.length){var r=i[0].aoData[e[0]];r._details&&(r._detailsShow=t,t?(r._details.insertAfter(r.nTr),o(r.nTr).addClass("dt-hasChild")):(r._details.detach(),o(r.nTr).removeClass("dt-hasChild")),rt(i[0],null,"childRow",[t,e.row(e[0])]),kt(i[0]),wt(i))}},kt=function(e){var t=new n(e),i=".dt.DT_details",r="draw"+i,s="column-sizing"+i,a="destroy"+i,l=e.aoData;t.off(r+" "+s+" "+a),w(l,"_details").length>0&&(t.on(r,(function(i,r){e===r&&t.rows({page:"current"}).eq(0).each((function(e){var t=l[e];t._detailsShow&&t._details.insertAfter(t.nTr)}))})),t.on(s,(function(t,i){if(e===i)for(var r,n=H(i),s=0,a=l.length;s<a;s++)(r=l[s])&&r._details&&r._details.each((function(){var e=o(this).children("td");1==e.length&&e.attr("colspan",n)}))})),t.on(a,(function(i,r){if(e===r)for(var n=0,s=l.length;n<s;n++)l[n]&&l[n]._details&&xt(t,n)})))},Tt="row().child",Pt=Tt+"()";s(Pt,(function(e,t){var i=this.context;return void 0===e?i.length&&this.length&&i[0].aoData[this[0]]?i[0].aoData[this[0]]._details:void 0:(!0===e?this.child.show():!1===e?xt(this):i.length&&this.length&&function(e,t,i,r){var n=[],s=function(i,r){if(Array.isArray(i)||i instanceof o)for(var a=0,l=i.length;a<l;a++)s(i[a],r);else if(i.nodeName&&"tr"===i.nodeName.toLowerCase())i.setAttribute("data-dt-row",t.idx),n.push(i);else{var u=o("<tr><td></td></tr>").attr("data-dt-row",t.idx).addClass(r);o("td",u).addClass(r).html(i)[0].colSpan=H(e),n.push(u[0])}};s(i,r),t._details&&t._details.detach(),t._details=o(n),t._detailsShow&&t._details.insertAfter(t.nTr)}(i[0],i[0].aoData[this[0]],e,t),this)})),s([Tt+".show()",Pt+".show()"],(function(){return Dt(this,!0),this})),s([Tt+".hide()",Pt+".hide()"],(function(){return Dt(this,!1),this})),s([Tt+".remove()",Pt+".remove()"],(function(){return xt(this),this})),s(Tt+".isShown()",(function(){var e=this.context;return e.length&&this.length&&e[0].aoData[this[0]]&&e[0].aoData[this[0]]._detailsShow||!1}));var St=/^([^:]+)?:(name|title|visIdx|visible)$/,Ct=function(e,t,i,r,n,s){for(var a=[],o=0,l=n.length;o<l;o++)a.push(K(e,n[o],t,s));return a},Ot=function(e,t,i){var r=e.aoHeader,n=e.titleRow,s=null;if(void 0!==i)s=i;else if(!0===n)s=0;else if(!1===n)s=r.length-1;else if(null!==n)s=n;else{for(var a=0;a<r.length;a++)r[a][t].unique&&o("span.dt-column-title",r[a][t].cell).text()&&(s=a);null===s&&(s=0)}return r[s][t].cell};s("columns()",(function(e,t){void 0===e?e="":o.isPlainObject(e)&&(t=e,e=""),t=bt(t);var i=this.iterator("table",(function(i){return function(e,t,i){var r,n,s=e.aoColumns,a=function(e){for(var t=[],i=0;i<e.length;i++)for(var r=0;r<e[i].length;r++){var n=e[i][r].cell;t.includes(n)||t.push(n)}return t}(e.aoHeader),l=mt("column",t,(function(t){var l=b(t);if(""===t)return D(s.length);if(null!==l)return[l>=0?l:s.length+l];if("function"==typeof t){var u=yt(e,i);return s.map((function(i,r){return t(r,Ct(e,r,0,0,u),Ot(e,r))?r:null}))}var h="string"==typeof t?t.match(St):"";if(h)switch(h[2]){case"visIdx":case"visible":if(h[1]&&h[1].match(/^\d+$/)){var c=parseInt(h[1],10);if(c<0){var d=s.map((function(e,t){return e.bVisible?t:null}));return[d[d.length+c]]}return[F(e,c)]}return s.map((function(e,t){return e.bVisible?h[1]?o(a[t]).filter(h[1]).length>0?t:null:t:null}));case"name":return r||(r=w(s,"sName")),r.map((function(e,t){return e===h[1]?t:null}));case"title":return n||(n=w(s,"sTitle")),n.map((function(e,t){return e===h[1]?t:null}));default:return[]}if(t.nodeName&&t._DT_CellIndex)return[t._DT_CellIndex.column];var p=o(a).filter(t).map((function(){return Y(this)})).toArray().sort((function(e,t){return e-t}));if(p.length||!t.nodeName)return p;var f=o(t).closest("*[data-dt-column]");return f.length?[f.data("dt-column")]:[]}),e,i);return i.columnOrder&&"index"===i.columnOrder?l.sort((function(e,t){return e-t})):l}(i,e,t)}),1);return i.selector.cols=e,i.selector.opts=t,i})),a("columns().header()","column().header()",(function(e){return this.iterator("column",(function(t,i){return Ot(t,i,e)}),1)})),a("columns().footer()","column().footer()",(function(e){return this.iterator("column",(function(t,i){return t.aoFooter.length?t.aoFooter[void 0!==e?e:0][i].cell:null}),1)})),a("columns().data()","column().data()",(function(){return this.iterator("column-rows",Ct,1)})),a("columns().render()","column().render()",(function(e){return this.iterator("column-rows",(function(t,i,r,n,s){return Ct(t,i,0,0,s,e)}),1)})),a("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].mData}),1)})),a("columns().cache()","column().cache()",(function(e){return this.iterator("column-rows",(function(t,i,r,n,s){return x(t.aoData,s,"search"===e?"_aFilterData":"_aSortData",i)}),1)})),a("columns().init()","column().init()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t]}),1)})),a("columns().names()","column().name()",(function(){return this.iterator("column",(function(e,t){return e.aoColumns[t].sName}),1)})),a("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(e,t,i,r,n){return x(e.aoData,n,"anCells",t)}),1)})),a("columns().titles()","column().title()",(function(e,t){return this.iterator("column",(function(i,r){"number"==typeof e&&(t=e,e=void 0);var n=o("span.dt-column-title",this.column(r).header(t));return void 0!==e?(n.html(e),this):n.html()}),1)})),a("columns().types()","column().type()",(function(){return this.iterator("column",(function(e,t){var i=e.aoColumns[t].sType;return i||W(e),i}),1)})),a("columns().visible()","column().visible()",(function(e,t){var i=this,r=[],n=this.iterator("column",(function(t,i){if(void 0===e)return t.aoColumns[i].bVisible;(function(e,t,i){var r,n,s,a,l=e.aoColumns,u=l[t],h=e.aoData;if(void 0===i)return u.bVisible;if(u.bVisible===i)return!1;if(i){var c=w(l,"bVisible").indexOf(!0,t+1);for(n=0,s=h.length;n<s;n++)h[n]&&(a=h[n].nTr,r=h[n].anCells,a&&a.insertBefore(r[t],r[c]||null))}else o(w(e.aoData,"anCells",t)).detach();return u.bVisible=i,He(e),!0})(t,i,e)&&r.push(i)}));return void 0!==e&&this.iterator("table",(function(n){pe(n,n.aoHeader),pe(n,n.aoFooter),n.aiDisplay.length||o(n.nTBody).find("td[colspan]").attr("colspan",H(n)),Ze(n),i.iterator("column",(function(i,n){r.includes(n)&&rt(i,null,"column-visibility",[i,n,e,t])})),r.length&&(void 0===t||t)&&i.columns.adjust()})),n})),a("columns().widths()","column().width()",(function(){var e=this.columns(":visible").count(),t=o("<tr>").html("<td>"+Array(e).join("</td><td>")+"</td>");o(this.table().body()).append(t);var i=t.children().map((function(){return o(this).outerWidth()}));return t.remove(),this.iterator("column",(function(e,t){var r=z(e,t);return null!==r?i[r]:0}),1)})),a("columns().indexes()","column().index()",(function(e){return this.iterator("column",(function(t,i){return"visible"===e?z(t,i):i}),1)})),s("columns.adjust()",(function(){return this.iterator("table",(function(e){e.containerWidth=-1,N(e)}),1)})),s("column.index()",(function(e,t){if(0!==this.context.length){var i=this.context[0];if("fromVisible"===e||"toData"===e)return F(i,t);if("fromData"===e||"toVisible"===e)return z(i,t)}})),s("column()",(function(e,t){return vt(this.columns(e,t))}));var At,Et;function jt(e,t){o(e).find("span.dt-column-order").remove(),o(e).find("span.dt-column-title").each((function(){var e=o(this).html();o(this).parent().parent().append(e),o(this).remove()})),o(e).find("div.dt-column-"+t).remove(),o("th, td",e).removeAttr("data-dt-column")}s("cells()",(function(e,t,i){if(o.isPlainObject(e)&&(void 0===e.row?(i=e,e=null):(i=t,t=null)),o.isPlainObject(t)&&(i=t,t=null),null==t)return this.iterator("table",(function(t){return function(e,t,i){var r,n,s,a,l,u,h,c=e.aoData,d=yt(e,i),p=k(x(c,d,"anCells")),f=
1o(O([],p)),g=e.aoColumns.length;return mt("cell",t,(function(t){var i="function"==typeof t;if(null==t||i){for(n=[],s=0,a=d.length;s<a;s++)for(r=d[s],l=0;l<g;l++)u={row:r,column:l},i?(h=c[r],t(u,K(e,r,l),h.anCells?h.anCells[l]:null)&&n.push(u)):n.push(u);return n}if(o.isPlainObject(t))return void 0!==t.column&&void 0!==t.row&&-1!==d.indexOf(t.row)?[t]:[];var p=f.filter(t).map((function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}})).toArray();return p.length||!t.nodeName?p:(h=o(t).closest("*[data-dt-row]")).length?[{row:h.data("dt-row"),column:h.data("dt-column")}]:[]}),e,i)}(t,e,bt(i))}));var r,n,s,a,l=i?{page:i.page,order:i.order,search:i.search}:{},u=this.columns(t,l),h=this.rows(e,l),c=this.iterator("table",(function(e,t){var i=[];for(r=0,n=h[t].length;r<n;r++)for(s=0,a=u[t].length;s<a;s++)i.push({row:h[t][r],column:u[t][s]});return i}),1),d=i&&i.selected?this.cells(c,i):c;return o.extend(d.selector,{cols:t,rows:e,opts:i}),d})),a("cells().nodes()","cell().node()",(function(){return this.iterator("cell",(function(e,t,i){var r=e.aoData[t];return r&&r.anCells?r.anCells[i]:void 0}),1)})),s("cells().data()",(function(){return this.iterator("cell",(function(e,t,i){return K(e,t,i)}),1)})),a("cells().cache()","cell().cache()",(function(e){return e="search"===e?"_aFilterData":"_aSortData",this.iterator("cell",(function(t,i,r){return t.aoData[i][e][r]}),1)})),a("cells().render()","cell().render()",(function(e){return this.iterator("cell",(function(t,i,r){return K(t,i,r,e)}),1)})),a("cells().indexes()","cell().index()",(function(){return this.iterator("cell",(function(e,t,i){return{row:t,column:i,columnVisible:z(e,i)}}),1)})),a("cells().invalidate()","cell().invalidate()",(function(e){return this.iterator("cell",(function(t,i,r){ae(t,i,e,r)}))})),s("cell()",(function(e,t,i){return vt(this.cells(e,t,i))})),s("cell().data()",(function(e){var t,i,r,n,s,a,o=this.context,l=this[0];return void 0===e?o.length&&l.length?K(o[0],l[0].row,l[0].column):void 0:(t=o[0],i=l[0].row,r=l[0].column,n=e,s=t.aoColumns[r],a=t.aoData[i]._aData,s.fnSetData(a,n,{settings:t,row:i,col:r}),ae(o[0],l[0].row,"data",l[0].column),this)})),s("order()",(function(e,t){var i=this.context,r=Array.prototype.slice.call(arguments);return void 0===e?0!==i.length?i[0].aaSorting:void 0:("number"==typeof e?e=[[e,t]]:r.length>1&&(e=r),this.iterator("table",(function(t){var i=[];We(t,i,e),t.aaSorting=i})))})),s("order.listener()",(function(e,t,i){return this.iterator("table",(function(r){Ue(r,e,{},t,i)}))})),s("order.fixed()",(function(e){if(!e){var t=this.context,i=t.length?t[0].aaSortingFixed:void 0;return Array.isArray(i)?{pre:i}:i}return this.iterator("table",(function(t){t.aaSortingFixed=o.extend(!0,{},e)}))})),s(["columns().order()","column().order()"],(function(e){var t=this;return e?this.iterator("table",(function(i,r){i.aaSorting=t[r].map((function(t){return[t,e]}))})):this.iterator("column",(function(e,t){for(var i=Ge(e),r=0,n=i.length;r<n;r++)if(i[r].col===t)return i[r].dir;return null}),1)})),a("columns().orderable()","column().orderable()",(function(e){return this.iterator("column",(function(t,i){var r=t.aoColumns[i];return e?r.asSorting:r.bSortable}),1)})),s("processing()",(function(e){return this.iterator("table",(function(t){Me(t,e)}))})),s("search()",(function(e,t,i,r){var n=this.context;return void 0===e?0!==n.length?n[0].oPreviousSearch.search:void 0:this.iterator("table",(function(n){n.oFeatures.bFilter&&Te(n,"object"==typeof t?o.extend(n.oPreviousSearch,t,{search:e}):o.extend(n.oPreviousSearch,{search:e,regex:null!==t&&t,smart:null===i||i,caseInsensitive:null===r||r}))}))})),s("search.fixed()",(function(e,t){var i=this.iterator(!0,"table",(function(i){var r=i.searchFixed;return e?void 0===t?r[e]:(null===t?delete r[e]:r[e]=t,this):Object.keys(r)}));return void 0!==e&&void 0===t?i[0]:i})),a("columns().search()","column().search()",(function(e,t,i,r){return this.iterator("column",(function(n,s){var a=n.aoPreSearchCols;if(void 0===e)return a[s].search;n.oFeatures.bFilter&&("object"==typeof t?o.extend(a[s],t,{search:e}):o.extend(a[s],{search:e,regex:null!==t&&t,smart:null===i||i,caseInsensitive:null===r||r}),Te(n,n.oPreviousSearch))}))})),s(["columns().search.fixed()","column().search.fixed()"],(function(e,t){var i=this.iterator(!0,"column",(function(i,r){var n=i.aoColumns[r].searchFixed;return e?void 0===t?n[e]||null:(null===t?delete n[e]:n[e]=t,this):Object.keys(n)}));return void 0!==e&&void 0===t?i[0]:i})),s("state()",(function(e,t){if(!e)return this.context.length?this.context[0].oSavedState:null;var i=o.extend(!0,{},e);return this.iterator("table",(function(e){!1!==t&&(i.time=+new Date+100),Ke(e,i,(function(){}))}))})),s("state.clear()",(function(){return this.iterator("table",(function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})}))})),s("state.loaded()",(function(){return this.context.length?this.context[0].oLoadedState:null})),s("state.save()",(function(){return this.iterator("table",(function(e){Ze(e)}))})),l.use=function(e,t){var i="string"==typeof e?t:e,r="string"==typeof t?t:e;if(void 0===i&&"string"==typeof r)switch(r){case"lib":case"jq":return o;case"win":return window;case"datetime":return l.DateTime;case"luxon":return It;case"moment":return Bt;case"bootstrap":return At||window.bootstrap;
1case"foundation":return Et||window.Foundation;default:return null}"lib"===r||"jq"===r||i&&i.fn&&i.fn.jquery?o=i:"win"===r||i&&i.document?(window=i,document=i.document):"datetime"===r||i&&"DateTime"===i.type?l.DateTime=i:"luxon"===r||i&&i.FixedOffsetZone?It=i:"moment"===r||i&&i.isMoment?Bt=i:"bootstrap"===r||i&&i.Modal&&"modal"===i.Modal.NAME?At=i:("foundation"===r||i&&i.Reveal)&&(Et=i)},l.factory=function(e,t){var i=!1;return e&&e.document&&(window=e,document=e.document),t&&t.fn&&t.fn.jquery&&(o=t,i=!0),i},l.versionCheck=function(e,t){for(var i,r,n=t?t.split("."):l.version.split("."),s=e.split("."),a=0,o=s.length;a<o;a++)if((i=parseInt(n[a],10)||0)!==(r=parseInt(s[a],10)||0))return i>r;return!0},l.isDataTable=function(e){var t=o(e).get(0),i=!1;return e instanceof l.Api||(o.each(l.settings,(function(e,r){var n=r.nScrollHead?o("table",r.nScrollHead)[0]:null,s=r.nScrollFoot?o("table",r.nScrollFoot)[0]:null;r.nTable!==t&&n!==t&&s!==t||(i=!0)})),i)},l.tables=function(e){var t=!1;o.isPlainObject(e)&&(t=e.api,e=e.visible);var i=l.settings.filter((function(t){return!!(!e||e&&o(t.nTable).is(":visible"))})).map((function(e){return e.nTable}));return t?new n(i):i},l.camelToHungarian=j,s("$()",(function(e,t){var i=this.rows(t).nodes(),r=o(i);return o([].concat(r.filter(e).toArray(),r.find(e).toArray()))})),o.each(["on","one","off"],(function(e,t){s(t+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=e[0].split(/\s/).map((function(e){return e.match(/\.dt\b/)?e:e+".dt"})).join(" ");var i=o(this.tables().nodes());return i[t].apply(i,e),this}))})),s("clear()",(function(){return this.iterator("table",(function(e){se(e)}))})),s("error()",(function(e){return this.iterator("table",(function(t){Je(t,0,e)}))})),s("settings()",(function(){return new n(this.context,this.context)})),s("init()",(function(){var e=this.context;return e.length?e[0].oInit:null})),s("data()",(function(){return this.iterator("table",(function(e){return w(e.aoData,"_aData")})).flatten()})),s("trigger()",(function(e,t,i){return this.iterator("table",(function(r){return rt(r,null,e,t,i)})).flatten()})),s("ready()",(function(e){var t=this.context;return e?this.tables().every((function(){var t=this;this.context[0]._bInitComplete?e.call(t):this.on("init.dt.DT",(function(){e.call(t)}))})):t.length?t[0]._bInitComplete||!1:null})),s("destroy()",(function(e){return e=e||!1,this.iterator("table",(function(t){var i=t.oClasses,r=t.nTable,s=t.nTBody,a=t.nTHead,u=t.nTFoot,h=o(r),c=o(s),d=o(t.nTableWrapper),p=t.aoData.map((function(e){return e?e.nTr:null})),f=i.order;t.bDestroying=!0,rt(t,"aoDestroyCallback","destroy",[t],!0),e||new n(t).columns().visible(!0),t.resizeObserver&&t.resizeObserver.disconnect(),d.off(".DT").find(":not(tbody *)").off(".DT"),o(window).off(".DT-"+t.sInstance),r!=a.parentNode&&(h.children("thead").detach(),h.append(a)),u&&r!=u.parentNode&&(h.children("tfoot").detach(),h.append(u)),jt(a,"header"),jt(u,"footer"),t.colgroup.remove(),t.aaSorting=[],t.aaSortingFixed=[],Ye(t),o(h).find("th, td").removeClass(o.map(l.ext.type.className,(function(e){return e})).join(" ")),o("th, td",a).removeClass(f.none+" "+f.canAsc+" "+f.canDesc+" "+f.isAsc+" "+f.isDesc).css("width","").removeAttr("aria-sort"),c.children().detach(),c.append(p);var g=t.nTableWrapper.parentNode,m=t.nTableWrapper.nextSibling,b=e?"remove":"detach";h[b](),d[b](),!e&&g&&(g.insertBefore(r,m),h.css("width",t.sDestroyWidth).removeClass(i.table));var v=l.settings.indexOf(t);-1!==v&&l.settings.splice(v,1)}))})),o.each(["column","row","cell"],(function(e,t){s(t+"s().every()",(function(e){var i,r=this.selector.opts,n=this,s=0;return this.iterator("every",(function(a,o,l){i=n[t](o,r),"cell"===t?e.call(i,i[0][0].row,i[0][0].column,l,s):e.call(i,o,l,s),s++}))}))})),s("i18n()",(function(e,t,i){var r=this.context[0],n=ie(e)(r.oLanguage);return void 0===n&&(n=t),o.isPlainObject(n)&&(n=void 0!==i&&void 0!==n[i]?n[i]:n._),"string"==typeof n?n.replace("%d",i):n})),l.version="2.3.0",l.settings=[],l.models={},l.models.oSearch={caseInsensitive:!0,search:"",regex:!1,smart:!0,return:!1},l.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,src:null,idx:-1,displayData:null},l.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,f
vendor: 5,425 bytes, line 1
1nSetData:null,mData:null,mRender:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null,maxLenString:null,searchFixed:null},l.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],bAutoWidth:!0,bDeferRender:!0,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:null,titleRow:null,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnStateLoadCallback:function(e){try{return JSON.parse((-1===e.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(-1===e.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{orderable:": Activate to sort",orderableReverse:": Activate to invert sorting",orderableRemove:": Activate to remove sorting",paginate:{first:"First",last:"Last",next:"Next",previous:"Previous",number:""}},oPaginate:{sFirst:"«",sLast:"»",sNext:"›",sPrevious:"‹"},entries:{_:"entries",1:"entry"},lengthLabels:{"-1":"All"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ _ENTRIES-TOTAL_",sInfoEmpty:"Showing 0 to 0 of 0 _ENTRIES-TOTAL_",sInfoFiltered:"(filtered from _MAX_ total _ENTRIES-MAX_)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"_MENU_ _ENTRIES_ per page",sLoadingRecords:"Loading...",sProcessing:"",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},orderDescReverse:!0,oSearch:o.extend({},l.models.oSearch),layout:{topStart:"pageLength",topEnd:"search",bottomStart:"info",bottomEnd:"paging"},sDom:null,searchDelay:null,sPaginationType:"",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId",caption:null,iDeferLoading:null,on:null},E(l.defaults),l.defaults.column={aDataSort:null,iDataSort:-1,ariaTitle:"",asSorting:["asc","desc",""],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},E(l.defaults.column),l.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:!0,bLengthChange:!0,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollbarLeft:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},searchFixed:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",pagingControls:0,iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,bAjaxDataGet:!0,jqXHR:null,json:void 0,oAjaxData:void 0,sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==at(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==at(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,i=t+e,r=this.aiDisplay.length,n=this.oFeatures,s=n.bPaginate;return n.bServerSide?!1===s||-1===e?t+r:Math.min(t+e,this._iRecordsDisplay):!s||i>r||-1===e?r:i},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null,caption:"",captionNode:null,colgroup:null,deferLoading:null,typeDetect:!0,resizeObserver:null,containerWidth:-1,orderDescReverse:null,orderIndicators:!0,orderHandler:!0,titleRow:null};var Lt=l.ext.pager;o.extend(Lt,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(){return["numbers"]},simple_numbers:function(){return["previous","numbers","next"]},full_numbers:function(){return["first","previous","numbers","next","last"]},first_last:function(){return["first","last"]},first_last_numbers:function(){return["first","numbers","last"]},_numbers:ei,numbers_length:7}),o.extend(!0,l.ext.renderer,{pagingButton:{_:function(e,t,i,r,n){var s,a=e.oClasse
1s.paging,l=[a.button];return r&&l.push(a.active),n&&l.push(a.disabled),{display:s="ellipsis"===t?o('<span class="ellipsis"></span>').html(i)[0]:o("<button>",{class:l.join(" "),role:"link",type:"button"}).html(i),clicker:s}}},pagingContainer:{_:function(e,t){return t}}});var Mt=function(e,t){return function(i){return m(i)||"string"!=typeof i||(i=i.replace(h," "),e&&(i=T(i)),t&&(i=S(i,!1))),i}};function Rt(e,t,i,r,n){return Bt?e[t](n):It?e[i](n):r?e[r](n):e}var It,Bt,Nt=!1;function Ft(e,t,i){var r;if(window.luxon&&!It&&(It=window.luxon),window.moment&&!Bt&&(Bt=window.moment),Bt){if(!(r=Bt.utc(e,t,i,!0)).isValid())return null}else if(It){if(!(r=t&&"string"==typeof e?It.DateTime.fromFormat(e,t):It.DateTime.fromISO(e)).isValid)return null;r=r.setLocale(i)}else t?(Nt||alert("DataTables warning: Formatted date without Moment.js or Luxon - https://datatables.net/tn/17"),Nt=!0):r=new Date(e);return r}function zt(e){return function(t,i,r,n){0===arguments.length?(r="en",i=null,t=null):1===arguments.length?(r="en",i=t,t=null):2===arguments.length&&(r=i,i=t,t=null);var s="datetime"+(i?"-"+i:"");return l.ext.type.order[s+"-pre"]||l.type(s,{detect:function(e){return e===s&&s},order:{pre:function(e){return e.valueOf()}},className:"dt-right"}),function(a,o){if(null==a)if("--now"===n){var l=new Date;a=new Date(Date.UTC(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds()))}else a="";if("type"===o)return s;if(""===a)return"sort"!==o?"":Ft("0000-01-01 00:00:00",null,r);if(null!==i&&t===i&&"sort"!==o&&"type"!==o&&!(a instanceof Date))return a;var u=Ft(a,t,r);if(null===u)return a;
1if("sort"===o)return u;var h=null===i?Rt(u,"toDate","toJSDate","")[e]():Rt(u,"format","toFormat","toISOString",i);return"display"===o?P(h):h}}}var Ht=",",Ut=".";if(void 0!==window.Intl)try{for(var $t=(new Intl.NumberFormat).formatToParts(100000.1),Wt=0;Wt<$t.length;Wt++)"group"===$t[Wt].type?Ht=$t[Wt].value:"decimal"===$t[Wt].type&&(Ut=$t[Wt].value)}catch(e){}l.datetime=function(e,t){var i="datetime-"+e;t||(t="en"),l.ext.type.order[i]||l.type(i,{detect:function(r){var n=Ft(r,e,t);return!(""!==r&&!n)&&i},order:{pre:function(i){return Ft(i,e,t)||0}},className:"dt-right"})},l.render={date:zt("toLocaleDateString"),datetime:zt("toLocaleString"),time:zt("toLocaleTimeString"),number:function(e,t,i,r,n){return null==e&&(e=Ht),null==t&&(t=Ut),{display:function(s){if("number"!=typeof s&&"string"!=typeof s)return s;if(""===s||null===s)return s;var a=s<0?"-":"",o=parseFloat(s),l=Math.abs(o);if(l>=1e11||l<1e-4&&0!==l){var u=o.toExponential(i).split(/e\+?/);return u[0]+" x 10<sup>"+u[1]+"</sup>"}if(isNaN(o))return P(s);o=o.toFixed(i),s=Math.abs(o);var h=parseInt(s,10),c=i?t+(s-h).toFixed(i).substring(2):"";return 0===h&&0===parseFloat(c)&&(a=""),a+(r||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+c+(n||"")}}},text:function(){return{display:P,filter:P}}};var Gt=l.ext.type;l.type=function(e,t,i){if(!t)return{className:Gt.className[e],detect:Gt.detect.find((function(t){return t._name===e})),order:{pre:Gt.order[e+"-pre"],asc:Gt.order[e+"-asc"],desc:Gt.order[e+"-desc"]},render:Gt.render[e],search:Gt.search[e]};var r=function(t,i){Gt[t][e]=i},n=function(t){Object.defineProperty(t,"_name",{value:e});var i=Gt.detect.findIndex((function(t){return t._name===e}));-1===i?Gt.detect.unshift(t):Gt.detect.splice(i,1,t)},s=function(t){Gt.order[e+"-pre"]=t.pre,Gt.order[e+"-asc"]=t.asc,Gt.order[e+"-desc"]=t.desc};void 0===i&&(i=t,t=null),"className"===t?r("className",i):"detect"===t?n(i):"order"===t?s(i):"render"===t?r("render",i):"search"===t?r("search",i):t||(i.className&&r("className",i.className),void 0!==i.detect&&n(i.detect),i.order&&s(i.order),void 0!==i.render&&r("render",i.render),void 0!==i.search&&r("search",i.search))},l.types=function(){return Gt.detect.map((function(e){return e._name}))};var qt=function(e,t){return e=null!=e?e.toString().toLowerCase():"",t=null!=t?t.toString().toLowerCase():"",e.localeCompare(t,navigator.languages[0]||navigator.language,{numeric:!0,ignorePunctuation:!0})},Vt=function(e,t){return e=T(e),t=T(t),qt(e,t)};l.type("string",{detect:function(){return"string"},order:{pre:function(e){return m(e)&&"boolean"!=typeof e?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""}},search:Mt(!1,!0)}),l.type("string-utf8",{detect:{allOf:function(e){return!0},oneOf:function(e){return!m(e)&&navigator.languages&&"string"==typeof e&&e.match(/[^\x00-\x7F]/)}},order:{asc:qt,desc:function(e,t){return-1*qt(e,t)}},search:Mt(!1,!0)}),l.type("html",{detect:{allOf:function(e){return m(e)||"string"==typeof e&&-1!==e.indexOf("<")},oneOf:function(e){return!m(e)&&"string"==typeof e&&-1!==e.indexOf("<")}},order:{pre:function(e){return m(e)?"":e.replace?T(e).trim().toLowerCase():e+""}},search:Mt(!0,!0)}),l.type("html-utf8",{detect:{allOf:function(e){return m(e)||"string"==typeof e&&-1!==e.indexOf("<")},oneOf:function(e){return navigator.languages&&!m(e)&&"string"==typeof e&&-1!==e.indexOf("<")&&"string"==typeof e&&e.match(/[^\x00-\x7F]/)}},order:{asc:Vt,desc:function(e,t){return-1*Vt(e,t)}},search:Mt(!0,!0)}),l.type("date",{className:"dt-type-date",detect:{allOf:function(e){if(e&&!(e instanceof Date)&&!p.test(e))return null;var t=Date.parse(e);return null!==t&&!isNaN(t)||m(e)},oneOf:function(e){return e instanceof Date||"string"==typeof e&&p.test(e)}},order:{pre:function(e){var t=Date.parse(e);return isNaN(t)?-1/0:t}}}),l.type("html-num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,t){var i=t.oLanguage.sDecimal;return _(e,i,!0,!1)},oneOf:function(e,t){var i=t.oLanguage.sDecimal;return _(e,i,!0,!1)}},order:{pre:function(e,t){var i=t.oLanguage.sDecimal;return Yt(e,i,c,g)}},search:Mt(!0,!0)}),l.type("html-num",{className:"dt-type-numeric",detect:{allOf:function(e,t){var i=t.oLanguage.sDecimal;return _(e,i,!1,!0)},oneOf:function(e,t){var i=t.oLanguage.sDecimal;return _(e,i,!1,!1)}},order:{pre:function(e,t){var i=t.oLanguage.sDecimal;return Yt(e,i,c)}},search:Mt(!0,!0)}),l.type("num-fmt",{className:"dt-type-numeric",detect:{allOf:function(e,t){var i=t.oLanguage.sDecimal;return y(e,i,!0,!0)},oneOf:function(e,t){var i=t.oLanguage.sDecimal;return y(e,i,!0,!1)}},order:{pre:function(e,t){var i=t.oLanguage.sDecimal;return Yt(e,i,g)}}}),l.type("num",{className:"dt-type-numeric",detect:{allOf:function(e,t){var i=t.oLanguage.sDecimal;return y(e,i,!1,!0)},oneOf:function(e,t){var i=t.oLanguage.sDecimal;return y(e,i,!1,!1)}},order:{pre:function(e,t){var i=t.oLanguage.sDecimal;return Yt(e,i)}}});var Yt=function(e,t,i,r){if(0!==e&&(!e||"-"===e))return-1/0;var n=typeof e;return"number"===n||"bigint"===n?e:(t&&(e=v(e,t)),e.replace&&(i&&(e=e.replace(i,"")),r&&(e=e.replace(r,""))),1*e)};function Xt(e,t,i){i&&(e[t]=i)}o.extend(!0,l.ext.renderer,{footer:{_:function(e,t,i){t.addClass(i.tfoot.cell)}},header:{_:function(e,t,i){t.addClass(i.thead.cell),e.oFeatures.bSort||t.addClass(i.order.none);var r=e.titleRow,n=t.closest("thead").find("tr"),s=t.parent().index();"disable"===t.attr("data-dt-order")||"disable"===t.parent().attr("data-dt-order")||!0===r&&0!==s||!1===r&&s!==n.length-1||"number"==typeof r&&s!==r||o(e.nTable).on("order.dt.DT column-visibility.dt.DT",(function(r,n,s){if(e===n){var a=n.sortDetails;if(a){var o=w(a,"col");if("column-visibility"!==r.type||o.includes(s)){var l,u=i.order,h=n.api.columns(t),c=e.aoColumns[h.flatten()[0]],d=h.orderable().includes(!0),p="",f=h.indexes(),g=h.orderable(!0).flatten(),m=e.iTabIndex,b=n.orderHandler&&d;t.removeClass(u.isAsc+" "+u.isDesc).toggleClass(u.none,!d).toggleClass(u.canAsc,b&&g.includes("asc")).toggleClass(u.canDesc,b&&g.includes("desc"));var v=!0;for(l=0;l<f.length;l++)o.includes(f[l])||(v=!1);if(v){var y=h.order();t.addClass(y.includes("asc")?u.isAsc:""+y.includes("desc")?u.isDesc:"")}var _=-1;for(l=0;l<o.length;l++)if(e.aoColumns[o[l]].bVisible){_=o[l];break}if(f[0]==_){var x=a[0],D=c.asSorting;t.attr("aria-sort","asc"===x.dir?"ascending":"descending"),p=D[x.index+1]?"Reverse":"Remove"}else t.removeAttr("aria-sort");if(d){var k=t.find(".dt-column-order");k.attr("role","button").attr("aria-label",d?c.ariaTitle+n.api.i18n("oAria.orderable"+p):c.ariaTitle),-1!==m&&k.attr("tabindex",m)}}}}}))}}
1,layout:{_:function(e,t,i){var r=e.oClasses.layout,n=o("<div/>").attr("id",i.id||null).addClass(i.className||r.row).appendTo(t);l.ext.renderer.layout._forLayoutRow(i,(function(e,t){if("id"!==e&&"className"!==e){var i="";t.table&&(n.addClass(r.tableRow),i+=r.tableCell+" "),i+="start"===e?r.start:"end"===e?r.end:r.full,o("<div/>").attr({id:t.id||null,class:t.className?t.className:r.cell+" "+i}).append(t.contents).appendTo(n)}}))},_forLayoutRow:function(e,t){var i=function(e){switch(e){case"":return 0;case"start":return 1;case"end":return 2;default:return 3}};Object.keys(e).sort((function(e,t){return i(e)-i(t)})).forEach((function(i){t(i,e[i])}))}}}),l.feature={},l.feature.register=function(e,t,i){l.ext.features[e]=t,i&&r.feature.push({cFeature:i,fnInit:t})},l.feature.register("div",(function(e,t){var i=o("<div>")[0];return t&&(Xt(i,"className",t.className),Xt(i,"id",t.id),Xt(i,"innerHTML",t.html),Xt(i,"textContent",t.text)),i})),l.feature.register("info",(function(e,t){if(!e.oFeatures.bInfo)return null;var i=e.oLanguage,r=e.sTableId,n=o("<div/>",{class:e.oClasses.info.container});return t=o.extend({callback:i.fnInfoCallback,empty:i.sInfoEmpty,postfix:i.sInfoPostFix,search:i.sInfoFiltered,text:i.sInfo},t),e.aoDrawCallback.push((function(e){!function(e,t,i){var r=e._iDisplayStart+1,n=e.fnDisplayEnd(),s=e.fnRecordsTotal(),a=e.fnRecordsDisplay(),o=a?t.text:t.empty;a!==s&&(o+=" "+t.search);o+=t.postfix,o=ot(e,o),t.callback&&(o=t.callback.call(e.oInstance,e,r,n,s,a,o));i.html(o),rt(e,null,"info",[e,i[0],o])}(e,t,n)})),e._infoEl||(n.attr({"aria-live":"polite",id:r+"_info",role:"status"}),o(e.nTable).attr("aria-describedby",r+"_info"),e._infoEl=n),n}),"i");var Zt=0;function Kt(e){var t=[];return e.numbers&&t.push("numbers"),e.previousNext&&(t.unshift("previous"),t.push("next")),e.firstLast&&(t.unshift("first"),t.push("last")),t}function Jt(e,t,i){if(e._bInitComplete){var r=i.type?l.ext.pager[i.type]:Kt,n=e.oLanguage.oAria.paginate||{},s=e._iDisplayStart,a=e._iDisplayLength,u=e.fnRecordsDisplay(),h=-1===a,c=h?0:Math.ceil(s/a),d=h?1:Math.ceil(u/a),p=[],f=[],g=r(i).map((function(e){return"numbers"===e?ei(c,d,i.buttons,i.boundaryNumbers):e}));p=p.concat.apply(p,g);for(var m=0;m<p.length;m++){var b=p[m],v=Qt(e,b,c,d),y=st(e,"pagingButton")(e,b,v.display,v.active,v.disabled),_="string"==typeof b?n[b]:n.number?n.number+(b+1):null;o(y.clicker).attr({"aria-controls":e.sTableId,"aria-disabled":v.disabled?"true":null,"aria-current":v.active?"page":null,"aria-label":_,"data-dt-idx":b,tabIndex:v.disabled?-1:e.iTabIndex&&"span"!==y.clicker[0].nodeName.toLowerCase()?e.iTabIndex:null}),"number"!=typeof b&&o(y.clicker).addClass(b),tt(y.clicker,{action:b},(function(t){t.preventDefault(),Le(e,t.data.action,!0)})),f.push(y.display)}var w=st(e,"pagingContainer")(e,f),x=t.find(document.activeElement).data("dt-idx");if(t.empty().append(w),void 0!==x&&t.find("[data-dt-idx="+x+"]").trigger("focus"),f.length){var D=o(f[0]).outerHeight();i.buttons>1&&D>0&&o(t).height()>=2*D-10&&Jt(e,t,o.extend({},i,{buttons:i.buttons-2}))}}}function Qt(e,t,i,r){var n=e.oLanguage.oPaginate,s={display:"",active:!1,disabled:!1};switch(t){case"ellipsis":s.display="&#x2026;";break;case"first":s.display=n.sFirst,0===i&&(s.disabled=!0);break;case"previous":s.display=n.sPrevious,0===i&&(s.disabled=!0);break;case"next":s.display=n.sNext,0!==r&&i!==r-1||(s.disabled=!0);break;case"last":s.display=n.sLast,0!==r&&i!==r-1||(s.disabled=!0);break;default:"number"==typeof t&&(s.display=e.fnFormatNumber(t+1),i===t&&(s.active=!0))}return s}function ei(e,t,i,r){var n=[],s=Math.floor(i/2),a=r?2:1,o=r?1:0;return t<=i?n=D(0,t):1===i?n=[e]:3===i?e<=1?n=[0,1,"ellipsis"]:e>=t-2?(n=D(t-2,t)).unshift("ellipsis"):n=["ellipsis",e,"ellipsis"]:e<=s?((n=D(0,i-a)).push("ellipsis"),r&&n.push(t-1)):e>=t-1-s?((n=D(t-(i-a),t)).unshift("ellipsis"),r&&n.unshift(0)):((n=D(e-s+a,e+s-o)).push("ellipsis"),n.unshift("ellipsis"),r&&(n.push(t-1),n.unshift(0))),n}l.feature.register("search",(function(e,t){if(!e.oFeatures.bFilter)return null;var i=e.oClasses.search,r=e.sTableId,n=e.oLanguage,s=e.oPreviousSearch,a='<input type="search" class="'+i.input+'"/>';-1===(t=o.extend({placeholder:n.sSearchPlaceholder,processing:!1,text:n.sSearch},t)).text.indexOf("_INPUT_")&&(t.text+="_INPUT_"),t.text=ot(e,t.text);var u=t.text.match(/_INPUT_$/),h=t.text.match(/^_INPUT_/),c=t.text.replace(/_INPUT_/,""),d="<label>"+t.text+"</label>";h?d="_INPUT_<label>"+c+"</label>":u&&(d="<label>"+c+"</label>_INPUT_");var p=o("<div>").addClass(i.container).append(d.replace(/_INPUT_/,a));p.find("label").attr("for","dt-search-"+Zt),p.find("input").attr("id","dt-search-"+Zt),Zt++;var f=function(i){var r=this.value;s.return&&"Enter"!==i.key||r!=s.search&&Re(e,t.processing,(function(){s.search=r,Te(e,s),e._iDisplayStart=0,fe(e)}))},g=null!==e.searchDelay?e.searchDelay:0,m=o("input",p).val(s.search).attr("placeholder",t.placeholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?l.util.debounce(f,g):f).on("mouseup.DT",(function(e){setTimeout((function(){f.call(m[0],e)}),10)})).on("keypress.DT",(function(e){if(13==e.keyCode)return!1})).attr("aria-controls",r);return o(e.nTable).on("search.dt.DT",(function(t,i){e===i&&m[0]!==document.activeElement&&m.val("function"!=typeof s.search?s.search:"")})),p}),"f"),l.feature.register("paging",(function(e,t){if(!e.oFeatures.bPaginate)return null;t=o.extend({buttons:l.ext.pager.numbers_length,type:e.sPaginationType,boundaryNumbers:!0,firstLast:!0,previousNext:!0,numbers:!0},t);var i=o("<div/>
1").addClass(e.oClasses.paging.container+(t.type?" paging_"+t.type:"")).append(o("<nav>").attr("aria-label","pagination").addClass(e.oClasses.paging.nav)),r=function(){Jt(e,i.children(),t)};return e.aoDrawCallback.push(r),o(e.nTable).on("column-sizing.dt.DT",r),i}),"p");var ti=0;l.feature.register("pageLength",(function(e,t){var i=e.oFeatures;if(!i.bPaginate||!i.bLengthChange)return null;t=o.extend({menu:e.aLengthMenu,text:e.oLanguage.sLengthMenu},t);var r,n=e.oClasses.length,s=e.sTableId,a=t.menu,l=[],u=[];if(Array.isArray(a[0]))l=a[0],u=a[1];else for(r=0;r<a.length;r++)o.isPlainObject(a[r])?(l.push(a[r].value),u.push(a[r].label)):(l.push(a[r]),u.push(a[r]));var h=t.text.match(/_MENU_$/),c=t.text.match(/^_MENU_/),d=t.text.replace(/_MENU_/,""),p="<label>"+t.text+"</label>";c?p="_MENU_<label>"+d+"</label>":h&&(p="<label>"+d+"</label>_MENU_");var f="tmp-"+ +new Date,g=o("<div/>").addClass(n.container).append(p.replace("_MENU_",'<span id="'+f+'"></span>')),m=[];Array.prototype.slice.call(g.find("label")[0].childNodes).forEach((function(e){e.nodeType===Node.TEXT_NODE&&m.push({el:e,text:e.textContent})}));var b=function(t){m.forEach((function(i){i.el.textContent=ot(e,i.text,t)}))},v=o("<select/>",{"aria-controls":s,class:n.select});for(r=0;r<l.length;r++){var y=e.api.i18n("lengthLabels."+l[r],null);null===y&&(y="number"==typeof u[r]?e.fnFormatNumber(u[r]):u[r]),v[0][r]=new Option(y,l[r])}return g.find("label").attr("for","dt-length-"+ti),v.attr("id","dt-length-"+ti),ti++,g.find("#"+f).replaceWith(v),o("select",g).val(e._iDisplayLength).on("change.DT",(function(){je(e,o(this).val()),fe(e)})),o(e.nTable).on("length.dt.DT",(function(t,i,r){e===i&&(o("select",g).val(r),b(r))})),b(e._iDisplayLength),g}),"l"),o.fn.dataTable=l,l.$=o,o.fn.dataTableSettings=l.settings,o.fn.dataTableExt=l.ext,o.fn.DataTable=function(e){return o(this).dataTable(e).api()},o.each(l,(function(e,t){o.fn.DataTable[e]=t}))},692:function(e,t){var i;!function(t,i){"use strict";"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,(function(r,n){"use strict";var s=[],a=Object.getPrototypeOf,o=s.slice,l=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},u=s.push,h=s.indexOf,c={},d=c.toString,p=c.hasOwnProperty,f=p.toString,g=f.call(Object),m={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=r.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,i){var r,n,s=(i=i||y).createElement("script");if(s.text=e,t)for(r in _)(n=t[r]||t.getAttribute&&t.getAttribute(r))&&s.setAttribute(r,n);i.head.appendChild(s).parentNode.removeChild(s)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[d.call(e)]||"object":typeof e}var D="3.7.1",k=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function P(e){var t=!!e&&"length"in e&&e.length,i=x(e);return!b(e)&&!v(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:D,constructor:T,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:s.sort,splice:s.splice},T.extend=T.fn.extend=function(){var e,t,i,r,n,s,a=arguments[0]||{},o=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[o]||{},o++),"object"==typeof a||b(a)||(a={}),o===l&&(a=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(T.isPlainObject(r)||(n=Array.isArray(r)))?(i=a[t],s=n&&!Array.isArray(i)?[]:n||T.isPlainObject(i)?i:{},n=!1,a[t]=T.extend(u,s,r)):void 0!==r&&(a[t]=r));return a},T.extend({expando:"jQuery"+(D+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==d.call(e))&&(!(t=a(e))||"function"==typeof(i=p.c
vendor: 5,246 bytes, line 1
1all(t,"constructor")&&t.constructor)&&f.call(i)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){w(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,r=0;if(P(e))for(i=e.length;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,i="",r=0,n=e.nodeType;if(!n)for(;t=e[r++];)i+=T.text(t);return 1===n||11===n?e.textContent:9===n?e.documentElement.textContent:3===n||4===n?e.nodeValue:i},makeArray:function(e,t){var i=t||[];return null!=e&&(P(Object(e))?T.merge(i,"string"==typeof e?[e]:e):u.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:h.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!k.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,r=0,n=e.length;r<i;r++)e[n++]=t[r];return e.length=n,e},grep:function(e,t,i){for(var r=[],n=0,s=e.length,a=!i;n<s;n++)!t(e[n],n)!==a&&r.push(e[n]);return r},map:function(e,t,i){var r,n,s=0,a=[];if(P(e))for(r=e.length;s<r;s++)null!=(n=t(e[s],s,i))&&a.push(n);else for(s in e)null!=(n=t(e[s],s,i))&&a.push(n);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=s[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){c["[object "+t+"]"]=t.toLowerCase()}));var C=s.pop,O=s.sort,A=s.splice,E="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g");T.contains=function(e,t){var i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(e.contains?e.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(L,M)};var R=y,I=u;!function(){var e,t,i,n,a,l,u,c,d,f,g=I,b=T.expando,v=0,y=0,_=ee(),w=ee(),x=ee(),D=ee(),k=function(e,t){return e===t&&(a=!0),0},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+E+"*("+L+")(?:"+E+"*([*^$|!~]?=)"+E+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+E+"*\\]",B=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",N=new RegExp(E+"+","g"),F=new RegExp("^"+E+"*,"+E+"*"),z=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),H=new RegExp(E+"|>"),U=new RegExp(B),$=new RegExp("^"+L+"$"),W={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},K=function(){le()},J=de((function(e){return!0===e.disabled&&S(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(s=o.call(R.childNodes),R.childNodes),s[R.childNodes.length].nodeType}catch(e){g={apply:function(e,t){I.apply(e,o.call(t))},call:function(e){I.apply(e,o.call(arguments,1))}}}function Q(e,t,i,r){var n,s,a,o,u,h,p,f=t&&t.ownerDocument,v=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==v&&9!==v&&11!==v)return i;if(!r&&(le(t),t=t||l,c)){if(11!==v&&(u=V.exec(e)))if(n=u[1]){if(9===v){if(!(a=t.getElementById(n)))return i;if(a.id===n)return g.call(i,a),i}else if(f&&(a=f.getElementById(n))&&Q.contains(t,a)&&a.id===n)return g.call(i,a),i}else{if(u[2])return g.apply(i,t.getElementsByTagName(e)),i;if((n=u[3])&&t.getElementsByClassName)return g.apply(i,t.getElementsByClassName(n)),i}if(!(D[e+" "]||d&&d.test(e))){if(p=e,f=t,1===v&&(H.test(e)||z.test(e))){for((f=Y.test(e)&&oe(t.parentNode)||t)==t&&m.scope||((o=t.getAttribute("id"))?o=T.escapeSelector(o):t.setAttribute("id",o=b)),s=(h=he(e)).length;s--;)h[s]=(o?"#"+o:":scope")+" "+ce(h[s]);p=h.join(",")}try{return g.apply(i,f.querySelectorAll(p)),i}catch(t){D(e,!0)}finally{o===b&&t.removeAttribute("id")}}}return ve(e.replace(j,"$1"),t,i,r)}function ee(){var e=[];return function i(r,n){return e.push(r+" ")>t.cacheLength&&delete i[e.shift()],i[r+" "]=n}}function te(e){return e[b]=!0,e}function ie(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return S(t,"input")&&t.type===e}}function ne(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function se(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e
vendor: 18,185 bytes, line 1
1:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(i,r){for(var n,s=e([],i.length,t),a=s.length;a--;)i[n=s[a]]&&(i[n]=!(r[n]=i[n]))}))}))}function oe(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var i,r=e?e.ownerDocument||e:R;return r!=l&&9===r.nodeType&&r.documentElement?(u=(l=r).documentElement,c=!T.isXMLDoc(l),f=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&R!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",K),m.getById=ie((function(e){return u.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),m.disconnectedMatch=ie((function(e){return f.call(e,"*")})),m.scope=ie((function(){return l.querySelectorAll(":scope")})),m.cssHas=ie((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(X,Z);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&c){var i=t.getElementById(e);return i?[i]:[]}}):(t.filter.ID=function(e){var t=e.replace(X,Z);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&c){var i,r,n,s=t.getElementById(e);if(s){if((i=s.getAttributeNode("id"))&&i.value===e)return[s];for(n=t.getElementsByName(e),r=0;s=n[r++];)if((i=s.getAttributeNode("id"))&&i.value===e)return[s]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&c)return t.getElementsByClassName(e)},d=[],ie((function(e){var t;u.appendChild(e).innerHTML="<a id='"+b+"' href='' disabled='disabled'></a><select id='"+b+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+E+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||d.push("~="),e.querySelectorAll("a#"+b+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+E+"*name"+E+"*="+E+"*(?:''|\"\")")})),m.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),k=function(e,t){if(e===t)return a=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===i?e===l||e.ownerDocument==R&&Q.contains(R,e)?-1:t===l||t.ownerDocument==R&&Q.contains(R,t)?1:n?h.call(n,e)-h.call(n,t):0:4&i?-1:1)},l):l}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),c&&!D[t+" "]&&(!d||!d.test(t)))try{var i=f.call(e,t);if(i||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){D(t,!0)}return Q(t,l,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),T.contains(e,t)},Q.attr=function(e,i){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[i.toLowerCase()],n=r&&p.call(t.attrHandle,i.toLowerCase())?r(e,i,!c):void 0;return void 0!==n?n:e.getAttribute(i)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,i=[],r=0,s=0;if(a=!m.sortStable,n=!m.sortStable&&o.call(e,0),O.call(e,k),a){for(;t=e[s++];)t===e[s]&&(r=i.push(s));for(;r--;)A.call(e,i[r],1)}return n=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(o.apply(this)))},t=T.expr={cacheLength:50,createPseudo:te,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(X,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(X,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&U.test(i)&&(t=he(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(X,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&_(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(r){var n=Q.attr(r,e);return null==n?"!="===t:!t||(n+="","="===t?n===i:"!="===t?n!==i:"^="===t?i&&0===n.indexOf(i):"*="===t?i&&n.indexOf(i)>-1:"$="===t?i&&n.slice(-i.length)===i:"~="===t?(" "+n.replace(N," ")+" ").indexOf(i)>-1:"|="===t&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,r,n){var s="nth"!==e.slice(0,3),a="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===n?function(e){return!!e.parentNode}:function(t,i,l){var u,h,c,d,p,f=s!==a?"nextSibling":"previousSibling",g=t.parentNode,m=o&&t.nodeName.toLowerCase(),y=!l&&!o,_=!1;if(g){if(s){for(;f;){for(c=t;c=c[f];)if(o?S(c,m):1===c.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(_=(d=(u=(h=g[b]||(g[b]={}))[e]||[])[0]===v&&u[1])&&u[2],c=d&&g.childNodes[d];c=++d&&c&&c[f]||(_=d=0)||p.pop();)if(1===c.nodeType&&++_&&c===t){h[e]=[v,d,_];break}}else if(y&&(_=d=(u=(h=t[b]||(t[b]={}))[e]||[])[0]===v&&u[1]),!1===_)for(;(c=++d&&c&&c[f]||(_=d=0)||p.pop())&&(!(o?S(c,m):1===c.nodeType)||!++_||(y&&((h=c[b]||(c[b]={}))[e]=[v,_]),c!==t)););return(_-=n)===r||_%r==0&&_/r>=0}}},PSEUDO:function(e,i){var r,n=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return n[b]?n(i):n.length>1?(r=[e,e,"",i],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,s=n(e,i),a=s.length;a--;)e[r=h.call(e,s[a])]=!(t[r]=s[a])})):function(e){return n(e,0,r)}):n}},pseudos:{not:te((function(e){var t=[],i=[],r=be(e.replace(j,"$1"));return r[b]?te((function(e,t,i,n){for(var s,a=r(e,null,n,[]),o=e.length;o--;)(s=a[o])&&(e[o]=!(t[o]=s))})):function(e,n,s){return t[0]=e,r(t,null,s,i),t[0]=null,!i.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(X,Z),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:te((function(e){return $.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(X,Z).toLowerCase(),function(t){var i;do{if(i=c?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:se(!1),disabled:se(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,i){return[i<0?i+t:i]})),even:ae((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:ae((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:ae((function(e,t,i){var r;for(r=i<0?i+t:i>t?t:i;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,i){for(var r=i<0?i+t:i;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ne(e);function ue(){}function he(e,i){var r,n,s,a,o,l,u,h=w[e+" "];if(h)return i?0:h.slice(0);for(o=e,l=[],u=t.preFilter;o;){for(a in r&&!(n=F.exec(o))||(n&&(o=o.slice(n[0].length)||o),l.push(s=[])),r=!1,(n=z.exec(o))&&(r=n.shift(),s.push({value:r,type:n[0].replace(j," ")}),o=o.slice(r.length)),t.filter)!(n=W[a].exec(o))||u[a]&&!(n=u[a](n))||(r=n.shift(),s.push({value:r,type:a,matches:n}),o=o.slice(r.length));if(!r)break}return i?o.length:o?Q.error(e):w(e,l).slice(0)}function ce(e){for(var t=0,i=e.length,r="";t<i;t++)r+=e[t].value;return r}function de(e,t,i){var r=t.dir,n=t.next,s=n||r,a=i&&"parentNode"===s,o=y++;return t.first?function(t,i,n){for(;t=t[r];)if(1===t.nodeType||a)return e(t,i,n);return!1}:function(t,i,l){var u,h,c=[v,o];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,i,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(h=t[b]||(t[b]={}),n&&S(t,n))t=t[r]||t;else{if((u=h[s])&&u[0]===v&&u[1]===o)return c[2]=u[2];if(h[s]=c,c[2]=e(t,i,l))return!0}return!1}}function pe(e){return e.length>1?function(t,i,r){for(var n=e.length;n--;)if(!e[n](t,i,r))return!1;return!0}:e[0]}function fe(e,t,i,r,n){for(var s,a=[],o=0,l=e.length,u=null!=t;o<l;o++)(s=e[o])&&(i&&!i(s,r,n)||(a.push(s),u&&t.push(o)));return a}function ge(e,t,i,r,n,s){return r&&!r[b]&&(r=ge(r)),n&&!n[b]&&(n=ge(n,s)),te((function(s,a,o,l){var u,c,d,p,f=[],m=[],b=a.length,v=s||function(e,t,i){for(var r=0,n=t.length;r<n;r++)Q(e,t[r],i);return i}(t||"*",o.nodeType?[o]:o,[]),y=!e||!s&&t?v:fe(v,f,e,o,l);if(i?i(y,p=n||(s?e:b||r)?[]:a,o,l):p=y,r)for(u=fe(p,m),r(u,[],o,l),c=u.length;c--;)(d=u[c])&&(p[m[c]]=!(y[m[c]]=d));if(s){if(n||e){if(n){for(u=[],c=p.length;c--;)(d=p[c])&&u.push(y[c]=d);n(null,p=[],u,l)}for(c=p.length;c--;)(d=p[c])&&(u=n?h.call(s,d):f[c])>-1&&(s[u]=!(a[u]=d))}}else p=fe(p===a?p.splice(b,p.length):p),n?n(null,a,p,l):g.apply(a,p)}))}function me(e){for(var r,n,s,a=e.length,o=t.relative[e[0].type],l=o||t.relative[" "],u=o?1:0,c=de((function(e){return e===r}),l,!0),d=de((function(e){return h.call(r,e)>-1}),l,!0),p=[function(e,t,n){var s=!o&&(n||t!=i)||((r=t).nodeType?c(e,t,n):d(e,t,n));return r=null,s}];u<a;u++)if(n=t.relative[e[u].type])p=[de(pe(p),n)];else{if((n=t.filter[e[u].type].apply(null,e[u].matches))[b]){for(s=++u;s<a&&!t.relative[e[s].type];s++);return ge(u>1&&pe(p),u>1&&ce(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(j,"$1"),n,u<s&&me(e.slice(u,s)),s<a&&me(e=e.slice(s)),s<a&&ce(e))}p.push(n)}return pe(p)}function be(e,r){var n,s=[],a=[],o=x[e+" "];if(!o){for(r||(r=he(e)),n=r.length;n--;)(o=me(r[n]))[b]?s.push(o):a.push(o);o=x(e,function(e,r){var n=r.length>0,s=e.length>0,a=function(a,o,u,h,d){var p,f,m,b=0,y="0",_=a&&[],w=[],x=i,D=a||s&&t.find.TAG("*",d),k=v+=null==x?1:Math.random()||.1,P=D.length;for(d&&(i=o==l||o||d);y!==P&&null!=(p=D[y]);y++){if(s&&p){for(f=0,o||p.ownerDocument==l||(le(p),u=!c);m=e[f++];)if(m(p,o||l,u)){g.call(h,p);break}d&&(v=k)}n&&((p=!m&&p)&&b--,a&&_.push(p))}if(b+=y,n&&y!==b){for(f=0;m=r[f++];)m(_,w,o,u);if(a){if(b>0)for(;y--;)_[y]||w[y]||(w[y]=C.call(h));w=fe(w)}g.apply(h,w),d&&!a&&w.length>0&&b+r.length>1&&T.uniqueSort(h)}return d&&(v=k,i=x),_};return n?te(a):a}(a,s)),o.selector=e}return o}function ve(e,i,r,n){var s,a,o,l,u,h="function"==typeof e&&e,d=!n&&he(e=h.selector||e);if(r=r||[],1===d.length){if((a=d[0]=d[0].slice(0)).length>2&&"ID"===(o=a[0]).type&&9===i.nodeType&&c&&t.relative[a[1].type]){if(!(i=(t.find.ID(o.matches[0].replace(X,Z),i)||[])[0]))return r;h&&(i=i.parentNode),e=e.slice(a.shift().value.length)}for(s=W.needsContext.test(e)?0:a.length;s--&&(o=a[s],!t.relative[l=o.type]);)if((u=t.find[l])&&(n=u(o.matches[0].replace(X,Z),Y.test(a[0].type)&&oe(i.parentNode)||i))){if(a.splice(s,1),!(e=n.length&&ce(a)))return g.apply(r,n),r;break}}return(h||be(e,d))(n,i,!c,r,!i||Y.test(e)&&oe(i.parentNode)||i),r}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,m.sortStable=b.split("").sort(k).join("")===b,le(),m.sortDetached=ie((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),T.find=Q,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Q.compile=be,Q.select=ve,Q.setDocument=le,Q.tokenize=he,Q.escape=T.escapeSelector,Q.getText=T.text,Q.isXML=T.isXMLDoc,Q.selectors=T.expr,Q.support=T.support,Q.uniqueSort=T.uniqueSort}();var B=function(e,t,i){for(var r=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&T(e).is(i))break;r.push(e)}return r},N=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},F=T.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(e,t,i){return b(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==i})):t.nodeType?T.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?T.grep(e,(function(e){return h.call(t,e)>-1!==i})):T.filter(t,e,i)}T.filter=function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,i,r=this.length,n=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(n[t],this))return!0})));for(i=this.pushStack([]),t=0;t<r;t++)T.find(e,n[t],i);return r>1?T.uniqueSort(i):i},filter:function(e){return this.pushStack(H(this,e||[],!1))},not:function(e){return this.pushStack(H(this,e||[],!0))},is:function(e){return!!H(this,"string"==typeof e&&F.test(e)?T(e):e||[],!1).length}});var U,$=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,i){var r,n;if(!e)return this;if(i=i||U,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:$.exec(e))||!r[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),z.test(r[1])&&T.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(n=y.getElementById(r[2]))&&(this[0]=n,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==i.ready?i.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,U=T(y);var W=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var i,r=0,n=this.length,s=[],a="string"!=typeof e&&T(e);if(!F.test(e))for(;r<n;r++)for(i=this[r];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(a?a.index(i)>-1:1===i.nodeType&&T.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(s.length>1?T.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?h.call(T(e),this[0]):h.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return B(e,"parentNode")},parentsUntil:function(e,t,i){return B(e,"parentNode",i)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return B(e,"nextSibling")},prevAll:function(e){return B(e,"previousSibling")},nextUntil:function(e,t,i){return B(e,"nextSibling",i)},prevUntil:function(e,t,i){return B(e,"previousSibling",i)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(i,r){var n=T.map(this,t,i);return"Until"!==e.slice(-5)&&(r=i),r&&"string"==typeof r&&(n=T.filter(r,n)),this.length>1&&(G[e]||T.uniqueSort(n),W.test(e)&&n.reverse()),this.pushStack(n)}}));var V=/[^\x20\t\r\n\f]+/g;function Y(e){return e}function X(e){throw e}function Z(e,t,i,r){var n;try{e&&b(n=e.promise)?n.call(e).done(t).fail(i):e&&b(n=e.then)?n.call(e,t,i):t.apply(void 0,[e].slice(r))}catch(e){i.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(V)||[],(function(e,i){t[i]=!0})),t}(e):T.extend({},e);var t,i,r,n,s=[],a=[],o=-1,l=function(){for(n=n||e.once,r=t=!0;a.length;o=-1)for(i=a.shift();++o<s.length;)!1===s[o].apply(i[0],i[1])&&e.stopOnFalse&&(o=s.length,i=!1);e.memory||(i=!1),t=!1,n&&(s=i?[]:"")},u={add:function(){return s&&(i&&!t&&(o=s.length-1,a.push(i)),function t(i){T.each(i,(function(i,r){b(r)?e.unique&&u.has(r)||s.push(r):r&&r.length&&"string"!==x(r)&&t(r)}))}(arguments),i&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var i;(i=T.inArray(t,s,i))>-1;)s.splice(i,1),i<=o&&o--})),this},has:function(e){return e?T.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return n=a=[],s=i="",this},disabled:function(){return!s},lock:function(){return n=a=[],i||t||(s=i=""),this},locked:function(){return!!n},fireWith:function(e,i){return n||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],i="pe
1nding",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(i){T.each(t,(function(t,r){var n=b(e[r[4]])&&e[r[4]];s[r[1]]((function(){var e=n&&n.apply(this,arguments);e&&b(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[r[0]+"With"](this,n?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,n){var s=0;function a(e,t,i,n){return function(){var o=this,l=arguments,u=function(){var r,u;if(!(e<s)){if((r=i.apply(o,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,b(u)?n?u.call(r,a(s,t,Y,n),a(s,t,X,n)):(s++,u.call(r,a(s,t,Y,n),a(s,t,X,n),a(s,t,Y,t.notifyWith))):(i!==Y&&(o=void 0,l=[r]),(n||t.resolveWith)(o,l))}},h=n?u:function(){try{u()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,h.error),e+1>=s&&(i!==X&&(o=void 0,l=[r]),t.rejectWith(o,l))}};e?h():(T.Deferred.getErrorHook?h.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(h.error=T.Deferred.getStackHook()),r.setTimeout(h)
vendor: 21,610 bytes, line 1
1)}}return T.Deferred((function(r){t[0][3].add(a(0,r,b(n)?n:Y,r.notifyWith)),t[1][3].add(a(0,r,b(e)?e:Y)),t[2][3].add(a(0,r,b(i)?i:X))})).promise()},promise:function(e){return null!=e?T.extend(e,n):n}},s={};return T.each(t,(function(e,r){var a=r[2],o=r[5];n[r[1]]=a.add,o&&a.add((function(){i=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),s[r[0]]=function(){return s[r[0]+"With"](this===s?void 0:this,arguments),this},s[r[0]+"With"]=a.fireWith})),n.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,i=t,r=Array(i),n=o.call(arguments),s=T.Deferred(),a=function(e){return function(i){r[e]=this,n[e]=arguments.length>1?o.call(arguments):i,--t||s.resolveWith(r,n)}};if(t<=1&&(Z(e,s.done(a(i)).resolve,s.reject,!t),"pending"===s.state()||b(n[i]&&n[i].then)))return s.then();for(;i--;)Z(n[i],a(i),s.reject);return s.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&K.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){r.setTimeout((function(){throw e}))};var J=T.Deferred();function Q(){y.removeEventListener("DOMContentLoaded",Q),r.removeEventListener("load",Q),T.ready()}T.fn.ready=function(e){return J.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||J.resolveWith(y,[T]))}}),T.ready.then=J.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?r.setTimeout(T.ready):(y.addEventListener("DOMContentLoaded",Q),r.addEventListener("load",Q));var ee=function(e,t,i,r,n,s,a){var o=0,l=e.length,u=null==i;if("object"===x(i))for(o in n=!0,i)ee(e,t,o,i[o],!0,s,a);else if(void 0!==r&&(n=!0,b(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,i){return u.call(T(e),i)})),t))for(;o<l;o++)t(e[o],i,a?r:r.call(e[o],o,t(e[o],i)));return n?e:u?t.call(e):l?t(e[0],i):s},te=/^-ms-/,ie=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ne(e){return e.replace(te,"ms-").replace(ie,re)}var se=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=T.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},se(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var r,n=this.cache(e);if("string"==typeof t)n[ne(t)]=i;else for(r in t)n[ne(r)]=t[r];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ne(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,r=e[this.expando];if(void 0!==r){if(void 0!==t){i=(t=Array.isArray(t)?t.map(ne):(t=ne(t))in r?[t]:t.match(V)||[]).length;for(;i--;)delete r[t[i]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var oe=new ae,le=new ae,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,he=/[A-Z]/g;function ce(e,t,i){var r;if(void 0===i&&1===e.nodeType)if(r="data-"+t.replace(he,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(r))){try{i=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ue.test(e)?JSON.parse(e):e)}(i)}catch(e){}le.set(e,t,i)}else i=void 0;return i}T.extend({hasData:function(e){return le.hasData(e)||oe.hasData(e)},data:function(e,t,i){return le.access(e,t,i)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,i){return oe.access(e,t,i)},_removeData:function(e,t){oe.remove(e,t)}}),T.fn.extend({data:function(e,t){var i,r,n,s=this[0],a=s&&s.attributes;if(void 0===e){if(this.length&&(n=le.get(s),1===s.nodeType&&!oe.get(s,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&0===(r=a[i].name).indexOf("data-")&&(r=ne(r.slice(5)),ce(s,r,n[r]));oe.set(s,"hasDataAttrs",!0)}return n}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var i;if(s&&void 0===t)return void 0!==(i=le.get(s,e))||void 0!==(i=ce(s,e))?i:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),T.extend({queue:function(e,t,i){var r;if(e)return t=(t||"fx")+"queue",r=oe.get(e,t),i&&(!r||Array.isArray(i)?r=oe.access(e,t,T.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=T.queue(e,t),r=i.length,n=i.shift(),s=T._queueHooks(e,t);"inprogress"===n&&(n=i.shift(),r--),n&&("fx"===t&&i.unshift("inprogress"),delete s.stop,n.call(e,(function(){T.dequeue(e,t)}),s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return oe.get(e,i)||oe.access(e,i,{empty:T.Callbacks("once memory").add((function(){oe.remove(e,[t+"queue",i])}))})}}),T.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?T.queue(this[0],e):void 0===t?this:this.each((function(){var i=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,r=1,n=T.Deferred(),s=this,a=this.length,o=function(){--r||n.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=oe.get(s[a],e+"queueHooks"))&&i.empty&&(r++,i.empty.add(o));return o(),n.promise(t)}});var de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],ge=y.documentElement,me=function(e){return T.contains(e.ownerDocument,e)},be={composed:!0};ge.getRootNode&&(me=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(be)===e.ownerDocument});var ve=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===T.css(e,"display")};function ye(e,t,i,r){var n,s,a=20,o=r?function(){return r.cur()}:function(){return T.css(e,t,"")},l=o(),u=i&&i[3]||(T.cssNumber[t]?"":"px"),h=e.nodeType&&(T.cssNumber[t]||"px"!==u&&+l)&&pe.exec(T.css(e,t));if(h&&h[3]!==u){for(l/=2,u=u||h[3],h=+l||1;a--;)T.style(e,t,h+u),(1-s)*(1-(s=o()/l||.5))<=0&&(a=0),h/=s;h*=2,T.style(e,t,h+u),i=i||[]}return i&&(h=+h||+l||0,n=i[1]?h+(i[1]+1)*i[2]:+i[2],r&&(r.unit=u,r.start=h,r.end=n)),n}var _e={};function we(e){var t,i=e.ownerDocument,r=e.nodeName,n=_e[r];return n||(t=i.body.appendChild(i.createElement(r)),n=T.css(t,"display"),t.parentNode.removeChild(t),"none"===n&&(n="block"),_e[r]=n,n)}function xe(e,t){for(var i,r,n=[],s=0,a=e.length;s<a;s++)(r=e[s]).style&&(i=r.style.display,t?("none"===i&&(n[s]=oe.get(r,"display")||null,n[s]||(r.style.display="")),""===r.style.display&&ve(r)&&(n[s]=we(r))):"none"!==i&&(n[s]="none",oe.set(r,"display",i)));for(s=0;s<a;s++)null!=n[s]&&(e[s].style.display=n[s]);return e}T.fn.extend({show:function(){return xe(this,!0)},hide:function(){return xe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ve(this)?T(this).show():T(this).hide()}))}});var De,ke,Te=/^(?:checkbox|radio)$/i,Pe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Se=/^$|^module$|\/(?:java|ecma)script/i;De=y.createDocumentFragment().appendChild(y.createElement("div")),(ke=y.createElement("input")).setAttribute("type","radio"),ke.setAttribute("checked","checked"),ke.setAttribute("name","t"),De.appendChild(ke),m.checkClone=De.cloneNode(!0).cloneNode(!0).lastChild.checked,De.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!De.cloneNode(!0).lastChild.defaultValue,De.innerHTML="<option></option>",m.option=!!De.lastChild;var Ce={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Oe(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?T.merge([e],i):i}function Ae(e,t){for(var i=0,r=e.length;i<r;i++)oe.set(e[i],"globalEval",!t||oe.get(t[i],"globalEval"))}Ce.tbody=Ce.tfoot=Ce.colgroup=Ce.caption=Ce.thead,Ce.th=Ce.td,m.option||(Ce.optgroup=Ce.option=[1,"<select multiple='multiple'>","</select>"]);var Ee=/<|&#?\w+;/;function je(e,t,i,r,n){for(var s,a,o,l,u,h,c=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if((s=e[p])||0===s)if("object"===x(s))T.merge(d,s.nodeType?[s]:s);else if(Ee.test(s)){for(a=a||c.appendChild(t.createElement("div")),o=(Pe.exec(s)||["",""])[1].toLowerCase(),l=Ce[o]||Ce._default,a.innerHTML=l[1]+T.htmlPrefilter(s)+l[2],h=l[0];h--;)a=a.lastChild;T.merge(d,a.childNodes),(a=c.firstChild).textContent=""}else d.push(t.createTextNode(s));for(c.textContent="",p=0;s=d[p++];)if(r&&T.inArray(s,r)>-1)n&&n.push(s);else if(u=me(s),a=Oe(c.appendChild(s),"script"),u&&Ae(a),i)for(h=0;s=a[h++];)Se.test(s.type||"")&&i.push(s);return c}var Le=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Re(){return!1}function Ie(e,t,i,r,n,s){var a,o;if("object"==typeof t){for(o in"string"!=typeof i&&(r=r||i,i=void 0),t)Ie(e,o,i,r,t[o],s);return e}if(null==r&&null==n?(n=i,r=i=void 0):null==n&&("string"==typeof i?(n=r,r=void 0):(n=r,r=i,i=void 0)),!1===n)n=Re;else if(!n)return e;return 1===s&&(a=n,n=function(e){return T().off(e),a.apply(this,arguments)},n.guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,t,n,r,i)}))}function Be(e,t,i){i?(oe.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var i,r=oe.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=o.call(arguments),oe.set(this,t,r),this[t](),i=oe.get(this,t),oe.set(this,t,!1),r!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else r&&(oe.set(this,t,T.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===oe.get(e,t)&&T.event.add(e,t,Me)}T.event={global:{},add:function(e,t,i,r,n){var s,a,o,l,u,h,c,d,p,f,g,m=oe.get(e);if(se(e))for(i.handler&&(i=(s=i).handler,n=s.selector),n&&T.find.matchesSelector(ge,n),i.guid||(i.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(V)||[""]).length;u--;)p=g=(o=Le.exec(t[u])||[])[1],f=(o[2]||"").split(".").sort(),p&&(c=T.event.special[p]||{},p=(n?c.delegateType:c.bindType)||p,c=T.event.special[p]||{},h=T.extend({type:p,origType:g,data:r,handler:i,guid:i.guid,selector:n,needsContext:n&&T.expr.match.needsContext.test(n),namespace:f.join(".")},s),(d=l[p])||((d=l[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,r,f,a)||e.addEventListener&&e.addEventListener(p,a)),c.add&&(c.add.call(e,h),h.handler.guid||(h.handler.guid=i.guid)),n?d.splice(d.delegateCount++,0,h):d.push(h),T.event.global[p]=!0)},remove:function(e,t,i,r,n){var s,a,o,l,u,h,c,d,p,f,g,m=oe.hasData(e)&&oe.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(V)||[""]).length;u--;)if(p=g=(o=Le.exec(t[u])||[])[1],f=(o[2]||"").split(".").sort(),p){for(c=T.event.special[p]||{},d=l[p=(r?c.delegateType:c.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=d.length;s--;)h=d[s],!n&&g!==h.origType||i&&i.guid!==h.guid||o&&!o.test(h.namespace)||r&&r!==h.selector&&("**"!==r||!h.selector)||(d.splice(s,1),h.selector&&d.delegateCount--,c.remove&&c.remove.call(e,h));a&&!d.length&&(c.teardown&&!1!==c.teardown.call(e,f,m.handle)||T.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[u],i,r,!0);T.isEmptyObject(l)&&oe.remove(e,"handle events")}},dispatch:function(e){var t,i,r,n,s,a,o=new Array(arguments.length),l=T.event.fix(e),u=(oe.get(this,"events")||Object.create(null))[l.type]||[],h=T.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,u),t=0;(n=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=n.elem,i=0;(s=n.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(r=((T.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,o))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,r,n,s,a,o=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(s=[],a={},i=0;i<l;i++)void 0===a[n=(r=t[i]).selector+" "]&&(a[n]=r.needsContext?T(n,this).index(u)>-1:T.find(n,this,null,[u]).length),a[n]&&s.push(r);s.length&&o.push({elem:u,handlers:s})}return u=this,l<t.length&&o.push({elem:u,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&S(t,"input")&&Be(t,"click",!0),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&S(t,"input")&&Be(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&S(t,"input")&&oe.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Re,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Re,isPropagationStopped:Re,isImmediatePropagationStopped:Re,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){function i(e){if(y.documentMode){var i=oe.get(this,"handle"),r=T.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,i(e),r.target===r.currentTarget&&i(r)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var r;if(Be(this,e,!0),!y.documentMode)return!1;(r=oe.get(this,t))||this.addEventListener(t,i),oe.set(this,t,(r||0)+1)},trigger:function(){return Be(this,e),!0},teardown:function(){var e;if(!y.documentMode)return!1;(e=oe.get(this,t)-1)?oe.set(this,t,e):(this.removeEventListener(t,i),oe.remove(this,t))},_default:function(t){return oe.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,n=y.documentMode?this:r,s=oe.get(n,t);s||(y.documentMode?this.addEventListener(t,i):r.addEventListener(e,i,!0)),oe.set(n,t,(s||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,n=y.documentMode?this:r,s=oe.get(n,t)-1;s?oe.set(n,t,s):(y.documentMode?this.removeEventListener(t,i):r.removeEventListener(e,i,!0),oe.remove(n,t))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,r=e.relatedTarget,n=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=n.origType,i=n.handler.apply(this,arguments),e.type=t),i}}})),T.fn.extend({on:function(e,t,i,r){return Ie(this,e,t,i,r)},one:function(e,t,i,r){return Ie(this,e,t,i,r,1)},off:function(e,t,i){var r,n;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(n in e)this.off(n,t,e[n]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Re),this.each((function(){T.event.remove(this,e,i,t)}))}});var Ne=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,ze=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function He(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function $e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function We(e,t){var i,r,n,s,a,o;if(1===t.nodeType){if(oe.hasData(e)&&(o=oe.get(e).events))for(n in oe.remove(t,"handle events"),o)for(i=0,r=o[n].length;i<r;i++)T.event.add(t,n,o[n][i]);le.hasData(e)&&(s=le.access(e),a=T.extend({},s),le.set(t,a))}}function Ge(e,t){var i=t.nodeName.toLowerCase();"input"===i&&Te.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function qe(e,t,i,r){t=l(t);var n,s,a,o,u,h,c=0,d=e.length,p=d-1,f=t[0],g=b(f);if(g||d>1&&"string"==typeof f&&!m.checkClone&&Fe.test(f))return e.each((function(n){var s=e.eq(n);g&&(t[0]=f.call(this,n,s.html())),qe(s,t,i,r)}));if(d&&(s=(n=je(t,e[0].ownerDocument,!1,e,r)).firstChild,1===n.childNodes.length&&(n=s),s||r)){for(o=(a=T.map(Oe(n,"script"),Ue)).length;c<d;c++)u=n,c!==p&&(u=T.clone(u,!0,!0),o&&T.merge(a,Oe(u,"script"))),i.call(e[c],u,c);if(o)for(h=a[a.length-1].ownerDocument,T.map(a,$e),c=0;c<o;c++)u=a[c],Se.test(u.type||"")&&!oe.access(u,"globalEval")&&T.contains(h,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?T._evalUrl&&!u.noModule&&T._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},h):w(u.textContent.replace(ze,""),u,h))}return e}function Ve(e,t,i){for(var r,n=t?T.filter(t,e):e,s=0;null!=(r=n[s]);s++)i||1!==r.nodeType||T.cleanData(Oe(r)),r.parentNode&&(i&&me(r)&&Ae(Oe(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var r,n,s,a,o=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=Oe(o),r=0,n=(s=Oe(e)).length;r<n;r++)Ge(s[r],a[r]);if(t)if(i)for(s=s||Oe(e),a=a||Oe(o),r=0,n=s.length;r<n;r++)We(s[r],a[r]);else We(e,o);return(a=Oe(o,"script")).length>0&&Ae(a,!l&&Oe(e,"script")),o},cleanData:function(e){for(var t,i,r,n=T.event.special,s=0;void 0!==(i=e[s]);s++)if(se(i)){if(t=i[oe.expando]){if(t.events)for(r in t.events)n[r]?T.event.remove(i,r):T.removeEvent(i,r,t.handle);i[oe.expando]=void 0}i[le.expando]&&(i[le.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return qe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||He(this,e).appendChild(e)}))},prepend:function(){return qe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=He(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return qe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(Oe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},i=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!Ce[(Pe.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;i<r;i++)1===(t=this[i]||{}).nodeType&&(T.cleanData(Oe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return qe(this,arguments,(function(t){var i=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(Oe(this)),i&&i.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var i,r=[],n=T(e),s=n.length-1,a=0;a<=s;a++)i=a===s?this:this.clone(!0),T(n[a])[t](i),u.apply(r,i.get());return this.pushStack(r)}}));
vendor: 1,998 bytes, line 1
1var Ye=new RegExp("^("+de+")(?!px)[a-z%]+$","i"),Xe=/^--/,Ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ke=function(e,t,i){var r,n,s={};for(n in t)s[n]=e.style[n],e.style[n]=t[n];for(n in r=i.call(e),t)e.style[n]=s[n];return r},Je=new RegExp(fe.join("|"),"i");function Qe(e,t,i){var r,n,s,a,o=Xe.test(t),l=e.style;return(i=i||Ze(e))&&(a=i.getPropertyValue(t)||i[t],o&&a&&(a=a.replace(j,"$1")||void 0),""!==a||me(e)||(a=T.style(e,t)),!m.pixelBoxStyles()&&Ye.test(a)&&Je.test(t)&&(r=l.width,n=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=i.width,l.width=r,l.minWidth=n,l.maxWidth=s)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(h){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(u).appendChild(h);var e=r.getComputedStyle(h);i="1%"!==e.top,l=12===t(e.marginLeft),h.style.right="60%",a=36===t(e.right),n=36===t(e.width),h.style.position="absolute",s=12===t(h.offsetWidth/3),ge.removeChild(u),h=null}}function t(e){return Math.round(parseFloat(e))}var i,n,s,a,o,l,u=y.createElement("div"),h=y.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===h.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return e(),n},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,t,i,n;return null==o&&(e=y.createElement("table"),t=y.createElement("tr"),i=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;
1border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",ge.appendChild(e).appendChild(t).appendChild(i),n=r.getComputedStyle(t),o=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),o}}))}();var tt=["Webkit","Moz","ms"],it=y.createElement("div").style,rt={};function nt(e){var t=T.cssProps[e]||rt[e];return t||(e in it?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=tt.length;i--;)if((e=tt[i]+t)in it)return e}(e)||e)}var st=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function lt(e,t,i){var r=pe.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function ut(e,t,i,r,n,s){var a="width"===t?1:0,o=0,l=0,u=0;if(i===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(u+=T.css(e,i+fe[a],!0,n)),r?("content"===i&&(l-=T.css(e,"padding"+fe[a],!0,n)),"margin"!==i&&(l-=T.css(e,"border"+fe[a]+"Width",!0,n))):(l+=T.css(e,"padding"+fe[a],!0,n),"padding"!==i?l+=T.css(e,"border"+fe[a]+"Width",!0,n):o+=T.css(e,"border"+fe[a]+"Width",!0,n));return!r&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-o-.5))||0),l+u}function ht(e,t,i){var r=Ze(e),n=(!m.boxSizingReliable()||i)&&"border-box"===T.css(e,"boxSizing",!1,r),s=n,a=Qe(e,t,r),o="offset"+t[0].toUpperCase()+t.slice(1);if(Ye.test(a)){if(!i)return a;a="auto"}return(!m.boxSizingReliable()&&n||!m.reliableTrDimensions()&&S(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(n="border-box"===T.css(e,"boxSizing",!1,r),(s=o in e)&&(a=e[o])),(a=parseFloat(a)||0)+ut(e,t,i||(n?"border":"content"),s,r,a)+"px"}function ct(e,t,i,r,n){return new ct.prototype.init(e,t,i,r,n)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Qe(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,s,a,o=ne(t),l=Xe.test(t),u=e.style;if(l||(t=nt(o)),a=T.cssHooks[t]||T.cssHooks[o],void 0===i)return a&&"get"in a&&void 0!==(n=a.get(e,!1,r))?n:u[t];"string"===(s=typeof i)&&(n=pe.exec(i))&&n[1]&&(i=ye(e,t,n),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=n&&n[3]||(T.cssNumber[o]?"":"px")),m.clearCloneStyle||""!==i||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,r))||(l?u.setProperty(t,i):u[t]=i))}},css:function(e,t,i,r){var n,s,a,o=ne(t);return Xe.test(t)||(t=nt(o)),(a=T.cssHooks[t]||T.cssHooks[o])&&"get"in a&&(n=a.get(e,!0,i)),void 0===n&&(n=Qe(e,t,r)),"normal"===n&&t in ot&&(n=ot[t]),""===i||i?(s=parseFloat(n),!0===i||isFinite(s)?s||0:n):n}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,i,r){if(i)return!st.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ht(e,t,r):Ke(e,at,(function(){return ht(e,t,r)}))},set:function(e,i,r){var n,s=Ze(e),a=!m.scrollboxSize()&&"absolute"===s.position,o=(a||r)&&"border-box"===T.css(e,"boxSizing",!1,s),l=r?ut(e,t,r,o,s):0;return o&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-ut(e,t,"border",!1,s)-.5)),l&&(n=pe.exec(i))&&"px"!==(n[3]||"px")&&(e.style[t]=i,i=T.css(e,t)),lt(0,i,l)}}})),T.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(i){for(var r=0,n={},s="string"==typeof i?i.split(" "):[i];r<4;r++)n[e+fe[r]+t]=s[r]||s[r-2]||s[0];return n}},"margin"!==e&&(T.cssHooks[e+t].set=lt)})),T.fn.extend({css:function(e,t){return ee(this,(function(e,t,i){var r,n,s={},a=0;if(Array.isArray(t)){for(r=Ze(e),n=t.length;a<n;a++)s[t[a]]=T.css(e,t[a],!1,r);return s}return void 0!==i?T.style(e,t,i):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=ct,ct.prototype={constructor:ct,init:function(e,t,i,r,n,s){this.elem=e,this.prop=i,this.easing=n||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(T.cssNumber[i]?"":"px")},cur:function(){var e=ct.propHooks[this.prop];return e&&e.get?e.get(this):ct.propHooks._default.get(this)},run:function(e){var t,i=ct.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ct.propHooks._default.set(this),this}},ct.prototype.init.prototype=ct.prototype,ct.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[nt(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},ct.propHooks.scrollTop=ct.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=ct.prototype.init,T.fx.step={};var dt,pt,ft=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){pt&&(!1===y.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(mt):r.setTimeout(mt,T.fx.interval),T.fx.tick())}function bt(){return r.setTimeout((function(){dt=void 0})),dt=Date.now()}function vt(e,t){var i,r=0,n={height:e};for(t=t?1:0;r<4;r+=2-t)n["margin"+(i=fe[r])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function yt(e,t,i){for(var r,n=(_t.tweeners[t]||[]).concat(_t.tweeners["*"]),s=0,a=n.length;s<a;s++)if(r=n[s].call(i,t,e))return r}function _t(e,t,i){var r,n,s=0,a=_t.prefilters.length,o=T.Deferred().always((function(){delete l.elem})),l=function(){if(n)return!1;for(var t=dt||bt(),i=Math.max(0,u.startTime+u.duration-t),r=1-(i/u.duration||0),s=0,a=u.tweens.length;s<a;s++)u.tweens[s].run(r);return o.notifyWith(e,[u,r,i]),r<1&&a?i:(a||o.notifyWith(e,[u,1,0]),o.resolveWith(e,[u]),!1)},u=o.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},i),originalProperties:t,originalOptions:i,startTime:dt||bt(),duration:i.duration,tweens:[],createTween:function(t,i){var r=T.Tween(e,u.opts,t,i,u.opts.specialEasing[t]||u.o
vendor: 4,114 bytes, line 1
1pts.easing);return u.tweens.push(r),r},stop:function(t){var i=0,r=t?u.tweens.length:0;if(n)return this;for(n=!0;i<r;i++)u.tweens[i].run(1);return t?(o.notifyWith(e,[u,1,0]),o.resolveWith(e,[u,t])):o.rejectWith(e,[u,t]),this}}),h=u.props;for(!function(e,t){var i,r,n,s,a;for(i in e)if(n=t[r=ne(i)],s=e[i],Array.isArray(s)&&(n=s[1],s=e[i]=s[0]),i!==r&&(e[r]=s,delete e[i]),(a=T.cssHooks[r])&&"expand"in a)for(i in s=a.expand(s),delete e[r],s)i in e||(e[i]=s[i],t[i]=n);else t[r]=n}(h,u.opts.specialEasing);s<a;s++)if(r=_t.prefilters[s].call(u,e,h,u.opts))return b(r.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return T.map(h,yt,u),b(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(_t,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ye(i.elem,e,pe.exec(t),i),i}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(V);for(var i,r=0,n=e.length;r<n;r++)i=e[r],_t.tweeners[i]=_t.tweeners[i]||[],_t.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var r,n,s,a,o,l,u,h,c="width"in t||"height"in t,d=this,p={},f=e.style,g=e.nodeType&&ve(e),m=oe.get(e,"fxshow");for(r in i.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,o=a.empty.fire,a.empty.fire=function(){a.unqueued||o()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(n=t[r],ft.test(n)){if(delete t[r],s=s||"toggle"===n,n===(g?"hide":"show")){if("show"!==n||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||T.style(e,r)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(r in c&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(u=m&&m.display)&&(u=oe.get(e,"display")),"none"===(h=T.css(e,"display"))&&(u?h=u:(xe([e],!0),u=e.style.display||u,h=T.css(e,"display"),xe([e]))),("inline"===h||"inline-block"===h&&null!=u)&&"none"===T.css(e,"float")&&(l||(d.done((function(){f.display=u})),null==u&&(h=f.display,u="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=oe.access(e,"fxshow",{display:u}),s&&(m.hidden=!g),g&&xe([e],!0),d.done((function(){for(r in g||xe([e]),oe.remove(e,"fxshow"),p)T.style(e,r,p[r])}))),l=yt(g?m[r]:0,r,d),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?_t.prefilters.unshift(e):_t.prefilters.push(e)}}),T.speed=function(e,t,i){var r=e&&"object"==typeof e?T.extend({},e):{complete:i||!i&&t||b(e)&&e,duration:e,easing:i&&t||t&&!b(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,i,r){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,i,r)},animate:function(e,t,i,r){var n=T.isEmptyObject(e),s=T.speed(t,i,r),a=function(){var t=_t(this,T.extend({},e),s);(n||oe.get(this,"finish"))&&t.stop(!0)};return a.finish=a,n||!1===s.queue?this.each(a):this.queue(s.queue,a)},stop:function(e,t,i){var r=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,n=null!=e&&e+"queueHooks",s=T.timers,a=oe.get(this);if(n)a[n]&&a[n].stop&&r(a[n]);else for(n in a)a[n]&&a[n].stop&&gt.test(n)&&r(a[n]);for(n=s.length;n--;)s[n].elem!==this||null!=e&&s[n].queue!==e||(s[n].anim.stop(i),t=!1,s.splice(n,1));!t&&i||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=oe.get(this),r=i[e+"queue"],n=i[e+"queueHooks"],s=T.timers,a=r?r.length:0;for(i.finish=!0,T.queue(this,e,[]),n&&n.stop&&n.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1)
vendor: 21,139 bytes, line 1
1);for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete i.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var i=T.fn[t];T.fn[t]=function(e,r,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(vt(t,!0),e,r,n)}})),T.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,i,r){return this.animate(t,e,i,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,i=T.timers;for(dt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||T.fx.stop(),dt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){pt||(pt=!0,mt())},T.fx.stop=function(){pt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var n=r.setTimeout(t,e);i.stop=function(){r.clearTimeout(n)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var wt,xt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return ee(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,i){var r,n,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?T.prop(e,t,i):(1===s&&T.isXMLDoc(e)||(n=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?wt:void 0)),void 0!==i?null===i?void T.removeAttr(e,t):n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&S(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,r=0,n=t&&t.match(V);if(n&&1===e.nodeType)for(;i=n[r++];)e.removeAttribute(i)}}),wt={set:function(e,t,i){return!1===t?T.removeAttr(e,i):e.setAttribute(i,i),i}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=xt[t]||T.find.attr;xt[t]=function(e,t,r){var n,s,a=t.toLowerCase();return r||(s=xt[a],xt[a]=n,n=null!=i(e,t,r)?a:null,xt[a]=s),n}}));var Dt=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;function Tt(e){return(e.match(V)||[]).join(" ")}function Pt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}T.fn.extend({prop:function(e,t){return ee(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,i){var r,n,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&T.isXMLDoc(e)||(t=T.propFix[t]||t,n=T.propHooks[t]),void 0!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:e[t]=i:n&&"get"in n&&null!==(r=n.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):Dt.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,i,r,n,s,a;return b(e)?this.each((function(t){T(this).addClass(e.call(this,t,Pt(this)))})):(t=St(e)).length?this.each((function(){if(r=Pt(this),i=1===this.nodeType&&" "+Tt(r)+" "){for(s=0;s<t.length;s++)n=t[s],i.indexOf(" "+n+" ")<0&&(i+=n+" ");a=Tt(i),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,i,r,n,s,a;return b(e)?this.each((function(t){T(this).removeClass(e.call(this,t,Pt(this)))})):arguments.length?(t=St(e)).length?this.each((function(){if(r=Pt(this),i=1===this.nodeType&&" "+Tt(r)+" "){for(s=0;s<t.length;s++)for(n=t[s];i.indexOf(" "+n+" ")>-1;)i=i.replace(" "+n+" "," ");a=Tt(i),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,r,n,s,a=typeof e,o="string"===a||Array.isArray(e);return b(e)?this.each((function(i){T(this).toggleClass(e.call(this,i,Pt(this),t),t)})):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(i=St(e),this.each((function(){if(o)for(s=T(this),n=0;n<i.length;n++)r=i[n],s.hasClass(r)?s.removeClass(r):s.addClass(r);else void 0!==e&&"boolean"!==a||((r=Pt(this))&&oe.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":oe.get(this,"__className__")||""))})))},hasClass:function(e){var t,i,r=0;for(t=" "+e+" ";i=this[r++];)if(1===i.nodeType&&(" "+Tt(Pt(i))+" ").indexOf(t)>-1)return!0;return!1}});var Ct=/\r/g;T.fn.extend({val:function(e){var t,i,r,n=this[0];return arguments.length?(r=b(e),this.each((function(i){var n;1===this.nodeType&&(null==(n=r?e.call(this,i,T(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=T.map(n,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))}))):n?(t=T.valHooks[n.type]||T.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(Ct,""):null==i?"":i:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){var t,i,r,n=e.options,s=e.selectedIndex,a="select-one"===e.type,o=a?null:[],l=a?s+1:n.length;for(r=s<0?l:a?s:0;r<l;r++)if(((i=n[r]).selected||r===s)&&!i.disabled&&(!i.parentNode.disabled||!S(i.parentNode,"optgroup"))){if(t=T(i).val(),a)return t;o.push(t)}return o},set:function(e,t){for(var i,r,n=e.options,s=T.makeArray(t),a=n.length;a--;)((r=n[a]).selected=T.inArray(T.valHooks.option.get(r),s)>-1)&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Ot=r.location,At={guid:Date.now()},Et=/\?/;T.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||T.error("Invalid XML: "+(i?T.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var jt=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,i,n){var s,a,o,l,u,h,c,d,f=[i||y],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(a=d=o=i=i||y,3!==i.nodeType&&8!==i.nodeType&&!jt.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:T.makeArray(t,[e]),c=T.event.special[g]||{},n||!c.trigger||!1!==c.trigger.apply(i,t))){if(!n&&!c.noBubble&&!v(i)){for(l=c.delegateType||g,jt.test(l+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),o=a;o===(i.ownerDocument||y)&&f.push(o.defaultView||o.parentWindow||r)}for(s=0;(a=f[s++])&&!e.isPropagationStopped();)d=a,e.type=s>1?l:c.bindType||g,(h=(oe.get(a,"events")||Object.create(null))[e.type]&&oe.get(a,"handle"))&&h.apply(a,t),(h=u&&a[u])&&h.apply&&se(a)&&(e.result=h.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,n||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(f.pop(),t)||!se(i)||u&&b(i[g])&&!v(i)&&((o=i[u])&&(i[u]=null),T.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,Lt),i[g](),e.isPropagationStopped()&&d.removeEventListener(g,Lt),T.event.triggered=void 0,o&&(i[u]=o)),e.result}},simulate:function(e,t,i){var r=T.extend(new T.Event,i,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return T.event.trigger(e,t,i,!0)}});var Mt=/\[\]$/,Rt=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Bt=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,i,r){var n;if(Array.isArray(t))T.each(t,(function(t,n){i||Mt.test(e)?r(e,n):Nt(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,r)}));else if(i||"object"!==x(t))r(e,t);else for(n in t)Nt(e+"["+n+"]",t[n],i,r)}T.param=function(e,t){var i,r=[],n=function(e,t){var i=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){n(this.name,this.value)}));else for(i in e)Nt(i,e[i],t,n);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Bt.test(this.nodeName)&&!It.test(e)&&(this.checked||!Te.test(e))})).map((function(e,t){var i=T(this).val();return null==i?null:Array.isArray(i)?T.map(i,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:i.replace(Rt,"\r\n")}})).get()}});var Ft=/%20/g,zt=/#.*$/,Ht=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:GET|HEAD)$/,Wt=/^\/\//,Gt={},qt={},Vt="*/".concat("*"),Yt=y.createElement("a");function Xt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,n=0,s=t.toLowerCase().match(V)||[];if(b(i))for(;r=s[n++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(i)):(e[r]=e[r]||[]).push(i)}}function Zt(e,t,i,r){var n={},s=e===qt;function a(o){var l;return n[o]=!0,T.each(e[o]||[],(function(e,o){var u=o(t,i,r);return"string"!=typeof u||s||n[u]?s?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!n["*"]&&a("*")}function Kt(e,t){var i,r,n=T.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:r||(r={}))[i]=t[i]);return r&&T.extend(!0,e,r),e}Yt.href=Ot.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,T.ajaxSettings),t):Kt(T.ajaxSettings,e)},ajaxPrefilter:Xt(Gt),ajaxTransport:Xt(qt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,n,s,a,o,l,u,h,c,d,p=T.ajaxSetup({},t),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?T(f):T.event,m=T.Deferred(),b=T.Callbacks("once memory"),v=p.statusCode||{},_={},w={},x="canceled",D={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Ut.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?s:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)D.always(e[D.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),k(0,t),this}};if(m.promise(D),p.url=((e||p.url||Ot.href)+"").replace(Wt,Ot.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(V)||[""],null==p.crossDomain){l=y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Yt.protocol+"//"+Yt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Zt(Gt,p,t,D),u)return D;for(c in(h=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!$t.test(p.type),n=p.url.replace(zt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ft,"+")):(d=p.url.slice(n.length),p.data&&(p.processData||"string"==typeof p.data)&&(n+=(Et.test(n)?"&":"?")+p.data,delete p.data),!1===p.cache&&(n=n.replace(Ht,"$1"),d=(Et.test(n)?"&":"?")+"_="+At.guid+++d),p.url=n+d),p.ifModified&&(T.lastModified[n]&&D.setRequestHeader("If-Modified-Since",T.lastModified[n]),T.etag[n]&&D.setRequestHeader("If-None-Match",T.etag[n])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&D.setRequestHeader("Content-Type",p.contentType),D.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Vt+"; q=0.01":""):p.accepts["*"]),p.headers)D.setRequestHeader(c,p.headers[c]);if(p.beforeSend&&(!1===p.beforeSend.call(f,D,p)||u))return D.abort();if(x="abort",b.add(p.complete),D.done(p.success),D.fail(p.error),i=Zt(qt,p,t,D)){if(D.readyState=1,h&&g.trigger("ajaxSend",[D,p]),u)return D;p.async&&p.timeout>0&&(o=r.setTimeout((function(){D.abort("timeout")}),p.timeout));try{u=!1,i.send(_,k)}catch(e){if(u)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,a,l){var c,d,y,_,w,x=t;u||(u=!0,o&&r.clearTimeout(o),i=void 0,s=l||"",D.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(_=function(e,t,i){for(var r,n,s,a,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(n in o)if(o[n]&&o[n].test(r)){l.unshift(n);break}if(l[0]in i)s=l[0];else{for(n in i){if(!l[0]||e.converters[n+" "+l[0]]){s=n;break}a||(a=n)}s=s||a}if(s)return s!==l[0]&&l.unshift(s),i[s]}(p,D,a)),!c&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),_=function(e,t,i,r){var n,s,a,o,l,u={},h=e.dataTypes.slice();if(h[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(s=h.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=h.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(a=u[l+" "+s]||u["* "+s]))for(n in u)if((o=n.split(" "))[1]===s&&(a=u[l+" "+o[0]]||u["* "+o[0]])){!0===a?a=u[n]:!0!==u[n]&&(s=o[0],h.unshift(o[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(p,_,D,c),c?(p.ifModified&&((w=D.getResponseHeader("Last-Modified"))&&(T.lastModified[n]=w),(w=D.getResponseHeader("etag"))&&(T.etag[n]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=_.state,d=_.data,c=!(y=_.error))):(y=x,!e&&x||(x="error",e<0&&(e=0))),D.status=e,D.statusText=(t||x)+"",c?m.resolveWith(f,[d,x,D]):m.rejectWith(f,[D,x,y]),D.statusCode(v),v=void 0,h&&g.trigger(c?"ajaxSuccess":"ajaxError",[D,p,c?d:y]),b.fireWith(f,[D,x]),h&&(g.trigger("ajaxComplete",[D,p]),--T.active||T.event.trigger("ajaxStop")))}return D},getJSON:function(e,t,i){return T.get(e,t,i,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,i,r,n){return b(i)&&(n=n||r,r=i,i=void 0),T.ajax(T.extend({url:e,type:t,dataType:n,data:i,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,i){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,i)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return b(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b(e);return this.each((function(i){T(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Qt=T.ajaxSettings.xhr();m.cors=!!Qt&&"withCredentials"in Qt,m.ajax=Qt=!!Qt,T.ajaxTransport((function(e){var t,i;if(m.cors||Qt&&!e.crossDomain)return{send:function(n,s){var a,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)o[a]=e.xhrFields[a];for(a in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(a,n[a]);t=function(e){return function(){t&&(t=i=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Jt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),i=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&r.setTimeout((function(){t&&i()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(r,n){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&n("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){i&&i()}}}));var ei,ti=[],ii=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ti.pop()||T.expando+"_"+At.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,i){var n,s,a,o=!1!==e.jsonp&&(ii.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(ii,"$1"+n):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return a||T.error(n+" was not called"),a[0]},e.dataTypes[0]="json",s=r[n],r[n]=function(){a=arguments},i.always((function(){void 0===s?T(r).removeProp(n):r[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,ti.push(n)),a&&b(s)&&s(a[0]),a=s=void 0})),"script"})),m.createHTMLDocument=((ei=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ei.childNodes.length),T.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(m.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),s=!i&&[],(n=z.exec(e))?[t.createElement(n[1])]:(n=je([e],t,s),s&&s.length&&T(s).remove(),T.merge([],n.childNodes)));var r,n,s},T.fn.load=function(e,t,i){var r,n,s,a=this,o=e.indexOf(" ");return o>-1&&(r=Tt(e.slice(o)),e=e.slice(0,o)),b(t)?(i=t,t=void 0):t&&"object"==typeof t&&(n="POST"),a.length>0&&T.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done((function(e){s=arguments,a.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(i&&function(e,t){a.each((function(){i.apply(this,s||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,i){var r,n,s,a,o,l,u=T.css(e,"position"),h=T(e),c={};"static"===u&&(e.style.position="relative"),o=h.offset(),s=T.css(e,"to
1p"),l=T.css(e,"left"),("absolute"===u||"fixed"===u)&&(s+l).indexOf("auto")>-1?(a=(r=h.position()).top,n=r.left):(a=parseFloat(s)||0,n=parseFloat(l)||0),b(t)&&(t=t.call(e,i,T.extend({},o))),null!=t.top&&(c.top=t.top-o.top+a),null!=t.left&&(c.left=t.left-o.left+n),"using"in t?t.using.call(e,c):h.css(c)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,i,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),i=r.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,r=this[0],n={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),i=r.ownerDocument,e=r.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((n=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),n.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-n.top-T.css(r,"marginTop",!0),left:t.left-n.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ge}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;T.fn[e]=function(r){return ee(this,(function(e,r,n){var s;if(v(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===n)return s?s[t]:e[r];s?s.scrollTo(i?s.pageXOffset:n,i?n:s.pageYOffset):e[r]=n}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=et(m.pixelPosition,(function(e,i){if(i)return i=Qe(e,t),Ye.test(i)?T(e).position()[t]+"px":i}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,r){T.fn[r]=function(n,s){var a=arguments.length&&(i||"boolean"!=typeof n),o=i||(!0===n||!0===s?"margin":"border");return ee(this,(function(t,i,n){var s;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===n?T.css(t,i,o):T.style(t,i,n,o)}),t,a?n:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,r){return this.on(t,e,i,r)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}));var ri=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var i,r,n;if("string"==typeof t&&(i=e[t],t=e,e=i),b(e))return r=o.call(arguments,2),n=function(){return e.apply(t||this,r.concat(o.call(arguments)))},n.guid=e.guid=e.guid||T.guid++,n},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=S,T.isFunction=b,T.isWindow=v,T.camelCase=ne,T.type=x,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(ri,"$1")},void 0===(i=function(){return T}.apply(t,[]))||(e.exports=i);var ni=r.jQuery,si=r.$;return T.noConflict=function(e){return r.$===T&&(r.$=si),e&&r.jQuery===T&&(r.jQuery=ni),T},void 0===n&&(r.jQuery=r.$=T),T}))},710:function(e,t,i){e.exports=function e(t,i,r){function n(a,o){if(!i[a]){if(!t[a]){if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=i[a]={exports:{}};
vendor: 4,195 bytes, line 1
1t[a][0].call(u.exports,(function(e){return n(t[a][1][e]||e)}),u,u.exports,e,t,i,r)}return i[a].exports}for(var s=void 0,a=0;a<r.length;a++)n(r[a]);return n}({1:[function(e,t,i){"use strict";var r=e("./utils"),n=e("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(e){for(var t,i,n,a,o,l,u,h=[],c=0,d=e.length,p=d,f="string"!==r.getTypeOf(e);c<e.length;)p=d-c,n=f?(t=e[c++],i=c<d?e[c++]:0,c<d?e[c++]:0):(t=e.charCodeAt(c++),i=c<d?e.charCodeAt(c++):0,c<d?e.charCodeAt(c++):0),a=t>>2,o=(3&t)<<4|i>>4,l=1<p?(15&i)<<2|n>>6:64,u=2<p?63&n:64,h.push(s.charAt(a)+s.charAt(o)+s.charAt(l)+s.charAt(u));return h.join("")},i.decode=function(e){var t,i,r,a,o,l,u=0,h=0,c="data:";if(e.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");var d,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===s.charAt(64)&&p--,e.charAt(e.length-2)===s.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=n.uint8array?new Uint8Array(0|p):new Array(0|p);u<e.length;)t=s.indexOf(e.charAt(u++))<<2|(a=s.indexOf(e.charAt(u++)))>>4,i=(15&a)<<4|(o=s.indexOf(e.charAt(u++)))>>2,r=(3&o)<<6|(l=s.indexOf(e.charAt(u++))),d[h++]=t,64!==o&&(d[h++]=i),64!==l&&(d[h++]=r);return d}},{"./support":30,"./utils":32}],2:[function(e,t,i){"use strict";var r=e("./external"),n=e("./stream/DataWorker"),s=e("./stream/Crc32Probe"),a=e("./stream/DataLengthProbe");function o(e,t,i,r,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=i,this.compression=r,this.compressedContent=n}o.prototype={getContentWorker:function(){var e=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(e,t,i){return e.pipe(new s).pipe(new a("uncompressedSize")).pipe(t.compressWorker(i)).pipe(new a("compressedSize")).withStreamInfo("compression",t)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,i){"use strict";var r=e("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},i.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,i){"use strict";var r=e("./utils"),n=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,i,r){var s=n,a=r+i;e^=-1;for(var o=r;o<a;o++)e=e>>>8^s[255&(e^t[o])];return~e}(0|t,e,e.length,0):function(e,t,i,r){var s=n,a=r+i;e^=-1;for(var o=r;o<a;o++)e=e>>>8^s[255&(e^t.charCodeAt(o))];return~e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,i){"use strict";i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(e,t,i){"use strict";var r=null;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,i){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=e("pako"),s=e("./utils"),a=e("./stream/GenericWorker"),o=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}i.magic="\b\0",s.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)}
vendor: 6,841 bytes, line 1
1,l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},i.compressWorker=function(e){return new l("Deflate",e)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,i){"use strict";function r(e,t){var i,r="";for(i=0;i<t;i++)r+=String.fromCharCode(255&e),e>>>=8;return r}function n(e,t,i,n,a,h){var c,d,p=e.file,f=e.compression,g=h!==o.utf8encode,m=s.transformTo("string",h(p.name)),b=s.transformTo("string",o.utf8encode(p.name)),v=p.comment,y=s.transformTo("string",h(v)),_=s.transformTo("string",o.utf8encode(v)),w=b.length!==p.name.length,x=_.length!==v.length,D="",k="",T="",P=p.dir,S=p.date,C={crc32:0,compressedSize:0,uncompressedSize:0};t&&!i||(C.crc32=e.crc32,C.compressedSize=e.compressedSize,C.uncompressedSize=e.uncompressedSize);var O=0;t&&(O|=8),g||!w&&!x||(O|=2048);var A=0,E=0;P&&(A|=16),"UNIX"===a?(E=798,A|=function(e,t){var i=e;return e||(i=t?16893:33204),(65535&i)<<16}(p.unixPermissions,P)):(E=20,A|=function(e){return 63&(e||0)}(p.dosPermissions)),c=S.getUTCHours(),c<<=6,c|=S.getUTCMinutes(),c<<=5,c|=S.getUTCSeconds()/2,d=S.getUTCFullYear()-1980,d<<=4,d|=S.getUTCMonth()+1,d<<=5,d|=S.getUTCDate(),w&&(k=r(1,1)+r(l(m),4)+b,D+="up"+r(k.length,2)+k),x&&(T=r(1,1)+r(l(y),4)+_,D+="uc"+r(T.length,2)+T);var j="";return j+="\n\0",j+=r(O,2),j+=f.magic,j+=r(c,2),j+=r(d,2),j+=r(C.crc32,4),j+=r(C.compressedSize,4),j+=r(C.uncompressedSize,4),j+=r(m.length,2),j+=r(D.length,2),{fileRecord:u.LOCAL_FILE_HEADER+j+m+D,dirRecord:u.CENTRAL_FILE_HEADER+r(E,2)+j+r(y.length,2)+"\0\0\0\0"+r(A,4)+r(n,4)+m+D+y}}var s=e("../utils"),a=e("../stream/GenericWorker"),o=e("../utf8"),l=e("../crc32"),u=e("../signature");function h(e,t,i,r){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=i,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(h,a),h.prototype.push=function(e){var t=e.meta.percent||0,i=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:i?(t+100*(i-r-1))/i:100}}))},h.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var i=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,i=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var i=this.bytesWritten-e,n=function(e,t,i,n,a){var o=s.transformTo("string",a(n));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(e,2)+r(e,2)+r(t,4)+r(i,4)+r(o.length,2)+o}(this.dirRecords.length,i,e,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},h.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var i=0;i<t.length;i++)try{t[i].error(e)}catch(e){}return!0},h.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,i){"use strict";var r=e("../compressions"),n=e("./ZipFileWorker");i.generateWorker=function(e,t,i){var s=new n(t.streamFiles,i,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,i){a++;var n=function(e,t){var i=e||t,n=r[i];if(!n)throw new Error(i+" is not a valid compression method !");return n}(i.options.compression,t.compression),o=i.options.compressionOptions||t.compressionOptions||{},l=i.dir,u=i.date;i._compressWorker(n,o).withStreamInfo("file",{name:e,dir:l,date:u,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(s)})),s.entriesCount=a}catch(e){s.error(e)}return s}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,i){"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(r.prototype=e("./object")).loadAsync=e("./load"),r.support=e("./support"),r.defaults=e("./defaults"),r.version="3.10.1",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=e("./external"),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,i){"use strict";var r=e("./utils"),n=e("./external"),s=e("./utf8"),a=e("./zipEntries"),o=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new n.Promise((function(t,i){var r=e.decompressed.getContentWorker().pipe(new o);r.on("error",(function(e){i(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var i=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),l.isNode&&l.isStream(e)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip f
1ile",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var i=new a(t);return i.load(e),i})).then((function(e){var i=[n.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var s=0;s<r.length;s++)i.push(u(r[s]));return n.Promise.all(i)})).then((function(e){for(var n=e.shift(),s=n.files,a=0;a<s.length;a++){var o=s[a],l=o.fileNameStr,u=r.resolve(o.fileNameStr);i.file(u,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders}),o.dir||(i.file(u).unsafeOriginalName=l)}return n.zipComment.length&&(i.comment=n.zipComment),i}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,i){"use strict";var r=e("../utils"),n=e("../stream/GenericWorker");function s(e,t){n.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(s,n),s.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},s.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,i){"use strict";var r=e("readable-stream").Readable;function n(e,t,i){r.call(this,t),this._helper=e;var n=this;e.on("data",(function(e,t){n.push(e)||n._helper.pause(),i&&i(t)})).on("error",(function(e){n.emit("error",e)})).on("end",(function(){n.push(null)}))}e("../utils").inherits(n,r),n.prototype._read=function(){this._helper.resume()},t.exports=n},{"../utils":32,"readable-stream":16}],14:[function(e,t,i){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,i){"use strict";function r(e,t,i){var r,n=s.getTypeOf(t),o=s.extend(i||{},l);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(e=g(e)),o.createFolders&&(r=f(e))&&m.call(this,r,!0);var c="string"===n&&!1===o.binary&&!1===o.base64;i&&void 0!==i.binary||(o.binary=!c),(t instanceof u&&0===t.uncompressedSize||o.dir||!t||0===t.length)&&(o.base64=!1,o.binary=!0,t="",o.compression="STORE",n="string");var b=null;b=t instanceof u||t instanceof a?t:d.isNode&&d.isStream(t)?new p(e,t):s.prepareContent(e,t,o.binary,o.optimizedBinaryString,o.base64);var v=new h(e,b,o);this.files[e]=v}var n=e("./utf8"),s=e("./utils"),a=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),h=e("./zipObject"),c=e("./generate"),d=e("./nodejsUtils"),p=e("./nodejs/NodejsStreamInputAdapter"),f=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,i,r;for(t in this.files)r=this.files[t],(i=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(i,r)},filter:function(e){var t=[];return this.forEach((function(i,r){e(i,r)&&t.push(r)})),t},file:function(e,t,i){if(1!==arguments.length)return e=this.root+e,r.call(this,e,t,i),this;if(b(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var s=this.files[this.root+e];return s&&!s.dir?s:null},folder:function(e){if(!e)return this;if(b(e))return this.filter((function(t,i){return i.dir&&e.test(t)}));var t=this.root+e,i=m.call(this,t),r=this.clone();return r.root=i.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var i=this.filter((function(t,i){return i.name.slice(0,e.length)===e})),r=0;r<i.length;r++)delete this.files[i[r].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")}
vendor: 5,804 bytes, line 1
1,generateInternalStream:function(e){var t,i={};try{if((i=s.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),"binarystring"===i.type&&(i.type="string"),!i.type)throw new Error("No output type specified.");s.checkSupport(i.type),"darwin"!==i.platform&&"freebsd"!==i.platform&&"linux"!==i.platform&&"sunos"!==i.platform||(i.platform="UNIX"),"win32"===i.platform&&(i.platform="DOS");var r=i.comment||this.comment||"";t=c.generateWorker(this,i,r)}catch(e){(t=new a("error")).error(e)}return new o(t,i.type||"string",i.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,i){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,i){"use strict";var r=e("./DataReader");function n(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(n,r),n.prototype.byteAt=function(e){return this.data[this.zero+e]},n.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),i=e.charCodeAt(1),r=e.charCodeAt(2),n=e.charCodeAt(3),s=this.length-4;0<=s;--s)if(this.data[s]===t&&this.data[s+1]===i&&this.data[s+2]===r&&this.data[s+3]===n)return s-this.zero;return-1},n.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),i=e.charCodeAt(1),r=e.charCodeAt(2),n=e.charCodeAt(3),s=this.readData(4);return t===s[0]&&i===s[1]&&r===s[2]&&n===s[3]},n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],18:[function(e,t,i){"use strict";var r=e("../utils");function n(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,i=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)i=(i<<8)+this.byteAt(t);return this.index+=e,i},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=n},{"../utils":32}],19:[function(e,t,i){"use strict";var r=e("./Uint8ArrayReader");function n(e){r.call(this,e)}e("../utils").inherits(n,r),n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,i){"use strict";var r=e("./DataReader");function n(e){r.call(this,e)}e("../utils").inherits(n,r),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],21:[function(e,t,i){"use strict";var r=e("./ArrayReader");function n(e){r.call(this,e)}e("../utils").inherits(n,r),n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,i){"use strict";var r=e("../utils"),n=e("../support"),s=e("./ArrayReader"),a=e("./StringReader"),o=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new o(e):n.uint8array?new l(r.transformTo("uint8array",e)):new s(r.transformTo("array",e)):new a(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,i){"use strict";i.LOCAL_FILE_HEADER="PK��",i.CENTRAL_FILE_HEADER="PK��",i.CENTRAL_DIRECTORY_END="PK��",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK��",i.ZIP64_CENTRAL_DIRECTORY_END="PK��",i.DATA_DESCRIPTOR="PK�\b"},{}],24:[function(e,t,i){"use strict";var r=e("./GenericWorker"),n=e("../utils");function s(e){r.call(this,"ConvertWorker to "+e),this.destType=e}n.inherits(s,r),s.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})},t.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,i){"use strict";var r=e("./GenericWorker"),n=e("../crc32");function s(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(s,r),s.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,i){"use strict";var r=e("../utils"),n=e("./GenericWorker");function s(e){n.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}
vendor: 7,013 bytes, line 1
1r.inherits(s,n),s.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}n.prototype.processChunk.call(this,e)},t.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,i){"use strict";var r=e("../utils"),n=e("./GenericWorker");function s(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,i){"use strict";function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var i=0;i<this._listeners[e].length;i++)this._listeners[e][i].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=r},{}],29:[function(e,t,i){"use strict";var r=e("../utils"),n=e("./ConvertWorker"),s=e("./GenericWorker"),a=e("../base64"),o=e("../support"),l=e("../external"),u=null;if(o.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function h(e,t){return new l.Promise((function(i,n){var s=[],o=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,i){s.push(e),t&&t(i)})).on("error",(function(e){s=[],n(e)})).on("end",(function(){try{var e=function(e,t,i){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),i);case"base64":return a.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var i,r=0,n=null,s=0;for(i=0;i<t.length;i++)s+=t[i].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(n=new Uint8Array(s),i=0;i<t.length;i++)n.set(t[i],r),r+=t[i].length;return n;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(o,s),u);i(e)}catch(e){n(e)}s=[]})).resume()}))}function c(e,t,i){var a=t;switch(t){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=t,this._mimeType=i,r.checkSupport(a),this._worker=e.pipe(new n(a)),e.lock()}catch(e){this._worker=new s("error"),this._worker.error(e)}}c.prototype={accumulate:function(e){return h(this,e)},on:function(e,t){var i=this;return"data"===e?this._worker.on(e,(function(e){t.call(i,e.data,e.meta)})):this._worker.on(e,(function(){r.delay(t,arguments,i)})),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof Buffer,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var r=new ArrayBuffer(0);try{i.blob=0===new Blob([r],{type:"application/zip"}).size}catch(e){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);n.append(r),i.blob=0===n.getBlob("application/zip").size}catch(e){i.blob=!1}}}try{i.nodestream=!!e("readable-stream").Readable}catch(e){i.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,i){"use strict";for(var r=e("./utils"),n=e("./support"),s=e("./nodejsUtils"),a=e("./stream/GenericWorker"),o=new Array(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function h(){a.call(this,"utf-8 encode")}o[254]=o[254]=1,i.utf8encode=function(e){return n.nodebuffer?s.newBufferFrom(e,"utf-8"):function(e){var t,i,r,s,a,o=e.length,l=0;for(s=0;s<o;s++)55296==(64512&(i=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(r-56320),s++),l
vendor: 9,531 bytes, line 1
1+=i<128?1:i<2048?2:i<65536?3:4;for(t=n.uint8array?new Uint8Array(l):new Array(l),s=a=0;a<l;s++)55296==(64512&(i=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(r=e.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(r-56320),s++),i<128?t[a++]=i:(i<2048?t[a++]=192|i>>>6:(i<65536?t[a++]=224|i>>>12:(t[a++]=240|i>>>18,t[a++]=128|i>>>12&63),t[a++]=128|i>>>6&63),t[a++]=128|63&i);return t}(e)},i.utf8decode=function(e){return n.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,i,n,s,a=e.length,l=new Array(2*a);for(t=i=0;t<a;)if((n=e[t++])<128)l[i++]=n;else if(4<(s=o[n]))l[i++]=65533,t+=s-1;else{for(n&=2===s?31:3===s?15:7;1<s&&t<a;)n=n<<6|63&e[t++],s--;1<s?l[i++]=65533:n<65536?l[i++]=n:(n-=65536,l[i++]=55296|n>>10&1023,l[i++]=56320|1023&n)}return l.length!==i&&(l.subarray?l=l.subarray(0,i):l.length=i),r.applyFromCharCode(l)}(e=r.transformTo(n.uint8array?"uint8array":"array",e))},r.inherits(u,a),u.prototype.processChunk=function(e){var t=r.transformTo(n.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var s=t;(t=new Uint8Array(s.length+this.leftOver.length)).set(this.leftOver,0),t.set(s,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var a=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}(t),l=t;a!==t.length&&(n.uint8array?(l=t.subarray(0,a),this.leftOver=t.subarray(a,t.length)):(l=t.slice(0,a),this.leftOver=t.slice(a,t.length))),this.push({data:i.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=u,r.inherits(h,a),h.prototype.processChunk=function(e){this.push({data:i.utf8encode(e.data),meta:e.meta})},i.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,i){"use strict";var r=e("./support"),n=e("./base64"),s=e("./nodejsUtils"),a=e("./external");function o(e){return e}function l(e,t){for(var i=0;i<e.length;++i)t[i]=255&e.charCodeAt(i);return t}e("setimmediate"),i.newBlob=function(e,t){i.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,i){var r=[],n=0,s=e.length;if(s<=i)return String.fromCharCode.apply(null,e);for(;n<s;)"array"===t||"nodebuffer"===t?r.push(String.fromCharCode.apply(null,e.slice(n,Math.min(n+i,s)))):r.push(String.fromCharCode.apply(null,e.subarray(n,Math.min(n+i,s)))),n+=i;return r.join("")},stringifyByChar:function(e){for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&1===String.fromCharCode.apply(null,s.allocBuffer(1)).length}catch(e){return!1}}()}};function h(e){var t=65536,r=i.getTypeOf(e),n=!0;if("uint8array"===r?n=u.applyCanBeUsed.uint8array:"nodebuffer"===r&&(n=u.applyCanBeUsed.nodebuffer),n)for(;1<t;)try{return u.stringifyByChunk(e,r,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function c(e,t){for(var i=0;i<e.length;i++)t[i]=e[i];return t}i.applyFromCharCode=h;var d={};d.string={string:o,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,s.allocBuffer(e.length))}},d.array={string:h,array:o,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(e)}},d.arraybuffer={string:function(e){return h(new Uint8Array(e))},array:function(e){return c(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:o,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return s.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:h,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:o,nodebuffer:function(e){return s.newBufferFrom(e)}},d.nodebuffer={string:h,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:o},i.transformTo=function(e,t){if(t=t||"",!e)return t;i.checkSupport(e);var r=i.getTypeOf(t);return d[r][e](t)},i.resolve=function(e){for(var t=e.split("/"),i=[],r=0;r<t.length;r++){var n=t[r];"."===n||""===n&&0!==r&&r!==t.length-1||(".."===n?i.pop():i.push(n))}return i.join("/")},i.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":r.nodebuffer&&s.isBuffer(e)?"nodebuffer":r.uint8array&&e instanceof Uint8Array?"uint8array":r.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(e){if(!r[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(e){var t,i,r="";for(i=0;i<(e||"").length;i++)r+="\\x"+((t=e.charCodeAt(i))<16?"0":"")+t.toString(16).toUpperCase();return r},i.delay=function(e,t,i){setImmediate((function(){e.apply(i||null,t||[])}))},i.inherits=function(e,t){function i(){}i.prototype=t.prototype,e.prototype=new i},i.extend=function(){var e,t,i={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===i[t]&&(i[t]=arguments[e][t]);return i},i.prepareContent=function(e,t,s,o,u){return a.Promise.resolve(t).then((function(e){return r.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new a.Promise((function(t,i){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){i(e.target.error)},r.readAsArrayBuffer(e)})):e})).then((function(t){var h=i.getTypeOf(t);return h?("arraybuffer"===h?t=i.transformTo("uint8array",t):"string"===h&&(u?t=n.decode(t):s&&!0!==o&&(t=function(e){return l(e,r.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):a.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,i){"use strict";var r=e("./reader/readerFor"),n=e("./utils"),s=e("./signature"),a=e("./zipEntry"),o=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(t)+", expected "+n.pretty(e)+")")}},isSignature:function(e,t){var i=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(i),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=o.uint8array?"uint8array":"array",i=n.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,i,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),i=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(e=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
1ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var r=t-i;if(0<r)this.isSignature(t,s.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,i){"use strict";var r=e("./reader/readerFor"),n=e("./utils"),s=e("./compressedObject"),a=e("./crc32"),o=e("./utf8"),l=e("./compressions"),u=e("./support");function h(e,t){this.options=e,this.loadOptions=t}h.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(e){var t,i;if(e.skip(22),this.fileNameLength=e.readInt(2),i=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&
vendor: 2,334 bytes, line 1
1(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,i,r,n=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<n;)t=e.readInt(2),i=e.readInt(2),r=e.readData(i),this.extraFields[t]={id:t,length:i,value:r};e.setIndex(n)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var i=n.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var r=this.findExtraFieldUnicodeComment();if(null!==r)this.fileCommentStr=r;else{var s=n.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileName)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return 1!==t.readInt(1)||a(this.fileComment)!==t.readInt(4)?null:o.utf8decode(t.readData(e.length-5))}return null}},t.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,i){"use strict";function r(e,t,i){this.name=e,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=t,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}}var n=e("./stream/StreamHelper"),s=e("./stream/DataWorker"),a=e("./utf8"),o=e("./compressedObject"),l=e("./stream/GenericWorker");r.prototype={internalStream:function(e){var t=null,i="string";try{if(!e)throw new Error("No output type specified.");var r="string"===(i=e.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),t=this._decompressWorker();var s=!this._dataBinary;s&&!r&&(t=t.pipe(new a.Utf8EncodeWorker)),!s&&r&&(t=t.pipe(new a.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new n(t,i,"")},async:function(e,t){return this.internalStream(e).accumulate(t)}
vendor: 6,408 bytes, line 1
1,nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new a.Utf8EncodeWorker)),o.createWorkerFrom(i,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new s(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<u.length;c++)r.prototype[u[c]]=h;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var i,r,n=e.MutationObserver||e.WebKitMutationObserver;if(n){var s=0,a=new n(h),o=e.document.createTextNode("");a.observe(o,{characterData:!0}),i=function(){o.data=s=++s%2}}else if(e.setImmediate||void 0===e.MessageChannel)i="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){h(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(h,0)};else{var l=new e.MessageChannel;l.port1.onmessage=h,i=function(){l.port2.postMessage(0)}}var u=[];function h(){var e,t;r=!0;for(var i=u.length;i;){for(t=u,u=[],e=-1;++e<i;)t[e]();i=u.length}r=!1}t.exports=function(e){1!==u.push(e)||r||i()}}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,i){"use strict";var r=e("immediate");function n(){}var s={},a=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==n&&p(this,e)}function h(e,t,i){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function c(e,t,i){r((function(){var r;try{r=t(i)}catch(r){return s.reject(e,r)}r===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var i=!1;function r(t){i||(i=!0,s.reject(e,t))}function n(t){i||(i=!0,s.resolve(e,t))}var a=f((function(){t(n,r)}));"error"===a.status&&r(a.value)}function f(e,t){var i={};try{i.value=e(t),i.status="success"}catch(e){i.status="error",i.value=e}return i}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(i){return t.resolve(e()).then((function(){return i}))}),(function(i){return t.resolve(e()).then((function(){throw i}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===a)return this;var i=new this.constructor(n);return this.state!==l?c(i,this.state===o?e:t,this.outcome):this.queue.push(new h(i,e,t)),i},h.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},h.prototype.otherCallFulfilled=function(e){c(this.promise,this.onFulfilled,e)},h.prototype.callRejected=function(e){s.reject(this.promise,e)},h.prototype.otherCallRejected=function(e){c(this.promise,this.onRejected,e)},s.resolve=function(e,t){var i=f(d,t);if("error"===i.status)return s.reject(e,i.value);var r=i.value;if(r)p(e,r);else{e.state=o,e.outcome=t;for(var n=-1,a=e.queue.length;++n<a;)e.queue[n].callFulfilled(t)}return e},s.reject=function(e,t){e.state=a,e.outcome=t;for(var i=-1,r=e.queue.length;++i<r;)e.queue[i].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:s.resolve(new this(n),e)},u.reject=function(e){var t=new this(n);return s.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var i=e.length,r=!1;if(!i)return this.resolve([]);for(var a=new Array(i),o=0,l=-1,u=new this(n);++l<i;)h(e[l],l);return u;function h(e,n){t.resolve(e).then((function(e){a[n]=e,++o!==i||r||(r=!0,s.resolve(u,a))}),(function(e){r||(r=!0,s.reject(u,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var i=e.length,r=!1;if(!i)return this.resolve([]);for(var a,o=-1,l=new this(n);++o<i;)a=e[o],t.resolve(a).then((function(e){r||(r=!0,s.resolve(l,e))}),(function(e){r||(r=!0,s.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,i){"use strict";var r={};(0,e("./lib/utils/common").assign)(r,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,i){"use strict";var r=e("./zlib/deflate"),n=e("./utils/common"),s=e("./utils/strings"),a=e("./zlib/messages"),o=e("./zlib/zstream"),l=Object.prototype.toString,u=0,h=-1,c=0,d=8;function p(e){if(!(this instanceof p))return new p(e);this.options=n.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var i=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==u)throw new Error(a[i]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var f;if(f="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(i=r.deflateSetDictionary(this.strm,f))!==u)throw new Error(a[i]);this._dict_set=!0}}function f(e,t){var i=new p(t);if(i.push(e,!0),i.err)throw i.msg||a[i.err];return i.result}p.prototype.push=function(e,t){var i,a,o=this.strm,h=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=s.string2buf(e):"[object ArrayBuffer]"===l.call(e)?o.input=new 
vendor: 10,711 bytes, line 1
1Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new n.Buf8(h),o.next_out=0,o.avail_out=h),1!==(i=r.deflate(o,a))&&i!==u)return this.onEnd(i),!(this.ended=!0);0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(n.shrinkBuf(o.output,o.next_out))):this.onData(n.shrinkBuf(o.output,o.next_out)))}while((0<o.avail_in||0===o.avail_out)&&1!==i);return 4===a?(i=r.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===u):2!==a||(this.onEnd(u),!(o.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Deflate=p,i.deflate=f,i.deflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},i.gzip=function(e,t){return(t=t||{}).gzip=!0,f(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,i){"use strict";var r=e("./zlib/inflate"),n=e("./utils/common"),s=e("./utils/strings"),a=e("./zlib/constants"),o=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),h=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=n.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=r.inflateInit2(this.strm,t.windowBits);if(i!==a.Z_OK)throw new Error(o[i]);this.header=new u,r.inflateGetHeader(this.strm,this.header)}function d(e,t){var i=new c(t);if(i.push(e,!0),i.err)throw i.msg||o[i.err];return i.result}c.prototype.push=function(e,t){var i,o,l,u,c,d,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?p.input=s.binstring2buf(e):"[object ArrayBuffer]"===h.call(e)?p.input=new Uint8Array(e):p.input=e,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new n.Buf8(f),p.next_out=0,p.avail_out=f),(i=r.inflate(p,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&g&&(d="string"==typeof g?s.string2buf(g):"[object ArrayBuffer]"===h.call(g)?new Uint8Array(g):g,i=r.inflateSetDictionary(this.strm,d)),i===a.Z_BUF_ERROR&&!0===m&&(i=a.Z_OK,m=!1),i!==a.Z_STREAM_END&&i!==a.Z_OK)return this.onEnd(i),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&i!==a.Z_STREAM_END&&(0!==p.avail_in||o!==a.Z_FINISH&&o!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=s.utf8border(p.output,p.next_out),u=p.next_out-l,c=s.buf2string(p.output,l),p.next_out=u,p.avail_out=f-u,u&&n.arraySet(p.output,p.output,l,u,0),this.onData(c)):this.onData(n.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&i!==a.Z_STREAM_END);return i===a.Z_STREAM_END&&(o=a.Z_FINISH),o===a.Z_FINISH?(i=r.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===a.Z_OK):o!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(p.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Inflate=c,i.inflate=d,i.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},i.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,i){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var n={arraySet:function(e,t,i,r,n){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+r),n);else for(var s=0;s<r;s++)e[n+s]=t[i+s]},flattenChunks:function(e){var t,i,r,n,s,a;for(t=r=0,i=e.length;t<i;t++)r+=e[t].length;for(a=new Uint8Array(r),t=n=0,i=e.length;t<i;t++)s=e[t],a.set(s,n),n+=s.length;return a}},s={arraySet:function(e,t,i,r,n){for(var s=0;s<r;s++)e[n+s]=t[i+s]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,n)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(r)},{}],42:[function(e,t,i){"use strict";var r=e("./common"),n=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){n=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var a=new r.Buf8(256),o=0;o<256;o++)a[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(e,t){if(t<65537&&(e.subarray&&s||!e.subarray&&n))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var i="",a=0;a<t;a++)i+=String.fromCharCode(e[a]);return i}a[254]=a[254]=1,i.string2buf=function(e){var t,i,n,s,a,o=e.length,l=0;for(s=0;s<o;s++)55296==(64512&(i=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(n=e.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(n-56320),s++),l+=i<128?1:i<2048?2:i<65536?3:4;for(t=new r.Buf8(l),s=a=0;a<l;s++)55296==(64512&(i=e.charCodeAt(s)))&&s+1<o&&56320==(64512&(n=e.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(n-56320),s++),i<128?t[a++]=i:(i<2048?t[a++]=192|i>>>6:(i<65536?t[a++]=224|i>>>12:(t[a++]=240|i>>>18,t[a++]=128|i>>>12&63),t[a++]=128|i>>>6&63),t[a++]=128|63&i);return t},i.buf2binstring=function(e){return l(e,e.length)},i.binstring2buf=function(e){for(var t=new r.Buf8(e.length),i=0,n=t.length;i<n;i++)t[i]=e.charCodeAt(i);return t},i.buf2string=function(e,t){var i,r,n,s,o=t||e.length,u=new Array(2*o);for(i=r=0;i<o;)if((n=e[i++])<128)u[r++]=n;else if(4<(s=a[n]))u[r++]=65533,i+=s-1;else{for(n&=2===s?31:3===s?15:7;1<s&&i<o;)n=n<<6|63&e[i++],s--;1<s?u[r++]=65533:n<65536?u[r++]=n:(n-=65536,u[r++]=55296|n>>10&1023,u[r++]=56320|1023&n)}return l(u,r)},i.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return i<0||0===i?t:i+a[e[i]]>t?i:t}},{"./common":41}],43:[function(e,t,i){"use strict";t.exports=function(e,t,i,r){for(var n=65535&e,s=e>>>16&65535,a=0;0!==i;){for(i-=a=2e3<i?2e3:i;s=s+(n=n+t[r++]|0)|0,--a;);n%=65521,s%=65521}return n|s<<16}},{}],44:[function(e,t,i){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,i){"use strict";var r=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t,i,n){var s=r,a=n+i;e^=-1;for(var o=n;o<a;o++)e=e>>>8^s[255&(e^t[o])];return~e}},{}],46:[function(e,t,i){"use strict";var r,n=e("../utils/common"),s=e("./trees"),a=e("./adler32"),o=e("./crc32"),l=e("./messages"),u=0,h=4,c=0,d=-2,p=-1,f=4,g=2,m=8,b=9,v=286,y=30,_=19,w=2*v+1,x=15,D=3,k=258,T=k+D+1,P=42,S=113,C=1,O=2,A=3,E=4;function j(e,t){return e.msg=l[t],t}function L(e){return(e<<1)-(4<e?9:0)}function M(e){for(var t=e.length;0<=--t;)e[t]=0}function R(e){var t=e.state,i=t.pending;i>e.avail_out&&(i=e.avail_out),0!==i&&(n.arraySet(e.output,t.pending_buf,t.pending_out,i,e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,0===t.pending&&(t.pending_out=0))}function I(e,t){s._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,R(e.strm)}function B(e,t){e.pending_buf[e.pending++]=t}function N(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function F(e,t){var i,r,n=e.max_chain_length,s=e.strstart,a=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,u=e.window,h=e.w_mask,c=e.prev,d=e.strstart+k,p=u[s+a-1],f=u[s+a];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do{if(u[(i=t)+a]===f&&u[i+a-1]===p&&u[i]===u[s]&&u[++i]===u[s+1]){s+=2,i++;do{}while(u[++s]===u[++i]&&u[++s]===u[++i]&&u[++s]===u[++i]&&u[++s]===u[++i]&&u[++s]===u[++i]&&u[++s]===u[++i]&&u[++s]===u[++i]&&u[++s]===u[++i]&&s<d);if(r=k-(d-s),s=d-k,a<r){if(e.match_start=t,o<=(a=r))break;p=u[s+a-1],f=u[s+a]}}}while((t=c[t&h])>l&&0!=--n);return a<=e.lookahead?a:e.lookahead}function z(e){var t,i,r,s,l,u,h,c,d,p,f=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=f+(f-T)){for(n.arraySet(e.window,e.window,f,f,0),e.match_start-=f,e.strstart-=f,e.block_start-=f,t=i=e.hash_size;r=e.head[--t],e.head[t]=f<=r?r-f:0,--i;);for(t=i=f;r=e.prev[--t],e.prev[t]=f<=r?r-f:0,--i;);s+=f}if(0===e.strm.avail_in)break;if(u=e.strm,h=e.window,c=e.strstart+e.lookahead,p=void 0,(d=s)<(p=u.avail_in)&&(p=d),i=0===p?0:(u.avail_in-=p,n.arraySet(h,u.input,u.next_in,p,c),1===u.state.wrap?u.adler=a(u.adler,h,p,c):2===u.state.wrap&&(u.adler=o(u.adler,h,p,c)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=i,e.lookahead+e.insert>=D)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+D-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<D)););}while(e.lookahead<T&&0!==e.strm.avail_in)}function H(e,t){for(var i,r;;){if(e.lookahead<T){if(z(e),e.lookahead<T&&t===u)return C;if(0===e.lookahead)break}if(i=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==i&&e.strstart-i<=e.w_size-T&&(e.match_length=F(e,i)),e.match_length>=D)if(r=s._tr_tally(e,e.strstart-e.match_start,e.match_length-D),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=D){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;
vendor: 6,294 bytes, line 1
1else r=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(I(e,!1),0===e.strm.avail_out))return C}return e.insert=e.strstart<D-1?e.strstart:D-1,t===h?(I(e,!0),0===e.strm.avail_out?A:E):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?C:O}function U(e,t){for(var i,r,n;;){if(e.lookahead<T){if(z(e),e.lookahead<T&&t===u)return C;if(0===e.lookahead)break}if(i=0,e.lookahead>=D&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=D-1,0!==i&&e.prev_length<e.max_lazy_match&&e.strstart-i<=e.w_size-T&&(e.match_length=F(e,i),e.match_length<=5&&(1===e.strategy||e.match_length===D&&4096<e.strstart-e.match_start)&&(e.match_length=D-1)),e.prev_length>=D&&e.match_length<=e.prev_length){for(n=e.strstart+e.lookahead-D,r=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-D),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=n&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+D-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=D-1,e.strstart++,r&&(I(e,!1),0===e.strm.avail_out))return C}else if(e.match_available){if((r=s._tr_tally(e,0,e.window[e.strstart-1]))&&I(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return C}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<D-1?e.strstart:D-1,t===h?(I(e,!0),0===e.strm.avail_out?A:E):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?C:O}function $(e,t,i,r,n){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=r,this.func=n}function W(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(2*w),this.dyn_dtree=new n.Buf16(2*(2*y+1)),this.bl_tree=new n.Buf16(2*(2*_+1)),M(this.dyn_ltree),M(this.dyn_dtree),M(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(x+1),this.heap=new n.Buf16(2*v+1),M(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*v+1),M(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function G(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=g,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?P:S,e.adler=2===t.wrap?0:1,t.last_flush=u,s._tr_init(t),c):j(e,d)}function q(e){var t=G(e);return t===c&&function(e){e.window_size=2*e.w_size,M(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=D-1,e.match_available=0,e.ins_h=0}(e.state),t}function V(e,t,i,r,s,a){if(!e)return d;var o=1;if(t===p&&(t=6),r<0?(o=0,r=-r):15<r&&(o=2,r-=16),s<1||b<s||i!==m||r<8||15<r||t<0||9<t||a<0||f<a)return j(e,d);8===r&&(r=9);var l=new W;return(e.state=l).strm=e,l.wrap=o,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+D-1)/D),l.window=new n.Buf8(2*l.w_size),l.head=new n.Buf16(l.hash_size),l.prev=new n.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new n.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=i,q(e)}r=[new $(0,0,0,0,(function(e,t){var i=65535;for(i>e.pending_buf_size-5&&(i=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===u)return C;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+i;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,I(e,!1),0===e.strm.avail_out))return C;if(e.strstart-e.block_start>=e.w_size-T&&(I(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===h?(I(e,!0),0===e.strm.avail_out?A:E):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),C)})),new $(4,4,8,4,H),new $(4,5,16,8,H),new $(4,6,32,32,H),new $(4,4,16,16,U),new $(8,16,32,32,U),new $(8,16,128,128,U),new $(8,32,128,256,U),new $(32,128,258,1024,U),new $(32,258,258,4096,U)],i.deflateInit=function(e,t){return V(e,t,m,15,8,0)},i.deflateInit2=V,i.deflateReset=q,i.deflateResetKeep=G,i.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,c):d},i.deflate=function(e,t){var i,n,a,l;if(!e||!e.state||5<t||t<0)return e?j(e,d):d;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||666===n.status&&t!==h)return j(e,0===e.avail_out?-5:d);if(n.strm=e,i=n.last_flush,n.last_flush=t,n.status===P)if(2===n.wrap)e.adler=0,B(n,31),B(n,139),B(n,8),n.gzhead?(B(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),B(n,255&n.gzhead.time),B(n,n.gzhead.time>>8&255),B(n,n.gzhead.time>>16&255),B(n,n.gzhead.time>>24&255),B(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),B(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(B(n,255&n.gzhead.extra.length),B(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=o(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(B(n,0),B(n,0),B(n,0),B(n,0),B(n,0),B(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),B(n,3),n.status=S);else{var p=m+(n.w_bits-8<<4)<<8;p|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(p|=32),p+=31-p%31,n.status=S,N(n,p),0!==n.strstart&&(N(n,e.adler>>>16),N(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(a=n.pending;
vendor: 4,052 bytes, line 1
1n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending!==n.pending_buf_size));)B(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending===n.pending_buf_size)){l=1;break}l=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,B(n,l)}while(0!==l);n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),0===l&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){a=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),R(e),a=n.pending,n.pending===n.pending_buf_size)){l=1;break}l=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,B(n,l)}while(0!==l);n.gzhead.hcrc&&n.pending>a&&(e.adler=o(e.adler,n.pending_buf,n.pending-a,a)),0===l&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&R(e),n.pending+2<=n.pending_buf_size&&(B(n,255&e.adler),B(n,e.adler>>8&255),e.adler=0,n.status=S)):n.status=S),0!==n.pending){if(R(e),0===e.avail_out)return n.last_flush=-1,c}else if(0===e.avail_in&&L(t)<=L(i)&&t!==h)return j(e,-5);if(666===n.status&&0!==e.avail_in)return j(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==u&&666!==n.status){var f=2===n.strategy?function(e,t){for(var i;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===u)return C;break}if(e.match_length=0,i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(I(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===h?(I(e,!0),0===e.strm.avail_out?A:E):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?C:O}(n,t):3===n.strategy?function(e,t){for(var i,r,n,a,o=e.window;;){if(e.lookahead<=k){if(z(e),e.lookahead<=k&&t===u)return C;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=D&&0<e.strstart&&(r=o[n=e.strstart-1])===o[++n]&&r===o[++n]&&r===o[++n]){a=e.strstart+k;do{}while(r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&r===o[++n]&&n<a);e.match_length=k-(a-n),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=D?(i=s._tr_tally(e,1,e.match_length-D),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(I(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===h?(I(e,!0),0===e.strm.avail_out?A:E):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?C:O}(n,t):r[n.level].func(n,t);if(f!==A&&f!==E||(n.status=666),f===C||f===A)return 0===e.avail_out&&(n.last_flush=-1),c;if(f===O&&(1===t?s._tr_align(n):5!==t&&(s._tr_stored_block(n,0,0,!1),3===t&&(M(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),R(e),0===e.avail_out))return n.last_flush=-1,c}return t!==h?c:n.wrap<=0?1:(2===n.wrap?(B(n,255&e.adler),B(n,e.adler>>8&255),B(n,e.adler>>16&255),B(n,e.adler>>24&255),B(n,255&e.total_in),B(n,e.total_in>>8&255),B(n,e.total_in>>16&255),B(n,e.total_in>>24&255)):(N(n,e.adler>>>16),N(n,65535&e.adler)),R(e),0<n.wrap&&(n.wrap=-n.wrap),0!==n.pending?c:1)},i.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==P&&69!==t&&73!==t&&91!==t&&103!==t&&t!==S&&666!==t?j(e,d):(e.state=null,t===S?j(e,-3):c):d},i.deflateSetDictionary=function(e,t){var i,r,s,o,l,u,h,p,f=t.length;if(!e||!e.state)return d;if(2===(o=(i=e.state).wrap)||1===o&&i.status!==P||i.lookahead)return d;for(1===o&&(e.adler=a(e.adler,t,f,0)),i.wrap=0,f>=i.w_size&&(0===o&&(M(i.head),i.strstart=0,i.block_start=0,i.insert=0),p=new n.Buf8(i.w_size),n.arraySet(p,t,f-i.w_size,i.w_size,0),t=p,f=i.w_size),l=e.avail_in,u=e.next_in,h=e.input,e.avail_in=f,e.
vendor: 16,472 bytes, line 1
1next_in=0,e.input=t,z(i);i.lookahead>=D;){for(r=i.strstart,s=i.lookahead-(D-1);i.ins_h=(i.ins_h<<i.hash_shift^i.window[r+D-1])&i.hash_mask,i.prev[r&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=r,r++,--s;);i.strstart=r,i.lookahead=D-1,z(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=D-1,i.match_available=0,e.next_in=u,e.input=h,e.avail_in=l,i.wrap=o,c},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,i){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,i){"use strict";t.exports=function(e,t){var i,r,n,s,a,o,l,u,h,c,d,p,f,g,m,b,v,y,_,w,x,D,k,T,P;i=e.state,r=e.next_in,T=e.input,n=r+(e.avail_in-5),s=e.next_out,P=e.output,a=s-(t-e.avail_out),o=s+(e.avail_out-257),l=i.dmax,u=i.wsize,h=i.whave,c=i.wnext,d=i.window,p=i.hold,f=i.bits,g=i.lencode,m=i.distcode,b=(1<<i.lenbits)-1,v=(1<<i.distbits)-1;e:do{f<15&&(p+=T[r++]<<f,f+=8,p+=T[r++]<<f,f+=8),y=g[p&b];t:for(;;){if(p>>>=_=y>>>24,f-=_,0==(_=y>>>16&255))P[s++]=65535&y;else{if(!(16&_)){if(!(64&_)){y=g[(65535&y)+(p&(1<<_)-1)];continue t}if(32&_){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}w=65535&y,(_&=15)&&(f<_&&(p+=T[r++]<<f,f+=8),w+=p&(1<<_)-1,p>>>=_,f-=_),f<15&&(p+=T[r++]<<f,f+=8,p+=T[r++]<<f,f+=8),y=m[p&v];i:for(;;){if(p>>>=_=y>>>24,f-=_,!(16&(_=y>>>16&255))){if(!(64&_)){y=m[(65535&y)+(p&(1<<_)-1)];continue i}e.msg="invalid distance code",i.mode=30;break e}if(x=65535&y,f<(_&=15)&&(p+=T[r++]<<f,(f+=8)<_&&(p+=T[r++]<<f,f+=8)),l<(x+=p&(1<<_)-1)){e.msg="invalid distance too far back",i.mode=30;break e}if(p>>>=_,f-=_,(_=s-a)<x){if(h<(_=x-_)&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(k=d,(D=0)===c){if(D+=u-_,_<w){for(w-=_;P[s++]=d[D++],--_;);D=s-x,k=P}}else if(c<_){if(D+=u+c-_,(_-=c)<w){for(w-=_;P[s++]=d[D++],--_;);if(D=0,c<w){for(w-=_=c;P[s++]=d[D++],--_;);D=s-x,k=P}}}else if(D+=c-_,_<w){for(w-=_;P[s++]=d[D++],--_;);D=s-x,k=P}for(;2<w;)P[s++]=k[D++],P[s++]=k[D++],P[s++]=k[D++],w-=3;w&&(P[s++]=k[D++],1<w&&(P[s++]=k[D++]))}else{for(D=s-x;P[s++]=P[D++],P[s++]=P[D++],P[s++]=P[D++],2<(w-=3););w&&(P[s++]=P[D++],1<w&&(P[s++]=P[D++]))}break}}break}}while(r<n&&s<o);r-=w=f>>3,p&=(1<<(f-=w<<3))-1,e.next_in=r,e.next_out=s,e.avail_in=r<n?n-r+5:5-(r-n),e.avail_out=s<o?o-s+257:257-(s-o),i.hold=p,i.bits=f}},{}],49:[function(e,t,i){"use strict";var r=e("../utils/common"),n=e("./adler32"),s=e("./crc32"),a=e("./inffast"),o=e("./inftrees"),l=1,u=2,h=0,c=-2,d=1,p=852,f=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(f),t.sane=1,t.back=-1,h):c}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):c}function y(e,t){var i,r;return e&&e.state?(r=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?c:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=i,r.wbits=t,v(e))):c}function _(e,t){var i,r;return e?(r=new m,(e.state=r).window=null,(i=y(e,t))!==h&&(e.state=null),i):c}var w,x,D=!0;function k(e){if(D){var t;for(w=new r.Buf32(512),x=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(l,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(u,e.lens,0,32,x,0,e.work,{bits:5}),D=!1}e.lencode=w,e.lenbits=9,e.distcode=x,e.distbits=5}function T(e,t,i,n){var s,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),n>=a.wsize?(r.arraySet(a.window,t,i-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(n<(s=a.wsize-a.wnext)&&(s=n),r.arraySet(a.window,t,i-n,s,a.wnext),(n-=s)?(r.arraySet(a.window,t,i-n,n,0),a.wnext=n,a.whave=a.wsize):(a.wnext+=s,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=s))),0}i.inflateReset=v,i.inflateReset2=y,i.inflateResetKeep=b,i.inflateInit=function(e){return _(e,15)},i.inflateInit2=_,i.inflate=function(e,t){var i,p,f,m,b,v,y,_,w,x,D,P,S,C,O,A,E,j,L,M,R,I,B,N,F=0,z=new r.Buf8(4),H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return c;12===(i=e.state).mode&&(i.mode=13),b=e.next_out,f=e.output,y=e.avail_out,m=e.next_in,p=e.input,v=e.avail_in,_=i.hold,w=i.bits,x=v,D=y,I=h;e:for(;;)switch(i.mode){case d:if(0===i.wrap){i.mode=13;break}for(;w<16;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(2&i.wrap&&35615===_){z[i.check=0]=255&_,z[1]=_>>>8&255,i.check=s(i.check,z,2,0),w=_=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&_)<<8)+(_>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&_)){e.msg="unknown compression method",i.mode=30;break}if(w-=4,R=8+(15&(_>>>=4)),0===i.wbits)i.wbits=R;else if(R>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<<R,e.adler=i.check=1,i.mode=512&_?10:12,w=_=0;break;case 2:for(;w<16;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(i.flags=_,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=_>>8&1),512&i.flags&&(z[0]=255&_,z[1]=_>>>8&255,i.check=s(i.check,z,2,0)),w=_=0,i.mode=3;case 3:for(;w<32;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}i.head&&(i.head.time=_),512&i.flags&&(z[0]=255&_,z[1]=_>>>8&255,z[2]=_>>>16&255,z[3]=_>>>24&255,i.check=s(i.check,z,4,0)),w=_=0,i.mode=4;case 4:for(;w<16;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}i.head&&(i.head.xflags=255&_,i.head.os=_>>8),512&i.flags&&(z[0]=255&_,z[1]=_>>>8&255,i.check=s(i.check,z,2,0)),w=_=0,i.mode=5;case 5:if(1024&i.flags){for(;w<16;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}i.length=_,i.head&&(i.head.extra_len=_),512&i.flags&&(z[0]=255&_,z[1]=_>>>8&255,i.check=s(i.check,z,2,0)),w=_=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(v<(P=i.length)&&(P=v),P&&(i.head&&(R=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),r.arraySet(i.head.extra,p,m,P,R)),512&i.flags&&(i.check=s(i.check,p,P,m)),v-=P,m+=P,i.length-=P),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===v)break e;for(P=0;R=p[m+P++],i.head&&R&&i.length<65536&&(i.head.name+=String.fromCharCode(R)),R&&P<v;);if(512&i.flags&&(i.check=s(i.check,p,P,m)),v-=P,m+=P,R)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===v)break e;for(P=0;R=p[m+P++],i.head&&R&&i.length<65536&&(i.head.comment+=String.fromCharCode(R)),R&&P<v;);if(512&i.flags&&(i.check=s(i.check,p,P,m)),v-=P,m+=P,R)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;w<16;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(_!==(65535&i.check)){e.msg="header crc mismatch",i.mode=30;break}w=_=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=12;break;case 10:for(;w<32;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}e.adler=i.check=g(_),w=_=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=b,e.avail_out=y,e.next_in=m,e.avail_in=v,i.hold=_,i.bits=w,2;e.adler=i.check=1,i.mode=12;case 12:if(5===t||6===t)break e;case 13:if(i.last){_>>>=7&w,w-=7&w,i.mode=27;break}for(;w<3;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}switch(i.last=1&_,w-=1,3&(_>>>=1)){case 0:i.mode=14;break;case 1:if(k(i),i.mode=20,6!==t)break;_>>>=2,w-=2;break e;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}_>>>=2,w-=2;break;case 14:for(_>>>=7&w,w-=7&w;w<32;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if((65535&_)!=(_>>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&_,w=_=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(P=i.length){if(v<P&&(P=v),y<P&&(P=y),0===P)break e;r.arraySet(f,p,m,P,b),v-=P,m+=P,y-=P,b+=P,i.length-=P;break}i.mode=12;break;case 17:for(;w<14;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(i.nlen=257+(31&_),_>>>=5,w-=5,i.ndist=1+(31&_),_>>>=5,w-=5,i.ncode=4+(15&_),_>>>=4,w-=4,286<i.nlen||30<i.ndist){e.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;w<3;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}i.lens[H[i.have++]]=7&_,_>>>=3,w-=3}for(;i.have<19;)i.lens[H[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,B={bits:i.lenbits},I=o(0,i.lens,0,19,i.lencode,0,i.work,B),i.lenbits=B.bits,I){e.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;A=(F=i.lencode[_&(1<<i.lenbits)-1])>>>16&255,E=65535&F,!((O=F>>>24)<=w);){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(E<16)_>>>=O,w-=O,i.lens[i.have++]=E;else{if(16===E){for(N=O+2;w<N;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(_>>>=O,w-=O,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}R=i.lens[i.have-1],P=3+(3&_),_>>>=2,w-=2}else if(17===E){for(N=O+3;w<N;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}w-=O,R=0,P=3+(7&(_>>>=O)),_>>>=3,w-=3}else{for(N=O+7;w<N;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}w-=O,R=0,P=11+(127&(_>>>=O)),_>>>=7,w-=7}if(i.have+P>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;P--;)i.lens[i.have++]=R}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,B={bits:i.lenbits},I=o(l,i.lens,0,i.nlen,i.lencode,0,i.work,B),i.lenbits=B.bits,I){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,B={bits:i.distbits},I=o(u,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,B),i.distbits=B.bits,I){e.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(6<=v&&258<=y){e.next_out=b,e.avail_out=y,e.next_in=m,e.avail_in=v,i.hold=_,i.bits=w,a(e,D),b=e.next_out,f=e.output,y=e.avail_out,m=e.next_in,p=e.input,v=e.avail_in,_=i.hold,w=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;A=(F=i.lencode[_&(1<<i.lenbits)-1])>>>16&255,E=65535&F,!((O=F>>>24)<=w);){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(A&&!(240&A)){for(j=O,L=A,M=E;A=(F=i.lencode[M+((_&(1<<j+L)-1)>>j)])>>>16&255,E=65535&F,!(j+(O=F>>>24)<=w);){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}_>>>=j,w-=j,i.back+=j}if(_>>>=O,w-=O,i.back+=O,i.length=E,0===A){i.mode=26;break}if(32&A){i.back=-1,i.mode=12;break}if(64&A){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&A,i.mode=22;case 22:if(i.extra){for(N=i.extra;w<N;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}i.length+=_&(1<<i.extra)-1,_>>>=i.extra,w-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;A=(F=i.distcode[_&(1<<i.distbits)-1])>>>16&255,E=65535&F,!((O=F>>>24)<=w);){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(!(240&A)){for(j=O,L=A,M=E;A=(F=i.distcode[M+((_&(1<<j+L)-1)>>j)])>>>16&255,E=65535&F,!(j+(O=F>>>24)<=w);){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}_>>>=j,w-=j,i.back+=j}if(_>>>=O,w-=O,i.back+=O,64&A){e.msg="invalid distance code",i.mode=30;break}i.offset=E,i.extra=15&A,i.mode=24;case 24:if(i.extra){for(N=i.extra;w<N;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}i.offset+=_&(1<<i.extra)-1,_>>>=i.extra,w-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===y)break e;if(P=D-y,i.offset>P){if((P=i.offset-P)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}S=P>i.wnext?(P-=i.wnext,i.wsize-P):i.wnext-P,P>i.length&&(P=i.length),C=i.window}else C=f,S=b-i.offset,P=i.length;for(y<P&&(P=y),y-=P,i.length-=P;f[b++]=C[S++],--P;);0===i.length&&(i.mode=21);break;case 26:if(0===y)break e;f[b++]=i.length,y--,i.mode=21;break;case 27:if(i.wrap){for(;w<32;){if(0===v)break e;v--,_|=p[m++]<<w,w+=8}if(D-=y,e.total_out+=D,i.total+=D,D&&(e.adler=i.check=i.flags?s(i.check,f,D,b-D):n(i.check,f,D,b-D)),D=y,(i.flags?_:g(_))!==i.check){e.msg="incorrect data check",i.mode=30;break}w=_=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;w<32;){if(0===v)break e;v--,_+=p[m++]<<w,w+=8}if(_!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=30;break}w=_=0}i.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;default:return c}return e.next_out=b,e.avail_out=y,e.next_in=m,e.avail_in=v,i.hold=_,i.bits=w,(i.wsize||D!==e.avail_out&&i.mode<30&&(i.mode<27||4!==t))&&T(e,e.output,e.next_out,D-e.avail_out)?(i.mode=31,-4):(x-=e.avail_in,D-=e.avail_out,e.total_in+=x,e.total_out+=D,i.total+=D,i.wrap&&D&&(e.adler=i.check=i.flags?s(i.check,f,D,e.next_out-D):n(i.check,f,D,e.next_out-D)),e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0==x&&0===D||4===t)&&I===h&&(I=-5),I)},i.inflateEnd=function(e){if(!e||!e.state)return c;var t=e.state;return t.window&&(t.window=null),e.state=null,h},i.inflateGetHeader=function(e,t){var i;return e&&e.state&&2&(i=e.state).wrap?((i.head=t).done=!1,h):c},i.inflateSetDictionary=function(e,t){var i,r=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?c:11===i.mode&&n(1,t,r,0)!==i.check?-3:T(e,t,r,r)?(i.mode=31,-4):(i.havedict=1,h):c},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,i){"use strict";var r=e("../utils/common"),n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,i,l,u,h,c,d){var p,f,g,m,b,v,y,_,w,x=d.bits,D=0,k=0,T=0,P=0,S=0,C=0,O=0,A=0,E=0,j=0,L=null,M=0,R=new r.Buf16(16),I=new r.Buf16(16),B=null,N=0;for(D=0;D<=15;D++)R[D]=0;for(k=0;k<l;k++)R[t[i+k]]++;for(S=x,P=15;1<=P&&0===R[P];P--);if(P<S&&(S=P),0===P)return u[h++]=20971520,u[h++]=20971520,d.bits=1,0;for(T=1;T<P&&0===R[T];T++);for(S<T&&(S=T),D=A=1;D<=15;D++)if(A<<=1,(A-=R[D])<0)return-1;if(0<A&&(0===e||1!==P))return-1;for(I[1]=0,D=1;D<15;D++)I[D+1]=I[D]+R[D];for(k=0;k<l;k++)0!==t[i+k]&&(c[I[t[i+k]]++]=k);if(v=0===e?(L=B=c,19):1===e?(L=n,M-=257,B=s,N-=257,256):(L=a,B=o,-1),D=T,b=h,O=k=j=0,g=-1,m=(E=1<<(C=S))-1,1===e&&852<E||2===e&&592<E)return 1;for(;;){for(y=D-O,w=c[k]<v?(_=0,c[k]):c[k]>v?(_=B[N+c[k]],L[M+c[k]]):(_=96,0),p=1<<D-O,T=f=1<<C;u[b+(j>>O)+(f-=p)]=y<<24|_<<16|w,0!==f;);for(p=1<<D-1;j&p;)p>>=1;if(0!==p?(j&=p-1,j+=p):j=0,k++,0==--R[D]){if(D===P)break;D=t[i+c[k]]}if(S<D&&(j&m)!==g){for(0===O&&(O=S),b+=T,A=1<<(C=D-O);C+O<P&&!((A-=R[C+O])<=0);)C++,A<<=1;if(E+=1<<C,1===e&&852<E||2===e&&592<E)return 1;u[g=j&m]=S<<24|C<<16|b-h}}return 0!==j&&(u[b+j]=D-O<<24|64<<16),d.bits=S,0}},{"../utils/common":41}],51:[function(e,t,i){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,i){"use strict";var r=e("../utils/common"),n=0,s=1;function a(e){for(var t=e.length;0<=--t;)e[t]=0}var o=0,l=29,u=256,h=u+1+l,c=30,d=19,p=2*h+1,f=15,g=16,m=7,b=256,v=16,y=17,_=18,w=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],k=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(h+2));a(T);var P=new Array(2*c);a(P);var S=new Array(512);a(S);var C=new Array(256);a(C);var O=new Array(l);a(O);var A,E,j,L=new Array(c);function M(e,t,i,r,n){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=r,this.max_length=n,this.has_stree=e&&e.length}function R(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function I(e){return e<256?S[e]:S[256+(e>>>7)]}
vendor: 5,750 bytes, line 1
1function B(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function N(e,t,i){e.bi_valid>g-i?(e.bi_buf|=t<<e.bi_valid&65535,B(e,e.bi_buf),e.bi_buf=t>>g-e.bi_valid,e.bi_valid+=i-g):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=i)}function F(e,t,i){N(e,i[2*t],i[2*t+1])}function z(e,t){for(var i=0;i|=1&e,e>>>=1,i<<=1,0<--t;);return i>>>1}function H(e,t,i){var r,n,s=new Array(f+1),a=0;for(r=1;r<=f;r++)s[r]=a=a+i[r-1]<<1;for(n=0;n<=t;n++){var o=e[2*n+1];0!==o&&(e[2*n]=z(s[o]++,o))}}function U(e){var t;for(t=0;t<h;t++)e.dyn_ltree[2*t]=0;for(t=0;t<c;t++)e.dyn_dtree[2*t]=0;for(t=0;t<d;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function $(e){8<e.bi_valid?B(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function W(e,t,i,r){var n=2*t,s=2*i;return e[n]<e[s]||e[n]===e[s]&&r[t]<=r[i]}function G(e,t,i){for(var r=e.heap[i],n=i<<1;n<=e.heap_len&&(n<e.heap_len&&W(t,e.heap[n+1],e.heap[n],e.depth)&&n++,!W(t,r,e.heap[n],e.depth));)e.heap[i]=e.heap[n],i=n,n<<=1;e.heap[i]=r}function q(e,t,i){var r,n,s,a,o=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*o]<<8|e.pending_buf[e.d_buf+2*o+1],n=e.pending_buf[e.l_buf+o],o++,0===r?F(e,n,t):(F(e,(s=C[n])+u+1,t),0!==(a=w[s])&&N(e,n-=O[s],a),F(e,s=I(--r),i),0!==(a=x[s])&&N(e,r-=L[s],a)),o<e.last_lit;);F(e,b,t)}function V(e,t){var i,r,n,s=t.dyn_tree,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=p,i=0;i<l;i++)0!==s[2*i]?(e.heap[++e.heap_len]=u=i,e.depth[i]=0):s[2*i+1]=0;for(;e.heap_len<2;)s[2*(n=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[n]=0,e.opt_len--,o&&(e.static_len-=a[2*n+1]);for(t.max_code=u,i=e.heap_len>>1;1<=i;i--)G(e,s,i);for(n=l;i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],G(e,s,1),r=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=r,s[2*n]=s[2*i]+s[2*r],e.depth[n]=(e.depth[i]>=e.depth[r]?e.depth[i]:e.depth[r])+1,s[2*i+1]=s[2*r+1]=n,e.heap[1]=n++,G(e,s,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var i,r,n,s,a,o,l=t.dyn_tree,u=t.max_code,h=t.stat_desc.static_tree,c=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,g=t.stat_desc.extra_base,m=t.stat_desc.max_length,b=0;for(s=0;s<=f;s++)e.bl_count[s]=0;for(l[2*e.heap[e.heap_max]+1]=0,i=e.heap_max+1;i<p;i++)m<(s=l[2*l[2*(r=e.heap[i])+1]+1]+1)&&(s=m,b++),l[2*r+1]=s,u<r||(e.bl_count[s]++,a=0,g<=r&&(a=d[r-g]),o=l[2*r],e.opt_len+=o*(s+a),c&&(e.static_len+=o*(h[2*r+1]+a)));if(0!==b){do{for(s=m-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[m]--,b-=2}while(0<b);for(s=m;0!==s;s--)for(r=e.bl_count[s];0!==r;)u<(n=e.heap[--i])||(l[2*n+1]!==s&&(e.opt_len+=(s-l[2*n+1])*l[2*n],l[2*n+1]=s),r--)}}(e,t),H(s,u,e.bl_count)}function Y(e,t,i){var r,n,s=-1,a=t[1],o=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(i+1)+1]=65535,r=0;r<=i;r++)n=a,a=t[2*(r+1)+1],++o<l&&n===a||(o<u?e.bl_tree[2*n]+=o:0!==n?(n!==s&&e.bl_tree[2*n]++,e.bl_tree[2*v]++):o<=10?e.bl_tree[2*y]++:e.bl_tree[2*_]++,s=n,u=(o=0)===a?(l=138,3):n===a?(l=6,3):(l=7,4))}function X(e,t,i){var r,n,s=-1,a=t[1],o=0,l=7,u=4;for(0===a&&(l=138,u=3),r=0;r<=i;r++)if(n=a,a=t[2*(r+1)+1],!(++o<l&&n===a)){if(o<u)for(;F(e,n,e.bl_tree),0!=--o;);else 0!==n?(n!==s&&(F(e,n,e.bl_tree),o--),F(e,v,e.bl_tree),N(e,o-3,2)):o<=10?(F(e,y,e.bl_tree),N(e,o-3,3)):(F(e,_,e.bl_tree),N(e,o-11,7));s=n,u=(o=0)===a?(l=138,3):n===a?(l=6,3):(l=7,4)}}a(L);var Z=!1;function K(e,t,i,n){N(e,(o<<1)+(n?1:0),3),function(e,t,i,n){$(e),n&&(B(e,i),B(e,~i)),r.arraySet(e.pending_buf,e.window,t,i,e.pending),e.pending+=i}(e,t,i,!0)}i._tr_init=function(e){Z||(function(){var e,t,i,r,n,s=new Array(f+1);for(r=i=0;r<l-1;r++)for(O[r]=i,e=0;e<1<<w[r];e++)C[i++]=r;for(C[i-1]=r,r=n=0;r<16;r++)for(L[r]=n,e=0;e<1<<x[r];e++)S[n++]=r;for(n>>=7;r<c;r++)for(L[r]=n<<7,e=0;e<1<<x[r]-7;e++)S[256+n++]=r;for(t=0;t<=f;t++)s[t]=0;for(e=0;e<=143;)T[2*e+1]=8,e++,s[8]++;for(;e<=255;)T[2*e+1]=9,e++,s[9]++;for(;e<=279;)T[2*e+1]=7,e++,s[7]++;for(;e<=287;)T[2*e+1]=8,e++,s[8]++;for(H(T,h+1,s),e=0;e<c;e++)P[2*e+1]=5,P[2*e]=z(e,5);A=new M(T,w,u+1,h,f),E=new M(P,x,0,c,f),j=new M(new Array(0),D,0,d,m)}(),Z=!0),e.l_desc=new R(e.dyn_ltree,A),e.d_desc=new R(e.dyn_dtree,E),e.bl_desc=new R(e.bl_tree,j),e.bi_buf=0,e.bi_valid=0,U(e)},i._tr_stored_block=K,i._tr_flush_block=function(e,t,i,r){var a,o,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,i=4093624447;for(t=0;t<=31;t++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return n;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return s;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return s;return n}(e)),V(e,e.l_desc),V(e,e.d_desc),l=function(e){var t;for(Y(e,e.dyn_ltree,e.l_desc.max_code),Y(e,e.dyn_dtree,e.d_desc.max_code),V(e,e.bl_desc),t=d-1;3<=t&&0===e.bl_tree[2*k[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=a&&(a=o)):a=o=i+5,i+4<=a&&-1!==t?K(e,t,i,r):4===e.strategy||o===a?(N(e,2+(r?1:0),3),q(e,T,P)):(N(e,4+(r?1:0),3),function(e,t,i,r){var n;for(N(e,t-257,5),N(e,i-1,5),N(e,r-4,4),n=0;n<r;n++)N(e,e.bl_tree[2*k[n]+1],3);X(e,e.dyn_ltree,t-1),X(e,e.dyn_dtree,i-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),q(e,e.dyn_ltree,e.dyn_dtree)),U(e),r&&$(e)},i._tr_tally=function(e,t,i){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&i,e.last_lit++,0===t?e.dyn_ltree[2*i]++:(e.matches++,t--,e.dyn_ltree[2*(C[i]+u+1)]++,e.dyn_dtree[2*I(t)]++),e.last_lit===e.lit_bufsize-1},i._tr_align=function(e){N(e,2,3),F(e,b,T),function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,i){"use strict";
vendor: 7,667 bytes, line 1
1t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var i,r,n,s,a=1,o={},l=!1,u=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,i="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,i=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=i,t}}()?(s="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",p,!1):e.attachEvent("onmessage",p),function(t){e.postMessage(s+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){n.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(d,0,e)},h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var n={callback:e,args:t};return o[a]=n,i(a),a++},h.clearImmediate=c}function c(e){delete o[e]}function d(e){if(l)setTimeout(d,0,e);else{var i=o[e];if(i){l=!0;try{!function(e){var i=e.callback,r=e.args;switch(r.length){case 0:i();break;case 1:i(r[0]);break;case 2:i(r[0],r[1]);break;case 3:i(r[0],r[1],r[2]);break;default:i.apply(t,r)}}(i)}finally{c(e),l=!1}}}}function p(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&d(+t.data.slice(s.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},844:function(e,t,i){"use strict";i.r(t),i.d(t,{ArrayDisposer:function(){return we},BlendMode:function(){return pr},Bullet:function(){return Yn},Button:function(){return Zn},CSVParser:function(){return xa},CanvasLayer:function(){return $n},CanvasRenderer:function(){return Hn},Chart:function(){return ua},Circle:function(){return Kn},CirclePattern:function(){return ga},Color:function(){return Rt},ColorSet:function(){return _a},Component:function(){return ns},Container:function(){return Pr},CounterDisposer:function(){return ke},DataItem:function(){return rs},DataProcessor:function(){return Da},DateFormatter:function(){return zr},Disposer:function(){return _e},DurationFormatter:function(){return Hr},EditableLabel:function(){return us},Ellipse:function(){return Qn},Entity:function(){return rr},Gradient:function(){return as},GrainPattern:function(){return pa},Graphics:function(){return fr},GridLayout:function(){return _r},HeatLegend:function(){return ls},HorizontalLayout:function(){return vr},InterfaceColors:function(){return jr},JSONParser:function(){return wa},JsonData:function(){return is},Label:function(){return Lr},Layout:function(){return br},Legend:function(){return Ps},Line:function(){return Os},LinePattern:function(){return ma},LinearGradient:function(){return os},ListData:function(){return ts},ListTemplate:function(){return qt},Modal:function(){return Vn},MultiDisposer:function(){return xe},MutableValueDisposer:function(){return De},NumberFormatter:function(){return Ir},PathPattern:function(){return va},Pattern:function(){return cr},PatternSet:function(){return ya},Percent:function(){return d},Picture:function(){return As},PicturePattern:function(){return dr},PointedRectangle:function(){return Mr},Polygon:function(){return Jn},RadialGradient:function(){return fa},RadialLabel:function(){return js},RadialText:function(){return Es},Rectangle:function(){return gr},RectanglePattern:function(){return ba},Root:function(){return Gn},RoundedRectangle:function(){return Xn},Scrollbar:function(){return Ms},SerialChart:function(){return ha},Series:function(){return Ts},Slice:function(){return la},Slider:function(){return Rs},Sprite:function(){return hr},SpriteResizer:function(){return ka},Star:function(){return es},Template:function(){return lr},Text:function(){return Sr},TextFormatter:function(){return wr},Theme:function(){return Wr},Tick:function(){return ca},Timezone:function(){return Fr},Tooltip:function(){return Rr},Triangle:function(){return Ls},VerticalLayout:function(){return yr},ZoomTools:function(){return da},ZoomableContainer:function(){return ss},addLicense:function(){return Yi},array:function(){return n},color:function(){return Mt},disposeAllRootElements:function(){return Xi},ease:function(){return l},getRootById:function(){return Zi},math:function(){return o},net:function(){return h},object:function(){return s},p0:function(){return f},p100:function(){return g},p50:function(){return m},percent:function(){return p},ready:function(){return Te},registry:function(){return Vi},time:function(){return u},type:function(){return r},utils:function(){return a}});var r={};i.r(r),i.d(r,{PLACEHOLDER:function(){return A},PLACEHOLDER2:function(){return E},assert:function(){return _},getType:function(){return y},isArray:function(){return O},isDate:function(){return T},isNaN:function(){return v},isNumber:function(){return S},isObject:function(){return C},isString:function(){return P},numberToString:function(){return D},repeat:function(){return k},toDate:function(){return x},toNumber:function(){return w}});var n={};i.r(n),i.d(n,{add:function(){return V},any:function(){return L},copy:function(){return J},each:function(){return R},eachContinue:function(){return B},eachReverse:function(){return I},find:function(){return ne},findIndex:function(){return ie},findIndexReverse:function(){return re},findMap:function(){return ae},findReverse:function(){return se},first:function(){return z},getFirstSortedIndex:function(){return ue},getSortedIndex:function(){return le},has:function(){return K},indexOf:function(){return j},insert:function(){return H},insertIndex:function(){return ee},keepIf:function(){return he},last:function(){return F},map:function(){return M},move:function(){return q},pushAll:function(){return $},pushOne:function(){return Y},remove:function(){return W},removeFirst:function(){return G},removeIndex:function(){return te},replace:function(){return X},setIndex:function(){return U},shiftLeft:function(){return N},shuffle:function(){return oe},slice:function(){return Q},toArray:function(){return Z}});var s={};i.r(s),i.d(s,{copy:function(){return pe},each:function(){return fe},eachContinue:function(){return ge},eachOrdered:function(){return me},hasKey:function(){return be},keys:function(){return ce},keysOrdered:function(){return de},softCopyProperties:function(){return ve}});var a={};i.r(a),i.d(a,{StyleRule:function(){return Ge},StyleSheet:function(){return qe},addClass:function(){return Ve},addEventListener:function(){return Se},addSpacing:function(){return ut},alternativeColor:function(){return At},blur:function(){return Ee},brighten:function(){return Pt},capitalizeFirst:function(){return yt},cleanFormat:function(){return st},contains:function(){return Ne},decimalPlaces:function(){return Je},escapeForRgex:function(){return lt},focus:function(){return je},get12Hours:function(){return mt},getBrightnessStep:function(){return St},getDayFromWeek:function(){return gt},getEventKey:function(){return He},getEventTarget:function(){return Be},getFormat:function(){return nt},getLightnessStep:function(){return Tt},getMonthWeek:function(){return ft},getPointerId:function(){return Ae},getRendererEvent:function(){return Le}
1,getSafeResolution:function(){return Ze},getShadowRoot:function(){return Ue},getStyle:function(){return Ie},getTimeZone:function(){return bt},getTimezoneOffset:function(){return vt},getWeek:function(){return dt},getWeekYear:function(){return pt},getYearDay:function(){return ct},hslToHsv:function(){return Dt},hslToRgb:function(){return _t},hsvToHsl:function(){return xt},iOS:function(){return Xe},isLight:function(){return Ct},isLocalEvent:function(){return Fe},isTouchEvent:function(){return Me},lighten:function(){return kt},mergeTags:function(){return Et},onZoom:function(){return Ce},padString:function(){return Qe},plainText:function(){return ot},ready:function(){return Te},relativeToValue:function(){return Ke},removeClass:function(){return Ye},removeElement:function(){return Pe},rgbToHsl:function(){return wt},sameBounds:function(){return jt},saturate:function(){return Ot},setInteractive:function(){return ze},setStyle:function(){return Re},splitString:function(){return ht},stripTags:function(){return at},supports:function(){return Oe},trim:function(){return it},trimLeft:function(){return et},trimRight:function(){return tt},truncateTextWithEllipsis:function(){return rt}});var o={};i.r(o),i.d(o,{DEGREES:function(){return Kt},HALFPI:function(){return Xt},PI:function(){return Yt},RADIANS:function(){return Zt},boundsOverlap:function(){return mi},ceil:function(){return Qt},circlesOverlap:function(){return vi},closest:function(){return gi},cos:function(){return si},fitAngleToRange:function(){return hi},fitToRange:function(){return ii},getAngle:function(){return di},getArcBounds:function(){return oi},getArcPoint:function(){return li},getCubicControlPointA:function(){return ei},getCubicControlPointB:function(){return ti},getPointOnLine:function(){return fi},getPointOnQuadraticCurve:function(){return pi},inBounds:function(){return ci},mergeBounds:function(){return ui},normalizeAngle:function(){return ai}
1,round:function(){return Jt},sin:function(){return ri},spiralPoints:function(){return bi},tan:function(){return ni}});var l={};i.r(l),i.d(l,{bounce:function(){return Fi},circle:function(){return Ti},cubic:function(){return wi},elastic:function(){return Wi},exp:function(){return Di},inOut:function(){return Ci},linear:function(){return yi},out:function(){return Si},pow:function(){return xi},quad:function(){return _i},sine:function(){return ki},yoyo:function(){return Pi}});var u={};i.r(u),i.d(u,{add:function(){return _s},checkChange:function(){return ys},chooseInterval:function(){return Ds},copy:function(){return vs},getDateIntervalDuration:function(){return gs},getDuration:function(){return ps},getIntervalDuration:function(){return fs},getNextUnit:function(){return ds},getTime:function(){return bs},getUnitValue:function(){return ks},now:function(){return ms},roun:function(){return ws},round:function(){return xs},sleep:function(){return hs},timeUnitDurations:function(){return cs}});var h={};i.r(h),i.d(h,{load:function(){return Ta},readBlob:function(){return Pa}});function c(e,t,i,r){return new(i||(i=Promise))((function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,o)}l((r=r.apply(e,t||[])).next())}))}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;class d{constructor(e){Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}get value(){return this._value/100}get percent(){return this._value}toString(){return this._value+"%"}interpolate(e,t){return e+this.value*(t-e)}static normalize(e,t,i){return e instanceof d?e:new d(t===i?0:100*Math.min(Math.max(1/(i-t)*(e-t),0),1))}}function p(e){return new d(e)}const f=p(0),g=p(100),m=p(50);function b(e){return e instanceof d}function v(e){return Number(e)!==e}function y(e){return{}.toString.call(e)}function _(e,t="Assertion failed"){if(!e)throw new Error(t)}function w(e){if(null!=e&&!S(e)){let t=Number(e);return v(t)&&P(e)&&""!=e&&e.match(/[0-9]+/)?w(e.replace(/[^0-9.\-]+/g,"")):t}return e}function x(e){if(T(e))return new Date(e);if(S(e))return new Date(e);{let t=Number(e);return S(t)?new Date(t):new Date(e)}}function D(e){if(v(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(0===e&&1/e==-1/0)return"-0";let t=e<0;e=Math.abs(e);let i,r=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+e),n=r[1],s=r[2]||"";if(void 0===r[3])i=""===s?n:n+"."+s;else{let t=+r[3];if(e<1){i="0."+k("0",t-1)+n+s}else{let e=t-s.length;i=0===e?n+s:e<0?n+s.slice(0,e)+"."+s.slice(e):n+s+k("0",e)}}return t?"-"+i:i}function k(e,t){return new Array(t+1).join(e)}function T(e){return"[object Date]"===y(e)}function P(e){return"string"==typeof e}function S(e){return"number"==typeof e&&Number(e)==e}function C(e){return"object"==typeof e&&null!==e}function O(e){return Array.isArray(e)}const A="__§§§__",E="__§§§§__";function j(e,t){const i=e.length;for(let r=0;r<i;++r)if(e[r]===t)return r;return-1}function L(e,t){const i=e.length;for(let r=0;r<i;++r)if(t(e[r]))return!0;return!1}function M(e,t){const i=e.length,r=new Array(i);for(let n=0;n<i;++n)r[n]=t(e[n],n);return r}function R(e,t){const i=e.length;for(let r=0;r<i;++r)t(e[r],r)}function I(e,t){let i=e.length;for(;i>0;)--i,t(e[i],i)}function B(e,t){const i=e.length;for(let r=0;r<i&&t(e[r],r);++r);}function N(e,t){const i=e.length;for(let r=t;r<i;++r)e[r-t]=e[r];e.length=i-t}function F(e){const t=e.length;return t?e[t-1]:void 0}function z(e){return e[0]}function H(e,t,i){i=Math.max(0,Math.min(i,e.length)),e.splice(i,0,t)}function U(e,t,i){W(e,t),H(e,t,i)}function $(e,t){const i=t.length;for(let r=0;r<i;++r)e.push(t[r])}function W(e,t){let i=!1,r=0;for(;;){if(r=e.indexOf(t,r),-1===r)return i;i=!0,e.splice(r,1)}}function G(e,t){let i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}function q(e,t,i){let r=j(e,t);-1!==r&&te(e,r),null==i?e.push(t):ee(e,i,t)}function V(e,t,i){S(i)?0===i?e.unshift(t):e.splice(i,0,t):e.push(t)}function Y(e,t){-1===e.indexOf(t)&&e.push(t)}function X(e,t,i){let r=e.indexOf(t);-1!==r&&e.splice(r,1),S(i)?e.splice(i,0,t):e.push(t)}function Z(e){return Array.isArray(e)?e:[e]}function K(e,t){return-1!==j(e,t)}function J(e){const t=e.length,i=new Array(t);for(let r=0;r<t;++r)i[r]=e[r];return i}function Q(e,t,i=e.length){const r=new Array(i-t);for(let n=t;n<i;++n)r[n-t]=e[n];return r}function ee(e,t,i){e.splice(t,0,i)}function te(e,t){e.splice(t,1)}function ie(e,t){const i=e.length;for(let r=0;r<i;++r)if(t(e[r],r))return r;return-1}function re(e,t){let i=e.length;for(;i>0;)if(--i,t(e[i],i))return i;return-1}function ne(e,t){const i=ie(e,t);if(-1!==i)return e[i]}function se(e,t){const i=re(e,t);if(-1!==i)return e[i]}function ae(e,t){const i=e.length;for(let r=0;r<i;++r){const i=t(e[r],r);if(void 0!==i)return i}}function oe(e){let t,i,r=e.length;for(;0!==r;)i=Math.floor(Math.random()*r),r-=1,t=e[r],e[r]=e[i],e[i]=t}function le(e,t){let i=0,r=e.length,n=!1;for(;i<r;){const s=i+r>>1,a=t(e[s]);a<0?i=s+1:0===a?(n=!0,i=s+1):r=s}return{found:n,index:n?i-1:i}}function ue(e,t){let i=0,r=e.length,n=!1;for(;i<r;){const s=i+r>>1,a=t(e[s]);a<0?i=s+1:0===a?(n=!0,r=s):r=s}return{found:n,index:i}}function he(e,t){let i=e.length;for(;i>0;)--i,t(e[i])||e.splice(i,1)}function ce(e){return Object.keys(e)}function de(e,t){return ce(e).sort(t)}function pe(e){return Object.assign({},e)}function fe(e,t){ce(e).forEach((i=>{t(i,e[i])}))}function ge(e,t){for(let i in e)if(be(e,i)&&!t(i,e[i]))break}function me(e,t,i){R(de(e,i),(i=>{t(i,e[i])}))}function be(e,t){return{}.hasOwnProperty.call(e,t)}function ve(e,t){return fe(e,((e,i)=>{null!=i&&null==t[e]&&(t[e]=i)})),t}class ye{constructor(){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class _e{constructor(e){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dispose",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1,this._dispose=e}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class we extends ye{constructor(){super(...arguments),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_dispose(){R(this._disposers,(e=>{e.dispose()}))}}class xe extends ye{constructor(e){super(),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposers=e}_dispose(){R(this._disposers,(e=>{e.dispose()}))}get disposers(){return this._disposers}}class De extends ye{constructor(){super(...arguments),Object.defineProperty(this,"_disposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_dispose(){null!=this._disposer&&(this._disposer.dispose(),this._disposer=void 0)}get(){return this._value}set(e,t){null!=this._disposer&&this._disposer.dispose(),this._disposer=t,this._value=e}reset(){this.set(void 0,void 0)}}
vendor: 2,793 bytes, line 1
1class ke extends _e{constructor(){super(...arguments),Object.defineProperty(this,"_counter",{enumerable:!0,configurable:!0,writable:!0,value:0})}increment(){return++this._counter,new _e((()=>{--this._counter,0===this._counter&&this.dispose()}))}}function Te(e){if("loading"!==document.readyState)e();else{const t=()=>{"loading"!==document.readyState&&(document.removeEventListener("readystatechange",t),e())};document.addEventListener("readystatechange",t)}}function Pe(e){e.parentNode&&e.parentNode.removeChild(e)}function Se(e,t,i,r){return e.addEventListener(t,i,r||!1),new _e((()=>{e.removeEventListener(t,i,r||!1)}))}function Ce(e){return Se(window,"resize",(t=>{e()}))}function Oe(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function Ae(e){return e.pointerId||0}function Ee(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function je(e){e&&e.focus()}function Le(e){if(Oe("pointerevents"))return e;if(Oe("touchevents"))switch(e){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";case"click":return"click";case"dblclick":return"dblclick"}else if(Oe("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function Me(e){if("undefined"!=typeof Touch&&e instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&e instanceof PointerEvent&&null!=e.pointerType)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(null!=e.type&&e.type.match(/^mouse/))return!1;return!0}function Re(e,t,i){e.style[t]=i}function Ie(e,t){return e.style[t]}function Be(e){if(e.composedPath){const t=e.composedPath();return 0===t.length?null:t[0]}return e.target}function Ne(e,t){let i=t;for(;;){if(e===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}function Fe(e,t){return e.target&&Ne(t.root.dom,e.target)}function ze(e,t){e.style.pointerEvents=t?"auto":"none"}
1function He(e){if(void 0!==e.key)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}function Ue(e){let t=e;for(;;){if(null===t.parentNode)return null!=t.host?t:null;t=t.parentNode}}let $e;function We(e,t){const i=e.cssRules.length;return e.insertRule(t+"{}",i),e.cssRules[i]}class Ge extends ye{constructor(e,t,i,r=""){super(),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rule",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._root=function(e,t=""){if(null===e){if(null==$e){const e=document.createElement("style");e.type="text/css",""!=t&&e.setAttribute("nonce",t),document.head.appendChild(e),$e=e.sheet}return $e}{const i=document.createElement("style");return i.type="text/css",""!=t&&i.setAttribute("nonce",t),e.appendChild(i),i.sheet}}(e,r);try{this._rule=We(this._root,t)}catch(e){this._rule=We(this._root,":not(*)")}fe(i,((e,t)=>{this.setStyle(e,t)}))}set selector(e){this._rule.selectorText=e}get selector(){return this._rule.selectorText}_dispose(){const e=j(this._root.cssRules,this._rule);if(-1===e)throw new Error("Could not dispose StyleRule");this._root.deleteRule(e)}_setVendorPrefixName(e,t){const i=this._rule.style;i.setProperty("-webkit-"+e,t,""),i.setProperty("-moz-"+e,t,""),i.setProperty("-ms-"+e,t,""),i.setProperty("-o-"+e,t,""),i.setProperty(e,t,"")}setStyle(e,t){"transition"===e?this._setVendorPrefixName(e,t):this._rule.style.setProperty(e,t,"")}}class qe extends ye{constructor(e,t,i=""){super(),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._element=function(e,t,i=""){const r=document.createElement("style");return r.type="text/css",""!=i&&r.setAttribute("nonce",i),r.textContent=t,null===e?document.head.appendChild(r):e.appendChild(r),r}(e,t,i)}_dispose(){this._element.parentNode&&this._element.parentNode.removeChild(this._element)}}function Ve(e,t){if(e)if(e.classList){R(t.split(" "),(t=>{e.classList.add(t)}))}else{let i=e.getAttribute("class");i?e.setAttribute("class",i.split(" ").filter((e=>e!==t)).join(" ")+" "+t):e.setAttribute("class",t)}}function Ye(e,t){if(e)if(e.classList)e.classList.remove(t);else{let i=e.getAttribute("class");i&&e.setAttribute("class",i.split(" ").filter((e=>e!==t)).join(" "))}}function Xe(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function Ze(){return Xe()?1:void 0}function Ke(e,t){return S(e)?e:null!=e&&S(e.value)&&S(t)?t*e.value:0}function Je(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function Qe(e,t=0,i="0"){return"string"!=typeof e&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(i)+e:e}function et(e){return e.replace(/^[\s]*/,"")}function tt(e){return e.replace(/[\s]*$/,"")}function it(e){return et(tt(e))}function rt(e,t,i=!1,r="..."){if(e.length>t){let n=t-1;for(;n>=0&&e.charAt(n).match(/\w/);)n--;return n>=0&&0==i?e.substring(0,n+1)+"...":e.substring(0,t)+r}return e}function nt(e){if(void 0===e)return"string";let t=(e=(e=(e=e.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return t?t[1]:"number"===e?"number":"date"===e?"date":"duration"===e?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function st(e){return e.replace(/\/(date|number|duration)$/i,"")}function at(e){return e?e.replace(/<[^>]*>/g,""):e}function ot(e){return e?at((""+e).replace(/[\n\r]+/g,". ")):e}function lt(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function ut(e){let t="";for(let i=0;i<e.length;i++){const r=e.charAt(i);r.toUpperCase()==r&&0!=i&&(t+=" "),t+=r}return t}function ht(e){const t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,i=/([^اأدذرزو]*[اأدذرزو])/gi;let r=e.split(/(\s+)/),n=[];return r.forEach((e=>{if(e.match(/^\s+$/))(e=" ")&&(e="  "),n.push(e);else if(t.test(e)){let t=e.split(i).filter((e=>""!==e));n=n.concat(t)}else n=n.concat([...e])})),n}
vendor: 15,441 bytes, line 1
1function ct(e,t=!1){const i=new Date(e.getFullYear(),0,0),r=e.getTime()-i.getTime()+60*(i.getTimezoneOffset()-e.getTimezoneOffset())*1e3;return Math.floor(r/864e5)}function dt(e,t=!1){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),r=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-r);const n=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-n.getTime())/864e5+1)/7)}function pt(e,t=!1){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),r=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-r);return new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function ft(e,t=!1){const i=dt(new Date(e.getFullYear(),e.getMonth(),1),t);let r=dt(e,t);return 1==r&&(r=53),r-i+1}function gt(e,t,i=1,r=!1){let n=new Date(t,0,4,0,0,0,0);return r&&n.setUTCFullYear(t),7*e+i-((n.getDay()||7)+3)}function mt(e,t){return e>12?e-=12:0===e&&(e=12),null!=t?e+(t-1):e}function bt(e,t=!1,i=!1,r=!1,n){if(r)return t?"Coordinated Universal Time":"UTC";if(n){const i=e.toLocaleString("en-US",{timeZone:n});return it(e.toLocaleString("en-US",{timeZone:n,timeZoneName:t?"long":"short"}).substr(i.length))}let s=e.toLocaleString("UTC"),a=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(s.length);return!1===i&&(a=a.replace(/ (standard|daylight|summer|winter) /i," ")),it(a)}function vt(e,t){const i=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),r=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:e})).getTime()-r.getTime())/6e4*-1}function yt(e){return e.charAt(0).toUpperCase()+e.slice(1)}function _t(e){let t,i,r,n=e.h,s=e.s,a=e.l;if(0==s)t=i=r=a;else{let e=function(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e},o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;t=e(l,o,n+1/3),i=e(l,o,n),r=e(l,o,n-1/3)}return{r:Math.round(255*t),g:Math.round(255*i),b:Math.round(255*r)}}function wt(e){let t=e.r/255,i=e.g/255,r=e.b/255,n=Math.max(t,i,r),s=Math.min(t,i,r),a=0,o=0,l=(n+s)/2;if(n===s)a=o=0;else{let e=n-s;switch(o=l>.5?e/(2-n-s):e/(n+s),n){case t:a=(i-r)/e+(i<r?6:0);break;case i:a=(r-t)/e+2;break;case r:a=(t-i)/e+4}a/=6}return{h:a,s:o,l:l}}function xt(e){const t=e.v*(1-e.s/2),i=0===t||1===t?0:(e.v-t)/Math.min(t,1-t);return{h:e.h,s:i,l:t,a:e.a}}function Dt(e){const t=e.l+e.s*Math.min(e.l,1-e.l),i=0===t?0:2*(1-e.l/t);return{h:e.h,s:i,v:t,a:e.a}}function kt(e,t){return e?{r:Math.max(0,Math.min(255,e.r+Tt(e.r,t))),g:Math.max(0,Math.min(255,e.g+Tt(e.g,t))),b:Math.max(0,Math.min(255,e.b+Tt(e.b,t))),a:e.a}:e}function Tt(e,t){let i=t>0?255-e:e;return Math.round(i*t)}function Pt(e,t){if(e){let i=Tt(Math.min(Math.max(e.r,e.g,e.b),230),t);return{r:Math.max(0,Math.min(255,Math.round(e.r+i))),g:Math.max(0,Math.min(255,Math.round(e.g+i))),b:Math.max(0,Math.min(255,Math.round(e.b+i))),a:e.a}}return e}function St(e,t){return Math.round(255*t)}function Ct(e){return(299*e.r+587*e.g+114*e.b)/1e3>=128}function Ot(e,t){if(void 0===e||1==t)return e;let i=wt(e);return i.s=t,_t(i)}function At(e,t={r:255,g:255,b:255},i={r:255,g:255,b:255}){let r=t,n=i;return Ct(i)&&(r=i,n=t),Ct(e)?n:r}function Et(e,t){return e||(e=[]),[...e,...t].filter(((e,t,i)=>i.indexOf(e)===t))}function jt(e,t){return!!t&&(e.left==t.left&&(e.right==t.right&&(e.top==t.top&&e.bottom==t.bottom)))}function Lt(e){return"#"===e[0]&&(e=e.substr(1)),3==e.length&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function Mt(e){return Rt.fromAny(e)}class Rt{constructor(e){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=0|e}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(e=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}toCSSHex(){return"#"+Qe(this.r.toString(16),2)+Qe(this.g.toString(16),2)+Qe(this.b.toString(16),2)}toHSL(e=1){return wt({r:this.r,g:this.g,b:this.b,a:e})}static fromHSL(e,t,i){const r=_t({h:e,s:t,l:i});return this.fromRGB(r.r,r.g,r.b)}toString(){return this.toCSSHex()}static fromHex(e){return new Rt(e)}static fromRGB(e,t,i){return new Rt((0|i)+(t<<8)+(e<<16))}static fromString(e){return new Rt(Lt(e))}static fromCSS(e){return new Rt(function(e){let t=(e=e.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let i="";for(let e=1;e<=3;e++){let r=parseInt(t[e]).toString(16);1==r.length&&(r="0"+r),i+=r}return Lt(i)}(e))}static fromAny(e){if(P(e)){if("#"==e[0])return Rt.fromString(e);if("rgb"==e.substr(0,3))return Rt.fromCSS(e)}else{if(S(e))return Rt.fromHex(e);if(e instanceof Rt)return Rt.fromHex(e.hex)}throw new Error("Unknown color syntax: "+e)}static alternative(e,t,i){const r=At({r:e.r,g:e.g,b:e.b},t?{r:t.r,g:t.g,b:t.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(r.r,r.g,r.b)}static interpolate(e,t,i,r="rgb"){if("hsl"==r){const r=t.toHSL(),n=i.toHSL();return Rt.fromHSL(Bt(e,r.h,n.h),Bt(e,r.s,n.s),Bt(e,r.l,n.l))}return Rt.fromRGB(Bt(e,t.r,i.r),Bt(e,t.g,i.g),Bt(e,t.b,i.b))}static lighten(e,t){const i=kt({r:e.r,g:e.g,b:e.b},t);return Rt.fromRGB(i.r,i.g,i.b)}static brighten(e,t){const i=Pt({r:e.r,g:e.g,b:e.b},t);return Rt.fromRGB(i.r,i.g,i.b)}static saturate(e,t){const i=Ot({r:e.r,g:e.g,b:e.b},t);return Rt.fromRGB(i.r,i.g,i.b)}}function It(e){return c(this,void 0,void 0,(function*(){if(void 0!==e){const t=[];fe(e,((e,i)=>{t.push(i.waitForStop())})),yield Promise.all(t)}}))}function Bt(e,t,i){return t+e*(i-t)}function Nt(e,t,i){return e>=1?i:t}function Ft(e,t,i){return new d(Bt(e,t.percent,i.percent))}function zt(e,t,i){return Rt.interpolate(e,t,i)}var Ht;!function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"}(Ht||(Ht={}));class Ut{constructor(){Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_killed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_iterating",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_enabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const e=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{R(e,(e=>{e.disposer.dispose()}))}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(e){return L(this._listeners,(t=>(null===t.type||t.type===e)&&!t.killed))}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(e){delete this._disabled[e]}disableType(e,t=1/0){this._disabled[e]=t}_removeListener(e){if(0===this._iterating){const t=this._listeners.indexOf(e);if(-1===t)throw new Error("Invalid state: could not remove listener");this._listeners.splice(t,1)}else this._killed.push(e)}_removeExistingListener(e,t,i,r){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((n=>{n.once!==e||n.type!==t||void 0!==i&&n.callback!==i||n.context!==r||n.disposer.dispose()}))}isEnabled(e){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(e)&&void 0===this._disabled[e]}removeType(e){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener((t=>{t.type===e&&t.disposer.dispose()}))}has(e,t,i){return-1!==ie(this._listeners,(r=>!0!==r.once&&r.type===e&&(void 0===t||r.callback===t)&&r.context===i))}_shouldDispatch(e){if(this._disposed)throw new Error("EventDispatcher is disposed");const t=this._disabled[e];return S(t)?(t<=1?delete this._disabled[e]:--this._disabled[e],!1):this._enabled}_eachListener(e){++this._iterating;try{R(this._listeners,e)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(R(this._killed,(e=>{this._removeListener(e)})),this._killed.length=0)}}dispatch(e,t){this._shouldDispatch(e)&&this._eachListener((i=>{i.killed||null!==i.type&&i.type!==e||i.dispatch(e,t)}))}_on(e,t,i,r,n,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(e,t,i,r);const a={type:t,callback:i,context:r,shouldClone:n,dispatch:s,killed:!1,once:e,disposer:new _e((()=>{a.killed=!0,this._removeListener(a)}))};return this._listeners.push(a),a}onAll(e,t,i=!0){return this._on(!1,null,e,t,i,((i,r)=>e.call(t,r))).disposer}on(e,t,i,r=!0){return this._on(!1,e,t,i,r,((e,r)=>t.call(i,r))).disposer}once(e,t,i,r=!0){const n=this._on(!0,e,t,i,r,((e,r)=>{n.disposer.dispose(),t.call(i,r)}));return n.disposer}off(e,t,i){this._removeExistingListener(!1,e,t,i)}copyFrom(e){if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const t=[];return R(e._listeners,(e=>{!e.killed&&e.shouldClone&&(null===e.type?t.push(this.onAll(e.callback,e.context)):e.once?t.push(this.once(e.type,e.callback,e.context)):t.push(this.on(e.type,e.callback,e.context)))})),new xe(t)}}function $t(e,t){if(!(e>=0&&e<t))throw new Error("Index out of bounds: "+e)}class Wt{constructor(e=[]){Object.defineProperty(this,"_values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Ut}),this._values=e}get values(){return this._values}contains(e){return-1!==this._values.indexOf(e)}removeValue(e){let t=0,i=this._values.length;for(;t<i;)this._values[t]===e?(this.removeIndex(t),--i):++t}indexOf(e){return j(this._values,e)}get length(){return this._values.length}hasIndex(e){return e>=0&&e<this._values.length}getIndex(e){return this._values[e]}_onPush(e){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:e})}_onInsertIndex(e,t){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t})}_onSetIndex(e,t,i){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:e,oldValue:t,newValue:i})}_onSwap(e,t){this.events.isEnabled("swap")&&this.events.dispatch("swap",{type:"swap",target:this,a:e,b:t})}_onRemoveIndex(e,t){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:e,oldValue:t})}_onMoveIndex(e,t,i){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:e,newIndex:t,value:i})}_onClear(e){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:e})}setIndex(e,t){$t(e,this._values.length);const i=this._values[e];return i!==t&&(this._values[e]=t,this._onSetIndex(e,i,t)),i}insertIndex(e,t){return $t(e,this._values.length+1),ee(this._values,e,t),this._onInsertIndex(e,t),t}swap(e,t){const i=this._values.length;if($t(e,i),$t(t,i),e!==t){const i=this._values[e],r=this._values[t];this._values[e]=r,this._values[t]=i,this._onSwap(i,r)}}removeIndex(e){$t(e,this._values.length);const t=this._values[e];return te(this._values,e),this._onRemoveIndex(e,t),t}moveValue(e,t){let i=this.indexOf(e);if(-1!==i)if(te(this._values,i),null==t){const t=this._values.length;this._values.push(e),this._onMoveIndex(i,t,e)}else ee(this._values,t,e),this._onMoveIndex(i,t,e);else null==t?(this._values.push(e),this._onPush(e)):(ee(this._values,t,e),this._onInsertIndex(t,e));return e}push(e){return this._values.push(e),this._onPush(e),e}unshift(e){return this.insertIndex(0,e),e}pushAll(e){R(e,(e=>{this.push(e)}))}copyFrom(e){this.pushAll(e._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(e){const t=this._values;this._values=[],this._onClear(t),R(e,(e=>{this._values.push(e),this._onPush(e)}))}clear(){this.setAll([])}*[Symbol.iterator](){const e=this._values.length;for(let t=0;t<e;++t)yield this._values[t]}each(e){R(this._values,e)}eachReverse(e){I(this._values,e)}}class Gt extends Wt{constructor(){super(...arguments),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}swap(e,t){const i=this.autoDispose;this.autoDispose=!1,super.swap(e,t),this.autoDispose=i}_onSetIndex(e,t,i){this.autoDispose&&t.dispose(),super._onSetIndex(e,t,i)}_onRemoveIndex(e,t){this.autoDispose&&t.dispose(),super._onRemoveIndex(e,t)}_onClear(e){this.autoDispose&&R(e,(e=>{e.dispose()})),super._onClear(e)}_dispose(){this.autoDispose&&R(this._values,(e=>{e.dispose()}))}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class qt extends Gt{constructor(e,t){super(),Object.defineProperty(this,"template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"make",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.template=e,this.make=t}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}class Vt extends Wt{constructor(e){super(),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._container=e,this._events=this.events.onAll((e=>{if("clear"===e.type)R(e.oldValues,(e=>{this._onRemoved(e)}));else if("push"===e.type)this._onInserted(e.newValue);else if("setIndex"===e.type)this._onRemoved(e.oldValue),this._onInserted(e.newValue,e.index);else if("insertIndex"===e.type)this._onInserted(e.newValue,e.index);else if("removeIndex"===e.type)this._onRemoved(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._onRemoved(e.value),this._onInserted(e.value,e.newIndex)}}))}_onInserted(e,t){e._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===t?i.addChild(e._display):i.addChildAt(e._display,t)}_onRemoved(e){this._container._childrenDisplay.removeChild(e._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),R(this.values,(e=>{e.dispose()})))}}const Yt=Math.PI,Xt=Yt/2,Zt=Yt/180,Kt=180/Yt;function Jt(e,t,i){if(!S(t)||t<=0){let t=Math.round(e);return i&&t-e==.5&&t--,t}{let i=Math.pow(10,t);return Math.round(e*i)/i}}function Qt(e,t){if(!S(t)||t<=0)return Math.ceil(e);{let i=Math.pow(10,t);return Math.ceil(e*i)/i}}function ei(e,t,i,r,n){return{x:(-e.x+t.x/r+i.x)*r,y:(-e.y+t.y/n+i.y)*n}}function ti(e,t,i,r,n){return{x:(e.x+t.x/r-i.x)*r,y:(e.y+t.y/n-i.y)*n}}function ii(e,t,i){return Math.min(Math.max(e,t),i)}function ri(e){return Math.sin(Zt*e)}function ni(e){return Math.tan(Zt*e)}function si(e){return Math.cos(Zt*e)}function ai(e){return(e%=360)<0&&(e+=360),e}function oi(e,t,i,r,n){let s=Number.MAX_VALUE,a=Number.MAX_VALUE,o=-Number.MAX_VALUE,l=-Number.MAX_VALUE,u=[];u.push(li(n,i)),u.push(li(n,r));
1let h=Math.min(90*Math.floor(i/90),90*Math.floor(r/90)),c=Math.max(90*Math.ceil(i/90),90*Math.ceil(r/90));for(let e=h;e<=c;e+=90)e>=i&&e<=r&&u.push(li(n,e));for(let e=0;e<u.length;e++){let t=u[e];t.x<s&&(s=t.x),t.y<a&&(a=t.y),t.x>o&&(o=t.x),t.y>l&&(l=t.y)}return{left:e+s,top:t+a,right:e+o,bottom:t+l}}function li(e,t){return{x:e*si(t),y:e*ri(t)}}function ui(e){const t=e.length;if(t>0){let i=e[0],r=i.left,n=i.top,s=i.right,a=i.bottom;if(t>1)for(let o=1;o<t;o++)i=e[o],r=Math.min(i.left,r),s=Math.max(i.right,s),n=Math.min(i.top,n),a=Math.max(i.bottom,a);return{left:r,right:s,top:n,bottom:a}}return{left:0,right:0,top:0,bottom:0}}function hi(e,t,i){if(t>i){let e=t;t=i,i=e}e=ai(e);let r=(t-ai(t))/360;return e<t&&(e+=360*(r+1)),e>i&&(e-360>t?e-=360:e=e<t+(i-t)/2+180?i:t),e<t&&(e=e>t+(i-t)/2-180?t:i),e}function ci(e,t){return e.x>=t.left&&e.y>=t.top&&e.x<=t.right&&e.y<=t.bottom}function di(e,t){t||(t={x:2*e.x,y:2*e.y});let i=t.x-e.x,r=t.y-e.y,n=Math.atan2(r,i)*Kt;return n<0&&(n+=360),ai(n)}function pi(e,t,i,r){return{x:(1-r)*(1-r)*e.x+2*(1-r)*r*i.x+r*r*t.x,y:(1-r)*(1-r)*e.y+2*(1-r)*r*i.y+r*r*t.y}}function fi(e,t,i){return{x:e.x+(t.x-e.x)*i,y:e.y+(t.y-e.y)*i}}function gi(e,t){return e.reduce((function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e}))}function mi(e,t){const i=e.left<t.right&&e.right>t.left,r=e.top<t.bottom&&e.bottom>t.top;return i&&r}function bi(e,t,i,r,n,s,a,o,l){let u=n+.01;o=ai(o),l=ai(l);let h=o*Zt;l<o&&(l+=360);let c=[];for(;u<i+a;){let d=s;d/2>u&&(d=2*u),d*=Math.max(.01,Math.min(1,u/200));let p=h*Kt,f={x:e+u*Math.cos(h),y:t+u*r/i*Math.sin(h)};if(c.push(f),u=n+.01+(p-o)/360*a,h+=2*Math.asin(d/2/u),h*Kt>l+360*Math.ceil((i-n)/a))break}return c.shift(),c}function vi(e,t){return Math.hypot(e.x-t.x,e.y-t.y)<=e.radius+t.radius}function yi(e){return e}function _i(e){return e*e}function wi(e){return e*e*e}function xi(e,t){return Math.pow(e,t)}function Di(e){return Math.pow(2,10*e-10)}function ki(e){return 1-Math.cos(e*Xt)}function Ti(e){return 1-Math.sqrt(1-e*e)}function Pi(e){return function(t){return e(t<.5?2*t:2*(1-t))}}function Si(e){return function(t){return 1-e(1-t)}}function Ci(e){return function(t){return t<=.5?e(2*t)/2:1-e(2*(1-t))/2}}let Oi=4/11,Ai=6/11,Ei=8/11,ji=3/4,Li=9/11,Mi=10/11,Ri=15/16,Ii=21/22,Bi=63/64,Ni=1/Oi/Oi;function Fi(e){return 1-function(e){return e<Oi?Ni*e*e:e<Ei?Ni*(e-=Ai)*e+ji:e<Mi?Ni*(e-=Li)*e+Ri:Ni*(e-=Ii)*e+Bi}(1-e)}let zi=2*Math.PI,Hi=1,Ui=.3/zi,$i=Math.asin(1/Hi)*Ui;function Wi(e){let t=e;return Hi*Math.pow(2,10*--t)*Math.sin(($i-t)/Ui)}class Gi{constructor(e,t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e,this._settings=t,fe(t,(e=>{this._userSettings[e]=!0}))}get(e,t){const i=this._settings[e];return void 0!==i?i:t}setRaw(e,t){this._settings[e]=t}set(e,t){this._userSettings[e]=!0,this.setRaw(e,t)}remove(e){delete this._userSettings[e],delete this._settings[e]}setAll(e){ce(e).forEach((t=>{this.set(t,e[t])}))}_eachSetting(e){fe(this._settings,e)}apply(){const e={stateAnimationEasing:!0,stateAnimationDuration:!0},t=this._entity.states.lookup("default");this._eachSetting(((i,r)=>{e[i]||(e[i]=!0,this!==t&&(i in t._settings||(t._settings[i]=this._entity.get(i))),this._entity.set(i,r))}))}applyAnimate(e){null==e&&(e=this._settings.stateAnimationDuration),null==e&&(e=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let t=this._settings.stateAnimationEasing;null==t&&(t=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",wi)));const i=this._entity.states.lookup("default"),r={stateAnimationEasing:!0,stateAnimationDuration:!0},n={};return this._eachSetting(((s,a)=>
vendor: 37,943 bytes, line 1
1{if(!r[s]){r[s]=!0,this!=i&&(s in i._settings||(i._settings[s]=this._entity.get(s)));const o=this._entity.animate({key:s,to:a,duration:e,easing:t});o&&(n[s]=o)}})),n}}class qi{constructor(e){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=e}lookup(e){return this._states[e]}create(e,t){const i=this._states[e];if(i)return i.setAll(t),i;{const i=new Gi(this._entity,t);return this._states[e]=i,i}}remove(e){delete this._states[e]}apply(e){const t=this._states[e];t&&t.apply(),this._entity._applyState(e)}applyAnimate(e,t){let i;const r=this._states[e];return r&&(i=r.applyAnimate(t)),this._entity._applyStateAnimated(e,t),i}}const Vi=new class{constructor(){Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.12.1"}),Object.defineProperty(this,"licenses",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rootElements",{enumerable:!0,configurable:!0,writable:!0,value:[]})}};function Yi(e){Vi.licenses.push(e)}function Xi(){let e;for(;e=Vi.rootElements.pop();)e.dispose()}function Zi(e){let t;return Vi.rootElements.forEach((i=>{i.dom.id==e&&(t=i)})),t}function Ki(e,t){return e===t?0:e<t?-1:1}function Ji(e,t,i){const r=e.length,n=t.length,s=Math.min(r,n);for(let r=0;r<s;++r){const n=i(e[r],t[r]);if(0!==n)return n}return Ki(r,n)}class Qi{constructor(e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e}add(e,t){let i=this._callbacks[e];return void 0===i&&(i=this._callbacks[e]=[]),i.push(t),this._entity._markDirtyKey(e),new _e((()=>{G(i,t)&&this._entity._markDirtyKey(e)}))}remove(e){const t=this._callbacks[e];void 0!==t&&(delete this._callbacks[e],0!==t.length&&this._entity._markDirtyKey(e))}enable(e){this._disabled[e]&&(delete this._disabled[e],this._entity._markDirtyKey(e))}disable(e){this._disabled[e]||(this._disabled[e]=!0,this._entity._markDirtyKey(e))}fold(e,t){if(!this._disabled[e]){const i=this._callbacks[e];if(void 0!==i)for(let r=0,n=i.length;r<n;++r)t=i[r](t,this._entity,e)}return t}}class er{constructor(e,t,i,r,n,s,a){Object.defineProperty(this,"_animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_loops",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interpolate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_time",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_playing",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Ut}),this._animation=e,this._from=t,this._to=i,this._duration=r,this._easing=n,this._loops=s,this._interpolate=function(e,t){return"number"==typeof e&&"number"==typeof t?Bt:e instanceof d&&t instanceof d?Ft:e instanceof Rt&&t instanceof Rt?zt:Nt}(t,i),this._oldTime=a}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){this._stopped||this._playing||(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise(((e,t)=>{if(this._stopped)e();else{const t=()=>{i.dispose(),e()},i=this.events.on("stopped",t)}}))}_checkEnded(){return!(this._loops>1)||(--this._loops,!1)}_run(e){null!==this._oldTime&&(this._time+=e-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=e}_reset(e){this._oldTime=e,this._time=0}_value(e){return this._interpolate(this._easing(e),this._from,this._to)}}let tr=0;class ir{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++tr}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"enableDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._settings=e}_checkDirty(){ce(this._settings).forEach((e=>{this._userProperties[e]=!0,this._markDirtyKey(e)}))}resetUserSettings(){this._userProperties={}}_runAnimation(e){let t=Ht.Stopped;if(!this.isDisposed()){let i=!1,r=!1;fe(this._animatingSettings,((t,n)=>{if(n.stopped)this._stopAnimation(t);else if(n.playing){n._run(e);const r=n.percentage;r>=1?n._checkEnded()?this.set(t,n._value(1)):(i=!0,n._reset(e),this._set(t,n._value(1))):(i=!0,this._set(t,n._value(r)))}else r=!0})),fe(this._animatingPrivateSettings,((t,n)=>{if(n.stopped)this._stopAnimationPrivate(t);else if(n.playing){n._run(e);const r=n.percentage;r>=1?n._checkEnded()?this.setPrivate(t,n._value(1)):(i=!0,n._reset(e),this._setPrivate(t,n._value(1))):(i=!0,this._setPrivate(t,n._value(r)))}else r=!0})),i?t=Ht.Playing:r&&(t=Ht.Paused)}return t}_markDirtyKey(e){this.markDirty()}_markDirtyPrivateKey(e){this.markDirty()}on(e,t){let i=this._settingEvents[e];return void 0===i&&(i=this._settingEvents[e]=[]),i.push(t),new _e((()=>{G(i,t),0===i.length&&delete this._settingEvents[e]}))}off(e,t){let i=this._settingEvents[e];void 0!==i&&void 0!==t?G(i,t):delete this._settingEvents[e]}onPrivate(e,t){let i=this._privateSettingEvents[e];return void 0===i&&(i=this._privateSettingEvents[e]=[]),i.push(t),new _e((()=>{G(i,t),0===i.length&&delete this._privateSettingEvents[e]}))}offPrivate(e,t){let i=this._privateSettingEvents[e];void 0!==i&&void 0!==t?G(i,t):delete this._privateSettingEvents[e]}getRaw(e,t){const i=this._settings[e];return void 0!==i?i:t}has(e){return e in this._settings}get(e,t){return this.getRaw(e,t)}_sendKeyEvent(e,t){const i=this._settingEvents[e];void 0!==i&&R(i,(i=>{i(t,this,e)}))}_sendPrivateKeyEvent(e,t){const i=this._privateSettingEvents[e];void 0!==i&&R(i,(i=>{i(t,this,e)}))}_setRaw(e,t,i){this._prevSettings[e]=t,this._sendKeyEvent(e,i)}setRaw(e,t){const i=this._settings[e];this._settings[e]=t,i!==t&&this._setRaw(e,i,t)}_set(e,t){const i=this._settings[e];this._settings[e]=t,i!==t&&(this._setRaw(e,i,t),this._markDirtyKey(e))}_stopAnimation(e){const t=this._animatingSettings[e];t&&(delete this._animatingSettings[e],t.stop())}set(e,t){return this._set(e,t),this._stopAnimation(e),t}remove(e){e in this._settings&&(this._prevSettings[e]=this._settings[e],delete this._settings[e],this._sendKeyEvent(e,void 0),this._markDirtyKey(e)),this._stopAnimation(e)}removeAll(){R(ce(this._settings),(e=>{this.remove(e)}))}getPrivate(e,t){const i=this._privateSettings[e];return void 0!==i?i:t}_setPrivateRaw(e,t,i){this._prevPrivateSettings[e]=t,this._sendPrivateKeyEvent(e,i)}setPrivateRaw(e,t){const i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&this._setPrivateRaw(e,i,t)}_setPrivate(e,t){const i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&(this._setPrivateRaw(e,i,t),this._markDirtyPrivateKey(e))}_stopAnimationPrivate(e){const t=this._animatingPrivateSettings[e];t&&(t.stop(),delete this._animatingPrivateSettings[e])}setPrivate(e,t){return this._setPrivate(e,t),this._stopAnimationPrivate(e),t}removePrivate(e){e in this._privateSettings&&(this._prevPrivateSettings[e]=this._privateSettings[e],delete this._privateSettings[e],this._markDirtyPrivateKey(e)),this._stopAnimationPrivate(e)}setAll(e){fe(e,((e,t)=>{this.set(e,t)}))}animate(e){const t=e.key,i=e.to,r=e.duration||0,n=e.loops||1,s=void 0===e.from?this.get(t):e.from,a=void 0===e.easing?yi:e.easing;if(0===r)this.set(t,i);else{if(void 0!==s&&s!==i){this.set(t,s);const e=this._animatingSettings[t]=new er(this,s,i,r,a,n,this._animationTime());return this._startAnimation(),e}this.set(t,i)}const o=new er(this,s,i,r,a,n,null);return o.stop(),o}animatePrivate(e){const t=e.key,i=e.to,r=e.duration||0,n=e.loops||1,s=void 0===e.from?this.getPrivate(t):e.from,a=void 0===e.easing?yi:e.easing;if(0===r)this.setPrivate(t,i);else{if(void 0!==s&&s!==i){this.setPrivate(t,s);const e=this._animatingPrivateSettings[t]=new er(this,s,i,r,a,n,this._animationTime());return this._startAnimation(),e}this.setPrivate(t,i)}const o=new er(this,s,i,r,a,n,null);return o.stop(),o}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class rr extends ir{constructor(e,t,i,r=[]){if(super(t),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new qi(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new Qi(this)}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:this._createEvents()}),Object.defineProperty(this,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=e,this._internalTemplates=r,t.id&&this._registerId(t.id)}static new(e,t,i){const r=new this(e,t,!0);return r._template=i,r._afterNew(),r}static _new(e,t,i=[]){const r=new this(e,t,!0,i);return r._afterNew(),r}_afterNew(){this._checkDirty();let e=!1;const t=this._template;t&&(e=!0,t._setObjectTemplate(this)),R(this._internalTemplates,(t=>{e=!0,t._setObjectTemplate(this)})),e&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const e=this._template;e&&e._setObjectTemplate(this),R(this._internalTemplates,(e=>{e._setObjectTemplate(this)})),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new Ut}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(e,t){const i=this.get(e);if(i)return i;{const i=t();return this.set(e,i),i}}_setDefault(e,t){this.has(e)||super.set(e,t)}_setRawDefault(e,t){this.has(e)||super.setRaw(e,t)}_clearDirty(){ce(this._dirty).forEach((e=>{this._dirty[e]=!1})),ce(this._dirtyPrivate).forEach((e=>{this._dirtyPrivate[e]=!1}))}isDirty(e){return!!this._dirty[e]}isPrivateDirty(e){return!!this._dirtyPrivate[e]}_markDirtyKey(e){this._dirty[e]=!0,super._markDirtyKey(e)}_markDirtyPrivateKey(e){this._dirtyPrivate[e]=!0,super._markDirtyKey(e)}isType(e){return-1!==this.classNames.indexOf(e)}_pushPropertyDisposer(e,t){let i=this._disposerProperties[e];return void 0===i&&(i=this._disposerProperties[e]=[]),i.push(t),t}_disposeProperty(e){const t=this._disposerProperties[e];void 0!==t&&(R(t,(e=>{e.dispose()})),delete this._disposerProperties[e])}set template(e){const t=this._template;t!==e&&(this._template=e,t&&t._removeObjectTemplate(this),e&&e._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(e){}_applyStateAnimated(e,t){}get(e,t){const i=this.adapters.fold(e,this._settings[e]);return void 0!==i?i:t}isUserSetting(e){return this._userProperties[e]||!1}set(e,t){return this._userProperties[e]=!0,super.set(e,t)}setRaw(e,t){this._userProperties[e]=!0,super.setRaw(e,t)}_setSoft(e,t){return this._userProperties[e]?t:super.set(e,t)}remove(e){delete this._userProperties[e],this._removeTemplateProperty(e)}setPrivate(e,t){return this._userPrivateProperties[e]=!0,super.setPrivate(e,t)}setPrivateRaw(e,t){this._userPrivateProperties[e]=!0,super.setPrivateRaw(e,t)}removePrivate(e){delete this._userPrivateProperties[e],this._removeTemplatePrivateProperty(e)}_setTemplateProperty(e,t,i){if(!this._userProperties[t]){e===this._findTemplateByKey(t)&&super.set(t,i)}}_setTemplatePrivateProperty(e,t,i){if(!this._userPrivateProperties[t]){e===this._findTemplateByPrivateKey(t)&&super.setPrivate(t,i)}}_removeTemplateProperty(e){if(!this._userProperties[e]){const t=this._findTemplateByKey(e);t?super.set(e,t._settings[e]):super.remove(e)}}_removeTemplatePrivateProperty(e){if(!this._userPrivateProperties[e]){const t=this._findTemplateByPrivateKey(e);t?super.setPrivate(e,t._privateSettings[e]):super.removePrivate(e)}}_walkParents(e){e(this._root._rootContainer),e(this)}_applyStateByKey(e){const t=this.states.create(e,{}),i={};this._eachTemplate((r=>{const n=r.states.lookup(e);n&&n._apply(t,i)})),fe(t._settings,(e=>{i[e]||t._userSettings[e]||t.remove(e)}))}_applyTemplate(e,t){this._templateDisposers.push(e._apply(this,t)),fe(e._settings,((e,i)=>{t.settings[e]||this._userProperties[e]||(t.settings[e]=!0,super.set(e,i))})),fe(e._privateSettings,((e,i)=>{t.privateSettings[e]||this._userPrivateProperties[e]||(t.privateSettings[e]=!0,super.setPrivate(e,i))})),this._runSetup&&e.setup&&(this._runSetup=!1,e.setup(this))}_findStaticTemplate(e){if(this._template&&e(this._template))return this._template}_eachTemplate(e){this._findStaticTemplate((t=>(e(t),!1))),I(this._internalTemplates,e),R(this._templates,e)}_applyTemplates(e=!0){e&&this._disposeTemplates();const t={settings:{},privateSettings:{},states:{}};this._eachTemplate((e=>{this._applyTemplate(e,t)})),e&&(fe(this._settings,(e=>{this._userProperties[e]||t.settings[e]||super.remove(e)})),fe(this._privateSettings,(e=>{this._userPrivateProperties[e]||t.privateSettings[e]||super.removePrivate(e)})))}_findTemplate(e){const t=this._findStaticTemplate(e);if(void 0===t){const t=se(this._internalTemplates,e);return void 0===t?ne(this._templates,e):t}return t}_findTemplateByKey(e){return this._findTemplate((t=>e in t._settings))}_findTemplateByPrivateKey(e){return this._findTemplate((t=>e in t._privateSettings))}_disposeTemplates(){R(this._templateDisposers,(e=>{e.dispose()})),this._templateDisposers.length=0}_removeTemplates(){R(this._templates,(e=>{e._removeObjectTemplate(this)})),this._templates.length=0}_applyThemes(e=!1){let t=!1;const i=[];let r=[];const n=new Set,s=this.get("themeTagsSelf");return s&&R(s,(e=>{n.add(e)})),this._walkParents((e=>{e===this._root._rootContainer&&(t=!0),e._defaultThemes.length>0&&i.push(e._defaultThemes);const s=e.get("themes");s&&r.push(s);const a=e.get("themeTags");a&&R(a,(e=>{n.add(e)}))})),r=i.concat(r),this._removeTemplates(),(t||e)&&I(this.classNames,(e=>{const t=[];R(r,(i=>{R(i,(i=>{const r=i._lookupRules(e);r&&I(r,(e=>{if(e.tags.every((e=>n.has(e)))){const i=ue(t,(t=>{const i=Ki(e.tags.length,t.tags.length);return 0===i?Ji(e.tags,t.tags,Ki):i}));t.splice(i.index,0,e)}}))}))})),R(t,(e=>{this._templates.push(e.template),e.template._setObjectTemplate(this)}))})),this._applyTemplates(),(t||e)&&(this._runSetup=!1),t||e}_changed(){}_beforeChanged(){if(this.isDirty("id")){const e=this.get("id");e&&this._registerId(e);const t=this._prevSettings.id;t&&(delete this._root.entitiesById[t],delete Vi.entitiesById[t])}}_registerId(e){if(this._root.entitiesById[e]&&this._root.entitiesById[e]!==this)throw new Error('An entity with id "'+e+'" already exists.');this._root.entitiesById[e]=this,Vi.entitiesById[e]=this}_afterChanged(){}addDisposer(e){return this._disposers.push(e),e}_dispose(){super._dispose();const e=this._template;e&&e._removeObjectTemplate(this),R(this._internalTemplates,(e=>{e._removeObjectTemplate(this)})),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach((e=>{e.dispose()})),fe(this._disposerProperties,((e,t)=>{R(t,(e=>{e.dispose()}))}));const t=this.get("id");t&&(delete this._root.entitiesById[t],delete Vi.entitiesById[t])}setTimeout(e,t){const i=setTimeout((()=>{this.removeDispose(r),e()}),t),r=new _e((()=>{clearTimeout(i)}));return this._disposers.push(r),r}removeDispose(e){if(!this.isDisposed()){let t=j(this._disposers,e);t>-1&&this._disposers.splice(t,1)}e.dispose()}hasTag(e){return-1!==j(this.get("themeTags",[]),e)}addTag(e){if(!this.hasTag(e)){const t=this.get("themeTags",[]);t.push(e),this.set("themeTags",t)}}removeTag(e){if(this.hasTag(e)){const t=this.get("themeTags",[]);W(t,e),this.set("themeTags",t)}}_t(e,t,...i){return this._root.language.translate(e,t,...i)}get root(){return this._root}}function nr(e){fe(e,((e,t)=>{C(t)&&"function"==typeof t.dispose&&(t.enableDispose=!0,t.dispose())}))}Object.defineProperty(rr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Entity"}),Object.defineProperty(rr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:["Entity"]});class sr{constructor(e,t,i){Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._name=e,this._template=t,this._settings=i}_dispose(){nr(this._settings)}get(e,t){const i=this._settings[e];return void 0!==i?i:t}set(e,t){this._settings[e]=t,this._template._stateChanged(this._name)}remove(e){delete this._settings[e],this._template._stateChanged(this._name)}setAll(e){ce(e).forEach((t=>{this._settings[t]=e[t]})),this._template._stateChanged(this._name)}_apply(e,t){fe(this._settings,((i,r)=>{t[i]||e._userSettings[i]||(t[i]=!0,e.setRaw(i,r))}))}}class ar{constructor(e){Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._template=e}_dispose(){fe(this._states,((e,t)=>{t._dispose()}))}lookup(e){return this._states[e]}create(e,t){const i=this._states[e];if(i)return i.setAll(t),i;{const i=new sr(e,this._template,t);return this._states[e]=i,this._template._stateChanged(e),i}}remove(e){delete this._states[e],this._template._stateChanged(e)}_apply(e,t){fe(this._states,((i,r)=>{let n=t.states[i];null==n&&(n=t.states[i]={});const s=e.states.create(i,{});r._apply(s,n)}))}}class or{constructor(){Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}})}add(e,t){let i=this._callbacks[e];return void 0===i&&(i=this._callbacks[e]=[]),i.push(t),new _e((()=>{G(i,t),0===i.length&&delete this._callbacks[e]}))}remove(e){void 0!==this._callbacks[e]&&delete this._callbacks[e]}_apply(e){const t=[];return fe(this._callbacks,((i,r)=>{R(r,(r=>{t.push(e.adapters.add(i,r))}))})),new xe(t)}}class lr{constructor(e,t){if(Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entities",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new ar(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new or}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Ut}),Object.defineProperty(this,"setup",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=e}static new(e){return new lr(e,!0)}_dispose(){nr(this._settings),nr(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(e,t){this._checkDisposed();const i=this._settings[e];return void 0!==i?i:t}setRaw(e,t){this._checkDisposed(),this._settings[e]=t}set(e,t){this._checkDisposed(),this._settings[e]!==t&&(this.setRaw(e,t),this._entities.forEach((i=>{i._setTemplateProperty(this,e,t)})))}remove(e){this._checkDisposed(),e in this._settings&&(delete this._settings[e],this._entities.forEach((t=>{t._removeTemplateProperty(e)})))}removeAll(){this._checkDisposed(),fe(this._settings,((e,t)=>{this.remove(e)}))}getPrivate(e,t){this._checkDisposed();const i=this._privateSettings[e];return void 0!==i?i:t}setPrivateRaw(e,t){return this._checkDisposed(),this._privateSettings[e]=t,t}setPrivate(e,t){return this._checkDisposed(),this._privateSettings[e]!==t&&(this.setPrivateRaw(e,t),this._entities.forEach((i=>{i._setTemplatePrivateProperty(this,e,t)}))),t}removePrivate(e){this._checkDisposed(),e in this._privateSettings&&(delete this._privateSettings[e],this._entities.forEach((t=>{t._removeTemplatePrivateProperty(e)})))}setAll(e){this._checkDisposed(),fe(e,((e,t)=>{this.set(e,t)}))}on(e,t){this._checkDisposed();let i=this._settingEvents[e];return void 0===i&&(i=this._settingEvents[e]=[]),i.push(t),new _e((()=>{G(i,t),0===i.length&&delete this._settingEvents[e]}))}onPrivate(e,t){this._checkDisposed();let i=this._privateSettingEvents[e];return void 0===i&&(i=this._privateSettingEvents[e]=[]),i.push(t),new _e((()=>{G(i,t),0===i.length&&delete this._privateSettingEvents[e]}))}_apply(e,t){this._checkDisposed();const i=[];return fe(this._settingEvents,((t,r)=>{R(r,(r=>{i.push(e.on(t,r))}))})),fe(this._privateSettingEvents,((t,r)=>{R(r,(r=>{i.push(e.onPrivate(t,r))}))})),this.states._apply(e,t),i.push(this.adapters._apply(e)),i.push(e.events.copyFrom(this.events)),new xe(i)}_setObjectTemplate(e){this._checkDisposed(),this._entities.push(e)}_removeObjectTemplate(e){W(this._entities,e)}_stateChanged(e){this._checkDisposed(),this._entities.forEach((t=>{t._applyStateByKey(e)}))}}class ur extends Ut{constructor(e){super(),Object.defineProperty(this,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._sprite=e}_makePointerEvent(e,t){return{type:e,originalEvent:t.event,point:t.point,simulated:t.simulated,native:t.native,target:this._sprite}}_onRenderer(e,t){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[e];if(void 0===i){const r=this._sprite._display.on(e,(e=>{t.call(this,e)}));i=this._rendererDisposers[e]=new ke((()=>{delete this._rendererDisposers[e],r.dispose()}))}return i.increment()}_on(e,t,i,r,n,s){const a=super._on(e,t,i,r,n,s),o=ur.RENDERER_EVENTS[t];return void 0!==o&&(a.disposer=new xe([a.disposer,this._onRenderer(t,o)])),a}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(e,t){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(e,t),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(e,t)}finally{this._dispatchParents=i}}}Object.defineProperty(ur,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{click:function(e){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",e))&&this.dispatch("click",this._makePointerEvent("click",e))},rightclick:function(e){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",e))},middleclick:function(e){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",e))},dblclick:function(e){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",e))},pointerover:function(e){const t=this._sprite;let i=!0;if(t.getPrivate("trustBounds")){t._getBounds();const r=t.globalBounds();if(t.isType("Graphics")){const e=t.get("strokeWidth",1)/2;e>=1&&(r.left-=e,r.right+=e,r.top-=e,r.bottom+=e)}ci(e.point,r)||(i=!1,t._root._renderer.removeHovering(t._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",e))},pointerout:function(e){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",e))},pointerdown:function(e){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",e))},pointerup:function(e){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",e))},globalpointerup:function(e){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",e))},globalpointermove:function(e){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",e))},wheel:function(e){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:e.event,point:e.point})}}});class hr extends rr{constructor(){super(...arguments),Object.defineProperty(this,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_statesHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(e){this._markDirtyKey(e)}_markDirtyKey(e){super._markDirtyKey(e),"x"!=e&&"y"!=e&&"dx"!=e&&"dy"!=e||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(e){super._markDirtyPrivateKey(e),"x"!=e&&"y"!=e||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new ur(this)}_processTemplateField(){let e;const t=this.get("templateField");if(t){const i=this.dataItem;if(i){const r=i.dataContext;r&&(e=r[t],e instanceof lr||!e||(e=lr.new(e)))}}this._templateField!==e&&(this._removeTemplateField(),this._templateField=e,e&&e._setObjectTemplate(this),this._applyTemplates())}_setDataItem(e){const t=this._dataItem;this._dataItem=e,this._processTemplateField();const i="dataitemchanged";e!=t&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:t,newDataItem:e})}set dataItem(e){this._setDataItem(e)}get dataItem(){if(this._dataItem)return this._dataItem;{let e=this._parent;for(;e;){if(e._dataItem)return e._dataItem;e=e._parent}}}_addPercentageSizeChildren(){let e=this.parent;e&&(this.get("width")instanceof d||this.get("height")instanceof d?Y(e._percentageSizeChildren,this):G(e._percentageSizeChildren,this))}_addPercentagePositionChildren(){let e=this.parent;e&&(this.get("x")instanceof d||this.get("y")instanceof d?Y(e._percentagePositionChildren,this):G(e._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const e=this._localBounds;if(e){const t=this.get("centerX");null!=t&&(this._display.pivot.x=e.left+Ke(t,e.right-e.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=e.top+Ke(i,e.bottom-e.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const e=this._prevSettings.tooltip;e&&e.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const e=this._tooltipMoveDp;e&&(e.dispose(),this._tooltipMoveDp=void 0);const t=this._tooltipPointerDp;t&&(t.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",(e=>{this.showTooltip(e.point)}))),this._tooltipPointerDp=new xe([this.events.on("pointerover",(()=>{this._tooltipMoveDp=this.events.on("globalpointermove",(e=>{this.showTooltip(e.point)}))})),this.events.on("pointerout",(()=>{const e=this._tooltipMoveDp;e&&(e.dispose(),this._tooltipMoveDp=void 0)}))]))}}_handleStates(){this._statesHandled||(this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility()),this._statesHandled=!0)}_changed(){super._changed();const e=this._display,t=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new xe([t.on("pointerdown",(e=>{this.dragStart(e)})),t.on("globalpointermove",(e=>{this.dragMove(e)})),t.on("globalpointerup",(e=>{this.dragStop(e)}))])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),e.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const e=this.get("tooltipText"),i=this.get("tooltipHTML"),r=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(e||i)&&("click"==r?(this._tooltipDp=new xe([t.on("click",(()=>{this.setTimeout((()=>{const e=this.getTooltip();e&&!e.isHidden()&&e.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()}),10)})),Se(document,"click",(e=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)):"always"==r||(this._tooltipDp=new xe([t.on("pointerover",(()=>{this.showTooltip()})),t.on("pointerout",(()=>{this.hideTooltip()}))]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let e=this.get("toggleKey");e&&"none"!=e?this._toggleDp=t.on("click",(()=>{this._isDragging||this.set(e,!this.get(e))})):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(e.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),e.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),e.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?e.visible=!0:(e.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const e=this.parent;e&&(this.isDirty("width")&&this.get("width")instanceof d||this.isDirty("height")&&this.get("height")instanceof d)&&(e.markDirty(),e._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const t=this.get("wheelable");t&&this.set("interactive",!0),e.wheelable=!!t}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(e.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const e=this.get("blur",0);0!=e&&(i+=" blur("+e+"px)")}if(this.isDirty("saturate")){const e=this.get("saturate",1);1!=e&&(i+=" saturate("+e+")")}if(this.isDirty("brightness")){const e=this.get("brightness",1);1!=e&&(i+=" brightness("+e+")")}if(this.isDirty("contrast")){const e=this.get("contrast",1);1!=e&&(i+=" contrast("+e+")")}if(this.isDirty("sepia")){const e=this.get("sepia",0);0!=e&&(i+=" sepia("+e+")")}if(this.isDirty("hue")){const e=this.get("hue",0);0!=e&&(i+=" hue-rotate("+e+"deg)")}if(this.isDirty("invert")){const e=this.get("invert",0);0!=e&&(i+=" invert("+e+")")}if(i&&(e.filter=i),this.isDirty("cursorOverStyle")&&(e.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new xe([t.on("focus",(()=>{this.showTooltip()})),t.on("blur",(()=>{this.hideTooltip()}))]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(t.on("blur",(()=>{this.setPrivateRaw("touchHovering",!1)}))),this._disposers.push(t.once("boundschanged",(()=>{this.markDirtyAccessibility()})))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControl
1s"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(e.exportable=this.get("exportable")),this.isDirty("interactive")){const e=this.events;this.get("interactive")&&!e.isDisposed()?this._hoverDp=new xe([e.on("click",(e=>{Me(e.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout((()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}),10))})),e.on("globalpointerup",(e=>{Me(e.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})),this._isDown&&this._handleUp(e)})),e.on("pointerover",(()=>{this._handleOver()})),e.on("pointerout",(()=>{this._handleOut()})),e.on("pointerdown",(e=>{this._handleDown(e)}))]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(e){this._dragEvent=e,this.events.stopParentDispatch()}dragStop(e){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const t="dragstop";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(e){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const t=Ae(e.originalEvent);delete this._downPoints[t],0==ce(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(e){const t=Ae(e.originalEvent),i=this._downPoints[t];if(i){const t=Math.abs(i.x-e.point.x),r=Math.abs(i.y-e.point.y);return t>5||r>5}return!1}_hasDown(){return ce(this._downPoints).length>0}_handleDown(e){const t=this.parent;if(t&&!this.get("draggable")&&t._handleDown(e),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:e.point.x,y:e.point.y},this._isDown=!0;const t=Ae(e.originalEvent);this._downPoints[t]={x:e.point.x,y:e.point.y}}}dragMove(e){let t=this._dragEvent;if(t){if(t.simulated&&!e.simulated)return!0;let i=0,r=this.parent,n=1;for(;null!=r;)i+=r.get("rotation",0),r=r.parent,r&&(n*=r.get("scale",1));let s=(e.point.x-t.point.x)/n,a=(e.point.y-t.point.y)/n;const o=this.events;if(t.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const t="dragstart";o.isEnabled(t)&&o.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}if(this._isDragging){let t=this._dragPoint;this.set("x",t.x+s*si(i)+a*ri(i)),this.set("y",t.y+a*si(i)-s*ri(i));const r="dragged";o.isEnabled(r)&&o.dispatch(r,{type:r,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}else if(Math.hypot(s,a)>5){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const t="dragstart";o.isEnabled(t)&&o.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let e=this.parent,t=0;for(;;){if(!e)return t;++t,e=e.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const e=this._display;
vendor: 40,355 bytes, line 1
1if(this.get("isMeasured")){this._root._addDirtyBounds(this),e.isMeasured=!0,e.invalidateBounds();const t=this.parent;t&&"absolute"!=this.get("position")&&(null==t.get("width")||null==t.get("height")||t.get("layout"))&&t.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const e=this._adjustedLocalBounds;let t;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),t=this._adjustedLocalBounds):(t={left:0,right:0,top:0,bottom:0},this._localBounds=t,this._adjustedLocalBounds=t),!e||e.left!==t.left||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom){const e="boundschanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(e){let t=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));S(t)&&e.right-e.left<t&&(e.right=e.left+t),S(i)&&e.bottom-e.top<i&&(e.bottom=e.top+i);let r=this.getPrivate("width"),n=this.getPrivate("height");S(r)&&(r>0?e.right=e.left+r:e.left=e.right+r),S(n)&&(n>0?e.bottom=e.top+n:e.top=e.bottom+n)}_removeParent(e){e&&(e.children.removeValue(this),G(e._percentageSizeChildren,this),G(e._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._statesHandled=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(e){if(!this.isDisposed()){const t=this.getTooltip(),i=this.get("tooltipText"),r=this.get("tooltipHTML");if((i||r)&&t){const n=this.get("tooltipPosition"),s=this.getPrivate("tooltipTarget",this);if("fixed"!=n&&e||(this._display._setMatrix(),e=this.toGlobal(s._getTooltipPoint())),"pointer"==n){const t=this.getPrivate("lastTooltipCoords");if(t&&t.x==e.x&&t.y==e.y)return;this.setPrivate("lastTooltipCoords",e)}t.set("pointTo",e),t.set("tooltipTarget",s),t.get("x")||t.set("x",e.x),t.get("y")||t.set("y",e.y),i&&t.label.set("text",i),r&&t.label.set("html",r);const a=this.dataItem;if(a&&t.label._setDataItem(a),"always"==this.get("showTooltipOn")&&(e.x<0||e.x>this._root.width()||e.y<0||e.y>this._root.height()))return void this.hideTooltip();t.label.text.markDirtyText();const o=t.show();return this.setPrivateRaw("showingTooltip",!0),o}}}hideTooltip(){const e=this.getTooltip();if(e&&(this.removePrivate("lastTooltipCoords"),e.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==e)){let t=e.get("keepTargetHover")&&0==e.get("stateAnimationDuration",0)?400:void 0;const i=e.hide(t);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const e=this._localBounds;if(e){let t=0,i=0;return this.get("isMeasured")?(t=e.left+Ke(this.get("tooltipX",0),e.right-e.left),i=e.top+Ke(this.get("tooltipY",0),e.bottom-e.top)):(t=Ke(this.get("tooltipX",0),this.width()),i=Ke(this.get("tooltipY",0),this.height())),{x:t,y:i}}return{x:0,y:0}}getTooltip(){let e=this.get("tooltip");if(e)return e;{let e=this.parent;if(e)return e.getTooltip()}}_updatePosition(){const e=this.parent;let t=this.get("dx",0),i=this.get("dy",0),r=this.get("x"),n=this.getPrivate("x"),s=0,a=0;const o=this.get("position");r instanceof d&&(r=e?e.innerWidth()*r.value+e.get("paddingLeft",0):0),S(r)?s=r+t:null!=n?s=n:e&&"relative"==o&&(s=e.get("paddingLeft",0)+t);let l=this.get("y"),u=this.getPrivate("y");l instanceof d&&(l=e?e.innerHeight()*l.value+e.get("paddingTop",0):0),S(l)?a=l+i:null!=u?a=u:e&&"relative"==o&&(a=e.get("paddingTop",0)+i);const h=this._display;if(h.x!=s||h.y!=a){h.invalidateBounds(),h.x=s,h.y=a;const e="positionchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let e=this.get("x"),t=this.getPrivate("x");const i=this.parent;return i?e instanceof d?Ke(e,i.innerWidth())+i.get("paddingLeft",0):S(e)?e:null!=t?t:i.get("paddingLeft",this._display.x):this._display.x}y(){let e=this.getPrivate("y");if(null!=e)return e;let t=this.get("y");const i=this.parent;return i?t instanceof d?Ke(t,i.innerHeight())+i.get("paddingTop",0):S(t)?t:null!=e?e:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const e=this.get("tooltip");e&&e.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const e=this._adjustedLocalBounds,t=this.x(),i=this.y();return{left:e.left+t,right:e.right+t,top:e.top+i,bottom:e.bottom+i}}globalBounds(){const e=this.localBounds(),t=this.toGlobal({x:e.left,y:e.top}),i=this.toGlobal({x:e.right,y:e.top}),r=this.toGlobal({x:e.right,y:e.bottom}),n=this.toGlobal({x:e.left,y:e.bottom});return{left:Math.min(t.x,i.x,r.x,n.x),top:Math.min(t.y,i.y,r.y,n.y),right:Math.max(t.x,i.x,r.x,n.x),bottom:Math.max(t.y,i.y,r.y,n.y)}}_onShow(e){}_onHide(e){}appear(e,t){return c(this,void 0,void 0,(function*(){return yield this.hide(0),t?new Promise(((i,r)=>{this.setTimeout((()=>{i(this.show(e))}),t)})):this.show(e)}))}show(e){return c(this,void 0,void 0,(function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(e);const t=this.states.applyAnimate("default",e);yield It(t),this._isShowing=!1}}))}hide(e){return c(this,void 0,void 0,(function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let t=this.states.lookup("hidden");t||(t=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(e);const i=this.states.applyAnimate("hidden",e);yield It(i),this._isHiding=!1}}))}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const e=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*e:e}compositeScale(){const e=this.get("scale",1);return this._parent?this._parent.compositeScale()*e:e}compositeRotation(){const e=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+e:e}width(){let e=this.get("width"),t=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),r=this.getPrivate("width"),n=0;if(S(r))n=r;else if(null==e)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(e instanceof d){const t=this.parent;n=t?t.innerWidth()*e.value:this._root.width()*e.value}else S(e)&&(n=e);return S(i)&&(n=Math.max(i,n)),S(t)&&(n=Math.min(t,n)),n}maxWidth(){let e=this.get("maxWidth",this.getPrivate("maxWidth"));if(S(e))return e;{let e=this.get("width");if(S(e))return e}const t=this.parent;return t?t.innerWidth():this._root.width()}maxHeight(){let e=this.get("maxHeight",this.getPrivate("maxHeight"));if(S(e))return e;{let e=this.get("height");if(S(e))return e}const t=this.parent;return t?t.innerHeight():this._root.height()}height(){let e=this.get("height"),t=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),r=this.getPrivate("height"),n=0;if(S(r))n=r;else if(null==e)this._adjustedLocalBounds&&(n=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(e instanceof d){const t=this.parent;n=t?t.innerHeight()*e.value:this._root.height()*e.value}else S(e)&&(n=e);return S(i)&&(n=Math.max(i,n)),S(t)&&(n=Math.min(t,n)),n}_findStaticTemplate(e){return this._templateField&&e(this._templateField)?this._templateField:super._findStaticTemplate(e)}_walkParents(e){this._parent&&this._walkParent(e)}_walkParent(e){this._parent&&this._parent._walkParent(e),e(this)}get parent(){return this._parent}_setParent(e,t=!1){const i=this._parent;e!==i&&(this.markDirtyBounds(),e.markDirty(),this._parent=e,t&&(this._removeParent(i),e&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(e){return this._display.toGlobal(e)}toLocal(e){return this._display.toLocal(e)}_getDownPoint(){const e=this._getDownPointId();if(e)return this._downPoints[e]}_getDownPointId(){if(this._downPoints)return de(this._downPoints,((e,t)=>e>t?1:e<t?-1:0))[0]}toFront(){const e=this.parent;e&&e.children.moveValue(this,e.children.length-1)}toBack(){const e=this.parent;e&&e.children.moveValue(this,0)}}Object.defineProperty(hr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Sprite"}),Object.defineProperty(hr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.concat([hr.className])});class cr extends rr{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_backgroundDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("repetition",""),t=this.get("width",100),i=this.get("height",100),r=this.get("fill"),n=this.get("fillOpacity",1),s=this._backgroundDisplay,a=this._display;a.clear(),s.clear(),r&&n>0&&(s.beginFill(r,n),s.drawRect(0,0,t,i),s.endFill()),a.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(a,s,e,t,i)}this._clear=!1}}Object.defineProperty(cr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Pattern"}),Object.defineProperty(cr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.concat([cr.className])});class dr extends cr{constructor(){super(...arguments),Object.defineProperty(this,"_image",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const e=this.get("canvas");e&&(this.set("width",e.width),this.set("height",e.height))}_draw(){super._draw();const e=this.get("colorOpacity");void 0!==e&&(this._display.alpha=Math.max(0,e));const t=this._image;if(t){const e=this.get("width",100),i=this.get("height",100),r=this.get("fit","image");let n=0,s=0;"pattern"==r?(n=e,s=i,this.markDirty()):(n=t.width,s=t.height,"image"==r&&(this.set("width",n),this.set("height",s)));let a=0,o=0;this.get("centered",!0)&&(a=e/2-n/2,o=i/2-s/2),this._display.image(t,n,s,a,o)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const e=this.get("src");if(e){const t=new Image;t.src=e,t.decode().then((()=>{this._image=t,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})})).catch((e=>{}))}}}var pr;Object.defineProperty(dr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PicturePattern"}),Object.defineProperty(dr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:cr.classNames.concat([dr.className])}),function(e){e.ADD="lighter",e.COLOR="color",e.COLOR_BURN="color-burn",e.COLOR_DODGE="color-dodge",e.DARKEN="darken",e.DIFFERENCE="difference",e.DST_OVER="destination-over",e.EXCLUSION="exclusion",e.HARD_LIGHT="hard-light",e.HUE="hue",e.LIGHTEN="lighten",e.LUMINOSITY="luminosity",e.MULTIPLY="multiply",e.NORMAL="source-over",e.OVERLAY="overlay",e.SATURATION="saturation",e.SCREEN="screen",e.SOFT_LIGHT="soft-light",e.SRC_ATOP="source-atop",e.XOR="xor"}(pr||(pr={}));class fr extends hr{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const e=this.get("fillGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",(()=>{this._markDirtyKey("fill")}))),this._disposers.push(t.events.on("positionchanged",(()=>{this._markDirtyKey("fill")}))))}}if(this.isDirty("strokeGradient")){const e=this.get("strokeGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",(()=>{this._markDirtyKey("stroke")}))),this._disposers.push(t.events.on("positionchanged",(()=>{this._markDirtyKey("stroke")}))))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let e=this.get("strokeDasharray");S(e)&&(e=e<.5?[0]:[e]),this._display.setLineDash(e);const t=this.get("strokeDashoffset");t&&this._display.setLineDashOffset(t);const i=this.get("blendMode",pr.NORMAL);this._display.blendMode=i;const r=this.get("draw");r&&"function"==typeof r&&r(this._display,this);const n=this.get("svgPath");null!=n&&this._display.svgPath(n)}}_afterChanged(){if(super._afterChanged(),this._clear){const e=this.get("fill"),t=this.get("fillGradient"),i=this.get("fillPattern"),r=this.get("fillOpacity"),n=this.get("stroke"),s=this.get("strokeGradient"),a=this.get("strokePattern"),o=this.get("shadowColor"),l=this.get("shadowBlur"),u=this.get("shadowOffsetX"),h=this.get("shadowOffsetY"),c=this.get("shadowOpacity");if(o&&(l||u||h)&&this._display.shadow(o,l,u,h,c),e&&!t&&(this._display.beginFill(e,r),this._display.endFill()),t){if(e){const i=t.get("stops",[]);i.length&&R(i,(t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=r,t.opacityInherited=!0)}))}const i=t.getFill(this);i&&(this._display.beginFill(i,r),this._display.endFill())}if(i){const e=i.pattern;e&&(this._display.beginFill(e,r),this._display.endFill(),i instanceof dr&&i.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}if(n||s||a){const e=this.get("strokeOpacity");let t=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(t/=this.get("scale",1)),this.get("crisp")&&(t/=this._root._renderer.resolution);const i=this.get("lineJoin"),r=this.get("lineCap");if(n&&!s&&(this._display.lineStyle(t,n,e,i,r),this._display.endStroke()),s){const a=s.get("stops",[]);a.length&&R(a,(t=>{t.color&&!t.colorInherited||!n||(t.color=n,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=e,t.opacityInherited=!0)}));const o=s.getFill(this);o&&(this._display.lineStyle(t,o,e,i,r),this._display.endStroke())}if(a){let n=a.pattern;n&&(this._display.lineStyle(t,n,e,i,r),this._display.endStroke(),a instanceof dr&&a.events.once("loaded",(()=>{this._clear=!0,this.markDirty()})))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}Object.defineProperty(fr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"}),Object.defineProperty(fr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:hr.classNames.concat([fr.className])});class gr extends fr{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){this._display.drawRect(0,0,this.width(),this.height())}_updateSize(){this.markDirty(),this._clear=!0}}function mr(e,t){e.get("reverseChildren",!1)?e.children.eachReverse(t):e.children.each(t)}Object.defineProperty(gr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"}),Object.defineProperty(gr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([gr.className])});class br extends rr{}Object.defineProperty(br,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"}),Object.defineProperty(br,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.concat([br.className])});class vr extends br{updateContainer(e){let t=e.get("paddingLeft",0),i=e.innerWidth(),r=0;mr(e,(e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("width");if(t instanceof d){r+=t.value;let n=i*t.value,s=e.get("minWidth",e.getPrivate("minWidth",-1/0));s>n&&(i-=s,r-=t.value);let a=e.get("maxWidth",e.getPrivate("maxWidth",1/0));n>a&&(i-=a,r-=t.value)}else S(t)||(t=e.width()),i-=t+e.get("marginLeft",0)+e.get("marginRight",0)}})),(i<=0||i==1/0)&&(i=.1),mr(e,(e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("width");if(t instanceof d){let n=i*t.value/r-e.get("marginLeft",0)-e.get("marginRight",0),s=e.get("minWidth",e.getPrivate("minWidth",-1/0)),a=e.get("maxWidth",e.getPrivate("maxWidth",1/0));n=Math.min(Math.max(s,n),a),e.setPrivate("width",n)}else e._prevSettings.width instanceof d&&e.setPrivate("width",void 0)}}));let n=t;mr(e,(e=>{if("relative"==e.get("position"))if(e.isVisible()){let t=e.adjustedLocalBounds(),i=e.get("marginLeft",0),r=e.get("marginRight",0),s=e.get("maxWidth"),a=t.left,o=t.right;s&&o-a>s&&(o=a+s);let l=n+i-a;e.setPrivate("x",l),n=l+o+r}else e.setPrivate("x",void 0)}))}}Object.defineProperty(vr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HorizontalLayout"}),Object.defineProperty(vr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:br.classNames.concat([vr.className])});class yr extends br{updateContainer(e){let t=e.get("paddingTop",0),i=e.innerHeight(),r=0;mr(e,(e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("height");if(t instanceof d){r+=t.value;let n=i*t.value,s=e.get("minHeight",e.getPrivate("minHeight",-1/0));s>n&&(i-=s,r-=t.value);let a=e.get("maxHeight",e.getPrivate("maxHeight",1/0));n>a&&(i-=a,r-=t.value)}else S(t)||(t=e.height()),i-=t+e.get("marginTop",0)+e.get("marginBottom",0)}})),(i<=0||i==1/0)&&(i=.1),mr(e,(e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("height");if(t instanceof d){let n=i*t.value/r-e.get("marginTop",0)-e.get("marginBottom",0),s=e.get("minHeight",e.getPrivate("minHeight",-1/0)),a=e.get("maxHeight",e.getPrivate("maxHeight",1/0));n=Math.min(Math.max(s,n),a),e.setPrivate("height",n)}else e._prevSettings.height instanceof d&&e.setPrivate("height",void 0)}}));let n=t;mr(e,(e=>{if("relative"==e.get("position"))if(e.isVisible()){let t=e.adjustedLocalBounds(),i=e.get("marginTop",0),r=t.top,s=t.bottom,a=e.get("maxHeight");a&&s-r>a&&(s=r+a);let o=e.get("marginBottom",0),l=n+i-r;e.setPrivate("y",l),n=l+s+o}else e.setPrivate("y",void 0)}))}}Object.defineProperty(yr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"VerticalLayout"}),Object.defineProperty(yr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:br.classNames.concat([yr.className])});class _r extends br{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(e){let t=e.get("paddingLeft",0),i=e.get("paddingRight",0),r=e.get("paddingTop",0),n=e.maxWidth()-t-i,s=n,a=1;mr(e,(e=>{if(e.get("visible")&&e.getPrivate("visible")&&!e.get("forceHidden")&&"absolute"!=e.get("position")){let t=e.width();t<s&&(s=t),t>a&&(a=t)}})),s=ii(s,1,n),a=ii(a,1,n);let o=1;o=this.get("fixedWidthGrid")?n/a:n/s,o=Math.max(1,Math.floor(o)),o=Math.min(this.get("maxColumns",Number.MAX_VALUE),o);let l=this.getColumnWidths(e,o,a,n),u=r,h=0,c=0;o=l.length;let d=t;mr(e,(e=>{if("relative"==e.get("position")&&e.isVisible()){const i=e.get("marginTop",0),r=e.get("marginBottom",0);let n=e.adjustedLocalBounds(),s=e.get("marginLeft",0),a=e.get("marginRight",0),p=d+s-n.left,f=u+i-n.top;e.setPrivate("x",p),e.setPrivate("y",f),d+=l[h]+a,c=Math.max(c,e.height()+i+r),h++,h>=o&&(h=0,d=t,u+=c)}}))}getColumnWidths(e,t,i,r){let n=0,s=[],a=0;return mr(e,(r=>{let n=r.adjustedLocalBounds();"absolute"!=r.get("position")&&r.isVisible()&&(this.get("fixedWidthGrid")?s[a]=i:s[a]=Math.max(0|s[a],n.right-n.left+r.get("marginLeft",0)+r.get("marginRight",0)),a<e.children.length-1&&(a++,a==t&&(a=0)))})),R(s,(e=>{n+=e})),n>r?t>2?(t-=1,this.getColumnWidths(e,t,i,r)):[r]:s}}Object.defineProperty(_r,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GridLayout"}),Object.defineProperty(_r,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:br.classNames.concat([_r.className])});class wr{static escape(e){return e.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(e){return e.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(e,t=!1,i=!1){let r=[];e=this.escape(e);let n=t?e.split("'"):[e];for(let e=0;e<n.length;e++){let t=n[e];if(""!==t)if(e%2==0){t=t.replace(/\]\[/g,"]"+A+"["),t=t.replace(/\[\]/g,"[ ]");let e=t.split(/[\[\]]+/);for(let t=0;t<e.length;t++){let n=this.cleanUp(this.unescape(e[t]));n!==A&&(""!==n&&(t%2==0?r.push({type:"value",text:n}):r.push({type:i?"value":"format",text:"["+n+"]"})))}}else{let e=t.split(/[\[\]]+/);for(let t=0;t<e.length;t++){let i=this.cleanUp(this.unescape(e[t]));""!==i&&(t%2==0?r.push({type:"text",text:i}):this.isImage(i)?r.push({type:"image",text:"["+i+"]"}):r.push({type:"format",text:"["+i+"]"}))}}}return r}static isImage(e){return!!e.match(/img[ ]?:/)}static getTextStyle(e){let t={};if(""==e||"[ ]"==e)return{};const i=e.match(/('[^']*')|("[^"]*")/gi);if(i)for(let t=0;t<i.length;t++)e=e.replace(i[t],i[t].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let r=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!r)return{};for(let e=0;e<r.length;e++)if(r[e].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))t.fontWeight=r[e];else if(r[e].match(/^(underline|line-through)$/i))t.textDecoration=r[e];else if("/"==r[e]);else if(r[e].match(/:/)){const i=r[e].replace("+"," ").split(/:[ ]*/);t[i[0]]=i[1]}else t.fill=Rt.fromString(r[e]);return t}}function xr(e,t){if(null!=t){t=""+t;let i,r=(t=wr.escape(t)).match(/\{([^}]+)\}/g);if(r)for(i=0;i<r.length;i++){let n=Dr(e,r[i].replace(/\{([^}]+)\}/,"$1"),"");null==n&&(n=""),t=t.split(r[i]).join(n)}t=wr.unescape(t)}else t="";return t}function Dr(e,t,i){let r;const n=e.dataItem;let s,a=[],o=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g;for(;s=o.exec(t),null!==s;)if(s[3]){a.push({prop:s[3]});const t=e.getDateFormatter().get("dateFields",[]),i=e.getNumberFormatter().get("numericFields",[]),r=e.getDurationFormatter().get("durationFields",[]);-1!==t.indexOf(s[3])?a.push({method:"formatDate",params:[]}):-1!==i.indexOf(s[3])?a.push({method:"formatNumber",params:[]}):-1!==r.indexOf(s[3])&&a.push({method:"formatDuration",params:[]})}else{let e=[];if(""!=it(s[2])){let t,i=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g;for(;t=i.exec(s[2]),null!==t;)e.push(t[1]||t[2]||t[3])}a.push({method:s[1],params:e})}if(n){r=Tr(e,a,n._settings),(null==r||C(r))&&(r=Tr(e,a,n));let s=n.dataContext;null==r&&s&&(r=Tr(e,a,s),null==r&&(r=Tr(e,[{prop:t}],s)),null==r&&s.dataContext&&(r=Tr(e,a,s.dataContext))),null==r&&n.component&&n.component.dataItem!==n&&(r=Dr(n.component,t,i))}return null==r&&(r=Tr(e,a,e)),null==r&&e.parent&&(r=Dr(e.parent,t,i)),r}function kr(e,t){const i=e.getPrivate("customData");if(C(i))return i[t]}function Tr(e,t,i,r){let n=i,s=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a];if(o.prop){if(n instanceof hr){let e=n.get(o.prop);null==e&&(e=n.getPrivate(o.prop)),null==e&&(e=kr(n,o.prop)),null==e&&(e=n[o.prop]),n=e}else if(n.get){let e=n.get(o.prop);null==e&&(e=n[o.prop]),n=e}else n=n[o.prop];if(null==n)return}else switch(o.method){case"formatNumber":let t=w(n);null!=t&&(n=e.getNumberFormatter().format(t,r||o.params[0]||void 0),s=!0);break;case"formatDate":let a=x(n);if(!T(a)||v(a.getTime()))return;null!=a&&(n=e.getDateFormatter().format(a,r||o.params[0]||void 0),s=!0);break;case"formatDuration":let l=w(n);null!=l&&(n=e.getDurationFormatter().format(l,r||o.params[0]||void 0,o.params[1]||void 0),s=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[o.method]&&n[o.method].apply(i,o.params)}}if(!s){let t=[{method:"",params:r}];if(null==r)S(n)?(t[0].method="formatNumber",t[0].params=""):T(n)&&(t[0].method="formatDate",t[0].params="");else{let e=nt(r);"number"===e?t[0].method="formatNumber":"date"===e?t[0].method="formatDate":"duration"===e&&(t[0].method="formatDuration")}t[0].method&&(n=Tr(e,t,n))}return n}Object.defineProperty(wr,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:"__amcharts__"});class Pr extends hr{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:new Vt(this)}),Object.defineProperty(this,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_dispose(){I(this.allChildren(),(e=>{e.dispose()})),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each((e=>{e.removePrivate("x"),e.removePrivate("y")}))),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each((e=>{e.markDirtyPosition()})),this.isDirty("maskContent")){const e=this._childrenDisplay;let t=this._contentMask;this.get("maskContent")?t||(t=gr.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=t,e.addChildAt(t._display,0),e.mask=t._display):t&&(e.removeChild(t._display),e.mask=null,t.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),R(this._percentageSizeChildren,(e=>{e._updateSize()})),R(this._percentagePositionChildren,(e=>{e.markDirtyPosition(),e._updateSize()})),this.updateBackground()}updateBackground(){const e=this.get("background");let t=this._localBounds;if(t&&!this.isHidden()){let i=t.left,r=t.top,n=t.right-i,s=t.bottom-r,a=this.get("maxWidth"),o=this.get("maxHeight");o&&s>o&&(s=o),a&&n>a&&(n=a);let l=this.width(),u=this.height();e&&(e.setAll({width:n,height:s,x:i,y:r}),this._display.interactive&&(e._display.interactive=!0));const h=this._contentMask;h&&h.setAll({width:l+1,height:u+1});const c=this.get("verticalScrollbar");if(c){c.set("height",u),c.set("x",l-c.width()-c.get("marginRight",0)),c.set("end",c.get("start",0)+u/this._contentHeight);const e=c.get("background");e&&e.setAll({width:c.width(),height:u});let t=!0;this._contentHeight<=u&&(t=!1),c.setPrivate("visible",t)}}}_applyThemes(e=!1){return!!super._applyThemes(e)&&(this.eachChildren((t=>{t._applyThemes(e)})),!0)}_applyState(e){super._applyState(e),this.get("setStateOnChildren")&&this.eachChildren((t=>{t.states.apply(e)}))}_applyStateAnimated(e,t){super._applyStateAnimated(e,t),this.get("setStateOnChildren")&&this.eachChildren((i=>{i.states.applyAnimate(e,t)}))}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let e=this._localBounds;e&&(this._contentWidth=e.right-e.left,this._contentHeight=e.bottom-e.top)}else{let e=this.get("width"),t=this.get("height"),i=this.getPrivate("width"),r=this.getPrivate("height"),n={left:0,top:0,right:this.width(),bottom:this.height()},s=this.get("layout"),a=!1,o=!1;if((s instanceof vr||s instanceof _r)&&(a=!0),s instanceof yr&&(o=!0),null==e&&null==i||null==t&&null==r||this.get("verticalScrollbar")){let e=Number.MAX_VALUE,t=e,i=-e,r=e,s=-e;const l=this.get("paddingLeft",0),u=this.get("paddingTop",0),h=this.get("paddingRight",0),c=this.get("paddingBottom",0);this.children.each((e=>{if("absolute"!=e.get("position")&&e.get("isMeasured")){let n=e.adjustedLocalBounds(),l=e.x(),u=e.y(),h=l+n.left,c=l+n.right,d=u+n.top,p=u+n.bottom;a&&(h-=e.get("marginLeft",0),c+=e.get("marginRight",0)),o&&(d-=e.get("marginTop",0),p+=e.get("marginBottom",0)),h<t&&(t=h),c>i&&(i=c),d<r&&(r=d),p>s&&(s=p)}})),t==e&&(t=0),i==-e&&(i=0),r==e&&(r=0),s==-e&&(s=0),n.left=t-l,n.top=r-u,n.right=i+h,n.bottom=s+c;const d=this.get("minWidth");S(d)&&d>0&&n.right-n.left<d&&(n.right>=d?n.left=n.right-d:n.right=n.left+d);const p=this.get("minHeight");S(p)&&p>0&&n.bottom-n.top<p&&(n.bottom>=p?n.top=n.bottom-p:n.bottom=n.top+p)}else;this._contentWidth=n.right-n.left,this._contentHeight=n.bottom-n.top,S(e)&&(n.left=0,n.right=e),S(i)&&(n.left=0,n.right=i),S(t)&&(n.top=0,n.bottom=t),S(r)&&(n.top=0,n.bottom=r),this._localBounds=n}}_updateBounds(){const e=this.get("layout");e&&e.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){const e=this.innerWidth(),t=this.innerHeight();if(e!=this._prevWidth||t!=this._prevHeight){let i=this.get("layout"),r=!1,n=!1;i&&((i instanceof vr||i instanceof _r)&&(r=!0),i instanceof yr&&(n=!0)),R(this._percentageSizeChildren,(i=>{if(!r){let t=i.get("width");t instanceof d&&i.setPrivate("width",t.value*e)}if(!n){let e=i.get("height");e instanceof d&&i.setPrivate("height",e.value*t)}})),R(this._percentagePositionChildren,(e=>{e.markDirtyPosition(),e.markDirtyBounds()})),this._prevWidth=e,this._prevHeight=t,this._sizeDirty=!0,this.updateBackground()}this._handleStates()}_updateHTMLContent(){const e=this.get("html","");e&&""!==e?this._root._setHTMLContent(this,xr(this,e)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(e){const t=this.get("verticalScrollbar");if(t){let i=e.y(),r=this.innerHeight(),n=e.height(),s=this._contentHeight,a=1-(r-n/2)/s;if(i+.7*n+this._childrenDisplay.y>r||i-.3*n+this._childrenDisplay.y<0){let e=Math.max(0,Math.min(a,(i-n/2)/s));t.animate({key:"start",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")})}}}_updateChildren(){if(this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const e=this.get("verticalScrollbar");if(e){e._setParent(this),e.startGrip.setPrivate("visible",!1),e.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",e.width()+e.get("marginRight",0)+e.get("marginLeft",0));let t=this.get("background");t||(t=this.set("background",gr.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",(t=>{const i=t.originalEvent;if(!Fe(i,this))return;i.preventDefault();let r=i.deltaY/5e3;const n=e.get("start",0),s=e.get("end",1);n+r<=0&&(r=-n),s+r>=1&&(r=1-s),n+r>=0&&s+r<=1&&(e.set("start",n+r),e.set("end",s+r))})),this._disposers.push(this._vsbd0),this._vsbd1=e.events.on("rangechanged",(()=>{let t=this._contentHeight;const i=this._childrenDisplay,r=this._contentMask;i.y=-e.get("start",0)*t,i.markDirtyLayer(),r&&(r._display.y=-i.y,i.mask=r._display)})),this._disposers.push(this._vsbd1),this._display.addChild(e._display)}else{const e=this._prevSettings.verticalScrollbar;if(e){this._display.removeChild(e._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose();this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0)}}}if(this.isDirty("background")){const e=this._prevSettings.background;e&&this._display.removeChild(e._display);const t=this.get("background");t instanceof hr&&(t.set("isMeasured",!1),t._setParent(this),this._display.addChildAt(t._display,0))}if(this.isDirty("mask")){const e=this.get("mask"),t=this._prevSettings.mask;if(t&&(this._display.removeChild(t._display),t!=e&&t.dispose()),e){const t=e.parent;t&&t.children.removeValue(e),e._setParent(this),this._display.addChildAt(e._display,0),this._childrenDisplay.mask=e._display}}}_processTemplateField(){super._processTemplateField(),this.children.each((e=>{e._processTemplateField()}))}walkChildren(e){this.children.each((t=>{t instanceof Pr&&t.walkChildren(e),e(t)}))}eachChildren(e){const t=this.get("background");t&&e(t);const i=this.get("verticalScrollbar");i&&e(i);const r=this.get("mask");r&&e(r),this.children.values.forEach((t=>{e(t)}))}allChildren(){const e=[];return this.eachChildren((t=>{e.push(t)})),e}_setDataItem(e){const t=e!==this._dataItem;super._setDataItem(e);const i=this.get("html","");i&&""!==i&&t&&this._root._setHTMLContent(this,xr(this,i))}}Object.defineProperty(Pr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"}),Object.defineProperty(Pr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:hr.classNames.concat([Pr.className])});class Sr extends hr{constructor(){super(...arguments),Object.defineProperty(this,"textStyle",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeTextStyle()}),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeText("",this.textStyle)}),Object.defineProperty(this,"_textStyles",{enumerable:!0,configurable:!0,writable:!0,value:["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_updateBounds(){if(this.get("text")){super._updateBounds();let e=this.get("fillGradient");e&&(this._display.style.fill=e.getFill(this))}else{let e={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=e}}_changed(){super._changed(),this._display.clear();let e=this.textStyle;if(this.isDirty("opacity")){let e=this.get("opacity",1);this._display.alpha=e}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")){this.getPrivate("tooltipElement")&&this._disposers.push(new _e((()=>{this._root._removeTooltipElement(this)})))}if(this.isDirty("width")&&(e.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(e.oversizedBehavior=this.get("oversizedBehavior","none"),this.markDirtyBounds()),this.isDirty("breakWords")&&(e.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(e.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(e.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(e.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const t=this.get("fill"),i=this.get("fillGradient"),r=this.get("fillOpacity");if(i){if(t){const e=i.get("stops",[]);e.length&&R(e,(e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=r,e.opacityInherited=!0)}))}e.fill=i.getFill(this)}else t&&(e.fill=t)}if(this.isDirty("fillOpacity")){let t=this.get("fillOpacity",1);t&&(e.fillOpacity=t)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(e.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(e.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),R(this._textStyles,(t=>{this._dirty[t]&&(e[t]=this.get(t),this.markDirtyBounds())})),e.fontSize=this.get("fontSize"),e.fontFamily=this.get("fontFamily"),this._display.style=e,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let e=this.get("text","");return this.get("maxChars")&&(e=rt(e,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?xr(this,e):e}_getAccessibleText(){const e=this.get("ariaLabel");return void 0!==e?this.get("populateText")?xr(this,e):e:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(e){super._setDataItem(e),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}Object.defineProperty(Sr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Text"}),Object.defineProperty(Sr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:hr.classNames.c
1oncat([Sr.className])});class Cr{constructor(){Object.defineProperty(this,"_observer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._observer=new ResizeObserver((e=>{R(e,(e=>{R(this._targets,(t=>{t.target===e.target&&t.callback()}))}))}))}addTarget(e,t){this._observer.observe(e,{box:"border-box"}),this._targets.push({target:e,callback:t})}removeTarget(e){this._observer.unobserve(e),he(this._targets,(t=>t.target!==e))}}class Or{constructor(){Object.defineProperty(this,"_timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]})}addTarget(e,t){if(null===this._timer){let e=null;const t=()=>{const i=Date.now();(null===e||i>e+Or.delay)&&(e=i,R(this._targets,(e=>{let t=e.target.getBoundingClientRect();t.width===e.size.width&&t.height===e.size.height||(e.size=t,e.callback())}))),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(t)};this._timer=requestAnimationFrame(t)}this._targets.push({target:e,callback:t,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(e){he(this._targets,(t=>t.target!==e)),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}Object.defineProperty(Or,"delay",{enumerable:!0,configurable:!0,writable:!0,value:200});let Ar=null;class Er{constructor(e,t){Object.defineProperty(this,"_sensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_listener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._sensor=(null===Ar&&(Ar="undefined"!=typeof ResizeObserver?new Cr:new Or),Ar),this._element=e,this._listener=Ce(t),this._sensor.addTarget(e,t)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}class jr extends rr{}Object.defineProperty(jr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"InterfaceColors"}),Object.defineProperty(jr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.concat([jr.className])});class Lr extends Pr{constructor(){super(...arguments),Object.defineProperty(this,"_text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textKeys",{enumerable:!0,configurable:!0,writable:!0,value:["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]})}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),R(this._textKeys,(e=>{const t=this.get(e);null!=t&&this._text.set(e,t)})),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",(()=>{this._setMaxDimentions()})),this.onPrivate("maxHeight",(()=>{this._setMaxDimentions()}))}_makeText(){this._text=this.children.push(Sr.new(this._root,{}))}_updateChildren(){super._updateChildren();const e=this._text;if(R(this._textKeys,(e=>{this._text.set(e,this.get(e))})),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?e.set("text",""):(e.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const t=this.get("textAlign");let i;null!=this.get("width")?i="right"==t?g:"center"==t?m:0:"left"==t||"start"==t?i=this.get("paddingLeft",0):"right"!=t&&"end"!=t||(i=-this.get("paddingRight",0)),e.set("x",i)}const t=this.get("background");t&&t.setPrivate("visible",e._display.textVisible)}_maybeUpdateHTMLColor(){const e=this.getPrivate("htmlElement");e&&this.get("fill")&&(e.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const e=this.get("rotation"),t=90==e||270==e||-90==e,i=this._text,r=this.get("maxWidth",this.getPrivate("maxWidth",1/0));S(r)?i.set(t?"maxHeight":"maxWidth",r-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(t?"maxHeight":"maxWidth",void 0);const n=this.get("maxHeight",this.getPrivate("maxHeight",1/0));S(n)?i.set(t?"maxWidth":"maxHeight",n-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(t?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",(()=>{i.markDirtyBounds()}))}_setDataItem(e){super._setDataItem(e),this._markDirtyKey("text"),this._markDirtyKey("html");const t=this._text;t.get("populateText")&&t.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}Object.defineProperty(Lr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Label"}),Object.defineProperty(Lr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.c
1oncat([Lr.className])});class Mr extends fr{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let e=this.width(),t=this.height();if(e>0&&t>0){let i=this.get("cornerRadius",8);i=ii(i,0,Math.min(e/2,t/2));let r=this.get("pointerX",0),n=this.get("pointerY",0),s=this.get("pointerBaseWidth",15)/2,a=0,o=0,l=0,u=(r-a)*(t-o)-(n-o)*(e-a),h=(r-l)*(0-t)-(n-t)*(e-l);const c=this._display;if(c.moveTo(i,0),u>0&&h>0){let t=Math.round(ii(r,i+s,e-s-i));n=ii(n,-1/0,0),c.lineTo(t-s,0),c.lineTo(r,n),c.lineTo(t+s,0)}if(c.lineTo(e-i,0),c.arcTo(e,0,e,i,i),u>0&&h<0){let a=Math.round(ii(n,i+s,t-s-i));r=ii(r,e,1/0),c.lineTo(e,i),c.lineTo(e,Math.max(a-s,i)),c.lineTo(r,n),c.lineTo(e,a+s)}if(c.lineTo(e,t-i),c.arcTo(e,t,e-i,t,i),u<0&&h<0){let a=Math.round(ii(r,i+s,e-s-i));n=ii(n,t,1/0),c.lineTo(e-i,t),c.lineTo(a+s,t),c.lineTo(r,n),c.lineTo(a-s,t)}if(c.lineTo(i,t),c.arcTo(0,t,0,t-i,i),u<0&&h>0){let e=Math.round(ii(n,i+s,t-i-s));r=ii(r,-1/0,0),c.lineTo(0,t-i),c.lineTo(0,e+s),c.lineTo(r,n),c.lineTo(0,Math.max(e-s,i))}c.lineTo(0,i),c.arcTo(0,0,i,0,i),c.closePath()}}}}Object.defineProperty(Mr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PointedRectangle"}),Object.defineProperty(Mr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([Mr.className])});class Rr extends Pr{constructor(e,t,i,r=[]){super(e,t,i,r),Object.defineProperty(this,"_fx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_fy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fillDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_labelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_w",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_h",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_keepHoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlContentHovered",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._settings.themeTags=Et(this._settings.themeTags,["tooltip"]),super._afterNew();this._setDefaultFn("background",(()=>Mr.new(this._root,{}))).set("themeTags",["tooltip","background"]),this._label=this.children.push(Lr.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",(()=>
1{this._updateBackground()}))),this._disposers.push(this.on("bounds",(()=>{this._updateBackground()}))),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",(e=>{e&&(this._disposers.push(Se(e,"pointerover",(e=>{this._htmlContentHovered=!0}))),this._disposers.push(Se(e,"pointerout",(e=>{this._htmlContentHovered=!1}))))}))),this.on("visible",(e=>{this._handleReaderAnnouncement()})),this.label.events.on("dataitemchanged",(e=>{this._handleReaderAnnouncement()})),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),W(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width");null!=this.get("labelText")&&this.label.set("text",this.get("labelText"));null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML"));null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackgroun
1d(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover")){if(this.get("keepTargetHover")){const e=this.get("background");this._keepHoverDp=new xe([e.events.on("pointerover",(e=>{let t=this.get("tooltipTarget");t&&(t.parent&&t.parent.getPrivate("tooltipTarget")==t&&(t=t.parent),t.hover())})),e.events.on("pointerout",(e=>{let t=this.get("tooltipTarget");t&&(t.parent&&t.parent.getPrivate("tooltipTarget")==t&&(t=t.parent),this._htmlContentHovered||t.unhover())}))]),this.label.onPrivate("htmlElement",(t=>{this._keepHoverDp&&t&&this._keepHoverDp.disposers.push(Se(t,"pointerleave",(t=>{const i=this.root._renderer.getEvent(t);e.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:e})})))}))}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let e=this.get("tooltipTarget");const t=this.get("background");let i,r;e&&t&&(i=e.get("fill"),r=e.get("stroke"),null==i&&(i=r),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&t.set("fill",i),this._fillDp=e.on("fill",(e=>{null!=e&&(t.set("fill",e),this._updateTextColor(e))})),this._disposers.push(this._fillDp)),this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&t.set("stroke",i),this._strokeDp=e.on("fill",(e=>{null!=e&&t.set("stroke",e)})),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=e.on("fill",(e=>{null!=e&&this.label.set("fill",e)})),this._disposers.push(this._labelDp))),this._updateTextColor(i)}_updateTextColor(e){this.get("autoTextColor")&&(null==e&&(e=this.get("background").get("fill")),null==e&&(e=this._root.interfaceColors.get("background")),e instanceof Rt&&this.label.set("fill",Rt.alternative(e,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(e){super._setDataItem(e),this.label._setDataItem(e)}
1_updateBackground(){super.updateBackground();const e=this._root.container;if(e){let t=.5,i=.5,r=this.get("centerX");r instanceof d&&(t=r.value);let n=this.get("centerY");n instanceof d&&(i=n.value);let s=e.width(),a=e.height(),o=this.parent,l=0,u=0;if(o){l=o.x(),u=o.y();const e=o.get("layerMargin");e&&(l+=e.left||0,u+=e.top||0,s+=(e.left||0)+(e.right||0),a+=(e.top||0)+(e.bottom||0))}const h=this.get("bounds",{left:-l,top:-u,right:s-l,bottom:a-u});this._updateBounds();let c=this.width(),p=this.height();0===c&&(c=this._w),0===p&&(p=this._h);let f=this.get("pointTo",{x:s/2,y:a/2}),g=f.x,m=f.y,b=this.get("pointerOrientation"),v=this.get("background"),y=0,_=0,w=0;v instanceof Mr&&(y=v.get("pointerLength",0),_=v.get("strokeWidth",0)/2,w=_,v.set("width",c),v.set("height",p));let x=0,D=0,k=h.right-h.left,T=h.bottom-h.top;"horizontal"==b||"left"==b||"right"==b?(_=0,"horizontal"==b?g>h.left+k/2?(g-=c*(1-t)+y,w*=-1):g+=c*t+y:"left"==b?g+=c*(1-t)+y:(g-=c*t+y,w*=-1)):(w=0,"vertical"==b?m>h.top+p/2+y?m-=p*(1-i)+y:(m+=p*i+y,_*=-1):"down"==b?m-=p*(1-i)+y:(m+=p*i+y,_*=-1)),g=ii(g,h.left+c*t,h.left+k-c*(1-t))+w,m=ii(m,h.top+p*i,h.top+T-p*(1-i))-_,x=f.x-g+c*t+w,D=f.y-m+p*i-_,this._fx=g,this._fy=m;const P=this.get("animationDuration",0);if(P>0&&this.get("visible")&&this.get("opacity")>.1){const e=this.get("animationEasing");this.animate({key:"x",to:g,duration:P,easing:e}),this.animate({key:"y",to:m,duration:P,easing:e})}else this.set("x",g),this.set("y",m);v instanceof Mr&&(v.set("pointerX",x),v.set("pointerY",D)),c>0&&(this._w=c),p>0&&(this._h=p)}}}Object.defineProperty(Rr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tooltip"}),Object.defineProperty(Rr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.concat([Rr.className])});class Ir extends rr{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const e="_big_number_suffix_",t="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(e+"3")},{number:1e6,suffix:this._t(e+"6")},{number:1e9,suffix:this._t(e+"9")},{number:1e12,suffix:this._t(e+"12")},{number:1e15,suffix:this._t(e+"15")},{number:1e18,suffix:this._t(e+"18")},{number:1e21,suffix:this._t(e+"21")},{number:1e24,suffix:this._t(e+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(t+"24")},{number:1e-21,suffix:this._t(t+"21")},{number:1e-18,suffix:this._t(t+"18")},{number:1e-15,suffix:this._t(t+"15")},{number:1e-12,suffix:this._t(t+"12")},{number:1e-9,suffix:this._t(t+"9")},{number:1e-6,suffix:this._t(t+"6")},{number:.001,suffix:this._t(t+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let r;(null==t||P(t)&&"number"===t.toLowerCase())&&(t=this.get("numberFormat",""));let n=Number(e);if(C(t))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),t).format(n):new Intl.NumberFormat(void 0,t).format(n)}catch(e){return"Invalid"}else{t=st(t);let e,s=this.parseFormat(t,this._root.language);e=n>this.get("negativeBase")?s.positive:n<this.get("negativeBase")?s.negative:s.zero,null==i||e.mod||(e=pe(e),e.decimals.active=0==n?0:i),r=e.template.split(A).join(this.applyFormat(n,e))}return!0===this.get("forceLTR")&&(r="‎"+r),r}parseFormat(e,t){const i=t.translateEmpty("_thousandSeparator"),r=t.translateEmpty("_decimalSeparator");let n={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:r},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:r},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:r},template:"",source:"",parsed:!1}},s=(e=e.replace("||",E)).split("|");return n.positive.source=s[0],void 0===s[2]?n.zero=n.positive:n.zero.source=s[2],void 0===s[1]?n.negative=n.positive:n.negative.source=s[1],fe(n,((e,t)=>{if(t.parsed)return;let i=t.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let r=wr.chunk(i,!0);for(let e=0;e<r.length;e++){let i=r[e];if(i.text=i.text.replace(E,"|"),"value"===i.type){let e=i.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(e)if(null===e||""===e[0])t.template+=i.text;else{let r=e[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);r&&(t.mod=r[0].toLowerCase(),t.modSpacing=!!e[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));let n=e[0].split(".");if(""===n[0]);else{t.thousands.active=(n[0].match(/0/g)||[]).length,t.thousands.passive=(n[0].match(/\#/g)||[]).length+t.thous
vendor: 9,687 bytes, line 1
1ands.active;let e=n[0].split(",");1===e.length||(t.thousands.interval=(e.pop()||"").length,0===t.thousands.interval&&(t.thousands.interval=-1))}void 0===n[1]||(t.decimals.active=(n[1].match(/0/g)||[]).length,t.decimals.passive=(n[1].match(/\#/g)||[]).length+t.decimals.active),t.template+=i.text.split(e[0]).join(A)}}else t.template+=i.text}t.parsed=!0})),n}applyFormat(e,t){let i=e<0;e=Math.abs(e);let r="",n="",s=t.mod?t.mod.split(""):[];if(-1!==s.indexOf("b")){let i=this.applyPrefix(e,this.get("bytePrefixes"),-1!==s.indexOf("!"));e=i[0],r=i[1],n=i[2],t.modSpacing&&(n=" "+n)}else if(-1!==s.indexOf("a")){let i=this.applyPrefix(e,e<this.get("smallNumberThreshold")?this.get("smallNumberPrefixes"):this.get("bigNumberPrefixes"),-1!==s.indexOf("!"));e=i[0],r=i[1],n=i[2],t.modSpacing&&(n=" "+n)}else if(-1!==s.indexOf("p")){let t=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(t)),r=this._root.language.translate("_percentPrefix"),n=this._root.language.translate("_percentSuffix"),""==r&&""==n&&(n="%")}else if(-1!==s.indexOf("%")){let t=Math.min(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(t)),n="%"}else if(-1!==s.indexOf("‰")){let t=Math.min(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(t)),n="‰"}if(-1!==s.indexOf("e")){let i;i=t.decimals.passive>=0?e.toExponential(t.decimals.passive).split("e"):e.toExponential().split("e"),e=Number(i[0]),n="e"+i[1],t.modSpacing&&(n=" "+n)}else if(0===t.decimals.passive)e=Math.round(e);else if(t.decimals.passive>0){const i=Je(e);if(i>0){const r=Math.pow(10,t.decimals.passive);e=Math.round(parseFloat((e*r).toFixed(i)))/r}}let a="",o=D(e).split("."),l=o[0];if(l.length<t.thousands.active&&(l=Array(t.thousands.active-l.length+1).join("0")+l),t.thousands.interval>0){let e=[],i=l.split("").reverse().join("");for(let r=0,n=l.length;r<=n;r+=t.thousands.interval){let n=i.substr(r,t.thousands.interval).split("").reverse().join("");""!==n&&e.unshift(n)}l=e.join(t.thousands.separator)}a+=l,1===o.length&&o.push("");let u=o[1];return u.length<t.decimals.active&&(u+=Array(t.decimals.active-u.length+1).join("0")),""!==u&&(a+=t.decimals.separator+u),""===a&&(a="0"),0!==e&&i&&-1===s.indexOf("s")&&(a="-"+a),r&&(a=r+a),n&&(a+=n),a}applyPrefix(e,t,i=!1){let r=e,n="",s="",a=!1,o=1;for(let i=0,l=t.length;i<l;i++)t[i].number<=e&&(0===t[i].number?r=0:(r=e/t[i].number,o=t[i].number),n=t[i].prefix,s=t[i].suffix,a=!0);return!a&&i&&t.length&&0!=e&&(r=e/t[0].number,n=t[0].prefix,s=t[0].suffix,a=!0),a&&(r=parseFloat(r.toPrecision(Math.min(o.toString().length+Math.floor(r).toString().replace(/[^0-9]*/g,"").length,21)))),[r,n,s]}escape(e){return e.replace("||",E)}unescape(e){return e.replace(E,"|")}}function Br(e,t){let i=0,r=0,n=1,s=0,a=0,o=0,l=0,u=0;return e.formatToParts(t).forEach((e=>{switch(e.type){case"year":i=+e.value;break;case"month":r=+e.value-1;break;case"day":n=+e.value;break;case"hour":s=+e.value;break;case"minute":a=+e.value;break;case"second":o=+e.value;break;case"fractionalSecond":l=+e.value;break;case"weekday":switch(e.value){case"Sun":u=0;break;case"Mon":u=1;break;case"Tue":u=2;break;case"Wed":u=3;break;case"Thu":u=4;break;case"Fri":u=5;break;case"Sat":u=6}}})),24===s&&(s=0),{year:i,month:r,day:n,hour:s,minute:a,second:o,millisecond:l,weekday:u}}function Nr(e,t){const{year:i,month:r,day:n,hour:s,minute:a,second:o,millisecond:l}=Br(e,t);return Date.UTC(i,r,n,s,a,o,l)}class Fr{constructor(e,t){if(Object.defineProperty(this,"_utc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dtf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=e,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(e){return new this(e,!0)}convertLocal(e){const t=this.offsetUTC(e),i=e.getTimezoneOffset(),r=new Date(e);r.setUTCMinutes(r.getUTCMinutes()-(t-i));const n=r.getTimezoneOffset();return i!=n&&r.setUTCMinutes(r.getUTCMinutes()+n-i),r}offsetUTC(e){return(Nr(this._utc,e)-Nr(this._dtf,e))/6e4}parseDate(e){return Br(this._dtf,e)}}class zr extends rr{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i=!1){let r;void 0!==t&&""!==t||(t=this.get("dateFormat","yyyy-MM-dd"));let n=e;if(C(t))try{const e=this.get("intlLocales");return e?new Intl.DateTimeFormat(e,t).format(n):new Intl.DateTimeFormat(void 0,t).format(n)}catch(e){return"Invalid"}let s=this.parseFormat(t);const a=this._root.timezone;let o=n;return!a||this._root.utc||i||(n=a.convertLocal(n)),S(n.getTime())?(r=this.applyFormat(n,s,i,o),this.get("capitalize")&&(r=r.replace(/^.{1}/,r.substr(0,1).toUpperCase())),r):"Invalid date"}applyFormat(e,t,i=!1,r){let n,s,a,o,l,u,h,c,d=t.template,p=e.getTime();this._root.utc&&!i?(n=e.getUTCFullYear(),s=e.getUTCMonth(),a=e.getUTCDay(),o=e.getUTCDate(),l=e.getUTCHours(),u=e.getUTCMinutes(),h=e.getUTCSeconds(),c=e.getUTCMilliseconds()):(n=e.getFullYear(),s=e.getMonth(),a=e.getDay(),o=e.getDate(),l=e.getHours(),u=e.getMinutes(),h=e.getSeconds(),c=e.getMilliseconds());for(let i=0,f=t.parts.length;i<f;i++){let f="";switch(t.parts[i]){case"G":f=this._t(n<0?"_era_bc":"_era_ad");break;case"yyyy":f=Math.abs(n).toString(),n<0&&(f+=this._t("_era_bc"));break;case"yyy":case"yy":case"y":f=Math.abs(n).toString().substr(-t.parts[i].length),n<0&&(f+=this._t("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":let d=pt(e,this._root.utc);f="YYYY"==t.parts[i]?Math.abs(d).toString():Math.abs(d).toString().substr(-t.parts[i].length),d<0&&(f+=this._t("_era_bc"));break;case"u":case"F":case"g":break;case"q":f=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":f=this._t(this._getMonth(s)).substr(0,1);break;case"MMMM":f=this._t(this._getMonth(s));break;case"MMM":f=this._t(this._getShortMonth(s));break;case"MM":f=Qe(s+1,2,"0");break;case"M":f=(s+1).toString();break;case"ww":f=Qe(dt(e,this._root.utc),2,"0");break;case"w":f=dt(e,this._root.utc).toString();break;case"W":f=ft(e,this._root.utc).toString();break;case"dd":f=Qe(o,2,"0");break;case"d":f=o.toString();break;case"DD":case"DDD":f=Qe(ct(e,this._root.utc).toString(),t.parts[i].length,"0");break;case"D":f=ct(e,this._root.utc).toString();break;case"t":f=this._root.language.translateFunc("_dateOrd").call(this,o);break;case"E":f=(a||7).toString();break;case"EE":f=Qe((a||7).toString(),2,"0");break;case"EEE":case"eee":f=this._t(this._getShortWeekday(a));break;case"EEEE":case"eeee":f=this._t(this._getWeekday(a));break;case"EEEEE":case"eeeee":f=this._t(this._getShortWeekday(a)).substr(0,1);break;case"e":case"ee":f=(a-(this._root.locale.firstDayOfWeek||1)+1).toString(),"ee"==t.parts[i]&&(f=Qe(f,2,"0"));break;case"a":f=l>=12?this._t("PM"):this._t("AM");break;case"aa":f=l>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":f=l>=12?this._t("P"):this._t("A");break;case"h":f=mt(l).toString();break;case"hh":f=Qe(mt(l),2,"0");break;case"H":f=l.toString();break;case"HH":f=Qe(l,2,"0");break;case"K":f=mt(l,0).toString();break;case"KK":f=Qe(mt(l,0),2,"0");break;case"k":f=(l+1).toString();break;case"kk":f=Qe(l+1,2,"0");break;case"m":f=u.toString();break;case"mm":f=Qe(u,2,"0");break;case"s":f=h.toString();break;case"ss":f=Qe(h,2,"0");break;case"S":case"SS":case"SSS":f=Math.round(c/1e3*Math.pow(10,t.parts[i].length)).toString();break;case"x":f=p.toString();break;case"n":case"nn":case"nnn":f=Qe(c,t.parts[i].length,"0");break;case"z":f=bt(r||e,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":f=bt(r||e,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":f=bt(r||e,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":f=bt(r||e,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let g=this._root.utc?"UTC":this._root.timezone;g instanceof Fr&&(g=g.name);const m=g?vt(g,r||e):e.getTimezoneOffset();let b=Math.abs(m)/60,v=Math.floor(b),y=60*b-60*v;this._root.utc&&(v=0,y=0),"Z"==t.parts[i]?(f="GMT",f+=m>0?"-":"+",f+=Qe(v,2)+":"+Qe(y,2)):(f=m>0?"-":"+",f+=Qe(v,2)+Qe(y,2));break;case"i":f=e.toISOString();break;case"I":f=e.toUTCString()}d=d.replace(A,f)}return d}parseFormat(e){let t={template:"",parts:[]},i=wr.chunk(e,!0);for(let e=0;e<i.length;e++){let r=i[e];if("value"===r.type){if(r.text.match(/^date$/i)){let e=this.get("dateFormat","yyyy-MM-dd");P(e)||(e="yyyy-MM-dd"),r.text=e}let e=r.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(e)for(let i=0;i<e.length;i++)t.parts.push(e[i]),r.text=r.text.replace(e[i],A)}t.template+=r.text}return t}_months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}_getMonth(e){return this._months()[e]}_shortMonths(){return["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}_getShortMonth(e){return this._shortMonths()[e]}_weekdays(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]}_getWeekday(e){return this._weekdays()[e]}_shortWeekdays(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}_getShortWeekday(e){return this._shortWeekdays()[e]}parse(e,t,i){if(void 0===i&&(i=this._root.utc),e instanceof Date)return e;if(S(e))return new Date(e);if("x"==t)return new Date(parseInt(e));let r;P(e)||(e=e.toString());let n="";t=(t=st(t)).substr(0,e.length);let s=this.parseFormat(t),a={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},o={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:i},l=0,u=0;for(let e=0;e<s.parts.length;e++){switch(u=e+l+1,s.parts[e]){case"yyyy":case"YYYY":n+="([0-9]{4})",a.year=u;break;case"yyy":case"YYY":n+="([0-9]{3})",a.year3=u;break;case"yy":case"YY":n+="([0-9]{2})",a.year2=u;break;case"y":case"Y":n+="([0-9]{1})",a.year1=u;break;case"MMMM":n+="("+this.getStringList(this._months()).join("|")+")",a.monthLong=u;break;case"MMM":n+="("+this.getStringList(this._shortMonths()).join("|")+")",a.monthShort=u;break;case"MM":case"M":n+="([0-9]{2}|[0-9]{1})",a.month=u;break;case"ww":case"w":n+="([0-9]{2}|[0-9]{1})",a.week=u;break;case"dd":case"d":n+="([0-9]{2}|[0-9]{1})",a.day=u;break;case"DDD":case"DD":case"D":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.yearDay=u;break;case"dddd":n+="("+this.getStringList(this._weekdays()).join("|")+")",a.weekdayLong=u;break;case"ddd":n+="("+this.getStringList(this._shortWeekdays()).join("|")+")",a.weekdayShort=u;break;case"aaa":case"aa":case"a":n+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",a.am=u;break;case"hh":case"h":n+="([0-9]{2}|[0-9]{1})",a.hour12Base1=u;break;case"HH":case"H":n+="([0-9]{2}|[0-9]{1})",a.hourBase0=u;break;case"KK":case"K":n+="([0-9]{2}|[0-9]{1})",a.hour12Base0=u;break;case"kk":case"k":n+="([0-9]{2}|[0-9]{1})",a.hourBase1=u;break;case"mm":case"m":n+="([0-9]{2}|[0-9]{1})",a.minute=u;break;case"ss":case"s":n+="([0-9]{2}|[0-9]{1})",a.second=u;break;case"SSS":case"SS":case"S":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.millisecond=u,a.millisecondDigits=s.parts[e].length;break;case"nnn":case"nn":case"n":n+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.millisecond=u;break;case"x":n+="([0-9]{1,})",a.timestamp=u;break;case"Z":n+="GMT([-+]+[0-9]{2}:[0-9]{2})",a.zone=u;break;case"ZZ":n+="([\\-+]+[0-9]{2}[0-9]{2})",a.zone=u;break;case"i":n+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)",a.iso=u,l+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz"
vendor: 13,098 bytes, line 1
1:case"zzz":case"zz":case"z":case"t":l--}n+="[^0-9]*"}let h=new RegExp(n),c=e.match(h);if(c){if(a.year>-1&&(o.year=parseInt(c[a.year])),a.year3>-1){let e=parseInt(c[a.year3]);e+=1e3,o.year=e}if(a.year2>-1){let e=parseInt(c[a.year2]);e+=e>50?1e3:2e3,o.year=e}if(a.year1>-1){let e=parseInt(c[a.year1]);e=10*Math.floor((new Date).getFullYear()/10)+e,o.year=e}if(a.monthLong>-1&&(o.month=this.resolveMonth(c[a.monthLong])),a.monthShort>-1&&(o.month=this.resolveShortMonth(c[a.monthShort])),a.month>-1&&(o.month=parseInt(c[a.month])-1),a.week>-1&&-1===a.day&&(o.month=0,o.day=gt(parseInt(c[a.week]),o.year,1,i)),a.day>-1&&(o.day=parseInt(c[a.day])),a.yearDay>-1&&(o.month=0,o.day=parseInt(c[a.yearDay])),a.hourBase0>-1&&(o.hour=parseInt(c[a.hourBase0])),a.hourBase1>-1&&(o.hour=parseInt(c[a.hourBase1])-1),a.hour12Base0>-1){let e=parseInt(c[a.hour12Base0]);11==e&&(e=0),a.am>-1&&!this.isAm(c[a.am])&&(e+=12),o.hour=e}if(a.hour12Base1>-1){let e=parseInt(c[a.hour12Base1]);12==e&&(e=0),a.am>-1&&!this.isAm(c[a.am])&&(e+=12),o.hour=e}if(a.minute>-1&&(o.minute=parseInt(c[a.minute])),a.second>-1&&(o.second=parseInt(c[a.second])),a.millisecond>-1){let e=parseInt(c[a.millisecond]);2==a.millisecondDigits?e*=10:1==a.millisecondDigits&&(e*=100),o.millisecond=e}if(a.timestamp>-1){o.timestamp=parseInt(c[a.timestamp]);const e=new Date(o.timestamp);o.year=e.getUTCFullYear(),o.month=e.getUTCMonth(),o.day=e.getUTCDate(),o.hour=e.getUTCHours(),o.minute=e.getUTCMinutes(),o.second=e.getUTCSeconds(),o.millisecond=e.getUTCMilliseconds()}a.zone>-1&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),c[a.zone])),a.iso>-1&&(o.year=w(c[a.iso+0]),o.month=w(c[a.iso+1])-1,o.day=w(c[a.iso+2]),o.hour=w(c[a.iso+3]),o.minute=w(c[a.iso+4]),o.second=w(c[a.iso+5]),o.millisecond=w(c[a.iso+6]),"Z"==c[a.iso+7]||"z"==c[a.iso+7]?o.utc=!0:""!=c[a.iso+7]&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),c[a.iso+7]))),r=o.utc?new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)):new Date(o.year,o.month,o.day,o.hour,o.minute+o.offset,o.second,o.millisecond)}else r=new Date(e);return r}resolveTimezoneOffset(e,t){if(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),r=i[1],n=i[2],s=i[3],a=60*parseInt(n)+parseInt(s);return"+"==r&&(a*=-1),a-(e||new Date).getTimezoneOffset()}return 0}resolveMonth(e){let t=this._months().indexOf(e);return t>-1||!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._months()).indexOf(e),t>-1)?t:0}resolveShortMonth(e){let t=this._shortMonths().indexOf(e);return t>-1?t:(t=this._months().indexOf(e),t>-1||this._root.language&&!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._shortMonths()).indexOf(e),t>-1)?t:0)}isAm(e){return this.getStringList(["AM","A.M.","A"]).indexOf(e.toUpperCase())>-1}getStringList(e){let t=[];for(let i=0;i<e.length;i++)this._root.language?t.push(lt(this._t(e[i]))):t.push(lt(e[i]));return t}}class Hr extends rr{constructor(){super(...arguments),Object.defineProperty(this,"_unitAliases",{enumerable:!0,configurable:!0,writable:!0,value:{Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}})}_setDefaults(){const e="_duration_millisecond",t="_duration_second",i="_duration_minute",r="_duration_hour",n="_duration_day",s="_duration_week",a="_duration_month",o="_minute",l="_hour",u="_day",h="_week",c="_week",d="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(e),second:this._t(e+"_second"),minute:this._t(e+o),hour:this._t(e+l),day:this._t(e+u),week:this._t(e+h),month:this._t(e+c),year:this._t(e+d)},second:{second:this._t(t),minute:this._t(t+o),hour:this._t(t+l),day:this._t(t+u),week:this._t(t+h),month:this._t(t+c),year:this._t(t+d)},minute:{minute:this._t(i),hour:this._t(i+l),day:this._t(i+u),week:this._t(i+h),month:this._t(i+c),year:this._t(i+d)},hour:{hour:this._t(r),day:this._t(r+u),week:this._t(r+h),month:this._t(r+c),year:this._t(r+d)},day:{day:this._t(n),week:this._t(n+h),month:this._t(n+c),year:this._t(n+d)},week:{week:this._t(s),month:this._t(s+c),year:this._t(s+d)},month:{month:this._t(a),year:this._t(a+d)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let r=i||this.get("baseUnit");void 0!==t&&""!==t||(t=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(w(e),void 0,r)),t=st(t);let n,s=this.parseFormat(t,r),a=Number(e);n=a>this.get("negativeBase")?s.positive:a<this.get("negativeBase")?s.negative:s.zero;let o=this.applyFormat(a,n);return""!==n.color&&(o="["+n.color+"]"+o+"[/]"),o}parseFormat(e,t){let i=t||this.get("baseUnit"),r={positive:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1}},n=(e=e.replace("||",E)).split("|");return r.positive.source=n[0],void 0===n[2]?r.zero=r.positive:r.zero.source=n[2],void 0===n[1]?r.negative=r.positive:r.negative.source=n[1],fe(r,((e,t)=>{if(t.parsed)return;let i=t.source,r=[];r=t.source.match(/^\[([^\]]*)\]/),r&&r.length&&""!==r[0]&&(i=t.source.substr(r[0].length),t.color=r[1]);let n=wr.chunk(i,!0);for(let e=0;e<n.length;e++){let i=n[e];if(i.text=i.text.replace(E,"|"),"value"===i.type){i.text.match(/[yYMdDwhHKkmsSn]+a/)&&(t.absolute=!0,i.text=i.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));let e=i.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(e)for(let r=0;r<e.length;r++)null==e[r]&&(e[r]=this._unitAliases[e[r]]),t.parts.push(e[r]),i.text=i.text.replace(e[r],A)}t.template+=i.text}t.parsed=!0})),r}applyFormat(e,t){let i=!t.absolute&&e<this.get("negativeBase");e=Math.abs(e);let r=this.toTimeStamp(e,t.baseUnit),n=t.template;const s={millisecond:0,second:0,minute:0,hour:0,day:0,week:0,month:0,year:0};for(let e=0,i=t.parts.length;e<i;e++){let n,a=t.parts[e],o=this._toTimeUnit(a.substr(0,1));const l=this._getUnitValue(o);n=e<i-1?Math.floor(r/l):Math.round(r/l),s[o]+=n,r-=n*l}fe(s,((e,t)=>{"millisecond"==e&&1e3==t?(s.second++,s.millisecond=0):"second"==e&&60==t?(s.minute++,s.second=0):"minute"==e&&60==t?(s.hour++,s.minute=0):"hour"==e&&24==t?(s.day++,s.hour=0):"day"==e&&7==t?(s.week++,s.day=0):"day"==e&&30==t?(s.month++,s.day=0):"month"==e&&12==t&&(s.year++,s.month=0)}));for(let e=0,i=t.parts.length;e<i;e++){let i=t.parts[e],r=this._toTimeUnit(i.substr(0,1)),a=i.length;n=n.replace(A,Qe(s[r],a,"0"))}return i&&(n="-"+n),n}toTimeStamp(e,t){return e*this._getUnitValue(t)}_toTimeUnit(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}}getFormat(e,t,i){if(null!=this.get("durationFormat"))return this.get("durationFormat");if(i||(i=this.get("baseUnit")),null!=t&&e!=t){e=Math.abs(e),t=Math.abs(t);let r=this.getValueUnit(Math.max(e,t),i);return this.get("durationFormats")[i][r]}{let t=this.getValueUnit(e,i);return this.get("durationFormats")[i][t]}}getValueUnit(e,t){let i;t||(t=this.get("baseUnit"));let r=this.getMilliseconds(e,t);return ge(this._getUnitValues(),((e,n)=>{if(e==t||i){if(r/n<=1)return i||(i=e),!1;i=e}return!0})),i}getMilliseconds(e,t){return t||(t=this.get("baseUnit")),e*this._getUnitValue(t)}_getUnitValue(e){return this._getUnitValues()[e]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}var Ur={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(e){let t="th";if(e<11||e>13)switch(e%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd"}return t},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};class $r extends rr{_setDefaults(){this.setPrivate("defaultLocale",Ur),super._setDefaults()}translate(e,t,...i){t||(t=this._root.locale||this.getPrivate("defaultLocale"));let r=e,n=t[e];if(null===n)r="";else if(null!=n)n&&(r=n);else if(t!==this.getPrivate("defaultLocale"))return this.translate(e,this.getPrivate("defaultLocale"),...i);if(i.length)for(let e=i.length,t=0;t<e;++t)r=r.split("%"+(t+1)).join(i[t]);return r}translateAny(e,t,...i){return this.translate(e,t,...i)}setTranslationAny(e,t,i){(i||this._root.locale)[e]=t}setTranslationsAny(e,t){fe(e,((e,i)=>{this.setTranslationAny(e,i,t)}))}translateEmpty(e,t,...i){let r=this.translate(e,t,...i);return r==e?"":r}translateFunc(e,t){return this._root.locale[e]?this._root.locale[e]:t!==this.getPrivate("defaultLocale")?this.translateFunc(e,this.getPrivate("defaultLocale")):()=>""}translateAll(e,t){return this.isDefault()?e:M(e,(e=>this.translate(e,t)))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}
1class Wr{constructor(e,t){if(Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rules",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._root=e,!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(e){const t=new this(e,!0);return t.setupDefaultRules(),t}setupDefaultRules(){}_lookupRules(e){return this._rules[e]}ruleRaw(e,t=[]){let i=this._rules[e];i||(i=this._rules[e]=[]),t.sort(Ki);const{index:r,found:n}=le(i,(e=>{const i=Ki(e.tags.length,t.length);return 0===i?Ji(e.tags,t,Ki):i}));if(n)return i[r].template;{const e=lr.new({});return i.splice(r,0,{tags:t,template:e}),e}}rule(e,t=[]){return this.ruleRaw(e,t)}}function Gr(e,t,i,r){e.set(t,i.get(r)),i.on(r,(i=>{e.set(t,i)}))}class qr extends Wr{setupDefaultRules(){super.setupDefaultRules();const e=this._root.language,t=this._root.interfaceColors,i=this._root.horizontalLayout,r=this._root.verticalLayout,n=this.rule.bind(this);n("InterfaceColors").setAll({stroke:Rt.fromHex(15066597),fill:Rt.fromHex(15987699),primaryButton:Rt.fromHex(6788316),primaryButtonHover:Rt.fromHex(6779356),primaryButtonDown:Rt.fromHex(6872182),primaryButtonActive:Rt.fromHex(6872182),primaryButtonDisabled:Rt.fromHex(14342874),primaryButtonTextDisabled:Rt.fromHex(16777215),primaryButtonText:Rt.fromHex(16777215),primaryButtonStroke:Rt.fromHex(16777215),secondaryButton:Rt.fromHex(14277081),secondaryButtonHover:Rt.fromHex(10724259),secondaryButtonDown:Rt.fromHex(9276813),secondaryButtonActive:Rt.fromHex(15132390),secondaryButtonText:Rt.fromHex(0),secondaryButtonStroke:Rt.fromHex(16777215),grid:Rt.fromHex(0),background:Rt.fromHex(16777215),alternativeBackground:Rt.fromHex(0),text:Rt.fromHex(0),alternativeText:Rt.fromHex(16777215),disabled:Rt.fromHex(11382189),positive:Rt.fromHex(5288704),negative:Rt.fromHex(11730944)});{const e=n("ColorSet");e.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[Rt.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),e.setPrivate("currentStep",0),e.setPrivate("currentPass",0)}n("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:Si(wi)}),n("Component").setAll({interpolationDuration:0,interpolationEasing:Si(wi)}),n("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:m,tooltipY:m,tooltipPosition:"fixed",isMeasured:!0}),n("Sprite").states.create("default",{visible:!0,opacity:1}),n("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),n("Graphics").setAll({strokeWidth:1}),n("Chart").setAll({width:g,height:g,interactiveChildren:!1}),n("ZoomableContainer").setAll({width:g,height:g,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:Si(wi),animationDuration:600,maxPanOut:.4}),n("Sprite",["horizontal","center"]).setAll({centerX:m,x:m}),n("Sprite",["vertical","center"]).setAll({centerY:m,y:m}),n("Container",["horizontal","layout"]).setAll({layout:i}),n("Container",["vertical","layout"]).setAll({layout:r}),n("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),n("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),n("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),n("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),n("GrainPattern").setAll({width:200,height:200,colors:[Rt.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const e=n("PatternSet");e.setAll({step:1}),Gr(e,"color",t,"stroke")}n("LinearGradient").setAll({rotation:90}),n("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:_r.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),n("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:e.translate("Press ENTER to toggle"),role:"checkbox"});{const e=n("Rectangle",["legend","item","background"]);e.setAll({fillOpacity:0}),Gr(e,"fill",t,"background")}n("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:m,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),n("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:g,height:g,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const e=n("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});Gr(e,"fill",t,"disabled"),Gr(e,"stroke",t,"disabled")}n("Label",["legend","label"]).setAll({centerY:m,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});Gr(n("Label",["legend","label"]).states.create("disabled",{}),"fill",t,"disabled");n("Label",["legend","value","label"]).setAll({centerY:m,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:g,populateText:!0});Gr(n("Label",["legend","value","label"]).states.create("disabled",{}),"fill",t,"disabled");n("HeatLegend").setAll({stepCount:1}),n("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),n("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:g,width:15}),n("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:g,height:15}),n("HeatLegend",["vertical"]).setAll({height:g}),n("HeatLegend",["horizontal"]).setAll({width:g}),n("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),n("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const e=n("Label");e.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),Gr(e,"fill",t,"text")}n("RadialLabel").setAll({textType:"regular",centerY:m,centerX:m,inside:!1,radius:0,baseRadius:g,orientation:"auto",textAlign:"center"}),n("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),n("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:Rt.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:
1Rt.fromHex(0)}),n("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),n("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),n("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),n("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const e=n("Tick");e.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),Gr(e,"stroke",t,"grid")}n("Bullet").setAll({locationX:.5,locationY:.5}),n("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:m,centerY:m,animationEasing:Si(wi),exportable:!1}),n("Polygon").setAll({animationEasing:Si(wi)});n("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:Rt.fromHex(16777215)});{const e=n("Label",["tooltip"]);e.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),Gr(e,"fill",t,"alternativeText")}n("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),n("Button").states.create("hover",{}),n("Button").states.create("down",{stateAnimationDuration:0}),n("Button").states.create("active",{}),n("Button").states.create("disabled",{forceInactive:!0});{const e=n("RoundedRectangle",["button","background"]);Gr(e,"fill",t,"primaryButton"),Gr(e,"stroke",t,"primaryButtonStroke")}Gr(n("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",t,"primaryButtonHover");Gr(n("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"primaryButtonDown");Gr(n("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",t,"primaryButtonActive");Gr(n("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",t,"primaryButtonDisabled");Gr(n("Graphics",["button","icon"]).states.create("disabled",{}),"fill",t,"primaryButtonTextDisabled");Gr(n("Label",["button"]).states.create("disabled",{}),"fill",t,"primaryButtonTextDisabled");{const e=n("Graphics",["button","icon"]);e.setAll({forceInactive:!0}),Gr(e,"stroke",t,"primaryButtonText")}Gr(n("Label",["button"]),"fill",t,"primaryButtonText");n("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:g,role:"button",ariaLabel:e.translate("Zoom Out"),layer:30});{const e=n("RoundedRectangle",["background","button","zoom"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),Gr(e,"fill",t,"primaryButton")}Gr(n("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",t,"primaryButtonHover");Gr(n("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"primaryButtonDown");{const e=n("Graphics",["icon","button","zoom"]);e.setAll({crisp:!0,strokeOpacity:.7,draw:e=>{e.moveTo(0,0),e.lineTo(12,0)}}),Gr(e,"stroke",t,"primaryButtonText")}n("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:m,centerY:m,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:e.translate("Use up and down arrows to move selection")});{const e=n("RoundedRectangle",["background","resize","button"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),Gr(e,"fill",t,"secondaryButton"),Gr(e,"stroke",t,"secondaryButtonStroke")}Gr(n("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",t,"secondaryButtonHover");Gr(n("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"secondaryButtonDown");{const e=n("Graphics",["resize","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),Gr(e,"stroke",t,"secondaryButtonText")}n("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),n("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),n("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:e.translate("Play"),toggleKey:"active"});{const e=n("RoundedRectangle",["play","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),Gr(e,"fill",t,"primaryButton")}{const e=n("Graphics",["play","icon"]);e.setAll({stateAnimationDuration:0,dx:1,draw:e=>{e.moveTo(0,-5),e.lineTo(8,0),e.lineTo(0,5),e.lineTo(0,-5)}}),Gr(e,"fill",t,"primaryButtonText")}n("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),n("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:e=>{e.moveTo(-4,-5),e.lineTo(-1,-5),e.lineTo(-1,5),e.lineTo(-4,5),e.lineTo(-4,-5),e.moveTo(4,-5),e.lineTo(1,-5),e.lineTo(1,5),e.lineTo(4,5),e.lineTo(4,-5)}}),n("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:e.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const e=n("RoundedRectangle",["switch","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),Gr(e,"fill",t,"primaryButton")}{const e=n("Circle",["switch","icon"]);e.setAll({radius:8,centerY:0,centerX:0,dx:0}),Gr(e,"fill",t,"primaryButtonText")}n("Graphics",["switch","icon"]).states.create("active",{dx:16}),n("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:Si(wi)}),n("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:g}),n("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:g}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const e=n("RoundedRectangle",["scrollbar","main","background"]);e.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),Gr(e,"fill",t,"fill")}{const e=n("RoundedRectangle",["scrollbar","thumb"]);e.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),Gr(e,"fill",t,"secondaryButton")}Gr(n("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",t,"secondaryButtonHover");Gr(n("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"secondaryButtonDown");n("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:m,width:g,centerX:m,ariaLabel:e.translate("Use up and down arrows to move selection")}),n("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:m,centerY:m,height:g,ariaLabel:e.translate("Use left and right arrows to move selection")});{const e=n("PointedRectangle",["axis","tooltip","background"]);e.setAll({cornerRadius:0}
vendor: 1,305 bytes, line 1
1),Gr(e,"fill",t,"alternativeBackground")}n("Label",["axis","tooltip"]).setAll({role:void 0}),n("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),n("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),n("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),n("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),n("Star").setAll({spikes:5,innerRadius:5,radius:10}),n("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),n("Tooltip",["indicator"]).setAll({forceHidden:!0}),n("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),n("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),n("SpriteResizer").setAll({rotationStep:10,isMeasured:!1});n("Container",["resizer","grip"]).states.create("hover",{});{const e=n("RoundedRectangle",["resizer","grip"]);e.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),Gr(e,"fill",t,"background"),Gr(e,"stroke",t,"alternativeBackground")}{const e=n("RoundedRectangle",["resizer","grip","outline"]);e.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),e.states.create("hover",{fillOpacity:.3}),Gr(e,"fill",t,"alternativeBackground")}n("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,
vendor: 30,765 bytes, line 1
1cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),n("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const e=n("Rectangle",["resizer","rectangle"]);e.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),Gr(e,"stroke",t,"alternativeBackground")}n("Graphics",["button","plus","icon"]).setAll({x:m,y:m,draw:e=>{e.moveTo(-4,0),e.lineTo(4,0),e.moveTo(0,-4),e.lineTo(0,4)}}),n("Graphics",["button","minus","icon"]).setAll({x:m,y:m,draw:e=>{e.moveTo(-4,0),e.lineTo(4,0)}}),n("Graphics",["button","home","icon"]).setAll({x:m,y:m,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),n("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),n("ZoomTools").setAll({x:g,centerX:g,y:g,centerY:g,paddingRight:10,paddingBottom:10})}}class Vr{constructor(e=1,t=0,i=0,r=1,n=0,s=0){Object.defineProperty(this,"a",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"b",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"c",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"d",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ty",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.a=e,this.b=t,this.c=i,this.d=r,this.tx=n,this.ty=s}setTransform(e,t,i,r,n,s=1){this.a=Math.cos(n)*s,this.b=Math.sin(n)*s,this.c=-Math.sin(n)*s,this.d=Math.cos(n)*s,this.tx=e-(i*this.a+r*this.c),this.ty=t-(i*this.b+r*this.d)}apply(e){return{x:this.a*e.x+this.c*e.y+this.tx,y:this.b*e.x+this.d*e.y+this.ty}}applyInverse(e){const t=1/(this.a*this.d+this.c*-this.b);return{x:this.d*t*e.x+-this.c*t*e.y+(this.ty*this.c-this.tx*this.d)*t,y:this.a*t*e.y+-this.b*t*e.x+(-this.ty*this.a+this.tx*this.b)*t}}append(e){const t=this.a,i=this.b,r=this.c,n=this.d;this.a=e.a*t+e.b*r,this.b=e.a*i+e.b*n,this.c=e.c*t+e.d*r,this.d=e.c*i+e.d*n,this.tx=e.tx*t+e.ty*r+this.tx,this.ty=e.tx*i+e.ty*n+this.ty}prepend(e){const t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){const t=this.a,i=this.c;this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty}copyFrom(e){this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty}}var Yr=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var i=[],r=!0,n=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(i.push(a.value),!t||i.length!==t);r=!0);}catch(e){n=!0,s=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw s}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},Xr=2*Math.PI,Zr=function(e,t,i,r,n,s,a){var o=e.x,l=e.y;return{x:r*(o*=t)-n*(l*=i)+s,y:n*o+r*l+a}},Kr=function(e,t){var i=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),r=Math.cos(e),n=Math.sin(e),s=Math.cos(e+t),a=Math.sin(e+t);return[{x:r-n*i,y:n+r*i},{x:s+a*i,y:a-s*i},{x:s,y:a}]},Jr=function(e,t,i,r){var n=e*i+t*r;return n>1&&(n=1),n<-1&&(n=-1),(e*r-t*i<0?-1:1)*Math.acos(n)},Qr=function(e){var t=e.px,i=e.py,r=e.cx,n=e.cy,s=e.rx,a=e.ry,o=e.xAxisRotation,l=void 0===o?0:o,u=e.largeArcFlag,h=void 0===u?0:u,c=e.sweepFlag,d=void 0===c?0:c,p=[];if(0===s||0===a)return[];var f=Math.sin(l*Xr/360),g=Math.cos(l*Xr/360),m=g*(t-r)/2+f*(i-n)/2,b=-f*(t-r)/2+g*(i-n)/2;if(0===m&&0===b)return[];s=Math.abs(s),a=Math.abs(a);var v=Math.pow(m,2)/Math.pow(s,2)+Math.pow(b,2)/Math.pow(a,2);v>1&&(s*=Math.sqrt(v),a*=Math.sqrt(v));var y=function(e,t,i,r,n,s,a,o,l,u,h,c){var d=Math.pow(n,2),p=Math.pow(s,2),f=Math.pow(h,2),g=Math.pow(c,2),m=d*p-d*g-p*f;m<0&&(m=0),m/=d*g+p*f;var b=(m=Math.sqrt(m)*(a===o?-1:1))*n/s*c,v=m*-s/n*h,y=u*b-l*v+(e+i)/2,_=l*b+u*v+(t+r)/2,w=(h-b)/n,x=(c-v)/s,D=(-h-b)/n,k=(-c-v)/s,T=Jr(1,0,w,x),P=Jr(w,x,D,k);return 0===o&&P>0&&(P-=Xr),1===o&&P<0&&(P+=Xr),[y,_,T,P]}(t,i,r,n,s,a,h,d,f,g,m,b),_=Yr(y,4),w=_[0],x=_[1],D=_[2],k=_[3],T=Math.abs(k)/(Xr/4);Math.abs(1-T)<1e-7&&(T=1);var P=Math.max(Math.ceil(T),1);k/=P;for(var S=0;S<P;S++)p.push(Kr(D,k)),D+=k;return p.map((function(e){var t=Zr(e[0],s,a,g,f,w,x),i=t.x,r=t.y,n=Zr(e[1],s,a,g,f,w,x),o=n.x,l=n.y,u=Zr(e[2],s,a,g,f,w,x);return{x1:i,y1:r,x2:o,y2:l,x:u.x,y:u.y}}))};function en(e,t,i){if(t!==i)throw new Error("Required "+i+" arguments for "+e+" but got "+t)}function tn(e,t,i){if(t<i)throw new Error("Required at least "+i+" arguments for "+e+" but got "+t)}function rn(e,t,i){if(tn(e,t,i),t%i!=0)throw new Error("Arguments for "+e+" must be in pairs of "+i)}function nn(e){for(let t=0;t<e.length;t+=7){let i=t+3,r=e[i];if(r.length>1){const t=/^([01])([01])(.*)$/.exec(r);null!==t&&(e.splice(i,0,t[1]),++i,e.splice(i,0,t[2]),++i,t[3].length>0?e[i]=t[3]:e.splice(i,1))}if(++i,r=e[i],r.length>1){const t=/^([01])(.+)$/.exec(r);null!==t&&(e.splice(i,0,t[1]),++i,e[i]=t[2])}}}function sn(e){if(0===e||1===e)return e;throw new Error("Flag must be 0 or 1")}function an(e,t){for(;(!e.interactive||t(e))&&e._parent;)e=e._parent}function on(e,t,i){return Se(e,Le(t),(e=>{const t=Be(e);let r=e.touches;r?(0==r.length&&(r=e.changedTouches),i(J(r),t)):i([e],t)}))}function ln(e){const t=document.createElement("canvas");t.width=1,t.height=1;const i=t.getContext("2d",{willReadFrequently:!0});i.drawImage(e,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(t){return console.warn('Image "'+e.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function un(e){e.width=0,e.height=0,e.style.width="0px",e.style.height="0px"}function hn(e){return Math.floor(e)+.5}class cn{constructor(){Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0})}get x(){return this._x}get y(){return this._y}set x(e){this._x=e}set y(e){this._y=e}}class dn extends ye{constructor(e){super(),Object.defineProperty(this,"_layer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportable",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"interactive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inactive",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"wheelable",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"cancelTouch",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isMeasured",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"buttonMode",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"alpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"compoundAlpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"angle",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"crisp",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"pivot",{enumerable:!0,configurable:!0,writable:!0,value:new cn}),Object.defineProperty(this,"filter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cursorOverStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_replacedCursorStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new Vr}),Object.defineProperty(this,"_matrix",{enumerable:!0,configurable:!0,writable:!0,value:new Vr}),Object.defineProperty(this,"_uMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new Vr}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._renderer=e}subStatus(e){return{inactive:null==this.inactive?e.inactive:this.inactive,layer:this._layer||e.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let e=this;for(;;){if(e._layer)return e._layer;if(!e._parent)return this._renderer.defaultLayer;e=e._parent}}setLayer(e,t){if(null==e)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(e,i),this._layer.visible=i,this._layer.margin=t,t&&ze(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(e){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(e){return!e.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(e){return this._isInteractive(e)}contains(e){for(;;){if(e===this)return!0;if(!e._parent)return!1;e=e._parent}}toGlobal(e){return this._matrix.apply(e)}toLocal(e){return this._matrix.applyInverse(e)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const e=1e7;this._localBounds={left:e,top:e,right:-e,bottom:-e},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(e){this._setMatrix();const t=this.getLocalMatrix(),i=t.apply({x:e.left,y:e.top}),r=t.apply({x:e.right,y:e.top}),n=t.apply({x:e.right,y:e.bottom}),s=t.apply({x:e.left,y:e.bottom});return{left:Math.min(i.x,r.x,n.x,s.x),top:Math.min(i.y,r.y,n.y,s.y),right:Math.max(i.x,r.x,n.x,s.x),bottom:Math.max(i.y,r.y,n.y,s.y)}}on(e,t,i){return this.interactive?this._renderer._addEvent(this,e,t,i):new _e((()=>{}))}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(e,t){const i=this._matrix;let r=i.tx*t,n=i.ty*t;this.crisp&&(r=hn(r),n=hn(n)),e.setTransform(i.a*t,i.b*t,i.c*t,i.d*t,r,n)}_transformMargin(e,t,i){const r=this._matrix;e.setTransform(r.a*t,r.b*t,r.c*t,r.d*t,(r.tx+i.left)*t,(r.ty+i.top)*t)}_transformLayer(e,t,i){i.margin?this._transformMargin(e,i.scale||t,i.margin):this._transform(e,i.scale||t)}render(e,t=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(e),r=this._renderer.resolution,n=this._renderer.layers,s=this._renderer._ghostLayer,a=s.context,o=this.mask;o&&o._setMatrix(),R(n,(e=>{if(e){const t=e.context;t.save(),o&&(o._transformLayer(t,r,e),o._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(t,r,e),this.filter&&(t.filter=this.filter)}})),a.save(),o&&this._isInteractiveMask(i)&&(o._transformMargin(a,r,s.margin),o._runPath(a),a.clip()),this._transformMargin(a,r,s.margin),i.layer.order>0&&!t&&q(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,t),a.restore(),R(n,(e=>{e&&e.context.restore()}))}}_render(e,t=0){!1===this.exportable&&(e.layer.tainted=!0)}_ghostOnly(e=0){return e>0}_drawGhost(e,t=0){const i=this._isInteractive(e),r=e.layer.order||0;return!(!i||(0!=r||this._ghostOnly(t))&&r!=t)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some((e=>e.value===this))}shouldCancelTouch(){const e=this._renderer;return!(e.tapToActivate&&!e._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class pn extends dn{constructor(){super(...arguments),Object.defineProperty(this,"interactiveChildren",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_childLayers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_children",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_isInteractiveMask(e){return this.interactiveChildren||super._isInteractiveMask(e)}addChild(e){e._parent=this,this._children.push(e),e._layer&&this.registerChildLayer(e._layer)}addChildAt(e,t){e._parent=this,this._children.splice(t,0,e),e._layer&&this.registerChildLayer(e._layer)}removeChild(e){e._parent=void 0,G(this._children,e)}_render(e,t){super._render(e);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,R(this._children,(i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(e,t)})),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(e){this._childLayers||(this._childLayers=[]),Y(this._childLayers,e),this._parent&&this._parent.registerChildLayer(e)}markDirtyLayer(e=!1){super.markDirtyLayer(),e&&this._childLayers&&R(this._childLayers,(e=>e.dirty=!0))}_dispose(){super._dispose(),this._childLayers&&R(this._childLayers,(e=>{e.dirty=!0}))}}function fn(e,t){e.left=Math.min(e.left,t.x),e.top=Math.min(e.top,t.y),e.right=Math.max(e.right,t.x),e.bottom=Math.max(e.bottom,t.y)}class gn{colorize(e,t){}colorizeGhost(e,t){this.colorize(e,t)}path(e){}pathGhost(e){this.path(e)}addBounds(e){}}class mn extends gn{colorize(e,t){e.beginPath()}}class bn extends gn{constructor(e){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fillStyle=void 0!==t?t:this.color}}class vn extends gn{constructor(e){super(),Object.defineProperty(this,"clearShadow",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fill(),this.clearShadow&&(e.shadowColor="",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}}class yn extends gn{colorize(e,t){e.stroke()}}class _n extends gn{constructor(e,t,i,r){super(),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"lineJoin",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"lineCap",{enumerable:!0,configurable:!0,writable:!0,value:r})}colorize(e,t){e.strokeStyle=void 0!==t?t:this.color,e.lineWidth=this.width,this.lineJoin&&(e.lineJoin=this.lineJoin),this.lineCap&&(e.lineCap=this.lineCap)}}class wn extends gn{constructor(e){super(),Object.defineProperty(this,"dash",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.setLineDash(this.dash)}}class xn extends gn{constructor(e){super(),Object.defineProperty(this,"dashOffset",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.lineDashOffset=this.dashOffset}}class Dn extends gn{constructor(e,t,i,r){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.rect(this.x,this.y,this.width,this.height)}addBounds(e){const t=this.x,i=this.y,r=t+this.width,n=i+this.height;fn(e,{x:t,y:i}),fn(e,{x:r,y:i}),fn(e,{x:t,y:n}),fn(e,{x:r,y:n})}}class kn extends gn{constructor(e,t,i){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:i})}path(e){e.moveTo(this.x+this.radius,this.y),e.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(e){fn(e,{x:this.x-this.radius,y:this.y-this.radius}),fn(e,{x:this.x+this.radius,y:this.y+this.radius})}}class Tn extends gn{constructor(e,t,i,r){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radiusX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"radiusY",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(e){fn(e,{x:this.x-this.radiusX,y:this.y-this.radiusY}),fn(e,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class Pn extends gn{constructor(e,t,i,r,n,s){super(),Object.defineProperty(this,"cx",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cy",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"endAngle",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"anticlockwise",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){this.radius>0&&e.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(e){let t=oi(this.cx,this.cy,this.startAngle*Kt,this.endAngle*Kt,this.radius);fn(e,{x:t.left,y:t.top}),fn(e,{x:t.right,y:t.bottom})}}class Sn extends gn{constructor(e,t,i,r,n){super(),Object.defineProperty(this,"x1",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y1",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"x2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"y2",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:n})}path(e){this.radius>0&&e.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(e){}}class Cn extends gn{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.lineTo(this.x,this.y)}addBounds(e){fn(e,{x:this.x,y:this.y})}}class On extends gn{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.moveTo(this.x,this.y)}addBounds(e){fn(e,{x:this.x,y:this.y})}}class An extends gn{path(e){e.closePath()}}class En extends gn{constructor(e,t,i,r,n,s){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"cpX2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"cpY2",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(e){fn(e,{x:this.cpX,y:this.cpY}),fn(e,{x:this.cpX2,y:this.cpY2}),fn(e,{x:this.toX,y:this.toY})}}class jn extends gn{constructor(e,t,i,r){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(e){fn(e,{x:this.cpX,y:this.cpY}),fn(e,{x:this.toX,y:this.toY})}}class Ln extends gn{constructor(e,t,i,r,n){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"blur",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"offsetX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"offsetY",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"opacity",{enumerable:!0,configurable:!0,writable:!0,value:n})}colorize(e,t){this.opacity&&(e.fillStyle=this.color),e.shadowColor=this.color,e.shadowBlur=this.blur,e.shadowOffsetX=this.offsetX,e.shadowOffsetY=this.offsetY}colorizeGhost(e,t){}}class Mn extends gn{constructor(e,t,i,r,n){super(),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:n})}path(e){e.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(e){fn(e,{x:this.x,y:this.y}),fn(e,{x:this.width,y:this.height})}}class Rn extends dn{constructor(){super(...arguments),Object.defineProperty(this,"_operations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"blendMode",{enumerable:!0,configurable:!0,writable:!0,value:pr.NORMAL}),Object.defineProperty(this,"_hasShadows",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_fillAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}clear(){super.clear(),this._operations.length=0}_pushOp(e){this._operations.push(e)}beginFill(e,t=1){this._fillAlpha=t,e?e instanceof Rt?this._pushOp(new bn(e.toCSS(t))):(this.isMeasured=!0,this._pushOp(new bn(e))):this._pushOp(new bn("rgba(0, 0, 0, "+t+")"))}endFill(){this._pushOp(new vn(this._hasShadows))}endStroke(){this._pushOp(new yn)}beginPath(){this._pushOp(new mn)}lineStyle(e=0,t,i=1,r,n){this._strokeAlpha=i,t?t instanceof Rt?this._pushOp(new _n(e,t.toCSS(i),r,n)):this._pushOp(new _n(e,t,r,n)):this._pushOp(new _n(e,"rgba(0, 0, 0, "+i+")",r,n))}setLineDash(e){this._pushOp(new wn(e||[]))}setLineDashOffset(e=0){this._pushOp(new xn(e))}drawRect(e,t,i,r){this._pushOp(new Dn(e,t,i,r))}drawCircle(e,t,i){this._pushOp(new kn(e,t,i))}drawEllipse(e,t,i,r){this._pushOp(new Tn(e,t,i,r))}arc(e,t,i,r,n,s=!1){this._pushOp(new Pn(e,t,i,r,n,s))}arcTo(e,t,i,r,n){this._pushOp(new Sn(e,t,i,r,n))}lineTo(e,t){this._pushOp(new Cn(e,t))}moveTo(e,t){this._pushOp(new On(e,t))}bezierCurveTo(e,t,i,r,n,s){this._pushOp(new En(e,t,i,r,n,s))}quadraticCurveTo(e,t,i,r){this._pushOp(new jn(e,t,i,r))}closePath(){this._pushOp(new An)}shadow(e,t=0,i=0,r=0,n){this._hasShadows=!0,this._pushOp(new Ln(n?e.toCSS(n):e.toCSS(this._fillAlpha||this._strokeAlpha),t,i,r))}image(e,t,i,r,n){this._pushOp(new Mn(e,t,i,r,n))}svgPath(e){let t=0,i=0,r=null,n=null,s=null,a=null;const o=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,l=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g;let u;for(;null!==(u=o.exec(e));){const e=u[1],o=u[2],h=[];for(;null!==(u=l.exec(o));)h.push(u[1]);switch("S"!==e&&"s"!==e&&"C"!==e&&"c"!==e&&(r=null,n=null),"Q"!==e&&"q"!==e&&"T"!==e&&"t"!==e&&(s=null,a=null),e){case"M":rn(e,h.length,2),t=+h[0],i=+h[1],this.moveTo(t,i);for(let e=2;e<h.length;e+=2)t=+h[e],i=+h[e+1],this.lineTo(t,i);break;case"m":rn(e,h.length,2),t+=+h[0],i+=+h[1],this.moveTo(t,i);for(let e=2;e<h.length;e+=2)t+=+h[e],i+=+h[e+1],this.lineTo(t,i);break;case"L":rn(e,h.length,2);for(let e=0;e<h.length;e+=2)t=+h[e],i=+h[e+1],this.lineTo(t,i);break;case"l":rn(e,h.length,2);for(let e=0;e<h.length;e+=2)t+=+h[e],i+=+h[e+1],this.lineTo(t,i);break;case"H":tn(e,h.length,1);for(let e=0;e<h.length;++e)t=+h[e],this.lineTo(t,i);break;case"h":tn(e,h.length,1);for(let e=0;e<h.length;++e)t+=+h[e],this.lineTo(t,i);break;case"V":tn(e,h.length,1);for(let e=0;e<h.length;++e)i=+h[e],this.lineTo(t,i);break;case"v":tn(e,h.length,1);for(let e=0;e<h.length;++e)i+=+h[e],this.lineTo(t,i);break;case"C":rn(e,h.length,6);for(let e=0;e<h.length;e+=6){const s=+h[e],a=+h[e+1];r=+h[e+2],n=+h[e+3],t=+h[e+4],i=+h[e+5],this.bezierCurveTo(s,a,r,n,t,i)}break;case"c":rn(e,h.length,6);for(let e=0;e<h.length;e+=6){const s=+h[e]+t,a=+h[e+1]+i;r=+h[e+2]+t,n=+h[e+3]+i,t+=+h[e+4],i+=+h[e+5],this.bezierCurveTo(s,a,r,n,t,i)}break;case"S":rn(e,h.length,4),null!==r&&null!==n||(r=t,n=i);for(let e=0;e<h.length;e+=4){const s=2*t-r,a=2*i-n;r=+h[e],n=+h[e+1],t=+h[e+2],i=+h[e+3],this.bezierCurveTo(s,a,r,n,t,i)}break;case"s":rn(e,h.length,4),null!==r&&null!==n||(r=t,n=i);for(let e=0;e<h.length;e+=4){const s=2*t-r,a=2*i-n;r=+h[e]+t,n=+h[e+1]+i,t+=+h[e+2],i+=+h[e+3],this.bezierCurveTo(s,a,r,n,t,i)}break;case"Q":rn(e,h.length,4);for(let e=0;e<h.length;e+=4)s=+h[e],a=+h[e+1],t=+h[e+2],i=+h[e+3],this.quadraticCurveTo(s,a,t,i);break;case"q":rn(e,h.length,4);for(let e=0;e<h.length;e+=4)s=+h[e]+t,a=+h[e+1]+i,t+=+h[e+2],i+=+h[e+3],this.quadraticCurveTo(s,a,t,i);break;case"T":rn(e,h.length,2),null!==s&&null!==a||(s=t,a=i);for(let e=0;e<h.length;e+=2)s=2*t-s,a=2*i-a,t=+h[e],i=+h[e+1],this.quadraticCurveTo(s,a,t,i);break;case"t":rn(e,h.length,2),null!==s&&null!==a||(s=t,a=i);for(let e=0;e<h.length;e+=2)s=2*t-s,a=2*i-a,t+=+h[e],i+=+h[e+1],this.quadraticCurveTo(s,a,t,i);break;case"A":case"a":const o="a"===e;nn(h),rn(e,h.length,7);for(let e=0;e<h.length;e+=7){let r=+h[e+5],n=+h[e+6];o&&(r+=t,n+=i);R(Qr({px:t,py:i,rx:+h[e],ry:+h[e+1],xAxisRotation:+h[e+2],largeArcFlag:sn(+h[e+3]),sweepFlag:sn(+h[e+4]),cx:r,cy:n}),(e=>{this.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y),t=e.x,i=e.y}))}break;case"Z":case"z":en(e,h.length,0),this.closePath()}}}_runPath(e){e.beginPath(),R(this._operations,(t=>{t.path(e)}))}_render(e,t=0){super._render(e);const i=e.layer.dirty,r=this._isInteractive(e),n=this._ghostOnly(t),s=this._drawGhost(e,t);if(i||r||n){const t=e.layer.context,r=this._renderer._ghostLayer.context;let a;i&&!n&&(t.globalCompositeOperation=this.blendMode,t.beginPath()),s&&(r.beginPath(),a=this._getColorId()),R(this._operations,(e=>{i&&!n&&(e.path(t),e.colorize(t,void 0)),s&&(e.pathGhost(r),e.colorizeGhost(r,a))}))}}renderDetached(e){if(this.visible){this._setMatrix(),e.save();const t=this.mask;t&&(t._setMatrix(),t._transform(e,1),t._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transform(e,1),this.filter&&(e.filter=this.filter),e.globalCompositeOperation=this.blendMode,e.beginPath(),R(this._operations,(t=>{t.path(e),t.colorize(e,void 0)})),e.restore()}}_addBounds(e){this.visible&&this.isMeasured&&R(this._operations,(t=>{t.addBounds(e)}))}}class In extends dn{constructor(e,t,i){super(e),Object.defineProperty(this,"text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"textVisible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"truncated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textInfo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:1}),this.text=t,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}_shared(e){this.style.textAlign&&(e.textAlign=this.style.textAlign),this.style.direction&&(e.direction=this.style.direction),this.style.textBaseline&&(e.textBaseline=this.style.textBaseline)}_prerender(e,t=!1,i=!1){super._render(e);const r=e.layer.context,n=this._renderer._ghostLayer.context,s=this.style;let a=this._getFontStyle(void 0,i);r.font=a,this._isInteractive(e)&&!t&&(n.font=a),s.fill&&(s.fill instanceof Rt?r.fillStyle=s.fill.toCSS(null!=s.fillOpacity?s.fillOpacity:1):r.fillStyle=s.fill),s.shadowColor&&(e.layer.context.shadowColor=s.shadowColor.toCSS(s.shadowOpacity||1)),s.shadowBlur&&(e.layer.context.shadowBlur=s.shadowBlur),s.shadowOffsetX&&(e.layer.context.shadowOffsetX=s.shadowOffsetX),s.shadowOffsetY&&(e.layer.context.shadowOffsetY=s.shadowOffsetY),this._shared(r),this._isInteractive(e)&&!t&&(n.fillStyle=this._getColorId(),this._shared(n))}_getFontStyle(e,t=!1){const i=this.style;let r=[];return e&&e.fontVariant?r.push(e.fontVariant):i.fontVariant&&r.push(i.fontVariant),t||(e&&e.fontWeight?r.push(e.fontWeight):i.fontWeight&&r.push(i.fontWeight)),e&&e.fontStyle?r.push(e.fontStyle):i.fontStyle&&r.push(i.fontStyle),e&&e.fontSize?(S(e.fontSize)&&(e.fontSize=e.fontSize+"px"),r.push(e.fontSize)):i.fontSize&&(S(i.fontSize)&&(i.fontSize=i.fontSize+"px"),r.push(i.fontSize)),e&&e.fontFamily?r.push(e.fontFamily):i.fontFamily?r.push(i.fontFamily):r.length&&r.push("Arial"),r.join(" ")}_render(e,t=0){if(this._textInfo||this._measure(e),this.textVisible){const i=this._isInteractive(e),r=e.layer.context,n=e.layer.dirty,s=this._renderer._ghostLayer.context,a=this._ghostOnly(t),o=this._drawGhost(e,t);r.save(),s.save(),this._prerender(e),R(this._textInfo,((t,l)=>{R(t.textChunks,((l,u)=>{if(l.style&&(r.save(),s.save(),a||(r.font=l.style),this._isInteractive(e)&&(s.font=l.style)),l.fill&&(r.save(),a||(r.fillStyle=l.fill.toCSS())),n&&!a&&r.fillText(l.text,l.offsetX,t.offsetY+l.offsetY),"underline"==l.textDecoration||"line-through"==l.textDecoration){let e=1,i=1,n=l.height;const s=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(s)>-1){const e=this._measureText(l.text,r);l.width=e.actualBoundingBoxLeft+e.actualBoundingBoxRight}let o,u=l.offsetX;switch(this.style.textAlign){case"right":case"end":u-=l.width;break;case"center":u-=l.width/2}if(l.style){switch(wr.getTextStyle(l.style).fontWeight){case"bolder":case"bold":case"700":case"8
100":case"900":e=2}}n&&(i=n/20),o="line-through"==l.textDecoration?e+t.offsetY+l.offsetY-l.height/2:e+1.5*i+t.offsetY+l.offsetY,a||(r.save(),r.beginPath(),l.fill?r.strokeStyle=l.fill.toCSS():this.style.fill&&this.style.fill instanceof Rt&&(r.strokeStyle=this.style.fill.toCSS()),r.lineWidth=e*i,r.moveTo(u,o),r.lineTo(u+l.width,o),r.stroke(),r.restore())}i&&this.interactive&&o&&s.fillText(l.text,l.offsetX,t.offsetY+l.offsetY),l.fill&&r.restore(),l.style&&(r.restore(),s.restore())}))})),r.restore(),s.restore()}}_addBounds(e){if(this.visible&&this.isMeasured){const t=this._measure({inactive:this.inactive,layer:this.getLayer()});fn(e,{x:t.left,y:t.top}),fn(e,{x:t.right,y:t.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(e){const t=e.layer.context,i=this._renderer._ghostLayer.context,r="rtl"==this.style.direction;this._textInfo=[];const n=this.style.oversizedBehavior,s=this.style.maxWidth,a=S(s)&&"truncate"==n,o=S(s)&&("wrap"==n||"wrap-no-break"==n);t.save(),i.save(),this._prerender(e,!0,this._ignoreFontWeight());const l="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",u=this.text.toString().replace(/\r/g,"").split(/\n/);let h,c=!0,p=0,f=0,g=0;R(u,((e,r)=>{let n;for(n=""==e?[{type:"value",text:""}]:wr.chunk(e,!1,this.style.ignoreFormatting);n.length>0;){let e={offsetY:g,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const r=this._measureText(l,t),u=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent;let m;e.height=u,e.ascent=r.actualBoundingBoxAscent;let b,v,y,_=this.style.textDecoration,x=!1,D=!0,k=[];B(n,((r,u)=>{if("format"==r.type)if("[/]"==r.text)c||(t.restore(),i.restore(),c=!0),b=void 0,h=void 0,v=void 0,_=this.style.textDecoration,y=void 0,m=r.text;else{c||(t.restore(),i.restore());let n=wr.getTextStyle(r.text);const s=this._getFontStyle(n);t.save(),i.save(),t.font=s,h=s,m=r.text,n.textDecoration&&(_=n.textDecoration),n.fill&&(b=n.fill),n.width&&(v=w(n.width)),n.verticalAlign&&(y=n.verticalAlign),c=!1;const a=this._measureText(l,t),o=a.actualBoundingBoxAscent+a.actualBoundingBoxDescent;o>e.height&&(e.height=o),a.actualBoundingBoxAscent>e.ascent&&(e.ascent=a.actualBoundingBoxAscent)}else if("value"==r.type&&!x){const i=this._measureText(r.text,t);let l=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(a){this.truncated=void 0;let i=D||this.style.breakWords||!1;const n=this.style.ellipsis||"",a=this._measureText(n,t),o=a.actualBoundingBoxLeft+a.actualBoundingBoxRight;if(e.width+l>s){const a=s-e.width-o;r.text=this._truncateText(t,r.text,a,i),r.text+=n,x=!0,this.truncated=!0}}else if(o&&e.width+l>s){const i=s-e.width,a=this._truncateText(t,r.text,i,!1,D&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==a)return this.textVisible=!0,!1;k=n.slice(u+1),it(a)!=it(r.text)&&(k.unshift({type:"value",text:r.text.substr(a.length)}),m&&k.unshift({type:"format",text:m})),r.text=it(a),n=[],x=!0}let c=1,d=1;if(h&&v&&v>l){const e=l/v;switch(this.style.textAlign){case"right":case"end":c=e;break;case"center":c=e,d=e;break;default:d=e}l=v}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>e.height&&(e.height=p),i.actualBoundingBoxAscent>e.ascent&&(e.ascent=i.actualBoundingBoxAscent),e.width+=l,e.left+=i.actualBoundingBoxLeft/c,e.right+=i.actualBoundingBoxRight/d,e.textChunks.push({style:h,fill:b,text:r.text,width:l,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:_,verticalAlign:y}),D=!1}return!0})),this.style.lineHeight instanceof d?(e.height*=this.style.lineHeight.value,e.ascent*=this.style.lineHeight.value):(e.he
vendor: 61,818 bytes, line 1
1ight*=this.style.lineHeight||1.2,e.ascent*=this.style.lineHeight||1.2),p<e.left&&(p=e.left),f<e.right&&(f=e.right),this._textInfo.push(e),g+=e.height,n=k||[]}})),c||(t.restore(),i.restore()),R(this._textInfo,((e,t)=>{let i=0;R(e.textChunks,(t=>{if(t.offsetX=i+t.left-e.left,t.offsetY+=e.height-e.height*(this.style.baselineRatio||.19),i+=t.width,t.verticalAlign)switch(t.verticalAlign){case"super":t.offsetY-=e.height/2-t.height/2;break;case"sub":t.offsetY+=t.height/2}}))}));const m={left:r?-f:-p,top:0,right:r?p:f,bottom:g};if("none"!==n){const e=this._fitRatio(m);if(e<1)if("fit"==n)S(this.style.minScale)&&e<this.style.minScale?(this.textVisible=!1,m.left=0,m.top=0,m.right=0,m.bottom=0):(this._originalScale||(this._originalScale=this.scale),this.scale=e,this.textVisible=!0);else if("hide"==n)this.textVisible=!1,m.left=0,m.top=0,m.right=0,m.bottom=0;else{switch(this.style.textAlign){case"right":case"end":m.left=r?s:-s,m.right=0;break;case"center":m.left=-s/2,m.right=s/2;break;default:m.left=0,m.right=r?-s:s}this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}else this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}return t.restore(),i.restore(),m}_fitRatio(e){const t=this.style.maxWidth,i=this.style.maxHeight;if(!S(t)&&!S(i))return 1;const r=e.right-e.left,n=e.bottom-e.top;return Math.min(t/r||1,i/n||1)}_truncateText(e,t,i,r=!1,n=!0){let s;do{if(r)t=t.slice(0,-1);else{let e=t.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g,"");if(""!=e&&e!==t||!n){if(""==e)return t;t=e}else r=!0}const i=this._measureText(t,e);s=i.actualBoundingBoxLeft+i.actualBoundingBoxRight}while(s>i&&""!=t);return t}_measureText(e,t){let i=t.measureText(e),r={};if(null==i.actualBoundingBoxAscent){const t=document.createElement("div");t.innerText=e,t.style.visibility="hidden",t.style.position="absolute",t.style.top="-1000000px;",t.style.fontFamily=this.style.fontFamily||"",t.style.fontSize=this.style.fontSize+"",document.body.appendChild(t);const n=t.getBoundingClientRect();document.body.removeChild(t);const s=n.height,a=i.width;r={actualBoundingBoxAscent:s,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:a,fontBoundingBoxAscent:s,fontBoundingBoxDescent:0,width:a}}else r={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const n=i.width;switch(this.style.textAlign){case"right":case"end":r.actualBoundingBoxLeft=n,r.actualBoundingBoxRight=0;break;case"center":r.actualBoundingBoxLeft=n/2,r.actualBoundingBoxRight=n/2;break;default:r.actualBoundingBoxLeft=0,r.actualBoundingBoxRight=n}return r}}class Bn{constructor(){Object.defineProperty(this,"fill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fillOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textAlign",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontFamily",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontWeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontVariant",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textDecoration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineHeight",{enumerable:!0,configurable:!0,writable:!0,value:p(120)}),Object.defineProperty(this,"baselineRatio",{enumerable:!0,configurable:!0,writable:!0,value:.19}),Object.defineProperty(this,"direction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textBaseline",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oversizedBehavior",{enumerable:!0,configurable:!0,writable:!0,value:"none"}),Object.defineProperty(this,"breakWords",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ellipsis",{enumerable:!0,configurable:!0,writable:!0,value:"…"}),Object.defineProperty(this,"maxWidth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"maxHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ignoreFormatting",{enumerable:!0,configurable:!0,writable:!0,value:!1})}}class Nn extends In{constructor(){super(...arguments),Object.defineProperty(this,"textType",{enumerable:!0,configurable:!0,writable:!0,value:"circular"}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"inside",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"orientation",{enumerable:!0,configurable:!0,writable:!0,value:"auto"}),Object.defineProperty(this,"kerning",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_textReversed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_render(e,t=0){if("circular"===this.textType)this._renderCircular(e,t);else super._render(e,t)}_renderCircular(e,t=0){if(this.textVisible){this._prerender(e);const i=this._isInteractive(e),r=e.layer.context,n=e.layer.dirty,s=this._renderer._ghostLayer.context;r.save(),i&&s.save(),this._textInfo||this._measure(e);let a=this.radius||0,o=this.startAngle||0,l=0,u=this.orientation,h="auto"==u?"auto":"inward"==u;const c=this.inside,d=this.style.textAlign||"left",p=this.kerning||0;let f="left"==d?1:-1;const g=!this._textReversed,m=this._ghostOnly(t),b=this._drawGhost(e,t);if("auto"==h){let e=0,t=0;R(this._textInfo,((t,i)=>{const r=o+t.width/(a-t.height)/2*-f;r>e&&(e=r)})),t="left"==d?(e+l/2)*Kt:"right"==d?(e-l/2)*Kt:o*Kt,t=ai(t),h=t>=270||t<=90}1==h&&g&&(this._textInfo.reverse(),this._textReversed=!0),R(this._textInfo,((e,t)=>{const u=e.height;c||(a+=u),(-1==f&&h||1==f&&!h)&&g&&e.textChunks.reverse();let v=o;l=0,"center"==d&&(v+=e.width/(a-u)/2*-f,l=v-o),v+=Math.PI*(h?0:1),r.save(),i&&s.save(),m||r.rotate(v),i&&s.rotate(v);let y=0;R(e.textChunks,((e,t)=>{const o=e.text,l=e.width;y=l/2/(a-u)*f,m||r.rotate(y),i&&s.rotate(y),e.style&&(r.save(),s.save(),m||(r.font=e.style),i&&(s.font=e.style)),e.fill&&(r.save(),m||(r.fillStyle=e.fill.toCSS())),m||(r.textBaseline="middle",r.textAlign="center"),i&&(s.textBaseline="middle",s.textAlign="center"),n&&!m&&r.fillText(o,0,(h?1:-1)*(0-a+u/2)),i&&b&&s.fillText(o,0,(h?1:-1)*(0-a+u/2)),e.fill&&r.restore(),e.style&&(r.restore(),s.restore()),y=(l/2+p)/(a-u)*f,m||r.rotate(y),i&&s.rotate(y)})),r.restore(),i&&s.restore(),c&&(a-=u)})),r.restore(),i&&s.restore()}}_measure(e){return"circular"===this.textType?this._measureCircular(e):super._measure(e)}_measureCircular(e){const t=e.layer.context,i=this._renderer._ghostLayer.context,r="rtl"==this.style.direction,n=this.style.oversizedBehavior,s=this.style.maxWidth,a=S(s)&&"truncate"==n,o=this.style.ellipsis||"";let l;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,t.save(),i.save(),this._prerender(e,!0);const u=this.text.toString().replace(/\r/g,"").split(/\n/);let h=!0,c=0,p=0;return R(u,((e,n)=>{let u,f,g,m=wr.chunk(e,!1,this.style.ignoreFormatting),b={offsetY:p,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};R(m,((e,n)=>{if("format"==e.type){if("[/]"==e.text)h||(t.restore(),i.restore(),h=!0),f=void 0,u=void 0,g=void 0;else{let r=wr.getTextStyle(e.text);const n=this._getFontStyle(r);t.save(),i.save(),t.font=n,u=n,r.fill&&(f=r.fill),r.width&&(g=w(r.width)),h=!1}a&&(l=this._measureText(o,t))}else if("value"==e.type){let i=e.text.match(/./gu)||[];r&&(i=ht(e.text),i.reverse());for(let e=0;e<i.length;e++){const r=i[e],n=this._measureText(r,t);let h=n.width;u&&g&&g>h&&(h=g);const d=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;if(d>b.height&&(b.height=d),n.actualBoundingBoxAscent>b.ascent&&(b.ascent=n.actualBoundingBoxAscent),c+=h,a){l||(l=this._measureText(o,t));const e=l.actualBoundingBoxLeft+l.actualBoundingBoxRight;if(c+e>s){1==b.textChunks.length?this.textVisible=!1:(b.width+=e,b.left+=l.actualBoundingBoxLeft,b.right+=l.actualBoundingBoxRight,b.textChunks.push({style:u,fill:f,text:o,width:e,height:d+l.actualBoundingBoxDescent,left:l.actualBoundingBoxLeft,right:l.actualBoundingBoxRight,ascent:l.actualBoundingBoxAscent,offsetX:0,offsetY:d,textDecoration:void 0}));break}}b.width+=h,b.left+=n.actualBoundingBoxLeft,b.right+=n.actualBoundingBoxRight,b.textChunks.push({style:u,fill:f,text:r,width:h,height:d+n.actualBoundingBoxDescent,left:n.actualBoundingBoxLeft,right:n.actualBoundingBoxRight,ascent:n.actualBoundingBoxAscent,offsetX:0,offsetY:d,textDecoration:void 0})}}})),this.style.lineHeight instanceof d?b.height*=this.style.lineHeight.value:b.height*=this.style.lineHeight||1.2,this._textInfo.push(b),p+=b.height})),h||(t.restore(),i.restore()),"hide"==n&&c>s&&(this.textVisible=!1),R(this._textInfo,(e=>{R(e.textChunks,(t=>{t.offsetY+=Math.round((e.height-t.height+(e.ascent-t.ascent))/2)}))})),t.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class Fn extends dn{constructor(e,t){super(e),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imageMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.image=t}_dispose(){super._dispose(),this._imageMask&&un(this._imageMask)}getLocalBounds(){if(!this._localBounds){let e=0,t=0;this.width&&(e=this.width),this.height&&(t=this.height),this._localBounds={left:0,top:0,right:e,bottom:t},this._addBounds(this._localBounds)}return this._localBounds}_render(e,t=0){if(super._render(e),this.image){if(void 0===this.tainted&&(this.tainted=ln(this.image),e.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(t),r=this._drawGhost(e,t);if(e.layer.dirty&&!i){this.shadowColor&&(e.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(e.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(e.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(e.layer.context.shadowOffsetY=this.shadowOffsetY);const t=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;e.layer.context.drawImage(this.image,0,0,t,i)}if(this.interactive&&this._isInteractive(e)&&r){const e=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(e,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(e){if(void 0===this._imageMask){const t=this.width||e.naturalWidth,i=this.height||e.naturalHeight,r=document.createElement("canvas");r.width=t,r.height=i;const n=r.getContext("2d");n.imageSmoothingEnabled=!1,n.fillStyle=this._getColorId(),n.fillRect(0,0,t,i),ln(e)||(n.globalCompositeOperation="destination-in",n.drawImage(e,0,0,t,i)),this._imageMask=r}return this._imageMask}}class zn{constructor(e,t,i,r){Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"originalPoint",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"point",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"bbox",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"simulated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"native",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Oe("touchevents")&&e instanceof Touch?this.id=e.identifier:this.id=null}}class Hn extends we{constructor(e){if(super(),Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"_layerDom",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"layers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_dirtyLayers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"defaultLayer",{enumerable:!0,configurable:!0,writable:!0,value:this.getLayer(0)}),Object.defineProperty(this,"_ghostLayer",{enumerable:!0,configurable:!0,writable:!0,value:new Un}),Object.defineProperty(this,"_deferredGhostLayers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_patternCanvas",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("canvas")}),Object.defineProperty(this,"_patternContext",{enumerable:!0,configurable:!0,writable:!0,value:this._patternCanvas.getContext("2d")}),Object.defineProperty(this,"_realWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_realHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interactionsEnabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_colorMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_forceInteractive",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_omitTainted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_hovering",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_dragging",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mousedown",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_lastPointerMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tapToActivate",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"tapToActivateTimeout",{enumerable:!0,configurable:!0,writable:!0,value:3e3}),Object.defineProperty(this,"_touchActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_touchActiveTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.resolution=null==e?window.devicePixelRatio:e,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new _e((()=>{fe(this._events,((e,t)=>{t.disposer.dispose()})),R(this.layers,(e=>{un(e.view),e.exportableView&&un(e.exportableView)})),un(this._ghostLayer.view),un(this._patternCanvas)}))),this._disposers.push(Ce((()=>{null==e&&(this.resolution=window.devicePixelRatio)}))),Oe("touchevents")){const e=e=>{0!==this._dragging.length&&B(this._dragging,(t=>!t.value.shouldCancelTouch()||(e.preventDefault(),!1))),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(Se(window,"touchstart",e,{passive:!1})),this._disposers.push(Se(this.view,"touchstart",e,{passive:!1})),this._disposers.push(Se(this.view,"touchmove",(()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()}),{passive:!0})),this._disposers.push(Se(window,"click",(e=>{this._touchActive=!1}),{passive:!0})),this._disposers.push(Se(this.view,"click",(e=>{window.setTimeout((()=>{this._touchActive=!0,this._delayTouchDeactivate()}),100)}),{passive:!0}))}Oe("wheelevents")&&this._disposers.push(Se(this.view,"wheel",(e=>{let t=!1;this._hovering.forEach((e=>{if(e.wheelable)return t=!0,!1})),t&&e.preventDefault()}),{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout((()=>{this._touchActive=!1}),this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(e){e?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(e,t,i,r){return this.defaultLayer.context.createLinearGradient(e,t,i,r)}createRadialGradient(e,t,i,r,n,s){return this.defaultLayer.context.createRadialGradient(e,t,i,r,n,s)}createPattern(e,t,i,r,n){return this._patternCanvas.width=r,this._patternCanvas.height=n,this._patternContext.clearRect(0,0,r,n),t.renderDetached(this._patternContext),e.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new pn(this)}makeGraphics(){return new Rn(this)}makeText(e,t){return new In(this,e,t)}makeTextStyle(){return new Bn}makeRadialText(e,t){return new Nn(this,e,t)}makePicture(e){return new Fn(this,e)}resizeLayer(e){e.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(e,t,i,r){this._realWidth=e,this._realHeight=t,this._calculatedWidth=i,this._calculatedHeight=r,R(this.layers,(e=>{e&&(e.dirty=!0,this.resizeLayer(e))})),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=r+"px"}createDetachedLayer(e=!1){const t=document.createElement("canvas"),i=t.getContext("2d",{willReadFrequently:e}),r=new $n(t,i);return t.style.position="absolute",t.style.top="0px",t.style.left="0px",r}getLayerByOrder(e){const t=this.layers,i=t.length;for(let r=0;r<i;r++){const i=t[r];if(i.order==e)return i}}getLayer(e,t=!0){let i=this.getLayerByOrder(e);if(i)return i;const r=this.createDetachedLayer(99==e);r.order=e,r.visible=t,r.view.className="am5-layer-"+e,r.visible&&this.resizeLayer(r);const n=this.layers;n.push(r),n.sort(((e,t)=>e.order>t.order?1:e.order<t.order?-1:0));const s=n.length;let a;for(let e=j(n,r)+1;e<s;e++)if(n[e].visible){a=n[e];break}return r.visible&&(void 0===a?this._layerDom.appendChild(r.view):this._layerDom.insertBefore(r.view,a.view)),r}render(e){this._dirtyLayers.length=0,this._deferredGhostLayers=[],R(this.layers,(e=>{e&&e.dirty&&e.visible&&(this._dirtyLayers.push(e),e.clear())})),this._ghostLayer.clear(),e.render({inactive:null,layer:this.defaultLayer});const t=this._deferredGhostLayers;if(t.length&&(t.sort(((e,t)=>e-t)),R(t,(t=>{e.render({inactive:null,layer:this.defaultLayer},t)}))),this._ghostLayer.context.restore(),R(this.layers,(e=>{if(e){const t=e.context;t.beginPath(),t.moveTo(0,0),t.stroke()}})),R(this._dirtyLayers,(e=>{e.context.restore(),e.dirty=!1})),this._hovering.size&&this._lastPointerMoveEvent){const{events:e,target:t,native:i}=this._lastPointerMoveEvent;R(e,(e=>{this._dispatchGlobalMousemove(e,t,i)}))}}paintId(e){const t=function(e){const t=[0,0,0];for(let i=0;i<24;i++)t[i%3]<<=1,t[i%3]|=1&e,e>>=1;return(0|t[0])+(t[1]<<8)+(t[2]<<16)}(++this._colorId),i=Rt.fromHex(t).toCSS();return this._colorMap[i]=e,i}_removeObject(e){void 0!==e._colorId&&delete this._colorMap[e._colorId]}_adjustBoundingBox(e){const t=this._ghostLayer.margin;return new DOMRect(-t.left,-t.top,e.width+t.left+t.right,e.height+t.top+t.bottom)}getEvent(e,t=!0){const i=this.view.getBoundingClientRect(),r=e.clientX||0,n=e.clientY||0,s=this._calculatedWidth/this._realWidth,a=this._calculatedHeight/this._realHeight,o={x:r-i.left,y:n-i.top},l={x:(r-(t?i.left:0))*s,y:(n-(t?i.top:0))*a};return new zn(e,o,l,this._adjustBoundingBox(i))}_getHitTarget(e,t,i){if(0===t.width||0===t.height||e.x<t.left||e.x>t.right||e.y<t.top||e.y>t.bottom)return;if(!i||!this._layerDom.contains(i))return;const r=this._ghostLayer.getImageData(e,t);if(0===r.data[0]&&0===r.data[1]&&0===r.data[2])return!1;const n=Rt.fromRGB(r.data[0],r.data[1],r.data[2]).toCSS();return this._colorMap[n]}getObjectAtPoint(e){const t=this._ghostLayer.getImageArray(e);if(0===t[0]&&0===t[1]&&0===t[2])return;const i=Rt.fromRGB(t[0],t[1],t[2]).toCSS();return this._colorMap[i]}_withEvents(e,t){const i=this._events[e];if(void 0!==i){i.dispatching=!0;try{t(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,he(i.callbacks,(e=>!e.disposed)),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[e]))}}}_dispatchEventAll(e,t){this.interactionsEnabled&&this._withEvents(e,(e=>{R(e.callbacks,(e=>{e.disposed||e.callback.call(e.context,t)}))}))}_dispatchEvent(e,t,i){if(!this.interactionsEnabled)return!1;let r=!1;return this._withEvents(e,(e=>{R(e.callbacks,(e=>{e.disposed||e.object!==t||(e.callback.call(e.context,i),r=!0)}))})),r}_dispatchMousedown(e,t){const i=e.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;const r=this.getEvent(e),n=this._getHitTarget(r.originalPoint,r.bbox,t);if(n){const e=r.id;let t=!1;an(n,(i=>{const n={id:e,value:i};if(this._mousedown.push(n),!t&&this._dispatchEvent("pointerdown",i,r)){t=!0;this._dragging.some((t=>t.value===i&&t.id===e))||this._dragging.push(n)}return!0}))}}_dispatchGlobalMousemove(e,t,i){const r=this.getEvent(e),n=this._getHitTarget(r.originalPoint,r.bbox,t);r.native=i,n?(this._hovering.forEach((e=>{e.contains(n)||(this._hovering.delete(e),e.cursorOverStyle&&Re(document.body,"cursor",e._replacedCursorStyle),this._dispatchEvent("pointerout",e,r))})),r.native&&an(n,(e=>(this._hovering.has(e)||(this._hovering.add(e),e.cursorOverStyle&&(e._replacedCursorStyle=Ie(document.body,"cursor"),Re(document.body,"cursor",e.cursorOverStyle)),this._dispatchEvent("pointerover",e,r)),!0)))):(this._hovering.forEach((e=>{e.cursorOverStyle&&Re(document.body,"cursor",e._replacedCursorStyle),this._dispatchEvent("pointerout",e,r)})),this._hovering.clear()),this._dispatchEventAll("globalpointermove",r)}removeHovering(e){this._hovering.delete(e),e.cursorOverStyle&&Re(document.body,"cursor",e._replacedCursorStyle)}_dispatchGlobalMouseup(e,t){const i=this.getEvent(e);i.native=t,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(e){if(0!==this._dragging.length){const t=this.getEvent(e),i=t.id;this._dragging.forEach((e=>{e.id===i&&this._dispatchEvent("pointermove",e.value,t)}))}}_dispatchDragEnd(e,t){const i=e.button;let r;if(0==i||void 0===i)r="click";else if(2==i)r="rightclick";else{if(1!=i)return;r="middleclick"}const n=this.getEvent(e),s=n.id;if(0!==this._mousedown.length){const e=this._getHitTarget(n.originalPoint,n.bbox,t);e&&this._mousedown.forEach((t=>{t.id===s&&t.value.contains(e)&&this._dispatchEvent(r,t.value,n)})),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach((e=>{e.id===s&&this._dispatchEvent("pointerup",e.value,n)})),this._dragging.length=0)}_dispatchDoubleClick(e,t){const i=this.getEvent(e),r=this._getHitTarget(i.originalPoint,i.bbox,t);r&&an(r,(e=>!this._dispatchEvent("dblclick",e,i)))}_dispatchWheel(e,t){const i=this.getEvent(e),r=this._getHitTarget(i.originalPoint,i.bbox,t);r&&an(r,(e=>!this._dispatchEvent("wheel",e,i)))}_makeSharedEvent(e,t){if(void 0===this._listeners[e]){const i=t();this._listeners[e]=new ke((()=>{delete this._listeners[e],i.dispose()}))}return this._listeners[e].increment()}_onPointerEvent(e,t){let i=!1,r=null;function n(){r=null,i=!1}return new xe([new _e((()=>{null!==r&&clearTimeout(r),n()})),Se(this.view,Le(e),(e=>{i=!0,null!==r&&clearTimeout(r),r=window.setTimeout(n,0)})),on(window,e,((e,n)=>{null!==r&&(clearTimeout(r),r=null),t(e,n,i),i=!1}))])}_initEvent(e){switch(e){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",(()=>{const e=(e,t,i)=>{this._lastPointerMoveEvent={events:e,target:t,native:i},R(e,(e=>{this._dispatchGlobalMousemove(e,t,i)}))};return new xe([this._onPointerEvent("pointerdown",e),this._onPointerEvent("pointermove",e)])}));case"globalpointerup":return this._makeSharedEvent("pointerup",(()=>{const e=this._onPointerEvent("pointerup",((e,t,i)=>{R(e,(e=>{this._dispatchGlobalMouseup(e,i)})),this._lastPointerMoveEvent={events:e,target:t,native:i}})),t=this._onPointerEvent("pointercancel",((e,t,i)=>{R(e,(e=>{this._dispatchGlobalMouseup(e,i)})),this._lastPointerMoveEvent={events:e,target:t,native:i}}));return new _e((()=>{e.dispose(),t.dispose()}))}));case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",(()=>{const e=this._onPointerEvent("pointerdown",((e,t)=>{R(e,(e=>{this._dispatchMousedown(e,t)}))})),t=this._onPointerEvent("pointermove",(e=>{R(e,(e=>{this._dispatchDragMove(e)}))})),i=this._onPointerEvent("pointerup",((e,t)=>{R(e,(e=>{this._dispatchDragEnd(e,t)}))})),r=this._onPointerEvent("pointercancel",((e,t)=>{R(e,(e=>{this._dispatchDragEnd(e,t)}))}));return new _e((()=>{e.dispose(),t.dispose(),i.dispose(),r.dispose()}))}));case"dblclick":return this._makeSharedEvent("dblclick",(()=>this._onPointerEvent("dblclick",((e,t)=>{R(e,(e=>{this._dispatchDoubleClick(e,t)}))}))));case"wheel":return this._makeSharedEvent("wheel",(()=>Se(this.view,Le("wheel"),(e=>{this._dispatchWheel(e,Be(e))}),{passive:!1})))}}_addEvent(e,t,i,r){let n=this._events[t];void 0===n&&(n=this._events[t]={disposer:this._initEvent(t),callbacks:[],dispatching:!1,cleanup:!1});const s={object:e,context:r,callback:i,disposed:!1};return n.callbacks.push(s),new _e((()=>{s.disposed=!0,n.dispatching?n.cleanup=!0:(G(n.callbacks,s),0===n.callbacks.length&&(n.disposer.dispose(),delete this._events[t]))}))}getCanvas(e,t){this.render(e),t||(t={});let i=this.resolution,r=Math.floor(this._calculatedWidth*this.resolution),n=Math.floor(this._calculatedHeight*this.resolution);if(t.minWidth&&t.minWidth>r){let e=t.minWidth/r;e>i&&(i=e*this.resolution)}if(t.minHeight&&t.minHeight>n){let e=t.minHeight/n;e>i&&(i=e*this.resolution)}if(t.maxWidth&&t.maxWidth<r){let e=t.maxWidth/r;e<i&&(i=e*this.resolution)}if(t.maxHeight&&t.maxHeight>n){let e=t.maxHeight/n;e<i&&(i=e*this.resolution)}t.maintainPixelRatio&&(i/=this.resolution);const s=[];let a=!1;const o=document.createElement("canvas");i!=this.resolution&&(a=!0,r=r*i/this.resolution,n=n*i/this.resolution),o.width=r,o.height=n,o.style.position="fixed",o.style.top="-10000px",this.view.appendChild(o),s.push(o);const l=o.getContext("2d");let u=0,h=0,c=!1;return R(this.layers,(e=>{if(e&&e.visible&&(e.tainted||a)){c=!0,e.exportableView=e.view,e.exportableContext=e.context,e.view=document.createElement("canvas"),e.view.style.position="fixed",e.view.style.top="-10000px",this.view.appendChild(e.view),s.push(e.view);let t=0,a=0;e.margin&&(t+=e.margin.left||0+e.margin.right||0,a+=e.margin.top||0+e.margin.bottom||0),e.view.width=r+t,e.view.height=n+a,e.context=e.view.getContext("2d"),e.dirty=!0,e.scale=i}})),c&&(this._omitTainted=!0,this.render(e),this._omitTainted=!1),R(this.layers,(e=>{if(e&&e.visible){let t=0,i=0;e.margin&&(t=-(e.margin.left||0)*this.resolution,i=-(e.margin.top||0)*this.resolution),l.drawImage(e.view,t,i),e.exportableView&&(e.view=e.exportableView,e.exportableView=void 0),e.exportableContext&&(e.context=e.exportableContext,e.exportableContext=void 0),u<e.view.clientWidth&&(u=e.view.clientWidth),h<e.view.clientHeight&&(h=e.view.clientHeight),e.scale=void 0}})),o.style.width=u+"px",o.style.height=h+"px",R(s,(e=>{e.style.position="",e.style.top="",this.view.removeChild(e)})),o}}class Un{constructor(){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"imageArray",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(e,t,i,r,n){this._resolution=n,e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,r+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(e*n),this._height=Math.floor(t*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=r+"px"}getImageData(e,t){return this.context.getImageData(Math.round((e.x-t.left)/t.width*this._width),Math.round((e.y-t.top)/t.height*this._height),1,1)}getImageArray(e){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const t=this.imageArray,i=Math.round(e.x*this._resolution),r=4*(Math.round(e.y*this._resolution)*this._width+i);return[t[r],t[r+1],t[r+2],t[r+3]]}setMargin(e){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,R(e,(e=>{e.margin&&(this.margin.left=Math.max(this.margin.left,e.margin.left),this.margin.right=Math.max(this.margin.right,e.margin.right),this.margin.top=Math.max(this.margin.top,e.margin.top),this.margin.bottom=Math.max(this.margin.bottom,e.margin.bottom))}))}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class $n{constructor(e,t){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"order",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dirty",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportableView",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exportableContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.view=e,this.context=t}resize(e,t,i,r,n){null!=this.width&&(e=this.width,i=this.width),null!=this.height&&(t=this.height,r=this.height),this.margin?(e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,r+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(e*n),this._height=Math.floor(t*n),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=r+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}function Wn(e,t){null==e?requestAnimationFrame(t):setTimeout((()=>{requestAnimationFrame(t)}),1e3/e)}class Gn{constructor(e,t={},i){if(Object.defineProperty(this,"dom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_inner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyAnimation",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyBounds",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPositions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_ticker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_tickers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_updateTick",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Ut}),Object.defineProperty(this,"animationTime",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_animations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rootContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tooltipContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipContainerSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltip",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"language",{enumerable:!0,configurable:!0,writable:!0,value:$r.new(this,{})}),Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:Ur}),Object.defineProperty(this,"utc",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timezone",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fps",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"numberFormatter",{enumerable:!0,configurable:!0,writable:!0,value:Ir.new(this,{})}),Object.defineProperty(this,"dateFormatter",{enumerable:!0,configurable:!0,writable:!0,value:zr.new(this,{})}),Object.defineProperty(this,"durationFormatter",{enumerable:!0,configurable:!0,writable:!0,value:Hr.new(this,{})}),Object.defineProperty(this,"tabindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tabindexes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_a11yD",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusedSprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isShift",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_keyboardDragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_readerAlertElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_logo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDiv",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nonce",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interfaceColors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"verticalLayout",{enumerable:!0,configurable:!0,writable:!0,value:yr.new(this,{})}),Object.defineProperty(this,"horizontalLayout",{enumerable:!0,configurable:!0,writable:!0,value:vr.new(this,{})}),Object.defineProperty(this,"gridLayout",{enumerable:!0,configurable:!0,writable:!0,value:_r.new(this,{})}),Object.defineProperty(this,"_paused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"autoResize",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_fontHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"_isDisposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_resizeSensorDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltips",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_htmlElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlEnabledContainers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let r,n;if(this._settings=t,0==t.accessible&&(this._a11yD=!0),null==t.useSafeResolution&&(t.useSafeResolution=!0),t.useSafeResolution&&(r=Ze()),this._renderer=new Hn(r),n=e instanceof HTMLElement?e:document.getElementById(e),R(Vi.rootElements,(e=>{if(e.dom===n)throw new Error("You cannot have multiple Roots on the same DOM node")})),this.interfaceColors=jr.new(this,{}),null===n)throw new Error("Could not find HTML element with id `"+e+"`");this.dom=n;let s=document.createElement("div");s.style.position="relative",s.style.width="100%",s.style.height="100%",n.appendChild(s);const a=t.tooltipContainerBounds;a&&(this._tooltipContainerSettings=a),this._inner=s,this._updateComputedStyles(),Vi.rootElements.push(this)}static new(e,t){const i=new Gn(e,t,!0);return i._init(),i}moveDOM(e){let t;if(t=e instanceof HTMLElement?e:document.getElementById(e),t){for(;this.dom.childNodes.length>0;)t.appendChild(this.dom.childNodes[0]);this.dom=t,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const e=this.dom.offsetWidth,t=this.dom.offsetHeight;e<=150||t<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const e=this.tooltipContainer.children.push(Pr.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:p(100),centerY:g,tooltipText:"Created using amCharts 5",tooltipX:g,cursorOverStyle:"pointer",background:gr.new(this,{fill:Mt(4671320),fillOpacity:0,tooltipY:5})})),t=Rr.new(this,{pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});t.label.setAll({fontSize:12}),t.get("background").setAll({fill:this.interfaceColors.get("background"),stroke:this.interfaceColors.get("grid"),strokeOpacity:.3}),e.set("tooltip",t),e.events.on("click",(()=>{window.open("https://www.amcharts.com/","_blank")})),e.states.create("hover",{});e.children.push(fr.new(this,{stroke:Mt(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6"})).states.create("hover",{stroke:Mt(3976191)});e.children.push(fr.new(this,{stroke:Mt(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0"})).states.create("hover",{stroke:Mt(4671320)}),this._logo=e,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(e){return this._settings.calculateSize?this._settings.calculateSize(e):{width:e.width,height:e.height}}_init(){const e=this._settings;!1!==e.accessible&&(e.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),e.ariaLabel&&this._inner.setAttribute("aria-label",e.ariaLabel),e.role&&this._inner.setAttribute("role",e.role));const t=this._renderer,i=this._getRealSize(),r=this._getCalculatedSize(i),n=Math.floor(r.width),s=Math.floor(r.height),a=Math.floor(i.width),o=Math.floor(i.height),l=Pr.new(this,{visible:!0,width:n,height:s});this._rootContainer=l,this._rootContainer._defaultThemes.push(qr.new(this));const u=l.children.push(Pr.new(this,{visible:!0,width:g,height:g}));this.container=u,t.resize(a,o,n,s),this._inner.appendChild(t.view),this._initResizeSensor();const h=document.createElement("div");if(this._htmlElementContainer=h,h.className="am5-html-container",h.style.position="absolute",h.style.pointerEvents="none",this._tooltipContainerSettings||(h.style.overflow="hidden"),this._inner.appendChild(h),!0!==this._a11yD){const e=document.createElement("div");e.className="am5-reader-container",e.setAttribute("role","alert"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.overflow="hidden",e.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=e,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=n+"px",i.style.height=s+"px",i.setAttribute("role","graphics-document"),ze(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const r=document.createElement("div");this._tooltipElementContainer=r,r.className="am5-tooltip-container",this._inner.appendChild(r),Oe("keyboardevents")&&(this._disposers.push(Se(window,"keydown",(e=>{const t=He(e);"Shift"==t?this._isShift=!0:"Tab"==t&&(this._isShift=e.shiftKey)}))),this._disposers.push(Se(window,"keyup",(e=>{"Shift"==He(e)&&(this._isShift=!1)}))),this._disposers.push(Se(i,"click",(()=>{const e=this._focusedSprite;if(e){const i=e.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const r=t.getEvent(new MouseEvent("click"));e.events.dispatch("click",{type:"click",originalEvent:r.event,point:r.point,simulated:!0,target:e})}}))),this._disposers.push(Se(i,"keydown",(e=>{const i=this._focusedSprite;if(i){"Escape"==e.key&&(Ee(),this._focusedSprite=void 0);let r=0,n=0;const s=He(e);switch(s){case"Enter":case" ":const a=i.get("clickAnnounceText","");if(""!==a&&this.readerAlert(a)," "==s&&"checkbox"!=i.get("role"))return;e.preventDefault();const o=t.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:o.event,point:o.point,simulated:!0,target:i});case"ArrowLeft":r=-6;break;case"ArrowRight":r=6;break;case"ArrowUp":n=-6;break;case"ArrowDown":n=6;break;default:return}if(0!=r||0!=n){if(e.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const e=t.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));e.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:e.event,point:e.point,simulated:!0,target:i})}const s=this._keyboardDragPoint;s.x+=r,s.y+=n;const a=t.getEvent(new MouseEvent("mousemove",{clientX:s.x,clientY:s.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:a.event,point:a.point,simulated:!0,target:i})}}}))),this._disposers.push(Se(i,"keyup",(e=>{if(this._focusedSprite){const i=this._focusedSprite,r=He(e);switch(r){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const e=this._keyboardDragPoint,r=t.getEvent(new MouseEvent("mouseup",{clientX:e.x,clientY:e.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:r.event,point:r.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const e=i.get("focusableGroup"),t=this._tabindexes.filter((t=>!(t.get("focusableGroup")!=e||!1===t.getPrivate("focusable")||!t.isVisibleDeep())));let n=t.indexOf(i);const s=t.length-1;n+="ArrowRight"==r||"ArrowDown"==r?1:-1,n<0?n=s:n>s&&(n=0),je(t[n].getPrivate("focusElement").dom)}break;case"Tab":const e=i.get("focusableGroup");if(e&&this._isShift)return void this._focusNext(i.getPrivate("focusElement").dom,-1,e)}}}))))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new Er(this.dom,(()=>{this.autoResize&&this.resize()})),this._disposers.push(this._resizeSensorDisposer)}resize(){const e=this._getRealSize(),t=this._getCalculatedSize(e),i=Math.floor(t.width),r=Math.floor(t.height);if(i>0&&r>0){const t=Math.floor(e.width),n=Math.floor(e.height),s=this._htmlElementContainer;if(s.style.width=i+"px",s.style.height=r+"px",!0!==this._a11yD){const e=this._focusElementContainer;e.style.width=i+"px",e.style.height=r+"px"}this._renderer.resize(t,n,i,r);const a=this._rootContainer;a.setPrivate("width",i),a.setPrivate("height",r),this._render(),this._handleLogo()}}_render(){this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1)}_runTickers(e){R(this._tickers,(t=>{t(e)}))}_runAnimations(e){let t=0;return he(this._animations,(i=>{const r=i._runAnimation(e);return r!==Ht.Stopped&&(r!==Ht.Playing||(++t,!0))})),this._isDirtyAnimation=!1,0===t}_runDirties(){let e={};for(;this._isDirtyParents;)this._isDirtyParents=!1,ce(this._dirtyParents).forEach((t=>{const i=this._dirtyParents[t];delete this._dirtyParents[t],i.isDisposed()||(e[i.uid]=i,i._prepareChildren())}));ce(e).forEach((t=>{e[t]._updateChildren()}));const t=[];ce(this._dirty).forEach((e=>{const i=this._dirty[e];i.isDisposed()?delete this._dirty[i.uid]:(t.push(i),i._beforeChanged())})),t.forEach((e=>{e._changed(),delete this._dirty[e.uid],e._clearDirty()})),this._isDirty=!1;const i={},r=[];ce(this._dirtyBounds).forEach((e=>{const t=this._dirtyBounds[e];delete this._dirtyBounds[e],t.isDisposed()||(i[t.uid]=t.depth(),r.push(t))})),this._positionHTMLElements(),r.sort(((e,t)=>Ki(i[t.uid],i[e.uid]))),r.forEach((e=>{e._updateBounds()}));const n=this._dirtyPositions;ce(n).forEach((e=>{const t=n[e];delete n[e],t.isDisposed()||t._updatePosition()})),t.forEach((e=>{e._afterChanged()}))}_renderFrame(e){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:e}),this._checkComputedStyles(),this._runTickers(e);const t=this._runAnimations(e);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:e}),0===this._tickers.length&&t&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(e,t){if(!this.isDisposed()){this.animationTime=e;this._renderFrame(e)?(this._ticker=null,this.animationTime=null):this._paused||(t?this._ticker:Wn(this.fps,this._ticker))}}_runTickerNow(e=1e4){if(!this.isDisposed()){const t=performance.now()+e;for(;;){const e=performance.now();if(e>=t){this.animationTime=null;break}this.animationTime=e;if(this._renderFrame(e)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=e=>{this._runTicker(e)},Wn(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(e){this._updateTick=e,e&&this._startTicker()}_addDirtyEntity(e){this._isDirty=!0,void 0===this._dirty[e.uid]&&(this._dirty[e.uid]=e),this._startTicker()}_addDirtyParent(e){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[e.uid]&&(this._dirtyParents[e.uid]=e),this._startTicker()}_addDirtyBounds(e){this._isDirty=!0,void 0===this._dirtyBounds[e.uid]&&(this._dirtyBounds[e.uid]=e),this._startTicker()}_addDirtyPosition(e){this._isDirty=!0,void 0===this._dirtyPositions[e.uid]&&(this._dirtyPositions[e.uid]=e),this._startTicker()}_addAnimation(e){this._isDirtyAnimation=!0,-1===this._animations.indexOf(e)&&this._animations.push(e),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",(()=>{this._isDirty=!0,this._startTicker()}))}eachFrame(e){return this._tickers.push(e),this._startTicker(),new _e((()=>{G(this._tickers,e)}))}markDirtyGlobal(e){e||(e=this.container),e.walkChildren((e=>{e instanceof Pr&&this.markDirtyGlobal(e),e.markDirty(),e.markDirtyBounds()}))}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),R(this._disposers,(e=>{e.dispose()})),this._inner&&Pe(this._inner),W(Vi.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(e){if(!0!==this._a11yD){const t=this._readerAlertElement;e=at(e),t.innerHTML==e&&(t.innerHTML=""),t.innerHTML=e}}setThemes(e){this._rootContainer.set("themes",e);const t=this.tooltipContainer;t&&t._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const e=this._tooltipContainerSettings,t=this._rootContainer.children.push(Pr.new(this,{position:"absolute",isMeasured:!1,width:g,height:g,layer:e?35:30,layerMargin:e||void 0}));this.tooltipContainer=t;const i=Rr.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(e){1!=this._a11yD&&(e.get("focusable")?Y(this._tabindexes,e):W(this._tabindexes,e),this._invalidateTabindexes())}_unregisterTabindexOrder(e){1!=this._a11yD&&(W(this._tabindexes,e),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort(((e,t)=>{const i=e.get("tabindexOrder",0),r=t.get("tabindexOrder",0);return i==r?0:i>r?1:-1}));const e=[];R(this._tabindexes,((t,i)=>{t.getPrivate("focusElement")?this._moveFocusElement(i,t):this._makeFocusElement(i,t);const r=t.get("focusableGroup");r&&!1!==t.getPrivate("focusable")&&(-1!==e.indexOf(r)?t.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):e.push(r))}))}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(e,t){if(1==this._a11yD)return;if(t||(t=e.getPrivate("focusElement").dom),!t)return;const i=e.get("role");i?t.setAttribute("role",i):t.removeAttribute("role");const r=e.get("ariaLabel");if(r){const i=xr(e,r);t.setAttribute("aria-label",i)}else t.removeAttribute("aria-label");const n=e.get("ariaLive");n?t.setAttribute("aria-live",n):t.removeAttribute("aria-live");const s=e.get("ariaChecked");null!=s&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?t.setAttribute("aria-checked",s?"true":"false"):t.removeAttribute("aria-checked");const a=e.get("ariaCurrent");null!=a?t.setAttribute("aria-current",a):t.removeAttribute("aria-current");const o=e.get("ariaSelected");null!=o&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?t.setAttribute("aria-selected",o?"true":"false"):t.removeAttribute("aria-selected"),e.get("ariaHidden")?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden");const l=e.get("ariaOrientation");l?t.setAttribute("aria-orientation",l):t.removeAttribute("aria-orientation");const u=e.get("ariaValueNow");u?t.setAttribute("aria-valuenow",u):t.removeAttribute("aria-valuenow");const h=e.get("ariaValueMin");h?t.setAttribute("aria-valuemin",h):t.removeAttribute("aria-valuemin");const c=e.get("ariaValueMax");c?t.setAttribute("aria-valuemax",c):t.removeAttribute("aria-valuemax");const d=e.get("ariaValueText");d?t.setAttribute("aria-valuetext",d):t.removeAttribute("aria-valuetext");const p=e.get("ariaControls");p?t.setAttribute("aria-controls",p):t.removeAttribute("aria-controls"),e.get("visible")&&0!==e.get("opacity")&&"tooltip"!=e.get("role")&&!e.isHidden()&&!1!==e.getPrivate("focusable")&&(e.height()||e.width())?("-1"!=t.getAttribute("tabindex")&&t.setAttribute("tabindex",""+this.tabindex),t.removeAttribute("aria-hidden")):(t.removeAttribute("tabindex"),t.setAttribute("aria-hidden","true"))}_makeFocusElement(e,t){if(t.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=t.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",ze(i,!1);const r=[];t.setPrivate("focusElement",{dom:i,disposers:r}),this._decorateFocusElement(t),r.push(Se(i,"focus",(e=>{this._handleFocus(e)}))),r.push(Se(i,"blur",(e=>{this._handleBlur(e)}))),this._moveFocusElement(e,t)}_removeFocusElement(e){if(1==this._a11yD)return;W(this._tabindexes,e);const t=e.getPrivate("focusElement");if(t){this._focusElementContainer.removeChild(t.dom),R(t.disposers,(e=>{e.dispose()}))}}_hideFocusElement(e){if(1==this._a11yD)return;e.getPrivate("focusElement").dom.style.display="none"}_moveFocusElement(e,t){if(1==this._a11yD)return;const i=this._focusElementContainer,r=t.getPrivate("focusElement").dom;if(r===this._focusElementContainer.children[e])return;const n=this._focusElementContainer.children[e+1];n?i.insertBefore(r,n):i.append(r)}_positionFocusElement(e){if(1==this._a11yD||null==e)return;const t=e.globalBounds();let i=t.right==t.left?e.width():t.right-t.left,r=t.top==t.bottom?e.height():t.bottom-t.top;const n=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let s=t.left-n,a=t.top-n;i<0&&(s+=i,i=Math.abs(i)),r<0&&(a+=r,r=Math.abs(r));const o=e.getPrivate("focusElement").dom;o.style.top=a+"px",o.style.left=s+"px",o.style.width=i+2*n+"px",o.style.height=r+2*n+"px"}_getSpriteByFocusElement(e){let t;return B(this._tabindexes,((i,r)=>i.getPrivate("focusElement").dom!==e||(t=i,!1))),t}_handleFocus(e){if(1==this._a11yD)return;const t=this._getSpriteByFocusElement(e.target);t&&(t.isVisibleDeep()?(this._positionFocusElement(t),this._focusedSprite=t,t.events.isEnabled("focus")&&t.events.dispatch("focus",{type:"focus",originalEvent:e,target:t})):this._focusNext(e.target,this._isShift?-1:1))}_focusNext(e,t,i){if(1==this._a11yD)return;const r=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let n=r.indexOf(e)+t;n<0?n=r.length-1:n>=r.length&&(n=0);const s=r[n];if(i&&-1==t){const e=this._getSpriteByFocusElement(s);if(e&&e.get("focusableGroup")==i)return void this._focusNext(s,t)}s.focus()}_handleBlur(e){if(1==this._a11yD)return;const t=this._focusedSprite;t&&!t.isDisposed()&&t.events.isEnabled("blur")&&t.events.dispatch("blur",{type:"blur",originalEvent:e,target:t}),this._focusedSprite=void 0}updateTooltip(e){if(1==this._a11yD)return;const t=at(e._getText());let i=e.getPrivate("tooltipElement");"tooltip"==e.get("role")&&""!=t?(i||(i=this._makeTooltipElement(e)),i.innerHTML!=t&&(i.innerHTML=t),i.setAttribute("aria-hidden",e.isVisibleDeep()?"false":"true")):i&&(i.remove(),e.removePrivate("tooltipElement"))}_makeTooltipElement(e){const t=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",ze(i,!1),this._decorateFocusElement(e,i),t.append(i),e.setPrivate("tooltipElement",i),i}_removeTooltipElement(e){if(1==this._a11yD)return;const t=e.getPrivate("tooltipElement");if(t){const e=t.parentElement;e&&e.removeChild(t)}}_invalidateAccessibility(e){if(1==this._a11yD)return;this._focusElementDirty=!0;const t=e.getPrivate("focusElement");e.get("focusable")?t&&(this._decorateFocusElement(e),this._positionFocusElement(e)):t&&this._removeFocusElement(e)}focused(e){return this._focusedSprite===e}documentPointToRoot(e){const t=this._getRealSize(),i=this._getCalculatedSize(t),r=i.width/t.width,n=i.height/t.height;return{x:(e.x-t.left)*r,y:(e.y-t.top)*n}}rootPointToDocument(e){const t=this._getRealSize(),i=this._getCalculatedSize(t),r=i.width/t.width,n=i.height/t.height;return{x:e.x/r+t.left,y:e.y/n+t.top}}addDisposer(e){return this._disposers.push(e),e}_updateComputedStyles(){const e=window.getComputedStyle(this.dom);let t="";fe(e,((e,i)=>{P(e)&&e.match(/^font/)&&(t+=i)}));const i=t!=this._fontHash;return i&&(this._fontHash=t),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(e){e instanceof Pr?e.children.each((e=>{this._invalidateLabelBounds(e)})):e instanceof Sr&&e.markDirtyBounds()}_hasLicense(){for(let e=0;e<Vi.licenses.length;e++)if(Vi.licenses[e].match(/^AM5C.{5,}/i))return!0;return!1}_licenseApplied(){this._logo&&this._logo.set("forceHidden",!0)}get debugGhostView(){return this._renderer.debugGhostView}set debugGhostView(e){this._renderer.debugGhostView=e}set tapToActivate(e){this._renderer.tapToActivate=e}get tapToActivate(){return this._renderer.tapToActivate}set tapToActivateTimeout(e){this._renderer.tapToActivateTimeout=e}get tapToActivateTimeout(){return this._renderer.tapToActivateTimeout}_makeHTMLElement(e){const t=this._htmlElementContainer,i=document.createElement("div");e.setPrivate("htmlElement",i);let r,n,s=!1;return e._walkParents((e=>{if(e.get("verticalScrollbar"))return s=!0,r=e,!1})),s&&(n=document.createElement("div"),e.setPrivate("htmlElementWrapper",n),e.setPrivate("wrapperContainer",r),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",r.events.on("boundschanged",(()=>{this._positionHTMLElement(e)}))),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",ze(i,e.get("interactive",!1)),e.events.isEnabled("click")&&(ze(i,!0),this._disposers.push(Se(i,"click",(t=>{const i=this._renderer.getEvent(t);e.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:e})})))),this._positionHTMLElement(e),s?(n.append(i),t.append(n)):t.append(i),Y(this._htmlEnabledContainers,e),i}_positionHTMLElements(){R(this._htmlEnabledContainers,(e=>{this._positionHTMLElement(e)}))}_positionHTMLElement(e){const t=e.getPrivate("htmlElementWrapper");if(t){const i=e.getPrivate("wrapperContainer");if(i){const e=i.globalBounds();t.style.clipPath="rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"}}const i=e.getPrivate("htmlElement");if(i){R(["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"],(t=>{const r=e.get(t);i.style[t]=r?r+"px":""}));R(["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"],(t=>{const r=e.get(t);r?"fontSize"!=t||P(r)?i.style[t]=r+"":i.style[t]=r+"px":i.style[t]=""}));const t=e.compositeScale()||1,r=e.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const n=e.compositeOpacity();setTimeout((()=>{i.style.opacity=n+""}),10);const s=e.isVisibleDeep();s&&(i.style.display="block");let a={x:e.x()+e.get("dx",0),y:e.y()+e.get("dy",0)};e.parent&&(a=e.parent.toGlobal(a)),i.style.top=a.y+"px",i.style.left=a.x+"px";const o=e.get("width"),l=e.get("height");let u=0,h=0;if(o&&(u=e.width()),l&&(h=e.height()),!o||!l){i.style.position="fixed",i.style.width="",i.style.height="";const r=i.getBoundingClientRect();i.style.position="absolute",o||(u=r.width),l||(h=r.height);
1let n=u/t,s=h/t,a=e.get("centerX",0),c=e.get("centerY",0),p=0,f=0,g=0,m=0;a instanceof d?(p=-a.value*n,f=(1-a.value)*n):(p=-a,f=n-a),c instanceof d?(g=-c.value*s,m=(1-c.value)*s):(g=-c,m=s-c),e._localBounds={left:p,right:f,top:g,bottom:m};let b=e._adjustedLocalBounds,v=e._display.getAdjustedBounds(e._localBounds);e._adjustedLocalBounds=v,b.left===v.left&&b.right===v.right&&b.top===v.top&&b.bottom===v.bottom||e.markDirtyBounds()}u>0&&(i.style.minWidth=u+"px"),h>0&&(i.style.minHeight=h+"px"),s&&0!=n||(i.style.display="none");const c=e.get("centerX",0),p=b(c)?c.percent+"%":c+"px",f=e.get("centerY",0),g=b(f)?f.percent+"%":f+"px";(c||f)&&(i.style.transform="translate(-"+p+", -"+g+")"+i.style.transform),1!=t&&(i.style.transform+="scale("+t+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=p+" "+g)}}_setHTMLContent(e,t){let i=e.getPrivate("htmlElement");i||(i=this._makeHTMLElement(e)),i.innerHTML!=t&&(i.innerHTML=t)}_removeHTMLContent(e){const t=e.getPrivate("htmlElementWrapper"),i=e.getPrivate("htmlElement");t?(this._htmlElementContainer.removeChild(t),e.removePrivate("htmlElement"),e.removePrivate("htmlElementWrapper"),e.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),e.removePrivate("htmlElement"),e.removePrivate("wrapperContainer")),W(this._htmlEnabledContainers,e)}}let qn;class Vn extends rr{_afterNew(){super._afterNewApplyThemes(),this._setRawDefault("deactivateRoot",!0),function(e,t){const i=t.interfaceColors,r=i.get("secondaryButton").toCSS(),n=i.get("text").toCSS(),s=i.get("alternativeBackground").toCSS(.45);if(!qn){const a=new xe([new Ge(e,".am5-modal",{width:"100%",height:"100%",position:"absolute","z-index":"100000",top:"0",left:"0"},t.nonce),new Ge(e,".am5-modal-curtain",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute",background:i.get("background").toCSS(.5),"z-index":"100"},t.nonce),new Ge(e,".am5-modal-wrapper",{top:"0",left:"0",width:"100%",height:"100%",position:"absolute","text-align":"center","white-space":"nowrap",background:i.get("background").toCSS(.5),"z-index":"101"},t.nonce),new Ge(e,".am5-modal-wrapper:before",{content:"''",display:"inline-block",height:"100%","vertical-align":"middle","margin-right":"-0.25em"},t.nonce),new Ge(e,".am5-modal-content",{display:"inline-block",padding:"1.2em","vertical-align":"middle","text-align":"start","white-space":"normal",background:i.get("background").toCSS(),"border-radius":"4px","-webkit-box-shadow":"0px 0px 36px 0px "+s,"box-shadow":"0px 0px 36px 0px "+s,color:n},t.nonce),new Ge(e,".am5-modal-content h1",{"font-size":"1em",margin:"0 0 0.5em 0"},t.nonce),new Ge(e,".am5-modal-table",{display:"table",margin:"1em 0"},t.nonce),new Ge(e,".am5-modal-table-row",{display:"table-row"},t.nonce),new Ge(e,".am5-modal-table-heading",{display:"table-heading",padding:"3px 10px 3px 0"},t.nonce),new Ge(e,".am5-modal-table-cell",{display:"table-cell",padding:"3px 0 3px 0"},t.nonce),new Ge(e,".am5-modal-table-cell > *",{"vertical-align":"middle"},t.nonce),new Ge(e,".am5-modal-content input[type=text], .am5-modal-content input[type=number], .am5-modal-content select",{border:"1px solid "+r,"border-radius":"4px",padding:"3px 5px",margin:"2px"},t.nonce),new Ge(e,".am5-modal-input-narrow",{width:"50px"},t.nonce),new Ge(e,".am5-modal-button",{"font-weight":"400",color:i.get("secondaryButtonText").toCSS(),"line-height":"1.5","text-align":"center","text-decoration":"none","vertical-align":"middle",cursor:"pointer",padding:"0.2em 0.8em","font-size":"1em","border-radius":"0.25em",margin:"0 0.25em 0 0",border:"1px solid "+i.get("secondaryButtonStroke").toCSS(),background:i.get("secondaryButton").toCSS()},t.nonce),new Ge(e,".am5-modal-button:hover",{background:i.get("secondaryButtonHover").toCSS()},t.nonce),new Ge(e,".am5-modal-button.am5-modal-primary",{color:i.get("primaryButtonText").toCSS(),border:"1px solid "+i.get("primaryButtonStroke").toCSS(),background:i.get("primaryButton").toCSS()},t.nonce),new Ge(e,".am5-modal-button.am5-modal-primary:hover",{background:i.get("primaryButtonHover").toCSS()},t.nonce)]);qn=new ke((()=>{qn=void 0,a.dispose()}))}qn.increment()}(Ue(this._root.dom),this._root);const e=document.createElement("div");e.className="am5-modal",e.style.display="none",this.root._inner.appendChild(e),this.setPrivate("container",e);const t=document.createElement("div");t.className="am5-modal-curtain",e.appendChild(t),this.setPrivate("curtain",t),this._disposers.push(Se(t,"click",(()=>{this.cancel()})));const i=document.createElement("div");i.className="am5-modal-wrapper",e.appendChild(i),this.setPrivate("wrapper",i);const r=document.createElement("div");r.className="am5-modal-content",i.appendChild(r),this.setPrivate("content",r);const n=this.get("content");n&&(r.innerHTML=n),Oe("keyboardevents")&&this._disposers.push(Se(document,"keydown",(e=>{this.isOpen()&&"Escape"==He(e)&&this.cancel()})))}_beforeChanged(){super._beforeChanged(),this.isDirty("content")&&(this.getPrivate("content").innerHTML=this.get("content",""))}isOpen(){return"none"!=this.getPrivate("container").style.display}open(){this.getPrivate("container").style.display="block",this.get("deactivateRoot")&&this.setTimeout((()=>{this._root._renderer.interactionsEnabled=!1}),10),this.events.dispatch("opened",{type:"opened",target:this})}close(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("closed",{type:"closed",target:this})}cancel(){this.getPrivate("container").style.display="none",this.get("deactivateRoot")&&(this._root._renderer.interactionsEnabled=!0),this.events.dispatch("cancelled",{type:"cancelled",target:this})}_dispose(){super._dispose();const e=this.getPrivate("container");e.parentElement&&e.parentElement.removeChild(e)}}Object.defineProperty(Vn,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Modal"}),Object.defineProperty(Vn,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.c
1oncat([Vn.className])});class Yn extends rr{constructor(){super(...arguments),Object.defineProperty(this,"_index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const e=this.get("sprite");e&&(e.setAll({position:"absolute",role:"figure"}),this._disposers.push(e))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}Object.defineProperty(Yn,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Bullet"}),Object.defineProperty(Yn,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.concat([Yn.className])});class Xn extends gr{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),i=e,r=t,n=i/Math.abs(e),s=r/Math.abs(t);if(S(i)&&S(r)){let e=Math.min(i,r)/2,t=Ke(this.get("cornerRadiusTL",8),e),a=Ke(this.get("cornerRadiusTR",8),e),o=Ke(this.get("cornerRadiusBR",8),e),l=Ke(this.get("cornerRadiusBL",8),e),u=Math.min(Math.abs(i/2),Math.abs(r/2));t=ii(t,0,u),a=ii(a,0,u),o=ii(o,0,u),l=ii(l,0,u);const h=this._display;h.moveTo(t*n,0),h.lineTo(i-a*n,0),a>0&&h.arcTo(i,0,i,a*s,a),h.lineTo(i,r-o*s),o>0&&h.arcTo(i,r,i-o*n,r,o),h.lineTo(l*n,r),l>0&&h.arcTo(0,r,0,r-l*s,l),h.lineTo(0,t*s),t>0&&h.arcTo(0,0,t*n,0,t),h.closePath()}}}Object.defineProperty(Xn,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RoundedRectangle"}),Object.defineProperty(Xn,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:gr.classNames.concat([Xn.className])});class Zn extends Pr{_afterNew(){this._settings.themeTags=Et(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",Xn.new(this._root,{themeTags:Et(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){const e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}}Object.defineProperty(Zn,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Button"}),Object.defineProperty(Zn,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.concat([Zn.className])});class Kn extends fr{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,Math.abs(this.get("radius",10)))}}Object.defineProperty(Kn,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Circle"}),Object.defineProperty(Kn,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([Kn.className])});class Jn extends fr{constructor(){super(...arguments),Object.defineProperty(this,"morphAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){if(super._beforeChanged(),this.isDirty("coordinates")){const e=[],t=this.get("coordinates");t&&R(t,(t=>{e.push({x:t[0],y:t[1]})})),this.set("points",e)}if(this.isPrivateDirty("points")&&(this._clear=!0),this.isDirty("points")){this._clear=!0;const e=this.get("points"),t=this._prevSettings.points;if(t){if(e){let i=J(e),r=J(t),n=i.length,s=r.length;if(n>s){let e=J(i);for(let t=0;t<n;t++){let i=Math.floor(t/n*s);e[t]={x:r[i].x,y:r[i].y}}r=e}else if(s>n){let e=J(r);for(let t=0;t<s;t++){let r=Math.floor(t/s*n);e[t]={x:i[r].x,y:i[r].y}}i=e}this.setPrivateRaw("previousPoints",r),this.setPrivateRaw("points",i),this.morphAnimation=this.animatePrivate({key:"morphProgress",from:0,to:1,duration:this.get("animationDuration",0),easing:this.get("animationEasing")}),this._root.events.once("frameended",(()=>{this._markDirtyPrivateKey("morphProgress")}))}}else this.setPrivateRaw("previousPoints",e),this.setPrivateRaw("points",e);let i=1/0,r=-1/0,n=1/0,s=-1/0;
1if(e)for(let t=1,a=e.length;t<a;t++){const a=e[t];i=Math.min(i,a.x),r=Math.max(r,a.x),n=Math.min(n,a.y),s=Math.max(s,a.y)}this.setPrivate("minX",i),this.setPrivate("maxX",r),this.setPrivate("minY",n),this.setPrivate("maxY",n)}this.isPrivateDirty("morphProgress")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._draw()}_draw(){const e=this.getPrivate("previousPoints"),t=this.getPrivate("points"),i=this.getPrivate("morphProgress",1);if(t&&e){const r=t[0],n=e[0];r&&this._display.moveTo(n.x+(r.x-n.x)*i,n.y+(r.y-n.y)*i);for(let r=1,n=t.length;r<n;r++){const n=t[r],s=e[r];this._display.lineTo(s.x+(n.x-s.x)*i,s.y+(n.y-s.y)*i)}this._display.closePath()}}_updateSize(){this.markDirty(),this._clear=!0}}Object.defineProperty(Jn,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Polygon"}),Object.defineProperty(Jn,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([Jn.className])});class Qn extends fr{_beforeChanged(){super._beforeChanged(),(this.isDirty("radiusX")||this.isDirty("radiusY")||this.isDirty("rotation"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawEllipse(0,0,Math.abs(this.get("radiusX")),Math.abs(this.get("radiusY")))}}Object.defineProperty(Qn,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Ellipse"}),Object.defineProperty(Qn,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([Qn.className])});class es extends fr{_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("spikes"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this._display,t=this.get("radius",0),i=Ke(this.get("innerRadius",0),t),r=this.get("spikes",0),n=Math.PI/r;let s=Math.PI/2*3;e.moveTo(0,-t);for(let a=0;a<r;a++)e.lineTo(Math.cos(s)*t,Math.sin(s)*t),s+=n,e.lineTo(Math.cos(s)*i,Math.sin(s)*i),s+=n;e.lineTo(0,-t),e.closePath()}}}Object.defineProperty(es,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Star"}),Object.defineProperty(es,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([es.className])});class ts extends Wt{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(e){this.processor&&this.processor.processRow(e),super._onPush(e)}_onInsertIndex(e,t){this.processor&&this.processor.processRow(t),super._onInsertIndex(e,t)}_onSetIndex(e,t,i){this.processor&&this.processor.processRow(i),super._onSetIndex(e,t,i)}}class is{constructor(e){Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}incrementRef(){}decrementRef(){}}class rs extends ir{constructor(e,t,i){super(i),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=t,this.component=e,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}hide(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}isHidden(){return!this.get("visible")}}class ns extends Pr{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new ts}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
1),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(e){e.incrementRef(),this._data.decrementRef(),this._data=e}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll((e=>{const t=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===e.type)R(t,(e=>{e.dispose()})),t.length=0,this._onDataClear();else if("push"===e.type){const i=new rs(this,e.newValue,this._makeDataItem(e.newValue));t.push(i),this.processDataItem(i)}else if("setIndex"===e.type){const i=t[e.index],r=this._makeDataItem(e.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),ce(r).forEach((e=>{i.animate({key:e,to:r[e],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})})),i.dataContext=e.newValue}else if("insertIndex"===e.type){const i=new rs(this,e.newValue,this._makeDataItem(e.newValue));t.splice(e.index,0,i),this.processDataItem(i)}else if("removeIndex"===e.type){t[e.index].dispose(),t.splice(e.index,1)}else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");{const i=t[e.oldIndex];t.splice(e.oldIndex,1),t.splice(e.newIndex,0,i)}}this._afterDataChange()})))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},R(this.valueFields,(e=>{this.get(e+"Field")&&(this._valueFields.push(e),this._valueFieldsF[e]={fieldKey:e+"Field",workingKey:e+"Working"})}))),this.fields&&(this._fields=[],this._fieldsF={},R(this.fields,(e=>{this.get(e+"Field")&&(this._fields.push(e),this._fieldsF[e]=e+"Field")})))}get dataItems(){return this._dataItems}processDataItem(e){}_makeDataItem(e){const t={};return this._valueFields&&R(this._valueFields,(i=>{const r=this.get(this._valueFieldsF[i].fieldKey);t[i]=e[r],t[this._valueFieldsF[i].workingKey]=t[i]})),this._fields&&R(this._fields,(i=>{const r=this.get(this._fieldsF[i]);t[i]=e[r]})),t}makeDataItem(e,t){let i=new rs(this,t,e);return this.processDataItem(i),i}pushDataItem(e,t){const i=this.makeDataItem(e,t);return this._mainDataItems.push(i),i}disposeDataItem(e){}showDataItem(e,t){return c(this,void 0,void 0,(function*(){e.set("visible",!0)}))}hideDataItem(e,t){return c(this,void 0,void 0,(function*(){e.set("visible",!1)}))}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const e="datavalidated";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this._dataChanged=!1}this.inited=!0}markDirtyValues(e){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}}Object.defineProperty(ns,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"}),Object.defineProperty(ns,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.concat([ns.className])});class ss extends Pr{constructor(){super(...arguments),Object.defineProperty(this,"_za",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_txa",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tya",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_movePoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_downScale",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_downX",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_downY",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_pinchDP",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contents",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Pr.new(this._root,{width:g,height:g,x:0,y:0,draggable:!0,background:gr.new(this._root,{fill:Mt(16777215),fillOpacity:0})}))}),Object.defineProperty(this,"_wheelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew();const e=this.contents.events;this._disposers.push(e.on("pointerdown",(e=>{this._handleThisDown(e)}))),this._disposers.push(e.on("globalpointerup",(e=>{this._handleThisUp(e)}))),this._disposers.push(e.on("globalpointermove",(e=>{this._handleThisMove(e)})));const t=this.contents.get("background");t&&(t.adapters.add("width",(e=>20*Number(e))),t.adapters.add("height",(e=>20*Number(e))),t.adapters.add("x",(e=>Number(e)-t.width()/2)),t.adapters.add("y",(e=>Number(e)-t.height()/2)));const i=this.contents;i.adapters.add("x",(e=>{const t=i.get("scale",1);if(S(e)&&t>=1){let r=this.get("maxPanOut",.4),n=i.width();e=Math.min(n*r,e),e=Math.max(this.width()-n*t*(1+r),e)}return e})),i.adapters.add("y",(e=>{const t=i.get("scale",1);if(S(e)&&t>=1){let r=this.get("maxPanOut",.4),n=i.height();e=Math.min(n*r,e),e=Math.max(this.height()-n*t*(1+r),e)}return e}))}_prepareChildren(){super._prepareChildren(),this.isDirty("wheelable")&&this._handleSetWheel(),this.contents._display.cancelTouch=this.get("pinchZoom",!1)}_handleSetWheel(){this.get("wheelable")?(this._wheelDp&&this._wheelDp.dispose(),this._wheelDp=this.events.on("wheel",(e=>{const t=e.originalEvent;if(!Fe(t,this))return;t.preventDefault();const i=this.toLocal(e.point);this._handleWheelZoom(t.deltaY,i)})),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_handleWheelZoom(e,t){let i=this.get("zoomStep",2),r=this.contents.get("scale",1),n=r;e>0?n=r/i:e<0&&(n=r*i),n!=r&&this.zoomToPoint(t,n)}zoomToPoint(e,t){t&&(t=ii(t,this.get("minZoomLevel",1),this.get("maxZoomLevel",32)));const i=this.contents.get("scale",1);let r=e.x,n=e.y,s=r,a=n;const o=this.contents;let l=s-(r-o.x())/i*t,u=a-(n-o.y())/i*t;return this._animateTo(l,u,t),this._za}zoomIn(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)*this.get("zoomStep",2))}zoomOut(){return this.zoomToPoint({x:this.width()/2,y:this.height()/2},this.contents.get("scale",1)/this.get("zoomStep",2))}
1goHome(){return this._animateTo(0,0,1)}_animateTo(e,t,i){const r=this.get("animationDuration",0),n=this.get("animationEasing"),s=this.contents;this._txa=s.animate({key:"x",to:e,duration:r,easing:n}),this._tya=s.animate({key:"y",to:t,duration:r,easing:n}),this._za=s.animate({key:"scale",to:i,duration:r,easing:n})}_handleThisUp(e){this._downPoints={}}_handleThisDown(e){const t=this.contents;this._downScale=t.get("scale",1);const i=t._downPoints;let r=ce(i).length;if(1==r){let t=i[1];t||(t=i[0]),t&&t.x==e.point.x&&t.y==e.point.y&&(r=0)}if(r>0){this._downX=t.x(),this._downY=t.y();const e=t._getDownPointId();if(e){let i=this._movePoints[e];i&&(t._downPoints[e]=i)}}}_handleThisMove(e){const t=e.originalEvent.pointerId;this.get("pinchZoom")&&t&&(this._movePoints[t]=e.point,ce(this.contents._downPoints).length>1)&&this._handlePinch()}_handlePinch(){let e=0,t=[],i=[];if(fe(this.contents._downPoints,((r,n)=>{t[e]=n;let s=this._movePoints[r];s&&(i[e]=s),e++})),t.length>1&&i.length>1){this.contents._isDragging=!1;let e=t[0],r=t[1],n=i[0],s=i[1];if(e&&r&&n&&s){e=this.toLocal(e),r=this.toLocal(r),n=this.toLocal(n),s=this.toLocal(s);let t=Math.hypot(r.x-e.x,r.y-e.y),i=Math.hypot(s.x-n.x,s.y-n.y)/t*this._downScale,a={x:n.x+(s.x-n.x)/2,y:n.y+(s.y-n.y)/2},o={x:e.x+(r.x-e.x)/2,y:e.y+(r.y-e.y)/2},l=this._downX||0,u=this._downY||0,h=this._downScale,c=a.x-(-l+o.x)/h*i,d=a.y-(-u+o.y)/h*i;this.contents.setAll({x:c,y:d,scale:i})}}}}Object.defineProperty(ss,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ZoomableContainer"}),Object.defineProperty(ss,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.concat([ss.className])});class as extends rr{_afterNew(){super._afterNewApplyThemes()}getFill(e){return{addColorStop:(e,t)=>{}}}_changed(){super._changed()}getBounds(e){const t=this.get("target");if(t){let i=t.globalBounds();const r=e.toLocal({x:i.left,y:i.top}),n=e.toLocal({x:i.right,y:i.top}),s=e.toLocal({x:i.right,y:i.bottom}),a=e.toLocal({x:i.left,y:i.bottom});return{left:Math.min(r.x,n.x,s.x,a.x),top:Math.min(r.y,n.y,s.y,a.y),right:Math.max(r.x,n.x,s.x,a.x),bottom:Math.max(r.y,n.y,s.y,a.y)}}return e._display.getLocalBounds()}}Object.defineProperty(as,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Gradient"}),Object.defineProperty(as,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.concat([as.className])});class os extends as{getFill(e){const t=this.get("rotation",0);let i=this.getBounds(e),r=i.left||0,n=i.right||0,s=i.top||0,a=i.bottom||0,o=si(t),l=ri(t),u=o*(n-r),h=l*(a-s);0==u&&(u=1),0==h&&(h=1);let c=Math.max(u,h);const d=this._root._renderer.createLinearGradient(r,s,r+c*o,s+c*l),p=this.get("stops");if(p){let e=0;R(p,(t=>{let i=t.offset;S(i)||(i=e/(p.length-1));let r=t.opacity;S(r)||(r=1);let n=t.color;if(n){const e=t.lighten;e&&(n=Rt.lighten(n,e));const s=t.brighten;s&&(n=Rt.brighten(n,s)),d.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+r+")")}e++}))}return d}}Object.defineProperty(os,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LinearGradient"}),Object.defineProperty(os,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:as.classNames.concat([os.
1className])});class ls extends Pr{constructor(){super(...arguments),Object.defineProperty(this,"labelContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Pr.new(this._root,{}))}),Object.defineProperty(this,"markerContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Pr.new(this._root,{}))}),Object.defineProperty(this,"startLabel",{enumerable:!0,configurable:!0,writable:!0,value:this.labelContainer.children.push(Lr.new(this._root,{themeTags:["start"]}))}),Object.defineProperty(this,"endLabel",{enumerable:!0,configurable:!0,writable:!0,value:this.labelContainer.children.push(Lr.new(this._root,{themeTags:["end"]}))}),Object.defineProperty(this,"markers",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new qt(lr.new({}),(()=>Xn._new(this._root,{themeTags:Et(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template]))))})}_afterNew(){this._settings.themeTags=Et(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",Rr.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){const e=this.markers.make();return e.states.create("disabled",{}),e}showValue(e,t,i){const r=this.getTooltip();if(r&&S(e)){const n=this.get("startValue",0);let s=(e-n)/(this.get("endValue",1)-n);(s==1/0||s==-1/0||isNaN(s))&&(s=.5);const a=this.get("startColor"),o=this.get("endColor");let l;t||(t=this.getNumberFormatter().format(e)),i||(i=Rt.interpolate(s,a,o)),r.label.set("text",t),l="vertical"==this.get("orientation")?this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-s)}):this.markerContainer.toGlobal({x:this.innerWidth()*s,y:0});let u=r.get("background");u&&u.set("fill",i),r.set("pointTo",l),r.show()}}_prepareChildren(){super._prepareChildren();const e=this.labelContainer,t=this.get("orientation"),i=this.startLabel,r=this.endLabel,n=this.getTooltip();if(this.isDirty("orientation")&&("vertical"==t?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:g}),this.set("layout",this._root.horizontalLayout),i.setAll({y:g,x:void 0,centerY:g,centerX:g}),r.setAll({y:0,x:void 0,centerY:0,centerX:g}),e.setAll({height:g,width:void 0}),n&&n.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:g}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),r.setAll({x:g,y:void 0,centerX:g,centerY:0}),e.setAll({width:g,height:void 0}),n&&n.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){const e=this.get("stepCount",1),i=this.get("startColor"),r=this.get("endColor");if(this.markerContainer.children.clear(),e>1)for(let n=0;n<e;n++){const s=this.makeMarker();"vertical"==t?this.markerContainer.children.moveValue(s,0):this.markerContainer.children.push(s),i&&r&&s.set("fill",Rt.interpolate(n/e,i,r))}else if(1==e){const e=this.makeMarker();this.markerContainer.children.push(e);const n=os.new(this._root,{stops:[{color:i},{color:r}]});if("vertical"==t){n.set("rotation",90);let e=n.get("stops");e&&e.reverse()}else n.set("rotation",0);i&&r&&e.set("fillGradient",n)}}(this.isDirty("startText")||this.isDirty("startValue"))&&i.set("text",this.get("startText",this.getNumberFormatter().format(this.get("startValue",0)))),(this.isDirty("endText")||this.isDirty("endValue"))&&r.set("text",this.get("endText",this.getNumberFormatter().format(this.get("endValue",1))))}}Object.defineProperty(ls,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HeatLegend"}),Object.defineProperty(ls,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.concat([ls.className])});class us extends Lr{_afterNew(){super._afterNew();const e=this.children.push(Pr.new(this._root,{html:'<textarea class="am5-editable-label"></textarea>',isMeasured:!1}));e.hide();const t=this.get("editOn","click");"none"!=t&&(e.events.on(t,(e=>{})),this.events.on(t,(e=>{this.set("active",!0)}))),this.setPrivate("input",e);let i=this.get("background");i?i.set("themeTags",["editablelabel","background"]):i=this.set("background",Xn.new(this._root,{themeTags:["editablelabel","background"]}
1))}_prepareChildren(){super._prepareChildren(),this._maybeInitTextarea()}_updateChildren(){if(super._updateChildren(),this.isDirty("active")){const e=this.get("active",!1);e?this._startEditing():this._stopEditing();const t=this.get("background");t&&t.set("active",e)}this._syncText(),this._syncStyle()}_maybeInitTextarea(){if(!this._isInited()){const e=this.getPrivate("input");if(e&&e.getPrivate("htmlElement")){const t=e.getPrivate("htmlElement").querySelector(".am5-editable-label");t&&(this.setPrivate("textarea",t),t.addEventListener("input",(e=>{!1===this.get("multiLine")&&(t.value=t.value.replace(/\n/g," ")),this.set("text",t.value),this._syncStyle()})),t.addEventListener("blur",(e=>this.set("active",!1))),Oe("keyboardevents")&&this._disposers.push(Se(document,"keydown",(e=>{"Escape"==He(e)&&this.set("active",!1)}))),this._disposers.push(Se(document,"keydown",(e=>{"Enter"==He(e)&&!1===this.get("multiLine")&&(e.preventDefault(),this.set("active",!1))}))),this.events.dispatch("inited",{type:"inited",target:this}))}}}_isInited(){return!!this.getPrivate("textarea")}_startEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._startEditing()}));this._text.set("opacity",0);const e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(""==this.get("text","")&&this.set("text"," "),e.show(0),this.setTimeout((()=>{this._syncStyle(),t.focus()}),100))}_stopEditing(){if(!this._isInited())return void this.events.once("inited",(()=>{this._stopEditing()}));const e=this.getPrivate("input"),t=this.getPrivate("textarea");t&&(this.set("text",t.value),e.hide(0),this._text.set("opacity",1))}_syncStyle(){const e=this.getPrivate("input"),t=this.getPrivate("textarea");if(t){const i=e.getPrivate("htmlElement");R(window.getComputedStyle(t),(e=>{t.style[e]="initial"})),t.style.color=this.get("fill",Mt(0)).toCSS(this.get("fillOpacity",1)),t.style.backgroundColor="rgba(0, 0, 0, 0)",t.style.border="none",t.style.outline="none",t.style.padding="0",t.wrap="off",t.style.resize="none",t.style.overflow="hidden";const r=this.get("maxWidth",0)-this.get("paddingLeft",0)-this.get("paddingRight",0);r>0?t.style.maxWidth=r+"px":t.style.minWidth="",t.style.height="auto",t.style.minHeight=t.scrollHeight+"px",this.get("width")&&(t.style.width=this.width()-this.get("paddingLeft",0)-this.get("paddingRight",0)+"px",t.style.minWidth="");const n=this.get("lineHeight");n?n instanceof d?t.style.lineHeight=n.value+"":S(n)&&(t.style.lineHeight=n+""):t.style.lineHeight="1.2";let s=this.get("fontFamily");s||(s=getComputedStyle(e.getPrivate("htmlElement"),"font-family").getPropertyValue("font-family")),t.style.fontFamily=s;let a=this.get("fontSize");a?S(a)&&(a+="px"):a=getComputedStyle(e.getPrivate("htmlElement"),"font-size").getPropertyValue("font-size"),t.style.fontSize=a;let o=this.get("fontWeight");o||(o=getComputedStyle(e.getPrivate("htmlElement"),"font-weight").getPropertyValue("font-weight")),t.style.fontWeight=o;let l=this.get("fontStyle");l||(l=getComputedStyle(e.getPrivate("htmlElement"),"font-style").getPropertyValue("font-style")),t.style.fontStyle=l;const u=this.get("oversizedBehavior");t.style.whiteSpace="wrap"==u?"pre-wrap":"nowrap",this._root.events.on("frameended",(()=>{""==t.style.minWidth&&(t.style.minWidth=t.scrollWidth+20+"px");const e=this.get("textAlign","start");"center"==e?(t.style.textAlign="center",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-50%)")):"end"==e?(t.style.textAlign="right",i.style.transform.match(/translateX/)||this.get("width")||(i.style.transform+=" translateX(-100%)")):t.style.textAlign=e}))}}_syncText(){const e=this.getPrivate("textarea");let t=this.get("text","");" "==t&&(t=""),e&&(e.value=t)}}function hs(e){return new Promise(((t,i)=>{setTimeout(t,e)}))}Object.defineProperty(us,"className",{enumerable:!0,configurable:!0,writable:!0,value:"EditableLabel"}),Object.defineProperty(us,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Lr.classNames.concat([us.className])});let cs={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function ds(e){switch(e){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function ps(e,t){return null==t&&(t=1),cs[e]*t}function fs(e){return e?cs[e.timeUnit]*e.count:0}function gs(e,t,i,r,n){const s=e.timeUnit,a=e.count;if("hour"==s||"minute"==s||"second"==s||"millisecond"==s)return cs[e.t
1imeUnit]*e.count;{const e=xs(new Date(t.getTime()),s,a,i,r,void 0,n).getTime();let o=e+a*ps(s)*1.05;return o=xs(new Date(o),s,1,i,r,void 0,n).getTime(),o-e}}function ms(){return new Date}function bs(){return ms().getTime()}function vs(e){return new Date(e.getTime())}function ys(e,t,i,r,n){if(t-e>ps(i,1.2))return!0;let s=new Date(e),a=new Date(t);n&&(s=n.convertLocal(s),a=n.convertLocal(a));let o=0,l=0;r||"millisecond"==i||(o=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-o),l=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-l));let u=!1;switch(i){case"year":s.getUTCFullYear()!=a.getUTCFullYear()&&(u=!0);break;case"month":(s.getUTCFullYear()!=a.getUTCFullYear()||s.getUTCMonth()!=a.getUTCMonth())&&(u=!0);break;case"day":(s.getUTCMonth()!=a.getUTCMonth()||s.getUTCDate()!=a.getUTCDate())&&(u=!0);break;case"hour":s.getUTCHours()!=a.getUTCHours()&&(u=!0);break;case"minute":s.getUTCMinutes()!=a.getUTCMinutes()&&(u=!0);break;case"second":s.getUTCSeconds()!=a.getUTCSeconds()&&(u=!0);break;case"millisecond":s.getTime()!=a.getTime()&&(u=!0)}if(u)return u;let h=ds(i);return!!h&&ys(e,t,h,r,n)}function _s(e,t,i,r,n){let s=0;switch(r||"millisecond"==t||(s=e.getTimezoneOffset(),n&&(s-=n.offsetUTC(e)),e.setUTCMinutes(e.getUTCMinutes()-s)),t){case"day":let t=e.getUTCDate();e.setUTCDate(t+i);break;case"second":let r=e.getUTCSeconds();e.setUTCSeconds(r+i);break;case"millisecond":let n=e.getUTCMilliseconds();e.setUTCMilliseconds(n+i);break;case"hour":let s=e.getUTCHours();e.setUTCHours(s+i);break;case"minute":let a=e.getUTCMinutes();e.setUTCMinutes(a+i);break;case"year":let o=e.getUTCFullYear();e.setUTCFullYear(o+i);break;case"month":const l=e.getUTCDate(),u=new Date(e.getUTCFullYear(),e.getUTCMonth(),0).getUTCDate();let h=e.getUTCMonth();l>u?e.setUTCMonth(h+i,u):e.setUTCMonth(h+i);break;case"week":let c=e.getUTCDate();e.setUTCDate(c+7*i)}if(!r&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+s),"day"==t||"week"==t||"month"==t||"year"==t)){let t=e.getTimezoneOffset();if(n&&(t+=n.offsetUTC(e)),t!=s){let i=t-s;e.setUTCMinutes(e.getUTCMinutes()+i),e.getTimezoneOffset()!=t&&e.setUTCMinutes(e.getUTCMinutes()-i)}}return e}function ws(e,t,i,r,n){let s;return null!=n&&(s=new Date(n)),xs(new Date(e),t,i,r.locale.firstDayOfWeek,r.utc,s,r.timezone).getTime()}function xs(e,t,i,r,n,s,a){if(!a||n){let a=0;switch(n||"millisecond"==t||(a=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-a)),t){case"day":let t=e.getUTCDate();if(i>1){if(s){s=xs(s,"day",1);let t=e.getTime()-s.getTime(),r=Math.floor(t/ps("day")/i),n=ps("day",r*i);e.setTime(s.getTime()+n-a*ps("minute"))}}else e.setUTCDate(t);e.setUTCHours(0,0,0,0);break;case"second":let n=e.getUTCSeconds();i>1&&(n=Math.floor(n/i)*i),e.setUTCSeconds(n,0);break;case"millisecond":if(1==i)return e;let o=e.getUTCMilliseconds();o=Math.floor(o/i)*i,e.setUTCMilliseconds(o);break;case"hour":let l=e.getUTCHours();i>1&&(l=Math.floor(l/i)*i),e.setUTCHours(l,0,0,0);break;case"minute":let u=e.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),e.setUTCMinutes(u,0,0);break;case"month":let h=e.getUTCMonth();i>1&&(h=Math.floor(h/i)*i),e.setUTCMonth(h,1),e.setUTCHours(0,0,0,0);break;case"year":let c=e.getUTCFullYear();i>1&&(c=Math.floor(c/i)*i),e.setUTCFullYear(c,0,1),e.setUTCHours(0,0,0,0);break;case"week":if(i>1&&s){s=xs(s,"week",1);let t=e.getTime()-s.getTime(),r=Math.floor(t/ps("week")/i),n=ps("week",r*i);e.setTime(s.getTime()+n-a*ps("minute"))}let d=e.getUTCDate(),p=e.getUTCDay();S(r)||(r=1),d=p>=r?d-p+r:d-(7+p)+r,e.setUTCDate(d),e.setUTCHours(0,0,0,0)}if(!n&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+a),"day"==t||"week"==t||"month"==t||"year"==t)){let t=e.getTimezoneOffset();if(t!=a){let i=t-a;e.setUTCMinutes(e.getUTCMinutes()+i)}}return e}{if(isNaN(e.getTime()))return e;let o=e.getTime(),l=a.offsetUTC(e),u=e.getTimezoneOffset(),h=a.parseDate(e),c=h.year,d=h.month,p=h.day,f=h.hour,g=h.minute,m=h.second,b=h.millisecond,v=h.weekday,y=l-u;switch(t){case"day":if(i>1&&s){s=xs(s,"day",1,r,n,void 0,a);let t=e.getTime()-s.getTime(),o=Math.floor(t/ps("day")/i),l=ps("day",o*i);e.setTime(s.getTime()+l),h=a.parseDate(e),c=h.year,d=h.month,p=h.day}f=0,g=y,m=0,b=0;break;case"second":g+=y,i>1&&(m=Math.floor(m/i)*i),b=0;break;case"millisecond":g+=y,i>1&&(b=Math.floor(b/i)*i);break;case"hour":i>1&&(f=Math.floor(f/i)*i),g=y,m=0,b=0;break;case"minute":i>1&&(g=Math.floor(g/i)*i),g+=y,m=0,b=0;break;case"month":i>1&&(d=Math.floor(d/i)*i),p=1,f=0,g=y,m=0,b=0;break;case"year":i>1&&(c=Math.floor(c/i)*i),d=0,p=1,f=0,g=y,m=0,b=0;break;case"week":S(r)||(r=1),p=v>=r?p-v+r:p-(7+v)+r,f=0,g=y,m=0,b=0}const _=(e=new Date(c,d,p,f,g,m,b)).getTime();let w=36e5;"hour"==t&&(w=36e5*i),_+w<=o&&("hour"!=t&&"minute"!=t&&"second"!=t&&"millisecond"!=t||(e=new Date(_+w)));let x=e.getTimezoneOffset(),D=a.offsetUTC(e)-x;return D!=y&&e.setTime(e.getTime()+6e4*(D-y)),e}}function Ds(e,t,i,r){let n=fs(r[e]),s=r.length-1;if(e>=s)return Object.assign({},r[s]);let a=Math.ceil(t/n);return t<n&&e>0?Object.assign({},r[e-1]):a<=i?Object.assign({},r[e]):e+1<r.length?Ds(e+1,t,i,r):Object.assign({},r[e])}function ks(e,t){switch(t){case"day":return e.getDate();case"second":return e.getSeconds();case"millisecond":return e.getMilliseconds();case"hour":return e.getHours();case"minute":return e.getMinutes();case"month":return e.getMonth();case"year":return e.getFullYear();case"week":return dt(e)}}class Ts extends ns{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new Wt}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:Pr.new(this._root,{width:g,height:g,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll((e=>{if("clear"===e.type)this._handleBullets(this.dataItems);else if("push"===e.type)this._handleBullets(this.dataItems);else if("setIndex"===e.type)this._handleBullets(this.dataItems);else if("insertIndex"===e.type)this._handleBullets(this.dataItems);else if("removeIndex"===e.type)this._handleBullets(this.dataItems);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._handleBullets(this.dataItems)}})))}
1_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),e)}endIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("endIndex",e),e)}_handleBullets(e){R(e,(e=>{const t=e.bullets;t&&(R(t,(e=>{e.dispose()})),e.bullets=void 0)})),this.markDirtyValues()}getDataItemById(e){return ne(this.dataItems,(t=>t.get("id")==e))}_makeBullets(e){this._shouldMakeBullet(e)&&(e.bullets=[],this.bullets.each((t=>{this._makeBullet(e,t)})))}_shouldMakeBullet(e){return!0}_makeBullet(e,t,i){const r=t(this._root,this,e);return r&&(r._index=i,this._makeBulletReal(e,r)),r}_makeBulletReal(e,t){let i=t.get("sprite");i&&(i._setDataItem(e),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),t.series=this,e.bullets.push(t)}addBullet(e,t){e.bullets||(e.bullets=[]),t&&this._makeBulletReal(e,t)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let e=this.startIndex(),t=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const e=this.getPrivate("baseValueSeries");e&&this._disposers.push(e.onPrivate("startIndex",(()=>{this.markDirtyValues()})))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0,0!=e&&(this._psi=void 0))),this._psi==e&&this._pei==t&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===e&&t===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(e,t),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let e=this.get("tooltip");e&&(e.hide(0),e.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let e;const t=this.get("legendDataItem");if(t&&(e=t.get("markerRectangle"),e&&this.isVisible())){if(this.isDirty("stroke")){let t=this.get("stroke");e.set("stroke",t)}if(this.isDirty("fill")){let t=this.get("fill");e.set("fill",t)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let e=this.startIndex(),t=this.endIndex();t<this.dataItems.length&&t++;for(let i=e;i<t;i++){let e=this.dataItems[i];e.bullets||this._makeBullets(e)}}}_handleRemoved(){}_adjustStartIndex(e){return e}_calculateAggregates(e,t){let i=this._valueFields;if(!i)throw new Error("No value fields are set for the series.");const r={},n={},s={},a={},o={},l={},u={},h={},c={};R(i,(e=>{r[e]=0,n[e]=0,s[e]=0})),R(i,(i=>{let d=i+"Change",p=i+"ChangePercent",f=i+"ChangePrevious",g=i+"ChangePreviousPercent",m=i+"ChangeSelection",b=i+"ChangeSelectionPercent",v="valueY";"valueX"!=i&&"openValueX"!=i&&"lowValueX"!=i&&"highValueX"!=i||(v="valueX");const y=this.getPrivate("baseValueSeries"),_=this.getPrivate("adjustedStartIndex",e);for(let w=_;w<t;w++){const t=this.dataItems[w];if(t){let _=t.get(i);null!=_&&(s[i]++,r[i]+=_,n[i]+=Math.abs(_),h[i]=r[i]/s[i],(a[i]>_||null==a[i])&&(a[i]=_),(o[i]<_||null==o[i])&&(o[i]=_),u[i]=_,null==l[i]&&(l[i]=_,c[i]=_,y&&(l[v]=y._getBase(v))),0===e&&(t.setRaw(d,_-l[v]),t.setRaw(p,(_-l[v])/l[v]*100)),t.setRaw(f,_-c[v]),t.setRaw(g,(_-c[v])/c[v]*100),t.setRaw(m,_-l[v]),t.setRaw(b,(_-l[v])/l[v]*100),c[i]=_)}}if(t<this.dataItems.length-1){const e=this.dataItems[t];if(e){let t=e.get(i);e.setRaw(f,t-c[v]),e.setRaw(g,(t-c[v])/c[v]*100),e.setRaw(m,t-l[v]),e.setRaw(b,(t-l[v])/l[v]*100)}}e>0&&e--,delete c[i];for(let t=e;t<_;t++){const e=this.dataItems[t];if(e){let t=e.get(i);null==c[i]&&(c[i]=t),null!=t&&(e.setRaw(f,t-c[v]),e.setRaw(g,(t-c[v])/c[v]*100),e.setRaw(m,t-l[v]),e.setRaw(b,(t-l[v])/l[v]*100),c[i]=t)}}})),R(i,(e=>{this.setPrivate(e+"AverageSelection",h[e]),this.setPrivate(e+"CountSelection",s[e]),this.setPrivate(e+"SumSelection",r[e]),this.setPrivate(e+"AbsoluteSumSelection",n[e]),this.setPrivate(e+"LowSelection",a[e]),this.setPrivate(e+"HighSelection",o[e]),this.setPrivate(e+"OpenSelection",l[e]),this.setPrivate(e+"CloseSelection",u[e])})),0===e&&t===this.dataItems.length&&R(i,(e=>{this.setPrivate(e+"Average",h[e]),this.setPrivate(e+"Count",s[e]),this.setPrivate(e+"Sum",r[e]),this.setPrivate(e+"AbsoluteSum",n[e]),this.setPrivate(e+"Low",a[e]),this.setPrivate(e+"High",o[e]),this.setPrivate(e+"Open",l[e]),this.setPrivate(e+"Close",u[e])}))}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));const e=this.get("heatRules");
1if(this._valuesDirty&&e&&e.length>0&&R(e,(e=>{const t=e.minValue||this.getPrivate(e.dataField+"Low")||0,i=e.maxValue||this.getPrivate(e.dataField+"High")||0;R(e.target._entities,(r=>{const n=r.dataItem.get(e.dataField);if(!S(n)){e.neutral&&r.set(e.key,e.neutral);const t=r.states;if(t){const i=t.lookup("default");i&&e.neutral&&i.set(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,r,t,i,n);else{let s,a;s=e.logarithmic?(Math.log(n)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E):(n-t)/(i-t),!S(n)||S(s)&&Math.abs(s)!=1/0||(s=.5),S(e.min)?a=e.min+(e.max-e.min)*s:e.min instanceof Rt?a=Rt.interpolate(s,e.min,e.max):e.min instanceof d&&(a=Ft(s,e.min,e.max)),r.set(e.key,a);const o=r.states;if(o){const t=o.lookup("default");t&&t.set(e.key,a)}}}))})),this.get("visible")){let e=this.dataItems.length,t=this.startIndex(),i=this.endIndex();i<e&&i++,t>0&&t--;for(let e=0;e<t;e++)this._hideBullets(this.dataItems[e]);for(let e=t;e<i;e++)this._positionBullets(this.dataItems[e]);for(let t=i;t<e;t++)this._hideBullets(this.dataItems[t])}}_positionBullets(e){e.bullets&&R(e.bullets,(e=>{this._positionBullet(e);const t=e.get("sprite");e.get("dynamic")&&(t&&(t._markDirtyKey("fill"),t.markDirtySize()),t instanceof Pr&&t.walkChildren((e=>{e._markDirtyKey("fill"),e.markDirtySize(),e instanceof Lr&&e.text.markDirtyText()}))),t instanceof Lr&&t.get("populateText")&&t.text.markDirtyText()}))}_hideBullets(e){e.bullets&&R(e.bullets,(e=>{let t=e.get("sprite");t&&t.setPrivate("visible",!1)}))}_positionBullet(e){}_placeBulletsContainer(e){e.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const e=this.bulletsContainer;e.parent&&e.parent.children.removeValue(e)}disposeDataItem(e){const t=e.bullets;t&&R(t,(e=>{e.dispose()}))}_getItemReaderLabel(){return""}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return c(this,void 0,void 0,(function*(){const r=[i.showDataItem.call(this,e,t)],n=e.bullets;n&&R(n,(e=>{const i=e.get("sprite");i&&r.push(i.show(t))})),yield Promise.all(r)}))}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return c(this,void 0,void 0,(function*(){const r=[i.hideDataItem.call(this,e,t)],n=e.bullets;n&&R(n,(e=>{const i=e.get("sprite");i&&r.push(i.hide(t))})),yield Promise.all(r)}))}_sequencedShowHide(e,t){return c(this,void 0,void 0,(function*(){if(this.get("sequencedInterpolation"))if(S(t)||(t=this.get("interpolationDuration",0)),t>0){const i=this.startIndex(),r=this.endIndex();yield Promise.all(M(this.dataItems,((n,s)=>c(this,void 0,void 0,(function*(){let a=t||0;(s<i-10||s>r+10)&&(a=0);let o=this.get("sequencedDelay",0)+a/(r-i);yield hs(o*(s-i)),e?yield this.showDataItem(n,a):yield this.hideDataItem(n,a)})))))}else yield Promise.all(M(this.dataItems,(t=>e?this.showDataItem(t,0):this.hideDataItem(t,0))))}))}updateLegendValue(e){if(e){const t=e.get("legendDataItem");if(t){const i=t.get("valueLabel");if(i){const t=i.text;let r="";i._setDataItem(e),r=this.get("legendValueText",t.get("text","")),i.set("text",r),t.markDirtyText()}const r=t.get("label");if(r){const t=r.text;let i="";r._setDataItem(e),i=this.get("legendLabelText",t.get("text","")),r.set("text",i),t.markDirtyText()}}}}updateLegendMarker(e){}_onHide(){super._onHide();const e=this.getTooltip();e&&e.hide()}hoverDataItem(e){}unhoverDataItem(e){}_getBase(e){const t=this.dataItems[this.startIndex()];return t?t.get(e):0}}Object.defineProperty(Ts,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"}),Object.defineProperty(Ts,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ns.classNames.concat([Ts.className])});class Ps extends Ts{constructor(){super(...arguments),Object.defineProperty(this,"itemContainers",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new qt(lr.new({}),(()=>Pr._new(this._root,{themeTags:Et(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:Et(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:Xn.new(this._root,{themeTags:Et(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:Et(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template]))))}),Object.defineProperty(this,"markers",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new qt(lr.new({}),(()=>Pr._new(this._root,{themeTags:Et(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template]))))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new qt(lr.new({}),(()=>Lr._new(this._root,{themeTags:Et(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template]))))}),Object.defineProperty(this,"valueLabels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new qt(lr.new({}),(()=>Lr._new(this._root,{themeTags:Et(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template]))))}),Object.defineProperty(this,"markerRectangles",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new qt(lr.new({}),(()=>Xn._new(this._root,{themeTags:Et(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template]))))})}_afterNew(){this._settings.themeTags=Et(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(e){const t=this.children.push(this.itemContainers.make());return t._setDataItem(e),this.itemContainers.push(t),t.states.create("disabled",{}),t}makeMarker(){const e=this.markers.make();return this.markers.push(e),e.states.create("disabled",{}),e}makeLabel(){const e=this.labels.make();return e.states.create("disabled",{}),e}makeValueLabel(){const e=this.valueLabels.make();return e.states.create("disabled",{}),e}makeMarkerRectangle(){const e=this.markerRectangles.make();return e.states.create("disabled",{}),e}processDataItem(e){super.processDataItem(e);const t=this.makeItemContainer(e),i=this.get("nameField"),r=this.get("fillField"),n=this.get("strokeField");if(t){const s=this.get("clickTarget","itemContainer"),a=e.dataContext;a&&a.set&&a.set("legendDataItem",e),t._setDataItem(e),e.set("itemContainer",t);const o=this.makeMarker();if(o){t.children.push(o),o._setDataItem(e),e.set("marker",o);const i=this.get("useDefaultMarker"),s=o.children.push(this.makeMarkerRectangle());let l=e.get("fill"),u=e.get("stroke");e.set("markerRectangle",s),a&&a.get&&(l=a.get(r,l),u=a.get(n,u)),u||(u=l),i?a.on&&(a.on(r,(()=>{s.set("fill",a.get(r))})),a.on(n,(()=>{s.set("stroke",a.get(n))}))):a&&a.createLegendMarker&&a.createLegendMarker(),s.setAll({fill:l,stroke:u});const h=a.component;h&&h.updateLegendMarker&&h.updateLegendMarker(a)}const l=this.makeLabel();if(l){t.children.push(l),l._setDataItem(e),e.set("label",l),l.text.on("text",(()=>{t.setRaw("ariaLabel",l.text._getText()+("none"!==this.get("clickTarget")?"; "+this._t("Press ENTER to toggle"):"")),t.markDirtyAccessibility()})),a&&a.get&&e.set("name",a.get(i));let r=e.get("name");r&&l.set("text",r)}const u=this.makeValueLabel();if(u&&(t.children.push(u),u._setDataItem(e),e.set("valueLabel",u)),a&&a.show&&(a.on("visible",(e=>{t.set("disabled",!e)})),a.get("visible")||t.set("disabled",!0),"none"!=s)){let i=t;"marker"==s&&(i=o),this._addClickEvents(i,a,e)}this.children.values.sort(((e,t)=>{const i=e.dataItem.dataContext,r=t.dataItem.dataContext;if(i&&r){const e=this.data.indexOf(i),t=this.data.indexOf(r);if(e>t)return 1;if(e<t)return-1}return 0})),a&&a.updateLegendValue&&a.updateLegendValue()}}_addClickEvents(e,t,i){e.set("cursorOverStyle","pointer"),e.events.on("pointerover",(()=>{const e=t.component;e&&e.hoverDataItem&&e.hoverDataItem(t)})),e.events.on("pointerout",(()=>{const e=t.component;e&&e.hoverDataItem&&e.unhoverDataItem(t)})),e.events.on("click",(()=>{const r=i.get("label").text._getText();t.show&&t.isHidden&&(t.isHidden()||!1===t.get("visible"))?(t.show(),e.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,r))):t.hide&&(t.hide(),e.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,r)))}))}disposeDataItem(e){super.disposeDataItem(e);const t=e.dataContext;if(t&&t.get){t.get("legendDataItem")==e&&t.set("legendDataItem",void 0)}let i=e.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let r=e.get("marker");r&&(this.markers.removeValue(r),r.dispose());let n=e.get("markerRectangle");n&&(this.markerRectangles.removeValue(n),n.dispose());let s=e.get("label");s&&(this.labels.removeValue(s),s.dispose());let a=e.get("valueLabel");a&&(this.valueLabels.removeValue(a),a.dispose())}}function Ss(e,t){for(let i=0,r=t.length;i<r;i++){const r=t[i];if(r.length>0){let t=r[0];if(t.length>0){let i=t[0];e.moveTo(i.x,i.y);for(let t=0,i=r.length;t<i;t++)Cs(e,r[t])}}}}function Cs(e,t){for(let i=0,r=t.length;i<r;i++){const r=t[i];e.lineTo(r.x,r.y)}}Object.defineProperty(Ps,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Legend"}
1),Object.defineProperty(Ps,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ts.classNames.concat([Ps.className])});class Os extends fr{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("points"),t=this.get("segments");if(e&&e.length>0){let t=e[0];this._display.moveTo(t.x,t.y),Ss(this._display,[[e]])}else if(t)Ss(this._display,t);else if(!this.get("draw")){let e=this.width(),t=this.height();this._display.moveTo(0,0),this._display.lineTo(e,t)}}}}Object.defineProperty(Os,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"}),Object.defineProperty(Os,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([Os.className])});class As extends hr{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makePicture(void 0)})}_changed(){if(super._changed(),this.isDirty("width")){const e=this.get("width");this._display.width=S(e)?e:void 0}if(this.isDirty("height")){const e=this.get("height");this._display.height=S(e)?e:void 0}if(this.isDirty("shadowColor")){this._display.clear();const e=this.get("shadowColor");this._display.shadowColor=null==e?void 0:e}this.isDirty("shadowBlur")&&(this._display.clear(),this._display.shadowBlur=this.get("shadowBlur")),this.isDirty("shadowOffsetX")&&(this._display.clear(),this._display.shadowOffsetX=this.get("shadowOffsetX")),this.isDirty("shadowOffsetY")&&(this._display.clear(),this._display.shadowOffsetY=this.get("shadowOffsetY")),this.isDirty("shadowOpacity")&&(this._display.clear(),this._display.shadowOpacity=this.get("shadowOpacity")),(this.isDirty("src")||this.isDirty("cors"))&&(this._display.clear(),this._load())}_load(){const e=this.get("src");if(e){const t=new Image;t.crossOrigin=this.get("cors","anonymous"),t.src=e;const i=this.events;t.decode().then((()=>{this._display.image=t,this._updateSize(),!i.isDisposed()&&i.isEnabled("loaded")&&i.dispatch("loaded",{type:"loaded",target:this})})).catch((e=>{!i.isDisposed()&&i.isEnabled("loaderror")&&i.dispatch("loaderror",{type:"loaderror",target:this})}))}}_updateSize(){super._updateSize();const e=this._display.image;if(e){let t=this.getPrivate("width",this.get("width")),i=this.getPrivate("height",this.get("height"));const r=e.width&&e.height?e.width/e.height:0;S(t)&&S(i)?(this._display.width=t,this._display.height=i):S(t)&&r?i=t/r:S(i)&&r?t=i*r:(t=e.width,i=e.height),S(t)&&(this._display.width=t),S(i)&&(this._display.height=i),this.markDirtyBounds(),this.markDirty()}}}Object.defineProperty(As,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Picture"}),Object.defineProperty(As,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:hr.classNames.concat([As.className])});class Es extends Sr{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeRadialText("",this.textStyle)})}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*Zt,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}Object.defineProperty(Es,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialText"}),Object.defineProperty(Es,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Sr.classNames.concat([Es.className])});class js extends Lr{constructor(){super(...arguments),Object.defineProperty(this,"_flipped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(Es.new(this._root,{}))}baseRadius(){const e=this.getPrivate("radius",0),t=this.getPrivate("innerRadius",0);return t+Ke(this.get("baseRadius",0),e-t)}radius(){const e=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(e?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const e=this.get("textType","adjusted"),t=this.get("inside",!1),i=this.get("orientation");let r=ai(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",t);const n=ri(r),s=si(r);let a=this.baseRadius(),o=this.radius();
1if(this._display.angle=0,"circular"==e)this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",o);else{0==a&&(r=0,o=0);let t=o*s,l=o*n;"radial"==e?(this.setRaw("x",t),this.setRaw("y",l),r<90||r>270||"auto"!=i?(this._display.angle=r,this._flipped=!1):(this._display.angle=r+180,this._flipped=!0),this._dirty.rotation=!1):"adjusted"==e?(this.setRaw("centerX",m),this.setRaw("centerY",m),this.setRaw("x",t),this.setRaw("y",l)):"regular"==e&&(this.setRaw("x",t),this.setRaw("y",l))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const e=this.get("textType","regular"),t=this.get("inside",!1);let i=0,r=0,n=this.get("labelAngle",0),s=this.localBounds(),a=s.right-s.left,o=s.bottom-s.top;if("radial"==e){if(this._flipped){let e=this.get("centerX");e instanceof d&&(a*=1-2*e.value),i=a*si(n),r=a*ri(n)}}else t||"adjusted"!=e||(i=a/2*si(n),r=o/2*ri(n));this.setRaw("dx",i),this.setRaw("dy",r),super._updatePosition()}get text(){return this._text}}Object.defineProperty(js,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialLabel"}),Object.defineProperty(js,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Lr.classNames.concat([js.className])});class Ls extends fr{_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){const e=this.width(),t=this.height(),i=this._display;i.moveTo(-e/2,t/2),i.lineTo(0,-t/2),i.lineTo(e/2,t/2),i.lineTo(-e/2,t/2),i.closePath()}_updateSize(){this.markDirty(),this._clear=!0}}Object.defineProperty(Ls,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Triangle"}),Object.defineProperty(Ls,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([Ls.className])});class Ms extends Pr{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:this._makeThumb()}),Object.defineProperty(this,"startGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"endGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"_thumbBusy",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_startDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_endDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_thumbDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_gripDown",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_addOrientationClass(){this._settings.themeTags=Et(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=Xn.new(this._root,{themeTags:Et(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(Zn.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:fr.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(Xn.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(e){e&&this._disposers.push(e.events.on("stopped",(()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1})))}_afterNew(){this._addOrientationClass(),super._afterNew();const e=this.startGrip,t=this.endGrip,i=this.thumb,r=this.get("background");r&&this._disposers.push(r.events.on("click",(e=>{this.setPrivateRaw("isBusy",!0);const t=this._display.toLocal(e.point),r=this.width(),n=this.height(),s=this.get("orientation");let a,o,l;a="vertical"==s?(t.y-i.height()/2)/n:(t.x-i.width()/2)/r,"vertical"==s?(o=a*n,l="y"):(o=a*r,l="x");const u=this.get("animationDuration",0);u>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:l,to:o,duration:u,easing:this.get("animationEasing")}))):(this.thumb.set(l,o),this._root.events.once("frameended",(()=>{this.setPrivateRaw("isBusy",!1)})))}))),this._disposers.push(i.events.on("dblclick",(e=>{if(!Fe(e.originalEvent,this))return;const t=this.get("animationDuration",0),i=this.get("animationEasing");this.animate({key:"start",to:0,duration:t,easing:i}),this.animate({key:"end",to:1,duration:t,easing:i})}))),this._disposers.push(e.events.on("pointerdown",(()=>
1{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"}))),this._disposers.push(t.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"}))),this._disposers.push(i.events.on("pointerdown",(()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0}))),this._disposers.push(e.events.on("globalpointerup",(()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1}))),this._disposers.push(t.events.on("globalpointerup",(()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1}))),this._disposers.push(i.events.on("globalpointerup",(()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1}))),this._disposers.push(e.on("x",(()=>{this._updateThumb()}))),this._disposers.push(t.on("x",(()=>{this._updateThumb()}))),this._disposers.push(e.on("y",(()=>{this._updateThumb()}))),this._disposers.push(t.on("y",(()=>{this._updateThumb()}))),this._disposers.push(i.events.on("positionchanged",(()=>{this._updateGripsByThumb()}))),"vertical"==this.get("orientation")?(e.set("x",0),t.set("x",0),this._disposers.push(i.adapters.add("y",(e=>Math.max(Math.min(Number(e),this.height()-i.height()),0)))),this._disposers.push(i.adapters.add("x",(e=>this.width()/2))),this._disposers.push(e.adapters.add("x",(e=>this.width()/2))),this._disposers.push(t.adapters.add("x",(e=>this.width()/2))),this._disposers.push(e.adapters.add("y",(e=>Math.max(Math.min(Number(e),this.height()),0)))),this._disposers.push(t.adapters.add("y",(e=>Math.max(Math.min(Number(e),this.height()),0))))):(e.set("y",0),t.set("y",0),this._disposers.push(i.adapters.add("x",(e=>Math.max(Math.min(Number(e),this.width()-i.width()),0)))),this._disposers.push(i.adapters.add("y",(e=>this.height()/2))),this._disposers.push(e.adapters.add("y",(e=>this.height()/2))),this._disposers.push(t.adapters.add("y",(e=>this.height()/2))),this._disposers.push(e.adapters.add("x",(e=>Math.max(Math.min(Number(e),this.width()),0)))),this._disposers.push(t.adapters.add("x",(e=>Math.max(Math.min(Number(e),this.width()),0)))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const e="rangechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){const e="released";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}updateGrips(){const e=this.startGrip,t=this.endGrip,i=this.get("orientation"),r=this.height(),n=this.width();"vertical"==i?(e.set("y",r*this.get("start",0)),t.set("y",r*this.get("end",1))):(e.set("x",n*this.get("start",0)),t.set("x",n*this.get("end",1)));const s=this.getPrivate("positionTextFunction"),a=Math.round(100*this.get("start",0)),o=Math.round(100*this.get("end",0));let l,u;s?(l=s.call(this,this.get("start",0)),u=s.call(this,this.get("end",0))):(l=a+"%",u=o+"%"),e.set("ariaLabel",this._t("From %1",void 0,l)),e.set("ariaValueNow",""+a),e.set("ariaValueText",a+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100"),t.set("ariaLabel",this._t("To %1",void 0,u)),t.set("ariaValueNow",""+o),t.set("ariaValueText",o+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100")}_updateThumb(){const e=this.thumb,t=this.startGrip,i=this.endGrip,r=this.height(),n=this.width();let s=t.x(),a=i.x(),o=t.y(),l=i.y(),u=0,h=1;"vertical"==this.get("orientation")?S(o)&&S(l)&&(this._thumbBusy||e.isDragging()||(e.set("height",l-o),e.set("y",o)),u=o/r,h=l/r):S(s)&&S(a)&&(this._thumbBusy||e.isDragging()||(e.set("width",a-s),e.set("x",s)),u=s/n,h=a/n),!this.getPrivate("isBusy")||this.get("start")==u&&this.get("end")==h||(this.set("start",u),this.set("end",h));const c=this.getPrivate("positionTextFunction"),d=Math.round(100*this.get("start",0)),p=Math.round(100*this.get("end",0));let f,g;c?(f=c.call(this,this.get("start",0)),g=c.call(this,this.get("end",0))):(f=d+"%",g=p+"%"),e.set("ariaLabel",this._t("From %1 to %2",void 0,f,g)),e.set("ariaValueNow",""+d),e.set("ariaValueText",d+"%")}_updateGripsByThumb(){const e=this.thumb,t=this.startGrip,i=this.endGrip;if("vertical"==this.get("orientation")){const r=e.height();t.set("y",e.y()),i.set("y",e.y()+r)}else{const r=e.width();t.set("x",e.x()),i.set("x",e.x()+r)}}}Object.defineProperty(Ms,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Scrollbar"}),Object.defineProperty(Ms,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.c
vendor: 4,931 bytes, line 1
1oncat([Ms.className])});class Rs extends Ms{_afterNew(){this._addOrientationClass(),super._afterNew(),this.endGrip.setPrivate("visible",!1),this.thumb.setPrivate("visible",!1)}updateGrips(){super.updateGrips();const e=this.startGrip;this.endGrip.setAll({x:e.x(),y:e.y()}),this.setRaw("end",this.get("start"))}}function Is(e){return function(){return e}}Object.defineProperty(Rs,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slider"}),Object.defineProperty(Rs,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ms.classNames.concat([Rs.className])});const Bs=Math.abs,Ns=Math.atan2,Fs=Math.cos,zs=Math.max,Hs=Math.min,Us=Math.sin,$s=Math.sqrt,Ws=1e-12,Gs=Math.PI,qs=Gs/2,Vs=2*Gs;function Ys(e){return e>=1?qs:e<=-1?-qs:Math.asin(e)}const Xs=Math.PI,Zs=2*Xs,Ks=1e-6,Js=Zs-Ks;function Qs(e){this._+=e[0];for(let t=1,i=e.length;t<i;++t)this._+=arguments[t]+e[t]}class ea{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Qs:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Qs;const i=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*i)/i+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,i,r){this._append`Q${+e},${+t},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,t,i,r,n,s){this._append`C${+e},${+t},${+i},${+r},${this._x1=+n},${this._y1=+s}`}arcTo(e,t,i,r,n){if(e=+e,t=+t,i=+i,r=+r,(n=+n)<0)throw new Error(`negative radius: ${n}`);let s=this._x1,a=this._y1,o=i-e,l=r-t,u=s-e,h=a-t,c=u*u+h*h;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(c>Ks)if(Math.abs(h*o-l*u)>Ks&&n){let d=i-s,p=r-a,f=o*o+l*l,g=d*d+p*p,m=Math.sqrt(f),b=Math.sqrt(c),v=n*Math.tan((Xs-Math.acos((f+c-g)/(2*m*b)))/2),y=v/b,_=v/m;Math.abs(y-1)>Ks&&this._append`L${e+y*u},${t+y*h}`,this._append`A${n},${n},0,0,${+(h*d>u*p)},${this._x1=e+_*o},${this._y1=t+_*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,i,r,n,s){if(e=+e,t=+t,s=!!s,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),o=i*Math.sin(r),l=e+a,u=t+o,h=1^s,c=s?r-n:n-r;null===this._x1?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Ks||Math.abs(this._y1-u)>Ks)&&this._append`L${l},${u}`,i&&(c<0&&(c=c%Zs+Zs),c>Js?this._append`A${i},${i},0,1,${h},${e-a},${t-o}A${i},${i},0,1,${h},${this._x1=l},${this._y1=u}`:c>Ks&&this._append`A${i},${i},0,${+(c>=Xs)},${h},${this._x1=e+i*Math.cos(n)},${this._y1=t+i*Math.sin(n)}`)}rect(e,t,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function ta(e){return e.innerRadius}function ia(e){return e.outerRadius}function ra(e){return e.startAngle}function na(e){return e.endAngle}function sa(e){return e&&e.padAngle}function aa(e,t,i,r,n,s,a){var o=e-i,l=t-r,u=(a?s:-s)/$s(o*o+l*l),h=u*l,c=-u*o,d=e+h,p=t+c,f=i+h,g=r+c,m=(d+f)/2,b=(p+g)/2,v=f-d,y=g-p,_=v*v+y*y,w=n-s,x=d*g-f*p,D=(y<0?-1:1)*$s(zs(0,w*w*_-x*x)),k=(x*y-v*D)/_,T=(-x*v-y*D)/_,P=(x*y+v*D)/_,S=(-x*v+y*D)/_,C=k-m,O=T-b,A=P-m,E=S-b;return C*C+O*O>A*A+E*E&&(k=P,T=S),{cx:k,cy:T,x01:-h,y01:-c,x11:k*(n/w-1),y11:T*(n/w-1)}}function oa(){var e=ta,t=ia,i=Is(0),r=null,n=ra,s=na,a=sa,o=null,l=function(e){let t=3;return e.digits=function(i){if(!arguments.length)return t;if(null==i)t=null;else{const e=Math.floor(i);if(!(e>=0))throw new RangeError(`invalid digits: ${i}`);t=e}return e},()=>new ea(t)}(u);function u(){var u,h,c,d=+e.apply(this,arguments),p=+t.apply(this,arguments),f=n.apply(this,arguments)-qs,g=s.apply(this,arguments)-qs,m=Bs(g-f),b=g>f;if(o||(o=u=l()),p<d&&(h=p,p=d,d=h),p>Ws)if(m>Vs-Ws)o.moveTo(p*Fs(f),p*Us(f)),o.arc(0,0,p,f,g,!b),d>Ws&&(o.moveTo(d*Fs(g),d*Us(g)),o.arc(0,0,d,g,f,b));else{var v,y,_=f,w=g,x=f,D=g,k=m,T=m,P=a.apply(this,arguments)/2,S=P>Ws&&(r?+r.apply(this,arguments):$s(d*d+p*p)),C=Hs(Bs(p-d)/2,+i.apply(this,arguments)),O=C,A=C;if(S>Ws){var E=Ys(S/d*Us(P)),j=Ys(S/p*Us(P));(k-=2*E)>Ws?(x+=E*=b?1:-1,D-=E):(k=0,x=D=(f+g)/2),(T-=2*j)>Ws?(_+=j*=b?1:-1,w-=j):(T=0,_=w=(f+g)/2)}var L=p*Fs(_),M=p*Us(_),R=d*Fs(D),I=d*Us(D);if(C>Ws){var B,N=p*Fs(w),F=p*Us(w),z=d*Fs(x),H=d*Us(x);if(m<Gs)if(B=function(e,t,i,r,n,s,a,o){var l=i-e,u=r-t,h=a-n,c=o-s,d=c*l-h*u;if(!(d*d<Ws))return[e+(d=(h*(t-s)-c*(e-n))/d)*l,t+d*u]}(L,M,z,H,N,F,R,I)){var U=L-B[0],$=M-B[1],W=N-B[0],G=F-B[1],q=1/Us(((c=(U*W+$*G)/($s(U*U+$*$)*$s(W*W+G*G)))>1?0:c<-1?Gs:Math.acos(c))/2),V=$s(B[0]*B[0]+B[1]*B[1]);O=Hs(C,(d-V)/(q-1)),A=Hs(C,(p-V)/(q+1))}else O=A=0}T>Ws?A>Ws?(v=aa(z,H,L,M,p,A,b),y=aa(N,F,R,I,p,A,b),o.moveTo(v.cx+v.x01,v.cy+v.y01),A<C?o.arc(v.cx,v.cy,A,Ns(v.y01,v.x01),Ns(y.y01,y.x01),!b):(o.arc(v.cx,v.cy,A,Ns(v.y01,v.x01),Ns(v.y11,v.x11),!b),o.arc(0,0,p,Ns(v.cy+v.y11,v.cx+v.x11),Ns(y.cy+y.y11,y.cx+y.x11),!b),o.arc(y.
1cx,y.cy,A,Ns(y.y11,y.x11),Ns(y.y01,y.x01),!b))):(o.moveTo(L,M),o.arc(0,0,p,_,w,!b)):o.moveTo(L,M),d>Ws&&k>Ws?O>Ws?(v=aa(R,I,N,F,d,-O,b),y=aa(L,M,z,H,d,-O,b),o.lineTo(v.cx+v.x01,v.cy+v.y01),O<C?o.arc(v.cx,v.cy,O,Ns(v.y01,v.x01),Ns(y.y01,y.x01),!b):(o.arc(v.cx,v.cy,O,Ns(v.y01,v.x01),Ns(v.y11,v.x11),!b),o.arc(0,0,d,Ns(v.cy+v.y11,v.cx+v.x11),Ns(y.cy+y.y11,y.cx+y.x11),b),o.arc(y.cx,y.cy,O,Ns(y.y11,y.x11),Ns(y.y01,y.x01),!b))):o.arc(0,0,d,D,x,b):o.lineTo(R,I)}else o.moveTo(0,0);if(o.closePath(),u)return o=null,u+""||null}return u.centroid=function(){var i=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-Gs/2;return[Fs(r)*i,Us(r)*i]},u.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Is(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Is(+e),u):t},u.cornerRadius=function(e){return arguments.length?(i="function"==typeof e?e:Is(+e),u):i},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Is(+e),u):r},u.startAngle=function(e){return arguments.length?(n="function"==typeof e?e:Is(+e),u):n},u.endAngle=function(e){return arguments.length?(s="function"==typeof e?e:Is(+e),u):s},u.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Is(+e),u):a},u.context=function(e){return arguments.length?(o=null==e?null:e,u):o},u}class la extends fr{constructor(){super(...arguments),Object.defineProperty(this,"ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"iy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_generator",{enumerable:!0,configurable:!0,writable:!0,value:oa()})}_getTooltipPoint(){let e=this.get("tooltipX"),t=this.get("tooltipY"),i=0,r=0;S(e)&&(i=e),S(t)&&(r=t);let n=this.get("radius",0),s=this.get("innerRadius",0);return n+=this.get("dRadius",0),s+=this.get("dInnerRadius",0),s<0&&(s=n+s),e instanceof d&&(i=this.ix*(s+(n-s)*e.value)),t instanceof d&&(r=this.iy*(s+(n-s)*t.value)),this.get("arc")>=360&&0==s&&(i=0,r=0),{x:i,y:r}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let e=this.get("startAngle",0),t=this.get("arc",0);const i=this._generator;t<0&&(e+=t,t*=-1),t>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let r=this.get("radius",0),n=this.get("innerRadius",0);r+=this.get("dRadius",0),n+=this.get("dInnerRadius",0),n<0&&(n=r+n),i({innerRadius:n,outerRadius:r,startAngle:(e+90)*Zt,endAngle:(e+t+90)*Zt});let s=e+t/2;this.ix=si(s),this.iy=ri(s);const a=this.get("shiftRadius",0);this.setRaw("dx",this.ix*a),this.setRaw("dy",this.iy*a),this.markDirtyPosition()}}}Object.defineProperty(la,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slice"}),Object.defineProperty(la,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fr.classNames.concat([la.className])});class ua extends Pr{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Pr.new(this._root,{width:g,height:g,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:Pr.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:g,height:g})})}}Object.defineProperty(ua,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"}),Object.defineProperty(ua,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.concat([ua.className])});class ha extends ua{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:Pr.new(this._root,{width:g,height:g,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new Gt})}_afterNew(){super._afterNew(),this._disposers.push(this.series);const e=this.seriesContainer.children;this._disposers.push(this.series.events.onAll((t=>{if("clear"===t.type){R(t.oldValues,(e=>{this._removeSeries(e)}));const e=this.get("colors");e&&e.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===t.type)e.moveValue(t.newValue),this._processSeries(t.newValue);else if("setIndex"===t.type)e.setIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("insertIndex"===t.type)e.insertIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("removeIndex"===t.type)this._removeSeries(t.oldValue);else if("moveIndex"===t.type)e.moveValue(t.value,t.newIndex),this._processSeries(t.value);else{if("swap"!==t.type)throw new Error("Unknown IListEvent type");{const i=t.a,r=t.b,n=this.series.indexOf(i),s=this.series.indexOf(r);e.moveValue(i,s),e.moveValue(r,n),this.series.each((e=>{this._processSeries(e),e.markDirtyValues()}))}}})))}_processSeries(e){e.chart=this,e._placeBulletsContainer(this)}_removeSeries(e){e._handleRemoved(),e.isDisposed()||(this.seriesContainer.children.removeValue(e),e._removeBulletsContainer())}}Object.defineProperty(ha,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"}),Object.defineProperty(ha,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ua.classNames.c
1oncat([ha.className])});class ca extends Os{}Object.defineProperty(ca,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"}),Object.defineProperty(ca,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Os.classNames.concat([ca.className])});class da extends Pr{constructor(){super(...arguments),Object.defineProperty(this,"homeButton",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Zn.new(this._root,{width:35,height:35,themeTags:["home"]}))}),Object.defineProperty(this,"plusButton",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Zn.new(this._root,{width:35,height:35,themeTags:["plus"]}))}),Object.defineProperty(this,"minusButton",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Zn.new(this._root,{width:35,height:35,themeTags:["minus"]}))}),Object.defineProperty(this,"_disposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_targetDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew(),this.set("position","absolute"),this.set("layout",this._root.verticalLayout),this.addTag("zoomtools"),this.plusButton.setAll({icon:fr.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.minusButton.setAll({icon:fr.new(this._root,{themeTags:["icon"]}),layout:void 0}),this.homeButton.setAll({icon:fr.new(this._root,{themeTags:["icon"]}),layout:void 0})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("target")){const e=this.get("target"),t=this._prevSettings.target;e&&(e instanceof ss&&(this._targetDisposer=this.addDisposer(e.contents.on("scale",(t=>{t==e.get("minZoomLevel")?this.minusButton.set("disabled",!0):this.minusButton.set("disabled",!1),t==e.get("maxZoomLevel")?this.plusButton.set("disabled",!0):this.plusButton.set("disabled",!1)}))),this.root.events.once("frameended",(()=>{e.get("scale")==e.get("minZoomLevel")&&this.minusButton.set("disabled",!0)}))),this._disposer=new xe([this.plusButton.events.on("click",(()=>{e.zoomIn()})),this.minusButton.events.on("click",(()=>{e.zoomOut()})),this.homeButton.events.on("click",(()=>{e.goHome()}))])),t&&(this._disposer&&this._disposer.dispose(),this._targetDisposer&&this._targetDisposer.dispose())}}}Object.defineProperty(da,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ZoomTools"}),Object.defineProperty(da,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.concat([da.className])});class pa extends cr{constructor(){super(...arguments),Object.defineProperty(this,"canvas",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("canvas")}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:this.canvas.getContext("2d")}),Object.defineProperty(this,"_clearGrain",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){this.canvas.width=this.get("width",200),this.canvas.height=this.get("height",200),(this.isDirty("size")||this.isDirty("density")||this.isDirty("minOpacity")||this.isDirty("maxOpacity")||this.isDirty("colors")||this.isDirty("horizontalGap")||this.isDirty("verticalGap"))&&(this._clearGrain=!0),super._beforeChanged()}_changed(){if(super._changed(),this._clearGrain){const e=this.get("width",200),t=this.get("height",200),i=this.context.getImageData(0,0,e,t),r=Math.max(1,this.get("size",1)),n=this.get("minOpacity",0),s=this.get("maxOpacity",.3),a=this.get("colors",[this.get("color",Rt.fromHex(0))]),o=e/r,l=t/r,u=this.get("density",1),h=this.get("horizontalGap",0)+1,c=this.get("verticalGap",0)+1;for(let t=0;t<l;t++)if(!(c>0&&t/c!=Math.round(t/c)))for(let l=0;l<o;l++){const o=a[Math.floor(Math.random()*a.length)],c=255*(n+Math.random()*(s-n)),d=Math.random();h>0&&l/h!=Math.round(l/h)||d<u&&this._setRectData(l,t,r,e,i.data,o.r,o.g,o.b,c)}this.context.putImageData(i,0,0),this._pattern=this.context.createPattern(this.canvas,"repeat")}this._clearGrain=!1}_checkDirtyFill(){return!1}_setRectData(e,t,i,r,n,s,a,o,l){for(var u=e*i;u<e*i+i;u++)for(var h=t*i;h<t*i+i;h++){var c=4*(h*r+u);n[c]=s,n[c+1]=a,n[c+2]=o,n[c+3]=l}}}Object.defineProperty(pa,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GrainPattern"}
1),Object.defineProperty(pa,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:cr.classNames.concat([pa.className])});class fa extends as{getFill(e){const t=this.getBounds(e);let i=0,r=0,n=t.left||0,s=t.right||0,a=t.top||0;const o=s-n,l=(t.bottom||0)-a;let u=e.get("radius");S(u)?(i=0,r=0):(u=Math.min(o,l)/2,i=o/2,r=l/2);let h=this.get("x"),c=this.get("y");null!=h&&(i=Ke(h,o)),null!=c&&(r=Ke(c,l));const d=this._root._renderer.createRadialGradient(i,r,0,i,r,u),p=this.get("stops");if(p){let e=0;R(p,(t=>{let i=t.offset;S(i)||(i=e/(p.length-1));let r=t.opacity;S(r)||(r=1);let n=t.color;if(n){const e=t.lighten;e&&(n=Rt.lighten(n,e));const s=t.brighten;s&&(n=Rt.brighten(n,s)),d.addColorStop(i,"rgba("+n.r+","+n.g+","+n.b+","+r+")")}e++}))}return d}}Object.defineProperty(fa,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialGradient"}),Object.defineProperty(fa,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:as.classNames.concat([fa.className])});class ga extends cr{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const e=this.get("checkered",!1),t=this.get("centered",!0),i=this.get("gap",0),r=this.get("rotation",0);let n=this.get("width",100),s=this.get("height",100),a=this.get("radius",3),o=2*a+i,l=2*a+i,u=Math.round(n/o),h=Math.round(s/l);o=n/u,l=s/h,0!=r&&(this._display.x=o*si(r),this._display.y=l*ri(r));const c=this.get("color"),d=this.get("colorOpacity");(c||d)&&this._display.beginFill(c,d);for(let n=0==r?0:2*-h;n<2*h;n++)for(let s=0==r?0:2*-u;s<2*u;s++)if(!e||1&~n&&1&~s||!(1&~n)&&!(1&~s)){let e=s*o,r=n*l;t&&(e+=o+i/2,r+=l+i/2),this._display.drawCircle(e-a,r-a,a)}e?(n=n/2-2*i,s=s/2-2*i):(n-=i,s-=i),(c||d)&&this._display.endFill()}}Object.defineProperty(ga,"className",{enumerable:!0,configurable:!0,writable:!0,value:"CirclePattern"}),Object.defineProperty(ga,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:cr.classNames.concat([ga.className])});class ma extends cr{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const e=this.get("width",100),t=this.get("height",100),i=this.get("gap",0),r=this.get("strokeWidth",1);if(i){let n=i+r,s=t/n;for(let t=-s;t<2*s;t++){const i=Math.round(t*n-n/2)+.5;this._display.moveTo(-e,i),this._display.lineTo(2*e,i)}}else this._display.moveTo(0,0),this._display.lineTo(e,0);this._display.lineStyle(r,this.get("color"),this.get("colorOpacity"));let n=this.get("strokeDasharray");S(n)&&(n=n<.5?[0]:[n]),this._display.setLineDash(n);const s=this.get("strokeDashoffset");s&&this._display.setLineDashOffset(s),this._display.endStroke()}}Object.defineProperty(ma,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LinePattern"}),Object.defineProperty(ma,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:cr.classNames.concat([ma.className])});class ba extends cr{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();const e=this.get("checkered",!1),t=this.get("centered",!0),i=this.get("gap",0),r=this.get("rotation",0);let n=this.get("width",100),s=this.get("height",100),a=this.get("maxWidth",5),o=this.get("maxHeight",5);const l=this._display;let u=a+i,h=o+i,c=Math.round(n/u),d=Math.round(s/h);u=n/c,h=s/d,0!=r&&(l.x=u/2*si(r),l.y=-h/2*ri(r));for(let i=0==r?0:2*-d;i<2*d;i++)for(let n=0==r?0:2*-c;n<2*c;n++)if(!e||1&~i&&1&~n||!(1&~i)&&!(1&~n)){let e=n*u,r=i*h;t&&(e+=(u-a)/2,r+=(h-o)/2),l.drawRect(e,r,a,o)}e?(n=n/2-2*i,s=s/2-2*i):(n-=i,s-=i);const p=this.get("color"),f=this.get("colorOpacity");(p||f)&&(l.beginFill(p,f),l.endFill())}}Object.defineProperty(ba,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RectanglePattern"}),Object.defineProperty(ba,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:cr.classNames.concat([ba.className])});class va extends cr{_beforeChanged(){super._beforeChanged(),this.isDirty("svgPath")&&(this._clear=!0)}_draw(){super._draw();const e=this.get("svgPath");null!=e&&this._display.svgPath(e);const t=this.get("color"),i=this.get("colorOpacity");(t||i)&&(this._display.beginFill(t,i),this._display.endFill())}}Object.defineProperty(va,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PathPattern"}
1),Object.defineProperty(va,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:cr.classNames.concat([va.className])});class ya extends rr{_afterNew(){if(super._afterNewApplyThemes(),0===this.get("patterns",[]).length){const e=this.get("color",this.root.interfaceColors.get("stroke"));this.set("patterns",[this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:1,color:e}),this.getRectanglePattern({width:10,height:10,rotation:0,maxWidth:4,maxHeight:4,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:1,gap:6,color:e}),this.getCirclePattern({width:11,height:11,radius:2,color:e}),this.getLinePattern({width:6,height:6,rotation:90,strokeWidth:1,color:e}),this.getRectanglePattern({width:14,height:14,rotation:45,gap:4,maxWidth:6,maxHeight:6,checkered:!0,color:e}),this.getLinePattern({width:6,height:6,rotation:0,strokeWidth:1,color:e}),this.getRectanglePattern({width:15,height:15,rotation:0,gap:5,maxWidth:5,maxHeight:5,checkered:!0,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:e}),this.getCirclePattern({width:20,height:20,radius:3,gap:4,checkered:!0,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:3,strokeDasharray:[4,2],color:e}),this.getRectanglePattern({width:10,height:10,rotation:0,gap:1,maxWidth:9,maxHeight:9,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:-45,strokeWidth:2,gap:1,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:45,strokeWidth:2,gap:1,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:0,strokeWidth:3,gap:1,color:e}),this.getLinePattern({width:1e3,height:1e3,rotation:90,strokeWidth:3,gap:1,color:e})])}this._dirty.patterns=!1}_beforeChanged(){this.isDirty("patterns")&&this.reset()}getIndex(e){const t=this.get("patterns",[]);if(e<t.length&&null!==t[e])return t[e];if(e>t.length-1){return t[e-Math.floor(e*(e/t.length))]}return t[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0))}getLinePattern(e){return ma.new(this.root,e)}getRectanglePattern(e){return ba.new(this.root,e)}getCirclePattern(e){return ga.new(this.root,e)}}Object.defineProperty(ya,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PatternSet"}),Object.defineProperty(ya,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.concat([ya.className])});class _a extends rr{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const e=this.getPrivate("currentPass"),t=this.get("colors",[this.get("baseColor",Rt.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",t.length);const i=this.getPrivate("numColors"),r=this.get("passOptions"),n=this.get("reuse");for(let s=0;s<i;s++)if(n)t.push(t[s]);else{const i=t[s].toHSL();let n=i.h+(r.hue||0)*e;for(;n>1;)n-=1;let a=i.s+(r.saturation||0)*e;a>1&&(a=1),a<0&&(a=0);let o=i.l+(r.lightness||0)*e;for(;o>1;)o-=1;t.push(Rt.fromHSL(n,a,o))}}getIndex(e){const t=this.get("colors",[]),i=this.get("saturation");return e>=t.length?(this.generateColors(),this.getIndex(e)):null!=i?Rt.saturate(t[e],i):t[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}Object.defineProperty(_a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"}),Object.defineProperty(_a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rr.classNames.concat([_a.className])});class wa{static parse(e,t){t=this._applyDefaults(t);try{if(P(e)){let i=JSON.parse(e);return t.reverse&&O(i)&&i.reverse(),i}if(O(e)||C(e))return e;throw"Unable to parse JSON data"}catch(e){return}}static _applyDefaults(e){const t={};return e||(e={}),fe({reverse:!1},((i,r)=>{t[i]=e[i]||r})),t}}class xa{static parse(e,t){t=this._applyDefaults(t);let i,r,n,s=this.CSVToArray(e,t.delimiter),a=[],o=[];for(r=0;
1r<t.skipRows;r++)s.shift();if(t.useColumnNames){o=s.shift();for(let e=0;e<o.length;e++)i=null!=o[e]?o[e].replace(/^\s+|\s+$/gm,""):"",""===i&&(i="col"+e),o[e]=i}for(;n=t.reverse?s.pop():s.shift(),n;){if(t.skipEmpty&&1===n.length&&""===n[0])continue;let e={};for(r=0;r<n.length;r++)i=void 0===o[r]?"col"+r:o[r],e[i]=n[r];a.push(e)}return a}static CSVToArray(e,t){t=t||",";let i=new RegExp("(\\"+t+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+t+"\\r\\n]*))","gi"),r=[[]],n=null;for(;n=i.exec(e),n;){let e,i=n[1];i.length&&i!==t&&r.push([]),e=n[2]?n[2].replace(new RegExp('""',"g"),'"'):n[3],r[r.length-1].push(e)}return r}static _applyDefaults(e){const t={};return e||(e={}),fe({delimiter:",",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},((i,r)=>{t[i]=e[i]||r})),t}}class Da extends rr{constructor(){super(...arguments),Object.defineProperty(this,"_checkDates",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkNumbers",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkColors",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkEmpty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkDeep",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",(()=>this._checkFeatures())),this.on("dateFormat",(()=>this._checkFeatures())),this.on("numericFields",(()=>this._checkFeatures())),this.on("colorFields",(()=>this._checkFeatures())),this.on("emptyAs",(()=>this._checkFeatures()))}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=null!=this.get("emptyAs")),this._checkDeepFeatures()}_checkDeepFeatures(){const e=[];R(["dateFields","numericFields","colorFields"],(t=>{R(this.get(t,[]),(t=>{const i=t.split(".");for(i.pop();i.length>0;)e.push(i.join(".")),i.pop()}))})),this._checkDeep=e.length>0,this.setPrivate("deepFields",e)}processMany(e){O(e)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&R(e,(e=>{this.processRow(e)}))}processRow(e,t=""){fe(e,((i,r)=>{const n=t+i;this._checkEmpty&&(e[i]=this._maybeToEmpty(e[i])),this._checkNumbers&&(e[i]=this._maybeToNumber(n,e[i])),this._checkDates&&(e[i]=this._maybeToDate(n,e[i])),this._checkColors&&(e[i]=this._maybeToColor(n,e[i])),this._checkDeep&&-1!==this.getPrivate("deepFields",[]).indexOf(n)&&C(e[i])&&this.processRow(e[i],n+".")}))}_maybeToNumber(e,t){return-1!==this.get("numericFields").indexOf(e)?w(t):t}_maybeToDate(e,t){return-1!==this.get("dateFields").indexOf(e)?this._root.dateFormatter.parse(t,this.get("dateFormat","")).getTime():t}_maybeToEmpty(e){return null!=e&&""!=e||null==this.get("emptyAs")?e:this.get("emptyAs")}_maybeToColor(e,t){return-1!==this.get("colorFields").indexOf(e)?Rt.fromAny(t):t}}class ka extends Pr{constructor(){super(...arguments),Object.defineProperty(this,"rectangle",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(gr.new(this._root,{themeTags:["rectangle"],fillOpacity:0,fill:Mt(16777215)}))}),Object.defineProperty(this,"gripL",{enumerable:!0,configurable:!0,writable:!0,value:this._createGrip("left")}),Object.defineProperty(this,"gripR",{enumerable:!0,configurable:!0,writable:!0,value:this._createGrip("right")}),Object.defineProperty(this,"gripT",{enumerable:!0,configurable:!0,writable:!0,value:this._createGrip("top")}),Object.defineProperty(this,"gripB",{enumerable:!0,configurable:!0,writable:!0,value:this._createGrip("bottom")}),Object.defineProperty(this,"_is",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_iw",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_positionDP",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHover",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){super._afterNew(),this.addTag("resizer"),this.set("visible",!1),this.gripL.events.on("dragged",(e=>{this._resize(e.target,-1)})),this.gripR.events.on("dragged",(e=>{this._resize(e.target,1)})),this.gripL.events.on("dragstart",(e=>{this._resizeStart(e.target)})),this.gripR.events.on("dragstart",(e=>{this._resizeStart(e.target)})),this.gripT.events.on("dragged",(e=>{this._rotate(e,90)})),this.gripB.events.on("dragged",(e=>{this._rotate(e,-90)})),this.gripT.events.on("dragstart",(e=>{this._resizeStart(e.target)})),this.gripB.events.on("dragstart",(e=>{this._resizeStart(e.target)}))}_resizeStart(e){const t=this.get("sprite");t&&(this._is=t.get("scale",1),this._ix=e.x(),this._iw=this.width()/2)}_resize(e,t){const i=this.get("sprite"),r=this.get("spriteTemplate");if(i){const n=Math.max(.01,this._is*(1+t*(e.x()-this._ix)/this._iw));r?r.set("scale",n):i.set("scale",n),i.states.lookup("default").set("scale",n),this._updatePositions()}}_rotate(e,t){const i=this.get("sprite"),r=this.get("spriteTemplate");if(i){const n=this.parent;if(n){const s=this.get("rotationStep",10);let a=Math.round((di({x:this.x(),y:this.y()},n.toLocal(e.point))+t)/s)*s;r?r.set("rotation",a):i.set("rotation",a),i.states.lookup("default").set("rotation",a),this._updatePositions()}}}_createGrip(e){const t=this.children.push(Pr.new(this._root,{themeTags:["grip",e],setStateOnChildren:!0,draggable:!0}));return t.children.push(Xn.new(this._root,{themeTags:["outline"],centerX:m,centerY:m})),t.children.push(Xn.new(this._root,{centerX:m,centerY:m})),t}_updateChildren(){if(super._updateChildren(),this.isDirty("sprite")){const e=this.get("sprite");if(e){this.show(0),this.setPrivate("visible",!0),this._updatePositions();const t=e.parent;t&&t.children.moveValue(this,0),this._positionDP=e.events.on("positionchanged",(()=>{this._updatePositions()})),this._positionDP=e.events.on("boundschanged",(()=>{this._updatePositions()}))}else this.hide(0),this.setPrivate("visible",!1),this._positionDP&&this._positionDP.dispose()}(this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation"))&&this._updatePositions()}_updatePositions(){const e=this.get("sprite");
1if(e){let t=e.localBounds(),i=e.get("scale",1),r=20,n=(t.right-t.left)*i+r,s=(t.bottom-t.top)*i+r,a=e.get("rotation",0);const o=this.rectangle;let l=e.get("centerX",m),u=e.get("centerY",m),h=0;l instanceof d&&(h=l.value);let c=0;u instanceof d&&(c=u.value),o.setAll({centerX:l,centerY:u,width:n,height:s}),this.setAll({x:e.x()+r*(h-.5)*si(a)-r*(c-.5)*ri(a),y:e.y()+r*(c-.5)*si(a)+r*(h-.5)*ri(a),width:n,height:s,rotation:a}),this.gripT.setAll({x:(.5-h)*n,y:-c*s}),this.gripB.setAll({x:(.5-h)*n,y:(1-c)*s}),this.gripL.setAll({x:-h*n,y:(.5-c)*s}),this.gripR.setAll({x:(1-h)*n,y:(.5-c)*s}),this.rectangle.setAll({width:n,height:s})}}}function Ta(e,t,i){return new Promise(((r,n)=>{let s=null!=i&&"blob"==i.responseType,a=new XMLHttpRequest;if(a.onload=()=>{if(200===a.status){let e,i;if(s)return i=a.response,void Pa(i).then((e=>{let n={xhr:a,error:!1,response:e,blob:i,type:a.getResponseHeader("Content-Type"),target:t};r(n)}));e=a.responseText||a.response;let n={xhr:a,error:!1,response:e,blob:i,type:a.getResponseHeader("Content-Type"),target:t};r(n)}else n({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:t})},a.onerror=()=>{n({xhr:a,error:!0,type:a.getResponseHeader("Content-Type"),target:t})},a.open("GET",e,!0),i&&i.withCredentials&&(a.withCredentials=!0),null!=i){if(null!=i.requestHeaders)for(let e=0;e<i.requestHeaders.length;e++){let t=i.requestHeaders[e];a.setRequestHeader(t.key,t.value)}null!=i.responseType&&(a.responseType=i.responseType)}a.send()}))}function Pa(e){return new Promise(((t,i)=>{const r=new FileReader;r.onload=e=>{t(r.result)},r.onerror=e=>{i(e)},r.readAsText(e)}))}Object.defineProperty(ka,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SpriteResizer"}),Object.defineProperty(ka,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pr.classNames.concat([ka.className])})}},t={};function i(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,i),s.exports}i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(668),i(458),i(710),i(604);var r=i(844);vendors_lib=r}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.