genoverse 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/genoverse.js +1 -1
- package/dist/genoverse.js.map +1 -1
- package/package.json +1 -1
- package/src/js/Track/Model.js +17 -16
- package/src/js/Track.js +3 -1
- package/test/change-width.test.js +71 -0
package/dist/genoverse.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){var t,e,i,n,r={3766:function(t,e,i){"use strict";i.d(e,{G7:function(){return h.default},Hn:function(){return a.default},Qr:function(){return o.default}});var n=i(7810),r=i.n(n),o=i(7145),s=i(7905),a=i(4637),l=i(6637),h=i(4112),c=i(2940);function u(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function d(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?p(Object(i),!0).forEach((function(e){g(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function g(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return y(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var b=r().extend({height:12,margin:2,resizable:!0,border:!0,unsortable:!1,fixedOrder:!1,invert:!1,legend:!1,children:void 0,name:void 0,autoHeight:void 0,hideEmpty:void 0,constructor:function(t){(this.stranded||t.stranded)&&(this.controller=this.controller||s.default,this.model=this.model||l.default),this.models={},this.views={},this.setInterface(),this.extend(t),this.setDefaults(),this.setEvents(),(0,c.Z)(this,"Track"),this.setLengthMap(),this.setMVC(),this.browser.scale>0&&(this.controller.setScale(),this.controller.makeFirstImage()),this.children&&this.addChildTracks(),this.legend&&this.addLegend()},setEvents:function(){},setDefaults:function(){this.config=this.config||{},this.configSettings=this.configSettings||{},this.defaultConfig=this.defaultConfig||{},this.controls=this.controls||[],this.defaultName=this.name,this.configName=[],this.defaultHeight=this.height,this.defaultAutoHeight=this.autoHeight,this.autoHeight=void 0!==this.autoHeight?this.autoHeight:this.browser.trackAutoHeight,this.hideEmpty=void 0!==this.hideEmpty?this.hideEmpty:this.browser.hideEmptyTracks,this.height+=this.margin,this.initialHeight=this.height,"auto"===this.resizable&&(this.autoHeight=!0),this.setDefaultConfig()},setDefaultConfig:function(){var t=this;Object.entries(this.defaultConfig).forEach((function(e){var i=m(e,2),n=i[0],r=i[1];void 0===t.config[n]&&(t.config[n]=r)})),this._setCurrentConfig()},setInterface:function(){var t=this;this._interface={},["Controller","Model","View"].forEach((function(e){Object.keys(b[e].prototype).forEach((function(i){/^(constructor|init|reset|setDefaults|base|extend|lengthMap)$/.test(i)||(t._interface[i]=e.toLowerCase())}))}))},setMVC:function(){var t=this;this.model&&"function"==typeof this.model.abort&&this.model.abort(),this._defaults=this._defaults||{};var e=this.browser.jQuery.extend(!0,{},this.constructor.prototype,this.getSettingsForLength()[1]),i={prop:{},func:{}},n={};if(e.controller=e.controller||this.controller||o.default,Object.entries(e).forEach((function(e){var r=m(e,2),o=r[0],s=r[1];!/^(constructor|init|reset|setDefaults|base|extend|lengthMap)$/.test(o)&&isNaN(o)&&("controller"===t._interface[o]?i["function"==typeof s?"func":"prop"][o]=s:b.prototype.hasOwnProperty(o)||/^(controller|models|views|config|disabled)$/.test(o)||(void 0===t._defaults[o]&&(t._defaults[o]=t[o]),n[o]=s))})),Object.entries(this._defaults).forEach((function(t){var e=m(t,2),i=e[0],r=e[1];void 0===n[i]&&(n[i]=r)})),!this.browser.jQuery.isEmptyObject(this._currentConfig)){var r={};Object.entries(this._currentConfig.prop).forEach((function(e){var o=m(e,2),s=o[0],a=o[1],l=t._interface[s];/model|view/.test(l)?n[l][s]!==a&&(n[l][s]=a,r[l]=!0):"controller"===l?i.prop[s]=a:n[s]=a})),Object.keys(r).forEach((function(t){n[t].setDefaults(!0)}))}this.extend(n),this.model.setChrProps(),this.controller&&"function"!=typeof this.controller?(i.prop.threshold=i.prop.threshold||this.controller.constructor.prototype.threshold,Object.assign(this.controller,i.prop,{model:this.model,view:this.view})):this.controller=this.newMVC(e.controller,i.func,d(d({},i.prop),{},{model:this.model,view:this.view}))},newMVC:function(t,e,i){return new(t.extend(this.browser.jQuery.extend(!0,{},d(d(d({},t.prototype),e),{},{prop:this.prop.bind(this)}))))(d(d({},i),{},{browser:this.browser,width:this.width,track:this}))},setLengthMap:function(){var t=this,e={},i={},n=this.browser.jQuery,r=function t(e,i){var r={browser:!0,width:!0,track:!0};for(var o in e)if(!r[o]){if(r[o]=!0,f(e[o])!==f(i[o]))return!1;if("function"==typeof e[o]&&"function"==typeof i[o]){if(e[o].toString()!==i[o].toString())return!1}else{if(!("object"!==f(e[o])||e[o]instanceof n||t(e[o],i[o])))return!1;if(e[o]!==i[o])return!1}}return Object.keys(i).every((function(t){return r[t]}))},o=[[-1,{view:this.view||h.default,model:this.model||a.default}]];for(var s in this)if(!isNaN(s)){var l=this[s];o.push([Number(s),!1===l?{threshold:Number(s),resizable:"auto",featureHeight:0,model:a.default,view:h.default}:n.extend(!0,{},l)])}o.sort((function(t,e){return e[0]-t[0]})).forEach((function(e,i){var r=m(e,2),s=r[0],l=r[1];if(!l.model||!l.view)for(var c=-1===s?{}:{model:Object.keys(l).some((function(e){return"model"===t._interface[e]})),view:Object.keys(l).some((function(e){return"view"===t._interface[e]}))},u=i+1;u<o.length&&(!l.model&&o[u][1].model&&(l.model=c.model?a.default.extend(n.extend(!0,{},o[u][1].model.prototype)):o[u][1].model),!l.view&&o[u][1].view&&(l.view=c.view?h.default.extend(n.extend(!0,{},o[u][1].view.prototype)):o[u][1].view),!l.model||!l.view);u++);})),o.forEach((function(s,a){var l=m(s,2),h=l[0],c=l[1],u=o[a-1]?o[a-1][1]:{},f=n.extend(!0,{},t.constructor.prototype,c),p={model:{prop:{},func:{}},view:{prop:{},func:{}}};Object.entries(f).forEach((function(e){var i=m(e,2),n=i[0],r=i[1];"constructor"!==n&&p[t._interface[n]]&&(p[t._interface[n]]["function"==typeof r?"func":"prop"][n]=r)})),["model","view"].forEach((function(e){if("function"==typeof f[e]){var i=t["".concat(e,"s")];u[e]instanceof f[e]?f[e]=u[e]:(f[e]=t.newMVC(f[e],p[e].func,p[e].prop),i[h]&&r(i[h].constructor.prototype,d(d({},f[e].constructor.prototype),p[e].prop))&&(f[e]=i[h]))}})),e[h]=c.model=f.model,i[h]=c.view=f.view})),this.lengthMap=o,this.models=e,this.views=i},getSettingsForLength:function(){var t=this.browser.length||this.browser.end-this.browser.start+1;return this.lengthMap.find((function(e){var i=m(e,1)[0];return t>i||1===t&&1===i||t<0&&i<0}))||[]},prop:function(t,e){var i=this,n=this._interface[t]?this[this._interface[t]]:this[["controller","model","view"].find((function(e){return i[e]&&void 0!==i[e][t]}))]||this;return void 0!==e&&(null===e?delete n[t]:n[t]=e),n?n[t]:void 0},setHeight:function(t,e){return t=this.disabled||!0!==e&&t<this.prop("featureHeight")||this.prop("threshold")&&!this.prop("thresholdMessage")&&this.browser.length>this.prop("threshold")?0:Math.max(t,this.prop("minLabelHeight")),this.height=t,t},resetHeight:function(){if(!0===this.resizable){var t=this.prop("resizer");this.autoHeight=!![this.defaultAutoHeight,this.browser.trackAutoHeight].sort((function(t,e){return(null!=t?0:1)-(null!=e?0:1)}))[0],this.controller.resize(this.autoHeight?this.prop("fullVisibleHeight"):this.defaultHeight+this.margin+(t?t.height():0)),this.initialHeight=this.height}},setConfig:function(t,e){var i=this;if("string"==typeof t&&void 0!==e){var n={};n[t]=e,t=n}var r=!1;if(Object.entries(t).forEach((function(t){var e=m(t,2),n=e[0],o=e[1];void 0!==i.configSettings[n]&&void 0!==i.configSettings[n][o]&&i.config[n]!==o&&(i.config[n]=o,r=!0)})),r){var o=this.prop("featuresById");Object.values(o).forEach((function(t){delete t.menuEl})),this._setCurrentConfig(),this.disabled||this.reset.apply(this,u(r?["config",t]:[])),(this.prop("childTracks")||[]).forEach((function(e){e.setConfig(t)})),this.browser.saveConfig()}},_setCurrentConfig:function(){var t,e=this,i=(Array.isArray(this.controls)?this.controls:[]).reduce((function(t,e){return t.add(e)}),this.browser.jQuery()),n=[],r=[],o=[];(this._currentConfig={prop:{},func:{}},Object.keys(this.configSettings).forEach((function(t){var s=e.getConfig(t);s&&(r.push(s),s.featureFilter&&n.push(s.featureFilter),o.push(s.hasOwnProperty("name")?"function"==typeof s.name?s.name.call(e):s.name:!1!==s.featureFilter&&i.filter('[data-control="'.concat(t,'"]')).find('[value="'.concat(e.config[t],'"]')).html()))})),r.length)&&(o=o.filter(Boolean),delete(r=(t=this.browser.jQuery).extend.apply(t,[!0,{}].concat(u(r),[{featureFilters:n,name:"".concat(this.defaultName).concat(o.length?" - ".concat(o.join(", ")):""),configName:[this.defaultName].concat(o)}]))).featureFilter);Object.entries(r).forEach((function(t){var i=m(t,2),n=i[0],r=i[1];e._currentConfig["function"!=typeof r||/^(before|after)/.test(n)?"prop":"func"][n]=r})),r.name&&this.updateName(r.name,r.configName)},getConfig:function(t){return this.configSettings[t][this.config[t]]},addChildTracks:function(){if(this.children){var t=this,e=this.browser,i=[].concat(this.children).filter((function(t){return t.prototype instanceof b})),n={parentTrack:this,controls:"off",threshold:this.prop("threshold")};setTimeout((function(){t.childTracks=i.map((function(i){return i.prototype.isLegend||i.isLegend?(t.addLegend(i.extend(n),!0),t.legendTrack):e.addTrack(i.extend(n))})),t.controller.setLabelHeight()}),1)}},addLegend:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.legend,e=arguments.length>1?arguments[1]:void 0;if(null!=t&&t.prototype.isLegend){var i=this,n=!0===t.prototype.shared?Genoverse.getTrackNamespace(t):t.prototype.shared||this.id,r={id:"".concat(n,"Legend"),name:t.prototype.name||"".concat(this.defaultName," Legend"),type:n};this.legendType=n,!0===e?o():setTimeout(o,1)}function o(){return i.legendTrack=i.browser.legends[r.id]||i.browser.addTrack(t.extend(r)),i.legendTrack}},changeChr:function(){Object.values(this.models).forEach((function(t){return t.setChrProps()}))},updateName:function(t,e){this.controller&&"function"!=typeof this.controller?this.controller.setName(t,e):(this.name=t,this.configName=e||[])},enable:function(){!0===this.disabled&&(this.disabled=!1,this.controller.resize(this.initialHeight),this.reset())},disable:function(){this.disabled||(this.disabled=!0,this.controller.resize(0))},reset:function(){var t;this.setLengthMap(),Object.values(this.models).filter((function(t){return!1!==t.url})).forEach((function(t){return t.init(!0)})),Object.values(this.views).forEach((function(t){return t.init(!0)})),(t=this.controller).reset.apply(t,arguments)},remove:function(){this.browser.removeTrack(this)},destructor:function(){var t=this;["controller","model","view","models","views","lengthMap"].forEach((function(e){var i;"function"==typeof(null==t||null===(i=t[e])||void 0===i?void 0:i.destroy)&&t[e].destroy(),delete t[e]}))}});b.Controller=o.default,b.Model=a.default,b.View=h.default,e.ZP=b},7145:function(t,e,i){"use strict";i.r(e);var n=i(7810),r=i.n(n),o=i(2940);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function h(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return f(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=r().extend({scrollBuffer:1.2,threshold:Infinity,clickTolerance:0,messages:void 0,constructor:function(t){var e=this;Object.entries(t).forEach((function(t){var i=c(t,2),n=i[0],r=i[1];void 0!==r&&(e[n]=r)})),(0,o.Z)(this,"Controller"),this.init()},init:function(){this.setDefaults(),this.addDomElements(),this.addUserEventHandlers(),this.deferreds=[]},setDefaults:function(){this.imgRange={},this.scrollRange={},this.messages=this.messages||{error:"ERROR: ",threshold:"Data for this track is not displayed in regions greater than ",resize:'Some features are currently hidden, <a class="gv-resize">resize to see all</a>'}},reset:function(t){this.abort(),this.setDefaults(),this.resetImages(),this.browser.closeMenus(this),"resizing"!==t&&(this.setScale(),this.makeFirstImage())},resetImages:function(){this.scrollContainer.empty(),this.resetImageRanges()},resetImageRanges:function(){var t=this.browser;this.left=0,this.scrollStart=["ss",t.chr,t.start,t.end].join("-"),this.imgRange[this.scrollStart]=this.imgRange[this.scrollStart]||{left:-2*this.width,right:2*this.width},this.scrollRange[this.scrollStart]=this.scrollRange[this.scrollStart]||{start:Math.max(t.start-t.length,1),end:Math.min(t.end+t.length,t.chromosomeSize)}},setName:function(t,e){this.track.name=t,this.labelName=this.labelName||this.browser.jQuery('<span class="gv-name">').appendTo(this.label),this.labelName.attr("title",t).html(e&&e.length?e.map((function(t){return'<span class="gv-name-part">'.concat(t,"</span>")})):t),this.minLabelHeight=this.label.parents("body").length?Math.max(this.labelName.outerHeight(!0),this.labelName.outerHeight()):0,this.setLabelHeight(!0),t&&!this.track._constructing&&this.track.height<this.minLabelHeight&&this.resize(this.minLabelHeight)},addDomElements:function(){var t=this.track.name||"",e=this.browser.jQuery;this.menus=e(),this.container=e('<div class="gv-track-container">').appendTo(this.browser.wrapper),this.scrollContainer=e('<div class="gv-scroll-container">').appendTo(this.container),this.imgContainer=e('<div class="gv-image-container">').width(this.width).addClass(this.prop("invert")?"gv-invert":""),this.label=e("<li>").appendTo(this.browser.labelContainer).height(this.prop("height")).data("track",this.track),this.context=e("<canvas>")[0].getContext("2d"),this.messageContainer=e('\n <div class="gv-message-container">\n <div class="gv-messages"></div>\n <i class="gv-control gv-collapse fas fa-angle-double-left"></i>\n <i class="gv-control gv-expand fas fa-angle-double-right"></i>\n </div>\n ').appendTo(this.container),this.prop("border")&&e('<div class="gv-track-border">').appendTo(this.container),this.prop("unsortable")?this.label.addClass("gv-unsortable"):e('<div class="gv-handle">').appendTo(this.label),this.prop("children")?(this.superContainer=e('<div class="gv-track-container gv-track-super-container">').insertAfter(this.container),this.container.appendTo(this.superContainer)):this.prop("parentTrack")&&(this.superContainer=this.prop("parentTrack").prop("superContainer"),this.container.appendTo(this.superContainer),this.label.remove(),this.label=this.prop("parentTrack").prop("label")),this.setName(t,this.track.configName),this.container.height(this.prop("disabled")?0:Math.max(this.prop("height"),this.minLabelHeight))},addUserEventHandlers:function(){var t=this,e=this.browser;this.container.on("mouseup",".gv-image-container",(function(i){i.which&&1!==i.which||"number"==typeof e.dragStart&&e.start!==e.dragStart||"select"===e.dragAction&&e.selector.outerWidth(!0)>2||t.click(i)})),this.messageContainer.children().on("click",(function(){var e=t.messageContainer.children(".gv-messages").is(":visible")?" gv-collapsed":"",i=t.messageContainer.find(".gv-msg").data("code");t.messageContainer.attr("class","gv-message-container".concat(e)),t.checkHeight(),"error"!==i&&(document.cookie="gv_msg_".concat(i,"_").concat(t.prop("id"),"=1; expires=").concat(e?"Tue, 19 Jan 2038":"Thu, 01 Jan 1970"," 00:00:00 GMT; path=/"))}))},click:function(t){var e=this.browser.jQuery(t.target),i=t.pageX-this.container.parent().offset().left+this.browser.scaledStart,n=t.pageY-e.offset().top;return this.imgContainer.hasClass("gv-invert")&&(n=e.height()-n),this.browser.makeMenu(this.getClickedFeatures(i,n,e),t,this.track)},getClickedFeatures:function(t,e,i){var n={x:t,y:e,w:1,h:1},r=this.scale,o=r<1?this.clickTolerance:0;o&&(n.x-=o/2,n.w+=o);var s=this[i&&i.hasClass("gv-labels")?"labelPositions":"featurePositions"].search(n);return o?s.filter((function(e){var i=e.position[r].bounds,n=i.x+i.w/2,s=Math.min(i.x,n-o/2),a=Math.max(i.x+i.w,n+o/2);return t>=s&&t<=a})).sort((function(e,i){return Math.abs(e.position[r].start-t)-Math.abs(i.position[r].start-t)})):this.model.sortFeatures(s)},showMessage:function(t,e){var i=this.messageContainer.children(".gv-messages");if(!i.children(".gv-".concat(t)).show().length){var n=this.browser.jQuery('<div class="gv-msg gv-'.concat(t,'">').concat(this.messages[t]).concat(e||"","</div>")).data("code",t).prependTo(i);if("resize"===t){var r=this;n.children("a.gv-resize").on("click",(function(){r.resize(r.fullVisibleHeight)}))}this.messageContainer[document.cookie.match("".concat(["gv_msg",t,this.prop("id")].join("_"),"=1"))?"addClass":"removeClass"]("gv-collapsed")}var o=this.messageContainer.show().outerHeight(!0);o>this.prop("height")&&this.resize(o,void 0,!1),i=null},hideMessage:function(t){var e=this.messageContainer.find(".gv-msg");t?(e=e.filter(".gv-".concat(t)).hide()).length&&!e.siblings().filter((function(){return"none"!==this.style.display})).length&&this.messageContainer.hide():(e.hide(),this.messageContainer.hide()),e=null},showError:function(t){this.showMessage("error",t)},checkHeight:function(){var t;(this.browser.length>this.threshold?this.thresholdMessage?(this.showMessage("threshold",this.thresholdMessage),this.fullVisibleHeight=Math.max(this.messageContainer.outerHeight(!0),this.minLabelHeight)):this.fullVisibleHeight=0:this.thresholdMessage&&this.hideMessage("threshold"),this.prop("resizable"))&&(this.browser.length>this.threshold?(t=this.prop("autoHeight"),this.prop("autoHeight",!0)):this.fullVisibleHeight=this.visibleFeatureHeight()||(this.messageContainer.is(":visible")?this.messageContainer.outerHeight(!0):this.prop("hideEmpty")?0:this.minLabelHeight),this.autoResize(),void 0!==t&&this.prop("autoHeight",t))},visibleFeatureHeight:function(){var t={x:this.browser.scaledStart,w:this.width,y:0,h:9e99},e=this.scale,i=this.featurePositions.search(t),n=this.prop("hideEmpty")?0:this.minLabelHeight,r=Math.max.apply(Math,h(i.map((function(t){return t.position[e].bottom})).concat(n)));return"separate"===this.prop("labels")&&(this.labelTop=r,r+=Math.max.apply(Math,h(this.labelPositions.search(t).concat(this.prop("repeatLabels")?i:[]).map((function(t){return t.position[e].label.bottom})).concat(n)))),r},autoResize:function(){var t=this.prop("autoHeight");t||"separate"===this.prop("labels")?this.resize(t?this.fullVisibleHeight:this.prop("height"),this.labelTop,!1):this.toggleExpander(!1)},resize:function(t,e,i){t=this.track.setHeight(t,e),"number"==typeof e&&this.imgContainers.children(".gv-labels").css("top",e),this.container.height(t)[t?"show":"hide"](),this.setLabelHeight(),this.toggleExpander(),!1!==i&&this.browser.saveConfig()},toggleExpander:function(t){if(!0===this.prop("resizable")){var e=this.prop("featureMargin"),i=this.prop("height");if(this.fullVisibleHeight-e.top-e.bottom>i&&!this.prop("disabled")){this.showMessage("resize");var n=this,r=this.messageContainer.outerHeight(!0);r>i&&this.resize(r,void 0,t),this.expander=(this.expander||this.browser.jQuery('<div class="gv-expander gv-static">').width(this.width).appendTo(this.container).on("click",(function(){n.resize(n.fullVisibleHeight)})))[0===this.prop("height")?"hide":"show"]()}else this.expander&&(this.hideMessage("resize"),this.expander.hide())}},setLabelHeight:function(t){var e=this.prop("parentTrack");if(e)e.controller.setLabelHeight();else{var i=[this].concat(this.prop("childTracks")||[]),n=i.reduce((function(t,e){return t+(e.prop("disabled")?0:e.prop("height"))}),0);if(this.label.height(this.prop("disabled")?0:t&&this.minLabelHeight?Math.max(n,this.minLabelHeight):n),i.length>1){var r=i[0].prop("height");i.slice(1).forEach((function(t){var e=t.prop("height");t.prop("labelName").css("top",r)[e?"removeClass":"addClass"]("gv-hide"),r+=e}))}}},setWidth:function(t){var e=this.track;[this,e,e.model,e.view].forEach((function(e){e.width=t})),this.imgContainer.add(this.expander).width(t)},setScale:function(){var t=this;this.scale=this.browser.scale,this.track.setMVC(),this.resetImageRanges();var e=this.prop("labels");e&&"overlay"!==e&&this.model.setLabelBuffer(this.browser.labelBuffer),Infinity!==this.threshold&&"auto"!==this.prop("resizable")&&(this.thresholdMessage=this.view.formatLabel(this.threshold)),Object.entries(this.view.setScaleSettings(this.scale)).forEach((function(e){var i=c(e,2),n=i[0],r=i[1];t[n]=r})),this.hideMessage()},move:function(t){this.left+=t,this.scrollContainer.css("left",this.left);var e=this.scrollStart;if(this.imgRange[e]&&this.imgRange[e].left+this.left>-this.scrollBuffer*this.width){var i=this.scrollRange[e].start-1;this.makeImage({scale:this.scale,chr:this.browser.chr,start:i-this.browser.length+1,end:i,left:this.imgRange[e].left,cls:e}),(this.imgRange[e]||{}).left-=this.width,(this.scrollRange[e]||{}).start-=this.browser.length}if(this.imgRange[e]&&this.imgRange[e].right+this.left<this.scrollBuffer*this.width){var n=this.scrollRange[e].end+1;this.makeImage({scale:this.scale,chr:this.browser.chr,start:n,end:n+this.browser.length-1,left:this.imgRange[e].right,cls:e}),(this.imgRange[e]||{}).right+=this.width,(this.scrollRange[e]||{}).end+=this.browser.length}},moveTo:function(t,e,i,n){var r=this.scrollRange[this.scrollStart],o=["ss",t,e,i].join("-");this.scrollRange[o]||e>r.end||i<r.start?(this.resetImageRanges(),this.makeFirstImage(o)):(this.move("number"==typeof n?n:(e-this.browser.start)*this.scale),this.checkHeight())},makeImage:function(t){t.scaledStart=t.scaledStart||t.start*t.scale,t.width=t.width||this.width,t.height=t.height||this.prop("height"),t.featureHeight=t.featureHeight||0,t.labelHeight=t.labelHeight||0;var e,i=this,n=this.browser.jQuery,r=this.browser.length>this.threshold,o=this.imgContainer.clone().addClass("".concat(t.cls," gv-loading").replace(".","_")).css({left:t.left,display:t.cls===this.scrollStart?"block":"none"}),s=!!t.background&&n('<img class="gv-bg">').hide().addClass(t.background).data(t).prependTo(o),a=this.browser.jQuery('<img class="gv-data">').hide().data(t).appendTo(o).on("load",(function(){n(this).fadeIn("fast").parent().removeClass("gv-loading"),n(this).siblings(".gv-bg").show()}));if(t.container=o,this.imgContainers.push(o[0]),this.scrollContainer.append(this.imgContainers),!r&&!this.model.checkDataRange(t.chr,t.start,t.end)){var l=this.prop("dataBuffer");t.start-=l.start,t.end+=l.end,e=this.model.getData(t.chr,t.start,t.end)}return e||(e=n.Deferred(),setTimeout(e.resolve,1)),this.deferreds.push(e),e.done((function(){var e=r?[]:i.model.findFeatures(t.chr,t.start,t.end);i.render(e,a),s&&i.renderBackground(e,s)})).fail((function(t){i.showError(t)}))},makeFirstImage:function(t){var e=this.browser.jQuery,i=e.Deferred();if(this.scrollContainer.children().hide().filter(".".concat(t||this.scrollStart)).show().length)return this.scrollContainer.css("left",0),this.checkHeight(),i.resolve();var n=this,r=this.browser.chr,o=this.browser.start,s=this.browser.end,a=this.browser.length,l=this.scale,c=this.scrollStart,u=[{chr:r,start:o,end:s,scale:l,cls:c,left:0}],f=0,p=this.width;this.browser.isStatic||(o>1&&(u.push({chr:r,start:o-a,end:o-1,scale:l,cls:c,left:-this.width}),f=-this.width,p+=this.width),s<this.browser.getChromosomeSize(r)&&(u.push({chr:r,start:s+1,end:s+a,scale:l,cls:c,left:this.width}),p+=this.width));var d=this.imgContainer.clone().addClass("gv-loading").css({left:f,width:p}).prependTo(this.scrollContainer.css("left",0));function g(){e.when.apply(e,h(u.map((function(t){return n.makeImage(t)})))).done(i.resolve),d.remove()}if(a>this.threshold||this.model.checkDataRange(r,o,s))g();else{var m=this.prop("dataBuffer");this.model.getData(r,o-m.start-a,s+m.end+a).done(g).fail((function(t){n.showError(t)}))}return i},render:function(t,e){var i=e.data();t=this.view.positionFeatures(this.view.scaleFeatures(t,i.scale),i);var n=this.browser.jQuery("<canvas>").attr({width:i.width,height:i.featureHeight||1}),r="separate"===this.prop("labels")&&i.labelHeight?n.clone().attr("height",i.labelHeight):n,o=n[0].getContext("2d"),s=r[0].getContext("2d");switch(o.font=s.font=this.prop("font"),this.prop("labels")){case!1:break;case"overlay":s.textAlign="center",s.textBaseline="middle";break;default:s.textAlign="left",s.textBaseline="top"}this.view.draw(t,o,s,i.scale),e.attr("src",n[0].toDataURL()),s!==o&&e.clone(!0).attr({class:"gv-labels",src:r[0].toDataURL()}).insertAfter(e),this.checkHeight()},renderBackground:function(t,e,i){var n=this.browser.jQuery("<canvas>").attr({width:this.width,height:i||1})[0];this.view.drawBackground(t,n.getContext("2d"),e.data()),e.attr("src",n.toDataURL())},populateMenu:function(t){var e=t.label?t.label[0]:t.id;return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){l(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({title:e,Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)},Object.entries(t).reduce((function(t,i){var n=c(i,2),r=n[0],o=n[1];return"object"===s(o)||o===e||["chr","start","end","sort"].includes(r)?t:Object.assign(t,l({},r,o))}),{}))},insertPropertiesIntoMenu:function(t,e,i,n){return this.browser.insertPropertiesIntoMenu(t,e,i,n,this.track)},abort:function(){this.deferreds.forEach((function(t){"pending"===t.state()&&t.reject()})),this.deferreds=[]},destroy:function(){this.abort(),this.container.add(this.label).add(this.menus).remove()}})},8455:function(t,e,i){"use strict";i.r(e);var n=i(7145);e.default=n.default.extend({getClickedFeatures:function(t,e){var i=this.base(t,e)[0];return!!i&&this.makeSeqFeatureMenu(i,Math.floor(t/this.scale))},makeSeqFeatureMenu:function(t,e){return t.featureMenus=t.featureMenus||{},t.featureMenus[e]=t.featureMenus[e]||{title:t.sequence.charAt(e-t.start),Location:"".concat(t.chr,":").concat(e)},t.featureMenus[e].title?t.featureMenus[e]:void 0}})},7905:function(t,e,i){"use strict";i.r(e);var n=i(7145);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=n.default.extend({constructor:function(t){if(this.base(t),"function"!=typeof this._makeImage){var e=this.prop("strand"),i=this.prop("featureStrand");if(-1===e)this._makeImage=this.track.makeReverseImage?this.track.makeReverseImage.bind(this):this.makeImage,this.makeImage=function(){};else{e=this.prop("strand",1),this._makeImage=this.makeImage,this.makeImage=this.makeForwardImage;var n=this.track;setTimeout((function(){n.reverseTrack=n.browser.addTrack(n.constructor.extend({id:n.id?"".concat(n.id,"Reverse"):void 0,strand:-1,url:!1,order:"number"==typeof n.orderReverse?n.orderReverse:n.order,forwardTrack:n})),n.controller._deferredReverseTrackImages.forEach((function(t){var e;return(e=n.controller)._makeReverseTrackImage.apply(e,r(t))})),delete n.controller._deferredReverseTrackImages}),1)}i||this.prop("featureStrand",e)}},makeForwardImage:function(t){this._makeReverseTrackImage(t,this._makeImage(t))},_makeReverseTrackImage:function(t,e){var i=this.prop("reverseTrack");i?e&&"function"==typeof e.done?e.done((function(){i.controller._makeImage(t,e)})):i.controller._makeImage(t,e):this._deferredReverseTrackImages=(this._deferredReverseTrackImages||[]).concat([[t,e]])},destroy:function(){this.destroying||(this.destroying=!0,this.browser.removeTrack(this.prop("forwardTrack")||this.prop("reverseTrack")),this.base())}})},4637:function(t,e,i){"use strict";i.r(e);var n=i(7810),r=i.n(n),o=i(702),s=i.n(o),a=i(2940);function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function u(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return d(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=r().extend({dataType:"json",allData:!1,dataBuffer:void 0,xhrFields:void 0,url:void 0,urlParams:void 0,urlParamsGenerator:function(){return{}},data:void 0,dataRequestLimit:void 0,showServerErrors:!1,constructor:function(t){var e=this;Object.entries(t).forEach((function(t){var i=f(t,2),n=i[0],r=i[1];void 0!==r&&(e[n]=r)})),(0,a.Z)(this,"Model"),this.init()},init:function(t){this.setDefaults(t),t&&Object.values(this.featuresById).forEach((function(t){delete t.position})),t&&!this.data||(delete this.dataRangesByChr,delete this.featuresByChr,this.featuresById={},this.setChrProps()),this.dataLoading=[]},setDefaults:function(t){this.dataBuffer=this.dataBuffer||{start:0,end:0},this.urlParams=this.urlParams||this.urlParamsGenerator(),this.xhrFields=this.xhrFields||{},this.dataBufferStart=this.dataBuffer.start,this._url||(this._url=this.url),t&&!this.url&&this._url&&(this.url=this._url)},setChrProps:function(){var t=this.browser.chr;this.dataRangesByChr=this.dataRangesByChr||{},this.featuresByChr=this.featuresByChr||{},this.dataRangesByChr[t]=this.dataRangesByChr[t]||new(s()),this.featuresByChr[t]=this.featuresByChr[t]||new(s())},features:function(t){return this.featuresByChr[t]},dataRanges:function(t){return this.dataRangesByChr[t]},parseURL:function(t,e,i,n){return this.allData&&(e=1,i=this.browser.getChromosomeSize(t)),(n||this.url).replace(/__ASSEMBLY__/,this.browser.assembly).replace(/__CHR__/,t).replace(/__START__/,e).replace(/__END__/,i)},setLabelBuffer:function(t){this.dataBuffer.start=Math.max(this.dataBufferStart,t)},getData:function(t,e,i,n){var r=this.browser.jQuery;e=Math.max(1,e),i=Math.min(this.browser.getChromosomeSize(t),i);var o=r.Deferred();if(void 0!==this.data)return this.receiveData("function"==typeof this.data.sort?this.data.sort((function(t,e){return t.start-e.start})):this.data,t,e,i),o.resolve();var s=this,a=[],l=i-e+1;if(!this.url)return o.resolve();if(this.dataRequestLimit&&l>this.dataRequestLimit)for(var h=Math.ceil(l/this.dataRequestLimit);h--;)a.push([e,h?e+=this.dataRequestLimit-1:i]),e++;else a.push([e,i]);return r.when.apply(r,u(a.map((function(e){var i=r.ajax({url:s.parseURL(t,e[0],e[1]),data:s.urlParams,dataType:s.dataType,context:s,xhrFields:s.xhrFields,success:function(i){this.receiveData(i,t,e[0],e[1])},error:function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];this.track.controller.showError(this.showServerErrors&&(t.responseJSON||{}).message?t.responseJSON.message:"".concat(e," while getting the data, see console for more details"),[t,e].concat(n))},complete:function(t){this.dataLoading=this.dataLoading.filter((function(e){return t!==e}))}});return i.coords=[t,e[0],e[1]],"function"==typeof n&&i.done(n),s.dataLoading.push(i),i})))).done(o.resolve),o},receiveData:function(t,e,i,n){i=Math.max(i,1),n=Math.min(n,this.browser.getChromosomeSize(e)),this.setDataRange(e,i,n),this.parseData(t,e,i,n),this.allData&&(this.url=!1)},parseData:function(t,e,i){var n=this;t.forEach((function(t,r){t.chr=t.chr||e,t.sort=i+r,n.insertFeature(t)}))},updateData:function(t){this.data=t,this.track.reset()},setDataRange:function(t,e,i){this.allData&&(e=1,i=this.browser.getChromosomeSize(t)),this.dataRanges(t).insert({x:e,w:i-e+1,y:0,h:1},[e,i])},checkDataRange:function(t,e,i){e=Math.max(1,e),i=Math.min(this.browser.getChromosomeSize(t),i);var n=this.dataRanges(t).search({x:e,w:i-e+1,y:0,h:1}).sort((function(t,e){return t[0]-e[0]}));if(!n.length)return!1;for(var r=1===n.length?n[0][0]:9e99,o=1===n.length?n[0][1]:-9e99,s=0;s<n.length-1;s++){var a=f(n[s],2),l=a[0],h=a[1],c=f(n[s+1],2),u=c[0],p=c[1];if(!(l<=h&&(u>=p||u+1>=h)))return!1;r=Math.min(r,l),o=Math.max(o,u,p)}return e>=r&&i<=o},insertFeature:function(t){if(t.chr){t.id||(t.id=t.ID||this.hashCode(JSON.stringify(h(h({},t),{},{sort:""}))));var e=this.features(t.chr);e&&!this.featuresById[t.id]&&(t.subFeatures&&(t.subFeatures.sort((function(t,e){return t.start-e.start})).forEach((function(e){e.start=Math.min(Math.max(e.start,t.start),t.end),e.end=Math.max(Math.min(e.end,t.end),t.start)})),t.subFeatures.unshift({start:t.start,end:t.start,fake:!0}),t.subFeatures.push({start:t.end,end:t.end,fake:!0})),e.insert({x:t.start,y:0,w:t.end-t.start+1,h:1},t),this.featuresById[t.id]=t)}},findFeatures:function(t,e,i){var n=this,r=this.features(t).search({x:e-this.dataBuffer.start,y:0,w:i-e+this.dataBuffer.start+this.dataBuffer.end+1,h:1});return(this.prop("featureFilters")||[]).forEach((function(t){r=r.filter((function(e){return t.call(n,e)}))})),this.sortFeatures(r)},sortFeatures:function(t){return t.sort((function(t,e){return t.sort-e.sort}))},hashCode:function(t){var e=0;if(t.length)for(var i=0;i<t.length;i++){e=(e<<5)-e+t.charCodeAt(i),e&=e}return String(e)},abort:function(){this.dataLoading.forEach((function(t){return t.abort()})),this.dataLoading=[]},destroy:function(){this.abort(),delete this.data,delete this.dataRangesByChr,delete this.featuresByChr,delete this.featuresById}})},2122:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({dataType:"text",init:function(){this.isLocal&&(this.url=!1),this.largeFile||this.indexFile||(this.allData=!0),this.base.apply(this,arguments)},getData:function(t){var e=this;if(this.isLocal&&this.dataFile){var i=new FileReader,n=this.browser.jQuery.Deferred();return i.onload=function(i){n.done((function(){e.receiveData(i.target.result,t,1,e.browser.getChromosomeSize(t))})).resolve()},i.readAsText(this.dataFile),n}for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return this.base.apply(this,[t].concat(o))}})},8350:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var n=i(9817),r=i(9408);function o(t,e){this.block=t,this.offset=e}function s(t,e,i){var n=4294967296*(255&t[e+6])+16777216*(255&t[e+5])+65536*(255&t[e+4])+256*(255&t[e+3])+(255&t[e+2]),r=t[e+1]<<8|t[e];return 0!=n||0!=r||i?new o(n,r):null}function a(t,e){e=Math.min(e||1,t.byteLength-50);for(var i=[],n=[0],o=0;n[0]<e;){var s=new Uint8Array(t,n[0],12),a=s[11]<<8|s[10],l=(0,r.Z)(t,12+a+n[0],Math.min(65536,t.byteLength-12-a-n[0]),n);n[0]+=8,o+=l.byteLength,i.push(l)}if(1==i.length)return i[0];for(var h=new Uint8Array(o),c=0,u=0;u<i.length;++u){var f=new Uint8Array(i[u]);arrayCopy(f,0,h,c,f.length),c+=f.length}return h.buffer}function l(t,e){this.minv=t,this.maxv=e}o.prototype.toString=function(){return this.block+":"+this.offset};function h(){}function c(t,e){var i=e,r=(0,n.N1)(t,i);i+=4;for(var o=0;o<r;++o){(0,n.N1)(t,i);i+=8+16*(0,n.N1)(t,i+4)}for(var a=(0,n.N1)(t,i),l=1e9,h=i+=4,c=0;c<a;++c){var u=s(t,h);if(h+=8,u){var f=u.block;u.offset>0&&(f+=65536),f<l&&(l=f);break}}return{minBlockIndex:l,nbin:r,length:(i+=8*a)-e}}function u(t,e,i,r,o){var s=new h;s.data=t,s.bai=e,s.indexChunks=i;var l=s.indexChunks?s.indexChunks.minBlockIndex:1e9;function f(t){if(!t)return r(null,"Couldn't access BAM");var e=a(t,t.byteLength),i=new Uint8Array(e),o=(0,n.N1)(i,0);if(21840194!=o)return r(null,"Not a BAM file, magic=0x"+o.toString(16));for(var l=(0,n.N1)(i,4),h=0;h<l;++h)String.fromCharCode(i[h+8]);var c=(0,n.N1)(i,l+8),u=l+12;s.chrToIndex={},s.indexToChr=[];for(h=0;h<c;++h){for(var f=(0,n.N1)(i,u),p="",d=0;d<f-1;++d)p+=String.fromCharCode(i[u+4+d]);(0,n.N1)(i,u+f+4);s.chrToIndex[p]=h,0==p.indexOf("chr")?s.chrToIndex[p.substring(3)]=h:s.chrToIndex["chr"+p]=h,s.indexToChr.push(p),u=u+8+f}return s.indices?r(s):void 0}if(s.indexChunks){var p=s.indexChunks.chunks;s.indices=[];for(var d=0;d<p.length;d++)s.indices[d]=null;s.data.slice(0,l).fetch(f)}else s.bai.fetch((function(e){var a=function(t){if(!t)return"Couldn't access BAI";var e=new Uint8Array(t),i=(0,n.N1)(e,0);if(21578050!=i)return r(null,"Not a BAI file, magic=0x"+i.toString(16));var o=(0,n.N1)(e,4);s.indices=[];for(var a=8,h=0;h<o;++h){var u=a,f=c(e,u);a+=f.length,l=Math.min(f.minBlockIndex,l),f.nbin>0&&(s.indices[h]=new Uint8Array(t,u,a-u))}return!0}(e);!0!==a?s.bai.url&&void 0===o?(s.bai.url=s.data.url.replace(new RegExp(".bam$"),".bai"),u(t,s.bai,i,r,!0)):r(null,a):s.data.slice(0,l).fetch(f)}))}h.prototype.blocksForRange=function(t,e,i){var r=this.indices[t];if(!r)return[];for(var o=function(t,e){var i,n=[];for(--e,n.push(0),i=1+(t>>26);i<=1+(e>>26);++i)n.push(i);for(i=9+(t>>23);i<=9+(e>>23);++i)n.push(i);for(i=73+(t>>20);i<=73+(e>>20);++i)n.push(i);for(i=585+(t>>17);i<=585+(e>>17);++i)n.push(i);for(i=4681+(t>>14);i<=4681+(e>>14);++i)n.push(i);return n}(e,i),a=[],h=0;h<o.length;++h)a[o[h]]=!0;for(var c=[],u=[],f=(0,n.N1)(r,0),p=4,d=0;d<f;++d){var g=(0,n.N1)(r,p),m=(0,n.N1)(r,p+4);if(p+=8,a[g])for(var v=0;v<m;++v){var y=s(r,p),b=s(r,p+8);(g<4681?u:c).push(new l(y,b)),p+=16}else p+=16*m}var w=(0,n.N1)(r,p),x=null,_=Math.min(e>>14,w-1),k=Math.min(i>>14,w-1);for(h=_;h<=k;++h){var S=s(r,p+4+8*h);S&&((!x||S.block<x.block||S.block==x.block&&S.offset<x.offset)&&(x=S))}var C=[];if(null!=x)for(h=0;h<u.length;++h){var T=u[h];(T.maxv.block>x.block||T.maxv.block==x.block&&T.maxv.offset>=x.offset)&&C.push(T)}u=C;var P=[];for(h=0;h<u.length;++h)P.push(u[h]);for(h=0;h<c.length;++h)P.push(c[h]);P.sort((function(t,e){var i=t.minv.block-e.minv.block;return 0!=i?i:t.minv.offset-e.minv.offset}));var j=[];if(P.length>0){var O=P[0];for(h=1;h<P.length;++h){var A=P[h];A.minv.block==O.maxv.block?O=new l(O.minv,A.maxv):(j.push(O),O=A)}j.push(O)}return j},h.prototype.fetch=function(t,e,i,n,r){var o=this;r=r||{};var s,l=this.chrToIndex[t];if(void 0===l)s=[];else{if(null===this.indices[l]&&this.indexChunks.chunks[l]){var h=this.indexChunks.chunks[l];return this.bai.slice(h[0],h[1]).fetch(function(o){var s=new Uint8Array(o);return this.indices[l]=s,this.fetch(t,e,i,n,r)}.bind(this))}(s=this.blocksForRange(l,e,i))||n(null,"Error in index fetch")}var c,u=[],f=0;!function t(){if(f>=s.length)return n(u);if(c){var h=new Uint8Array(c),p=o.readBamRecords(h,s[f].minv.offset,u,e,i,l,r);return c=null,++f,p?n(u):t()}var d=s[f],g=d.minv.block,m=d.maxv.block+65536;o.data.slice(g,m-g).fetch((function(e){return c=a(e,d.maxv.block-d.minv.block+1),t()}))}()};var f=["=","A","C","x","G","x","x","x","T","x","x","x","x","x","x","N"],p=["M","I","D","N","S","H","P","=","X","?","?","?","?","?","?","?"];function d(){}h.prototype.readBamRecords=function(t,e,i,r,o,s,a){for(;;){var l=e+(0,n.N1)(t,e)+4;if(l>t.length)return!1;var h=new d,c=(0,n.N1)(t,e+4),u=(0,n.N1)(t,e+8),g=(0,n.N1)(t,e+12),m=(65280&g)>>8,v=255&g,y=(0,n.N1)(t,e+16),b=(4294901760&y)>>16,w=65535&y,x=(0,n.N1)(t,e+20),_=(0,n.N1)(t,e+24),k=(0,n.N1)(t,e+28);(0,n.N1)(t,e+32);if(h.segment=this.indexToChr[c],h.flag=b,h.pos=u,h.mq=m,a.light&&(h.seqLength=x),!a.light||a.includeName){for(var S="",C=0;C<v-1;++C)S+=String.fromCharCode(t[e+36+C]);h.readName=S}if(!a.light){_>=0&&(h.nextSegment=this.indexToChr[_],h.nextPos=k);for(var T=e+36+v,P="",j=0;j<w;++j){var O=(0,n.N1)(t,T);P=P+(O>>4)+p[15&O],T+=4}h.cigar=P;var A="",E=x+1>>1;for(C=0;C<E;++C){var M=t[T+C];(A+=f[(240&M)>>4]).length<x&&(A+=f[15&M])}T+=E,h.seq=A;var I="";for(C=0;C<x;++C)I+=String.fromCharCode(t[T+C]+33);for(T+=x,h.quals=I;T<l;){var D,H=String.fromCharCode(t[T],t[T+1]),F=String.fromCharCode(t[T+2]);if("A"==F)D=String.fromCharCode(t[T+3]),T+=4;else if("i"==F||"I"==F)D=(0,n.N1)(t,T+3),T+=7;else if("c"==F||"C"==F)D=t[T+3],T+=4;else if("s"==F||"S"==F)D=(0,n.tq)(t,T+3),T+=5;else if("f"==F)D=(0,n.yl)(t,T+3),T+=7;else if("Z"==F||"H"==F)for(T+=3,D="";;){var R=t[T++];if(0==R)break;D+=String.fromCharCode(R)}else{if("B"!=F)throw"Unknown type "+F;var L,N,z=String.fromCharCode(t[T+3]),B=(0,n.N1)(t,T+4);if("i"==z||"I"==z||"f"==z)L=4,N="f"==z?n.yl:n.N1;else if("s"==z||"S"==z)L=2,N=n.tq;else{if("c"!=z&&"C"!=z)throw"Unknown array type "+z;L=1,N=n.$_}T+=8,D=[];for(var W=0;W<B;++W)D.push(N(t,T)),T+=L}h[H]=D}}if((!r||h.pos<=o&&h.pos+x>=r)&&(void 0!==s&&c!=s||i.push(h)),h.pos>o)return!0;e=l}};var g=function(t,e,i,n,r){t.slice(0,10).fetch((function(o){return o?u(t,e,i,n,r):n(null,"Couldn't access BAM.")}),{timeout:5e3})},m=i(2122).default.extend({getData:function(t,e,i){var r=this,o=this.browser.jQuery.Deferred();if(!this.bamFile)if(this.url)this.bamFile=new n.zn(this.url),this.baiFile=new n.zn(this.url+this.prop("indexExt"));else{if(!this.dataFile||!this.indexFile)return o.reject(new Error("BAM files must be accompanied by a .bai index file"));this.bamFile=new n.PE(this.dataFile),this.baiFile=new n.PE(this.indexFile)}return g(this.bamFile,this.baiFile,null,(function(n,s){s?console.error(s):n.fetch(t,e,i,(function(n,s){s?console.error(s):(r.receiveData(n,t,e,i),o.resolve())}))})),o},insertFeature:function(t){return t.id="".concat(t.chr,":").concat(t.readName,":").concat(t.pos),t.start=t.pos+1,t.end=t.start+t.seq.length,t.sequence=t.seq,this.base(t)}})},4475:function(t,e,i){"use strict";i.r(e);var n=i(2122);function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=n.default.extend({parseData:function(t,e){var i=this,n="string"==typeof t?t.split("\n"):t,r=this.prop("thinHeight"),s=this.prop("thickHeight");function a(t){return!isNaN(t)}n.forEach((function(t){var n=t.split("\t").filter((function(t){return t}));if(!(n.length<3||"track"===n[0]||"browser"===n[0])){var l=n.length;if(n[0]===String(e)||n[0].toLowerCase()==="chr".concat(e)||n[0].match("[^1-9]".concat(e,"$"))){var h={chr:e,start:parseInt(n[1],10)+1,end:parseInt(n[2],10),name:n[3],color:"#000000",originalFeature:n};if(l>3&&(h.score=parseFloat(n[4],10)),l>5&&(h.strand=n[5]),l>7&&(h.thickStart=parseInt(n[6],10)+1,h.thickEnd=parseInt(n[7],10),h.drawThick=n[6]!==n[7]),n[8]?h.color="rgb(".concat(n[8],")"):h.color=i.scoreColor(isNaN(h.score)?1e3:h.score),12===l){h.blockCount=parseInt(n[9],10);var c=[],u=n[10].split(",").filter(a),f=n[11].split(",").filter(a);u.forEach((function(t,e){var i={start:h.start+parseInt(f[e],10),height:r};if(i.end=i.start+parseInt(t,10)-1,h.drawThick&&i.start<=h.thickEnd&&i.end>=h.thickStart)if(i.start>=h.thickStart&&i.end<=h.thickEnd)i.height=s,c.push(i);else if(i.start<h.thickStart&&i.end<=h.thickEnd){var n=o(o({},i),{},{end:h.thickStart}),a=o(o({},i),{},{start:h.thickStart,height:s});c.push.apply(c,[n,a])}else if(i.start>=h.thickStart&&i.end>h.thickEnd){var l=o(o({},i),{},{start:h.thickEnd}),u=o(o({},i),{},{end:h.thickEnd,height:s});c.push.apply(c,[u,l])}else{var p=o(o({},i),{},{end:h.thickStart}),d=o(o({},i),{},{start:h.thickEnd}),g={start:h.thickStart,end:h.thickEnd,height:s};c.push.apply(c,[p,g,d])}else c.push(i)})),c.length&&(h.subFeatures=c)}i.insertFeature(h)}}}))},scoreColor:function(t){return t<=166?"rgb(219,219,219)":t<=277?"rgb(186,186,186)":t<=388?"rgb(154,154,154)":t<=499?"rgb(122,122,122)":t<=611?"rgb(94,94,94)":t<=722?"rgb(67,67,67)":t<=833?"rgb(42,42,42)":t<=944?"rgb(21,21,21)":"#000000"}})},7699:function(t,e,i){"use strict";i.r(e);var n=i(2122);e.default=n.default.extend({parseData:function(t,e){var i=this;t.split("\n").forEach((function(t){if(t.length&&0!==t.indexOf("#")){var n=t.split("\t");if(!(n.length<5)){var r=n[0].toLowerCase();(r===String(e)||r==="chr".concat(e)||r.match("[^1-9]".concat(e,"$"))||r.match("^".concat(e,"\\b")))&&i.insertFeature({id:n.slice(0,5).join("|"),chr:e,start:parseInt(n[3],10),end:parseInt(n[4],10),source:n[1],type:n[2],score:n[5],strand:"-"===n[6]?-1:1,label:"".concat(n[1]," ").concat(n[2]," ").concat(n[3],"-").concat(n[4])})}}}))}})},2743:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return f}});var n=i(4191),r=i.n(n),o=i(9408);r().prototype.structure.uint64=function(){return parseInt(this.view.getUint64(),10)};var s={string0:function(t){return this.parse(["string",t]).replace(/\0+$/,"")},header:{magic:["string",4],n_ref:"int32",format:"int32",col_seq:"int32",col_beg:"int32",col_end:"int32",meta:"int32",skip:"int32",l_nm:"int32",names:["string0",function(){return this.current.l_nm}]},chunk:{cnk_beg:"uint64",cnk_end:"uint64"},bin:{bin:"uint32",n_chunk:"int32",chunkseq:["array","chunk",function(){return this.current.n_chunk}]},index:{n_bin:"int32",binseq:["array","bin",function(){return this.current.n_bin}],n_intv:"int32",intervseq:["array","uint64",function(){return this.current.n_intv}]},tabix:{head:"header",indexseq:["array","index",function(){return this.current.head.n_ref}]}},a={header:{id1:"uint8",id2:"uint8",cm:"uint8",flg:"uint8",mtime:"uint32",xfl:"uint8",os:"uint8",xlen:"uint16"},subheader:{si1:"uint8",si2:"uint8",slen:"uint16",bsize:"uint16"},bgzfHd:{head:"header",subhead:"subheader"}},l=65536,h=function(t,e){this.vcf_data=t,this.tbi_data=e};h.prototype.readTabix=function(t){var e=function(t){var e={},i=0;for(var n in t)e[t[n].bin]=i,i++;return e};this.inflateRegion(this.tbi_data,0,1e8,(function(i){var n=new(r())(i,s).parse("tabix");n.head.names=n.head.names.split("\0"),n.bhash={};for(var o=0;o<n.head.n_ref;o++)n.bhash[o]=e(n.indexseq[o].binseq);t(n)}))},h.prototype.getRecords=function(t,e,i,n){var r=this,o=[],s=this.getChunks(t,e,i);if(-1===s)return n([]);!function t(a){a<s.length?r.inflateRegion(r.vcf_data,s[a].start,s[a].end,(function(n,l){var h=n.byteLength-l+s[a].inner_end;(n=r.buffer2String(n).slice(s[a].inner_start,h)).length>0&&(n=n.split("\n").filter((function(t){if(t.length>0){var n=parseInt(t.split("\t")[1],10);return e<=n&&n<=i}return!1})).join("\n"),o.push(n)),t(++a)})):n(o.join("\n"))}(0)},h.prototype.getChunks=function(t,e,i){var n=this,r=this.tabix;if(-1===(t=r.head.names.indexOf(t.toString())))return-1;var o=this.reg2bins(e,i+1).filter((function(e){return void 0!==r.bhash[t][e]})).map((function(e){return n.bin2Ranges(r,t,e)})).reduce((function(t,e){return e.forEach((function(e){t.push(e)})),t}),[]);return o=this.remove_duplicates(o)},h.prototype.inflateRegion=function(t,e,i,n){var r=this,o=[];this.inflateBlock(t,e,(function e(s,a){o.push(s),-1===a?n(r.appendBuffers(o),o[o.length-1].byteLength):a<=i?r.inflateBlock(t,a,e):n(r.appendBuffers(o),o[o.length-1].byteLength)}))},h.prototype.inflateBlock=function(t,e,i){this.getBGZFHD(t,e,(function(n){t.slice(e,n.subhead.bsize+1).fetch((function(t){var r=(0,o.Z)(t,18,t.byteLength-18),s=e+n.subhead.bsize+1;27===n.subhead.bsize&&(s=-1),i(r,s)}))}))},h.prototype.getBGZFHD=function(t,e,i){t.slice(e,19).fetch((function(t){var e=new(r())(t,a).parse("bgzfHd");i(e)}))},h.prototype.appendBuffers=function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i].byteLength;for(var n=new Uint8Array(e),r=0,o=0;o<t.length;o++)n.set(new Uint8Array(t[o]),r),r+=t[o].byteLength;return n.buffer},h.prototype.buffer2String=function(t){for(var e="",i=new Uint8Array(t),n=0;n<i.length;++n)e+=String.fromCharCode(i[n]);return e},h.prototype.remove_duplicates=function(t){for(var e={},i=t.length-1;i>=0;i--){var n=JSON.stringify(t[i]);e[n]?t.splice(i,1):e[n]=!0}return t},h.prototype.bin2Ranges=function(t,e,i){for(var n,r=[],o=t.indexseq[e].binseq[t.bhash[e][i]].chunkseq,s=0;s<o.length;s++)n=o[s],r.push({start:Math.floor(n.cnk_beg/l),inner_start:n.cnk_beg%l,end:Math.floor(n.cnk_end/l),inner_end:n.cnk_end%l});return r},h.prototype.reg2bins=function(t,e){var i,n=[];for(--e,n.push(0),i=1+(t>>26);i<=1+(e>>26);++i)n.push(i);for(i=9+(t>>23);i<=9+(e>>23);++i)n.push(i);for(i=73+(t>>20);i<=73+(e>>20);++i)n.push(i);for(i=585+(t>>17);i<=585+(e>>17);++i)n.push(i);for(i=4681+(t>>14);i<=4681+(e>>14);++i)n.push(i);return n};var c=h,u=i(9817),f=i(2122).default.extend({getData:function(t,e,i,n){var r=this;if(!this.prop("gz"))return this.base(t,e,i,n);var o=this.browser.jQuery.Deferred();if(!this.vcfFile)if(this.url)this.vcfFile=new u.zn(this.url),this.tbiFile=new u.zn(this.url+this.prop("indexExt"));else{if(!this.dataFile||!this.indexFile)return o.reject(new Error("GZipped VCF files must be accompanied by a .tbi index file"));this.vcfFile=new u.PE(this.dataFile),this.tbiFile=new u.PE(this.indexFile)}return this.makeVCF(this.vcfFile,this.tbiFile).then((function(n){r.cachedVCF=n,n.getRecords(t,e,i,(function(n){r.receiveData(n,t,e,i),o.resolve()}))})),o},makeVCF:function(t,e){var i=this.browser.jQuery.Deferred();if(this.cachedVCF)i.resolve(this.cachedVCF);else{var n=new c(t,e);n.readTabix((function(t){n.tabix=t,i.resolve(n)}))}return i},parseData:function(t,e){var i=this,n=t.split("\n"),r=!!this.allData&&(this.prop("maxQual")||0);n.forEach((function(t){if(t.length&&0!==t.indexOf("#")){var n=t.split("\t");if(!(n.length<5||n[0]!==String(e)&&n[0]!=="chr".concat(e))){var o=n.slice(0,3).join("|"),s=parseInt(n[1],10),a=n[4].split(",");a.unshift(n[3]),a.forEach((function(t,r){var a=s+t.length-1;i.insertFeature({id:"".concat(o,"|").concat(t),sort:r,chr:e,start:s,end:a,width:a-s,allele:0===r?"REF":"ALT",sequence:t,label:t,labelColor:"#FFFFFF",originalFeature:n})})),!1!==r&&(r=Math.max(r,n[5]))}}})),r&&this.prop("maxQual",r)}})},9486:function(t,e,i){"use strict";i.r(e);var n=i(4176),r=i(2122);e.default=n.Model.extend({dataType:"text",getData:function(){var t;return this.url?this.base.apply(this,arguments):(this.isLocal=!0,this.dataFile=this.track.dataFile,(t=r.default.prototype).getData.apply(t,arguments))},parseData:function(t,e,i,n){for(var r,o=t.split("\n"),s=[];o.length&&(r=o.shift())&&(-1!==r.indexOf("#")||-1!==r.indexOf("browser")||-1!==r.indexOf("track")););if(r){var a=r.split(/\s+/),l=parseInt(a[1].split("=")[1].replace("chr",""),10);if("fixedStep"===a[0]){var h=parseInt(a[3].split("=")[1],10),c=a[4]?parseInt(a[4].split("=")[1],10):1,u=parseInt(a[2].split("=")[1],10);o.forEach((function(t){s.push({chr:l,start:u,end:u+c,height:parseFloat(t)}),u+=h}))}else if("variableStep"===a[0]){var f=a[2]?parseInt(a[2].split("=")[1],10):1;o.forEach((function(t){var e=t.split(/\s+/),i={chr:l,start:parseInt(e[0],10),height:parseFloat(e[1])};i.end=i.start+f,s.push(i)}))}}return this.base.call(this,s,e,i,n)}})},432:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({})},2865:function(t,e,i){"use strict";i.r(e);var n=i(432);e.default=n.default.extend({url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=gene;content-type=application/json",dataRequestLimit:5e6,parseData:function(t,e){var i=this;t.forEach((function(t){"gene"!==t.feature_type||i.featuresById[t.id]||(t.chr=t.chr||e,t.label=1===parseInt(t.strand,10)?"".concat(t.external_name||t.id," >"):"< ".concat(t.external_name||t.id),t.transcripts=[],i.insertFeature(t))}))}})},2051:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({threshold:1e5,chunkSize:1e3,buffer:0,dataType:"text",setChrProps:function(){var t=this.browser.chr;this.base(),this.chunksByChr=this.chunksByChr||{},this.chunksByChr[t]=this.chunksByChr[t]||{}},getData:function(t,e,i){return e=e-e%this.chunkSize+1,i=i+this.chunkSize-i%this.chunkSize,this.base(t,e,i)},parseData:function(t,e,i){t=t.replace(/\n/g,""),this.prop("lowerCase")&&(t=t.toLowerCase());for(var n=0;n<t.length;n+=this.chunkSize)if(!this.chunksByChr[e][i+n]){var r={id:"".concat(e,":").concat(i,":").concat(n),chr:e,start:i+n,end:i+n+this.chunkSize-1,sequence:t.substr(n,this.chunkSize),sort:i+n};this.chunksByChr[e][r.start]=r,this.insertFeature(r)}}})},8583:function(t,e,i){"use strict";i.r(e);var n=i(2051);e.default=n.default.extend({url:"//rest.ensembl.org/sequence/region/human/__CHR__:__START__-__END__?content-type=text/plain",dataRequestLimit:1e7})},8970:function(t,e,i){"use strict";i.r(e);var n=i(2051);e.default=n.default.extend({url:"https://wtsi-web.github.io/Genoverse/data/Homo_sapiens.GRCh37.72.dna.chromosome.1.fa",startByte:void 0,lineLength:void 0,getData:function(t,e,i){var n=this,r=this.browser.jQuery,o=r.Deferred();return r.when(this.getStartByte()).done((function(){e=e-e%n.chunkSize+1,i=i+n.chunkSize-i%n.chunkSize;var s=e-1+Math.floor((e-1)/n.lineLength)+n.startByte,a=i-1+Math.floor((i-1)/n.lineLength)+n.startByte;r.ajax({url:n.parseURL(),dataType:n.dataType,headers:{Range:"bytes=".concat(s,"-").concat(a)},xhrFields:n.xhrFields,success:function(r){n.receiveData(r,t,e,i)},error:n.track.controller.showError}).done((function(){o.resolve()})).fail((function(){o.reject()}))})).fail((function(){o.reject()})),o},getStartByte:function(){var t=this;return this.startByteRequest?this.startByteRequest:void 0===this.startByte||void 0===this.lineLength?(this.startByteRequest=this.browser.jQuery.ajax({url:this.parseURL(),dataType:"text",headers:{Range:"bytes=0-300"},xhrFields:this.xhrFields,success:function(e){0===e.indexOf(">")?t.startByte=e.indexOf("\n")+1:t.startByte=0,t.lineLength=e.indexOf("\n",t.startByte)-t.startByte}}),this.startByteRequest):void 0}})},4914:function(t,e,i){"use strict";i.r(e);var n=i(4637),r=i(8583);function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=n.default.extend({seqModel:r.default,getSeqModel:function(){var t=this.prop("models");return t.seq=t.seq||this.track.newMVC(this.seqModel),t.seq},getData:function(t,e,i){var n=this,r=this.browser.jQuery.Deferred(),o=this.getSeqModel().checkDataRange(t,e,i);return this.base(t,e,i).done((function(){o?r.resolve():n.getSeqModel().getData(t,e,i).done(r.resolve)})),r},insertFeature:function(t){return this.base(s(s({},t),{},{end:t.start+t.alt_allele.length-1,length:t.alt_allele.length,sequence:t.alt_allele}))},checkDataRange:function(t,e,i){return this.base(t,e,i)&&this.getSeqModel().checkDataRange(t,e,i)},findFeatures:function(t,e,i){return this.getSeqModel().findFeatures(t,e,i).concat(this.base(t,e,i))}})},6637:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({init:function(t){if(this.base(t),!t){var e=this.prop("forwardTrack");e&&(this.featuresByChr=e.prop("featuresByChr"),this.features=e.prop("features"),this.featuresById=e.prop("featuresById"))}},parseURL:function(){return this.urlParams.strand||(this.urlParams.strand=this.prop("featureStrand")),this.base.apply(this,arguments)},findFeatures:function(){var t=this.track.featureStrand;return this.base.apply(this,arguments).filter((function(e){return e.strand===t}))}})},9875:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({})},3814:function(t,e,i){"use strict";i.r(e);var n=i(9875);function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=n.default.extend({url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=transcript;feature=exon;feature=cds;content-type=application/json",dataRequestLimit:5e6,setDefaults:function(){this.geneIds={},this.seenGenes=0,this.base.apply(this,arguments)},parseData:function(t,e){var i=this,n=this.featuresById,r=[];t.filter((function(t){return"transcript"===t.feature_type})).forEach((function(t,o){n[t.id]||(i.geneIds[t.Parent]=i.geneIds[t.Parent]||++i.seenGenes,t.chr=t.chr||e,t.label=1===parseInt(t.strand,10)?"".concat(t.external_name||t.id," >"):"< ".concat(t.external_name||t.id),t.sort=1e10*i.geneIds[t.Parent]+(0===t.logic_name.indexOf("ensembl_havana")?0:2e9)+("protein_coding"===t.biotype?0:1e9)+t.start+o,t.cdsStart=Infinity,t.cdsEnd=-Infinity,t.exons={},t.subFeatures=[],i.insertFeature(t)),r.push(t.id)})),t.filter((function(t){return"cds"===t.feature_type&&n[t.Parent]})).forEach((function(t){n[t.Parent].cdsStart=Math.min(n[t.Parent].cdsStart,t.start),n[t.Parent].cdsEnd=Math.max(n[t.Parent].cdsEnd,t.end)})),t.filter((function(t){return"exon"===t.feature_type&&n[t.Parent]&&!n[t.Parent].exons[t.id]})).forEach((function(t){t.end<n[t.Parent].cdsStart||t.start>n[t.Parent].cdsEnd?n[t.Parent].subFeatures.push(o({utr:!0},t)):(t.start<n[t.Parent].cdsStart&&n[t.Parent].subFeatures.push(o(o({utr:!0},t),{},{end:n[t.Parent].cdsStart})),n[t.Parent].subFeatures.push(o(o({},t),{},{start:Math.max(t.start,n[t.Parent].cdsStart),end:Math.min(t.end,n[t.Parent].cdsEnd),strand:n[t.Parent].strand})),t.end>n[t.Parent].cdsEnd&&n[t.Parent].subFeatures.push(o(o({utr:!0},t),{},{start:n[t.Parent].cdsEnd})))})),r.forEach((function(t){return n[t].subFeatures.sort((function(t,e){return t.start-e.start}))}))}})},4112:function(t,e,i){"use strict";i.r(e);var n=i(7810),r=i.n(n),o=i(702),s=i.n(o),a=i(2940);function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function u(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return d(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=r().extend({fontHeight:10,fontFamily:"sans-serif",fontWeight:"normal",fontColor:void 0,color:"#000000",minScaledWidth:.5,precisionFactor:0,widthCorrection:1,labels:!0,repeatLabels:!1,bump:!1,alwaysReposition:!1,depth:void 0,featureHeight:void 0,featureMargin:void 0,subFeatureJoinStyle:!1,subFeatureJoinLineWidth:.5,constructor:function(t){var e=this;Object.entries(t).forEach((function(t){var i=f(t,2),n=i[0],r=i[1];void 0!==r&&(e[n]=r)})),(0,a.Z)(this,"View"),this.init()},init:function(){this.setDefaults(),this.scaleSettings={}},setDefaults:function(){var t=this;this.featureMargin=this.featureMargin||{top:3,right:1,bottom:1,left:0},["top","right","bottom","left"].forEach((function(e){"number"!=typeof t.featureMargin[e]&&(t.featureMargin[e]=0)})),this.context=this.browser.jQuery("<canvas>")[0].getContext("2d"),this.featureHeight=void 0!==this.featureHeight?this.featureHeight:this.prop("defaultHeight"),this.font="".concat(this.fontWeight," ").concat(this.fontHeight,"px ").concat(this.fontFamily),this.labelUnits=["bp","kb","Mb","Gb","Tb"],this.context.font=this.font,this.labels&&"overlay"!==this.labels&&(this.depth||"labels"===this.bump)&&(this.labels="separate")},setScaleSettings:function(t){var e=this.browser.chr;if(this.scaleSettings[e]||(this.scaleSettings[e]={}),!this.scaleSettings[e][t]){var i=new(s());this.scaleSettings[e][t]={imgContainers:this.browser.jQuery(),featurePositions:i,labelPositions:"separate"===this.labels?new(s()):i}}return this.scaleSettings[e][t]},roundPixelValue:function(t){return this.precisionFactor?Math.round(t*this.precisionFactor)/this.precisionFactor:t},scaleFeatures:function(t,e){var i=this,n=this.roundPixelValue(Math.max(e,this.widthCorrection));return t.forEach((function(t){t.position||(t.position={}),t.position[e]||(t.position[e]={start:i.roundPixelValue(t.start*e),width:Math.max(i.roundPixelValue((t.end-t.start)*e+n),i.minScaledWidth),height:t.height||i.featureHeight}),t.subFeatures&&(t.subFeatures.forEach((function(i){void 0===i.height&&(i.height=t.position[e].height)})),i.scaleFeatures(t.subFeatures,e))})),t},positionFeatures:function(t,e){var i=this;return e.margin=this.prop("margin"),t.forEach((function(t){return i.positionFeature(t,e)})),e.width=Math.ceil(e.width),e.height=Math.ceil(e.height),e.featureHeight=Math.max(Math.ceil(e.featureHeight),this.prop("resizable")?Math.max(this.prop("height"),this.prop("minLabelHeight")):0),e.labelHeight=Math.ceil(e.labelHeight),t},positionFeature:function(t,e){var i=this,n=e.scale,r=this.scaleSettings[t.chr][n];if(r){var o=t.subFeatures||[];if(t.position[n].X=t.position[n].start-e.scaledStart,o.forEach((function(t){t.position[n].x=t.position[n].start-e.scaledStart,i.subFeatureJoinStyle&&(t.position[n].join=t.position[n].join||{},t.position[n].join.x=t.position[n].start+t.position[n].width-e.scaledStart)})),this.alwaysReposition||!t.position[n].positioned){if(t.position[n].H=t.position[n].height+this.featureMargin.bottom,t.position[n].W=t.position[n].width+(t.marginRight||this.featureMargin.right),t.position[n].Y=("number"==typeof t.position[n].y?t.position[n].y:"number"==typeof t.y?t.y*t.position[n].H:0)+(t.marginTop||this.featureMargin.top),t.label){"string"==typeof t.label&&(t.label=t.label.split("\n"));var s=this.context;t.labelHeight=t.labelHeight||(this.fontHeight+2)*t.label.length,t.labelWidth=t.labelWidth||Math.max.apply(Math,u(t.label.map((function(t){return Math.ceil(s.measureText(t).width)}))))+1,!0===this.labels?(t.position[n].H+=t.labelHeight,t.position[n].W=Math.max(t.labelWidth,t.position[n].W)):"separate"!==this.labels||t.position[n].label||(t.position[n].label={x:t.position[n].start,y:t.position[n].Y,w:t.labelWidth,h:t.labelHeight})}var a={x:t.position[n].start,y:t.position[n].Y,w:t.position[n].W,h:t.position[n].H+(t.marginTop||this.featureMargin.top)};t.position[n].bounds=a,!0===this.bump&&this.bumpFeature(a,t,n,r.featurePositions),r.featurePositions.insert(a,t),t.position[n].bottom=t.position[n].Y+a.h+e.margin,t.position[n].positioned=!0}var l=!(!this.subFeatureJoinStyle||!o.length)&&{height:Math.max.apply(Math,u(o.map((function(t){return t.fake?0:t.position[n].height}))))/2*(t.strand>0?-1:1),y:t.position[n].Y+t.position[n].height/2};o.forEach((function(e,i){e.position[n].y=t.position[n].Y+(t.position[n].height-e.position[n].height)/2,l&&o[i+1]&&Object.assign(e.position[n].join,h({width:o[i+1].position[n].x-e.position[n].join.x},l))})),"separate"===this.labels&&t.position[n].label&&(!this.alwaysReposition&&t.position[n].label.positioned||(this.bumpFeature(t.position[n].label,t,n,r.labelPositions),t.position[n].label.bottom=t.position[n].label.y+t.position[n].label.h+e.margin,t.position[n].label.positioned=!0,r.labelPositions.insert(t.position[n].label,t)),e.labelHeight=Math.max(e.labelHeight,t.position[n].label.bottom)),e.featureHeight=Math.max(e.featureHeight,t.position[n].bottom),e.height=Math.max(e.height,e.featureHeight+e.labelHeight)}},bumpFeature:function(t,e,i,n){for(var r=this.scaleSettings[e.chr][i],o=n===r.labelPositions&&n!==r.featurePositions,s=!0,a=0;s;){if(this.depth&&++a>=this.depth){if(!o)for(var l=r.featurePositions.search(t),h=l.length;h--;)if(!1!==l[h].position[i].visible){e.position[i].visible=!1;break}break}var c=n.search(t)[0];c&&c.id!==e.id?t.y=c.position[i][o?"label":"bounds"].y+c.position[i][o?"label":"bounds"].h:s=!1}o||(e.position[i].Y=t.y)},draw:function(t,e,i,n){var r=this;t.forEach((function(t){if(!1!==t.position[n].visible){var o=h(h({},t),{},{x:t.position[n].X,y:t.position[n].Y,width:t.position[n].width,height:t.position[n].height,labelPosition:t.position[n].label});r.drawFeature(o,e,i,n),o.legend!==t.legend&&(t.legend=o.legend,t.legendColor=o.color)}}))},drawFeature:function(t,e,i,n){!1===t.color||t.color||this.setFeatureColor(t),t.subFeatures?this.drawSubFeatures(t,e,i,n):((t.x<0||t.x+t.width>this.width)&&this.truncateForDrawing(t),!1!==t.color&&(e.fillStyle=t.color,e.fillRect(t.x,t.y,t.width,t.height)),!0===t.clear&&e.clearRect(t.x,t.y,t.width,t.height),t.borderColor&&(e.strokeStyle=t.borderColor,e.strokeRect(t.x,Math.floor(t.y)+.5,t.width,t.height))),this.labels&&t.label&&this.drawLabel(t,i,n),t.decorations&&this.decorateFeature(t,e,n)},drawSubFeatures:function(t,e,i,n){var r=this,o=this.browser.jQuery.extend(!0,{},t,{subFeatures:!1,label:!1}),s=this.browser.jQuery.extend(!0,[],t.subFeatures),a=t.joinColor||t.color;s.forEach((function(t){t.fake||r.drawFeature(h(h(h({},o),t.position[n]),t),e,i,n),t.position[n].join&&t.position[n].join.width>0&&r.drawSubFeatureJoin(h({color:a},t.position[n].join),e)}))},drawLabel:function(t,e,i){var n=this,r=t.untruncated,o=(r||t).width;if(!("overlay"===this.labels&&t.labelWidth>=Math.floor(o))){t.labelPosition&&(e.labelPositions=e.labelPositions||new(s())),"string"==typeof t.label&&(t.label=[t.label]);var a,l,h,c=(r||t).x,u=this.repeatLabels&&Math.ceil((o-Math.max(i,1)-("overlay"===this.labels?t.labelWidth:0))/this.width)||1,f=o/u;this.repeatLabels&&(i>1||"overlay"!==this.labels)&&(f=this.browser.length*i,u=Math.ceil(o/f)),t.labelColor||this.setLabelColor(t),e.fillStyle=t.labelColor,"overlay"===this.labels?(a=[t.label.join(" ")],l=t.y+(t.height+1)/2,h=0):(a=t.label,l=t.labelPosition?t.labelPosition.y:t.y+t.height+this.featureMargin.bottom,h=this.fontHeight+2);var p="center"===e.textAlign?.5:0,d=t.labelWidth*p;u>1&&(p+=Math.max(Math.floor(-(t.labelWidth+c)/f),0));for(var g=function(){var r=c+p*f;if(r+t.labelWidth>=0){if(r-d>n.width||p>=1&&r+t.labelWidth>t.position[i].X+t.position[i].width)return"break";a.forEach((function(n,o){var s=l+o*h;e.labelPositions&&e.labelPositions.search({x:r,y:s,w:t.labelWidth,h:h}).length?t.position[i].label.visible=!1:(e.fillText(n,r,s),e.labelPositions&&e.labelPositions.insert({x:r,y:s,w:t.labelWidth,h:h},n))}))}};p<u;p++){if("break"===g())break}}},setFeatureColor:function(t){t.color=this.color},setLabelColor:function(t){t.labelColor=this.fontColor||t.color||this.color},shadeColor:function(t,e){var i=parseInt(t.slice(1),16),n=i>>16,r=i>>8&255,o=255&i;return"#".concat((16777216+65536*(Math.round((255-n)*e)+n)+256*(Math.round((255-r)*e)+r)+(Math.round((255-o)*e)+o)).toString(16).slice(1))},truncateForDrawing:function(t){var e=Math.min(Math.max(t.x,-1),this.width+1),i=t.x-e+t.width;i+e>this.width&&(i=this.width-e+1),t.untruncated={x:t.x,width:t.width},t.x=e,t.width=Math.max(i,0)},drawSubFeatureJoin:function(t,e){var i=this.truncateSubFeatureJoinForDrawing(t);if(i){var n=e.lineWidth;switch(e.strokeStyle=t.color,e.lineWidth=this.subFeatureJoinLineWidth,e.beginPath(),e.moveTo(i.x1,i.y1),this.subFeatureJoinStyle){case"line":e.lineTo(i.x3,i.y1);break;case"peak":e.lineTo(i.x2,i.y2),e.lineTo(i.x3,i.y3);break;case"curve":e.quadraticCurveTo(i.x2,i.y2,i.x3,i.y3)}e.stroke(),e.lineWidth=n}},truncateSubFeatureJoinForDrawing:function(t){var e=t.y,i=e;"line"===this.subFeatureJoinStyle&&(this.truncateForDrawing(t),e+=.5);var n,r,o=t.x,s=t.x+t.width;if(s<0||o>this.width)return!1;if("peak"===this.subFeatureJoinStyle){var a=(o+s)/2;n=a;var l=((r=t.y+t.height)-e)/(a-o);a<0?(r=t.y+l*s,n=0):a>this.width&&(r=t.y+l*(this.width-t.x),n=this.width),o<0&&(e=a<0?r:t.y-l*t.x,o=0),s>this.width&&(i=a>this.width?r:r-l*(this.width-n),s=this.width)}else"curve"===this.subFeatureJoinStyle&&(n=t.x+t.width/2,r=t.y+t.height);return{x1:o,y1:e,x2:n,y2:r,x3:s,y3:i}},formatLabel:function(t){var e=Math.floor((t.toString().length-1)/3),i=this.labelUnits[e];return t/=Math.pow(10,3*e),"".concat(Math.floor(t)).concat("bp"===i?"":".".concat((t.toString().split(".")[1]||"").concat("00").substring(0,2))," ").concat(i)},drawBackground:function(){},decorateFeature:function(){},destroy:function(){delete this.scaleSettings}})},5600:function(t,e,i){"use strict";i.r(e);var n=i(4112);e.default=n.default.extend({featureHeight:5,labels:!0,repeatLabels:!0,bump:!0})},1766:function(t,e,i){"use strict";i.r(e);var n=i(5600);e.default=n.default.extend({setFeatureColor:function(t){t.color="#000000",0===t.logic_name.indexOf("ensembl_havana")?(t.color="#CD9B1D",t.labelColor="#B78000",t.legend="Merged Ensembl/Havana"):!{sense_intronic:1,sense_overlapping:1,processed_transcript:1,nonsense_mediated_decay:1,non_stop_decay:1,antisense:1,retained_intron:1,tec:1,non_coding:1,ambiguous_orf:1,disrupted_domain:1,"3prime_overlapping_ncrna":1}[t.biotype.toLowerCase()]?"protein_coding"===t.biotype?(t.color="#A00000",t.legend="Protein coding"):t.biotype.indexOf("pseudogene")>-1?(t.color="#666666",t.legend="Pseudogene"):/rna/i.test(t.biotype)||"ribozyme"===t.biotype?(t.color="#8B668B",t.legend="RNA gene"):/^tr_.+_gene$/i.test(t.biotype)?(t.color="#CD6600",t.legend="TR gene"):/^ig_.+_gene$/i.test(t.biotype)&&(t.color="#8B4500",t.legend="IG gene"):(t.color="#0000FF",t.legend="Processed transcript"),t.labelColor=t.labelColor||t.color}})},2703:function(t,e,i){"use strict";i.r(e);var n=i(4112);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=n.default.extend({featureMargin:{top:0,right:0,bottom:0,left:0},colors:{default:"#CCCCCC",A:"#73E973",T:"#DE4C61",G:"#FFFF77",C:"#688EC0"},labelColors:{default:"#000000",T:"#FFFFFF",C:"#FFFFFF"},labels:"overlay",setDefaults:function(){this.base.apply(this,arguments);var t=this.prop("lowerCase");this.labelYOffset="number"==typeof this.labelYOffset?this.labelYOffset:(this.featureHeight+1)/2,this.widestLabel="string"==typeof this.widestLabel?this.widestLabel:t?"g":"G",this.labelWidth={},this.labelWidth[this.widestLabel]=Math.ceil(this.context.measureText(this.widestLabel).width)+1,t&&[this.colors,this.labelColors].forEach((function(t){return Object.entries(t).forEach((function(e){var i=r(e,2),n=i[0],o=i[1];t[n.toLowerCase()]=o}))}))},draw:function(t,e,i,n){var r=this;e.textBaseline="middle",e.textAlign="center";var o=Math.max(n,this.minScaledWidth);t.forEach((function(t){return r.drawSequence(t,e,n,o)}))},drawSequence:function(t,e,i,n){for(var r=this.labelWidth[this.widestLabel]<n-1,o=0;o<t.sequence.length;o++){var s=t.position[i].X+o*i;if(!(s<-i||s>e.canvas.width)){var a=t.sequence.charAt(o);e.fillStyle=this.colors[a]||this.colors.default,e.fillRect(s,t.position[i].Y,n,this.featureHeight),r&&(e.fillStyle=this.labelColors[a]||this.labelColors.default,e.fillText(a,s+n/2,t.position[i].Y+this.labelYOffset))}}}})},3224:function(t,e,i){"use strict";i.r(e);var n=i(2703);e.default=n.default.extend({featureHeight:15,featureMargin:{top:0,right:0,bottom:4,left:0},bump:!0,showLegend:!1,positionFeature:function(t,e){var i=t.position[e.scale];t.alt_allele&&(i.positioned||(i.reference={end:i.start+t.ref_allele.length*e.scale}),i.reference.x=i.reference.end-e.scaledStart),this.base(t,e)},bumpFeature:function(t,e){if(e.alt_allele){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];this.base.apply(this,[t,e].concat(n))}},draw:function(t,e,i,n){var r={seq:[],snv:[]};t.forEach((function(t){r[t.alt_allele?"snv":"seq"].push(t)})),this.base(r.seq,e,i,n),this.highlightSNVs(r.snv,e,n),this.base(r.snv,e,i,n),this.outlineSNVs(r.snv,e,n)},highlightSNVs:function(t,e,i){var n=this;t.forEach((function(t){var r=t.position[i],o=[r.X,r.reference.x,r.X+r.width];if(!(o[2]<0||o[0]>n.width)){(o[0]<0||o[2]>n.width)&&n.truncateForDrawing(o);var s=[0,r.Y-n.featureMargin.bottom/2,r.Y,r.Y+n.featureHeight];t.highlightColor||n.setHighlightColor(t),e.strokeStyle=e.fillStyle=t.highlightColor,e.lineWidth=2,e.beginPath(),e.moveTo(o[0],s[0]),e.lineTo(o[1],s[0]),e.lineTo(o[1],s[1]),e.lineTo(o[2],s[2]),e.lineTo(o[2],s[3]),e.lineTo(o[0],s[3]),e.closePath(),e.stroke(),e.lineWidth=1,e.globalAlpha=.5,e.fill(),e.globalAlpha=1}}))},outlineSNVs:function(t,e,i){var n=this;t.forEach((function(t){var r=t.position[i],o=[r.X,r.X+r.width],s=[r.Y,r.Y+n.featureHeight];e.strokeStyle=t.highlightColor,e.lineWidth=2,e.beginPath(),e.moveTo(o[1],s[0]),e.lineTo(o[1],s[1]),e.lineTo(o[0],s[1]),e.lineTo(o[0],s[0]),e.stroke(),e.lineWidth=1}))},truncateForDrawing:function(t){for(var e=0;e<t.length;e++)t[e]=Math.min(Math.max(t[e],-1),this.width+1)},setHighlightColor:function(t){t.highlightColor="-"===t.alt_allele||t.alt_allele.length<t.ref_allele.length?"#D31D00":"#1DD300"}})},521:function(t,e,i){"use strict";i.r(e);var n=i(4112);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=n.default.extend({featureHeight:12,utrHeight:7,labels:!0,repeatLabels:!0,bump:!0,subFeatureJoinStyle:"curve",scaleFeatures:function(t,e){var i=this;return t.forEach((function(t){var e=t.subFeatures||[];e.length&&(e.forEach((function(t){t.utr&&(t.height=i.utrHeight)})),t.height=Math.max.apply(Math,r(e.map((function(t){return t.fake?0:t.height||0})).concat(i.featureHeight))))})),this.base(t,e)}})},6006:function(t,e,i){"use strict";i.r(e);var n=i(1766),r=i(521);e.default=r.default.extend({setFeatureColor:function(t){n.default.prototype.setFeatureColor(t),(t.subFeatures||[]).forEach((function(e){e.utr&&(e.color=!1,e.borderColor=t.color)}))}})},5337:function(t,e,i){"use strict";i.r(e);var n=i(3766);e.default=n.ZP.extend({id:"chromosome",margin:1,featureMargin:{top:0,right:0,bottom:0,left:0},labels:"overlay",url:!1,allData:!0,colors:{acen:"#708090",gneg:"#FFFFFF",gpos:"#000000",gpos100:"#000000",gpos25:"#D9D9D9",gpos33:"#BFBFBF",gpos50:"#999999",gpos66:"#7F7F7F",gpos75:"#666666",gvar:"#E0E0E0",stalk:"#708090"},labelColors:{gneg:"#000000",gvar:"#000000",gpos25:"#000000",gpos33:"#000000"},getData:function(t,e,i){var n=this.browser.jQuery;return this.receiveData(n.extend(!0,[],this.browser.genome[t].bands),t,e,i),n.Deferred().resolveWith(this)},insertFeature:function(t){t.label="acen"!==t.type&&"stalk"!==t.type&&t.id,t.menuTitle=t.id?t.chr+t.id:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),t.color=this.prop("colors")[t.type]||"#FFFFFF",t.labelColor=this.prop("labelColors")[t.type]||"#FFFFFF",t.id&&(t.id=t.chr+t.id),this.base(t)},drawFeature:function(t,e,i,n){if(e.fillStyle=t.color,e.strokeStyle="#000000","acen"===t.type)e.beginPath(),this.drawnAcen?(e.moveTo(t.x+t.width,.5),e.lineTo(t.x,(t.height+.5)/2),e.lineTo(t.x+t.width,t.height+.5)):(e.moveTo(t.x,.5),e.lineTo(t.x+t.width,(t.height+.5)/2),e.lineTo(t.x,t.height+.5),this.drawnAcen=!0),e.fill(),e.stroke();else if("stalk"===t.type)for(var r=0;r<2;r++)e.beginPath(),e.moveTo(t.x,.5),e.lineTo(t.x+.25*t.width,.25*t.height+.5),e.lineTo(t.x+.75*t.width,.25*t.height+.5),e.lineTo(t.x+t.width,.5),e[r?"moveTo":"lineTo"](t.x+t.width,t.height+.5),e.lineTo(t.x+.75*t.width,.75*t.height-.5),e.lineTo(t.x+.25*t.width,.75*t.height-.5),e.lineTo(t.x,t.height+.5),e[r?"stroke":"fill"]();else{this.base(t,e,i,n),e.beginPath();var o=this.browser.getChromosomeSize(t.chr);if(1===t.start||t.end===o){if(1===t.start){var s=t.x+t.width-(t.end===o?5:0);e.clearRect(0,0,5,t.height+.5),e.fillStyle=t.color,e.moveTo(5,.5),e.lineTo(s,.5),e.moveTo(5,t.height+.5),e.lineTo(s,t.height+.5),e.moveTo(5,.5),e.bezierCurveTo(-1,.5,-1,t.height+.5,5,t.height+.5),e.fill()}t.end===o&&(e.clearRect(t.x+t.width-5,0,5,t.height+.5),1!==t.start&&(e.fillStyle=t.color,e.moveTo(t.x,.5),e.lineTo(t.x+t.width-5,.5),e.moveTo(t.x,t.height+.5),e.lineTo(t.x+t.width-5,t.height+.5)),e.moveTo(t.x+t.width-5,.5),e.bezierCurveTo(this.width+1,.5,this.width+1,t.height+.5,t.x+t.width-5,t.height+.5),e.fill())}else e.moveTo(t.x,.5),e.lineTo(t.x+t.width,.5),e.moveTo(t.x,t.height+.5),e.lineTo(t.x+t.width,t.height+.5);e.stroke()}},drawLabel:function(t){if(1!==t.start&&t.end!==this.browser.getChromosomeSize(t.chr)||!(t.labelWidth>=Math.floor(t.width-5))){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.base.apply(this,[t].concat(i))}},populateMenu:function(t){return{title:t.menuTitle,Position:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)}}})},3911:function(t,e,i){"use strict";i.r(e);var n=i(3766);e.default=n.ZP.extend({setInterface:function(){this.base(),this._interface.isLocal="model",this._interface.dataFile="model",this._interface.indexFile="model",this._interface.largeFile="model"}})},4448:function(t,e,i){"use strict";i.r(e);var n=i(8350),r=i(2703),o=i(3911);function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=o.default.extend({name:"BAM",indexExt:".bai",threshold:1e5,largeFile:!0,model:n.default,view:r.default.extend({bump:!0,autoHeight:!0}),click:function(){var t=this.base.apply(this,arguments);return t&&t.addClass("gv-wrap-values"),t},populateMenu:function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({title:t.readName},t);return delete e.sequence,delete e.id,this.base(e)}})},4149:function(t,e,i){"use strict";i.r(e);var n=i(4475),r=i(3911);e.default=r.default.extend({name:"BED",model:n.default,bump:!0,featureHeight:10,thickHeight:10,thinHeight:7,subFeatureJoinStyle:"curve",populateMenu:function(t){var e=[!1,!1,!1,"name","score","strand","thickStart","thickEnd","itemRgb","blockCount","blockSizes","blockStarts"];return t.originalFeature.reduce((function(t,i,n){return e[n]&&(t[e[n]]=i),t}),{title:'<a target="_blank" href="https://genome.ucsc.edu/FAQ/FAQformat.html#format1">BED feature details</a>',Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)})}})},617:function(t,e,i){"use strict";i.r(e);var n=i(8483),r=i(9817),o=i(4475),s=i(4149);e.default=s.default.extend({name:"bigbed",model:o.default.extend({getData:function(t,e,i){var o=this,s=this.browser.jQuery,a=s.Deferred();this.bigbedFile||(this.bigbedFile=this.bigbedFile||(this.url?new r.zn(this.url):new r.PE(this.track.dataFile)));var l=s.Deferred().done((function(){o.bwReader.getValues(t,e,i,(function(n,r){r||(n.sort((function(t,e){return t.start-e.start})),n.length?o.receiveData(n,t,n[0].start,n[n.length-1].end):o.receiveData(n,t,e,i)),a.resolve()}))}));return this.bwReader?l.resolve():new n.Z(this.bigbedFile,(function(n){if(!n)return o.receiveData([],t,e,i),a.resolve();o.bwReader=n,l.resolve()})),a}})})},9658:function(t,e,i){"use strict";i.r(e);var n=i(8483),r=i(9817),o=i(4176);e.default=o.default.extend({name:"bigwig",height:100,setDefaults:function(){this.bwReader=null,this.base.apply(this,arguments)},getData:function(t,e,i){var o=this,s=this.browser.jQuery.Deferred();this.bigwigFile||(this.bigwigFile=this.bigwigFile||(this.url?new r.zn(this.url):new r.PE(this.track.dataFile)));var a=this.browser.jQuery.Deferred().done((function(){o.prop("bwReader").getValues(t,e,i,(function(n,r){r||(n.sort((function(t,e){return t.start-e.start})),n.length?o.receiveData(n,t,n[0].start,n[n.length-1].end):o.receiveData(n,t,e,i)),s.resolve()}))}));return this.prop("bwReader")?a.resolve():new n.Z(this.bigwigFile,(function(n){if(!n)return o.receiveData([],t,e,i),s.resolve();o.prop("bwReader",n),a.resolve()})),s}})},8428:function(t,e,i){"use strict";i.r(e);var n=i(7699),r=i(3911);e.default=r.default.extend({name:"GFF",model:n.default,bump:!0,height:100,featureHeight:5})},1055:function(t,e,i){"use strict";i.r(e);var n=i(2743),r=i(4112),o=i(2703),s=i(3911);e.default=s.default.extend({name:"VCF",indexExt:".tbi",model:n.default,autoHeight:!1,maxQual:void 0,afterSetMVC:function(){this.prop("gz")&&this.prop("threshold",1e5)},populateMenu:function(t){return{title:'<a target="_blank" href="https://www.internationalgenome.org/wiki/Analysis/vcf4.0">VCF feature details</a>',CHROM:t.originalFeature[0],POS:t.originalFeature[1],ID:t.originalFeature[2],REF:t.originalFeature[3],ALT:t.originalFeature[4],QUAL:t.originalFeature[5],FILTER:t.originalFeature[6],INFO:t.originalFeature[7].split(";").join("<br />")}},1:{view:o.default.extend({bump:!0,labels:!1,featureMargin:{top:0,right:0,bottom:0,left:0},draw:function(t,e,i,n){this.base(t,e,i,n),this.highlightRef(t,e,n)},highlightRef:function(t,e,i){e.strokeStyle="black",t.forEach((function(t){"REF"===t.allele&&e.strokeRect(t.position[i].X,t.position[i].Y,t.position[i].width,t.position[i].height)}))}})},1e3:{view:r.default.extend({bump:!1,labels:!1,drawFeature:function(t){var e=this.prop("maxQual");if(e&&!t.color){var i=Math.min(255,Math.floor(255*(t.originalFeature[5]||0)/e))-127,n=i>0?255:127+i,r=i<0?255:127-i;t.color="rgb(".concat(n,",").concat(r,",0)")}for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];this.base.apply(this,[t].concat(s))}})}})},8915:function(t,e,i){"use strict";i.r(e);var n=i(9486),r=i(4176);e.default=r.default.extend({model:n.default,name:"wig",height:100})},1839:function(t,e,i){"use strict";i.r(e);var n=i(3766),r=i(2865),o=i(3814),s=i(1766),a=i(6006),l=i(2694);e.default=n.ZP.extend({id:"genes",name:"Genes",height:200,legend:l.default,populateMenu:function(t){var e="https://www.ensembl.org/Homo_sapiens/".concat("transcript"===t.feature_type?"Transcript":"Gene","/Summary?").concat("transcript"===t.feature_type?"t":"g","=").concat(t.id),i={title:'<a target="_blank" href="'.concat(e,'">').concat(t.external_name?"".concat(t.external_name," (").concat(t.id,")"):t.id,"</a>"),Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),Source:t.source,Biotype:t.biotype};return"transcript"===t.feature_type&&(i.Gene='<a target="_blank" href="https://www.ensembl.org/Homo_sapiens/Gene/Summary?g='.concat(t.Parent,'">').concat(t.Parent,"</a>")),i},2e6:{labels:!1},1e5:{labels:!0,model:r.default,view:s.default},1:{labels:!0,model:o.default,view:a.default}})},8944:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return a},Model:function(){return l},View:function(){return h}});var n=i(3766),r=i(2694);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var a=n.Qr.extend({setYRange:function(t,e){this.browser.dragging||(this.prop("showZeroY")?this.prop("range",[Math.min(t,0),Math.max(e,0)]):this.prop("range",[t,e]),this.track.reset())},yMinMaxFromFeatures:function(t){var e=Infinity,i=-Infinity;return"Line"===this.prop("type")?t.forEach((function(t){return t.coords.forEach((function(t){var n=o(t,2)[1];isNaN(n)||(e=Math.min(e,n),i=Math.max(i,n))}))})):t.forEach((function(t){var n=t.height;isNaN(n)||(e=Math.min(e,n),i=Math.max(i,n))})),{min:e=Infinity===e?0:e,max:i=-Infinity===i?0:i}},afterSetName:function(){this.minLabelHeight=Math.max(this.minLabelHeight,2*this.prop("fontHeight")+this.prop("margin")+this.prop("marginTop"))},visibleFeatureHeight:function(){if("auto"===this.prop("rescaleable")){var t=this.track.getYScale(),e=this.yMinMaxFromFeatures(this.model.findFeatures(this.browser.chr,this.browser.start,this.browser.end));return Math.ceil(Math.max(t*(e.max-e.min),this.prop("hideEmpty")?0:this.minLabelHeight))}return this.prop("height")},resize:function(){var t,e,i=this.prop("height"),n=this.base.apply(this,arguments),r=this.prop("height");if(i!==r)if(!0===this.prop("rescaleable")){var o=this.prop("range"),s=Math.max.apply(null,o.map((function(t){return(t.toString().split(".")[1]||"").length}))),a=o[1]-o[0],l=Math.ceil((a*(r/i)-a)/2);this.setYRange(parseFloat((o[0]-l).toFixed(s),10),parseFloat((o[1]+l).toFixed(s),10))}else this.track.reset();return null===(t=this.prop("expander"))||void 0===t||t.hide(),null===(e=this.prop("resizer"))||void 0===e||e.removeClass("gv-resizer-expander"),n},autoResize:function(){if("auto"===this.prop("rescaleable")){var t=this.model.findFeatures(this.browser.chr,this.browser.start,this.browser.end);if(t.length){var e=this.prop("range"),i=this.yMinMaxFromFeatures(t);if(i.min||i.max){var n=Math.max.apply(null,e.map((function(t){return(t.toString().split(".")[1]||"").length}))),r=Math.pow(10,n),o=parseFloat((Math.floor(i.min*r)/r).toFixed(n),10),s=parseFloat((Math.ceil(i.max*r)/r).toFixed(n),10);this.prop("showZeroY")&&(o=Math.min(o,0),s=Math.max(s,0)),o===s&&s++,o===e[0]&&s===e[1]||this.setYRange(o,s)}}}else this.base.apply(this,arguments)},makeFirstImage:function(){var t=this;return this.base.apply(this,arguments).done((function(){t.prop("yAxisPlaceholder").hide(),t.prop("offsetContainer").prepend(t.prop("guidelinesCanvas")).before(t.prop("yAxisCanvas").removeClass("gv-loading"))}))},typeWrapper:function(t){for(var e,i=a[this.prop("type")]||a.prototype,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=i[t]||a.prototype[t]).call.apply(e,[this].concat(r))},click:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.typeWrapper.apply(this,["click"].concat(e))},getClickedFeatures:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.typeWrapper.apply(this,["getClickedFeatures"].concat(e))},populateMenu:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.typeWrapper.apply(this,["populateMenu"].concat(e))}}),l=n.Hn.extend({dataBuffer:{start:1,end:1},setLabelBuffer:function(){},sortFeatures:function(t){return t.sort((function(t,e){return t.start-e.start}))}}),h=n.G7.extend({featureMargin:{},featureDataSets:function(t){var e=this.prop("datasets").concat({name:"_default"}),i=e.reduce((function(t,e){var i,n,r,o=e.name;return Object.assign(t,(r=!0,(n=o)in(i={})?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i))}),{});return{list:e,features:t.reduce((function(t,e){var n=i[e.dataset]?e.dataset:"_default";return t[n]=t[n]||[],t[n].push(e),t}),{})}}});e.default=n.ZP.extend({controller:a,margin:10,invert:!0,yAxisLabels:void 0,yRange:void 0,showZeroY:!0,globalAlpha:1,axesSettings:{axisColor:"black",axisLabelColor:"black",scaleLineColor:"#E5E5E5"},datasets:[],legend:r.default,labels:!1,resizable:!0,rescaleableY:"auto",setDefaults:function(){this.range=this.yRange||[0,this.height],this.rescaleable=this.rescaleableY,this.browser.jQuery.isPlainObject(this.margin)&&(this.invert?(this.marginTop=this.margin.bottom,this.margin=this.margin.top):(this.marginTop=this.margin.top,this.margin=this.margin.bottom)),this.marginTop="number"==typeof this.marginTop?this.marginTop:this.margin,!1===this.resizable?this.resizable=this.rescaleable:"auto"===this.resizable&&(this.rescaleable="auto"),this.base.apply(this,arguments),this.legend&&!this.datasets.length&&(this.legend=!1),this.height+=this.marginTop,this.initialHeight+=this.marginTop},setHeight:function(t){return this.base(t,!0)},setMVC:function(){var t=this.browser.jQuery,e=this.controller instanceof n.Qr,i=this.base.apply(this,arguments);if(!e){var r=this.prop("scrollContainer");this.yAxisPlaceholder=t('<div class="gv-image-container gv-loading">'),this.yAxisCanvas=t('<canvas class="gv-image-container gv-barchart-axis">').attr("width",this.width),this.guidelinesCanvas=t('<canvas class="gv-image-container gv-barchart-guide">').attr("width",this.width),this.disabled&&this.yAxisCanvas.add(this.guidelinesCanvas).attr("height",0),this.offsetContainer=this.browser.jQuery('<div class="gv-scroll-container-offset">').width(this.width).insertAfter(r).append(r).before(this.yAxisPlaceholder),this.drawAxes()}return i},afterSetMVC:function(){var t,e;null===(t=this.prop("heightToggler"))||void 0===t||t.addClass("gv-hidden"),null===(e=this.prop("resizer"))||void 0===e||e.off("click")},reset:function(){return this.drawAxes(),this.base.apply(this,arguments)},enable:function(){var t=this.disabled,e=this.base.apply(this,arguments);return t&&this.drawAxes(),e},getYScale:function(){var t=this.prop("range");return(this.prop("height")-this.prop("margin")-this.prop("marginTop"))/(t[1]-t[0])},drawAxes:function(){if(!this.prop("disabled")){var t,e=this.width,i=this.prop("height"),n=this.prop("invert"),r=this.prop("margin"),o=this.prop("marginTop"),s=this.prop("fontHeight"),a=this.prop("range"),l=this.prop("axesSettings"),h=this.getYScale(),c=this.prop("yAxisCanvas").attr("height",i)[0].getContext("2d"),u=this.prop("guidelinesCanvas").attr("height",i)[0].getContext("2d"),f=this.prop("yAxisLabels");if(!f){var p=Math.floor((i-r-o)/(2*s)),d=(a[1]-a[0])/p;f=[],d!==Math.round(d)&&(t=Math.max.apply(null,a.map((function(t){return(t.toString().split(".")[1]||"").length})))+1);for(var g=0;g<=p;g++)f.push((a[0]+d*g)[t?"toFixed":"toString"](t))}var m=Math.max.apply(null,f.map((function(t){return c.measureText(t).width})))+10;this.prop("offsetContainer").css("marginLeft",m).width(e-m),this.prop("scrollContainer").css("marginLeft",-m),this.prop("yAxisPlaceholder").width(m).show(),c.fillStyle=l.axisColor,c.fillRect(m-1,n?r:o,1,i-r-o),u.fillStyle=l.scaleLineColor,c.fillStyle=l.axisLabelColor,c.textBaseline="middle",c.textAlign="right",f.forEach((function(t){var r=o+(parseFloat(t,10)-a[0])*h;r=n?i-r:r,u.fillRect(0,r,e,1),c.fillRect(m-4,r,4,1),c.fillText(t,m-6,r)}));var v=-a[0]*h+o;u.fillStyle=l.axisColor,u.fillRect(0,n?i-v:v,e,1)}}})},4176:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return c},Model:function(){return u},View:function(){return f}});var n=i(7810),r=i.n(n),o=i(8944),s=i(4989);function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c={getClickedFeatures:function(t,e){var i=this.prop("marginTop")-this.prop("range")[0]*this.track.getYScale(),n=this.scale,r=n>1?0:1,o=this.prop("featuresByChr")[this.browser.chr].search({x:(t-r/2)/n,y:0,w:(1+r)/n,h:1});return o.length&&(e<i&&0===o.filter((function(t){return t.position[n].bounds.y+t.position[n].bounds.h<=e&&t.position[n].bounds.y>=e})).length||e>=i&&0===this.featurePositions.search({x:t,y:e,w:1,h:1}).length)&&(o=[]),o.length?[this.model.sortFeatures(o)]:[]},populateMenu:function(t){if(!t.length)return[];var e=t[0].start,i=t[t.length-1].end,n=t[0].start!==t[t.length-1].start,r={title:"".concat(t[0].chr,":").concat(e===i?e:"".concat(e,"-").concat(i))};function o(t){var e=t.map((function(t){return t.height})).sort((function(t,e){return t-e}));return{avg:e.reduce((function(t,e){return t+e}),0)/e.length,min:e[0],max:e[e.length-1]}}if(n)if(1===t.length){var s=o(t);r["Average value"]=s.avg,r["Min value"]=s.min,r["Max value"]=s.max}else{r=[r];var a,c=this.prop("datasets");c.length?(a=c.reduce((function(t,e){return Object.assign(t,h({},e.name,[]))}),{}),t.forEach((function(t){a[t.dataset].push(t)}))):(c=[{name:""}],a={"":t}),c.forEach((function(t){var e=o(a[t.name]);r.push(l({Average:e.avg,Min:e.min,Max:e.max},t.name?{title:t.name}:{}))}))}else 1===t.length?r.Value=t[0].height:t.forEach((function(t){r[t.dataset]=t.height}));return r}},u=o.Model.extend({insertFeature:function(t){var e=this.prop("datasets");e.length&&(t.legend=t.dataset,t.color=(e.filter((function(e){return e.name===t.dataset}))[0]||{color:this.color}).color),t.id=t.id||[t.chr,t.start,t.end,t.dataset||""].join(":");for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return this.base.apply(this,[t].concat(n))}}),f=o.View.extend({scaleFeatures:function(t,e){var i=this.track.getYScale(),n=this.prop("marginTop")-this.prop("range")[0]*i;return(t=this.base(t,e)).forEach((function(t){t.position[e].height=t.height*i,t.position[e].y=n})),t},draw:function(t,e,i,n){var r=this,o=this.browser.jQuery,s=this.featureDataSets(t),a=this.prop("margin"),h=n<1?Math.ceil(1/n):0,c={color:this.color,globalAlpha:this.prop("globalAlpha")};s.list.forEach((function(t){var a=l(l({},c),t),u=t.name,f=o.extend(!0,[],s.features[u]||[]);if(f.length){if(h){for(var p=[],d=0,g=function(){for(var t=f[d].start,e=[];f[d]&&f[d].start-t<h;)e.push(f[d++]);var i=o.extend(!0,{},e[0],{height:e.reduce((function(t,e){return t+e.height}),0)/e.length,end:e[e.length-1].end});["H","W","height","width"].forEach((function(t){i.position[n][t]=e.reduce((function(e,i){return e+i.position[n][t]}),0)/e.length})),p.push(i)};d<f.length;)g();f=p}f.forEach((function(t){t.color=a.color})),e.globalAlpha=a.globalAlpha,r.base(f,e,i,n)}})),e.clearRect(0,0,this.width,this.prop("marginTop")-1),e.clearRect(0,this.prop("height")-a,this.width,a)}});e.default=o.default.extend({type:"Bar",model:u,view:f,threshold:5e5,1e4:l(l({},Object.keys(s.default.prototype).reduce((function(t,e){return s.default.prototype.hasOwnProperty(e)&&!r().prototype[e]&&(t[e]=s.default.prototype[e]),t}),{})),{},{fill:!0,model:s.Model.extend({parseData:function(t,e,i,n){var r=[];return t.forEach((function(t){for(var e=t.start;e<t.end;e++)r.push([e,t.height])})),this.base([{chr:e,start:i,end:n,coords:r}],e,i,n)}})}),5e4:l(l({},Object.keys(s.default.prototype).reduce((function(t,e){return s.default.prototype.hasOwnProperty(e)&&!r().prototype[e]&&(t[e]=s.default.prototype[e]),t}),{})),{},{fill:!0,model:s.Model.extend({parseData:function(t,e,i,n){return this.base([{chr:e,start:i,end:n,coords:t.map((function(t){return[t.start,t.height]}))}],e,i,n)}})})})},4989:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return c},Model:function(){return u},View:function(){return f}});var n=i(7145),r=i(8944);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c={click:function(){if(this.prop("showPopups")){var t;this.prop("menus").hide(),this.browser.closeMenus(this);for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return(t=n.default.prototype.click).call.apply(t,[this].concat(i))}},getClickedFeatures:function(t){var e=this,i={x:t,y:0,w:1,h:9e99},n=this.scale>1?0:1/this.scale,r=i.x/this.scale,o=n?[Math.floor(r-n),Math.ceil(r+n)]:[Math.floor(r),Math.floor(r)],s={};return this.featurePositions.search(i).forEach((function(t){s[t.dataset]||(s[t.dataset]=t)})),[this.model.sortFeatures(Object.keys(s).map((function(t){return e.browser.jQuery.extend(!0,{},s[t],{clickedCoords:s[t].coords.filter((function(t){return t[0]>=o[0]&&t[0]<=o[1]}))})})))]},populateMenu:function(t){if(!t.length||!t[0].clickedCoords.length)return[];var e=t[0].clickedCoords[0][0],i=t[0].clickedCoords[t[0].clickedCoords.length-1][0],n=e!==i,r={title:"".concat(t[0].chr,":").concat(e===i?e:"".concat(e,"-").concat(i))};function o(t){var e=t.map((function(t){return t[1]})).sort((function(t,e){return t-e}));return{avg:e.reduce((function(t,e){return t+e}),0)/e.length,min:e[0],max:e[e.length-1]}}if(n)if(1===t.length){var s=o(t[0].clickedCoords);r["Average value"]=s.avg,r["Min value"]=s.min,r["Max value"]=s.max}else r=[r],t.forEach((function(e){var i=o(t.clickedCoords);r.push({title:e.dataset,Average:i.avg,Min:i.min,Max:i.max})}));else 1===t.length?r.Value=t[0].clickedCoords[0][1]:t.forEach((function(t){r[t.dataset]=t.clickedCoords[0][1]}));return r}},u=r.Model.extend({parseData:function(t,e,i,n){var r,o=[];return t.sort((function(t,e){return t.start-e.start||t.x-e.x})).forEach((function(t){if(void 0===t.y||t.coords)r&&(o.push(r),r=void 0),o.push(t);else{var e=function(t){return void 0!==t.x?t.x:t.start+(t.start===t.end?0:(t.end-t.start+1)/2)}(t);r&&r.coords[r.coords.length-1][0]===e-1?(r.coords.push([e,t.y]),r.end=e):(r&&o.push(r),r=l({coords:[[e,t.y]],start:e,end:e},t))}})),r&&o.push(r),this.base(o,e,i,n)},insertFeature:function(t){var e=this.prop("datasets");t.coords?t.coords=t.coords.map((function(e,i){return e.length>1?e:[t.start+i,e]})).filter((function(e){return e[0]>=t.start&&e[0]<=t.end})):t.y?t.coords=[[t.start+(t.start===t.end?0:(t.end-t.start+1)/2),t.y]]:t.coords=[],e.length&&(t.legend=t.dataset,t.color=(e.filter((function(e){return e.name===t.dataset}))[0]||{color:this.color}).color),t.id=t.id||[t.chr,t.start,t.end,t.dataset||""].join(":");for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return this.base.apply(this,[t].concat(n))}}),f=r.View.extend({featureHeight:1,positionFeatures:function(t,e){var i=e.scale,n=this.track.getYScale(),r=this.prop("marginTop")-this.prop("range")[0]*n,o=(i>1?i/2:0)-e.scaledStart;function s(t){return[t[0]*i+o,t[1]*n+r]}return t.forEach((function(t){t.coordPositions=t.coords.map(s)})),e.featureHeight=this.prop("height"),this.base(t,e)},draw:function(t,e,i,n){if(t.length){var r=this.featureDataSets(t),s=this.prop("height"),a=this.prop("marginTop"),h=this.prop("margin"),c=Math.min(Math.max(a,a-this.prop("range")[0]*this.track.getYScale()),s-a),u=n<1?Math.floor(1/n):0,f={color:this.color,fill:this.prop("fill"),lineWidth:this.prop("lineWidth"),globalAlpha:this.prop("globalAlpha")};r.list.forEach((function(t){var i,n,s=l(l({},f),t),a=t.name;(r.features[a]||[]).forEach((function(t,l){var h=t.coordPositions;if(h.length){if(u){for(var f=[],p=0,d=0;d<h.length;){for(var g=t.coords[d][0],m=[];h[d]&&t.coords[d][0]-g<u;)m.push(h[d++]);var v=m.length;(m=m.reduce((function(t,e){return t[0]+=e[0],t[1]+=e[1],t}),[0,0]))[0]=Math.round(m[0]/v),f.length&&m[0]===f[f.length-1][0]?f[f.length-1][1]=(f[f.length-1][1]*p+m[1])/(p+v):f.push([m[0],m[1]/v]),p=v}h=f,t.binnedCoords=h}e.fillStyle=e.strokeStyle=s.color,e.lineWidth=s.lineWidth,s.fill&&(e.globalAlpha=s.globalAlpha),e.beginPath(),s.fill?(e.moveTo(h[0][0],c),e.lineTo.apply(e,o(h[0]))):e.moveTo.apply(e,o(h[0])),h.forEach((function(t){return e.lineTo.apply(e,o(t))})),e.stroke(),s.fill&&(e.lineTo(h[h.length-1][0],c),e.closePath(),e.fill()),(i=l?r.features[a][l-l]:void 0)&&i.end===t.start-1&&(e.beginPath(),n=(u?i.binnedCoords:i.coordPositions).slice(-1),e.moveTo.apply(e,o(n[0])),e.lineTo.apply(e,o(h[0])),e.stroke(),s.fill&&(e.lineTo(h[0][0],c),e.lineTo(n[0][0],c),e.closePath(),e.fill())),s.fill&&(e.globalAlpha=1)}}))})),e.clearRect(0,0,this.width,a-1),e.clearRect(0,s-h,this.width,h)}}});e.default=r.default.extend({type:"Line",showPopups:!0,fill:!1,lineWidth:1,model:u,view:f})},7110:function(t,e,i){"use strict";i.r(e);var n=i(3766),r=i(7905),o=i(6637);function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=n.ZP.extend({id:"highlights",unsortable:!0,fixedOrder:!0,repeatLabels:!0,resizable:!1,border:!1,alwaysReposition:!0,height:15,featureHeight:2,order:-1,orderReverse:9e99,controls:"off",colors:["#777777","#F08080","#3CB371","#6495ED","#FFA500","#9370DB"],labels:"separate",depth:1,featureMargin:{top:13,right:0,bottom:0,left:0},margin:0,constructor:function(){return this.colorIndex=0,this.base.apply(this,arguments)},addHighlights:function(t){var e=this;t.forEach((function(t){return e.model.insertFeature(function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({label:"".concat(t.start,"-").concat(t.end)},t))})),this.reset()},removeHighlights:function(t){var e=this.prop("featuresByChr"),i=this.prop("featuresById");(t=t||Object.values(i)).forEach((function(t){if(!1!==t.removable){var n=e[t.chr],r={x:t.start,y:0,w:t.end-t.start+1,h:1},o=n.search(r).filter((function(e){return e.id===t.id}));o.length&&n.remove(r,o[0]),delete i[t.id]}})),1===this.prop("strand")&&this.prop("reverseTrack").removeHighlights(t),this.reset()},controller:r.default.extend({setDefaults:function(){-1===this.prop("strand")&&(this.prop("labels",!1),this.prop("border",!1),this.prop("height",2),this.prop("featureMargin").top=0),this.base()},setName:function(t){-1===this.prop("strand")?(this.base(""),this.minLabelHeight=0,this.label.height(0)):this.base(t)},makeImage:function(t){1===this.prop("strand")&&(t.background="gv-full-height");var e=this.base(t);return t.container.addClass(t.background),e},render:function(t,e){this.base(t,e),e.siblings(".gv-labels").css("top",this.prop("featureHeight")-this.prop("featureMargin").top)},renderBackground:function(t,e){this.base(t,e),e.height(this.browser.wrapper.outerHeight(!0))},populateMenu:function(t){var e=[];return t.length>1&&e.push({title:"Highlights"}),t.forEach((function(t){var i="".concat(t.start,"-").concat(t.end),n={title:t.label?t.label[0]:i,start:!1};n[n.title===i?"title":"Location"]="".concat(t.chr,":").concat(i),n['<a class="gv-focus-highlight" href="#" data-chr="'.concat(t.chr,'" data-start="').concat(t.start,'" data-end="').concat(t.end,'">Focus here</a>')]="",!1!==t.removable&&(n['<a class="gv-remove-highlight" href="#" data-id="'.concat(t.id,'">Remove this highlight</a>')]="",n['<a class="gv-remove-highlights" href="#">Remove all highlights</a>']=""),e.push(n)})),e},click:function(){var t=this.browser.jQuery;if(1===this.prop("strand")){var e=this.base.apply(this,arguments);if(e&&!e.data("highlightEvents")){var i=this.track;e.find(".gv-remove-highlight").on("click",(function(){var n=t(this).data("id");return i.removeHighlights(e.data("feature").filter((function(t){return t.id===n}))),!1})),e.find(".gv-remove-highlights").on("click",(function(){return i.removeHighlights(),!1})),e.find(".gv-focus-highlight").on("click",(function(){var e=t(this).data(),n=e.end-e.start+1,r=Math.max(Math.round(n/4),25);return i.browser.moveTo(e.chr,e.start-r,e.end+r,!0),!1})),e.data("highlightEvents",!0)}}},getClickedFeatures:function(t,e){var i={},n=this.scale,r=this.featurePositions.search({x:t,y:e,w:1,h:1}).concat(this.labelPositions.search({x:t,y:e,w:1,h:1}).filter((function(t){return!1!==t.position[n].label.visible}))).filter((function(t){var e=!i[t.id];return i[t.id]=!0,e}));return!!r.length&&[this.model.sortFeatures(r)]}}),model:o.default.extend({url:!1,insertFeature:function(t){if(t.id="".concat(t.chr,":").concat(t.start,"-").concat(t.end),t.sort=t.start,!t.color){var e=this.prop("colors"),i=this.prop("colorIndex");t.color=e[i++],this.prop("colorIndex",e[i]?i:0)}this.featuresById[t.id]||this.base(t)},findFeatures:function(){for(var t,e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return(t=n.Hn.prototype.findFeatures).call.apply(t,[this].concat(i))}}),view:n.G7.extend({positionFeatures:function(t,e){var i=this.base(t,e);return e.featureHeight=Math.max(e.featureHeight-this.featureMargin.top,0),i},draw:function(t,e,i,n){1===this.prop("strand")&&(e.fillStyle="#FFF",e.fillRect(0,0,e.canvas.width,e.canvas.height)),this.base(t,e,i,n)},drawBackground:function(t,e,i){var n=this,r=this.browser.jQuery;-1!==this.prop("strand")&&t.forEach((function(t){e.fillStyle=t.color,n.drawFeature(r.extend(!0,{},t,{x:t.position[i.scale].X,y:0,width:t.position[i.scale].width,height:e.canvas.height,color:n.shadeColor(e.fillStyle,.8),border:t.color,label:!1,decorations:!0}),e,!1,i.scale)}))},decorateFeature:function(t,e){var i=t.x+.5,n=i+t.width,r=!1;e.strokeStyle=t.border,e.lineWidth=2,e.beginPath(),i>=0&&i<=this.width&&(e.moveTo(i,t.y),e.lineTo(i,t.y+t.height),r=!0),n>=0&&n<=this.width&&(e.moveTo(n,t.y),e.lineTo(n,t.y+t.height),r=!0),r&&e.stroke(),e.lineWidth=1}})})},2694:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return c},Model:function(){return u},View:function(){return f}});var n=i(4925);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c=n.Controller.extend({init:function(){this.base(),this.container.addClass("gv-track-container-legend"),this.browser.legends[this.track.id]=this.track,this.track.setTracks()},destroy:function(){delete this.browser.legends[this.prop("id")],this.base()}}),u=n.Model.extend({findFeatures:function(){var t={x:this.browser.scaledStart,y:0,w:this.width},e=this.track.tracks.flatMap((function(e){var i=e.prop("featurePositions"),n=l(l({},t),{},{h:e.prop("height")});return i?i.search(n).concat(e.prop("labelPositions").search(n)):[]})).reduce((function(t,e){return Array.isArray(e.legend)?e.legend.forEach((function(e){t[e.label]=e.color})):e.legend&&(t[e.legend]=e.legendColor||e.color),t}),{});return this.sortFeatures(Object.entries(e).map((function(t){var e=o(t,2);return[e[0],e[1]]})))},sortFeatures:function(t){return t.sort((function(t,e){return t[0].localeCompare(e[0])}))}}),f=n.View.extend({textColor:"#000000",labels:"overlay",featureHeight:12,positionFeatures:function(t,e){var i=this;if(e.positioned)return t;var n=0,r=0,s=this.width/2,a=this.fontHeight+5,l=e.xOffset||0,h=[];return t.forEach((function(t){var e=o(t,2),c=e[0],u=e[1],f=n*s+5,p=r*a+5,d=i.context.measureText(c).width;h.push({x:f+l,y:p,width:20,height:i.featureHeight,color:u},{x:f+l+5+20,y:p,width:d+1,height:i.featureHeight,color:!1,labelColor:i.textColor,labelWidth:d,label:c}),2==++n&&(n=0,r++)})),e.height=this.prop("height",t.length?(r+(n?1:0))*a+5:0),e.width=this.width,e.positioned=!0,this.base(h,e)}});e.default=n.default.extend({isLegend:!0,unsortable:!0,lockToTrack:!0,removable:!1,controller:c,model:u,view:f,setDefaults:function(){this.order=void 0!==this.order?this.order:9e99,this.id=this.id||"legend",this.type=this.type||"legend",this.base()},setEvents:function(){this.browser.on({"afterAddTracks afterRemoveTracks":function(){this.destroying||(Object.values(this.legends).forEach((function(t){return t.setTracks()})),this.sortTracks())},afterRemoveTracks:function(t){this.destroying||(t.forEach((function(t){t.legendTrack&&0===t.legendTrack.tracks.length&&t.legendTrack.remove()})),Object.values(this.legends).forEach((function(t){return t.controller.makeImage({})})))},afterUpdateTrackOrder:function(t,e){var i=e.item.data("track"),n=this.legends[i.id]||i.legendTrack;n&&n.lockToTrack&&!1===n.unsortable&&(n.lockToTrack=!1),Object.values(this.legends).forEach((function(t){return t.updateOrder()})),this.sortTracks()}}),this.browser.on({afterPositionFeatures:function(t,e){var i=this.prop("legendTrack");i&&setTimeout((function(){i.controller.makeImage(e)}),1)},afterResize:function(t,e){var i=this.prop("legendTrack");i&&!0===e&&i.controller.makeImage({})},afterCheckHeight:function(){var t=this.prop("legendTrack");t&&t.controller.makeImage({})},afterSetMVC:function(){var t=this.prop("legendTrack");t&&t.tracks.length&&(t.disable(),!1!==this.legend&&t.enable())}},this)},setTracks:function(){var t=this,e=this.type;this.tracks=this.browser.tracks.filter((function(i){return i.legendType===e&&(i.legendTrack=i.legendTrack||t,!0)})).flatMap((function(e){return[e].concat(e.prop("childTracks"),e.prop("parentTrack")).filter((function(e){return e&&e!==t&&!e.prop("disabled")}))})),this.updateOrder(),"object"===r(this.controller)?this[this.tracks.length?"enable":"disable"]():this.disabled=!this.tracks.length},updateOrder:function(){if(this.lockToTrack){var t=this.tracks.filter((function(t){return!t.prop("parentTrack")}));t.length&&(this.order=t[t.length-1].order+.1)}},enable:function(){this.base(),this.controller.makeImage({})},disable:function(){delete this.controller.stringified,this.base()}})},6427:function(t,e,i){"use strict";i.r(e);var n=i(702),r=i.n(n),o=i(3766);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=o.ZP.extend({unsortable:!0,fixedOrder:!0,order:0,orderReverse:1e5,featureStrand:1,controls:"off",height:20,featureHeight:3,featureMargin:{top:0,right:0,bottom:2,left:0},margin:0,minPixPerMajor:100,color:"#000000",autoHeight:!1,labels:!0,bump:!1,resizable:!1,click:function(){},colors:{majorGuideLine:"#CCCCCC",minorGuideLine:"#E5E5E5"},setEvents:function(){var t=this.browser;function e(){t.jQuery(".gv-bg.gv-full-height",t.container).height((function(){return t.wrapper.outerHeight(!0)-t.jQuery(this).parents(".gv-track-container").position().top}))}t.on("afterAddTracks",e),t.on("afterResize",this,e)},setScale:function(){for(var t,e=this.prop("width")/this.prop("minPixPerMajor"),i=5,n=-1,o="".concat(this.browser.start).split(""),s="".concat(this.browser.end).split(""),a={},l=o.length;l<s.length;l++)o.unshift("0");for(var h=s.length;h<o.length;h++)s.unshift("0");for(var c=0;c<o.length;c++)if((t=Number(s.slice(0,o.length-c).join(""))-Number(o.slice(0,o.length-c).join("")))&&t<=e){n=Number("1".concat(Array(c).fill("0").join("")));break}-1===n?(n=1===this.browser.length?1:Number("1".concat(Array(o.length).fill("0").join(""))),i=1):5*t<=e?(n/=5,i=2):4*t<=e?(n/=4,i=1):2*t<=e&&(n/=2),n=Math.max(n,1),a[this.browser.chr]=new(r()),this.prop("minorUnit",Math.max(n/i,1)),this.prop("majorUnit",n),this.prop("featuresByChr",a),this.prop("featuresById",{}),this.prop("seen",{}),this.base()},setFeatures:function(t,e,i){for(var n,r,o,s=this.prop("minorUnit"),a=this.prop("majorUnit"),l=this.prop("seen"),h=(e=Math.max(e-e%s-a,0))/s%2?1:-1,c=e;c<i+s;c+=s)h*=-1,l[c]||(l[c]=1,n={id:"".concat(t,":").concat(c),chr:t,strand:1,sort:c},r=c&&c%a==0,1===h&&(n.start=c,n.end=c+s-1),r&&((o=this.view.formatLabel(c))!==this.lastLabel&&(n.label=o,n.end||(n.start=c,n.end=c-1)),this.lastLabel=o),n.end&&this.model.insertFeature(n))},makeFirstImage:function(t){return this.base(-1===this.prop("strand")?this.track.forwardTrack.prop("scrollStart"):t)},makeImage:function(t){t.background="gv-guidelines gv-full-height",t.featureHeight=this.prop("height"),this.track.setFeatures(t.chr,t.start,t.end);var e=this.base(t);return t.container.addClass("gv-full-height"),e},makeReverseImage:function(t){this.imgContainers.push(t.container.clone().html(t.container.children(".gv-data").clone(!0).css({opacity:1,background:this.browser.wrapper.css("backgroundColor")}))[0]),this.scrollContainer.append(this.imgContainers)},renderBackground:function(t,e){this.base(t,e),e.height(this.browser.wrapper.outerHeight(!0))},draw:function(t,e,i,n){var r,o,s,a=this.prop("minorUnit"),l=Math.ceil(a*n),c=t.length;for(e.textBaseline="top",e.fillStyle=this.color,this.guideLines={major:{}};c--;)r=t[c],s=(o=Math.round(r.position[n].X))+l-1,this.drawFeature(h(h({},r),{},{x:o,y:0,width:Math.ceil(r.position[n].width),height:this.featureHeight}),e,i,n),r.label&&(o>-1&&e.fillRect(o,this.featureHeight,1,this.featureHeight),this.guideLines.major[r.start]=!0),r.end<r.start&&(o--,s++),this.guideLines[r.start]=o,this.guideLines[r.start+a]=s;e.fillRect(0,0,e.canvas.width,1),e.fillRect(0,this.featureHeight,e.canvas.width,1)},drawBackground:function(t,e){var i=this;Object.entries(this.guideLines).forEach((function(t){var n=s(t,2),r=n[0],o=n[1];o>=0&&o<=i.width&&(e.fillStyle=i.track.colors[i.guideLines.major[r]?"majorGuideLine":"minorGuideLine"],e.fillRect(o,0,1,e.canvas.height))}))},formatLabel:function(t){return this.prop("minorUnit")<1e3?t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"):this.base(t)}})},7450:function(t,e,i){"use strict";i.r(e);var n=i(4925);e.default=n.default.extend({strand:1,color:"#000000",height:12,labels:"overlay",unsortable:!0,fixedOrder:!0,arrowWidth:7,resize:function(){},makeFirstImage:function(){this.prop("scaleline",!1),this.base.apply(this,arguments)},render:function(t,e){this.base(t,e),this.prop("drawnScale",e.data("scale"))},positionFeatures:function(t,e){var i=this.prop("scaleline");if(e.scale===this.drawnScale)return!1;if(i)return i;var n=this.prop("strand"),r=this.prop("height"),o=this.formatLabel(this.browser.length),s=this.context.measureText(o).width,a=10,l=r/2,h=(this.width-s-a)/2;if(n){var c=1===n?"Forward strand":"Reverse strand",u=this.context.measureText(c).width,f=1===n?this.width-this.prop("arrowWidth")-u-15:this.prop("arrowWidth")+5;i=[{x:0,y:l,width:this.width,height:1,decorations:!0},{x:h,y:0,width:s+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:s,label:o},{x:f,y:0,width:u+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:u,label:c}]}else i=[{x:0,y:l,width:this.width,height:1,decorations:!0},{x:h,y:0,width:s+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:s,label:o}];return this.base(this.prop("scaleline",i),e)},decorateFeature:function(t,e){var i=this.prop("strand"),n=this.prop("height"),r=this.prop("arrowWidth"),o=this.width;e.strokeStyle=this.color,[-1,1].filter((function(t){return!i||t===i})).forEach((function(t){var i=1===t?o-r:r,s=i+t*r;e.beginPath(),e.moveTo(i,.25*n),e.lineTo(s,.5*n),e.lineTo(i,.75*n),e.closePath(),e.stroke(),e.fill()}))}})},4925:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return r},Model:function(){return o},View:function(){return s}});var n=i(3766),r=n.Qr.extend({addDomElements:function(){this.base(),this.image=this.browser.jQuery("<img>").appendTo(this.imgContainer),this.container.toggleClass("gv-track-container gv-track-container-static").prepend(this.imgContainer),this.scrollContainer.add(this.messageContainer).remove()},reset:function(){delete this.stringified,this.base.apply(this,arguments)},setWidth:function(t){this.base(t),this.image.width=this.width},makeFirstImage:function(){this.base.apply(this,arguments),this.container.css("left",0),this.imgContainer.show()},makeImage:function(t){if(this.prop("disabled"))return this.browser.jQuery.Deferred().resolve();var e=this.view.positionFeatures(this.model.findFeatures(t.chr,t.start,t.end),t);if(e){var i=JSON.stringify(e);if(this.stringified!==i){var n=this.prop("height");t.width=this.width,t.featureHeight=n,this.render(e,this.image.data(t)),this.imgContainer.children(":last").show(),this.resize(n,void 0,!1),this.stringified=i}}return this.browser.jQuery.Deferred().resolve()}}),o=n.Hn.extend({url:!1,checkDataRange:function(){return!0}}),s=n.G7.extend({featureMargin:{top:0,right:1,bottom:0,left:1},positionFeature:function(){},scaleFeatures:function(t){return t},draw:function(t,e,i,n){var r=this;t.forEach((function(t){return r.drawFeature(t,e,i,n)}))}});e.default=n.ZP.extend({controls:"off",resizable:!1,controller:r,model:o,view:s})},7371:function(t,e,i){"use strict";i.r(e);var n=i(3766),r=i(2694);function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=n.ZP.extend({id:"dbSNP",name:"dbSNP",info:"All sequence variants from the database of Single Nucleotide Polymorphisms (dbSNP)",url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=variation;content-type=application/json",dataRequestLimit:5e6,threshold:1e5,labels:!1,legend:r.default,autoHeight:!0,colorMap:{transcript_ablation:"#ff0000",splice_acceptor_variant:"#FF581A",splice_donor_variant:"#FF581A",stop_gained:"#ff0000",frameshift_variant:"#9400D3",stop_lost:"#ff0000",start_lost:"#ffd700",transcript_amplification:"#ff69b4",inframe_insertion:"#ff69b4",inframe_deletion:"#ff69b4",missense_variant:"#ffd700",protein_altering_variant:"#FF0080",splice_region_variant:"#ff7f50",incomplete_terminal_codon_variant:"#ff00ff",stop_retained_variant:"#76ee00",synonymous_variant:"#76ee00",coding_sequence_variant:"#458b00",mature_miRNA_variant:"#458b00","5_prime_UTR_variant":"#7ac5cd","3_prime_UTR_variant":"#7ac5cd",non_coding_transcript_exon_variant:"#32cd32",intron_variant:"#02599c",NMD_transcript_variant:"#ff4500",non_coding_transcript_variant:"#32cd32",upstream_gene_variant:"#a2b5cd",downstream_gene_variant:"#a2b5cd",TFBS_ablation:"#a52a2a",TFBS_amplification:"#a52a2a",TF_binding_site_variant:"#a52a2a",regulatory_region_ablation:"#a52a2a",regulatory_region_amplification:"#a52a2a",feature_elongation:"#7f7f7f",regulatory_region_variant:"#a52a2a",feature_truncation:"#7f7f7f",intergenic_variant:"#636363"},insertFeature:function(t){t.color=this.prop("colorMap")[t.consequence_type],t.legend=t.consequence_type,t.start>t.end&&(t.decorations=!0),this.base(t)},decorateFeature:function(t,e,i){e.fillStyle=t.color,e.beginPath(),e.moveTo(t.position[i].X-3,t.position[i].Y+this.featureHeight),e.lineTo(t.position[i].X,t.position[i].Y+this.featureHeight-4),e.lineTo(t.position[i].X+3,t.position[i].Y+this.featureHeight),e.fill(),i>1&&e.fillRect(t.position[i].X-.5,t.position[i].Y,1.5,t.position[i].height)},populateMenu:function(t){var e=this.browser.jQuery.Deferred(),i=[{title:'<a href="https://www.ensembl.org/Homo_sapiens/Variation/Summary?v='.concat(t.id,'" target="_blank">').concat(t.id,"</a>"),Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),Consequence:t.consequence_type,Alleles:t.alleles.join(", ")}];return this.browser.jQuery.ajax({url:"//rest.ensembl.org/variation/human/".concat(t.id,"?population_genotypes=1;content-type=application/json"),dataType:"json",success:function(n){var r=n.population_genotypes.filter((function(t){return/1000GENOMES.+ALL/.test(t.population)})),l={};r.length&&(r.forEach((function(t){t.frequency=parseFloat(t.frequency,10),t.count=parseInt(t.count,10),l[t.population]=l[t.population]||[],l[t.population].push(t)})),i.push.apply(i,a(Object.entries(l).map((function(t){var e=s(t,2),i=e[0];return e[1].sort((function(t,e){return t.count<e.count})).reduce((function(t,e){return Object.assign(t,o({},e.genotype,["".concat((100*e.frequency).toFixed(2),"%"),e.count]))}),{title:"".concat(i," population genotypes"),Genotype:["Frequency","Count"],start:!1,end:!1})}))).concat([o({start:!1,end:!1},'<a href="https://www.ensembl.org/Homo_sapiens/Variation/Population?v='.concat(t.id,'" target="_blank">See all population genotypes</a>'),"")]))),e.resolve(i)}}),e},5e3:{bump:!1},1:{bump:!0}})},8483:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(702),r=i.n(n),o=i(9408);function s(t,e){var i={fetchedData:new(r())},n=function(t,e){return t[e]+256*t[e+1]+65536*t[e+2]+16777216*t[e+3]+4294967296*t[e+4]},s=function(t,e){var n,r,o,s,a=[],l=new Uint8Array(t),h=new Int16Array(t),c=new Int32Array(t),u=new Float32Array(t),f=c[0],p=parseInt(i.chroms[f].replace("chr",""),10),d=c[1]+1,g=c[3],m=c[4],v=l[20],y=h[11];if(3===v)for(n=0;n<y;n++)o=(r=d+n*g)+m-1,s=u[n+6],f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});else if(2===v)for(n=0;n<y;n++)o=(r=c[2*n+6]+1)+m-1,s=u[2*n+7],f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});else if(1===v)for(n=0;n<y;n++)r=c[3*n+6]+1,o=c[3*n+7],s=u[3*n+8],r>o&&(r=o),f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});return a},a=function(t,e){for(var n,r,o,s=[],a=new Uint8Array(t),l=new Int32Array(t),h=0;h<l.length;){for(n={chromid:l[h],chr:i.chroms[l[h]],start:l[h+1],end:l[h+2]},h+=12;0!==(r=a[h++]);)o+=String.fromCharCode(r);n.chromid===e.chrom&&s.push([n.chr,n.start,n.end,o].join("\t"))}return s},l=function(e,n,r){var o=e+n,s=i.fetchedData.search({x:e,w:n,y:0,h:1}).filter((function(t){return t[0]<=e&&t[1]>=o}));1===s.length?r(s[0][2].slice(e-s[0][0],e+n)):t.slice(e,n).fetch((function(t){i.fetchedData.insert({x:e,w:n,y:0,h:1},[e,e+n,t]),r(t)}))},h=function(t,e,r,h){var c=[],u=i.chroms.indexOf(t);if(-1===u&&-1===(u=i.chroms.indexOf("chr".concat(t))))return h([],"chrom not found");var f,p,d,g,m={chrom:u,start:e,end:r};f=0,p=function(){var t="bigwig"===i.type?s:"bigbed"===i.type&&a,e=[];if(t&&c.length)for(var n=0;n<c.length;n++)e=e.concat(t(c[n].data,m));h(e)},d=function(){if(c.sort((function(t,e){return(0|t.offset)-(0|e.offset)})),0===c.length)return p();for(var t=0,e=c[0].offset,n=0;n<c.length;n++)t+=c[n].size;l(e,t,(function(e){for(var n,r,s=0,a=0;s<t;)n=c[a],r=i.uncompressBufSize>0?(0,o.Z)(e,s+2,n.size-2):e.slice(s,s+n.size),c[a].data=r,s+=n.size,a++;p()}))},g=function(t,e,i,r){var o,s=function(t,e){var i,r,o=new Uint8Array(t),s=new Uint16Array(t),a=new Uint32Array(t),l=s[e/2+1],h={isLeaf:o[e],children:l,chrIdxStart:new Array(l),baseStart:new Array(l),chrIdxEnd:new Array(l),baseEnd:new Array(l),dataOffset:new Array(l),x:{}};if(h.isLeaf)h.x.size=new Array(l);else for(h.x.child=new Array(l),r=0;r<l;r++)h.x.child[r]=-1;for(e+=4,r=0;r<l;r++)i=e/4,h.chrIdxStart[r]=a[i],h.baseStart[r]=a[i+1],h.chrIdxEnd[r]=a[i+2],h.baseEnd[r]=a[i+3],h.dataOffset[r]=n(o,e+16),e+=24,h.isLeaf&&(h.x.size[r]=n(o,e),e+=8);return h}(t,e),a=function(t){for(var e=t.children,i=[],n=0;n<e;n++){var r=t.chrIdxStart[n],o=t.baseStart[n],s=t.chrIdxEnd[n],a=t.baseEnd[n];(r<m.chrom||r==m.chrom&&o<=m.end)&&(s>m.chrom||s==m.chrom&&a>=m.start)&&i.push(n)}return i}(s);if(s.isLeaf){for(o=0;o<a.length;o++)c.push({offset:s.dataOffset[a[o]],size:s.x.size[a[o]]});return[]}r(a.map((function(t){return s.dataOffset[t]})),i+1)},function t(e,n){f+=e.length;var r=e[0],o=4+32*i.Rheader.blockSize,s=e[e.length-1]+o;l(r,s-r,(function(i){for(var o=0;o<e.length;o++)g(i,e[o]-r,n,t),0==--f&&d()}))}([i.rootOffset],1)},c=function(){var t=i.unzoomedDataOffset-i.chromTreeOffset;l(i.chromTreeOffset,t+4-t%4,(function(t){var r,o=new Uint8Array(t),s=new Uint16Array(t),a=new Uint32Array(t);2026540177===a[0]?(i.bpTree={itemsPerBlock:a[1],keySize:a[2],valueSize:a[3],itemCount:n(o,16)},i.chroms=new Array(i.bpTree.itemCount),i.lengths=new Array(i.bpTree.itemCount)):r="chromosome id B+ tree not found!",r?e(null,r):function(t){for(var e,n,r,a,l,h=s[t/2+1],c=t+4;h>0;){for(h--,e="",n=0;n<i.bpTree.keySize;n++)0!==(r=o[c+n])&&(e+=String.fromCharCode(r));c+=i.bpTree.keySize,a=o[c+3]<<24|o[c+2]<<16|o[c+1]<<8|o[c+0],l=o[c+7]<<24|o[c+6]<<16|o[c+5]<<8|o[c+4],c+=8,i.chroms[a]=e,i.lengths[a]=l}}(32),l(i.unzoomedIndexOffset,48,(function(t){var r=new Uint8Array(t),o=new Uint32Array(t);610839776===o[0]?(i.Rheader={blockSize:o[1],nItems:n(r,8),chrIdxStart:o[4],baseStart:o[5],chrIdxEnd:o[6],baseEnd:o[7],endFileOffset:n(r,32),nItemsPerSlot:o[10]},i.rootOffset=i.unzoomedIndexOffset+48,i.getValues=h,e(i)):e(null,"R-tree not found!")}))}))};l(0,512,(function(t){var r,o,s,a,h,u=new Uint8Array(t),f=new Uint16Array(t),p=new Uint32Array(t),d=p[0];2291137574===d?i.type="bigwig":2273964779===d?i.type="bigbed":r=654086024===d||3958540679===d?"big-endian files not supported yet!":"unsupported file format",r&&e(null,r),i.version=f[2],i.numZoomLevels=f[3],i.chromTreeOffset=n(u,8),i.unzoomedDataOffset=n(u,16),i.unzoomedIndexOffset=n(u,24),i.fieldCount=f[16],i.definedFieldCount=f[17],i.asOffset=n(u,36),i.totalSummaryOffset=n(u,44),i.uncompressBufSize=p[13],i.extHeaderOffset=n(u,56),i.compressed=i.uncompressBufSize>0,i.summary=i.totalSummaryOffset>0,i.extHeader=i.extHeaderOffset>0,i.zoomHeaders=[];for(var g=0;g<i.numZoomLevels;g++)o=p[16+6*g],s=n(u,72+24*g),a=n(u,80+24*g),i.zoomHeaders.push({reductionLevel:o,dataOffset:s,indexOffset:a});h=c,0===i.asOffset?h():l(i.asOffset,2048,(function(t){for(var e=new Uint8Array(t),n="",r=0;r<e.length&&0!==e[r];r++)n+=String.fromCharCode(e[r]);var o=/([\w[]]+)\s+(\w+)\s*;\s*("([^"]+)")?\s*/g,s=/(\w+)\s+(\w+)\s+("([^"]+)")?\s*\(\s*/.exec(n);if(s){var a={declType:s[1],name:s[2],comment:s[4],fields:[]};n=n.substring(s[0]);for(var l=o.exec(n);null!==l;l=o.exec(n))a.fields.push({type:l[1],name:l[2],comment:l[4]});i.schema=a}h()}))}))}},9817:function(t,e,i){"use strict";i.d(e,{PE:function(){return y},zn:function(){return b},$_:function(){return O},yl:function(){return T},N1:function(){return P},tq:function(){return j}});function n(t){return a(l(s(t),8*t.length))}function r(t){for(var e="",i=t.length,n=0;n<i;n+=3)for(var r=t.charCodeAt(n)<<16|(n+1<i?t.charCodeAt(n+1)<<8:0)|(n+2<i?t.charCodeAt(n+2):0),o=0;o<4;o++)8*n+6*o>8*t.length?e+="":e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>>6*(3-o)&63);return e}function o(t){for(var e,i,n="",r=-1;++r<t.length;)e=t.charCodeAt(r),i=r+1<t.length?t.charCodeAt(r+1):0,55296<=e&&e<=56319&&56320<=i&&i<=57343&&(e=65536+((1023&e)<<10)+(1023&i),r++),e<=127?n+=String.fromCharCode(e):e<=2047?n+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}function s(t){for(var e=Array(t.length>>2),i=0;i<e.length;i++)e[i]=0;for(i=0;i<8*t.length;i+=8)e[i>>5]|=(255&t.charCodeAt(i/8))<<24-i%32;return e}function a(t){for(var e="",i=0;i<32*t.length;i+=8)e+=String.fromCharCode(t[i>>5]>>>24-i%32&255);return e}function l(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var i=Array(80),n=1732584193,r=-271733879,o=-1732584194,s=271733878,a=-1009589776,l=0;l<t.length;l+=16){for(var p=n,d=r,g=o,m=s,v=a,y=0;y<80;y++){i[y]=y<16?t[l+y]:f(i[y-3]^i[y-8]^i[y-14]^i[y-16],1);var b=u(u(f(n,5),h(y,r,o,s)),u(u(a,i[y]),c(y)));a=s,s=o,o=f(r,30),r=n,n=b}n=u(n,p),r=u(r,d),o=u(o,g),s=u(s,m),a=u(a,v)}return Array(n,r,o,s,a)}function h(t,e,i,n){return t<20?e&i|~e&n:t<40?e^i^n:t<60?e&i|e&n|i&n:e^i^n}function c(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function u(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function f(t,e){return t<<e|t>>>32-e}var p=function(t){return r(n(o(t)))};function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function g(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?d(Object(i),!0).forEach((function(e){m(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function m(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(t){this.blob=t}function b(t,e,i,n){n||("object"===v(e)?(n=e,e=void 0):n={}),this.url=t,this.start=e||0,i&&(this.end=i),this.opts=n}y.prototype.slice=function(t,e){return new y(this.blob.slice?e?this.blob.slice(t,t+e):this.blob.slice(t):e?this.blob.webkitSlice(t,t+e):this.blob.webkitSlice(t))},y.prototype.salted=function(){return this},"undefined"!=typeof FileReader?y.prototype.fetch=function(t){var e=new FileReader;e.onloadend=function(i){t(_(e.result))},e.readAsBinaryString(this.blob)}:y.prototype.fetch=function(t){var e=new FileReaderSync;try{t(e.readAsArrayBuffer(this.blob))}catch(e){t(null,e)}},b.prototype.slice=function(t,e){if(t<0)throw"Bad slice "+t;var i=this.start,n=this.end;return i&&t?i+=t:i=t||i,n=e&&i?i+e-1:n||e-1,new b(this.url,i,n,this.opts)};var w=0,x="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>=0&&navigator.userAgent.indexOf("Chrome")<0;function _(t){if(!t)return null;for(var e=new Uint8Array(t.length),i=0;i<e.length;++i)e[i]=t.charCodeAt(i);return e.buffer}b.prototype.fetchAsText=function(t){var e=this;this.getURL().then((function(i){try{var n=new XMLHttpRequest;if((x||e.opts.salt)&&i.indexOf("?")<0&&(i=i+"?salt="+p(Date.now()+","+ ++w)),n.open("GET",i,!0),e.end){if(e.end-e.start>1e8)throw"Monster fetch!";n.setRequestHeader("Range","bytes="+e.start+"-"+e.end),e.end-e.start+1}n.onreadystatechange=function(){if(4==n.readyState)return 200==n.status||206==n.status?t(n.responseText):t(null)},e.opts.credentials&&(n.withCredentials=!0),n.send()}catch(e){return t(null)}})).catch((function(e){return console.log(e),t(null,e)}))},b.prototype.salted=function(){return new b(this.url,this.start,this.end,g(g({},this.opts),{},{salt:!0}))},b.prototype.getURL=function(){return this.opts.resolver?this.opts.resolver(this.url).then((function(t){return"string"==typeof t?t:t.url})):Promise.resolve(this.url)},b.prototype.fetch=function(t,e){var i=this,n=(e=e||{}).attempt||1,r=e.truncatedLength;if(n>3)return t(null);this.getURL().then((function(o){try{var s;e.timeout&&!i.opts.credentials&&(s=setTimeout((function(){return console.log("timing out "+o),l.abort(),t(null,"Timeout")}),e.timeout));var a,l=new XMLHttpRequest;if((x||i.opts.salt)&&o.indexOf("?")<0&&(o=o+"?salt="+p(Date.now()+","+ ++w)),l.open("GET",o,!0),l.overrideMimeType("text/plain; charset=x-user-defined"),i.end){if(i.end-i.start>1e8)throw"Monster fetch!";l.setRequestHeader("Range","bytes="+i.start+"-"+i.end),a=i.end-i.start+1}l.responseType="arraybuffer",l.onreadystatechange=function(){if(4==l.readyState){if(s&&clearTimeout(s),200==l.status||206==l.status){if(l.response){var e=l.response.byteLength;return!a||a==e||r&&e==r?t(l.response):i.fetch(t,{attempt:n+1,truncatedLength:e})}if(l.mozResponseArrayBuffer)return t(l.mozResponseArrayBuffer);var o=l.responseText;return!a||a==o.length||r&&o.length==r?t(_(l.responseText)):i.fetch(t,{attempt:n+1,truncatedLength:o.length})}return i.fetch(t,{attempt:n+1})}},i.opts.credentials&&(l.withCredentials=!0),l.send()}catch(e){return t(null)}})).catch((function(e){return console.log(e),t(null,e)}))};var k=new ArrayBuffer(8),S=new Uint8Array(k),C=new Float32Array(k);function T(t,e){return S[0]=t[e],S[1]=t[e+1],S[2]=t[e+2],S[3]=t[e+3],C[0]}function P(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function j(t,e){return t[e+1]<<8|t[e]}function O(t,e){return t[e]}},9408:function(t,e){"use strict";var i=15,n=-2,r=-3,o=-5,s=13,a=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],l=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],h=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],c=[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],u=[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,112,112],f=[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],p=[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];function d(){}function g(){this.was=[0]}d.prototype.inflateInit=function(t,e){return t||(t=15),e&&(e=!1),this.istate=new g,this.istate.inflateInit(this,e?-t:t)},d.prototype.inflate=function(t){return null==this.istate?n:this.istate.inflate(this,t)},d.prototype.inflateEnd=function(){if(null==this.istate)return n;var t=istate.inflateEnd(this);return this.istate=null,t},d.prototype.inflateSync=function(){return istate.inflateSync(this)},d.prototype.inflateSetDictionary=function(t,e){return istate.inflateSetDictionary(this,t,e)},g.prototype.inflateReset=function(t){return null==t||null==t.istate?n:(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=0!=t.istate.nowrap?7:0,t.istate.blocks.reset(t,null),0)},g.prototype.inflateEnd=function(t){return null!=this.blocks&&this.blocks.free(t),this.blocks=null,0},g.prototype.inflateInit=function(t,e){return t.msg=null,this.blocks=null,nowrap=0,e<0&&(e=-e,nowrap=1),e<8||e>15?(this.inflateEnd(t),n):(this.wbits=e,t.istate.blocks=new y(t,0!=t.istate.nowrap?null:this,1<<e),this.inflateReset(t),0)},g.prototype.inflate=function(t,e){var i,a;if(null==t||null==t.istate||null==t.next_in)return n;for(e=4==e?o:0,i=o;;)switch(t.istate.mode){case 0:if(0==t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,8!=(15&(t.istate.method=t.next_in[t.next_in_index++]))){t.istate.mode=s,t.msg="unknown compression method",t.istate.marker=5;break}if(8+(t.istate.method>>4)>t.istate.wbits){t.istate.mode=s,t.msg="invalid window size",t.istate.marker=5;break}t.istate.mode=1;case 1:if(0==t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,a=255&t.next_in[t.next_in_index++],((t.istate.method<<8)+a)%31!=0){t.istate.mode=s,t.msg="incorrect header check",t.istate.marker=5;break}if(0==(32&a)){t.istate.mode=7;break}t.istate.mode=2;case 2:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=3;case 3:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=4;case 4:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=5;case 5:return 0==t.avail_in?i:(i=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.adler=t.istate.need,t.istate.mode=6,2);case 6:return t.istate.mode=s,t.msg="need dictionary",t.istate.marker=0,n;case 7:if((i=t.istate.blocks.proc(t,i))==r){t.istate.mode=s,t.istate.marker=0;break}if(0==i&&(i=e),1!=i)return i;if(i=e,t.istate.blocks.reset(t,t.istate.was),0!=t.istate.nowrap){t.istate.mode=12;break}t.istate.mode=8;case 8:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=9;case 9:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=10;case 10:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=11;case 11:if(0==t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.istate.was[0]!=t.istate.need){t.istate.mode=s,t.msg="incorrect data check",t.istate.marker=5;break}t.istate.mode=12;case 12:return 1;case s:return r;default:return n}},g.prototype.inflateSetDictionary=function(t,e,i){var o=0,s=i;return null==t||null==t.istate||6!=t.istate.mode?n:t._adler.adler32(1,e,0,i)!=t.adler?r:(t.adler=t._adler.adler32(0,null,0,0),s>=1<<t.istate.wbits&&(o=i-(s=(1<<t.istate.wbits)-1)),t.istate.blocks.set_dictionary(e,o,s),t.istate.mode=7,0)};var m=[0,0,255,255];g.prototype.inflateSync=function(t){var e,i,a,l,h;if(null==t||null==t.istate)return n;if(t.istate.mode!=s&&(t.istate.mode=s,t.istate.marker=0),0==(e=t.avail_in))return o;for(i=t.next_in_index,a=t.istate.marker;0!=e&&a<4;)t.next_in[i]==m[a]?a++:a=0!=t.next_in[i]?0:4-a,i++,e--;return t.total_in+=i-t.next_in_index,t.next_in_index=i,t.avail_in=e,t.istate.marker=a,4!=a?r:(l=t.total_in,h=t.total_out,this.inflateReset(t),t.total_in=l,t.total_out=h,t.istate.mode=7,0)},g.prototype.inflateSyncPoint=function(t){return null==t||null==t.istate||null==t.istate.blocks?n:t.istate.blocks.sync_point()};var v=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function y(t,e,i){this.hufts=new Int32Array(4320),this.window=new Uint8Array(i),this.end=i,this.checkfn=e,this.mode=0,this.reset(t,null),this.left=0,this.table=0,this.index=0,this.blens=null,this.bb=new Int32Array(1),this.tb=new Int32Array(1),this.codes=new b,this.last=0,this.bitk=0,this.bitb=0,this.read=0,this.write=0,this.check=0,this.inftree=new w}y.prototype.reset=function(t,e){e&&(e[0]=this.check),6==this.mode&&this.codes.free(t),this.mode=0,this.bitk=0,this.bitb=0,this.read=this.write=0,this.checkfn&&(t.adler=this.check=t._adler.adler32(0,null,0,0))},y.prototype.proc=function(t,e){var i,o,l,h,c,u,f;for(h=t.next_in_index,c=t.avail_in,o=this.bitb,l=this.bitk,f=(u=this.write)<this.read?this.read-u-1:this.end-u;;)switch(this.mode){case 0:for(;l<3;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}switch(i=7&o,this.last=1&i,i>>>1){case 0:o>>>=3,o>>>=i=7&(l-=3),l-=i,this.mode=1;break;case 1:x(m=new Int32Array(1),y=new Int32Array(1),b=[],w=[],t),this.codes.init(m[0],y[0],b[0],0,w[0],0,t),o>>>=3,l-=3,this.mode=6;break;case 2:o>>>=3,l-=3,this.mode=3;break;case 3:return o>>>=3,l-=3,this.mode=s,t.msg="invalid block type",e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e)}break;case 1:for(;l<32;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}if((~o>>>16&65535)!=(65535&o))return this.mode=s,t.msg="invalid stored block lengths",e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);this.left=65535&o,o=l=0,this.mode=0!=this.left?2:0!=this.last?7:0;break;case 2:if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,write=u,this.inflate_flush(t,e);if(0==f&&(u==end&&0!=read&&(f=(u=0)<this.read?this.read-u-1:this.end-u),0==f&&(this.write=u,e=this.inflate_flush(t,e),f=(u=this.write)<this.read?this.read-u-1:this.end-u,u==this.end&&0!=this.read&&(f=(u=0)<this.read?this.read-u-1:this.end-u),0==f)))return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);if(e=0,(i=this.left)>c&&(i=c),i>f&&(i=f),k(t.next_in,h,this.window,u,i),h+=i,c-=i,u+=i,f-=i,0!=(this.left-=i))break;this.mode=0!=this.last?7:0;break;case 3:for(;l<14;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}if(this.table=i=16383&o,(31&i)>29||(i>>5&31)>29)return this.mode=9,t.msg="too many length or distance symbols",e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);if(i=258+(31&i)+(i>>5&31),null==this.blens||this.blens.length<i)this.blens=new Int32Array(i);else for(var p=0;p<i;p++)this.blens[p]=0;o>>>=14,l-=14,this.index=0,mode=4;case 4:for(;this.index<4+(this.table>>>10);){for(;l<3;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}this.blens[v[this.index++]]=7&o,o>>>=3,l-=3}for(;this.index<19;)this.blens[v[this.index++]]=0;if(this.bb[0]=7,0!=(i=this.inftree.inflate_trees_bits(this.blens,this.bb,this.tb,this.hufts,t)))return(e=i)==r&&(this.blens=null,this.mode=9),this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,write=u,this.inflate_flush(t,e);this.index=0,this.mode=5;case 5:for(;i=this.table,this.index<258+(31&i)+(i>>5&31);){var d,g;for(i=this.bb[0];l<i;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}if(i=this.hufts[3*(this.tb[0]+(o&a[i]))+1],(g=this.hufts[3*(this.tb[0]+(o&a[i]))+2])<16)o>>>=i,l-=i,this.blens[this.index++]=g;else{for(p=18==g?7:g-14,d=18==g?11:3;l<i+p;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}if(l-=i,d+=(o>>>=i)&a[p],o>>>=p,l-=p,(p=this.index)+d>258+(31&(i=this.table))+(i>>5&31)||16==g&&p<1)return this.blens=null,this.mode=9,t.msg="invalid bit length repeat",e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);g=16==g?this.blens[p-1]:0;do{this.blens[p++]=g}while(0!=--d);this.index=p}}this.tb[0]=-1;var m=new Int32Array(1),y=new Int32Array(1),b=new Int32Array(1),w=new Int32Array(1);if(m[0]=9,y[0]=6,i=this.table,0!=(i=this.inftree.inflate_trees_dynamic(257+(31&i),1+(i>>5&31),this.blens,m,y,b,w,this.hufts,t)))return i==r&&(this.blens=null,this.mode=s),e=i,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);this.codes.init(m[0],y[0],this.hufts,b[0],this.hufts,w[0],t),this.mode=6;case 6:if(this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,1!=(e=this.codes.proc(this,t,e)))return this.inflate_flush(t,e);if(e=0,this.codes.free(t),h=t.next_in_index,c=t.avail_in,o=this.bitb,l=this.bitk,f=(u=this.write)<this.read?this.read-u-1:this.end-u,0==this.last){this.mode=0;break}this.mode=7;case 7:if(this.write=u,e=this.inflate_flush(t,e),f=(u=this.write)<this.read?this.read-u-1:this.end-u,this.read!=this.write)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);mode=12;case 8:return e=1,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);case 9:return e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);default:return e=n,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e)}},y.prototype.free=function(t){this.reset(t,null),this.window=null,this.hufts=null},y.prototype.set_dictionary=function(t,e,i){k(t,e,window,0,i),this.read=this.write=i},y.prototype.sync_point=function(){return 1==this.mode},y.prototype.inflate_flush=function(t,e){var i,n,r;return n=t.next_out_index,(i=((r=this.read)<=this.write?this.write:this.end)-r)>t.avail_out&&(i=t.avail_out),0!=i&&e==o&&(e=0),t.avail_out-=i,t.total_out+=i,null!=this.checkfn&&(t.adler=this.check=t._adler.adler32(this.check,this.window,r,i)),k(this.window,r,t.next_out,n,i),n+=i,(r+=i)==this.end&&(r=0,this.write==this.end&&(this.write=0),(i=this.write-r)>t.avail_out&&(i=t.avail_out),0!=i&&e==o&&(e=0),t.avail_out-=i,t.total_out+=i,null!=this.checkfn&&(t.adler=this.check=t._adler.adler32(this.check,this.window,r,i)),k(this.window,r,t.next_out,n,i),n+=i,r+=i),t.next_out_index=n,this.read=r,e};function b(){}function w(){}function x(t,e,i,n,r){return t[0]=9,e[0]=5,i[0]=l,n[0]=h,0}b.prototype.init=function(t,e,i,n,r,o,s){this.mode=0,this.lbits=t,this.dbits=e,this.ltree=i,this.ltree_index=n,this.dtree=r,this.dtree_index=o,this.tree=null},b.prototype.proc=function(t,e,i){var o,s,l,h,c,u,f,p=0,d=0,g=0;for(g=e.next_in_index,h=e.avail_in,p=t.bitb,d=t.bitk,u=(c=t.write)<t.read?t.read-c-1:t.end-c;;)switch(this.mode){case 0:if(u>=258&&h>=10&&(t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,i=this.inflate_fast(this.lbits,this.dbits,this.ltree,this.ltree_index,this.dtree,this.dtree_index,t,e),g=e.next_in_index,h=e.avail_in,p=t.bitb,d=t.bitk,u=(c=t.write)<t.read?t.read-c-1:t.end-c,0!=i)){this.mode=1==i?7:9;break}this.need=this.lbits,this.tree=this.ltree,this.tree_index=this.ltree_index,this.mode=1;case 1:for(o=this.need;d<o;){if(0==h)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,h--,p|=(255&e.next_in[g++])<<d,d+=8}if(s=3*(this.tree_index+(p&a[o])),p>>>=this.tree[s+1],d-=this.tree[s+1],0==(l=this.tree[s])){this.lit=this.tree[s+2],this.mode=6;break}if(0!=(16&l)){this.get=15&l,this.len=this.tree[s+2],this.mode=2;break}if(0==(64&l)){this.need=l,this.tree_index=s/3+this.tree[s+2];break}if(0!=(32&l)){this.mode=7;break}return this.mode=9,e.msg="invalid literal/length code",i=r,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);case 2:for(o=this.get;d<o;){if(0==h)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,h--,p|=(255&e.next_in[g++])<<d,d+=8}this.len+=p&a[o],p>>=o,d-=o,this.need=this.dbits,this.tree=this.dtree,this.tree_index=this.dtree_index,this.mode=3;case 3:for(o=this.need;d<o;){if(0==h)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,h--,p|=(255&e.next_in[g++])<<d,d+=8}if(s=3*(this.tree_index+(p&a[o])),p>>=this.tree[s+1],d-=this.tree[s+1],0!=(16&(l=this.tree[s]))){this.get=15&l,this.dist=this.tree[s+2],this.mode=4;break}if(0==(64&l)){this.need=l,this.tree_index=s/3+this.tree[s+2];break}return this.mode=9,e.msg="invalid distance code",i=r,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);case 4:for(o=this.get;d<o;){if(0==h)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,h--,p|=(255&e.next_in[g++])<<d,d+=8}this.dist+=p&a[o],p>>=o,d-=o,this.mode=5;case 5:for(f=c-this.dist;f<0;)f+=t.end;for(;0!=this.len;){if(0==u&&(c==t.end&&0!=t.read&&(u=(c=0)<t.read?t.read-c-1:t.end-c),0==u&&(t.write=c,i=t.inflate_flush(e,i),u=(c=t.write)<t.read?t.read-c-1:t.end-c,c==t.end&&0!=t.read&&(u=(c=0)<t.read?t.read-c-1:t.end-c),0==u)))return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);t.window[c++]=t.window[f++],u--,f==t.end&&(f=0),this.len--}this.mode=0;break;case 6:if(0==u&&(c==t.end&&0!=t.read&&(u=(c=0)<t.read?t.read-c-1:t.end-c),0==u&&(t.write=c,i=t.inflate_flush(e,i),u=(c=t.write)<t.read?t.read-c-1:t.end-c,c==t.end&&0!=t.read&&(u=(c=0)<t.read?t.read-c-1:t.end-c),0==u)))return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,t.window[c++]=this.lit,u--,this.mode=0;break;case 7:if(d>7&&(d-=8,h++,g--),t.write=c,i=t.inflate_flush(e,i),u=(c=t.write)<t.read?t.read-c-1:t.end-c,t.read!=t.write)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);this.mode=8;case 8:return i=1,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);case 9:return i=r,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);default:return i=n,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i)}},b.prototype.free=function(t){},b.prototype.inflate_fast=function(t,e,i,n,o,s,l,h){var c,u,f,p,d,g,m,v,y,b,w,x,_,S,C,T;m=h.next_in_index,v=h.avail_in,d=l.bitb,g=l.bitk,b=(y=l.write)<l.read?l.read-y-1:l.end-y,w=a[t],x=a[e];do{for(;g<20;)v--,d|=(255&h.next_in[m++])<<g,g+=8;if(0!=(p=(u=i)[T=3*((f=n)+(c=d&w))]))for(;;){if(d>>=u[T+1],g-=u[T+1],0!=(16&p)){for(p&=15,_=u[T+2]+(d&a[p]),d>>=p,g-=p;g<15;)v--,d|=(255&h.next_in[m++])<<g,g+=8;for(p=(u=o)[T=3*((f=s)+(c=d&x))];;){if(d>>=u[T+1],g-=u[T+1],0!=(16&p)){for(p&=15;g<p;)v--,d|=(255&h.next_in[m++])<<g,g+=8;if(S=u[T+2]+(d&a[p]),d>>=p,g-=p,b-=_,y>=S)C=y-S,l.window[y++]=l.window[C++],l.window[y++]=l.window[C++],_-=2;else{C=y-S;do{C+=l.end}while(C<0);if(_>(p=l.end-C)){if(_-=p,y-C>0&&p>y-C)do{l.window[y++]=l.window[C++]}while(0!=--p);else k(l.window,C,l.window,y,p),y+=p,C+=p,p=0;C=0}}do{l.window[y++]=l.window[C++]}while(0!=--_);break}if(0!=(64&p))return h.msg="invalid distance code",v+=_=g>>3<(_=h.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,h.avail_in=v,h.total_in+=m-h.next_in_index,h.next_in_index=m,l.write=y,r;c+=u[T+2],p=u[T=3*(f+(c+=d&a[p]))]}break}if(0!=(64&p))return 0!=(32&p)?(v+=_=g>>3<(_=h.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,h.avail_in=v,h.total_in+=m-h.next_in_index,h.next_in_index=m,l.write=y,1):(h.msg="invalid literal/length code",v+=_=g>>3<(_=h.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,h.avail_in=v,h.total_in+=m-h.next_in_index,h.next_in_index=m,l.write=y,r);if(c+=u[T+2],0==(p=u[T=3*(f+(c+=d&a[p]))])){d>>=u[T+1],g-=u[T+1],l.window[y++]=u[T+2],b--;break}}else d>>=u[T+1],g-=u[T+1],l.window[y++]=u[T+2],b--}while(b>=258&&v>=10);return v+=_=g>>3<(_=h.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,h.avail_in=v,h.total_in+=m-h.next_in_index,h.next_in_index=m,l.write=y,0},w.prototype.huft_build=function(t,e,n,s,a,l,h,c,u,f,p){var d,g,m,v,y,b,w,x,_,S,C,T,P,j,O;S=0,y=n;do{this.c[t[e+S]]++,S++,y--}while(0!=y);if(this.c[0]==n)return h[0]=-1,c[0]=0,0;for(x=c[0],b=1;b<=i&&0==this.c[b];b++);for(w=b,x<b&&(x=b),y=i;0!=y&&0==this.c[y];y--);for(m=y,x>y&&(x=y),c[0]=x,j=1<<b;b<y;b++,j<<=1)if((j-=this.c[b])<0)return r;if((j-=this.c[y])<0)return r;for(this.c[y]+=j,this.x[1]=b=0,S=1,P=2;0!=--y;)this.x[P]=b+=this.c[S],P++,S++;y=0,S=0;do{0!=(b=t[e+S])&&(this.v[this.x[b]++]=y),S++}while(++y<n);for(n=this.x[m],this.x[0]=y=0,S=0,v=-1,T=-x,this.u[0]=0,C=0,O=0;w<=m;w++)for(d=this.c[w];0!=d--;){for(;w>T+x;){if(v++,O=(O=m-(T+=x))>x?x:O,(g=1<<(b=w-T))>d+1&&(g-=d+1,P=w,b<O))for(;++b<O&&!((g<<=1)<=this.c[++P]);)g-=this.c[P];if(O=1<<b,this.hn[0]+O>1440)return r;this.u[v]=C=this.hn[0],this.hn[0]+=O,0!=v?(this.x[v]=y,this.r[0]=b,this.r[1]=x,b=y>>>T-x,this.r[2]=C-this.u[v-1]-b,k(this.r,0,u,3*(this.u[v-1]+b),3)):h[0]=C}for(this.r[1]=w-T,S>=n?this.r[0]=192:p[S]<s?(this.r[0]=this.v[S]<256?0:96,this.r[2]=this.v[S++]):(this.r[0]=l[this.v[S]-s]+16+64,this.r[2]=a[this.v[S++]-s]),g=1<<w-T,b=y>>>T;b<O;b+=g)k(this.r,0,u,3*(C+b),3);for(b=1<<w-1;0!=(y&b);b>>>=1)y^=b;for(y^=b,_=(1<<T)-1;(y&_)!=this.x[v];)v--,_=(1<<(T-=x))-1}return 0!=j&&1!=m?o:0},w.prototype.inflate_trees_bits=function(t,e,i,n,s){var a;return this.initWorkArea(19),this.hn[0]=0,(a=this.huft_build(t,0,19,19,null,null,i,e,n,this.hn,this.v))==r?s.msg="oversubscribed dynamic bit lengths tree":a!=o&&0!=e[0]||(s.msg="incomplete dynamic bit lengths tree",a=r),a},w.prototype.inflate_trees_dynamic=function(t,e,i,n,s,a,l,h,d){var g;return this.initWorkArea(288),this.hn[0]=0,0!=(g=this.huft_build(i,0,t,257,c,u,a,n,h,this.hn,this.v))||0==n[0]?(g==r?d.msg="oversubscribed literal/length tree":-4!=g&&(d.msg="incomplete literal/length tree",g=r),g):(this.initWorkArea(288),0!=(g=this.huft_build(i,t,e,0,f,p,l,s,h,this.hn,this.v))||0==s[0]&&t>257?(g==r?d.msg="oversubscribed distance tree":g==o?(d.msg="incomplete distance tree",g=r):-4!=g&&(d.msg="empty distance tree with lengths",g=r),g):0)},w.prototype.initWorkArea=function(t){null==this.hn&&(this.hn=new Int32Array(1),this.v=new Int32Array(t),this.c=new Int32Array(16),this.r=new Int32Array(3),this.u=new Int32Array(i),this.x=new Int32Array(16)),this.v.length<t&&(this.v=new Int32Array(t));for(var e=0;e<t;e++)this.v[e]=0;for(e=0;e<16;e++)this.c[e]=0;for(e=0;e<3;e++)this.r[e]=0;k(this.c,0,this.u,0,i),k(this.c,0,this.x,0,16)};var _="function"==typeof new Uint8Array(1).subarray;function k(t,e,i,n,r){if(0!=r){if(!t)throw"Undef src";if(!i)throw"Undef dest";0==e&&r==t.length?S(t,i,n):_?S(t.subarray(e,e+r),i,n):1==t.BYTES_PER_ELEMENT&&r>100?S(new Uint8Array(t.buffer,t.byteOffset+e,r),i,n):function(t,e,i,n,r){for(var o=0;o<r;++o)i[n+o]=t[e+o]}(t,e,i,n,r)}}function S(t,e,i){e.set(t,i)}e.Z=function(t,e,i,n){t=e?i?new Uint8Array(t,e,i):new Uint8Array(t,e,t.byteLength-e):new Uint8Array(t);var r=new d;r.inflateInit(15,!0),r.next_in=t,r.next_in_index=0,r.avail_in=t.length;for(var s=[],a=0;;){var l=new Uint8Array(32e3);r.next_out=l,r.next_out_index=0,r.avail_out=l.length;var h=r.inflate(0);if(0!=h&&1!=h&&h!=o)throw r.msg;if(0!=r.avail_out){var c=new Uint8Array(l.length-r.avail_out);k(l,0,c,0,l.length-r.avail_out),l=c}if(s.push(l),a+=l.length,1==h||h==o)break}if(n&&(n[0]=(e||0)+r.next_in_index),1==s.length)return s[0].buffer;for(var u=new Uint8Array(a),f=0,p=0;p<s.length;++p){var g=s[p];k(g,0,u,f,g.length),f+=g.length}return u.buffer}},2940:function(t,e){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var n=function(t,e,i,n,r,o){var s="".concat(e).concat(i),a=r["".concat(s,".once")]||[],l=(r[s]||[]).concat(a,"function"==typeof n[s]?n[s]:[]);a.length&&delete r["".concat(s,".once")],l.forEach((function(e){return e.apply(t,o)}))},r=function(t,e,r,o,s){if(!e.functions[t]&&!/^(before|after)/.test(t)){var a="".concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)),l=s.for,h=!!l&&"".concat(s.label,".").concat(t),c="time"===l||"object"===i(l)&&l[t];e.functions[t]=e[t].bind(e),e[t]=function(){var i,s,u,f,p=(null===(i=e._currentConfig||(null===(s=e.track)||void 0===s?void 0:s._currentConfig))||void 0===i?void 0:i.func)||{};!0===l?console.log(h):c&&console.time("time: ".concat(h));for(var d=arguments.length,g=new Array(d),m=0;m<d;m++)g[m]=arguments[m];(n(e,"before",a,r,o,g),p[t])?(e.base=e.functions[t]||function(){},u=p[t].apply(e,g)):u=(f=e.functions)[t].apply(f,g);return n(e,"after",a,r,o,g),c&&console.timeEnd("time: ".concat(h)),u}}};e.Z=function(t,e){t.functions=t.functions||{};var i="Genoverse"===e,n=i||"Track"===e?t:t.track,o=i?t.events.browser:t.browser.events.tracks,s={for:n.debug,label:!!n.debug&&[i?"Genoverse":n.id||n.name||"Track",t!==n&&e].filter(Boolean).join(".")};for(var a in t)"function"!=typeof t[a]||"function"==typeof t[a].ancestor||a.match(/^(base|extend|constructor|controller|model|view|on|once|prop|loadPlugins|loadGenome|jQuery)$/)||r(a,t,n,o,s)}},7810:function(t){var e;t.exports=((e=function(){}).extend=function(t,i){var n=e.prototype.extend;e._prototyping=!0;var r=new this;n.call(r,t),r.base=function(){},delete e._prototyping;var o=r.constructor,s=r.constructor=function(){if(!e._prototyping)if(this._constructing||this.constructor===s)this._constructing=!0,o.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||n).call(arguments[0],r)};return s.ancestor=this,s.extend=this.extend,s.forEach=this.forEach,s.implement=this.implement,s.prototype=r,s.toString=this.toString,s.valueOf=function(t){return"object"===t?s:o.valueOf()},n.call(s,i),"function"==typeof s.init&&s.init(),s},e.prototype={extend:function(t,i){if(arguments.length>1){var n=this[t];if(n&&"function"==typeof i&&(!n.valueOf||n.valueOf()!==i.valueOf())&&/\bbase\b/.test(i)){var r=i.valueOf();i=function(){var t=this.base||e.prototype.base;this.base=n;var i=r.apply(this,arguments);return this.base=t,i},i.valueOf=function(t){return"object"===t?i:r},i.toString=e.toString}this[t]=i}else if(t){var o=e.prototype.extend;e._prototyping||"function"==typeof this||(o=this.extend||o);for(var s={toSource:null},a=["constructor","toString","valueOf"],l=e._prototyping?0:1;l<a.length;l++){var h=a[l];t[h]!==s[h]&&o.call(this,h,t[h])}for(var c in t)s[c]||o.call(this,c,t[c])}return this}},e=e.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(t,e,i){for(var n in t)void 0===this.prototype[n]&&e.call(i,t[n],n,t)},implement:function(){for(var t=0;t<arguments.length;t++)"function"==typeof arguments[t]?arguments[t](this.prototype):this.prototype.extend(arguments[t]);return this},toString:function(){return String(this.valueOf())}}),e)},9662:function(t,e,i){var n=i(7854),r=i(614),o=i(6330),s=n.TypeError;t.exports=function(t){if(r(t))return t;throw s(o(t)+" is not a function")}},9483:function(t,e,i){var n=i(7854),r=i(4411),o=i(6330),s=n.TypeError;t.exports=function(t){if(r(t))return t;throw s(o(t)+" is not a constructor")}},6077:function(t,e,i){var n=i(7854),r=i(614),o=n.String,s=n.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw s("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,i){var n=i(5112),r=i(30),o=i(3070),s=n("unscopables"),a=Array.prototype;null==a[s]&&o.f(a,s,{configurable:!0,value:r(null)}),t.exports=function(t){a[s][t]=!0}},5787:function(t,e,i){var n=i(7854),r=i(7976),o=n.TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,i){var n=i(7854),r=i(111),o=n.String,s=n.TypeError;t.exports=function(t){if(r(t))return t;throw s(o(t)+" is not an object")}},1285:function(t,e,i){"use strict";var n=i(7908),r=i(1400),o=i(6244);t.exports=function(t){for(var e=n(this),i=o(e),s=arguments.length,a=r(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,h=void 0===l?i:r(l,i);h>a;)e[a++]=t;return e}},8457:function(t,e,i){"use strict";var n=i(7854),r=i(9974),o=i(6916),s=i(7908),a=i(3411),l=i(7659),h=i(4411),c=i(6244),u=i(6135),f=i(8554),p=i(1246),d=n.Array;t.exports=function(t){var e=s(t),i=h(this),n=arguments.length,g=n>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,n>2?arguments[2]:void 0));var v,y,b,w,x,_,k=p(e),S=0;if(!k||this==d&&l(k))for(v=c(e),y=i?new this(v):d(v);v>S;S++)_=m?g(e[S],S):e[S],u(y,S,_);else for(x=(w=f(e,k)).next,y=i?new this:[];!(b=o(x,w)).done;S++)_=m?a(w,g,[b.value,S],!0):b.value,u(y,S,_);return y.length=S,y}},1318:function(t,e,i){var n=i(5656),r=i(1400),o=i(6244),s=function(t){return function(e,i,s){var a,l=n(e),h=o(l),c=r(s,h);if(t&&i!=i){for(;h>c;)if((a=l[c++])!=a)return!0}else for(;h>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,i){var n=i(9974),r=i(1702),o=i(8361),s=i(7908),a=i(6244),l=i(5417),h=r([].push),c=function(t){var e=1==t,i=2==t,r=3==t,c=4==t,u=6==t,f=7==t,p=5==t||u;return function(d,g,m,v){for(var y,b,w=s(d),x=o(w),_=n(g,m),k=a(x),S=0,C=v||l,T=e?C(d,k):i||f?C(d,0):void 0;k>S;S++)if((p||S in x)&&(b=_(y=x[S],S,w),t))if(e)T[S]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:h(T,y)}else switch(t){case 4:return!1;case 7:h(T,y)}return u?-1:r||c?c:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},1589:function(t,e,i){var n=i(7854),r=i(1400),o=i(6244),s=i(6135),a=n.Array,l=Math.max;t.exports=function(t,e,i){for(var n=o(t),h=r(e,n),c=r(void 0===i?n:i,n),u=a(l(c-h,0)),f=0;h<c;h++,f++)s(u,f,t[h]);return u.length=f,u}},206:function(t,e,i){var n=i(1702);t.exports=n([].slice)},4362:function(t,e,i){var n=i(1589),r=Math.floor,o=function(t,e){var i=t.length,l=r(i/2);return i<8?s(t,e):a(t,o(n(t,0,l),e),o(n(t,l),e),e)},s=function(t,e){for(var i,n,r=t.length,o=1;o<r;){for(n=o,i=t[o];n&&e(t[n-1],i)>0;)t[n]=t[--n];n!==o++&&(t[n]=i)}return t},a=function(t,e,i,n){for(var r=e.length,o=i.length,s=0,a=0;s<r||a<o;)t[s+a]=s<r&&a<o?n(e[s],i[a])<=0?e[s++]:i[a++]:s<r?e[s++]:i[a++];return t};t.exports=o},7475:function(t,e,i){var n=i(7854),r=i(3157),o=i(4411),s=i(111),a=i(5112)("species"),l=n.Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===l||r(e.prototype))||s(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?l:e}},5417:function(t,e,i){var n=i(7475);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},3411:function(t,e,i){var n=i(9670),r=i(9212);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){r(t,"throw",e)}}},7072:function(t,e,i){var n=i(5112)("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},4326:function(t,e,i){var n=i(1702),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},648:function(t,e,i){var n=i(7854),r=i(1694),o=i(614),s=i(4326),a=i(5112)("toStringTag"),l=n.Object,h="Arguments"==s(function(){return arguments}());t.exports=r?s:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=l(t),a))?i:h?s(e):"Object"==(n=s(e))&&o(e.callee)?"Arguments":n}},7741:function(t,e,i){var n=i(1702)("".replace),r=String(Error("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(r);t.exports=function(t,e){if(s&&"string"==typeof t)for(;e--;)t=n(t,o,"");return t}},9920:function(t,e,i){var n=i(2597),r=i(3887),o=i(1236),s=i(3070);t.exports=function(t,e,i){for(var a=r(e),l=s.f,h=o.f,c=0;c<a.length;c++){var u=a[c];n(t,u)||i&&n(i,u)||l(t,u,h(e,u))}}},8544:function(t,e,i){var n=i(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,i){"use strict";var n=i(3383).IteratorPrototype,r=i(30),o=i(9114),s=i(8003),a=i(7497),l=function(){return this};t.exports=function(t,e,i,h){var c=e+" Iterator";return t.prototype=r(n,{next:o(+!h,i)}),s(t,c,!1,!0),a[c]=l,t}},8880:function(t,e,i){var n=i(9781),r=i(3070),o=i(9114);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,i){"use strict";var n=i(4948),r=i(3070),o=i(9114);t.exports=function(t,e,i){var s=n(e);s in t?r.f(t,s,o(0,i)):t[s]=i}},654:function(t,e,i){"use strict";var n=i(2109),r=i(6916),o=i(1913),s=i(6530),a=i(614),l=i(4994),h=i(9518),c=i(7674),u=i(8003),f=i(8880),p=i(1320),d=i(5112),g=i(7497),m=i(3383),v=s.PROPER,y=s.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=d("iterator"),_="keys",k="values",S="entries",C=function(){return this};t.exports=function(t,e,i,s,d,m,T){l(i,e,s);var P,j,O,A=function(t){if(t===d&&H)return H;if(!w&&t in I)return I[t];switch(t){case _:case k:case S:return function(){return new i(this,t)}}return function(){return new i(this)}},E=e+" Iterator",M=!1,I=t.prototype,D=I[x]||I["@@iterator"]||d&&I[d],H=!w&&D||A(d),F="Array"==e&&I.entries||D;if(F&&(P=h(F.call(new t)))!==Object.prototype&&P.next&&(o||h(P)===b||(c?c(P,b):a(P[x])||p(P,x,C)),u(P,E,!0,!0),o&&(g[E]=C)),v&&d==k&&D&&D.name!==k&&(!o&&y?f(I,"name",k):(M=!0,H=function(){return r(D,this)})),d)if(j={values:A(k),keys:m?H:A(_),entries:A(S)},T)for(O in j)(w||M||!(O in I))&&p(I,O,j[O]);else n({target:e,proto:!0,forced:w||M},j);return o&&!T||I[x]===H||p(I,x,H,{name:d}),g[e]=H,j}},9781:function(t,e,i){var n=i(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,i){var n=i(7854),r=i(111),o=n.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},7871:function(t){t.exports="object"==typeof window},1528:function(t,e,i){var n=i(8113),r=i(7854);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},6833:function(t,e,i){var n=i(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5268:function(t,e,i){var n=i(4326),r=i(7854);t.exports="process"==n(r.process)},1036:function(t,e,i){var n=i(8113);t.exports=/web0s(?!.*chrome)/i.test(n)},8113:function(t,e,i){var n=i(5005);t.exports=n("navigator","userAgent")||""},7392:function(t,e,i){var n,r,o=i(7854),s=i(8113),a=o.process,l=o.Deno,h=a&&a.versions||l&&l.version,c=h&&h.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,i){var n=i(7293),r=i(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},2109:function(t,e,i){var n=i(7854),r=i(1236).f,o=i(8880),s=i(1320),a=i(3505),l=i(9920),h=i(4705);t.exports=function(t,e){var i,c,u,f,p,d=t.target,g=t.global,m=t.stat;if(i=g?n:m?n[d]||a(d,{}):(n[d]||{}).prototype)for(c in e){if(f=e[c],u=t.noTargetGet?(p=r(i,c))&&p.value:i[c],!h(g?c:d+(m?".":"#")+c,t.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(t.sham||u&&u.sham)&&o(f,"sham",!0),s(i,c,f,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6790:function(t,e,i){"use strict";var n=i(7854),r=i(3157),o=i(6244),s=i(9974),a=n.TypeError,l=function(t,e,i,n,h,c,u,f){for(var p,d,g=h,m=0,v=!!u&&s(u,f);m<n;){if(m in i){if(p=v?v(i[m],m,e):i[m],c>0&&r(p))d=o(p),g=l(t,e,p,d,g,c-1)-1;else{if(g>=9007199254740991)throw a("Exceed the acceptable array length");t[g]=p}g++}m++}return g};t.exports=l},2104:function(t,e,i){var n=i(4374),r=Function.prototype,o=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},9974:function(t,e,i){var n=i(1702),r=i(9662),o=i(4374),s=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,i){var n=i(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,i){var n=i(4374),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(t,e,i){var n=i(9781),r=i(2597),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,h=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},1702:function(t,e,i){var n=i(4374),r=Function.prototype,o=r.bind,s=r.call,a=n&&o.bind(s,s);t.exports=n?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,i){var n=i(7854),r=i(614),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},1246:function(t,e,i){var n=i(648),r=i(8173),o=i(7497),s=i(5112)("iterator");t.exports=function(t){if(null!=t)return r(t,s)||r(t,"@@iterator")||o[n(t)]}},8554:function(t,e,i){var n=i(7854),r=i(6916),o=i(9662),s=i(9670),a=i(6330),l=i(1246),h=n.TypeError;t.exports=function(t,e){var i=arguments.length<2?l(t):e;if(o(i))return s(r(i,t));throw h(a(t)+" is not iterable")}},8173:function(t,e,i){var n=i(9662);t.exports=function(t,e){var i=t[e];return null==i?void 0:n(i)}},7854:function(t,e,i){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},2597:function(t,e,i){var n=i(1702),r=i(7908),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},3501:function(t){t.exports={}},842:function(t,e,i){var n=i(7854);t.exports=function(t,e){var i=n.console;i&&i.error&&(1==arguments.length?i.error(t):i.error(t,e))}},490:function(t,e,i){var n=i(5005);t.exports=n("document","documentElement")},4664:function(t,e,i){var n=i(9781),r=i(7293),o=i(317);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,i){var n=i(7854),r=i(1702),o=i(7293),s=i(4326),a=n.Object,l=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?l(t,""):a(t)}:a},2788:function(t,e,i){var n=i(1702),r=i(614),o=i(5465),s=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},8340:function(t,e,i){var n=i(111),r=i(8880);t.exports=function(t,e){n(e)&&"cause"in e&&r(t,"cause",e.cause)}},9909:function(t,e,i){var n,r,o,s=i(8536),a=i(7854),l=i(1702),h=i(111),c=i(8880),u=i(2597),f=i(5465),p=i(6200),d=i(3501),g="Object already initialized",m=a.TypeError,v=a.WeakMap;if(s||f.state){var y=f.state||(f.state=new v),b=l(y.get),w=l(y.has),x=l(y.set);n=function(t,e){if(w(y,t))throw new m(g);return e.facade=t,x(y,t,e),e},r=function(t){return b(y,t)||{}},o=function(t){return w(y,t)}}else{var _=p("state");d[_]=!0,n=function(t,e){if(u(t,_))throw new m(g);return e.facade=t,c(t,_,e),e},r=function(t){return u(t,_)?t[_]:{}},o=function(t){return u(t,_)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!h(e)||(i=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return i}}}},7659:function(t,e,i){var n=i(5112),r=i(7497),o=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},3157:function(t,e,i){var n=i(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,i){var n=i(1702),r=i(7293),o=i(614),s=i(648),a=i(5005),l=i(2788),h=function(){},c=[],u=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=n(f.exec),d=!f.exec(h),g=function(t){if(!o(t))return!1;try{return u(h,c,t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(f,l(t))}catch(t){return!0}};m.sham=!0,t.exports=!u||r((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?m:g},4705:function(t,e,i){var n=i(7293),r=i(614),o=/#|\.prototype\./,s=function(t,e){var i=l[a(t)];return i==c||i!=h&&(r(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=s.data={},h=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},111:function(t,e,i){var n=i(614);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},2190:function(t,e,i){var n=i(7854),r=i(5005),o=i(614),s=i(7976),a=i(3307),l=n.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&s(e.prototype,l(t))}},408:function(t,e,i){var n=i(7854),r=i(9974),o=i(6916),s=i(9670),a=i(6330),l=i(7659),h=i(6244),c=i(7976),u=i(8554),f=i(1246),p=i(9212),d=n.TypeError,g=function(t,e){this.stopped=t,this.result=e},m=g.prototype;t.exports=function(t,e,i){var n,v,y,b,w,x,_,k=i&&i.that,S=!(!i||!i.AS_ENTRIES),C=!(!i||!i.IS_ITERATOR),T=!(!i||!i.INTERRUPTED),P=r(e,k),j=function(t){return n&&p(n,"normal",t),new g(!0,t)},O=function(t){return S?(s(t),T?P(t[0],t[1],j):P(t[0],t[1])):T?P(t,j):P(t)};if(C)n=t;else{if(!(v=f(t)))throw d(a(t)+" is not iterable");if(l(v)){for(y=0,b=h(t);b>y;y++)if((w=O(t[y]))&&c(m,w))return w;return new g(!1)}n=u(t,v)}for(x=n.next;!(_=o(x,n)).done;){try{w=O(_.value)}catch(t){p(n,"throw",t)}if("object"==typeof w&&w&&c(m,w))return w}return new g(!1)}},9212:function(t,e,i){var n=i(6916),r=i(9670),o=i(8173);t.exports=function(t,e,i){var s,a;r(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw i;return i}s=n(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw i;if(a)throw s;return r(s),i}},3383:function(t,e,i){"use strict";var n,r,o,s=i(7293),a=i(614),l=i(30),h=i(9518),c=i(1320),u=i(5112),f=i(1913),p=u("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(r=h(h(o)))!==Object.prototype&&(n=r):d=!0),null==n||s((function(){var t={};return n[p].call(t)!==t}))?n={}:f&&(n=l(n)),a(n[p])||c(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7497:function(t){t.exports={}},6244:function(t,e,i){var n=i(7466);t.exports=function(t){return n(t.length)}},5948:function(t,e,i){var n,r,o,s,a,l,h,c,u=i(7854),f=i(9974),p=i(1236).f,d=i(261).set,g=i(6833),m=i(1528),v=i(1036),y=i(5268),b=u.MutationObserver||u.WebKitMutationObserver,w=u.document,x=u.process,_=u.Promise,k=p(u,"queueMicrotask"),S=k&&k.value;S||(n=function(){var t,e;for(y&&(t=x.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?s():o=void 0,t}}o=void 0,t&&t.enter()},g||y||v||!b||!w?!m&&_&&_.resolve?((h=_.resolve(void 0)).constructor=_,c=f(h.then,h),s=function(){c(n)}):y?s=function(){x.nextTick(n)}:(d=f(d,u),s=function(){d(n)}):(a=!0,l=w.createTextNode(""),new b(n).observe(l,{characterData:!0}),s=function(){l.data=a=!a})),t.exports=S||function(t){var e={fn:t,next:void 0};o&&(o.next=e),r||(r=e,s()),o=e}},3366:function(t,e,i){var n=i(7854);t.exports=n.Promise},133:function(t,e,i){var n=i(7392),r=i(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},590:function(t,e,i){var n=i(7293),r=i(5112),o=i(1913),s=r("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),i+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},8536:function(t,e,i){var n=i(7854),r=i(614),o=i(2788),s=n.WeakMap;t.exports=r(s)&&/native code/.test(o(s))},8523:function(t,e,i){"use strict";var n=i(9662),r=function(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=n(e),this.reject=n(i)};t.exports.f=function(t){return new r(t)}},6277:function(t,e,i){var n=i(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},1574:function(t,e,i){"use strict";var n=i(9781),r=i(1702),o=i(6916),s=i(7293),a=i(1956),l=i(5181),h=i(5296),c=i(7908),u=i(8361),f=Object.assign,p=Object.defineProperty,d=r([].concat);t.exports=!f||s((function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!=f({},t)[i]||a(f({},e)).join("")!=r}))?function(t,e){for(var i=c(t),r=arguments.length,s=1,f=l.f,p=h.f;r>s;)for(var g,m=u(arguments[s++]),v=f?d(a(m),f(m)):a(m),y=v.length,b=0;y>b;)g=v[b++],n&&!o(p,m,g)||(i[g]=m[g]);return i}:f},30:function(t,e,i){var n,r=i(9670),o=i(6048),s=i(748),a=i(3501),l=i(490),h=i(317),c=i(6200),u=c("IE_PROTO"),f=function(){},p=function(t){return"<script>"+t+"</"+"script>"},d=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;g="undefined"!=typeof document?document.domain&&n?d(n):((e=h("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):d(n);for(var i=s.length;i--;)delete g.prototype[s[i]];return g()};a[u]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(f.prototype=r(t),i=new f,f.prototype=null,i[u]=t):i=g(),void 0===e?i:o.f(i,e)}},6048:function(t,e,i){var n=i(9781),r=i(3353),o=i(3070),s=i(9670),a=i(5656),l=i(1956);e.f=n&&!r?Object.defineProperties:function(t,e){s(t);for(var i,n=a(e),r=l(e),h=r.length,c=0;h>c;)o.f(t,i=r[c++],n[i]);return t}},3070:function(t,e,i){var n=i(7854),r=i(9781),o=i(4664),s=i(3353),a=i(9670),l=i(4948),h=n.TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=r?s?function(t,e,i){if(a(t),e=l(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&d in i&&!i.writable){var n=u(t,e);n&&n.writable&&(t[e]=i.value,i={configurable:p in i?i.configurable:n.configurable,enumerable:f in i?i.enumerable:n.enumerable,writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(a(t),e=l(e),a(i),o)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw h("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){var n=i(9781),r=i(6916),o=i(5296),s=i(9114),a=i(5656),l=i(4948),h=i(2597),c=i(4664),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=a(t),e=l(e),c)try{return u(t,e)}catch(t){}if(h(t,e))return s(!r(o.f,t,e),t[e])}},8006:function(t,e,i){var n=i(6324),r=i(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,i){var n=i(7854),r=i(2597),o=i(614),s=i(7908),a=i(6200),l=i(8544),h=a("IE_PROTO"),c=n.Object,u=c.prototype;t.exports=l?c.getPrototypeOf:function(t){var e=s(t);if(r(e,h))return e[h];var i=e.constructor;return o(i)&&e instanceof i?i.prototype:e instanceof c?u:null}},7976:function(t,e,i){var n=i(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,i){var n=i(1702),r=i(2597),o=i(5656),s=i(1318).indexOf,a=i(3501),l=n([].push);t.exports=function(t,e){var i,n=o(t),h=0,c=[];for(i in n)!r(a,i)&&r(n,i)&&l(c,i);for(;e.length>h;)r(n,i=e[h++])&&(~s(c,i)||l(c,i));return c}},1956:function(t,e,i){var n=i(6324),r=i(748);t.exports=Object.keys||function(t){return n(t,r)}},5296:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},7674:function(t,e,i){var n=i(1702),r=i(9670),o=i(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return r(i),o(n),e?t(i,n):i.__proto__=n,i}}():void 0)},4699:function(t,e,i){var n=i(9781),r=i(1702),o=i(1956),s=i(5656),a=r(i(5296).f),l=r([].push),h=function(t){return function(e){for(var i,r=s(e),h=o(r),c=h.length,u=0,f=[];c>u;)i=h[u++],n&&!a(r,i)||l(f,t?[i,r[i]]:r[i]);return f}};t.exports={entries:h(!0),values:h(!1)}},288:function(t,e,i){"use strict";var n=i(1694),r=i(648);t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(t,e,i){var n=i(7854),r=i(6916),o=i(614),s=i(111),a=n.TypeError;t.exports=function(t,e){var i,n;if("string"===e&&o(i=t.toString)&&!s(n=r(i,t)))return n;if(o(i=t.valueOf)&&!s(n=r(i,t)))return n;if("string"!==e&&o(i=t.toString)&&!s(n=r(i,t)))return n;throw a("Can't convert object to primitive value")}},3887:function(t,e,i){var n=i(5005),r=i(1702),o=i(8006),s=i(5181),a=i(9670),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),i=s.f;return i?l(e,i(t)):e}},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:function(t,e,i){var n=i(9670),r=i(111),o=i(8523);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=o.f(t);return(0,i.resolve)(e),i.promise}},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},2248:function(t,e,i){var n=i(1320);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},1320:function(t,e,i){var n=i(7854),r=i(614),o=i(2597),s=i(8880),a=i(3505),l=i(2788),h=i(9909),c=i(6530).CONFIGURABLE,u=h.get,f=h.enforce,p=String(String).split("String");(t.exports=function(t,e,i,l){var h,u=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,m=l&&void 0!==l.name?l.name:e;r(i)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(i,"name")||c&&i.name!==m)&&s(i,"name",m),(h=f(i)).source||(h.source=p.join("string"==typeof m?m:""))),t!==n?(u?!g&&t[e]&&(d=!0):delete t[e],d?t[e]=i:s(t,e,i)):d?t[e]=i:a(e,i)})(Function.prototype,"toString",(function(){return r(this)&&u(this).source||l(this)}))},4488:function(t,e,i){var n=i(7854).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},3505:function(t,e,i){var n=i(7854),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},6340:function(t,e,i){"use strict";var n=i(5005),r=i(3070),o=i(5112),s=i(9781),a=o("species");t.exports=function(t){var e=n(t),i=r.f;s&&e&&!e[a]&&i(e,a,{configurable:!0,get:function(){return this}})}},8003:function(t,e,i){var n=i(3070).f,r=i(2597),o=i(5112)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,o)&&n(t,o,{configurable:!0,value:e})}},6200:function(t,e,i){var n=i(2309),r=i(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},5465:function(t,e,i){var n=i(7854),r=i(3505),o="__core-js_shared__",s=n[o]||r(o,{});t.exports=s},2309:function(t,e,i){var n=i(1913),r=i(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,i){var n=i(9670),r=i(9483),o=i(5112)("species");t.exports=function(t,e){var i,s=n(t).constructor;return void 0===s||null==(i=n(s)[o])?e:r(i)}},8710:function(t,e,i){var n=i(1702),r=i(9303),o=i(1340),s=i(4488),a=n("".charAt),l=n("".charCodeAt),h=n("".slice),c=function(t){return function(e,i){var n,c,u=o(s(e)),f=r(i),p=u.length;return f<0||f>=p?t?"":void 0:(n=l(u,f))<55296||n>56319||f+1===p||(c=l(u,f+1))<56320||c>57343?t?a(u,f):n:t?h(u,f,f+2):c-56320+(n-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},3197:function(t,e,i){"use strict";var n=i(7854),r=i(1702),o=2147483647,s=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,l="Overflow: input needs wider integers to process",h=n.RangeError,c=r(a.exec),u=Math.floor,f=String.fromCharCode,p=r("".charCodeAt),d=r([].join),g=r([].push),m=r("".replace),v=r("".split),y=r("".toLowerCase),b=function(t){return t+22+75*(t<26)},w=function(t,e,i){var n=0;for(t=i?u(t/700):t>>1,t+=u(t/e);t>455;)t=u(t/35),n+=36;return u(n+36*t/(t+38))},x=function(t){var e=[];t=function(t){for(var e=[],i=0,n=t.length;i<n;){var r=p(t,i++);if(r>=55296&&r<=56319&&i<n){var o=p(t,i++);56320==(64512&o)?g(e,((1023&r)<<10)+(1023&o)+65536):(g(e,r),i--)}else g(e,r)}return e}(t);var i,n,r=t.length,s=128,a=0,c=72;for(i=0;i<t.length;i++)(n=t[i])<128&&g(e,f(n));var m=e.length,v=m;for(m&&g(e,"-");v<r;){var y=o;for(i=0;i<t.length;i++)(n=t[i])>=s&&n<y&&(y=n);var x=v+1;if(y-s>u((o-a)/x))throw h(l);for(a+=(y-s)*x,s=y,i=0;i<t.length;i++){if((n=t[i])<s&&++a>o)throw h(l);if(n==s){for(var _=a,k=36;;){var S=k<=c?1:k>=c+26?26:k-c;if(_<S)break;var C=_-S,T=36-S;g(e,f(b(S+C%T))),_=u(C/T),k+=36}g(e,f(b(_))),c=w(a,x,v==m),a=0,v++}}a++,s++}return d(e,"")};t.exports=function(t){var e,i,n=[],r=v(m(y(t),a,"."),".");for(e=0;e<r.length;e++)i=r[e],g(n,c(s,i)?"xn--"+x(i):i);return d(n,".")}},261:function(t,e,i){var n,r,o,s,a=i(7854),l=i(2104),h=i(9974),c=i(614),u=i(2597),f=i(7293),p=i(490),d=i(206),g=i(317),m=i(8053),v=i(6833),y=i(5268),b=a.setImmediate,w=a.clearImmediate,x=a.process,_=a.Dispatch,k=a.Function,S=a.MessageChannel,C=a.String,T=0,P={},j="onreadystatechange";try{n=a.location}catch(t){}var O=function(t){if(u(P,t)){var e=P[t];delete P[t],e()}},A=function(t){return function(){O(t)}},E=function(t){O(t.data)},M=function(t){a.postMessage(C(t),n.protocol+"//"+n.host)};b&&w||(b=function(t){m(arguments.length,1);var e=c(t)?t:k(t),i=d(arguments,1);return P[++T]=function(){l(e,void 0,i)},r(T),T},w=function(t){delete P[t]},y?r=function(t){x.nextTick(A(t))}:_&&_.now?r=function(t){_.now(A(t))}:S&&!v?(s=(o=new S).port2,o.port1.onmessage=E,r=h(s.postMessage,s)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!f(M)?(r=M,a.addEventListener("message",E,!1)):r=j in g("script")?function(t){p.appendChild(g("script")).onreadystatechange=function(){p.removeChild(this),O(t)}}:function(t){setTimeout(A(t),0)}),t.exports={set:b,clear:w}},1400:function(t,e,i){var n=i(9303),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},5656:function(t,e,i){var n=i(8361),r=i(4488);t.exports=function(t){return n(r(t))}},9303:function(t){var e=Math.ceil,i=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?i:e)(n)}},7466:function(t,e,i){var n=i(9303),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},7908:function(t,e,i){var n=i(7854),r=i(4488),o=n.Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,i){var n=i(7854),r=i(6916),o=i(111),s=i(2190),a=i(8173),l=i(2140),h=i(5112),c=n.TypeError,u=h("toPrimitive");t.exports=function(t,e){if(!o(t)||s(t))return t;var i,n=a(t,u);if(n){if(void 0===e&&(e="default"),i=r(n,t,e),!o(i)||s(i))return i;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},4948:function(t,e,i){var n=i(7593),r=i(2190);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},1694:function(t,e,i){var n={};n[i(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:function(t,e,i){var n=i(7854),r=i(648),o=n.String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t,e,i){var n=i(7854).String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},9711:function(t,e,i){var n=i(1702),r=0,o=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+o,36)}},3307:function(t,e,i){var n=i(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,i){var n=i(9781),r=i(7293);t.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t,e,i){var n=i(7854).TypeError;t.exports=function(t,e){if(t<e)throw n("Not enough arguments");return t}},5112:function(t,e,i){var n=i(7854),r=i(2309),o=i(2597),s=i(9711),a=i(133),l=i(3307),h=r("wks"),c=n.Symbol,u=c&&c.for,f=l?c:c&&c.withoutSetter||s;t.exports=function(t){if(!o(h,t)||!a&&"string"!=typeof h[t]){var e="Symbol."+t;a&&o(c,t)?h[t]=c[t]:h[t]=l&&u?u(e):f(e)}return h[t]}},9170:function(t,e,i){"use strict";var n=i(2109),r=i(7854),o=i(7976),s=i(9518),a=i(7674),l=i(9920),h=i(30),c=i(8880),u=i(9114),f=i(7741),p=i(8340),d=i(408),g=i(6277),m=i(5112),v=i(2914),y=m("toStringTag"),b=r.Error,w=[].push,x=function(t,e){var i,n=arguments.length>2?arguments[2]:void 0,r=o(_,this);a?i=a(new b,r?s(this):_):(i=r?this:h(_),c(i,y,"Error")),void 0!==e&&c(i,"message",g(e)),v&&c(i,"stack",f(i.stack,1)),p(i,n);var l=[];return d(t,w,{that:l}),c(i,"errors",l),i};a?a(x,b):l(x,b,{name:!0});var _=x.prototype=h(b.prototype,{constructor:u(1,x),message:u(1,""),name:u(1,"AggregateError")});n({global:!0},{AggregateError:x})},3290:function(t,e,i){var n=i(2109),r=i(1285),o=i(1223);n({target:"Array",proto:!0},{fill:r}),o("fill")},9826:function(t,e,i){"use strict";var n=i(2109),r=i(2092).find,o=i(1223),s="find",a=!0;s in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},6535:function(t,e,i){"use strict";var n=i(2109),r=i(6790),o=i(9662),s=i(7908),a=i(6244),l=i(5417);n({target:"Array",proto:!0},{flatMap:function(t){var e,i=s(this),n=a(i);return o(t),(e=l(i,0)).length=r(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},4944:function(t,e,i){"use strict";var n=i(2109),r=i(6790),o=i(7908),s=i(6244),a=i(9303),l=i(5417);n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),i=s(e),n=l(e,0);return n.length=r(n,e,e,i,0,void 0===t?1:a(t)),n}})},6699:function(t,e,i){"use strict";var n=i(2109),r=i(1318).includes,o=i(1223);n({target:"Array",proto:!0},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(t,e,i){"use strict";var n=i(5656),r=i(1223),o=i(7497),s=i(9909),a=i(3070).f,l=i(654),h=i(1913),c=i(9781),u="Array Iterator",f=s.set,p=s.getterFor(u);t.exports=l(Array,"Array",(function(t,e){f(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");var d=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!h&&c&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(t){}},9244:function(t,e,i){i(1223)("flatMap")},3792:function(t,e,i){i(1223)("flat")},9601:function(t,e,i){var n=i(2109),r=i(1574);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},9720:function(t,e,i){var n=i(2109),r=i(4699).entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},1539:function(t,e,i){var n=i(1694),r=i(1320),o=i(288);n||r(Object.prototype,"toString",o,{unsafe:!0})},2479:function(t,e,i){var n=i(2109),r=i(4699).values;n({target:"Object",stat:!0},{values:function(t){return r(t)}})},7922:function(t,e,i){"use strict";var n=i(2109),r=i(6916),o=i(9662),s=i(8523),a=i(2534),l=i(408);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,i=s.f(e),n=i.resolve,h=i.reject,c=a((function(){var i=o(e.resolve),s=[],a=0,h=1;l(t,(function(t){var o=a++,l=!1;h++,r(i,e,t).then((function(t){l||(l=!0,s[o]={status:"fulfilled",value:t},--h||n(s))}),(function(t){l||(l=!0,s[o]={status:"rejected",reason:t},--h||n(s))}))})),--h||n(s)}));return c.error&&h(c.value),i.promise}})},4668:function(t,e,i){"use strict";var n=i(2109),r=i(9662),o=i(5005),s=i(6916),a=i(8523),l=i(2534),h=i(408),c="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,i=o("AggregateError"),n=a.f(e),u=n.resolve,f=n.reject,p=l((function(){var n=r(e.resolve),o=[],a=0,l=1,p=!1;h(t,(function(t){var r=a++,h=!1;l++,s(n,e,t).then((function(t){h||p||(p=!0,u(t))}),(function(t){h||p||(h=!0,o[r]=t,--l||f(new i(o,c)))}))})),--l||f(new i(o,c))}));return p.error&&f(p.value),n.promise}})},7727:function(t,e,i){"use strict";var n=i(2109),r=i(1913),o=i(3366),s=i(7293),a=i(5005),l=i(614),h=i(6707),c=i(9478),u=i(1320);if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&s((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=h(this,a("Promise")),i=l(t);return this.then(i?function(i){return c(e,t()).then((function(){return i}))}:t,i?function(i){return c(e,t()).then((function(){throw i}))}:t)}}),!r&&l(o)){var f=a("Promise").prototype.finally;o.prototype.finally!==f&&u(o.prototype,"finally",f,{unsafe:!0})}},8674:function(t,e,i){"use strict";var n,r,o,s,a=i(2109),l=i(1913),h=i(7854),c=i(5005),u=i(6916),f=i(3366),p=i(1320),d=i(2248),g=i(7674),m=i(8003),v=i(6340),y=i(9662),b=i(614),w=i(111),x=i(5787),_=i(2788),k=i(408),S=i(7072),C=i(6707),T=i(261).set,P=i(5948),j=i(9478),O=i(842),A=i(8523),E=i(2534),M=i(8572),I=i(9909),D=i(4705),H=i(5112),F=i(7871),R=i(5268),L=i(7392),N=H("species"),z="Promise",B=I.getterFor(z),W=I.set,q=I.getterFor(z),U=f&&f.prototype,$=f,V=U,Q=h.TypeError,Y=h.document,X=h.process,G=A.f,Z=G,J=!!(Y&&Y.createEvent&&h.dispatchEvent),K=b(h.PromiseRejectionEvent),tt="unhandledrejection",et=!1,it=D(z,(function(){var t=_($),e=t!==String($);if(!e&&66===L)return!0;if(l&&!V.finally)return!0;if(L>=51&&/native code/.test(t))return!1;var i=new $((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(i.constructor={})[N]=n,!(et=i.then((function(){}))instanceof n)||!e&&F&&!K})),nt=it||!S((function(t){$.all(t).catch((function(){}))})),rt=function(t){var e;return!(!w(t)||!b(e=t.then))&&e},ot=function(t,e){var i,n,r,o=e.value,s=1==e.state,a=s?t.ok:t.fail,l=t.resolve,h=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&ct(e),e.rejection=1),!0===a?i=o:(c&&c.enter(),i=a(o),c&&(c.exit(),r=!0)),i===t.promise?h(Q("Promise-chain cycle")):(n=rt(i))?u(n,i,l,h):l(i)):h(o)}catch(t){c&&!r&&c.exit(),h(t)}},st=function(t,e){t.notified||(t.notified=!0,P((function(){for(var i,n=t.reactions;i=n.get();)ot(i,t);t.notified=!1,e&&!t.rejection&<(t)})))},at=function(t,e,i){var n,r;J?((n=Y.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),h.dispatchEvent(n)):n={promise:e,reason:i},!K&&(r=h["on"+t])?r(n):t===tt&&O("Unhandled promise rejection",i)},lt=function(t){u(T,h,(function(){var e,i=t.facade,n=t.value;if(ht(t)&&(e=E((function(){R?X.emit("unhandledRejection",n,i):at(tt,i,n)})),t.rejection=R||ht(t)?2:1,e.error))throw e.value}))},ht=function(t){return 1!==t.rejection&&!t.parent},ct=function(t){u(T,h,(function(){var e=t.facade;R?X.emit("rejectionHandled",e):at("rejectionhandled",e,t.value)}))},ut=function(t,e,i){return function(n){t(e,n,i)}},ft=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,st(t,!0))},pt=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw Q("Promise can't be resolved itself");var n=rt(e);n?P((function(){var i={done:!1};try{u(n,e,ut(pt,i,t),ut(ft,i,t))}catch(e){ft(i,e,t)}})):(t.value=e,t.state=1,st(t,!1))}catch(e){ft({done:!1},e,t)}}};if(it&&(V=($=function(t){x(this,V),y(t),u(n,this);var e=B(this);try{t(ut(pt,e),ut(ft,e))}catch(t){ft(e,t)}}).prototype,(n=function(t){W(this,{type:z,done:!1,notified:!1,parent:!1,reactions:new M,rejection:!1,state:0,value:void 0})}).prototype=d(V,{then:function(t,e){var i=q(this),n=G(C(this,$));return i.parent=!0,n.ok=!b(t)||t,n.fail=b(e)&&e,n.domain=R?X.domain:void 0,0==i.state?i.reactions.add(n):P((function(){ot(n,i)})),n.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new n,e=B(t);this.promise=t,this.resolve=ut(pt,e),this.reject=ut(ft,e)},A.f=G=function(t){return t===$||t===o?new r(t):Z(t)},!l&&b(f)&&U!==Object.prototype)){s=U.then,et||(p(U,"then",(function(t,e){var i=this;return new $((function(t,e){u(s,i,t,e)})).then(t,e)}),{unsafe:!0}),p(U,"catch",V.catch,{unsafe:!0}));try{delete U.constructor}catch(t){}g&&g(U,V)}a({global:!0,wrap:!0,forced:it},{Promise:$}),m($,z,!1,!0),v(z),o=c(z),a({target:z,stat:!0,forced:it},{reject:function(t){var e=G(this);return u(e.reject,void 0,t),e.promise}}),a({target:z,stat:!0,forced:l||it},{resolve:function(t){return j(l&&this===o?$:this,t)}}),a({target:z,stat:!0,forced:nt},{all:function(t){var e=this,i=G(e),n=i.resolve,r=i.reject,o=E((function(){var i=y(e.resolve),o=[],s=0,a=1;k(t,(function(t){var l=s++,h=!1;a++,u(i,e,t).then((function(t){h||(h=!0,o[l]=t,--a||n(o))}),r)})),--a||n(o)}));return o.error&&r(o.value),i.promise},race:function(t){var e=this,i=G(e),n=i.reject,r=E((function(){var r=y(e.resolve);k(t,(function(t){u(r,e,t).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}})},8783:function(t,e,i){"use strict";var n=i(8710).charAt,r=i(1340),o=i(9909),s=i(654),a="String Iterator",l=o.set,h=o.getterFor(a);s(String,"String",(function(t){l(this,{type:a,string:r(t),index:0})}),(function(){var t,e=h(this),i=e.string,r=e.index;return r>=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})}))},1637:function(t,e,i){"use strict";i(6992);var n=i(2109),r=i(7854),o=i(5005),s=i(6916),a=i(1702),l=i(590),h=i(1320),c=i(2248),u=i(8003),f=i(4994),p=i(9909),d=i(5787),g=i(614),m=i(2597),v=i(9974),y=i(648),b=i(9670),w=i(111),x=i(1340),_=i(30),k=i(9114),S=i(8554),C=i(1246),T=i(8053),P=i(5112),j=i(4362),O=P("iterator"),A="URLSearchParams",E="URLSearchParamsIterator",M=p.set,I=p.getterFor(A),D=p.getterFor(E),H=o("fetch"),F=o("Request"),R=o("Headers"),L=F&&F.prototype,N=R&&R.prototype,z=r.RegExp,B=r.TypeError,W=r.decodeURIComponent,q=r.encodeURIComponent,U=a("".charAt),$=a([].join),V=a([].push),Q=a("".replace),Y=a([].shift),X=a([].splice),G=a("".split),Z=a("".slice),J=/\+/g,K=Array(4),tt=function(t){return K[t-1]||(K[t-1]=z("((?:%[\\da-f]{2}){"+t+"})","gi"))},et=function(t){try{return W(t)}catch(e){return t}},it=function(t){var e=Q(t,J," "),i=4;try{return W(e)}catch(t){for(;i;)e=Q(e,tt(i--),et);return e}},nt=/[!'()~]|%20/g,rt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ot=function(t){return rt[t]},st=function(t){return Q(q(t),nt,ot)},at=f((function(t,e){M(this,{type:E,iterator:S(I(t).entries),kind:e})}),"Iterator",(function(){var t=D(this),e=t.kind,i=t.iterator.next(),n=i.value;return i.done||(i.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),i}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(w(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===U(t,0)?Z(t,1):t:x(t)))};lt.prototype={type:A,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,n,r,o,a,l,h=C(t);if(h)for(i=(e=S(t,h)).next;!(n=s(i,e)).done;){if(o=(r=S(b(n.value))).next,(a=s(o,r)).done||(l=s(o,r)).done||!s(o,r).done)throw B("Expected sequence with length 2");V(this.entries,{key:x(a.value),value:x(l.value)})}else for(var c in t)m(t,c)&&V(this.entries,{key:c,value:x(t[c])})},parseQuery:function(t){if(t)for(var e,i,n=G(t,"&"),r=0;r<n.length;)(e=n[r++]).length&&(i=G(e,"="),V(this.entries,{key:it(Y(i)),value:it($(i,"="))}))},serialize:function(){for(var t,e=this.entries,i=[],n=0;n<e.length;)t=e[n++],V(i,st(t.key)+"="+st(t.value));return $(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ht=function(){d(this,ct);var t=arguments.length>0?arguments[0]:void 0;M(this,new lt(t))},ct=ht.prototype;if(c(ct,{append:function(t,e){T(arguments.length,2);var i=I(this);V(i.entries,{key:x(t),value:x(e)}),i.updateURL()},delete:function(t){T(arguments.length,1);for(var e=I(this),i=e.entries,n=x(t),r=0;r<i.length;)i[r].key===n?X(i,r,1):r++;e.updateURL()},get:function(t){T(arguments.length,1);for(var e=I(this).entries,i=x(t),n=0;n<e.length;n++)if(e[n].key===i)return e[n].value;return null},getAll:function(t){T(arguments.length,1);for(var e=I(this).entries,i=x(t),n=[],r=0;r<e.length;r++)e[r].key===i&&V(n,e[r].value);return n},has:function(t){T(arguments.length,1);for(var e=I(this).entries,i=x(t),n=0;n<e.length;)if(e[n++].key===i)return!0;return!1},set:function(t,e){T(arguments.length,1);for(var i,n=I(this),r=n.entries,o=!1,s=x(t),a=x(e),l=0;l<r.length;l++)(i=r[l]).key===s&&(o?X(r,l--,1):(o=!0,i.value=a));o||V(r,{key:s,value:a}),n.updateURL()},sort:function(){var t=I(this);j(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,i=I(this).entries,n=v(t,arguments.length>1?arguments[1]:void 0),r=0;r<i.length;)n((e=i[r++]).value,e.key,this)},keys:function(){return new at(this,"keys")},values:function(){return new at(this,"values")},entries:function(){return new at(this,"entries")}},{enumerable:!0}),h(ct,O,ct.entries,{name:"entries"}),h(ct,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),u(ht,A),n({global:!0,forced:!l},{URLSearchParams:ht}),!l&&g(R)){var ut=a(N.has),ft=a(N.set),pt=function(t){if(w(t)){var e,i=t.body;if(y(i)===A)return e=t.headers?new R(t.headers):new R,ut(e,"content-type")||ft(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_(t,{body:k(0,x(i)),headers:k(0,e)})}return t};if(g(H)&&n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return H(t,arguments.length>1?pt(arguments[1]):{})}}),g(F)){var dt=function(t){return d(this,L),new F(t,arguments.length>1?pt(arguments[1]):{})};L.constructor=dt,dt.prototype=L,n({global:!0,forced:!0},{Request:dt})}}t.exports={URLSearchParams:ht,getState:I}},285:function(t,e,i){"use strict";i(8783);var n,r=i(2109),o=i(9781),s=i(590),a=i(7854),l=i(9974),h=i(1702),c=i(6048).f,u=i(1320),f=i(5787),p=i(2597),d=i(1574),g=i(8457),m=i(1589),v=i(8710).codeAt,y=i(3197),b=i(1340),w=i(8003),x=i(8053),_=i(1637),k=i(9909),S=k.set,C=k.getterFor("URL"),T=_.URLSearchParams,P=_.getState,j=a.URL,O=a.TypeError,A=a.parseInt,E=Math.floor,M=Math.pow,I=h("".charAt),D=h(/./.exec),H=h([].join),F=h(1..toString),R=h([].pop),L=h([].push),N=h("".replace),z=h([].shift),B=h("".split),W=h("".slice),q=h("".toLowerCase),U=h([].unshift),$="Invalid scheme",V="Invalid host",Q="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,G=/\d/,Z=/^0x/i,J=/^[0-7]+$/,K=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,rt=/[\t\n\r]/g,ot=function(t){var e,i,n,r;if("number"==typeof t){for(e=[],i=0;i<4;i++)U(e,t%256),t=E(t/256);return H(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,i=1,n=null,r=0,o=0;o<8;o++)0!==t[o]?(r>i&&(e=n,i=r),n=null,r=0):(null===n&&(n=o),++r);return r>i&&(e=n,i=r),e}(t),i=0;i<8;i++)r&&0===t[i]||(r&&(r=!1),n===i?(e+=i?":":"::",r=!0):(e+=F(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},st={},at=d({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),lt=d({},at,{"#":1,"?":1,"{":1,"}":1}),ht=d({},lt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ct=function(t,e){var i=v(t,0);return i>32&&i<127&&!p(e,t)?t:encodeURIComponent(t)},ut={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ft=function(t,e){var i;return 2==t.length&&D(Y,I(t,0))&&(":"==(i=I(t,1))||!e&&"|"==i)},pt=function(t){var e;return t.length>1&&ft(W(t,0,2))&&(2==t.length||"/"===(e=I(t,2))||"\\"===e||"?"===e||"#"===e)},dt=function(t){return"."===t||"%2e"===q(t)},gt={},mt={},vt={},yt={},bt={},wt={},xt={},_t={},kt={},St={},Ct={},Tt={},Pt={},jt={},Ot={},At={},Et={},Mt={},It={},Dt={},Ht={},Ft=function(t,e,i){var n,r,o,s=b(t);if(e){if(r=this.parse(s))throw O(r);this.searchParams=null}else{if(void 0!==i&&(n=new Ft(i,!0)),r=this.parse(s,null,n))throw O(r);(o=P(new T)).bindURL(this),this.searchParams=o}};Ft.prototype={type:"URL",parse:function(t,e,i){var r,o,s,a,l,h=this,c=e||gt,u=0,f="",d=!1,v=!1,y=!1;for(t=b(t),e||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,t=N(t,nt,"")),t=N(t,rt,""),r=g(t);u<=r.length;){switch(o=r[u],c){case gt:if(!o||!D(Y,o)){if(e)return $;c=vt;continue}f+=q(o),c=mt;break;case mt:if(o&&(D(X,o)||"+"==o||"-"==o||"."==o))f+=q(o);else{if(":"!=o){if(e)return $;f="",c=vt,u=0;continue}if(e&&(h.isSpecial()!=p(ut,f)||"file"==f&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=f,e)return void(h.isSpecial()&&ut[h.scheme]==h.port&&(h.port=null));f="","file"==h.scheme?c=jt:h.isSpecial()&&i&&i.scheme==h.scheme?c=yt:h.isSpecial()?c=_t:"/"==r[u+1]?(c=bt,u++):(h.cannotBeABaseURL=!0,L(h.path,""),c=It)}break;case vt:if(!i||i.cannotBeABaseURL&&"#"!=o)return $;if(i.cannotBeABaseURL&&"#"==o){h.scheme=i.scheme,h.path=m(i.path),h.query=i.query,h.fragment="",h.cannotBeABaseURL=!0,c=Ht;break}c="file"==i.scheme?jt:wt;continue;case yt:if("/"!=o||"/"!=r[u+1]){c=wt;continue}c=kt,u++;break;case bt:if("/"==o){c=St;break}c=Mt;continue;case wt:if(h.scheme=i.scheme,o==n)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query=i.query;else if("/"==o||"\\"==o&&h.isSpecial())c=xt;else if("?"==o)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query="",c=Dt;else{if("#"!=o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.path.length--,c=Mt;continue}h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query=i.query,h.fragment="",c=Ht}break;case xt:if(!h.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,c=Mt;continue}c=St}else c=kt;break;case _t:if(c=kt,"/"!=o||"/"!=I(f,u+1))continue;u++;break;case kt:if("/"!=o&&"\\"!=o){c=St;continue}break;case St:if("@"==o){d&&(f="%40"+f),d=!0,s=g(f);for(var w=0;w<s.length;w++){var x=s[w];if(":"!=x||y){var _=ct(x,ht);y?h.password+=_:h.username+=_}else y=!0}f=""}else if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()){if(d&&""==f)return"Invalid authority";u-=g(f).length+1,f="",c=Ct}else f+=o;break;case Ct:case Tt:if(e&&"file"==h.scheme){c=At;continue}if(":"!=o||v){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()){if(h.isSpecial()&&""==f)return V;if(e&&""==f&&(h.includesCredentials()||null!==h.port))return;if(a=h.parseHost(f))return a;if(f="",c=Et,e)return;continue}"["==o?v=!0:"]"==o&&(v=!1),f+=o}else{if(""==f)return V;if(a=h.parseHost(f))return a;if(f="",c=Pt,e==Tt)return}break;case Pt:if(!D(G,o)){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()||e){if(""!=f){var k=A(f,10);if(k>65535)return Q;h.port=h.isSpecial()&&k===ut[h.scheme]?null:k,f=""}if(e)return;c=Et;continue}return Q}f+=o;break;case jt:if(h.scheme="file","/"==o||"\\"==o)c=Ot;else{if(!i||"file"!=i.scheme){c=Mt;continue}if(o==n)h.host=i.host,h.path=m(i.path),h.query=i.query;else if("?"==o)h.host=i.host,h.path=m(i.path),h.query="",c=Dt;else{if("#"!=o){pt(H(m(r,u),""))||(h.host=i.host,h.path=m(i.path),h.shortenPath()),c=Mt;continue}h.host=i.host,h.path=m(i.path),h.query=i.query,h.fragment="",c=Ht}}break;case Ot:if("/"==o||"\\"==o){c=At;break}i&&"file"==i.scheme&&!pt(H(m(r,u),""))&&(ft(i.path[0],!0)?L(h.path,i.path[0]):h.host=i.host),c=Mt;continue;case At:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&ft(f))c=Mt;else if(""==f){if(h.host="",e)return;c=Et}else{if(a=h.parseHost(f))return a;if("localhost"==h.host&&(h.host=""),e)return;f="",c=Et}continue}f+=o;break;case Et:if(h.isSpecial()){if(c=Mt,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=n&&(c=Mt,"/"!=o))continue}else h.fragment="",c=Ht;else h.query="",c=Dt;break;case Mt:if(o==n||"/"==o||"\\"==o&&h.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(l=q(l=f))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(h.shortenPath(),"/"==o||"\\"==o&&h.isSpecial()||L(h.path,"")):dt(f)?"/"==o||"\\"==o&&h.isSpecial()||L(h.path,""):("file"==h.scheme&&!h.path.length&&ft(f)&&(h.host&&(h.host=""),f=I(f,0)+":"),L(h.path,f)),f="","file"==h.scheme&&(o==n||"?"==o||"#"==o))for(;h.path.length>1&&""===h.path[0];)z(h.path);"?"==o?(h.query="",c=Dt):"#"==o&&(h.fragment="",c=Ht)}else f+=ct(o,lt);break;case It:"?"==o?(h.query="",c=Dt):"#"==o?(h.fragment="",c=Ht):o!=n&&(h.path[0]+=ct(o,st));break;case Dt:e||"#"!=o?o!=n&&("'"==o&&h.isSpecial()?h.query+="%27":h.query+="#"==o?"%23":ct(o,st)):(h.fragment="",c=Ht);break;case Ht:o!=n&&(h.fragment+=ct(o,at))}u++}},parseHost:function(t){var e,i,n;if("["==I(t,0)){if("]"!=I(t,t.length-1))return V;if(e=function(t){var e,i,n,r,o,s,a,l=[0,0,0,0,0,0,0,0],h=0,c=null,u=0,f=function(){return I(t,u)};if(":"==f()){if(":"!=I(t,1))return;u+=2,c=++h}for(;f();){if(8==h)return;if(":"!=f()){for(e=i=0;i<4&&D(tt,f());)e=16*e+A(f(),16),u++,i++;if("."==f()){if(0==i)return;if(u-=i,h>6)return;for(n=0;f();){if(r=null,n>0){if(!("."==f()&&n<4))return;u++}if(!D(G,f()))return;for(;D(G,f());){if(o=A(f(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;u++}l[h]=256*l[h]+r,2!=++n&&4!=n||h++}if(4!=n)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;l[h++]=e}else{if(null!==c)return;u++,c=++h}}if(null!==c)for(s=h-c,h=7;0!=h&&s>0;)a=l[h],l[h--]=l[c+s-1],l[c+--s]=a;else if(8!=h)return;return l}(W(t,1,-1)),!e)return V;this.host=e}else if(this.isSpecial()){if(t=y(t),D(et,t))return V;if(e=function(t){var e,i,n,r,o,s,a,l=B(t,".");if(l.length&&""==l[l.length-1]&&l.length--,(e=l.length)>4)return t;for(i=[],n=0;n<e;n++){if(""==(r=l[n]))return t;if(o=10,r.length>1&&"0"==I(r,0)&&(o=D(Z,r)?16:8,r=W(r,8==o?1:2)),""===r)s=0;else{if(!D(10==o?K:8==o?J:tt,r))return t;s=A(r,o)}L(i,s)}for(n=0;n<e;n++)if(s=i[n],n==e-1){if(s>=M(256,5-e))return null}else if(s>255)return null;for(a=R(i),n=0;n<i.length;n++)a+=i[n]*M(256,3-n);return a}(t),null===e)return V;this.host=e}else{if(D(it,t))return V;for(e="",i=g(t),n=0;n<i.length;n++)e+=ct(i[n],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(ut,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&ft(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,i=t.username,n=t.password,r=t.host,o=t.port,s=t.path,a=t.query,l=t.fragment,h=e+":";return null!==r?(h+="//",t.includesCredentials()&&(h+=i+(n?":"+n:"")+"@"),h+=ot(r),null!==o&&(h+=":"+o)):"file"==e&&(h+="//"),h+=t.cannotBeABaseURL?s[0]:s.length?"/"+H(s,"/"):"",null!==a&&(h+="?"+a),null!==l&&(h+="#"+l),h},setHref:function(t){var e=this.parse(t);if(e)throw O(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Rt(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+ot(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",gt)},getUsername:function(){return this.username},setUsername:function(t){var e=g(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<e.length;i++)this.username+=ct(e[i],ht)}},getPassword:function(){return this.password},setPassword:function(t){var e=g(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<e.length;i++)this.password+=ct(e[i],ht)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ot(t):ot(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Ct)},getHostname:function(){var t=this.host;return null===t?"":ot(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Tt)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=b(t))?this.port=null:this.parse(t,Pt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+H(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Et))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=b(t))?this.query=null:("?"==I(t,0)&&(t=W(t,1)),this.query="",this.parse(t,Dt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=b(t))?("#"==I(t,0)&&(t=W(t,1)),this.fragment="",this.parse(t,Ht)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Rt=function(t){var e=f(this,Lt),i=x(arguments.length,1)>1?arguments[1]:void 0,n=S(e,new Ft(t,!1,i));o||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Lt=Rt.prototype,Nt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&c(Lt,{href:Nt("serialize","setHref"),origin:Nt("getOrigin"),protocol:Nt("getProtocol","setProtocol"),username:Nt("getUsername","setUsername"),password:Nt("getPassword","setPassword"),host:Nt("getHost","setHost"),hostname:Nt("getHostname","setHostname"),port:Nt("getPort","setPort"),pathname:Nt("getPathname","setPathname"),search:Nt("getSearch","setSearch"),searchParams:Nt("getSearchParams"),hash:Nt("getHash","setHash")}),u(Lt,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),u(Lt,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),j){var zt=j.createObjectURL,Bt=j.revokeObjectURL;zt&&u(Rt,"createObjectURL",l(zt,j)),Bt&&u(Rt,"revokeObjectURL",l(Bt,j))}w(Rt,"URL"),r({global:!0,forced:!s,sham:!o},{URL:Rt})},3753:function(t,e,i){"use strict";var n=i(2109),r=i(6916);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},7743:function(t,e,i){t.exports=i(2628)},4191:function(t,e,i){!function(){"undefined"==typeof jDataView&&(jDataView=i(7743));var e,n=function(t){for(var e=1;e<arguments.length;++e){var i=arguments[e];for(var n in i)void 0!==i[n]&&(t[n]=i[n])}return t};function r(t,e){if(!(this instanceof arguments.callee))throw new Error("Constructor may not be called as a function");t instanceof jDataView||(t=new jDataView(t,void 0,void 0,!0)),this.view=t,this.view.seek(0),this.structure=n({},r.prototype.structure,e)}function o(t){return"function"==typeof t&&(t=t.call(this)),t}r.prototype.structure={uint8:function(){return this.view.getUint8()},uint16:function(){return this.view.getUint16()},uint32:function(){return this.view.getUint32()},int8:function(){return this.view.getInt8()},int16:function(){return this.view.getInt16()},int32:function(){return this.view.getInt32()},float32:function(){return this.view.getFloat32()},float64:function(){return this.view.getFloat64()},char:function(){return this.view.getChar()},string:function(t){return this.view.getString(o.call(this,t))},array:function(t,e){e=o.call(this,e);for(var i=[],n=0;n<e;++n)i.push(this.parse(t));return i},seek:function(t,e){if(t=o.call(this,t),e instanceof Function){var i=this.view.tell();this.view.seek(t);var n=e.call(this);return this.view.seek(i),n}return this.view.seek(t)},tell:function(){return this.view.tell()},skip:function(t){return t=o.call(this,t),this.view.seek(this.view.tell()+t),t}},r.prototype.seek=r.prototype.structure.seek,r.prototype.tell=r.prototype.structure.tell,r.prototype.skip=r.prototype.structure.skip,r.prototype.parse=function(t){if(t instanceof Function)return t.apply(this,Array.prototype.slice.call(arguments,1));if("string"==typeof t&&(t=[t]),t instanceof Array){if(!((i=t[0])in this.structure))throw new Error("Missing structure for `"+i+"`");return this.parse.apply(this,[this.structure[i]].concat(t.slice(1)))}if("object"==typeof t){var e={};for(var i in t)this.current=e,e[i]=this.parse(t[i]);return e}throw new Error("Unknown structure type `"+t+"`")},"undefined"!=typeof self?e=self:"undefined"!=typeof window?e=window:void 0!==i.g&&(e=i.g),e.jParser=r,t.exports=r}()},2628:function(t){!function(e){t.exports=function(t){"use strict";function e(t,e){return"object"==typeof t&&null!==t&&(t.constructor===e||Object.prototype.toString.call(t)==="[object "+e.name+"]")}function i(t,i){return!i&&e(t,Array)?t:Array.prototype.slice.call(t)}function n(t,e){return void 0!==t?t:e}function r(t,i,o,s){if(r.is(t)){var a=t.slice(i,i+o);return a._littleEndian=n(s,a._littleEndian),a}if(!r.is(this))return new r(t,i,o,s);if(this.buffer=t=r.wrapBuffer(t),this._isArrayBuffer=h.ArrayBuffer&&e(t,ArrayBuffer),this._isPixelData=!1,this._isDataView=h.DataView&&this._isArrayBuffer,this._isNodeBuffer=h.NodeBuffer&&e(t,Buffer),!this._isNodeBuffer&&!this._isArrayBuffer&&!e(t,Array))throw new TypeError("jDataView buffer has an incompatible type");this._littleEndian=!!s;var l="byteLength"in t?t.byteLength:t.length;this.byteOffset=i=n(i,0),this.byteLength=o=n(o,l-i),this._offset=this._bitOffset=0,this._isDataView?this._view=new DataView(t,i,o):this._checkBounds(i,o,l),this._engineAction=this._isDataView?this._dataViewAction:this._isNodeBuffer?this._nodeBufferAction:this._isArrayBuffer?this._arrayBufferAction:this._arrayAction}function o(t){if(h.NodeBuffer)return new Buffer(t,"binary");for(var e=new(h.ArrayBuffer?Uint8Array:Array)(t.length),i=0,n=t.length;n>i;i++)e[i]=255&t.charCodeAt(i);return e}function s(t){return t>=0&&31>t?1<<t:s[t]||(s[t]=Math.pow(2,t))}function a(t,e){this.lo=t,this.hi=e}function l(){a.apply(this,arguments)}var h={NodeBuffer:"Buffer"in t,DataView:"DataView"in t,ArrayBuffer:"ArrayBuffer"in t,PixelData:!1},c=t.TextEncoder,u=t.TextDecoder;h.NodeBuffer&&function(t){try{t.writeFloatLE(1/0,0)}catch(t){h.NodeBuffer=!1}}(new Buffer(4));var f={Int8:1,Int16:2,Int32:4,Uint8:1,Uint16:2,Uint32:4,Float32:4,Float64:8};r.wrapBuffer=function(t){switch(typeof t){case"number":if(h.NodeBuffer)(t=new Buffer(t)).fill(0);else if(h.ArrayBuffer)t=new Uint8Array(t).buffer;else{t=new Array(t);for(var n=0;n<t.length;n++)t[n]=0}return t;case"string":t=o(t);default:return"length"in t&&!(h.NodeBuffer&&e(t,Buffer)||h.ArrayBuffer&&e(t,ArrayBuffer))&&(h.NodeBuffer?t=new Buffer(t):h.ArrayBuffer?e(t,ArrayBuffer)||(e(t=new Uint8Array(t).buffer,ArrayBuffer)||(t=new Uint8Array(i(t,!0)).buffer)):t=i(t)),t}},r.is=function(t){return t&&t.jDataView},r.from=function(){return new r(arguments)},r.Uint64=a,a.prototype={valueOf:function(){return this.lo+s(32)*this.hi},toString:function(){return Number.prototype.toString.apply(this.valueOf(),arguments)}},a.fromNumber=function(t){var e=Math.floor(t/s(32));return new a(t-e*s(32),e)},r.Int64=l,l.prototype="create"in Object?Object.create(a.prototype):new a,l.prototype.valueOf=function(){return this.hi<s(31)?a.prototype.valueOf.apply(this,arguments):-(s(32)-this.lo+s(32)*(s(32)-1-this.hi))},l.fromNumber=function(t){var e,i;if(t>=0){var n=a.fromNumber(t);e=n.lo,i=n.hi}else e=t-(i=Math.floor(t/s(32)))*s(32),i+=s(32);return new l(e,i)};var p=r.prototype={compatibility:h,jDataView:!0,_checkBounds:function(t,e,i){if("number"!=typeof t)throw new TypeError("Offset is not a number.");if("number"!=typeof e)throw new TypeError("Size is not a number.");if(0>e)throw new RangeError("Length is negative.");if(0>t||t+e>n(i,this.byteLength))throw new RangeError("Offsets are out of bounds.")},_action:function(t,e,i,r,o){return this._engineAction(t,e,n(i,this._offset),n(r,this._littleEndian),o)},_dataViewAction:function(t,e,i,n,r){return this._offset=i+f[t],e?this._view["get"+t](i,n):this._view["set"+t](i,r,n)},_arrayBufferAction:function(e,i,r,o,s){var a,l=f[e],h=t[e+"Array"];if(o=n(o,this._littleEndian),1===l||(this.byteOffset+r)%l==0&&o)return a=new h(this.buffer,this.byteOffset+r,1),this._offset=r+l,i?a[0]:a[0]=s;var c=new Uint8Array(i?this.getBytes(l,r,o,!0):l);return a=new h(c.buffer,0,1),i?a[0]:(a[0]=s,void this._setBytes(r,c,o))},_arrayAction:function(t,e,i,n,r){return e?this["_get"+t](i,n):this["_set"+t](i,r,n)},_getBytes:function(t,e,r){r=n(r,this._littleEndian),e=n(e,this._offset),t=n(t,this.byteLength-e),this._checkBounds(e,t),e+=this.byteOffset,this._offset=e-this.byteOffset+t;var o=this._isArrayBuffer?new Uint8Array(this.buffer,e,t):(this.buffer.slice||Array.prototype.slice).call(this.buffer,e,e+t);return r||1>=t?o:i(o).reverse()},getBytes:function(t,e,r,o){var s=this._getBytes(t,e,n(r,!0));return o?i(s):s},_setBytes:function(t,e,r){var o=e.length;if(0!==o){if(r=n(r,this._littleEndian),t=n(t,this._offset),this._checkBounds(t,o),!r&&o>1&&(e=i(e,!0).reverse()),t+=this.byteOffset,this._isArrayBuffer)new Uint8Array(this.buffer,t,o).set(e);else if(this._isNodeBuffer)new Buffer(e).copy(this.buffer,t);else for(var s=0;o>s;s++)this.buffer[t+s]=e[s];this._offset=t-this.byteOffset+o}},setBytes:function(t,e,i){this._setBytes(t,e,n(i,!0))},getString:function(t,e,i){if(this._isNodeBuffer)return e=n(e,this._offset),t=n(t,this.byteLength-e),this._checkBounds(e,t),this._offset=e+t,this.buffer.toString(i||"binary",this.byteOffset+e,this.byteOffset+this._offset);var r=this._getBytes(t,e,!0);if(i="utf8"===i?"utf-8":i||"binary",u&&"binary"!==i)return new u(i).decode(this._isArrayBuffer?r:new Uint8Array(r));var o="";t=r.length;for(var s=0;t>s;s++)o+=String.fromCharCode(r[s]);return"utf-8"===i&&(o=decodeURIComponent(escape(o))),o},setString:function(t,e,i){if(this._isNodeBuffer)return t=n(t,this._offset),this._checkBounds(t,e.length),void(this._offset=t+this.buffer.write(e,this.byteOffset+t,i||"binary"));var r;i="utf8"===i?"utf-8":i||"binary",c&&"binary"!==i?r=new c(i).encode(e):("utf-8"===i&&(e=unescape(encodeURIComponent(e))),r=o(e)),this._setBytes(t,r,!0)},getChar:function(t){return this.getString(1,t)},setChar:function(t,e){this.setString(t,e)},tell:function(){return this._offset},seek:function(t){return this._checkBounds(t,0),this._offset=t},skip:function(t){return this.seek(this._offset+t)},slice:function(t,e,i){function o(t,e){return 0>t?t+e:t}return t=o(t,this.byteLength),e=o(n(e,this.byteLength),this.byteLength),i?new r(this.getBytes(e-t,t,!0,!0),void 0,void 0,this._littleEndian):new r(this.buffer,this.byteOffset+t,e-t,this._littleEndian)},alignBy:function(t){return this._bitOffset=0,1!==n(t,1)?this.skip(t-(this._offset%t||t)):this._offset},_getFloat64:function(t,e){var i=this._getBytes(8,t,e),n=1-2*(i[7]>>7),r=((i[7]<<1&255)<<3|i[6]>>4)-1023,o=(15&i[6])*s(48)+i[5]*s(40)+i[4]*s(32)+i[3]*s(24)+i[2]*s(16)+i[1]*s(8)+i[0];return 1024===r?0!==o?NaN:1/0*n:-1023===r?n*o*s(-1074):n*(1+o*s(-52))*s(r)},_getFloat32:function(t,e){var i=this._getBytes(4,t,e),n=1-2*(i[3]>>7),r=(i[3]<<1&255|i[2]>>7)-127,o=(127&i[2])<<16|i[1]<<8|i[0];return 128===r?0!==o?NaN:1/0*n:-127===r?n*o*s(-149):n*(1+o*s(-23))*s(r)},_get64:function(t,e,i){i=n(i,this._littleEndian),e=n(e,this._offset);for(var r=i?[0,4]:[4,0],o=0;2>o;o++)r[o]=this.getUint32(e+r[o],i);return this._offset=e+8,new t(r[0],r[1])},getInt64:function(t,e){return this._get64(l,t,e)},getUint64:function(t,e){return this._get64(a,t,e)},_getInt32:function(t,e){var i=this._getBytes(4,t,e);return i[3]<<24|i[2]<<16|i[1]<<8|i[0]},_getUint32:function(t,e){return this._getInt32(t,e)>>>0},_getInt16:function(t,e){return this._getUint16(t,e)<<16>>16},_getUint16:function(t,e){var i=this._getBytes(2,t,e);return i[1]<<8|i[0]},_getInt8:function(t){return this._getUint8(t)<<24>>24},_getUint8:function(t){return this._getBytes(1,t)[0]},_getBitRangeData:function(t,e){var i=(n(e,this._offset)<<3)+this._bitOffset,r=i+t,o=i>>>3,s=r+7>>>3,a=this._getBytes(s-o,o,!0),l=0;(this._bitOffset=7&r)&&(this._bitOffset-=8);for(var h=0,c=a.length;c>h;h++)l=l<<8|a[h];return{start:o,bytes:a,wideValue:l}},getSigned:function(t,e){var i=32-t;return this.getUnsigned(t,e)<<i>>i},getUnsigned:function(t,e){var i=this._getBitRangeData(t,e).wideValue>>>-this._bitOffset;return 32>t?i&~(-1<<t):i},_setBinaryFloat:function(t,e,i,n,r){var o,a,l=0>e?1:0,h=~(-1<<n-1),c=1-h;0>e&&(e=-e),0===e?(o=0,a=0):isNaN(e)?(o=2*h+1,a=1):1/0===e?(o=2*h+1,a=0):(o=Math.floor(Math.log(e)/Math.LN2))>=c&&h>=o?(a=Math.floor((e*s(-o)-1)*s(i)),o+=h):(a=Math.floor(e/s(c-i)),o=0);for(var u=[];i>=8;)u.push(a%256),a=Math.floor(a/256),i-=8;for(o=o<<i|a,n+=i;n>=8;)u.push(255&o),o>>>=8,n-=8;u.push(l<<n|o),this._setBytes(t,u,r)},_setFloat32:function(t,e,i){this._setBinaryFloat(t,e,23,8,i)},_setFloat64:function(t,e,i){this._setBinaryFloat(t,e,52,11,i)},_set64:function(t,e,i,r){"object"!=typeof i&&(i=t.fromNumber(i)),r=n(r,this._littleEndian),e=n(e,this._offset);var o=r?{lo:0,hi:4}:{lo:4,hi:0};for(var s in o)this.setUint32(e+o[s],i[s],r);this._offset=e+8},setInt64:function(t,e,i){this._set64(l,t,e,i)},setUint64:function(t,e,i){this._set64(a,t,e,i)},_setUint32:function(t,e,i){this._setBytes(t,[255&e,e>>>8&255,e>>>16&255,e>>>24],i)},_setUint16:function(t,e,i){this._setBytes(t,[255&e,e>>>8&255],i)},_setUint8:function(t,e){this._setBytes(t,[255&e])},setUnsigned:function(t,e,i){var n=this._getBitRangeData(i,t),r=n.wideValue,o=n.bytes;r&=~(~(-1<<i)<<-this._bitOffset),r|=(32>i?e&~(-1<<i):e)<<-this._bitOffset;for(var s=o.length-1;s>=0;s--)o[s]=255&r,r>>>=8;this._setBytes(n.start,o,!0)}},d={Int8:"Int8",Int16:"Int16",Int32:"Int32",Uint8:"UInt8",Uint16:"UInt16",Uint32:"UInt32",Float32:"Float",Float64:"Double"};for(var g in p._nodeBufferAction=function(t,e,i,n,r){this._offset=i+f[t];var o=d[t]+("Int8"===t||"Uint8"===t?"":n?"LE":"BE");return i+=this.byteOffset,e?this.buffer["read"+o](i):this.buffer["write"+o](r,i)},f)!function(t){p["get"+t]=function(e,i){return this._action(t,!0,e,i)},p["set"+t]=function(e,i,n){this._action(t,!1,e,n,i)}}(g);for(var m in p._setInt32=p._setUint32,p._setInt16=p._setUint16,p._setInt8=p._setUint8,p.setSigned=p.setUnsigned,p)"set"===m.slice(0,3)&&function(t){p["write"+t]=function(){Array.prototype.unshift.call(arguments,void 0),this["set"+t].apply(this,arguments)}}(m.slice(3));return r}(this)}()},6400:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])}})})?n.apply(e,r):n)||(t.exports=o)}()},2064:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.fn.extend({disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(e+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var e})?n.apply(e,r):n)||(t.exports=o)}()},1870:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?n.apply(e,r):n)||(t.exports=o)}()},1624:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],n=function(t){return t.ui.plugin={add:function(e,i,n){var r,o=t.ui[e].prototype;for(r in n)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([i,n[r]])},call:function(t,e,i,n){var r,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)t.options[o[r][0]]&&o[r][1].apply(t.element,i)}}},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},1822:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],n=function(t){return function(){var e,i=Math.max,n=Math.abs,r=/left|center|right/,o=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,h=t.fn.position;function c(t,e,i){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?i/100:1)]}function u(e,i){return parseInt(t.css(e,i),10)||0}function f(t){return null!=t&&t===t.window}function p(t){var e=t[0];return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:f(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var i,n,r=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=r.children()[0];return t("body").append(r),i=o.offsetWidth,r.css("overflow","scroll"),i===(n=o.offsetWidth)&&(n=r[0].clientWidth),r.remove(),e=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=f(i[0]),r=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:r,offset:!n&&!r?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return h.apply(this,arguments);var l,f,d,g,m,v,y="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||"flip").split(" "),_={};return v=p(y),y[0].preventDefault&&(e.at="left top"),f=v.width,d=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],(function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=r.test(n[0])?n.concat(["center"]):o.test(n[0])?["center"].concat(n):["center","center"]),n[0]=r.test(n[0])?n[0]:"center",n[1]=o.test(n[1])?n[1]:"center",t=s.exec(n[0]),i=s.exec(n[1]),_[this]=[t?t[0]:0,i?i[0]:0],e[this]=[a.exec(n[0])[0],a.exec(n[1])[0]]})),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?m.left+=f:"center"===e.at[0]&&(m.left+=f/2),"bottom"===e.at[1]?m.top+=d:"center"===e.at[1]&&(m.top+=d/2),l=c(_.at,f,d),m.left+=l[0],m.top+=l[1],this.each((function(){var r,o,s=t(this),a=s.outerWidth(),h=s.outerHeight(),p=u(this,"marginLeft"),v=u(this,"marginTop"),k=a+p+u(this,"marginRight")+w.width,S=h+v+u(this,"marginBottom")+w.height,C=t.extend({},m),T=c(_.my,s.outerWidth(),s.outerHeight());"right"===e.my[0]?C.left-=a:"center"===e.my[0]&&(C.left-=a/2),"bottom"===e.my[1]?C.top-=h:"center"===e.my[1]&&(C.top-=h/2),C.left+=T[0],C.top+=T[1],r={marginLeft:p,marginTop:v},t.each(["left","top"],(function(i,n){t.ui.position[x[i]]&&t.ui.position[x[i]][n](C,{targetWidth:f,targetHeight:d,elemWidth:a,elemHeight:h,collisionPosition:r,collisionWidth:k,collisionHeight:S,offset:[l[0]+T[0],l[1]+T[1]],my:e.my,at:e.at,within:b,elem:s})})),e.using&&(o=function(t){var r=g.left-C.left,o=r+f-a,l=g.top-C.top,c=l+d-h,u={target:{element:y,left:g.left,top:g.top,width:f,height:d},element:{element:s,left:C.left,top:C.top,width:a,height:h},horizontal:o<0?"left":r>0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};f<a&&n(r+o)<f&&(u.horizontal="center"),d<h&&n(l+c)<d&&(u.vertical="middle"),i(n(r),n(o))>i(n(l),n(c))?u.important="horizontal":u.important="vertical",e.using.call(this,t,u)}),s.offset(t.extend(C,{using:o}))}))},t.ui.position={fit:{left:function(t,e){var n,r=e.within,o=r.isWindow?r.scrollLeft:r.offset.left,s=r.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,h=a+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&h<=0?(n=t.left+l+e.collisionWidth-s-o,t.left+=l-n):t.left=h>0&&l<=0?o:l>h?o+s-e.collisionWidth:o:l>0?t.left+=l:h>0?t.left-=h:t.left=i(t.left-a,t.left)},top:function(t,e){var n,r=e.within,o=r.isWindow?r.scrollTop:r.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,h=a+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&h<=0?(n=t.top+l+e.collisionHeight-s-o,t.top+=l-n):t.top=h>0&&l<=0?o:l>h?o+s-e.collisionHeight:o:l>0?t.top+=l:h>0?t.top-=h:t.top=i(t.top-a,t.top)}},flip:{left:function(t,e){var i,r,o=e.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-a-l,f="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,d=-2*e.offset[0];c<0?((i=t.left+f+p+d+e.collisionWidth-a-s)<0||i<n(c))&&(t.left+=f+p+d):u>0&&((r=t.left-e.collisionPosition.marginLeft+f+p+d-l)>0||n(r)<u)&&(t.left+=f+p+d)},top:function(t,e){var i,r,o=e.within,s=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-a-l,f="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,d=-2*e.offset[1];c<0?((r=t.top+f+p+d+e.collisionHeight-a-s)<0||r<n(c))&&(t.top+=f+p+d):u>0&&((i=t.top-e.collisionPosition.marginTop+f+p+d-l)>0||n(i)<u)&&(t.top+=f+p+d)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},6575:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}})?n.apply(e,r):n)||(t.exports=o)}()},192:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")}})?n.apply(e,r):n)||(t.exports=o)}()},464:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)}})?n.apply(e,r):n)||(t.exports=o)}()},5592:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755)],void 0===(o="function"==typeof(n=function(t){return t.ui=t.ui||{},t.ui.version="1.13.1"})?n.apply(e,r):n)||(t.exports=o)}()},6891:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],n=function(t){var e=0,i=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=function(e){return function(i){var n,r,o;for(o=0;null!=(r=i[o]);o++)(n=t._data(r,"events"))&&n.remove&&t(r).triggerHandler("remove");e(i)}}(t.cleanData),t.widget=function(e,i,n){var r,o,s,a={},l=e.split(".")[0],h=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(s=new i).options=t.widget.extend({},s.options),t.each(n,(function(t,e){a[t]="function"==typeof e?function(){function n(){return i.prototype[t].apply(this,arguments)}function r(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=n,this._superApply=r,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||e},a,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),r?(t.each(r._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete r._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var r,o,s=n.call(arguments,1),a=0,l=s.length;a<l;a++)for(r in s[a])o=s[a][r],i.call(s[a],r)&&void 0!==o&&(t.isPlainObject(o)?e[r]=t.isPlainObject(e[r])?t.widget.extend({},e[r],o):t.widget.extend({},o):e[r]=o);return e},t.widget.bridge=function(e,i){var r=i.prototype.widgetFullName||e;t.fn[e]=function(o){var s="string"==typeof o,a=n.call(arguments,1),l=this;return s?this.length||"instance"!==o?this.each((function(){var i,n=t.data(this,r);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,a))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(a.length&&(o=t.widget.extend.apply(null,[o].concat(a))),this.each((function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new i(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,r,o,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},n=e.split("."),e=n.shift(),n.length){for(r=s[e]=t.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)r[n[o]]=r[n[o]]||{},r=r[n[o]];if(e=n.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=i}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,r;for(i in e)r=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&r&&r.length&&(n=t(r.get()),this._removeClass(r,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],n=this;function r(){var i=[];e.element.each((function(e,r){t.map(n.classesElementLookup,(function(t){return t})).some((function(t){return t.is(r)}))||i.push(r)})),n._on(t(i),{remove:"_untrackClassesElement"})}function o(o,s){var a,l;for(l=0;l<o.length;l++)a=n.classesElementLookup[o[l]]||t(),e.add?(r(),a=t(t.uniqueSort(a.get().concat(e.element.get())))):a=t(a.not(e.element).get()),n.classesElementLookup[o[l]]=a,i.push(o[l]),s&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(n,r){-1!==t.inArray(e.target,r)&&(i.classesElementLookup[n]=t(r.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var r="string"==typeof t||null===t,o={extra:r?e:i,keys:r?t:e,element:r?this.element:t,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(e,i,n){var r,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,(function(n,s){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof s?o[s]:s).apply(o,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?r.on(h,c,a):i.on(h,a)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var r,o,s=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(r in o)r in i||(i[r]=o[r]);return this.element.trigger(i,n),!("function"==typeof s&&!1===s.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,r,o){var s;"string"==typeof r&&(r={effect:r});var a=r?!0===r||"number"==typeof r?i:r.effect||i:e;"number"==typeof(r=r||{})?r={duration:r}:!0===r&&(r={}),s=!t.isEmptyObject(r),r.complete=o,r.delay&&n.delay(r.delay),s&&t.effects&&t.effects.effect[a]?n[e](r):a!==e&&n[a]?n[a](r.duration,r.easing,o):n.queue((function(i){t(this)[e](),o&&o.call(n[0]),i()}))}})),t.widget},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},7285:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(6177),i(6400),i(1624),i(6575),i(192),i(464),i(5592),i(6891)],void 0===(o="function"==typeof(n=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.13.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper,r=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options,o=this.document[0];this.relativeContainer=null,r.containment?"window"!==r.containment?"document"!==r.containment?r.containment.constructor!==Array?("parent"===r.containment&&(r.containment=this.helper[0].parentNode),(n=(i=t(r.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=r.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,r,o,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),s.grid&&(r=s.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,h=i?r-this.offset.click.top>=i[1]||r-this.offset.click.top>i[3]?r:r-this.offset.click.top>=i[1]?r-s.grid[1]:r+s.grid[1]:r,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-s.grid[0]:o+s.grid[0]:o),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var r=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,r))}))},stop:function(e,i,n){var r=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,(function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,r))}))},drag:function(e,i,n){t.each(n.sortables,(function(){var r=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,t.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(r=!1),r}))),r?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",e),n.dropped=o.element,t.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var r=t("body"),o=n.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(e,i,n){var r=n.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var r=t(i.helper),o=n.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(e,i,n){var r=n.options;r._opacity&&t(i.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var r=n.options,o=!1,s=n.scrollParentNotHidden[0],a=n.document[0];s!==a&&"HTML"!==s.tagName?(r.axis&&"x"===r.axis||(n.overflowOffset.top+s.offsetHeight-e.pageY<r.scrollSensitivity?s.scrollTop=o=s.scrollTop+r.scrollSpeed:e.pageY-n.overflowOffset.top<r.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(n.overflowOffset.left+s.offsetWidth-e.pageX<r.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+r.scrollSpeed:e.pageX-n.overflowOffset.left<r.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(a).scrollTop()<r.scrollSensitivity?o=t(a).scrollTop(t(a).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<r.scrollSensitivity&&(o=t(a).scrollTop(t(a).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(a).scrollLeft()<r.scrollSensitivity?o=t(a).scrollLeft(t(a).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<r.scrollSensitivity&&(o=t(a).scrollLeft(t(a).scrollLeft()+r.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var r=n.options;n.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each((function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,n){var r,o,s,a,l,h,c,u,f,p,d=n.options,g=d.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,y=i.offset.top,b=y+n.helperProportions.height;for(f=n.snapElements.length-1;f>=0;f--)h=(l=n.snapElements[f].left-n.margins.left)+n.snapElements[f].width,u=(c=n.snapElements[f].top-n.margins.top)+n.snapElements[f].height,v<l-g||m>h+g||b<c-g||y>u+g||!t.contains(n.snapElements[f].item.ownerDocument,n.snapElements[f].item)?(n.snapElements[f].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[f].item})),n.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(r=Math.abs(c-b)<=g,o=Math.abs(u-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(h-m)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left)),p=r||o||s||a,"outer"!==d.snapMode&&(r=Math.abs(c-y)<=g,o=Math.abs(u-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(h-v)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left)),!n.snapElements[f].snapping&&(r||o||s||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[f].item})),n.snapElements[f].snapping=r||o||s||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var r,o=n.options,s=t.makeArray(t(o.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));s.length&&(r=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each((function(e){t(this).css("zIndex",r+e)})),this.css("zIndex",r+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var r=t(i.helper),o=n.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(e,i,n){var r=n.options;r._zIndex&&t(i.helper).css("zIndex",r._zIndex)}}),t.ui.draggable})?n.apply(e,r):n)||(t.exports=o)}()},6177:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(1870),i(5592),i(6891)],void 0===(o="function"==typeof(n=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.13.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,r=1===i.which,o=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&t.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,i.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(e,r):n)||(t.exports=o)}()},1707:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(6177),i(2064),i(1624),i(5592),i(6891)],n=function(t){return t.widget("ui.resizable",t.ui.mouse,{version:"1.13.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",r=!1;if(e[n]>0)return!0;try{e[n]=1,r=e[n]>0,e[n]=0}catch(t){}return r},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())})).on("mouseleave",(function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,n,r,o,s=this.options,a=this;if(this.handles=s.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)r="ui-resizable-"+(e=String.prototype.trim.call(n[i])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:s.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(e){var i,n,r,o;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(r,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")})),s.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,n,r=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var i,n,r,o=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,n+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,r=this.originalMousePosition,o=this.axis,s=e.pageX-r.left||0,a=e.pageY-r.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,s,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,r,o,s,a,l,h=this.options,c=this;return this._helper&&(r=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=n?0:c.sizeDiff.width,s={width:c.helper.width()-o,height:c.helper.height()-r},a=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,l=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,h.animate||this.element.css(t.extend(s,{top:l,left:a})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,r,o,s=this.options;o={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:Infinity,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:Infinity},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),n>o.minHeight&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,s=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),s&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),o&&h&&(t.left=a-e.minWidth),n&&h&&(t.left=a-e.maxWidth),s&&c&&(t.top=l-e.minHeight),r&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(r[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,r=i._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),s=o&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-s},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&t(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,r,o,s,a,l=t(this).resizable("instance"),h=l.options,c=l.element,u=h.containment,f=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;f&&(l.containerElement=t(f),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(f),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,n){i[t]=l._num(e.css("padding"+n))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,r=l.containerSize.height,o=l.containerSize.width,s=l._hasScroll(f,"left")?f.scrollWidth:o,a=l._hasScroll(f)?f.scrollHeight:r,l.parentData={element:f,left:n.left,top:n.top,width:s,height:a}))},resize:function(e){var i,n,r,o,s=t(this).resizable("instance"),a=s.options,l=s.containerOffset,h=s.position,c=s._aspectRatio||e.shiftKey,u={top:0,left:0},f=s.containerElement,p=!0;f[0]!==document&&/static/.test(f.css("position"))&&(u=l),h.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-u.left),c&&(s.size.height=s.size.width/s.aspectRatio,p=!1),s.position.left=a.helper?l.left:0),h.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),c&&(s.size.width=s.size.height*s.aspectRatio,p=!1),s.position.top=s._helper?l.top:0),r=s.containerElement.get(0)===s.element.parent().get(0),o=/relative|absolute/.test(s.containerElement.css("position")),r&&o?(s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top):(s.offset.left=s.element.offset().left,s.offset.top=s.element.offset().top),i=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-u.left:s.offset.left-l.left)),n=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-u.top:s.offset.top-l.top)),i+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-i,c&&(s.size.height=s.size.width/s.aspectRatio,p=!1)),n+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-n,c&&(s.size.width=s.size.height*s.aspectRatio,p=!1)),p||(s.position.left=s.prevPosition.left,s.position.top=s.prevPosition.top,s.size.width=s.prevSize.width,s.size.height=s.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,r=e.containerPosition,o=e.containerElement,s=t(e.helper),a=s.offset(),l=s.outerWidth()-e.sizeDiff.width,h=s.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:a.left-r.left-n.left,width:l,height:h}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:a.left-r.left-n.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,i){var n=t(this).resizable("instance"),r=n.options,o=n.originalSize,s=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-s.top||0,left:n.position.left-s.left||0};t(r.alsoResize).each((function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),r={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var i=(n[e]||0)+(a[e]||0);i&&i>=0&&(r[e]=i||null)})),e.css(r)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,r=i.size,o=i.originalSize,s=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,h=l[0]||1,c=l[1]||1,u=Math.round((r.width-o.width)/h)*h,f=Math.round((r.height-o.height)/c)*c,p=o.width+u,d=o.height+f,g=n.maxWidth&&n.maxWidth<p,m=n.maxHeight&&n.maxHeight<d,v=n.minWidth&&n.minWidth>p,y=n.minHeight&&n.minHeight>d;n.grid=l,v&&(p+=h),y&&(d+=c),g&&(p-=h),m&&(d-=c),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=d):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=d,i.position.top=s.top-f):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=d,i.position.left=s.left-u):((d-c<=0||p-h<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),d-c>0?(i.size.height=d,i.position.top=s.top-f):(d=c-e.height,i.size.height=d,i.position.top=s.top+o.height-d),p-h>0?(i.size.width=p,i.position.left=s.left-u):(p=h-e.width,i.size.width=p,i.position.left=s.left+o.width-p))}}),t.ui.resizable},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},2526:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(6177),i(6400),i(1870),i(464),i(5592),i(6891)],n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.13.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,r=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1})),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(r=!0)})),!r))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var r,o,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==s.appendTo?s.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",s.cursor),this.storedStylesheet=t("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(o)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,r,o,s=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),s.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(r=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),o=this.options.axis,s={};o&&"x"!==o||(s.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(s.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,o=t.left,s=o+t.width,a=t.top,l=a+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||n+h>a&&n+h<l,f="y"===this.options.axis||e+c>o&&e+c<s,p=u&&f;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<s&&a<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!r)&&(e=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,r=this.dragDirection.horizontal;return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,r,o,s=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(r=t(l[i],this.document[0])).length-1;n>=0;n--)(o=t.data(r[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function h(){s.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(h);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,o,s,a,l,h,c=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],f=this._connectWith();if(f&&this.ready)for(i=f.length-1;i>=0;i--)for(n=(r=t(f[i],this.document[0])).length-1;n>=0;n--)(o=t.data(r[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(s=u[i][1],n=0,h=(a=u[i][0]).length;n<h;n++)(l=t(a[n])).data(this.widgetName+"-item",s),c.push({item:l,instance:s,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var i,n,r,o;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),o=r.offset(),n.left=o.left,n.top=o.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(i=r.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var r=t("<"+n+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===n?e._createTrPlaceholder(e.currentItem,r):"img"===n&&r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,o){i&&!r.forcePlaceholderSize||(o.height()&&(!r.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td> </td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,r,o,s,a,l,h,c,u,f=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(f&&t.contains(this.containers[i].element[0],f.element[0]))continue;f=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,o=null,s=(c=f.floating||this._isFloating(this.currentItem))?"left":"top",a=c?"width":"height",u=c?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[s],h=!1,e[u]-l>this.items[n][a]/2&&(h=!0),Math.abs(e[u]-l)<r&&(r=Math.abs(e[u]-l),o=this.items[n],this.direction=h?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,o=e.pageX,s=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1],s=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay((function(){r===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function r(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(r("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(r("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},9755:function(t,e){var i;!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},h=o.push,c=o.indexOf,u={},f=u.toString,p=u.hasOwnProperty,d=p.toString,g=d.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,i){var n,r,o=(i=i||b).createElement("script");if(o.text=t,e)for(n in w)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[f.call(t)]||"object":typeof t}var k="3.6.0",S=function(t,e){return new S.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,i=_(t);return!v(t)&&!y(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:k,constructor:S,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var t,e,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&s!==n&&(h&&n&&(S.isPlainObject(n)||(r=Array.isArray(n)))?(i=s[e],o=r&&!Array.isArray(i)?[]:r||S.isPlainObject(i)?i:{},r=!1,s[e]=S.extend(h,o,n)):void 0!==n&&(s[e]=n));return s},S.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==f.call(t))&&(!(e=s(t))||"function"==typeof(i=p.call(e,"constructor")&&e.constructor)&&d.call(i)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){x(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(C(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(C(Object(t))?S.merge(i,"string"==typeof t?[t]:t):h.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:c.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,s=!i;r<o;r++)!e(t[r],r)!==s&&n.push(t[r]);return n},map:function(t,e,i){var n,r,o=0,s=[];if(C(t))for(n=t.length;o<n;o++)null!=(r=e(t[o],o,i))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,i))&&s.push(r);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){u["[object "+e+"]"]=e.toLowerCase()}));var T=function(t){var e,i,n,r,o,s,a,l,h,c,u,f,p,d,g,m,v,y,b,w="sizzle"+1*new Date,x=t.document,_=0,k=0,S=lt(),C=lt(),T=lt(),P=lt(),j=function(t,e){return t===e&&(u=!0),0},O={}.hasOwnProperty,A=[],E=A.pop,M=A.push,I=A.push,D=A.slice,H=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",L="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\[[\\x20\\t\\r\\n\\f]*("+L+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+R+"*\\]",z=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",B=new RegExp(R+"+","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),$=new RegExp(R+"|>"),V=new RegExp(z),Q=new RegExp("^"+L+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){f()},st=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(A=D.call(x.childNodes),x.childNodes),A[x.childNodes.length].nodeType}catch(t){I={apply:A.length?function(t,e){M.apply(t,D.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(t,e,n,r){var o,a,h,c,u,d,v,y=e&&e.ownerDocument,x=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return n;if(!r&&(f(e),e=e||p,g)){if(11!==x&&(u=K.exec(t)))if(o=u[1]){if(9===x){if(!(h=e.getElementById(o)))return n;if(h.id===o)return n.push(h),n}else if(y&&(h=y.getElementById(o))&&b(e,h)&&h.id===o)return n.push(h),n}else{if(u[2])return I.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&i.getElementsByClassName&&e.getElementsByClassName)return I.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!P[t+" "]&&(!m||!m.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===x&&($.test(t)||U.test(t))){for((y=tt.test(t)&&vt(e.parentNode)||e)===e&&i.scope||((c=e.getAttribute("id"))?c=c.replace(nt,rt):e.setAttribute("id",c=w)),a=(d=s(t)).length;a--;)d[a]=(c?"#"+c:":scope")+" "+bt(d[a]);v=d.join(",")}try{return I.apply(n,y.querySelectorAll(v)),n}catch(e){P(t,!0)}finally{c===w&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,n,r)}function lt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function ht(t){return t[w]=!0,t}function ct(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function ft(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ht((function(e){return e=+e,ht((function(i,n){for(var r,o=t([],i.length,e),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=at.support={},o=at.isXML=function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!X.test(e||i&&i.nodeName||"HTML")},f=at.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:x;return s!=p&&9===s.nodeType&&s.documentElement?(d=(p=s).documentElement,g=!o(p),x!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),i.scope=ct((function(t){return d.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ct((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(p.getElementsByClassName),i.getById=ct((function(t){return d.appendChild(t).id=w,!p.getElementsByName||!p.getElementsByName(w).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(i.qsa=J.test(p.querySelectorAll))&&(ct((function(t){var e;d.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+F+")"),t.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=J.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ct((function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",z)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(d.compareDocumentPosition),b=e||J.test(d.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},j=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==p||t.ownerDocument==x&&b(x,t)?-1:e==p||e.ownerDocument==x&&b(x,e)?1:c?H(c,t)-H(c,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!r||!o)return t==p?-1:e==p?1:r?-1:o?1:c?H(c,t)-H(c,e):0;if(r===o)return ft(t,e);for(i=t;i=i.parentNode;)s.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;s[n]===a[n];)n++;return n?ft(s[n],a[n]):s[n]==x?-1:a[n]==x?1:0},p):p},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(f(t),i.matchesSelector&&g&&!P[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){P(e,!0)}return at(e,p,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!=p&&f(t),b(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=p&&f(t);var r=n.attrHandle[e.toLowerCase()],o=r&&O.call(n.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:i.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},at.escape=function(t){return(t+"").replace(nt,rt)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,n=[],r=0,o=0;if(u=!i.detectDuplicates,c=!i.sortStable&&t.slice(0),t.sort(j),u){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return c=null,t},r=at.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},n=at.selectors={cacheLength:50,createPseudo:ht,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&V.test(i)&&(e=s(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+R+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var r=at.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(B," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var h,c,u,f,p,d,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(o){for(;g;){for(f=e;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(b=(p=(h=(c=(u=(f=m)[w]||(f[w]={}))[f.uniqueID]||(u[f.uniqueID]={}))[t]||[])[0]===_&&h[1])&&h[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(b=p=0)||d.pop();)if(1===f.nodeType&&++b&&f===e){c[t]=[_,p,b];break}}else if(y&&(b=p=(h=(c=(u=(f=e)[w]||(f[w]={}))[f.uniqueID]||(u[f.uniqueID]={}))[t]||[])[0]===_&&h[1]),!1===b)for(;(f=++p&&f&&f[g]||(b=p=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(u=f[w]||(f[w]={}))[f.uniqueID]||(u[f.uniqueID]={}))[t]=[_,b]),f!==e)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return r[w]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ht((function(t,i){for(var n,o=r(t,e),s=o.length;s--;)t[n=H(t,o[s])]=!(i[n]=o[s])})):function(t){return r(t,0,i)}):r}},pseudos:{not:ht((function(t){var e=[],i=[],n=a(t.replace(W,"$1"));return n[w]?ht((function(t,e,i,r){for(var o,s=n(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:ht((function(t){return function(e){return at(t,e).length>0}})),contains:ht((function(t){return t=t.replace(et,it),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:ht((function(t){return Q.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,i){return[i<0?i+e:i]})),even:mt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:mt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:mt((function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:mt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=dt(e);function yt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function wt(t,e,i){var n=e.dir,r=e.next,o=r||n,s=i&&"parentNode"===o,a=k++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,r);return!1}:function(e,i,l){var h,c,u,f=[_,a];if(l){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||s)if(c=(u=e[w]||(e[w]={}))[e.uniqueID]||(u[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((h=c[o])&&h[0]===_&&h[1]===a)return f[2]=h[2];if(c[o]=f,f[2]=t(e,i,l))return!0}return!1}}function xt(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function _t(t,e,i,n,r){for(var o,s=[],a=0,l=t.length,h=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,r)||(s.push(o),h&&e.push(a)));return s}function kt(t,e,i,n,r,o){return n&&!n[w]&&(n=kt(n)),r&&!r[w]&&(r=kt(r,o)),ht((function(o,s,a,l){var h,c,u,f=[],p=[],d=s.length,g=o||function(t,e,i){for(var n=0,r=e.length;n<r;n++)at(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),m=!t||!o&&e?g:_t(g,f,t,a,l),v=i?r||(o?t:d||n)?[]:s:m;if(i&&i(m,v,a,l),n)for(h=_t(v,p),n(h,[],a,l),c=h.length;c--;)(u=h[c])&&(v[p[c]]=!(m[p[c]]=u));if(o){if(r||t){if(r){for(h=[],c=v.length;c--;)(u=v[c])&&h.push(m[c]=u);r(null,v=[],h,l)}for(c=v.length;c--;)(u=v[c])&&(h=r?H(o,u):f[c])>-1&&(o[h]=!(s[h]=u))}}else v=_t(v===s?v.splice(d,v.length):v),r?r(null,s,v,l):I.apply(s,v)}))}function St(t){for(var e,i,r,o=t.length,s=n.relative[t[0].type],a=s||n.relative[" "],l=s?1:0,c=wt((function(t){return t===e}),a,!0),u=wt((function(t){return H(e,t)>-1}),a,!0),f=[function(t,i,n){var r=!s&&(n||i!==h)||((e=i).nodeType?c(t,i,n):u(t,i,n));return e=null,r}];l<o;l++)if(i=n.relative[t[l].type])f=[wt(xt(f),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[w]){for(r=++l;r<o&&!n.relative[t[r].type];r++);return kt(l>1&&xt(f),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),i,l<r&&St(t.slice(l,r)),r<o&&St(t=t.slice(r)),r<o&&bt(t))}f.push(i)}return xt(f)}return yt.prototype=n.filters=n.pseudos,n.setFilters=new yt,s=at.tokenize=function(t,e){var i,r,o,s,a,l,h,c=C[t+" "];if(c)return e?0:c.slice(0);for(a=t,l=[],h=n.preFilter;a;){for(s in i&&!(r=q.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=U.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(W," ")}),a=a.slice(i.length)),n.filter)!(r=Y[s].exec(a))||h[s]&&!(r=h[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return e?a.length:a?at.error(t):C(t,l).slice(0)},a=at.compile=function(t,e){var i,r=[],o=[],a=T[t+" "];if(!a){for(e||(e=s(t)),i=e.length;i--;)(a=St(e[i]))[w]?r.push(a):o.push(a);a=T(t,function(t,e){var i=e.length>0,r=t.length>0,o=function(o,s,a,l,c){var u,d,m,v=0,y="0",b=o&&[],w=[],x=h,k=o||r&&n.find.TAG("*",c),S=_+=null==x?1:Math.random()||.1,C=k.length;for(c&&(h=s==p||s||c);y!==C&&null!=(u=k[y]);y++){if(r&&u){for(d=0,s||u.ownerDocument==p||(f(u),a=!g);m=t[d++];)if(m(u,s||p,a)){l.push(u);break}c&&(_=S)}i&&((u=!m&&u)&&v--,o&&b.push(u))}if(v+=y,i&&y!==v){for(d=0;m=e[d++];)m(b,w,s,a);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=E.call(l));w=_t(w)}I.apply(l,w),c&&!o&&w.length>0&&v+e.length>1&&at.uniqueSort(l)}return c&&(_=S,h=x),b};return i?ht(o):o}(o,r)),a.selector=t}return a},l=at.select=function(t,e,i,r){var o,l,h,c,u,f="function"==typeof t&&t,p=!r&&s(t=f.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(h=l[0]).type&&9===e.nodeType&&g&&n.relative[l[1].type]){if(!(e=(n.find.ID(h.matches[0].replace(et,it),e)||[])[0]))return i;f&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=Y.needsContext.test(t)?0:l.length;o--&&(h=l[o],!n.relative[c=h.type]);)if((u=n.find[c])&&(r=u(h.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&bt(l)))return I.apply(i,r),i;break}}return(f||a(t,p))(r,e,!g,i,!e||tt.test(t)&&vt(e.parentNode)||e),i},i.sortStable=w.split("").sort(j).join("")===w,i.detectDuplicates=!!u,f(),i.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ut(F,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),at}(n);S.find=T,S.expr=T.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=T.uniqueSort,S.text=T.getText,S.isXMLDoc=T.isXML,S.contains=T.contains,S.escapeSelector=T.escape;var P=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&S(t).is(i))break;n.push(t)}return n},j=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},O=S.expr.match.needsContext;function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(t,e,i){return v(e)?S.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?S.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?S.grep(t,(function(t){return c.call(e,t)>-1!==i})):S.filter(e,t,i)}S.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?S.find.matchesSelector(n,t)?[n]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e<n;e++)if(S.contains(r[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)S.find(t,r[e],i);return n>1?S.uniqueSort(i):i},filter:function(t){return this.pushStack(M(this,t||[],!1))},not:function(t){return this.pushStack(M(this,t||[],!0))},is:function(t){return!!M(this,"string"==typeof t&&O.test(t)?S(t):t||[],!1).length}});var I,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||I,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:D.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),E.test(n[1])&&S.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=b.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,I=S(b);var H=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function R(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(S.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,r=this.length,o=[],s="string"!=typeof t&&S(t);if(!O.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&S.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(S(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return P(t,"parentNode")},parentsUntil:function(t,e,i){return P(t,"parentNode",i)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return P(t,"nextSibling")},prevAll:function(t){return P(t,"previousSibling")},nextUntil:function(t,e,i){return P(t,"nextSibling",i)},prevUntil:function(t,e,i){return P(t,"previousSibling",i)},siblings:function(t){return j((t.parentNode||{}).firstChild,t)},children:function(t){return j(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(A(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(i,n){var r=S.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=S.filter(n,r)),this.length>1&&(F[t]||S.uniqueSort(r),H.test(t)&&r.reverse()),this.pushStack(r)}}));var L=/[^\x20\t\r\n\f]+/g;function N(t){return t}function z(t){throw t}function B(t,e,i,n){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(i):t&&v(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(L)||[],(function(t,i){e[i]=!0})),e}(t):S.extend({},t);var e,i,n,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,n=e=!0;s.length;a=-1)for(i=s.shift();++a<o.length;)!1===o[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=o.length,i=!1);t.memory||(i=!1),e=!1,r&&(o=i?[]:"")},h={add:function(){return o&&(i&&!e&&(a=o.length-1,s.push(i)),function e(i){S.each(i,(function(i,n){v(n)?t.unique&&h.has(n)||o.push(n):n&&n.length&&"string"!==_(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return S.each(arguments,(function(t,e){for(var i;(i=S.inArray(e,o,i))>-1;)o.splice(i,1),i<=a&&a--})),this},has:function(t){return t?S.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=s=[],i||e||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],s.push(i),e||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return S.Deferred((function(i){S.each(e,(function(e,n){var r=v(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var o=0;function s(t,e,i,r){return function(){var a=this,l=arguments,h=function(){var n,h;if(!(t<o)){if((n=i.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");h=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(h)?r?h.call(n,s(o,e,N,r),s(o,e,z,r)):(o++,h.call(n,s(o,e,N,r),s(o,e,z,r),s(o,e,N,e.notifyWith))):(i!==N&&(a=void 0,l=[n]),(r||e.resolveWith)(a,l))}},c=r?h:function(){try{h()}catch(n){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(n,c.stackTrace),t+1>=o&&(i!==z&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?c():(S.Deferred.getStackHook&&(c.stackTrace=S.Deferred.getStackHook()),n.setTimeout(c))}}return S.Deferred((function(n){e[0][3].add(s(0,n,v(r)?r:N,n.notifyWith)),e[1][3].add(s(0,n,v(t)?t:N)),e[2][3].add(s(0,n,v(i)?i:z))})).promise()},promise:function(t){return null!=t?S.extend(t,r):r}},o={};return S.each(e,(function(t,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add((function(){i=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),r=a.call(arguments),o=S.Deferred(),s=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?a.call(arguments):i,--e||o.resolveWith(n,r)}};if(e<=1&&(B(t,o.done(s(i)).resolve,o.reject,!e),"pending"===o.state()||v(r[i]&&r[i].then)))return o.then();for(;i--;)B(r[i],s(i),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&W.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){n.setTimeout((function(){throw t}))};var q=S.Deferred();function U(){b.removeEventListener("DOMContentLoaded",U),n.removeEventListener("load",U),S.ready()}S.fn.ready=function(t){return q.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||q.resolveWith(b,[S]))}}),S.ready.then=q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(S.ready):(b.addEventListener("DOMContentLoaded",U),n.addEventListener("load",U));var $=function(t,e,i,n,r,o,s){var a=0,l=t.length,h=null==i;if("object"===_(i))for(a in r=!0,i)$(t,e,a,i[a],!0,o,s);else if(void 0!==n&&(r=!0,v(n)||(s=!0),h&&(s?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(S(t),i)})),e))for(;a<l;a++)e(t[a],i,s?n:n.call(t[a],a,e(t[a],i)));return r?t:h?e.call(t):l?e(t[0],i):o},V=/^-ms-/,Q=/-([a-z])/g;function Y(t,e){return e.toUpperCase()}function X(t){return t.replace(V,"ms-").replace(Q,Y)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Z(){this.expando=S.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[X(e)]=i;else for(n in e)r[X(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][X(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(X):(e=X(e))in n?[e]:e.match(L)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||S.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var J=new Z,K=new Z,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function it(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(i)}catch(t){}K.set(t,e,i)}else i=void 0;return i}S.extend({hasData:function(t){return K.hasData(t)||J.hasData(t)},data:function(t,e,i){return K.access(t,e,i)},removeData:function(t,e){K.remove(t,e)},_data:function(t,e,i){return J.access(t,e,i)},_removeData:function(t,e){J.remove(t,e)}}),S.fn.extend({data:function(t,e){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=K.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=X(n.slice(5)),it(o,n,r[n]));J.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){K.set(this,t)})):$(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=K.get(o,t))||void 0!==(i=it(o,t))?i:void 0;this.each((function(){K.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),S.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=J.get(t,e),i&&(!n||Array.isArray(i)?n=J.access(t,e,S.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=S.queue(t,e),n=i.length,r=i.shift(),o=S._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,(function(){S.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return J.get(t,i)||J.access(t,i,{empty:S.Callbacks("once memory").add((function(){J.remove(t,[e+"queue",i])}))})}}),S.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?S.queue(this[0],t):void 0===e?this:this.each((function(){var i=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&S.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){S.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=S.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=J.get(o[s],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],st=b.documentElement,at=function(t){return S.contains(t.ownerDocument,t)},lt={composed:!0};st.getRootNode&&(at=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var ht=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===S.css(t,"display")};function ct(t,e,i,n){var r,o,s=20,a=n?function(){return n.cur()}:function(){return S.css(t,e,"")},l=a(),h=i&&i[3]||(S.cssNumber[e]?"":"px"),c=t.nodeType&&(S.cssNumber[e]||"px"!==h&&+l)&&rt.exec(S.css(t,e));if(c&&c[3]!==h){for(l/=2,h=h||c[3],c=+l||1;s--;)S.style(t,e,c+h),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,S.style(t,e,c+h),i=i||[]}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=h,n.start=c,n.end=r)),r}var ut={};function ft(t){var e,i=t.ownerDocument,n=t.nodeName,r=ut[n];return r||(e=i.body.appendChild(i.createElement(n)),r=S.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),ut[n]=r,r)}function pt(t,e){for(var i,n,r=[],o=0,s=t.length;o<s;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(r[o]=J.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&ht(n)&&(r[o]=ft(n))):"none"!==i&&(r[o]="none",J.set(n,"display",i)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}S.fn.extend({show:function(){return pt(this,!0)},hide:function(){return pt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ht(this)?S(this).show():S(this).hide()}))}});var dt,gt,mt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,yt=/^$|^module$|\/(?:java|ecma)script/i;dt=b.createDocumentFragment().appendChild(b.createElement("div")),(gt=b.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),dt.appendChild(gt),m.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="<option></option>",m.option=!!dt.lastChild;var bt={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 wt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&A(t,e)?S.merge([t],i):i}function xt(t,e){for(var i=0,n=t.length;i<n;i++)J.set(t[i],"globalEval",!e||J.get(e[i],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,m.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var _t=/<|&#?\w+;/;function kt(t,e,i,n,r){for(var o,s,a,l,h,c,u=e.createDocumentFragment(),f=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if("object"===_(o))S.merge(f,o.nodeType?[o]:o);else if(_t.test(o)){for(s=s||u.appendChild(e.createElement("div")),a=(vt.exec(o)||["",""])[1].toLowerCase(),l=bt[a]||bt._default,s.innerHTML=l[1]+S.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;S.merge(f,s.childNodes),(s=u.firstChild).textContent=""}else f.push(e.createTextNode(o));for(u.textContent="",p=0;o=f[p++];)if(n&&S.inArray(o,n)>-1)r&&r.push(o);else if(h=at(o),s=wt(u.appendChild(o),"script"),h&&xt(s),i)for(c=0;o=s[c++];)yt.test(o.type||"")&&i.push(o);return u}var St=/^([^.]*)(?:\.(.+)|)/;function Ct(){return!0}function Tt(){return!1}function Pt(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function jt(t,e,i,n,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)jt(t,a,i,n,e[a],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Tt;else if(!r)return t;return 1===o&&(s=r,r=function(t){return S().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=S.guid++)),t.each((function(){S.event.add(this,e,r,n,i)}))}function Ot(t,e,i){i?(J.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r,o=J.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=a.call(arguments),J.set(this,e,o),n=i(this,e),this[e](),o!==(r=J.get(this,e))||n?J.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.value}else o.length&&(J.set(this,e,{value:S.event.trigger(S.extend(o[0],S.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,e)&&S.event.add(t,e,Ct)}S.event={global:{},add:function(t,e,i,n,r){var o,s,a,l,h,c,u,f,p,d,g,m=J.get(t);if(G(t))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&S.find.matchesSelector(st,r),i.guid||(i.guid=S.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(L)||[""]).length;h--;)p=g=(a=St.exec(e[h])||[])[1],d=(a[2]||"").split(".").sort(),p&&(u=S.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=S.event.special[p]||{},c=S.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:d.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,d,s)||t.addEventListener&&t.addEventListener(p,s)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),S.event.global[p]=!0)},remove:function(t,e,i,n,r){var o,s,a,l,h,c,u,f,p,d,g,m=J.hasData(t)&&J.get(t);if(m&&(l=m.events)){for(h=(e=(e||"").match(L)||[""]).length;h--;)if(p=g=(a=St.exec(e[h])||[])[1],d=(a[2]||"").split(".").sort(),p){for(u=S.event.special[p]||{},f=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)c=f[o],!r&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,u.remove&&u.remove.call(t,c));s&&!f.length&&(u.teardown&&!1!==u.teardown.call(t,d,m.handle)||S.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)S.event.remove(t,p+e[h],i,n,!0);S.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,s,a=new Array(arguments.length),l=S.event.fix(t),h=(J.get(this,"events")||Object.create(null))[l.type]||[],c=S.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=S.event.handlers.call(this,l,h),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((S.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,r,o,s,a=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(o=[],s={},i=0;i<l;i++)void 0===s[r=(n=e[i]).selector+" "]&&(s[r]=n.needsContext?S(r,this).index(h)>-1:S.find(r,this,null,[h]).length),s[r]&&o.push(n);o.length&&a.push({elem:h,handlers:o})}return h=this,l<e.length&&a.push({elem:h,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return mt.test(e.type)&&e.click&&A(e,"input")&&Ot(e,"click",Ct),!1},trigger:function(t){var e=this||t;return mt.test(e.type)&&e.click&&A(e,"input")&&Ot(e,"click"),!0},_default:function(t){var e=t.target;return mt.test(e.type)&&e.click&&A(e,"input")&&J.get(e,"click")||A(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ct:Tt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ct,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ct,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ct,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){S.event.special[t]={setup:function(){return Ot(this,t,Pt),!1},trigger:function(){return Ot(this,t),!0},_default:function(){return!0},delegateType:e}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===n||S.contains(n,r))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),S.fn.extend({on:function(t,e,i,n){return jt(this,t,e,i,n)},one:function(t,e,i,n){return jt(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,S(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Tt),this.each((function(){S.event.remove(this,t,i,e)}))}});var At=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function It(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ft(t,e){var i,n,r,o,s,a;if(1===e.nodeType){if(J.hasData(t)&&(a=J.get(t).events))for(r in J.remove(e,"handle events"),a)for(i=0,n=a[r].length;i<n;i++)S.event.add(e,r,a[r][i]);K.hasData(t)&&(o=K.access(t),s=S.extend({},o),K.set(e,s))}}function Rt(t,e){var i=e.nodeName.toLowerCase();"input"===i&&mt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function Lt(t,e,i,n){e=l(e);var r,o,s,a,h,c,u=0,f=t.length,p=f-1,d=e[0],g=v(d);if(g||f>1&&"string"==typeof d&&!m.checkClone&&Et.test(d))return t.each((function(r){var o=t.eq(r);g&&(e[0]=d.call(this,r,o.html())),Lt(o,e,i,n)}));if(f&&(o=(r=kt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=o),o||n)){for(a=(s=S.map(wt(r,"script"),Dt)).length;u<f;u++)h=r,u!==p&&(h=S.clone(h,!0,!0),a&&S.merge(s,wt(h,"script"))),i.call(t[u],h,u);if(a)for(c=s[s.length-1].ownerDocument,S.map(s,Ht),u=0;u<a;u++)h=s[u],yt.test(h.type||"")&&!J.access(h,"globalEval")&&S.contains(c,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?S._evalUrl&&!h.noModule&&S._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},c):x(h.textContent.replace(Mt,""),h,c))}return t}function Nt(t,e,i){for(var n,r=e?S.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||S.cleanData(wt(n)),n.parentNode&&(i&&at(n)&&xt(wt(n,"script")),n.parentNode.removeChild(n));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,o,s,a=t.cloneNode(!0),l=at(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(s=wt(a),n=0,r=(o=wt(t)).length;n<r;n++)Rt(o[n],s[n]);if(e)if(i)for(o=o||wt(t),s=s||wt(a),n=0,r=o.length;n<r;n++)Ft(o[n],s[n]);else Ft(t,a);return(s=wt(a,"script")).length>0&&xt(s,!l&&wt(t,"script")),a},cleanData:function(t){for(var e,i,n,r=S.event.special,o=0;void 0!==(i=t[o]);o++)if(G(i)){if(e=i[J.expando]){if(e.events)for(n in e.events)r[n]?S.event.remove(i,n):S.removeEvent(i,n,e.handle);i[J.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Nt(this,t,!0)},remove:function(t){return Nt(this,t)},text:function(t){return $(this,(function(t){return void 0===t?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Lt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||It(this,t).appendChild(t)}))},prepend:function(){return Lt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=It(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Lt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Lt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(wt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return $(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!At.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(S.cleanData(wt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Lt(this,arguments,(function(e){var i=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(wt(this)),i&&i.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var i,n=[],r=S(t),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),S(r[s])[e](i),h.apply(n,i.get());return this.pushStack(n)}}));var zt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Wt=function(t,e,i){var n,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=i.call(t),e)t.style[r]=o[r];return n},qt=new RegExp(ot.join("|"),"i");function Ut(t,e,i){var n,r,o,s,a=t.style;return(i=i||Bt(t))&&(""!==(s=i.getPropertyValue(e)||i[e])||at(t)||(s=S.style(t,e)),!m.pixelBoxStyles()&&zt.test(s)&&qt.test(e)&&(n=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function $t(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",st.appendChild(h).appendChild(c);var t=n.getComputedStyle(c);i="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",s=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),st.removeChild(h),c=null}}function e(t){return Math.round(parseFloat(t))}var i,r,o,s,a,l,h=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,S.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,i,r;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),i=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",st.appendChild(t).appendChild(e).appendChild(i),r=n.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,st.removeChild(t)),a}}))}();var Vt=["Webkit","Moz","ms"],Qt=b.createElement("div").style,Yt={};function Xt(t){var e=S.cssProps[t]||Yt[t];return e||(t in Qt?t:Yt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Vt.length;i--;)if((t=Vt[i]+e)in Qt)return t}(t)||t)}var Gt=/^(none|table(?!-c[ea]).+)/,Zt=/^--/,Jt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function te(t,e,i){var n=rt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function ee(t,e,i,n,r,o){var s="width"===e?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=S.css(t,i+ot[s],!0,r)),n?("content"===i&&(l-=S.css(t,"padding"+ot[s],!0,r)),"margin"!==i&&(l-=S.css(t,"border"+ot[s]+"Width",!0,r))):(l+=S.css(t,"padding"+ot[s],!0,r),"padding"!==i?l+=S.css(t,"border"+ot[s]+"Width",!0,r):a+=S.css(t,"border"+ot[s]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l}function ie(t,e,i){var n=Bt(t),r=(!m.boxSizingReliable()||i)&&"border-box"===S.css(t,"boxSizing",!1,n),o=r,s=Ut(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(zt.test(s)){if(!i)return s;s="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&A(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===S.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===S.css(t,"boxSizing",!1,n),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ee(t,e,i||(r?"border":"content"),o,n,s)+"px"}function ne(t,e,i,n,r){return new ne.prototype.init(t,e,i,n,r)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ut(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=X(e),l=Zt.test(e),h=t.style;if(l||(e=Xt(a)),s=S.cssHooks[e]||S.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(t,!1,n))?r:h[e];"string"===(o=typeof i)&&(r=rt.exec(i))&&r[1]&&(i=ct(t,e,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(S.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),s&&"set"in s&&void 0===(i=s.set(t,i,n))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,n){var r,o,s,a=X(e);return Zt.test(e)||(e=Xt(a)),(s=S.cssHooks[e]||S.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,i)),void 0===r&&(r=Ut(t,e,n)),"normal"===r&&e in Kt&&(r=Kt[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,i,n){if(i)return!Gt.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ie(t,e,n):Wt(t,Jt,(function(){return ie(t,e,n)}))},set:function(t,i,n){var r,o=Bt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||n)&&"border-box"===S.css(t,"boxSizing",!1,o),l=n?ee(t,e,n,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ee(t,e,"border",!1,o)-.5)),l&&(r=rt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=S.css(t,e)),te(0,i,l)}}})),S.cssHooks.marginLeft=$t(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+ot[n]+e]=o[n]||o[n-2]||o[0];return r}},"margin"!==t&&(S.cssHooks[t+e].set=te)})),S.fn.extend({css:function(t,e){return $(this,(function(t,e,i){var n,r,o={},s=0;if(Array.isArray(e)){for(n=Bt(t),r=e.length;s<r;s++)o[e[s]]=S.css(t,e[s],!1,n);return o}return void 0!==i?S.style(t,e,i):S.css(t,e)}),t,e,arguments.length>1)}}),S.Tween=ne,ne.prototype={constructor:ne,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(S.cssNumber[i]?"":"px")},cur:function(){var t=ne.propHooks[this.prop];return t&&t.get?t.get(this):ne.propHooks._default.get(this)},run:function(t){var e,i=ne.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ne.propHooks._default.set(this),this}},ne.prototype.init.prototype=ne.prototype,ne.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[Xt(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},ne.propHooks.scrollTop=ne.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ne.prototype.init,S.fx.step={};var re,oe,se=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function le(){oe&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(le):n.setTimeout(le,S.fx.interval),S.fx.tick())}function he(){return n.setTimeout((function(){re=void 0})),re=Date.now()}function ce(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=ot[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function ue(t,e,i){for(var n,r=(fe.tweeners[e]||[]).concat(fe.tweeners["*"]),o=0,s=r.length;o<s;o++)if(n=r[o].call(i,e,t))return n}function fe(t,e,i){var n,r,o=0,s=fe.prefilters.length,a=S.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=re||he(),i=Math.max(0,h.startTime+h.duration-e),n=1-(i/h.duration||0),o=0,s=h.tweens.length;o<s;o++)h.tweens[o].run(n);return a.notifyWith(t,[h,n,i]),n<1&&s?i:(s||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},i),originalProperties:e,originalOptions:i,startTime:re||he(),duration:i.duration,tweens:[],createTween:function(e,i){var n=S.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(n),n},stop:function(e){var i=0,n=e?h.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)h.tweens[i].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),c=h.props;for(!function(t,e){var i,n,r,o,s;for(i in t)if(r=e[n=X(i)],o=t[i],Array.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(s=S.cssHooks[n])&&"expand"in s)for(i in o=s.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=r);else e[n]=r}(c,h.opts.specialEasing);o<s;o++)if(n=fe.prefilters[o].call(h,t,c,h.opts))return v(n.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ue,h),v(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),S.fx.timer(S.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h}S.Animation=S.extend(fe,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ct(i.elem,t,rt.exec(e),i),i}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(L);for(var i,n=0,r=t.length;n<r;n++)i=t[n],fe.tweeners[i]=fe.tweeners[i]||[],fe.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,r,o,s,a,l,h,c,u="width"in e||"height"in e,f=this,p={},d=t.style,g=t.nodeType&&ht(t),m=J.get(t,"fxshow");for(n in i.queue||(null==(s=S._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always((function(){f.always((function(){s.unqueued--,S.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[n],se.test(r)){if(delete e[n],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||S.style(t,n)}if((l=!S.isEmptyObject(e))||!S.isEmptyObject(p))for(n in u&&1===t.nodeType&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],null==(h=m&&m.display)&&(h=J.get(t,"display")),"none"===(c=S.css(t,"display"))&&(h?c=h:(pt([t],!0),h=t.style.display||h,c=S.css(t,"display"),pt([t]))),("inline"===c||"inline-block"===c&&null!=h)&&"none"===S.css(t,"float")&&(l||(f.done((function(){d.display=h})),null==h&&(c=d.display,h="none"===c?"":c)),d.display="inline-block")),i.overflow&&(d.overflow="hidden",f.always((function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(t,"fxshow",{display:h}),o&&(m.hidden=!g),g&&pt([t],!0),f.done((function(){for(n in g||pt([t]),J.remove(t,"fxshow"),p)S.style(t,n,p[n])}))),l=ue(g?m[n]:0,n,f),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?fe.prefilters.unshift(t):fe.prefilters.push(t)}}),S.speed=function(t,e,i){var n=t&&"object"==typeof t?S.extend({},t):{complete:i||!i&&e||v(t)&&t,duration:t,easing:i&&e||e&&!v(e)&&e};return S.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in S.fx.speeds?n.duration=S.fx.speeds[n.duration]:n.duration=S.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&S.dequeue(this,n.queue)},n},S.fn.extend({fadeTo:function(t,e,i,n){return this.filter(ht).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=S.isEmptyObject(t),o=S.speed(e,i,n),s=function(){var e=fe(this,S.extend({},t),o);(r||J.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=S.timers,s=J.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&ae.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||S.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=J.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=S.timers,s=n?n.length:0;for(i.finish=!0,S.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),S.each(["toggle","show","hide"],(function(t,e){var i=S.fn[e];S.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(ce(e,!0),t,n,r)}})),S.each({slideDown:ce("show"),slideUp:ce("hide"),slideToggle:ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){S.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),S.timers=[],S.fx.tick=function(){var t,e=0,i=S.timers;for(re=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||S.fx.stop(),re=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){oe||(oe=!0,le())},S.fx.stop=function(){oe=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var pe,de=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return $(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?S.prop(t,e,i):(1===o&&S.isXMLDoc(t)||(r=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?pe:void 0)),void 0!==i?null===i?void S.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=S.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&A(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(L);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),pe={set:function(t,e,i){return!1===e?S.removeAttr(t,i):t.setAttribute(i,i),i}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=de[e]||S.find.attr;de[e]=function(t,e,n){var r,o,s=e.toLowerCase();return n||(o=de[s],de[s]=r,r=null!=i(t,e,n)?s:null,de[s]=o),r}}));var ge=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function ve(t){return(t.match(L)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function be(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(L)||[]}S.fn.extend({prop:function(t,e){return $(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(t)||(e=S.propFix[e]||e,r=S.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):ge.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,i,n,r,o,s,a,l=0;if(v(t))return this.each((function(e){S(this).addClass(t.call(this,e,ye(this)))}));if((e=be(t)).length)for(;i=this[l++];)if(r=ye(i),n=1===i.nodeType&&" "+ve(r)+" "){for(s=0;o=e[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(a=ve(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,r,o,s,a,l=0;if(v(t))return this.each((function(e){S(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=be(t)).length)for(;i=this[l++];)if(r=ye(i),n=1===i.nodeType&&" "+ve(r)+" "){for(s=0;o=e[s++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(a=ve(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):v(t)?this.each((function(i){S(this).toggleClass(t.call(this,i,ye(this),e),e)})):this.each((function(){var e,r,o,s;if(n)for(r=0,o=S(this),s=be(t);e=s[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=ye(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+ve(ye(i))+" ").indexOf(e)>-1)return!0;return!1}});var we=/\r/g;S.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=v(t),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,S(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=S.map(r,(function(t){return null==t?"":t+""}))),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=S.valHooks[r.type]||S.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(we,""):null==i?"":i:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:ve(S.text(t))}},select:{get:function(t){var e,i,n,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(n=o<0?l:s?o:0;n<l;n++)if(((i=r[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!A(i.parentNode,"optgroup"))){if(e=S(i).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var i,n,r=t.options,o=S.makeArray(e),s=r.length;s--;)((n=r[s]).selected=S.inArray(S.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},m.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),m.focusin="onfocusin"in n;var xe=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,i,r){var o,s,a,l,h,c,u,f,d=[i||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(s=f=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!xe.test(g+S.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),h=g.indexOf(":")<0&&"on"+g,(t=t[S.expando]?t:new S.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:S.makeArray(e,[t]),u=S.event.special[g]||{},r||!u.trigger||!1!==u.trigger.apply(i,e))){if(!r&&!u.noBubble&&!y(i)){for(l=u.delegateType||g,xe.test(l+g)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(i.ownerDocument||b)&&d.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?l:u.bindType||g,(c=(J.get(s,"events")||Object.create(null))[t.type]&&J.get(s,"handle"))&&c.apply(s,e),(c=h&&s[h])&&c.apply&&G(s)&&(t.result=c.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!G(i)||h&&v(i[g])&&!y(i)&&((a=i[h])&&(i[h]=null),S.event.triggered=g,t.isPropagationStopped()&&f.addEventListener(g,_e),i[g](),t.isPropagationStopped()&&f.removeEventListener(g,_e),S.event.triggered=void 0,a&&(i[h]=a)),t.result}},simulate:function(t,e,i){var n=S.extend(new S.Event,i,{type:t,isSimulated:!0});S.event.trigger(n,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return S.event.trigger(t,e,i,!0)}}),m.focusin||S.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=J.access(n,e);r||n.addEventListener(t,i,!0),J.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=J.access(n,e)-1;r?J.access(n,e,r):(n.removeEventListener(t,i,!0),J.remove(n,e))}}}));var ke=n.location,Se={guid:Date.now()},Ce=/\?/;S.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||S.error("Invalid XML: "+(i?S.map(i.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Te=/\[\]$/,Pe=/\r?\n/g,je=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;function Ae(t,e,i,n){var r;if(Array.isArray(e))S.each(e,(function(e,r){i||Te.test(t)?n(t,r):Ae(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)}));else if(i||"object"!==_(e))n(t,e);else for(r in e)Ae(t+"["+r+"]",e[r],i,n)}S.param=function(t,e){var i,n=[],r=function(t,e){var i=v(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,(function(){r(this.name,this.value)}));else for(i in t)Ae(i,t[i],e,r);return n.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Oe.test(this.nodeName)&&!je.test(t)&&(this.checked||!mt.test(t))})).map((function(t,e){var i=S(this).val();return null==i?null:Array.isArray(i)?S.map(i,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:i.replace(Pe,"\r\n")}})).get()}});var Ee=/%20/g,Me=/#.*$/,Ie=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:GET|HEAD)$/,Fe=/^\/\//,Re={},Le={},Ne="*/".concat("*"),ze=b.createElement("a");function Be(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(L)||[];if(v(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function We(t,e,i,n){var r={},o=t===Le;function s(a){var l;return r[a]=!0,S.each(t[a]||[],(function(t,a){var h=a(e,i,n);return"string"!=typeof h||o||r[h]?o?!(l=h):void 0:(e.dataTypes.unshift(h),s(h),!1)})),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function qe(t,e){var i,n,r=S.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&S.extend(!0,t,n),t}ze.href=ke.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,S.ajaxSettings),e):qe(S.ajaxSettings,t)},ajaxPrefilter:Be(Re),ajaxTransport:Be(Le),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,s,a,l,h,c,u,f,p=S.ajaxSetup({},e),d=p.context||p,g=p.context&&(d.nodeType||d.jquery)?S(d):S.event,m=S.Deferred(),v=S.Callbacks("once memory"),y=p.statusCode||{},w={},x={},_="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(h){if(!s)for(s={};e=De.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?o:null},setRequestHeader:function(t,e){return null==h&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==h&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)k.always(t[k.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return i&&i.abort(e),C(0,e),this}};if(m.promise(k),p.url=((t||p.url||ke.href)+"").replace(Fe,ke.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=ze.protocol+"//"+ze.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=S.param(p.data,p.traditional)),We(Re,p,e,k),h)return k;for(u in(c=S.event&&p.global)&&0==S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!He.test(p.type),r=p.url.replace(Me,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ee,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Ce.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ie,"$1"),f=(Ce.test(r)?"&":"?")+"_="+Se.guid+++f),p.url=r+f),p.ifModified&&(S.lastModified[r]&&k.setRequestHeader("If-Modified-Since",S.lastModified[r]),S.etag[r]&&k.setRequestHeader("If-None-Match",S.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ne+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(d,k,p)||h))return k.abort();if(_="abort",v.add(p.complete),k.done(p.success),k.fail(p.error),i=We(Le,p,e,k)){if(k.readyState=1,c&&g.trigger("ajaxSend",[k,p]),h)return k;p.async&&p.timeout>0&&(a=n.setTimeout((function(){k.abort("timeout")}),p.timeout));try{h=!1,i.send(w,C)}catch(t){if(h)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,s,l){var u,f,b,w,x,_=e;h||(h=!0,a&&n.clearTimeout(a),i=void 0,o=l||"",k.readyState=t>0?4:0,u=t>=200&&t<300||304===t,s&&(w=function(t,e,i){for(var n,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,k,s)),!u&&S.inArray("script",p.dataTypes)>-1&&S.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(t,e,i,n){var r,o,s,a,l,h={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)h[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=h[l+" "+o]||h["* "+o]))for(r in h)if((a=r.split(" "))[1]===o&&(s=h[l+" "+a[0]]||h["* "+a[0]])){!0===s?s=h[r]:!0!==h[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,w,k,u),u?(p.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(S.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(S.etag[r]=x)),204===t||"HEAD"===p.type?_="nocontent":304===t?_="notmodified":(_=w.state,f=w.data,u=!(b=w.error))):(b=_,!t&&_||(_="error",t<0&&(t=0))),k.status=t,k.statusText=(e||_)+"",u?m.resolveWith(d,[f,_,k]):m.rejectWith(d,[k,_,b]),k.statusCode(y),y=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[k,p,u?f:b]),v.fireWith(d,[k,_]),c&&(g.trigger("ajaxComplete",[k,p]),--S.active||S.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,i){return S.get(t,e,i,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,i,n,r){return v(i)&&(r=r||n,n=i,i=void 0),S.ajax(S.extend({url:t,type:e,dataType:r,data:i,success:n},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,i){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,i)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(i){S(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},$e=S.ajaxSettings.xhr();m.cors=!!$e&&"withCredentials"in $e,m.ajax=$e=!!$e,S.ajaxTransport((function(t){var e,i;if(m.cors||$e&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ue[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=S("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ve,Qe=[],Ye=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Qe.pop()||S.expando+"_"+Se.guid++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",(function(t,e,i){var r,o,s,a=!1!==t.jsonp&&(Ye.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ye,"$1"+r):!1!==t.jsonp&&(t.url+=(Ce.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||S.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always((function(){void 0===o?S(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,Qe.push(r)),s&&v(o)&&o(s[0]),s=o=void 0})),"script"})),m.createHTMLDocument=((Ve=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ve.childNodes.length),S.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(m.createHTMLDocument?((n=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(n)):e=b),o=!i&&[],(r=E.exec(t))?[e.createElement(r[1])]:(r=kt([t],e,o),o&&o.length&&S(o).remove(),S.merge([],r.childNodes)));var n,r,o},S.fn.load=function(t,e,i){var n,r,o,s=this,a=t.indexOf(" ");return a>-1&&(n=ve(t.slice(a)),t=t.slice(0,a)),v(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&S.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(n?S("<div>").append(S.parseHTML(t)).find(n):t)})).always(i&&function(t,e){s.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,(function(e){return t===e.elem})).length},S.offset={setOffset:function(t,e,i){var n,r,o,s,a,l,h=S.css(t,"position"),c=S(t),u={};"static"===h&&(t.style.position="relative"),a=c.offset(),o=S.css(t,"top"),l=S.css(t,"left"),("absolute"===h||"fixed"===h)&&(o+l).indexOf("auto")>-1?(s=(n=c.position()).top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,i,S.extend({},a))),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+r),"using"in e?e.using.call(t,u):c.css(u)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){S.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===S.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),r.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-S.css(n,"marginTop",!0),left:e.left-r.left-S.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||st}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;S.fn[t]=function(n){return $(this,(function(t,n,r){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):t[n]=r}),t,n,arguments.length)}})),S.each(["top","left"],(function(t,e){S.cssHooks[e]=$t(m.pixelPosition,(function(t,i){if(i)return i=Ut(t,e),zt.test(i)?S(t).position()[e]+"px":i}))})),S.each({Height:"height",Width:"width"},(function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){S.fn[n]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===o?"margin":"border");return $(this,(function(e,i,r){var o;return y(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?S.css(e,i,a):S.style(e,i,r,a)}),e,s?r:void 0,s)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){S.fn[e]=function(t){return this.on(e,t)}})),S.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.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(t,e){S.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var Xe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),v(t))return n=a.call(arguments,2),r=function(){return t.apply(e||this,n.concat(a.call(arguments)))},r.guid=t.guid=t.guid||S.guid++,r},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=v,S.isWindow=y,S.camelCase=X,S.type=_,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(Xe,"")},void 0===(i=function(){return S}.apply(e,[]))||(t.exports=i);var Ge=n.jQuery,Ze=n.$;return S.noConflict=function(t){return n.$===S&&(n.$=Ze),t&&n.jQuery===S&&(n.jQuery=Ge),S},void 0===r&&(n.jQuery=n.$=S),S}))},1989:function(t,e,i){var n=i(1789),r=i(401),o=i(7667),s=i(1327),a=i(1866);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},8407:function(t,e,i){var n=i(7040),r=i(4125),o=i(2117),s=i(7518),a=i(3399);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},7071:function(t,e,i){var n=i(852)(i(5639),"Map");t.exports=n},3369:function(t,e,i){var n=i(4785),r=i(6415),o=i(6e3),s=i(9916),a=i(5265);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},2705:function(t,e,i){var n=i(5639).Symbol;t.exports=n},9932:function(t){t.exports=function(t,e){for(var i=-1,n=null==t?0:t.length,r=Array(n);++i<n;)r[i]=e(t[i],i,t);return r}},4865:function(t,e,i){var n=i(9465),r=i(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){var s=t[e];o.call(t,e)&&r(s,i)&&(void 0!==i||e in t)||n(t,e,i)}},8470:function(t,e,i){var n=i(7813);t.exports=function(t,e){for(var i=t.length;i--;)if(n(t[i][0],e))return i;return-1}},9465:function(t,e,i){var n=i(8777);t.exports=function(t,e,i){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},7786:function(t,e,i){var n=i(1811),r=i(327);t.exports=function(t,e){for(var i=0,o=(e=n(e,t)).length;null!=t&&i<o;)t=t[r(e[i++])];return i&&i==o?t:void 0}},4239:function(t,e,i){var n=i(2705),r=i(9607),o=i(2333),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?r(t):o(t)}},8458:function(t,e,i){var n=i(3560),r=i(5346),o=i(3218),s=i(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,h=Object.prototype,c=l.toString,u=h.hasOwnProperty,f=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||r(t))&&(n(t)?f:a).test(s(t))}},611:function(t,e,i){var n=i(4865),r=i(1811),o=i(5776),s=i(3218),a=i(327);t.exports=function(t,e,i,l){if(!s(t))return t;for(var h=-1,c=(e=r(e,t)).length,u=c-1,f=t;null!=f&&++h<c;){var p=a(e[h]),d=i;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(h!=u){var g=f[p];void 0===(d=l?l(g,p,f):void 0)&&(d=s(g)?g:o(e[h+1])?[]:{})}n(f,p,d),f=f[p]}return t}},531:function(t,e,i){var n=i(2705),r=i(9932),o=i(1469),s=i(3448),a=n?n.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return r(e,t)+"";if(s(e))return l?l.call(e):"";var i=e+"";return"0"==i&&1/e==-Infinity?"-0":i}},1811:function(t,e,i){var n=i(1469),r=i(5403),o=i(5514),s=i(9833);t.exports=function(t,e){return n(t)?t:r(t,e)?[t]:o(s(t))}},4429:function(t,e,i){var n=i(5639)["__core-js_shared__"];t.exports=n},8777:function(t,e,i){var n=i(852),r=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},1957:function(t,e,i){var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;t.exports=n},5050:function(t,e,i){var n=i(7019);t.exports=function(t,e){var i=t.__data__;return n(e)?i["string"==typeof e?"string":"hash"]:i.map}},852:function(t,e,i){var n=i(8458),r=i(7801);t.exports=function(t,e){var i=r(t,e);return n(i)?i:void 0}},9607:function(t,e,i){var n=i(2705),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),i=t[a];try{t[a]=void 0;var n=!0}catch(t){}var r=s.call(t);return n&&(e?t[a]=i:delete t[a]),r}},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,i){var n=i(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,i){var n=i(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return r.call(e,t)?e[t]:void 0}},1327:function(t,e,i){var n=i(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:r.call(e,t)}},1866:function(t,e,i){var n=i(4536);t.exports=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,i){var n=typeof t;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<i}},5403:function(t,e,i){var n=i(1469),r=i(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!r(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,i){var n,r=i(4429),o=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,i){var n=i(8470),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,i=n(e,t);return!(i<0)&&(i==e.length-1?e.pop():r.call(e,i,1),--this.size,!0)}},2117:function(t,e,i){var n=i(8470);t.exports=function(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]}},7518:function(t,e,i){var n=i(8470);t.exports=function(t){return n(this.__data__,t)>-1}},3399:function(t,e,i){var n=i(8470);t.exports=function(t,e){var i=this.__data__,r=n(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}},4785:function(t,e,i){var n=i(1989),r=i(8407),o=i(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}},6415:function(t,e,i){var n=i(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,i){var n=i(5050);t.exports=function(t){return n(this,t).get(t)}},9916:function(t,e,i){var n=i(5050);t.exports=function(t){return n(this,t).has(t)}},5265:function(t,e,i){var n=i(5050);t.exports=function(t,e){var i=n(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}},4523:function(t,e,i){var n=i(8306);t.exports=function(t){var e=n(t,(function(t){return 500===i.size&&i.clear(),t})),i=e.cache;return e}},4536:function(t,e,i){var n=i(852)(Object,"create");t.exports=n},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:function(t,e,i){var n=i(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();t.exports=o},5514:function(t,e,i){var n=i(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,i,n,r){e.push(n?r.replace(o,"$1"):i||t)})),e}));t.exports=s},327:function(t,e,i){var n=i(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},7361:function(t,e,i){var n=i(7786);t.exports=function(t,e,i){var r=null==t?void 0:n(t,e);return void 0===r?i:r}},1469:function(t){var e=Array.isArray;t.exports=e},3560:function(t,e,i){var n=i(4239),r=i(3218);t.exports=function(t){if(!r(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3448:function(t,e,i){var n=i(4239),r=i(7005);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==n(t)}},8306:function(t,e,i){var n=i(3369);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=t.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(r.Cache||n),i}r.Cache=n,t.exports=r},6968:function(t,e,i){var n=i(611);t.exports=function(t,e,i){return null==t?t:n(t,e,i)}},9833:function(t,e,i){var n=i(531);t.exports=function(t){return null==t?"":n(t)}},7574:function(t,e,i){"use strict";var n=i(9995),r=function(t,e){if(e&&e.bbox)return{leaf:e,x:e.bbox[0],y:e.bbox[1],w:e.bbox[2]-e.bbox[0],h:e.bbox[3]-e.bbox[1]};for(var i=t.length,n=0,r=new Array(i);n<i;)r[n]=[t[n][0],t[n][1]],n++;var o=r[0];i=r.length,n=1;for(var s={min:[].concat(o),max:[].concat(o)};n<i;)r[n][0]<s.min[0]?s.min[0]=r[n][0]:r[n][0]>s.max[0]&&(s.max[0]=r[n][0]),r[n][1]<s.min[1]?s.min[1]=r[n][1]:r[n][1]>s.max[1]&&(s.max[1]=r[n][1]),n++;var a={x:s.min[0],y:s.min[1],w:s.max[0]-s.min[0],h:s.max[1]-s.min[1]};return e&&(a.leaf=e),a},o={point:function(t,e){return e.insertSubtree({x:t.geometry.coordinates[0],y:t.geometry.coordinates[1],w:0,h:0,leaf:t},e.root)},multiPointLineString:function(t,e){return e.insertSubtree(r(t.geometry.coordinates,t),e.root)},multiLineStringPolygon:function(t,e){return e.insertSubtree(r(Array.prototype.concat.apply([],t.geometry.coordinates),t),e.root)},multiPolygon:function(t,e){return e.insertSubtree(r(Array.prototype.concat.apply([],Array.prototype.concat.apply([],t.geometry.coordinates)),t),e.root)},makeRec:function(t){return n(t.x,t.y,t.w,t.h)},geometryCollection:function(t,e){if(t.bbox)return e.insertSubtree({leaf:t,x:t.bbox[0],y:t.bbox[1],w:t.bbox[2]-t.bbox[0],h:t.bbox[3]-t.bbox[1]},e.root);for(var i,n=t.geometry.geometries,s=0,a=n.length,l=[];s<a;){switch((i=n[s]).type){case"Point":l.push(o.makeRec({x:i.coordinates[0],y:i.coordinates[1],w:0,h:0}));break;case"MultiPoint":case"LineString":l.push(o.makeRec(r(i.coordinates)));break;case"MultiLineString":case"Polygon":l.push(o.makeRec(r(Array.prototype.concat.apply([],i.coordinates))));break;case"MultiPolygon":l.push(o.makeRec(r(Array.prototype.concat.apply([],Array.prototype.concat.apply([],i.coordinates)))));break;case"GeometryCollection":a=(n=n.concat(i.geometries)).length}s++}var h=l[0];for(s=1,a=l.length;s<a;)h.expand(l[s]),s++;return e.insertSubtree({leaf:t,x:h.x(),y:h.y(),h:h.h(),w:h.w()},e.root)}};e.geoJSON=function(t){var e,i,n=this;if(Array.isArray(t))e=t.slice();else if(t.features&&Array.isArray(t.features))e=t.features.slice();else{if(!(t instanceof Object))throw"this isn't what we're looking for";e=[t]}for(var r=e.length,s=0;s<r;){if("Feature"===(i=e[s]).type)switch(i.geometry.type){case"Point":o.point(i,n);break;case"MultiPoint":case"LineString":o.multiPointLineString(i,n);break;case"MultiLineString":case"Polygon":o.multiLineStringPolygon(i,n);break;case"MultiPolygon":o.multiPolygon(i,n);break;case"GeometryCollection":o.geometryCollection(i,n)}s++}},e.bbox=function(){var t,e,i,n;switch(arguments.length){case 1:t=arguments[0][0][0],e=arguments[0][0][1],i=arguments[0][1][0],n=arguments[0][1][1];break;case 2:t=arguments[0][0],e=arguments[0][1],i=arguments[1][0],n=arguments[1][1];break;case 4:t=arguments[0],e=arguments[1],i=arguments[2],n=arguments[3]}return this.search({x:t,y:e,w:i-t,h:n-e})}},702:function(t,e,i){"use strict";var n=i(623),r=i(7574);n.prototype.bbox=r.bbox,n.prototype.geoJSON=r.geoJSON,n.Rectangle=i(9995),t.exports=n},9995:function(t){"use strict";function e(t,i,n,r){if(!(this instanceof e))return new e(t,i,n,r);var o,s,a;t.x?(n=t.w,r=t.h,i=t.y,0!==t.w&&!t.w&&t.x2?(n=t.x2-t.x,r=t.y2-t.y):(n=t.w,r=t.h),t=t.x,o=t+n,s=i+r,a=!(r+n)):(o=t+n,s=i+r,a=!(r+n)),this.x1=this.x=function(){return t},this.y1=this.y=function(){return i},this.x2=function(){return o},this.y2=function(){return s},this.w=function(){return n},this.h=function(){return r},this.p=function(){return a},this.overlap=function(e){return a||e.p()?t<=e.x2()&&o>=e.x()&&i<=e.y2()&&s>=e.y():t<e.x2()&&o>e.x()&&i<e.y2()&&s>e.y()},this.expand=function(e){var a,l,h=e.x(),c=e.y(),u=e.x2(),f=e.y2();return a=t>h?h:t,l=i>c?c:i,n=o>u?o-a:u-a,r=s>f?s-l:f-l,t=a,i=l,this}}e.overlapRectangle=function(t,e){return 0===t.h&&0===t.w||0===e.h&&0===e.w?t.x<=e.x+e.w&&t.x+t.w>=e.x&&t.y<=e.y+e.h&&t.y+t.h>=e.y:t.x<e.x+e.w&&t.x+t.w>e.x&&t.y<e.y+e.h&&t.y+t.h>e.y},e.containsRectangle=function(t,e){return t.x+t.w<=e.x+e.w&&t.x>=e.x&&t.y+t.h<=e.y+e.h&&t.y>=e.y},e.expandRectangle=function(t,e){var i,n,r=t.x+t.w,o=e.x+e.w,s=t.y+t.h,a=e.y+e.h;return i=t.x>e.x?e.x:t.x,n=t.y>e.y?e.y:t.y,t.w=r>o?r-i:o-i,t.h=s>a?s-n:a-n,t.x=i,t.y=n,t},e.makeMBR=function(t,i){if(!t.length)return{x:0,y:0,w:0,h:0};(i=i||{}).x=t[0].x,i.y=t[0].y,i.w=t[0].w,i.h=t[0].h;for(var n=1,r=t.length;n<r;n++)e.expandRectangle(i,t[n]);return i},e.squarifiedRatio=function(t,e,i){var n=(t+e)/2,r=t*e;return r*i/(r/(n*n))},t.exports=e},623:function(t,e,i){"use strict";var n=i(9995);function r(t){if(!(this instanceof r))return new r(t);var e=3,i=6;isNaN(t)||(e=Math.floor(t/2),i=t);var o={x:0,y:0,w:0,h:0,id:"root",nodes:[]};this.root=o;var s=function(t){for(var e,i=t.slice(),n=[];i.length;)(e=i.pop()).nodes?i=i.concat(e.nodes):e.leaf&&n.push(e);return n},a=function(t,i,r){var o,a,l,h=[],c=[],p=[];if(!t||!n.overlapRectangle(t,r))return p;var d={x:t.x,y:t.y,w:t.w,h:t.h,target:i};for(c.push(r.nodes.length),h.push(r);h.length>0;){if(o=h.pop(),a=c.pop()-1,"target"in d)for(;a>=0;){if(l=o.nodes[a],n.overlapRectangle(d,l)){if(d.target&&"leaf"in l&&l.leaf===d.target||!d.target&&("leaf"in l||n.containsRectangle(l,d))){p="nodes"in l?s(o.nodes.splice(a,1)):o.nodes.splice(a,1),n.makeMBR(o.nodes,o),delete d.target;break}"nodes"in l&&(c.push(a),h.push(o),o=l,a=l.nodes.length)}a--}else if("nodes"in d){o.nodes.splice(a+1,1),o.nodes.length>0&&n.makeMBR(o.nodes,o);for(var g=0;g<d.nodes.length;g++)f(d.nodes[g],o);d.nodes=[],0===h.length&&o.nodes.length<=1?(d.nodes=u(o,!0,d.nodes,o),o.nodes=[],h.push(o),c.push(1)):h.length>0&&o.nodes.length<e?(d.nodes=u(o,!0,d.nodes,o),o.nodes=[]):delete d.nodes}else n.makeMBR(o.nodes,o);1}return p},l=function(t){for(var e=c(t);t.length>0;)h(t,e[0],e[1]);return e},h=function(t,i,r){for(var o,s,a,l=n.squarifiedRatio(i.w,i.h,i.nodes.length+1),h=n.squarifiedRatio(r.w,r.h,r.nodes.length+1),c=t.length-1;c>=0;c--){var u=t[c],f={};f.x=Math.min(i.x,u.x),f.y=Math.min(i.y,u.y),f.w=Math.max(i.x+i.w,u.x+u.w)-f.x,f.h=Math.max(i.y+i.h,u.y+u.h)-f.y;var p=Math.abs(n.squarifiedRatio(f.w,f.h,i.nodes.length+2)-l),d={};d.x=Math.min(r.x,u.x),d.y=Math.min(r.y,u.y),d.w=Math.max(r.x+r.w,u.x+u.w)-d.x,d.h=Math.max(r.y+r.h,u.y+u.h)-d.y;var g=Math.abs(n.squarifiedRatio(d.w,d.h,r.nodes.length+2)-h);(!s||!o||Math.abs(g-p)<o)&&(s=c,o=Math.abs(g-p),a=g<p?r:i)}var m=t.splice(s,1)[0];i.nodes.length+t.length+1<=e?(i.nodes.push(m),n.expandRectangle(i,m)):r.nodes.length+t.length+1<=e?(r.nodes.push(m),n.expandRectangle(r,m)):(a.nodes.push(m),n.expandRectangle(a,m))},c=function(t){for(var e,i,n=t.length-1,r=0,o=t.length-1,s=0,a=t.length-2;a>=0;a--){var l=t[a];l.x>t[r].x?r=a:l.x+l.w<t[n].x+t[n].w&&(n=a),l.y>t[s].y?s=a:l.y+l.h<t[o].y+t[o].h&&(o=a)}return Math.abs(t[n].x+t[n].w-t[r].x)>Math.abs(t[o].y+t[o].h-t[s].y)?n>r?(e=t.splice(n,1)[0],i=t.splice(r,1)[0]):(i=t.splice(r,1)[0],e=t.splice(n,1)[0]):o>s?(e=t.splice(o,1)[0],i=t.splice(s,1)[0]):(i=t.splice(s,1)[0],e=t.splice(o,1)[0]),[{x:e.x,y:e.y,w:e.w,h:e.h,nodes:[e]},{x:i.x,y:i.y,w:i.w,h:i.h,nodes:[i]}]},u=function(t,e,i,r){var o=[];if(!n.overlapRectangle(t,r))return i;for(o.push(r.nodes);o.length>0;)for(var s=o.pop(),a=s.length-1;a>=0;a--){var l=s[a];n.overlapRectangle(t,l)&&("nodes"in l?o.push(l.nodes):"leaf"in l&&(e?i.push(l):i.push(l.leaf)))}return i},f=function(t,e){var r;if(0===e.nodes.length)return e.x=t.x,e.y=t.y,e.w=t.w,e.h=t.h,void e.nodes.push(t);for(var o,s=function(t,e){var i,r=-1,o=[],s=!0;o.push(e);for(var a=e.nodes;s||-1!==r;){s?s=!1:(o.push(a[r]),a=a[r].nodes,r=-1);for(var l=a.length-1;l>=0;l--){var h=a[l];if("leaf"in h){r=-1;break}var c=n.squarifiedRatio(h.w,h.h,h.nodes.length+1),u=Math.max(h.x+h.w,t.x+t.w)-Math.min(h.x,t.x),f=Math.max(h.y+h.h,t.y+t.h)-Math.min(h.y,t.y),p=n.squarifiedRatio(u,f,h.nodes.length+2);(r<0||Math.abs(p-c)<i)&&(i=Math.abs(p-c),r=l)}}return o}(t,e),a=t;s.length>0;){if(r&&"nodes"in r&&0===r.nodes.length){o=r,r=s.pop();for(var h=0;h<r.nodes.length;h++)if(r.nodes[h]===o||0===r.nodes[h].nodes.length){r.nodes.splice(h,1);break}}else r=s.pop();if("leaf"in a||"nodes"in a||Array.isArray(a)){if(Array.isArray(a)){for(var c=0;c<a.length;c++)n.expandRectangle(r,a[c]);r.nodes=r.nodes.concat(a)}else n.expandRectangle(r,a),r.nodes.push(a);if(r.nodes.length<=i)a={x:r.x,y:r.y,w:r.w,h:r.h};else{var u=l(r.nodes);a=u,s.length<1&&(r.nodes.push(u[0]),s.push(r),a=u[1])}}else n.expandRectangle(r,a),a={x:r.x,y:r.y,w:r.w,h:r.h}}};this.insertSubtree=f,this.getTree=function(){return o},this.setTree=function(t,e){return e||(e=o),n=t,(i=e).nodes=n.nodes,i.x=n.x,i.y=n.y,i.w=n.w,i.h=n.h,i;var i,n},this.search=function(t,e,i){return u(t,e,i=i||[],o)};this.remove=function(t,e){return e&&"function"!=typeof e?function(t,e){return a(t,e,o)}(t,e):function(t){for(var e,i=1,n=[];i>0;)i=(e=a(t,!1,o)).length,n=n.concat(e);return n}(t)},this.insert=function(t,e){return f({x:t.x,y:t.y,w:t.w,h:t.h,leaf:e},o)}}r.prototype.toJSON=function(t){return JSON.stringify(this.root,!1,t)},r.fromJSON=function(t){var e=new r;return e.setTree(JSON.parse(t)),e},t.exports=r,"function"!=typeof Array.isArray&&(Array.isArray=function(t){return"object"==typeof t&&"[object Array]"==={}.toString.call(t)})},3473:function(t,e,i){var n={"./Controller.js":7145,"./Controller/Sequence.js":8455,"./Controller/Stranded.js":7905,"./Model.js":4637,"./Model/File.js":2122,"./Model/File/BAM.js":8350,"./Model/File/BED.js":4475,"./Model/File/GFF.js":7699,"./Model/File/VCF.js":2743,"./Model/File/WIG.js":9486,"./Model/Gene.js":432,"./Model/Gene/Ensembl.js":2865,"./Model/Sequence.js":2051,"./Model/Sequence/Ensembl.js":8583,"./Model/Sequence/Fasta.js":8970,"./Model/SequenceVariation.js":4914,"./Model/Stranded.js":6637,"./Model/Transcript.js":9875,"./Model/Transcript/Ensembl.js":3814,"./View.js":4112,"./View/Gene.js":5600,"./View/Gene/Ensembl.js":1766,"./View/Sequence.js":2703,"./View/SequenceVariation.js":3224,"./View/Transcript.js":521,"./View/Transcript/Ensembl.js":6006,"./library/Chromosome.js":5337,"./library/File.js":3911,"./library/File/BAM.js":4448,"./library/File/BED.js":4149,"./library/File/BIGBED.js":617,"./library/File/BIGWIG.js":9658,"./library/File/GFF.js":8428,"./library/File/VCF.js":1055,"./library/File/WIG.js":8915,"./library/Gene.js":1839,"./library/Graph.js":8944,"./library/Graph/Bar.js":4176,"./library/Graph/Line.js":4989,"./library/HighlightRegion.js":7110,"./library/Legend.js":2694,"./library/Scalebar.js":6427,"./library/Scaleline.js":7450,"./library/Static.js":4925,"./library/dbSNP.js":7371};function r(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id=3473},7505:function(t,e,i){var n={"./grch37":[7842,842],"./grch37.js":[7842,842],"./grch38":[2893,893],"./grch38.js":[2893,893]};function r(t){if(!i.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],r=e[0];return i.e(e[1]).then((function(){return i(r)}))}r.keys=function(){return Object.keys(n)},r.id=7505,t.exports=r},1008:function(){var t;(t=jQuery).fn.mousehold=function(e,i){if(e&&"function"==typeof e&&(i=e,e=100),i&&"function"==typeof i){var n=0,r=0;return this.each((function(){t(this).mousedown((function(){r=1;var t=0,o=this;n=setInterval((function(){t++,i.call(o,t),r=2}),e)}));var o=function(){clearInterval(n),1==r&&i.call(this,1),r=0};t(this).mouseout(o),t(this).mouseup(o)}))}}},9813:function(){!function(t){var e=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var i=e.length;i;)t.event.fixHooks[e[--i]]=t.event.mouseHooks;function n(e){var i=e||window.event,n=[].slice.call(arguments,1),r=0,o=0,s=0;return(e=t.event.fix(i)).type="mousewheel",i.wheelDelta&&(r=i.wheelDelta/120),i.detail&&(r=-i.detail/3),s=r,void 0!==i.axis&&i.axis===i.HORIZONTAL_AXIS&&(s=0,o=-1*r),void 0!==i.wheelDeltaY&&(s=i.wheelDeltaY/120),void 0!==i.wheelDeltaX&&(o=-1*i.wheelDeltaX/120),n.unshift(e,r,o,s),(t.event.dispatch||t.event.handle).apply(this,n)}t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=e.length;t;)this.addEventListener(e[--t],n,!1);else this.onmousewheel=n},teardown:function(){if(this.removeEventListener)for(var t=e.length;t;)this.removeEventListener(e[--t],n,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery)},948:function(){!function(t){function e(t,e){return"function"==typeof t?t.call(e):t}function i(e,i){this.$element=t(e),this.options=i,this.enabled=!0,this.fixTitle()}i.prototype={show:function(){var i=this.getTitle();if(i&&this.enabled){var n=this.tip();n.find(".tipsy-inner")[this.options.html?"html":"text"](i),n[0].className="tipsy",n.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var r,o=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),s=n[0].offsetWidth,a=n[0].offsetHeight,l=e(this.options.gravity,this.$element[0]);switch(l.charAt(0)){case"n":r={top:o.top+o.height+this.options.offset,left:o.left+o.width/2-s/2};break;case"s":r={top:o.top-a-this.options.offset,left:o.left+o.width/2-s/2};break;case"e":r={top:o.top+o.height/2-a/2,left:o.left-s-this.options.offset};break;case"w":r={top:o.top+o.height/2-a/2,left:o.left+o.width+this.options.offset}}2==l.length&&("w"==l.charAt(1)?r.left=o.left+o.width/2-15:r.left=o.left+o.width/2-s+15),n.css(r).addClass("tipsy-"+l),n.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+l.charAt(0),this.options.className&&n.addClass(e(this.options.className,this.$element[0])),this.options.fade?n.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):n.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut((function(){t(this).remove()})):this.tip().remove()},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title")},getTitle:function(){var t,e=this.$element,i=this.options;return this.fixTitle(),"string"==typeof(i=this.options).title?t=e.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(t=i.title.call(e[0])),(t=(""+t).replace(/(^\s*|\s*$)/,""))||i.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(e){if(!0===e)return this.data("tipsy");if("string"==typeof e){var n=this.data("tipsy");return n&&n[e](),this}function r(n){var r=t.data(n,"tipsy");return r||(r=new i(n,t.fn.tipsy.elementOptions(n,e)),t.data(n,"tipsy",r)),r}if((e=t.extend({},t.fn.tipsy.defaults,e)).live||this.each((function(){r(this)})),"manual"!=e.trigger){var o=e.live?"live":"bind",s="hover"==e.trigger?"mouseenter":"focus",a="hover"==e.trigger?"mouseleave":"blur";this[o](s,(function(){var t=r(this);t.hoverState="in",0==e.delayIn?t.show():(t.fixTitle(),setTimeout((function(){"in"==t.hoverState&&t.show()}),e.delayIn))}))[o](a,(function(){var t=r(this);t.hoverState="out",0==e.delayOut?t.hide():setTimeout((function(){"out"==t.hoverState&&t.hide()}),e.delayOut)}))}return this},t.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},t.fn.tipsy.revalidate=function(){t(".tipsy").each((function(){var e=t.data(this,"tipsy-pointee");e&&function(t){for(;t=t.parentNode;)if(t==document)return!0;return!1}(e)||t(this).remove()}))},t.fn.tipsy.elementOptions=function(e,i){return t.metadata?t.extend({},i,t(e).metadata()):i},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(e,i){return function(){var n={ns:i[0],ew:i.length>1&&i[1]},r=t(document).scrollTop()+e,o=t(document).scrollLeft()+e,s=t(this);return s.offset().top<r&&(n.ns="n"),s.offset().left<o&&(n.ew="w"),t(window).width()+t(document).scrollLeft()-s.offset().left<e&&(n.ew="e"),t(window).height()+t(document).scrollTop()-s.offset().top<e&&(n.ns="s"),n.ns+(n.ew?n.ew:"")}}}(jQuery)},6772:function(t,e,i){var n={"./jquery.mousehold.js":1008,"./jquery.mousewheel.js":9813,"./jquery.tipsy.js":948};function r(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id=6772},1152:function(t,e,i){var n={"./controlPanel":[1804,804,729],"./controlPanel.js":[1804,804,729],"./fileDrop":[5014,469],"./fileDrop.js":[5014,469],"./focusRegion":[58,804,952],"./focusRegion.js":[58,804,952],"./fullscreen":[1398,804,129],"./fullscreen.js":[1398,804,129],"./karyotype":[4394,394],"./karyotype.js":[4394,394],"./resizer":[2530,530],"./resizer.js":[2530,530],"./tooltips":[3968,804,949],"./tooltips.js":[3968,804,949],"./trackControls":[4232,232],"./trackControls.js":[4232,232]};function r(t){if(!i.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],r=e[0];return Promise.all(e.slice(1).map(i.e)).then((function(){return i(r)}))}r.keys=function(){return Object.keys(n)},r.id=1152,t.exports=r}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return r[t].call(i.exports,i,i.exports,s),i.exports}s.m=r,s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},s.d=function(t,e){for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce((function(e,i){return s.f[i](t,e),e}),[]))},s.u=function(t){return t+".genoverse.js"},s.miniCssF=function(t){return t+".css"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="genoverse:",s.l=function(i,n,r,o){if(t[i])t[i].push(n);else{var a,l;if(void 0!==r)for(var h=document.getElementsByTagName("script"),c=0;c<h.length;c++){var u=h[c];if(u.getAttribute("src")==i||u.getAttribute("data-webpack")==e+r){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",e+r),a.src=i),t[i]=[n];var f=function(e,n){a.onerror=a.onload=null,clearTimeout(p);var r=t[i];if(delete t[i],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(t){return t(n)})),e)return e(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");i.length&&(t=i[i.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t}(),i=function(t){return new Promise((function(e,i){var n=s.miniCssF(t),r=s.p+n;if(function(t,e){for(var i=document.getElementsByTagName("link"),n=0;n<i.length;n++){var r=(s=i[n]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===t||r===e))return s}var o=document.getElementsByTagName("style");for(n=0;n<o.length;n++){var s;if((r=(s=o[n]).getAttribute("data-href"))===t||r===e)return s}}(n,r))return e();!function(t,e,i,n){var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.onerror=r.onload=function(o){if(r.onerror=r.onload=null,"load"===o.type)i();else{var s=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.href||e,l=new Error("Loading CSS chunk "+t+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,r.parentNode.removeChild(r),n(l)}},r.href=e,document.head.appendChild(r)}(t,r,e,i)}))},n={179:0},s.f.miniCss=function(t,e){n[t]?e.push(n[t]):0!==n[t]&&{129:1,166:1,216:1,232:1,394:1,469:1,530:1,547:1,729:1,949:1,952:1}[t]&&e.push(n[t]=i(t).then((function(){n[t]=0}),(function(e){throw delete n[t],e})))},function(){var t={179:0};s.f.j=function(e,i){var n=s.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else if(/^(216|729)$/.test(e))t[e]=0;else{var r=new Promise((function(i,r){n=t[e]=[i,r]}));i.push(n[2]=r);var o=s.p+s.u(e),a=new Error;s.l(o,(function(i){if(s.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}}),"chunk-"+e,e)}};var e=function(e,i){var n,r,o=i[0],a=i[1],l=i[2],h=0;if(o.some((function(e){return 0!==t[e]}))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)l(s)}for(e&&e(i);h<o.length;h++)r=o[h],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0},i=self.webpackChunkgenoverse=self.webpackChunkgenoverse||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))}(),function(){"use strict";s(9170),s(6992),s(1539),s(8674),s(7922),s(4668),s(7727),s(8783),s(9601),s(9720),s(2479),s(6699),s(3290),s(9826),s(4944),s(3792),s(6535),s(9244),s(285),s(3753),s(1637)}(),function(){"use strict";var t=s(7810),e=s.n(t),i=s(7361),n=s.n(i),r=s(3766),o=s(7110),a=s(2694),l=s(6968),h=s.n(l);function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var u=function(t,e,i,n){n&&h()("default"===i?t:t[i],e.replace("library/","").split("/"),n)},f=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.exclude,r=void 0===n?[]:n,o=e.keys().reduce((function(t,i){var n=i.replace("./","").replace(".js","");if(r&&(r.includes(n)||r.includes(n.replace("library/","").replace(/\//g,"."))))return t;for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];return Object.assign(t,c({},n,e.apply(void 0,[i].concat(s))))}),{});Object.keys(o).sort().forEach((function(e){return Object.keys(o[e]).sort().forEach((function(i){return u(t,e,i,o[e][i])}))}))},p=s(9755),d=s.n(p),g=(s(1822),s(7285),s(1707),s(2526),{$:s.g.$,jQuery:s.g.jQuery});s.g.$=s.g.jQuery=d();var m;try{(m=s(6772)).keys().forEach(m)}finally{s.g.$=g.$,s.g.jQuery=g.jQuery}var v=d(),y=s(2940);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function w(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function x(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?w(Object(i),!0).forEach((function(e){_(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function _(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function k(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||C(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){if(t){if("string"==typeof t)return T(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var P=e().extend({baseURL:void 0,urlParamTemplate:"r=__CHR__:__START__-__END__",width:1e3,longestLabel:30,defaultLength:5e3,defaultScrollDelta:100,tracks:[],highlights:[],plugins:[],dragAction:"scroll",wheelAction:"off",isStatic:!1,saveable:!1,saveKey:"",storageType:"sessionStorage",autoHideMessages:!0,trackAutoHeight:!1,hideEmptyTracks:!0,genome:void 0,useHash:void 0,chr:1,start:1,end:1e6,constructor:function(){var t,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=v;if(this.jQuery=n,!this.supported())return this.die("Your browser does not support this functionality");P.configure();var r=n(i.container);null!==(t=r)&&void 0!==t&&t.length||(r=n("<div>").appendTo("body")),r.addClass("genoverse").data("genoverse",this),Object.entries(i).forEach((function(t){var i=S(t,2),n=i[0],r=i[1];void 0!==r&&(e[n]=r)})),this.container=r,this.eventNamespace=".genoverse.".concat(++P.id),this.events={browser:{},tracks:{}},n.when(this.loadCSS(),this.loadGenome(),this.loadPlugins()).always((function(){(0,y.Z)(e,"Genoverse"),e.init()}))},loadCSS:function(){var t=this.jQuery;return t.when(P.importCSS?s.e(547).then(s.bind(s,5547)):t.Deferred().resolve(),P.importFontAwesome?Promise.all([s.e(216),s.e(166)]).then(s.bind(s,3166)):t.Deferred().resolve())},loadGenome:function(){var t=this;if("string"==typeof this.genome){var e=this.genome.toLowerCase();return s(7505)("./".concat(e)).then((function(i){t.genomeName=t.genome,t.genome=i.default,t.genome||t.die("Unable to load genome ".concat(e))}))}},loadPlugins:function(t){var e,i=this;this.loadedPlugins=this.loadedPlugins||{};var n=(t||this.plugins).map((function(t){return Array.isArray(t)?{name:t[0],conf:t[1]}:{name:t,conf:void 0}})).reduce((function(t,e){return t[e.name]=e,t}),{}),r=function t(e){var r=e.exports.requires,o=e.exports[e.name]||e.exports.plugin;r&&Object.keys(r).forEach((function(e){"requires"!==e&&t({name:e,conf:(n[e]||{}).conf,exports:{plugin:r[e],requires:r.requires}})})),"function"==typeof o&&!0!==i.loadedPlugins[e.name]&&(o.call(i,e.conf||{}),i.container.addClass("gv-".concat(e.name.replace(/([A-Z])/g,"-$1").toLowerCase(),"-plugin")),i.loadedPlugins[e.name]=!0)},o=Object.keys(n).map((function(t){return s(1152)("./".concat(t)).then((function(e){r({name:t,conf:n[t].conf,exports:e.default})}))}));return(e=this.jQuery).when.apply(e,k(o))},init:function(){var t=this.width;this.addDomElements(t),this.addUserEventHandlers(),this.isStatic&&(this.dragAction=this.wheelAction="off",this.urlParamTemplate=!1),this.tracksById={},this.prev={},this.legends={},this.initialLocation={chr:this.chr,start:this.start,end:this.end},this.saveKey=this.saveKey?"genoverse-".concat(this.saveKey):"genoverse",this.urlParamTemplate=this.urlParamTemplate||"",this.useHash="boolean"==typeof this.useHash?this.useHash:"function"!=typeof window.history.pushState,this.textWidth=document.createElement("canvas").getContext("2d").measureText("W").width,this.labelWidth=this.labelContainer.outerWidth(!0)||0,this.width=Math.min(this.width-this.labelWidth,this.wrapper.width()||Infinity),this.paramRegex=this.urlParamTemplate?new RegExp("([?&;])".concat(this.urlParamTemplate.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/(\b(\w+=)?__CHR__(.)?)/,"$2([\\w\\.]+)$3").replace(/(\b(\w+=)?__START__(.)?)/,"$2(\\d+)$3").replace(/(\b(\w+=)?__END__(.)?)/,"$2(\\d+)$3"),"([;&])")):"";var e=this.getCoords();this.chr=e.chr,this.genome&&(this.chromosomeSize=this.genome[this.chr].size),this.canChangeChr=!!this.genome,this.saveable?this.loadConfig():this.addTracks(),this.width>0&&this.setRange(e.start,e.end),this.highlights.length&&this.addHighlights(this.highlights)},loadConfig:function(){var t,e=this;this.defaultTracks=this.jQuery.extend(!0,[],this.tracks);try{t=window[this.storageType].getItem(this.saveKey)}catch(t){}if(t){t=JSON.parse(t);var i=P.getAllTrackTypes(),n=[],r={},o={};this.tracks.forEach((function(t){var i=e.normaliseTrackDefinition(t);i.prototype.id&&(r[i.prototype.id]=i)})),t.forEach((function(t){var o=r[t.id];if(o)s(o,t),o._fromStorage=!0;else if(i[t.namespace]){var a=(o=i[t.namespace]).prototype.id;e.trackIds=e.trackIds||{},e.trackIds[a]=e.trackIds[a]||1,r[a]&&(o=r[a]),s(o,t),n.push(o)}})),this.tracks.forEach((function(t){var i,o=e.normaliseTrackDefinition(t);(!o.prototype.id||null!==(i=r[o.prototype.id])&&void 0!==i&&i._fromStorage)&&n.push(o)})),this.tracks=n,this.savedConfig=o,this.addTracks()}else this.addTracks();function s(t,e){Object.keys(e).forEach((function(i){if("config"===i)o[e.id]=e[i];else{if("height"===i&&(e[i]=parseInt(e[i],10),isNaN(e[i])))return;t.prototype[i]=e[i]}}))}},saveConfig:function(){if(!this._constructing&&this.saveable){var t=[];this.tracks.forEach((function(e){if(e.id&&!(e instanceof a.default)&&!(e instanceof o.default)){var i={id:e.id,namespace:e.namespace,order:e.order,autoHeight:e.autoHeight,height:e.height-(e.initialHeight-e.defaultHeight)};e.config&&(i.config=Object.assign(i.config||{},e.config)),t.push(i)}}));try{window[this.storageType].setItem(this.saveKey,JSON.stringify(t))}catch(t){}}},resetConfig:function(){var t=[];this.tracksById.highlights&&(this.tracksById.highlights.removeHighlights(),t=Object.values(this.tracksById.highlights.prop("featuresById")));try{window[this.storageType].removeItem(this.saveKey)}catch(t){}this._constructing=!0,this.savedConfig={},this.removeTracks(k(this.tracks)),this.addTracks(this.jQuery.extend(!0,[],this.defaultTracks)),t.length&&this.addHighlights(t),this._constructing=!1},addDomElements:function(t){var e=this.jQuery;this.menus=e(),this.labelContainer=e('<ul class="gv-label-container">').appendTo(this.container).sortable({items:"li:not(.gv-unsortable)",handle:".gv-handle",axis:"y",helper:"clone",cursor:"move",update:this.updateTrackOrder.bind(this),start:function(t,e){e.placeholder.css({height:e.item.height(),visibility:"visible"}).html(e.item.html()),e.helper.hide()}}),this.wrapper=this.jQuery('<div class="gv-wrapper">').appendTo(this.container),this.selector=this.jQuery('<div class="gv-selector gv-crosshair">').appendTo(this.wrapper),this.selectorControls=this.zoomInHighlight=this.zoomOutHighlight=e(),this.container.addClass("gv-canvas-container").width(t),this.isStatic||(this.selectorControls=e('\n <div class="gv-selector-controls gv-panel">\n <div class="gv-button-set">\n <div class="gv-position">\n <div class="gv-chr"></div>\n <div class="gv-start-end">\n <div class="gv-start"></div>\n <div class="gv-end"></div>\n </div>\n </div>\n </div>\n <div class="gv-button-set">\n <button class="gv-zoom-here">Zoom here</butto\n </div>\n <div class="gv-button-set">\n <button class="gv-center">Center</button>\n </div>\n <div class="gv-button-set">\n <button class="gv-highlight">Highlight</butto\n </div>\n <div class="gv-button-set">\n <button class="gv-cancel">Cancel</button>\n </div>\n </div>\'\n ').appendTo(this.selector),this.zoomInHighlight=e('\n <div class="gv-canvas-zoom gv-i">\n <div class="gv-t gv-l gv-h"></div>\n <div class="gv-t gv-r gv-h"></div>\n <div class="gv-t gv-l gv-v"></div>\n <div class="gv-t gv-r gv-v"></div>\n <div class="gv-b gv-l gv-h"></div>\n <div class="gv-b gv-r gv-h"></div>\n <div class="gv-b gv-l gv-v"></div>\n <div class="gv-b gv-r gv-v"></div>\n </div>\n ').appendTo("body"),this.zoomOutHighlight=this.zoomInHighlight.clone().toggleClass("gv-i gv-o").appendTo("body"))},addUserEventHandlers:function(){var t=this,e=this.jQuery,i=this.eventNamespace,n={},r={};r["mousedown".concat(i)]=function(e){return t.hideMessages(),e.which&&1!==e.which||e.currentTarget===t.selector[0]&&e.target!==e.currentTarget||t.mousedown(e),!1},r["mousewheel".concat(i)]=function(e,i,n,r){return!!t.noWheelZoom||(t.hideMessages(),"zoom"===t.wheelAction?t.mousewheelZoom(e,i):0===r&&0!==n?(t.startDragScroll(e),t.move(10*-n),t.stopDragScroll(!1),!1):void 0)},r["dblclick".concat(i)]=function(e){if(t.isStatic)return!0;t.hideMessages(),t.mousewheelZoom(e,1)},this.container.on(r,".gv-image-container, .gv-selector"),this.selectorControls.on("click",(function(e){var i=t.getSelectorPosition();switch(e.target.className){case"gv-zoom-here":t.setRange(i.start,i.end,!0);break;case"gv-center":t.moveTo(t.chr,i.start,i.end,!0,!0),t.cancelSelect();break;case"gv-highlight":t.addHighlight({chr:t.chr,start:i.start,end:i.end});case"gv-cancel":t.cancelSelect()}})),n["mouseup".concat(this.eventNamespace)]=this.mouseup.bind(this),n["mousemove".concat(this.eventNamespace)]=this.mousemove.bind(this),n["keydown".concat(this.eventNamespace)]=this.keydown.bind(this),n["keyup".concat(this.eventNamespace)]=this.keyup.bind(this),n["mousewheel".concat(this.eventNamespace)]=function(e){"zoom"===t.wheelAction&&(t.wheelTimeout&&clearTimeout(t.wheelTimeout),t.noWheelZoom=t.noWheelZoom||e.target!==t.container[0],t.wheelTimeout=setTimeout((function(){t.noWheelZoom=!1}),300))},e(document).on(n),e(window).on("".concat(this.useHash?"hashchange":"popstate").concat(this.eventNamespace),this.popState.bind(this))},onTracks:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.tracks.forEach((function(e){if(!e.disabled){var n,r=e._interface[t];if(r)(n=e[r])[t].apply(n,i);else e[t]&&e[t].apply(e,i)}}))},reset:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.onTracks.apply(this,["reset"].concat(e)),this.prev={},this.scale=9e99,this.setRange(this.start,this.end)},setWidth:function(t){var e=this;this.width=t,this.width-=this.labelWidth,this.controlPanel&&(this.width-=this.controlPanel.outerWidth(!0)),this.superContainer?(this.superContainer.width(t),this.container.width(this.width)):this.container.width(t),setTimeout((function(){e.onTracks("setWidth",Math.min(e.width,e.container.width())),e.reset("resizing")}),1)},mousewheelZoom:function(t,e){var i=this,n=this.jQuery;return clearTimeout(this.zoomDeltaTimeout),clearTimeout(this.zoomTimeout),this.zoomDeltaTimeout=setTimeout((function(){e>0?i.zoomInHighlight.css({left:t.pageX-20,top:t.pageY-20,display:"block"}).animate({width:80,height:80,top:"-=20",left:"-=20"},{complete:function(){n(this).css({width:40,height:40,display:"none"})}}):i.zoomOutHighlight.css({left:t.pageX-40,top:t.pageY-40,display:"block"}).animate({width:40,height:40,top:"+=20",left:"+=20"},{complete:function(){n(this).css({width:80,height:80,display:"none"})}})}),100),this.zoomTimeout=setTimeout((function(){i[e>0?"zoomIn":"zoomOut"](t.pageX-i.container.offset().left-i.labelWidth),"select"===i.dragAction&&i.moveSelector(t)}),300),!1},startDragScroll:function(t){this.dragging="scroll",this.scrolling=!t,this.dragOffset=t?t.pageX-this.left:0,this.dragStart=this.start,this.scrollDelta=Math.max(this.scale,this.defaultScrollDelta)},stopDragScroll:function(t){this.dragging=!1,this.scrolling=!1,!1!==t&&(this.start!==this.dragStart&&this.updateURL(),this.checkTrackHeights())},startDragSelect:function(t){if(!t)return!1;var e=Math.max(0,t.pageX-this.wrapper.offset().left-2);this.dragging="select",this.selectorStalled=!1,this.selectorStart=e,this.selector.css({left:e,width:0}).removeClass("gv-crosshair"),this.selectorControls.hide()},stopDragSelect:function(t){if(!t)return!1;if(this.dragging=!1,this.selectorStalled=!0,this.selector.outerWidth(!0)<2)return this.cancelSelect();var e=Math.min(t.pageY-this.wrapper.offset().top,this.wrapper.outerHeight(!0)-1.2*this.selectorControls.outerHeight(!0)),i=this.getSelectorPosition();this.selectorControls.find(".gv-chr").html(this.chr),this.selectorControls.find(".gv-start").html(i.start),this.selectorControls.find(".gv-end").html(i.end),this.selectorControls.find(".gv-selector-location").html("".concat(this.chr,":").concat(i.start,"-").concat(i.end)).end().css({top:e,left:this.selector.outerWidth(!0)/2-this.selectorControls.outerWidth(!0)/2}).show()},cancelSelect:function(t){t||(this.dragging=!1),this.selectorStalled=!1,this.selector.addClass("gv-crosshair").width(0),this.selectorControls.hide(),"scroll"===this.dragAction&&this.selector.hide()},dragSelect:function(t){var e=t.pageX-this.wrapper.offset().left;e>this.selectorStart?this.selector.css({left:this.selectorStart,width:Math.min(e-this.selectorStart,this.width-this.selectorStart-1)}):this.selector.css({left:Math.max(e,1),width:Math.min(this.selectorStart-e,this.selectorStart-1)})},setDragAction:function(t,e){this.dragAction=t,"select"===this.dragAction?this.selector.addClass("gv-crosshair").width(0).show():e&&!this.selector.hasClass("gv-crosshair")?this.selectorStalled=!1:(this.cancelSelect(),this.selector.hide())},toggleSelect:function(t){t?(this.prev.dragAction="scroll",this.setDragAction("select")):(this.setDragAction(this.prev.dragAction,!0),delete this.prev.dragAction)},setWheelAction:function(t){this.wheelAction=t},keydown:function(t){16!==t.which||this.prev.dragAction||"scroll"!==this.dragAction?27===t.which&&(this.cancelSelect(),this.closeMenus()):this.toggleSelect(!0)},keyup:function(t){16===t.which&&this.prev.dragAction&&this.toggleSelect()},mousedown:function(t){switch(t.shiftKey?"scroll"===this.dragAction&&this.toggleSelect(!0):this.prev.dragAction&&this.toggleSelect(),this.dragAction){case"select":this.startDragSelect(t);break;case"scroll":this.startDragScroll(t)}},mouseup:function(t){switch(this.dragging){case"select":this.stopDragSelect(t);break;case"scroll":this.stopDragScroll()}},mousemove:function(t){if(this.dragging&&!this.scrolling)switch(this.dragAction){case"scroll":this.move(t.pageX-this.dragOffset-this.left);break;case"select":this.dragSelect(t)}else"select"===this.dragAction&&this.moveSelector(t)},moveSelector:function(t){this.selectorStalled||this.selector.css("left",t.pageX-this.wrapper.offset().left-2)},move:function(t){var e=this.scale;e>1&&(t=Math.round(t/e)*e);var i=this.left+t;i<=this.minLeft?(i=this.minLeft,t=this.minLeft-this.left):i>=this.maxLeft&&(i=this.maxLeft,t=this.maxLeft-this.left);var n=Math.max(Math.round(this.start-t/e),1),r=n+this.length-1;r>this.chromosomeSize&&(n=(r=this.chromosomeSize)-this.length+1),this.left=i,n!==this.dragStart&&(this.closeMenus(),this.cancelSelect(!0)),this.onTracks("move",t),this.setRange(n,r)},moveTo:function(t,e,i,n,r){void 0!==t&&String(t)!==String(this.chr)&&(this.canChangeChr?(this.genome&&this.genome[t]?(this.chr=t,this.chromosomeSize=this.genome[t].size,this.start=this.end=this.scale=-1):this.die("Chromosome cannot be found in genome"),this.onTracks("changeChr")):this.die("Chromosome changing is not allowed")),this.setRange(e,i,n,r),this.prev.scale===this.scale&&(this.left=Math.max(Math.min(this.left+Math.round((this.prev.start-this.start)*this.scale),this.maxLeft),this.minLeft),this.onTracks("moveTo",this.chr,this.start,this.end,(this.prev.start-this.start)*this.scale))},setRange:function(t,e,i,n){if(this.prev.start=this.start,this.prev.end=this.end,this.start=Math.min(Math.max("number"==typeof t?Math.floor(t):parseInt(t,10),1),this.chromosomeSize),this.end=Math.max(Math.min("number"==typeof e?Math.floor(e):parseInt(e,10),this.chromosomeSize),1),this.end<this.start&&(this.end=Math.min(this.start+this.defaultLength-1,this.chromosomeSize)),n&&this.end-this.start+1!==this.length)if(this.end===this.chromosomeSize)this.start=this.end-this.length+1;else{var r=(this.start+this.end)/2;this.start=Math.max(Math.floor(r-this.length/2),1),this.end=this.start+this.length-1,this.end>this.chromosomeSize&&(this.end=this.chromosomeSize,this.start=this.end-this.length+1)}else this.length=this.end-this.start+1;this.setScale(),!0!==i||this.prev.start===this.start&&this.prev.end===this.end||this.updateURL()},setScale:function(){this.prev.scale=this.scale,this.scale=this.width/this.length,this.scaledStart=this.start*this.scale,this.prev.scale!==this.scale&&(this.left=0,this.minLeft=Math.round((this.end-this.chromosomeSize)*this.scale),this.maxLeft=Math.round((this.start-1)*this.scale),this.labelBuffer=Math.ceil(this.textWidth/this.scale)*this.longestLabel,this.prev.scale&&(this.cancelSelect(),this.closeMenus()),this.onTracks("setScale"),this.onTracks("makeFirstImage"))},checkTrackHeights:function(){this.dragging||this.onTracks("checkHeight")},resetTrackHeights:function(){this.onTracks("resetHeight")},zoomIn:function(t){t||(t=this.width/2);var e=Math.round(this.start+t/(2*this.scale)),i=2===this.length?e:Math.round(e+(this.length-1)/2);this.setRange(e,i,!0)},zoomOut:function(t){t||(t=this.width/2);var e=Math.round(this.start-t/this.scale),i=1===this.length?e+1:Math.round(e+2*(this.length-1));this.setRange(e,i,!0)},normaliseTrackDefinition:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Track",r=n()(P,i),o=i.split("."),s=function(t){var e=t.split(".").filter((function(t){return"Genoverse"!==t&&!o.includes(t)})).join(".");return e===i?r:n()(r,e)},a=function(t){return x(x(x(x({},t),t.controller?{controller:e.normaliseTrackDefinition(t.controller,"Track.Controller")}:{}),t.model?{model:e.normaliseTrackDefinition(t.model,"Track.Model")}:{}),t.view?{view:e.normaliseTrackDefinition(t.view,"Track.View")}:{})};if("string"==typeof t)return s(t);if(Array.isArray(t)&&"string"==typeof t[0]){var l=s(t[0]);return"object"===b(t[1])&&Object.keys(t[1]).length?l.extend(a(t[1])):l}return"object"===b(t)&&Object.keys(t).length?r.extend(a(t)):t},addTrack:function(t,e){return this.addTracks([t],e)[0]},addTracks:function(t,e){var i,n=this.jQuery,r={browser:this,width:Math.min(this.width,this.container.width())},o=Boolean(t);if(o&&!this.tracks.filter((function(t){return"function"==typeof t})).length){var s=S((e?this.tracks.filter((function(t){return t.order<e})):this.tracks).sort((function(t,e){return e.order-t.order})),1)[0];s&&(i=s.order+.1)}t=t||k(this.tracks);for(var a=0;a<t.length;a++){var l=this.normaliseTrackDefinition(t[a]);t[a]=new l(x(x({},r),{},{namespace:P.getTrackNamespace(l),order:"number"==typeof i?i:a,config:this.savedConfig?n.extend(!0,{},this.savedConfig[l.prototype.id]):void 0})),t[a].id&&(this.tracksById[t[a].id]=t[a]),o?this.tracks.push(t[a]):this.tracks[a]=t[a]}return this.sortTracks(),this.saveConfig(),t},removeTrack:function(t){t&&this.removeTracks((t.prop("childTracks")||[]).concat(t))},removeTracks:function(t){for(var e=t.length;e--;){for(var i=t[e],n=this.tracks.length;n--;)if(i===this.tracks[n]){this.tracks.splice(n,1);break}i.id&&delete this.tracksById[i.id],i.destructor()}this.saveConfig()},sortTracks:function(){var t=this.jQuery;if(!this.tracks.some((function(t){return"object"!==b(t)}))){var e=this.tracks.slice().sort((function(t,e){return t.order-e.order})),i=t(),n=t();e.forEach((function(t,e){if(!t.prop("parentTrack")){t.prop("fixedOrder")||t.prop("order",e);var r=t.prop("superContainer")||t.prop("container");t.prop("menus").length&&t.prop("top",r.position().top),i.push(t.prop("label")[0]),n.push(r[0])}})),this.labelContainer.append(i),this.wrapper.append(n),this.tracks=e,i.map((function(){return t(this).data("track")})).each((function(){if(this.prop("menus").length){var t=(this.prop("superContainer")||this.prop("container")).position().top-this.prop("top");this.prop("menus").css("top",(function(e,i){return parseInt(i,10)+t})),this.prop("top",null)}}))}},updateTrackOrder:function(t,e){var i=e.item.data("track");if(!i.prop("unsortable")&&!i.prop("fixedOrder")){var n=e.item.prev().data("track"),r=e.item.next().data("track"),o=n?n.prop("order"):0,s=r?r.prop("order"):0,a=o||s,l=n&&r&&Math.floor(s)===Math.floor(o)?o+(s-o)/2:a+(o?1:-1)*Math.abs(Math.round(a)-a||1)/2;i.prop("order",l),this.sortTracks(),this.saveConfig()}},updateURL:function(){this.urlParamTemplate&&(this.useHash?window.location.hash=this.getQueryString():window.history.pushState({},"",this.getQueryString()))},popState:function(){if(!this.baseURL||window.location.href.match(this.baseURL)){var t=this.getCoords(),e=parseInt(t.start,10),i=parseInt(t.end,10);(t.chr&&String(t.chr)!==String(this.chr)||t.start&&(e!==this.start||i!==this.end))&&(this.moveTo(t.chr,e,i),this.closeMenus(),this.hideMessages())}},getCoords:function(){var t={},e="".concat(decodeURIComponent(this.useHash&&window.location.hash.replace(/^#/,"?")||window.location.search),"&").match(this.paramRegex),i=0;return e?(e=e.slice(2,-1),this.urlParamTemplate.split("__").forEach((function(n){var r=n.match(/^(CHR|START|END)$/);r&&(t[r[1].toLowerCase()]="CHR"===r[1]?e[i++]:parseInt(e[i++],10))})),t.chr&&t.start&&t.end&&(!this.genome||this.genome[t.chr])?t:this.initialLocation):this.initialLocation},getQueryString:function(){var t=this.urlParamTemplate.replace("__CHR__",this.chr).replace("__START__",this.start).replace("__END__",this.end),e="".concat(decodeURIComponent(this.useHash?window.location.hash.replace(/^#/,"?"):window.location.search),"&"),i=e.match(this.paramRegex)?e.replace(this.paramRegex,"$1".concat(t,"$5")).slice(0,-1):"".concat(e).concat(t);return this.useHash?i=i.replace(/^[&?]/,""):0!==i.indexOf("?")&&(i="?".concat(i.replace(/^&/,""))),i},getChromosomeSize:function(t){return t&&this.genome&&this.genome[t]?this.genome[t].size:this.chromosomeSize},supported:function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},die:function(t,e){if(!e||!e.length)throw t;e.html(t),this.failed=!0},createMenuEl:function(){var t=this.jQuery;return this.menuTemplate=this.menuTemplate||t('\n <div class="gv-menu">\n <div class="gv-close gv-menu-button fas fa-times-circle"></div>\n <div class="gv-menu-loading">Loading...</div>\n <div class="gv-menu-error">An error has occurred</div>\n <div class="gv-menu-content">\n <div class="gv-title"></div>\n <table class="gv-focus-highlight">\n <tr>\n <td><a class="gv-focus" href="#">Focus here</a></td>\n <td><a class="gv-highlight" href="#">Highlight this feature</a></td>\n </tr>\n </table>\n <table></table>\n </div>\n </div>\n ').on("click",(function(e){var i=t(this);t(e.target).hasClass("gv-close")&&i.fadeOut("fast",(function(){var t=i.data();t.track&&t.track.prop("menus",t.track.prop("menus").not(this)),t.browser.menus=t.browser.menus.not(this)}))})),this.menuTemplate.clone(!0).data({browser:this})},makeMenu:function(t,e,i){var n=this,r=this.jQuery;if(!t)return!1;if(0===(t=[].concat(t)).length)return!1;if(1===t.length)return this.makeFeatureMenu(t[0],e,i);var o=this.createMenuEl(),s=r(".gv-menu-content",o).addClass("gv-menu-content-first"),a=r("table:not(.gv-focus-highlight)",s);return r(".gv-focus-highlight, .gv-menu-loading",o).remove(),r(".gv-title",o).html("".concat(t.length," features")),(i?i.model.sortFeatures(t):t.sort((function(t,e){return t.start-e.start}))).forEach((function(t){var e="".concat(t.chr,":").concat(t.start).concat(t.end===t.start?"":"-".concat(t.end)),o=t.menuLabel||t.name||(Array.isArray(t.label)?t.label.join(" "):t.label)||String(t.id);r('<a href="#">').html(o.match(e)?o:"".concat(e," ").concat(o)).on("click",(function(e){return n.makeFeatureMenu(t,e,i),!1})).appendTo(r("<td>").appendTo(r("<tr>").appendTo(a)))})),r('<div class="gv-menu-scroll-wrapper">').append(a).appendTo(s),o.appendTo(this.superContainer||this.container).show(),e&&o.css({left:0,top:0}).position({of:e,my:"left top",collision:"flipfit"}),this.menus=this.menus.add(o),i&&i.prop("menus",i.prop("menus").add(o)),o},insertPropertiesIntoMenu:function(t,e,i,n,r){var o=this,s=this.jQuery,a=function(t){var e=t.currentTarget,i=s(e).data(),n=i.end-i.start+1,r=Math.max(Math.round(n/4),25);return o.moveTo(i.chr,i.start-r,i.end+r,!0),!1},l=function(t){var e=t.currentTarget;return o.addHighlight(s(e).data()),!1};[].concat(t).forEach((function(t,h){var c=i.clone().addClass(h?"":"gv-menu-content-first").appendTo(e),u=void 0!==t.chr?t.chr:n.chr,f=parseInt(void 0!==t.start?t.start:n.start,10),p=parseInt(void 0!==t.end?t.end:n.end,10),d=Math.max.apply(Math,k(Object.values(t).map((function(t){return Array.isArray(t)?t.length:1})))),g="";if(s(".gv-title",c)[t.title?"html":"remove"](t.title),r&&f&&p&&!o.isStatic){var m={chr:u,start:f,end:Math.max(p,f),label:n.label||(t.title||"").replace(/<[^>]+>/g,""),color:n.color};s(".gv-focus",c).data(m).on("click",a),s(".gv-highlight",c).data(m).on("click",l)}else s(".gv-focus-highlight",c).remove();Object.entries(t).forEach((function(t){var e=S(t,2),i=e[0],n=e[1];if((!/^start|end$/.test(i)||!1!==n)&&"title"!==i){var r=""===n?' colspan="'.concat(d+1,'"'):"";g+="<tr><td".concat(r,">").concat(i,"</td>"),r||(Array.isArray(n)?n.forEach((function(t){g+="<td>".concat(t,"</td>")})):g+=1===d?"<td>".concat(n,"</td>"):'<td colspan="'.concat(d,'">').concat(n,"</td>")),g+="</tr>"}})),s("table:not(.gv-focus-highlight)",c)[g?"html":"remove"](g)}))},makeFeatureMenu:function(t,e,i){var n=this,r=this.jQuery,o=this.superContainer||this.container;if(t.menuEl&&!0!==t.menuEl.data("hasErrored"))t.menuEl.appendTo(o);else{var s,a=this.createMenuEl().data({feature:t}),l=r(".gv-menu-content",a).remove(),h=r(".gv-menu-loading",a);try{s=i?i.controller.populateMenu(t):t}catch(t){s=r.Deferred().reject(t),a.data("hasErrored",!0)}var c="object"===b(s)&&"function"==typeof s.promise;c||h.hide(),r.when(s).done((function(e){((null==i?void 0:i.controller)||n).insertPropertiesIntoMenu(e,a,l,t,i),c&&h.hide()})).fail((function(t){h.hide(),a.data("hasErrored",!0),r(".gv-menu-error",a).css("display","block"),console.error(t)})),i&&a.addClass(i.id).data("track",i),t.menuEl=a.appendTo(o)}return this.menus=this.menus.add(t.menuEl),i&&i.prop("menus",i.prop("menus").add(t.menuEl)),t.menuEl.show(),e&&t.menuEl.css({left:0,top:0}).position({of:e,my:"left top",collision:"flipfit"}),t.menuEl},closeMenus:function(t){(t=t||this).menus.filter(":visible").children(".gv-close").trigger("click"),t.menus=this.jQuery()},hideMessages:function(){this.autoHideMessages&&this.wrapper.find(".gv-message-container").addClass("gv-collapsed")},getSelectorPosition:function(){var t=this.selector.position().left,e=this.selector.outerWidth(!0),i=Math.round(t/this.scale)+this.start,n=Math.round((t+e)/this.scale)+this.start-1;return{start:i,end:n=n<=i?i:n,left:t,width:e}},addHighlight:function(t){this.addHighlights([t])},addHighlights:function(t){this.tracksById.highlights||this.addTrack(o.default),this.tracksById.highlights.addHighlights(t)},on:function(t,e,i,n){var o=this,s={};function a(t,e){t.split(" ").forEach((function(t){s[t]=(s[t]||[]).concat(e)}))}"object"===b(t)?(Object.entries(t).forEach((function(t){var e=S(t,2);return a(e[0],e[1])})),e=e||this):(void 0===i&&(i=e,e=this),a(t,i));var l=e instanceof r.ZP||"tracks"===e?"tracks":"browser";Object.entries(s).forEach((function(t){var e,i=S(t,2),r=i[0],s=i[1],a="".concat(r).concat(n?".once":""),h=s.map((function(t){return t.toString()}));(o.events[l][a]=o.events[l][a]||[],o.events[l][a].some((function(t){var e=t.toString();return h.some((function(t){return t===e}))})))||(e=o.events[l][a]).push.apply(e,k(s))}))},once:function(t,e,i){this.on(t,e,i,!0)},destroy:function(){var t=this;this.destroying=!0,this.onTracks("destructor"),(this.superContainer||this.container).empty(),this.zoomInHighlight&&this.zoomInHighlight.add(this.zoomOutHighlight).remove(),this.container.off(this.eventNamespace),this.jQuery(window).add(document).off(this.eventNamespace),Object.keys(this).forEach((function(e){delete t[e]}))}},{id:0,Track:r.ZP,jQuery:v,configure:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.tracks,i=void 0===e?{}:e,n=t.plugins,o=void 0===n?{}:n,a=t.genomes,l=void 0===a?{}:a,h=t.css,c=void 0===h||h,u=t.fontawesome,p=void 0===u||u,d=t.force,g=void 0!==d&&d;if(g||!P.configured){f(r.ZP,s(3473),{exclude:i.exclude}),i.include&&f(r.ZP,i.include);var m=function(t){return t.keys().forEach(t)};o.include&&m(o.include),l.include&&m(l.include),P.importCSS=c,P.importFontAwesome=p}P.configured=!0},getAllTrackTypes:function(t,i){if(t=t||r.ZP,i&&(t=t[i]),!t)return[];var n={};return Object.entries(t).forEach((function(i){var r=S(i,2),o=r[0],s=r[1];"function"!=typeof s||e()[o]||/^(Controller|Model|View)$/.test(o)||(Object.entries(P.getAllTrackTypes(t,o)).forEach((function(t){var e=S(t,2),i=e[0],r=e[1];"function"==typeof r&&(n["".concat(o,".").concat(i)]=r)})),n[o]=s)})),n},getTrackNamespace:function(t){for(var e=P.getAllTrackTypes(),i=Object.entries(e).map((function(e){var i=S(e,2),n=i[0],r=i[1];return(t===r||t.prototype instanceof r)&&n})).filter(Boolean),n=i.length;i.length>1;){for(var r=0;r<i.length-1;r++){if(e[i[r]].prototype instanceof e[i[r+1]]){i.splice(r+1,1);break}if(e[i[r+1]].prototype instanceof e[i[r]]){i.splice(r,1);break}}if(n--<0)break}return i[0]}});s.g.Genoverse=P}()}();
|
|
1
|
+
!function(){var t,e,i,n,r={3766:function(t,e,i){"use strict";i.d(e,{G7:function(){return h.default},Hn:function(){return a.default},Qr:function(){return o.default}});var n=i(7810),r=i.n(n),o=i(7145),s=i(7905),a=i(4637),l=i(6637),h=i(4112),c=i(2940);function u(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function d(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?p(Object(i),!0).forEach((function(e){g(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function g(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return y(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var b=r().extend({height:12,margin:2,resizable:!0,border:!0,unsortable:!1,fixedOrder:!1,invert:!1,legend:!1,children:void 0,name:void 0,autoHeight:void 0,hideEmpty:void 0,constructor:function(t){(this.stranded||t.stranded)&&(this.controller=this.controller||s.default,this.model=this.model||l.default),this.models={},this.views={},this.setInterface(),this.extend(t),this.setDefaults(),this.setEvents(),(0,c.Z)(this,"Track"),this.setLengthMap(),this.setMVC(),this.browser.scale>0&&(this.controller.setScale(),this.controller.makeFirstImage()),this.children&&this.addChildTracks(),this.legend&&this.addLegend()},setEvents:function(){},setDefaults:function(){this.config=this.config||{},this.configSettings=this.configSettings||{},this.defaultConfig=this.defaultConfig||{},this.controls=this.controls||[],this.defaultName=this.name,this.configName=[],this.defaultHeight=this.height,this.defaultAutoHeight=this.autoHeight,this.autoHeight=void 0!==this.autoHeight?this.autoHeight:this.browser.trackAutoHeight,this.hideEmpty=void 0!==this.hideEmpty?this.hideEmpty:this.browser.hideEmptyTracks,this.height+=this.margin,this.initialHeight=this.height,"auto"===this.resizable&&(this.autoHeight=!0),this.setDefaultConfig()},setDefaultConfig:function(){var t=this;Object.entries(this.defaultConfig).forEach((function(e){var i=m(e,2),n=i[0],r=i[1];void 0===t.config[n]&&(t.config[n]=r)})),this._setCurrentConfig()},setInterface:function(){var t=this;this._interface={},["Controller","Model","View"].forEach((function(e){Object.keys(b[e].prototype).forEach((function(i){/^(constructor|init|reset|setDefaults|base|extend|lengthMap)$/.test(i)||(t._interface[i]=e.toLowerCase())}))}))},setMVC:function(){var t=this;this.model&&"function"==typeof this.model.abort&&this.model.abort(),this._defaults=this._defaults||{};var e=this.browser.jQuery.extend(!0,{},this.constructor.prototype,this.getSettingsForLength()[1]),i={prop:{},func:{}},n={};if(e.controller=e.controller||this.controller||o.default,Object.entries(e).forEach((function(e){var r=m(e,2),o=r[0],s=r[1];!/^(constructor|init|reset|setDefaults|base|extend|lengthMap)$/.test(o)&&isNaN(o)&&("controller"===t._interface[o]?i["function"==typeof s?"func":"prop"][o]=s:b.prototype.hasOwnProperty(o)||/^(controller|models|views|config|disabled)$/.test(o)||(void 0===t._defaults[o]&&(t._defaults[o]=t[o]),n[o]=s))})),Object.entries(this._defaults).forEach((function(t){var e=m(t,2),i=e[0],r=e[1];void 0===n[i]&&(n[i]=r)})),!this.browser.jQuery.isEmptyObject(this._currentConfig)){var r={};Object.entries(this._currentConfig.prop).forEach((function(e){var o=m(e,2),s=o[0],a=o[1],l=t._interface[s];/model|view/.test(l)?n[l][s]!==a&&(n[l][s]=a,r[l]=!0):"controller"===l?i.prop[s]=a:n[s]=a})),Object.keys(r).forEach((function(t){n[t].setDefaults(!0)}))}this.extend(n),this.model.setChrProps(),this.controller&&"function"!=typeof this.controller?(i.prop.threshold=i.prop.threshold||this.controller.constructor.prototype.threshold,Object.assign(this.controller,i.prop,{model:this.model,view:this.view})):this.controller=this.newMVC(e.controller,i.func,d(d({},i.prop),{},{model:this.model,view:this.view}))},newMVC:function(t,e,i){return new(t.extend(this.browser.jQuery.extend(!0,{},d(d(d({},t.prototype),e),{},{prop:this.prop.bind(this)}))))(d(d({},i),{},{browser:this.browser,width:this.width,track:this}))},setLengthMap:function(){var t=this,e={},i={},n=this.browser.jQuery,r=function t(e,i){var r={browser:!0,width:!0,track:!0};for(var o in e)if(!r[o]){if(r[o]=!0,f(e[o])!==f(i[o]))return!1;if("function"==typeof e[o]&&"function"==typeof i[o]){if(e[o].toString()!==i[o].toString())return!1}else{if(!("object"!==f(e[o])||e[o]instanceof n||t(e[o],i[o])))return!1;if(e[o]!==i[o])return!1}}return Object.keys(i).every((function(t){return r[t]}))},o=[[-1,{view:this.view||h.default,model:this.model||a.default}]];for(var s in this)if(!isNaN(s)){var l=this[s];o.push([Number(s),!1===l?{threshold:Number(s),resizable:"auto",featureHeight:0,model:a.default,view:h.default}:n.extend(!0,{},l)])}o.sort((function(t,e){return e[0]-t[0]})).forEach((function(e,i){var r=m(e,2),s=r[0],l=r[1];if(!l.model||!l.view)for(var c=-1===s?{}:{model:Object.keys(l).some((function(e){return"model"===t._interface[e]})),view:Object.keys(l).some((function(e){return"view"===t._interface[e]}))},u=i+1;u<o.length&&(!l.model&&o[u][1].model&&(l.model=c.model?a.default.extend(n.extend(!0,{},o[u][1].model.prototype)):o[u][1].model),!l.view&&o[u][1].view&&(l.view=c.view?h.default.extend(n.extend(!0,{},o[u][1].view.prototype)):o[u][1].view),!l.model||!l.view);u++);})),o.forEach((function(s,a){var l=m(s,2),h=l[0],c=l[1],u=o[a-1]?o[a-1][1]:{},f=n.extend(!0,{},t.constructor.prototype,c),p={model:{prop:{},func:{}},view:{prop:{},func:{}}};Object.entries(f).forEach((function(e){var i=m(e,2),n=i[0],r=i[1];"constructor"!==n&&p[t._interface[n]]&&(p[t._interface[n]]["function"==typeof r?"func":"prop"][n]=r)})),["model","view"].forEach((function(e){if("function"==typeof f[e]){var i=t["".concat(e,"s")];u[e]instanceof f[e]?f[e]=u[e]:(f[e]=t.newMVC(f[e],p[e].func,p[e].prop),i[h]&&r(i[h].constructor.prototype,d(d({},f[e].constructor.prototype),p[e].prop))&&(f[e]=i[h]))}})),e[h]=c.model=f.model,i[h]=c.view=f.view})),this.lengthMap=o,this.models=e,this.views=i},getSettingsForLength:function(){var t=this.browser.length||this.browser.end-this.browser.start+1;return this.lengthMap.find((function(e){var i=m(e,1)[0];return t>i||1===t&&1===i||t<0&&i<0}))||[]},prop:function(t,e){var i=this,n=this._interface[t]?this[this._interface[t]]:this[["controller","model","view"].find((function(e){return i[e]&&void 0!==i[e][t]}))]||this;return void 0!==e&&(null===e?delete n[t]:n[t]=e),n?n[t]:void 0},setHeight:function(t,e){return t=this.disabled||!0!==e&&t<this.prop("featureHeight")||this.prop("threshold")&&!this.prop("thresholdMessage")&&this.browser.length>this.prop("threshold")?0:Math.max(t,this.prop("minLabelHeight")),this.height=t,t},resetHeight:function(){if(!0===this.resizable){var t=this.prop("resizer");this.autoHeight=!![this.defaultAutoHeight,this.browser.trackAutoHeight].sort((function(t,e){return(null!=t?0:1)-(null!=e?0:1)}))[0],this.controller.resize(this.autoHeight?this.prop("fullVisibleHeight"):this.defaultHeight+this.margin+(t?t.height():0)),this.initialHeight=this.height}},setConfig:function(t,e){var i=this;if("string"==typeof t&&void 0!==e){var n={};n[t]=e,t=n}var r=!1;if(Object.entries(t).forEach((function(t){var e=m(t,2),n=e[0],o=e[1];void 0!==i.configSettings[n]&&void 0!==i.configSettings[n][o]&&i.config[n]!==o&&(i.config[n]=o,r=!0)})),r){var o=this.prop("featuresById");Object.values(o).forEach((function(t){delete t.menuEl})),this._setCurrentConfig(),this.disabled||this.reset.apply(this,u(r?["config",t]:[])),(this.prop("childTracks")||[]).forEach((function(e){e.setConfig(t)})),this.browser.saveConfig()}},_setCurrentConfig:function(){var t,e=this,i=(Array.isArray(this.controls)?this.controls:[]).reduce((function(t,e){return t.add(e)}),this.browser.jQuery()),n=[],r=[],o=[];(this._currentConfig={prop:{},func:{}},Object.keys(this.configSettings).forEach((function(t){var s=e.getConfig(t);s&&(r.push(s),s.featureFilter&&n.push(s.featureFilter),o.push(s.hasOwnProperty("name")?"function"==typeof s.name?s.name.call(e):s.name:!1!==s.featureFilter&&i.filter('[data-control="'.concat(t,'"]')).find('[value="'.concat(e.config[t],'"]')).html()))})),r.length)&&(o=o.filter(Boolean),delete(r=(t=this.browser.jQuery).extend.apply(t,[!0,{}].concat(u(r),[{featureFilters:n,name:"".concat(this.defaultName).concat(o.length?" - ".concat(o.join(", ")):""),configName:[this.defaultName].concat(o)}]))).featureFilter);Object.entries(r).forEach((function(t){var i=m(t,2),n=i[0],r=i[1];e._currentConfig["function"!=typeof r||/^(before|after)/.test(n)?"prop":"func"][n]=r})),r.name&&this.updateName(r.name,r.configName)},getConfig:function(t){return this.configSettings[t][this.config[t]]},addChildTracks:function(){if(this.children){var t=this,e=this.browser,i=[].concat(this.children).filter((function(t){return t.prototype instanceof b})),n={parentTrack:this,controls:"off",threshold:this.prop("threshold")};setTimeout((function(){t.childTracks=i.map((function(i){return i.prototype.isLegend||i.isLegend?(t.addLegend(i.extend(n),!0),t.legendTrack):e.addTrack(i.extend(n))})),t.controller.setLabelHeight()}),1)}},addLegend:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.legend,e=arguments.length>1?arguments[1]:void 0;if(null!=t&&t.prototype.isLegend){var i=this,n=!0===t.prototype.shared?Genoverse.getTrackNamespace(t):t.prototype.shared||this.id,r={id:"".concat(n,"Legend"),name:t.prototype.name||"".concat(this.defaultName," Legend"),type:n};this.legendType=n,!0===e?o():setTimeout(o,1)}function o(){return i.legendTrack=i.browser.legends[r.id]||i.browser.addTrack(t.extend(r)),i.legendTrack}},changeChr:function(){Object.values(this.models).forEach((function(t){return t.setChrProps()}))},updateName:function(t,e){this.controller&&"function"!=typeof this.controller?this.controller.setName(t,e):(this.name=t,this.configName=e||[])},enable:function(){!0===this.disabled&&(this.disabled=!1,this.controller.resize(this.initialHeight),this.reset())},disable:function(){this.disabled||(this.disabled=!0,this.controller.resize(0))},reset:function(){var t;"resizing"!==(arguments.length<=0?void 0:arguments[0])&&this.setLengthMap(),Object.values(this.models).filter((function(t){return!1!==t.url})).forEach((function(t){return t.init(!0)})),Object.values(this.views).forEach((function(t){return t.init(!0)})),(t=this.controller).reset.apply(t,arguments)},remove:function(){this.browser.removeTrack(this)},destructor:function(){var t=this;["controller","model","view","models","views","lengthMap"].forEach((function(e){var i;"function"==typeof(null==t||null===(i=t[e])||void 0===i?void 0:i.destroy)&&t[e].destroy(),delete t[e]}))}});b.Controller=o.default,b.Model=a.default,b.View=h.default,e.ZP=b},7145:function(t,e,i){"use strict";i.r(e);var n=i(7810),r=i.n(n),o=i(2940);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function h(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return f(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=r().extend({scrollBuffer:1.2,threshold:Infinity,clickTolerance:0,messages:void 0,constructor:function(t){var e=this;Object.entries(t).forEach((function(t){var i=c(t,2),n=i[0],r=i[1];void 0!==r&&(e[n]=r)})),(0,o.Z)(this,"Controller"),this.init()},init:function(){this.setDefaults(),this.addDomElements(),this.addUserEventHandlers(),this.deferreds=[]},setDefaults:function(){this.imgRange={},this.scrollRange={},this.messages=this.messages||{error:"ERROR: ",threshold:"Data for this track is not displayed in regions greater than ",resize:'Some features are currently hidden, <a class="gv-resize">resize to see all</a>'}},reset:function(t){this.abort(),this.setDefaults(),this.resetImages(),this.browser.closeMenus(this),"resizing"!==t&&(this.setScale(),this.makeFirstImage())},resetImages:function(){this.scrollContainer.empty(),this.resetImageRanges()},resetImageRanges:function(){var t=this.browser;this.left=0,this.scrollStart=["ss",t.chr,t.start,t.end].join("-"),this.imgRange[this.scrollStart]=this.imgRange[this.scrollStart]||{left:-2*this.width,right:2*this.width},this.scrollRange[this.scrollStart]=this.scrollRange[this.scrollStart]||{start:Math.max(t.start-t.length,1),end:Math.min(t.end+t.length,t.chromosomeSize)}},setName:function(t,e){this.track.name=t,this.labelName=this.labelName||this.browser.jQuery('<span class="gv-name">').appendTo(this.label),this.labelName.attr("title",t).html(e&&e.length?e.map((function(t){return'<span class="gv-name-part">'.concat(t,"</span>")})):t),this.minLabelHeight=this.label.parents("body").length?Math.max(this.labelName.outerHeight(!0),this.labelName.outerHeight()):0,this.setLabelHeight(!0),t&&!this.track._constructing&&this.track.height<this.minLabelHeight&&this.resize(this.minLabelHeight)},addDomElements:function(){var t=this.track.name||"",e=this.browser.jQuery;this.menus=e(),this.container=e('<div class="gv-track-container">').appendTo(this.browser.wrapper),this.scrollContainer=e('<div class="gv-scroll-container">').appendTo(this.container),this.imgContainer=e('<div class="gv-image-container">').width(this.width).addClass(this.prop("invert")?"gv-invert":""),this.label=e("<li>").appendTo(this.browser.labelContainer).height(this.prop("height")).data("track",this.track),this.context=e("<canvas>")[0].getContext("2d"),this.messageContainer=e('\n <div class="gv-message-container">\n <div class="gv-messages"></div>\n <i class="gv-control gv-collapse fas fa-angle-double-left"></i>\n <i class="gv-control gv-expand fas fa-angle-double-right"></i>\n </div>\n ').appendTo(this.container),this.prop("border")&&e('<div class="gv-track-border">').appendTo(this.container),this.prop("unsortable")?this.label.addClass("gv-unsortable"):e('<div class="gv-handle">').appendTo(this.label),this.prop("children")?(this.superContainer=e('<div class="gv-track-container gv-track-super-container">').insertAfter(this.container),this.container.appendTo(this.superContainer)):this.prop("parentTrack")&&(this.superContainer=this.prop("parentTrack").prop("superContainer"),this.container.appendTo(this.superContainer),this.label.remove(),this.label=this.prop("parentTrack").prop("label")),this.setName(t,this.track.configName),this.container.height(this.prop("disabled")?0:Math.max(this.prop("height"),this.minLabelHeight))},addUserEventHandlers:function(){var t=this,e=this.browser;this.container.on("mouseup",".gv-image-container",(function(i){i.which&&1!==i.which||"number"==typeof e.dragStart&&e.start!==e.dragStart||"select"===e.dragAction&&e.selector.outerWidth(!0)>2||t.click(i)})),this.messageContainer.children().on("click",(function(){var e=t.messageContainer.children(".gv-messages").is(":visible")?" gv-collapsed":"",i=t.messageContainer.find(".gv-msg").data("code");t.messageContainer.attr("class","gv-message-container".concat(e)),t.checkHeight(),"error"!==i&&(document.cookie="gv_msg_".concat(i,"_").concat(t.prop("id"),"=1; expires=").concat(e?"Tue, 19 Jan 2038":"Thu, 01 Jan 1970"," 00:00:00 GMT; path=/"))}))},click:function(t){var e=this.browser.jQuery(t.target),i=t.pageX-this.container.parent().offset().left+this.browser.scaledStart,n=t.pageY-e.offset().top;return this.imgContainer.hasClass("gv-invert")&&(n=e.height()-n),this.browser.makeMenu(this.getClickedFeatures(i,n,e),t,this.track)},getClickedFeatures:function(t,e,i){var n={x:t,y:e,w:1,h:1},r=this.scale,o=r<1?this.clickTolerance:0;o&&(n.x-=o/2,n.w+=o);var s=this[i&&i.hasClass("gv-labels")?"labelPositions":"featurePositions"].search(n);return o?s.filter((function(e){var i=e.position[r].bounds,n=i.x+i.w/2,s=Math.min(i.x,n-o/2),a=Math.max(i.x+i.w,n+o/2);return t>=s&&t<=a})).sort((function(e,i){return Math.abs(e.position[r].start-t)-Math.abs(i.position[r].start-t)})):this.model.sortFeatures(s)},showMessage:function(t,e){var i=this.messageContainer.children(".gv-messages");if(!i.children(".gv-".concat(t)).show().length){var n=this.browser.jQuery('<div class="gv-msg gv-'.concat(t,'">').concat(this.messages[t]).concat(e||"","</div>")).data("code",t).prependTo(i);if("resize"===t){var r=this;n.children("a.gv-resize").on("click",(function(){r.resize(r.fullVisibleHeight)}))}this.messageContainer[document.cookie.match("".concat(["gv_msg",t,this.prop("id")].join("_"),"=1"))?"addClass":"removeClass"]("gv-collapsed")}var o=this.messageContainer.show().outerHeight(!0);o>this.prop("height")&&this.resize(o,void 0,!1),i=null},hideMessage:function(t){var e=this.messageContainer.find(".gv-msg");t?(e=e.filter(".gv-".concat(t)).hide()).length&&!e.siblings().filter((function(){return"none"!==this.style.display})).length&&this.messageContainer.hide():(e.hide(),this.messageContainer.hide()),e=null},showError:function(t){this.showMessage("error",t)},checkHeight:function(){var t;(this.browser.length>this.threshold?this.thresholdMessage?(this.showMessage("threshold",this.thresholdMessage),this.fullVisibleHeight=Math.max(this.messageContainer.outerHeight(!0),this.minLabelHeight)):this.fullVisibleHeight=0:this.thresholdMessage&&this.hideMessage("threshold"),this.prop("resizable"))&&(this.browser.length>this.threshold?(t=this.prop("autoHeight"),this.prop("autoHeight",!0)):this.fullVisibleHeight=this.visibleFeatureHeight()||(this.messageContainer.is(":visible")?this.messageContainer.outerHeight(!0):this.prop("hideEmpty")?0:this.minLabelHeight),this.autoResize(),void 0!==t&&this.prop("autoHeight",t))},visibleFeatureHeight:function(){var t={x:this.browser.scaledStart,w:this.width,y:0,h:9e99},e=this.scale,i=this.featurePositions.search(t),n=this.prop("hideEmpty")?0:this.minLabelHeight,r=Math.max.apply(Math,h(i.map((function(t){return t.position[e].bottom})).concat(n)));return"separate"===this.prop("labels")&&(this.labelTop=r,r+=Math.max.apply(Math,h(this.labelPositions.search(t).concat(this.prop("repeatLabels")?i:[]).map((function(t){return t.position[e].label.bottom})).concat(n)))),r},autoResize:function(){var t=this.prop("autoHeight");t||"separate"===this.prop("labels")?this.resize(t?this.fullVisibleHeight:this.prop("height"),this.labelTop,!1):this.toggleExpander(!1)},resize:function(t,e,i){t=this.track.setHeight(t,e),"number"==typeof e&&this.imgContainers.children(".gv-labels").css("top",e),this.container.height(t)[t?"show":"hide"](),this.setLabelHeight(),this.toggleExpander(),!1!==i&&this.browser.saveConfig()},toggleExpander:function(t){if(!0===this.prop("resizable")){var e=this.prop("featureMargin"),i=this.prop("height");if(this.fullVisibleHeight-e.top-e.bottom>i&&!this.prop("disabled")){this.showMessage("resize");var n=this,r=this.messageContainer.outerHeight(!0);r>i&&this.resize(r,void 0,t),this.expander=(this.expander||this.browser.jQuery('<div class="gv-expander gv-static">').width(this.width).appendTo(this.container).on("click",(function(){n.resize(n.fullVisibleHeight)})))[0===this.prop("height")?"hide":"show"]()}else this.expander&&(this.hideMessage("resize"),this.expander.hide())}},setLabelHeight:function(t){var e=this.prop("parentTrack");if(e)e.controller.setLabelHeight();else{var i=[this].concat(this.prop("childTracks")||[]),n=i.reduce((function(t,e){return t+(e.prop("disabled")?0:e.prop("height"))}),0);if(this.label.height(this.prop("disabled")?0:t&&this.minLabelHeight?Math.max(n,this.minLabelHeight):n),i.length>1){var r=i[0].prop("height");i.slice(1).forEach((function(t){var e=t.prop("height");t.prop("labelName").css("top",r)[e?"removeClass":"addClass"]("gv-hide"),r+=e}))}}},setWidth:function(t){var e=this.track;[this,e,e.model,e.view].forEach((function(e){e.width=t})),this.imgContainer.add(this.expander).width(t)},setScale:function(){var t=this;this.scale=this.browser.scale,this.track.setMVC(),this.resetImageRanges();var e=this.prop("labels");e&&"overlay"!==e&&this.model.setLabelBuffer(this.browser.labelBuffer),Infinity!==this.threshold&&"auto"!==this.prop("resizable")&&(this.thresholdMessage=this.view.formatLabel(this.threshold)),Object.entries(this.view.setScaleSettings(this.scale)).forEach((function(e){var i=c(e,2),n=i[0],r=i[1];t[n]=r})),this.hideMessage()},move:function(t){this.left+=t,this.scrollContainer.css("left",this.left);var e=this.scrollStart;if(this.imgRange[e]&&this.imgRange[e].left+this.left>-this.scrollBuffer*this.width){var i=this.scrollRange[e].start-1;this.makeImage({scale:this.scale,chr:this.browser.chr,start:i-this.browser.length+1,end:i,left:this.imgRange[e].left,cls:e}),(this.imgRange[e]||{}).left-=this.width,(this.scrollRange[e]||{}).start-=this.browser.length}if(this.imgRange[e]&&this.imgRange[e].right+this.left<this.scrollBuffer*this.width){var n=this.scrollRange[e].end+1;this.makeImage({scale:this.scale,chr:this.browser.chr,start:n,end:n+this.browser.length-1,left:this.imgRange[e].right,cls:e}),(this.imgRange[e]||{}).right+=this.width,(this.scrollRange[e]||{}).end+=this.browser.length}},moveTo:function(t,e,i,n){var r=this.scrollRange[this.scrollStart],o=["ss",t,e,i].join("-");this.scrollRange[o]||e>r.end||i<r.start?(this.resetImageRanges(),this.makeFirstImage(o)):(this.move("number"==typeof n?n:(e-this.browser.start)*this.scale),this.checkHeight())},makeImage:function(t){t.scaledStart=t.scaledStart||t.start*t.scale,t.width=t.width||this.width,t.height=t.height||this.prop("height"),t.featureHeight=t.featureHeight||0,t.labelHeight=t.labelHeight||0;var e,i=this,n=this.browser.jQuery,r=this.browser.length>this.threshold,o=this.imgContainer.clone().addClass("".concat(t.cls," gv-loading").replace(".","_")).css({left:t.left,display:t.cls===this.scrollStart?"block":"none"}),s=!!t.background&&n('<img class="gv-bg">').hide().addClass(t.background).data(t).prependTo(o),a=this.browser.jQuery('<img class="gv-data">').hide().data(t).appendTo(o).on("load",(function(){n(this).fadeIn("fast").parent().removeClass("gv-loading"),n(this).siblings(".gv-bg").show()}));if(t.container=o,this.imgContainers.push(o[0]),this.scrollContainer.append(this.imgContainers),!r&&!this.model.checkDataRange(t.chr,t.start,t.end)){var l=this.prop("dataBuffer");t.start-=l.start,t.end+=l.end,e=this.model.getData(t.chr,t.start,t.end)}return e||(e=n.Deferred(),setTimeout(e.resolve,1)),this.deferreds.push(e),e.done((function(){var e=r?[]:i.model.findFeatures(t.chr,t.start,t.end);i.render(e,a),s&&i.renderBackground(e,s)})).fail((function(t){i.showError(t)}))},makeFirstImage:function(t){var e=this.browser.jQuery,i=e.Deferred();if(this.scrollContainer.children().hide().filter(".".concat(t||this.scrollStart)).show().length)return this.scrollContainer.css("left",0),this.checkHeight(),i.resolve();var n=this,r=this.browser.chr,o=this.browser.start,s=this.browser.end,a=this.browser.length,l=this.scale,c=this.scrollStart,u=[{chr:r,start:o,end:s,scale:l,cls:c,left:0}],f=0,p=this.width;this.browser.isStatic||(o>1&&(u.push({chr:r,start:o-a,end:o-1,scale:l,cls:c,left:-this.width}),f=-this.width,p+=this.width),s<this.browser.getChromosomeSize(r)&&(u.push({chr:r,start:s+1,end:s+a,scale:l,cls:c,left:this.width}),p+=this.width));var d=this.imgContainer.clone().addClass("gv-loading").css({left:f,width:p}).prependTo(this.scrollContainer.css("left",0));function g(){e.when.apply(e,h(u.map((function(t){return n.makeImage(t)})))).done(i.resolve),d.remove()}if(a>this.threshold||this.model.checkDataRange(r,o,s))g();else{var m=this.prop("dataBuffer");this.model.getData(r,o-m.start-a,s+m.end+a).done(g).fail((function(t){n.showError(t)}))}return i},render:function(t,e){var i=e.data();t=this.view.positionFeatures(this.view.scaleFeatures(t,i.scale),i);var n=this.browser.jQuery("<canvas>").attr({width:i.width,height:i.featureHeight||1}),r="separate"===this.prop("labels")&&i.labelHeight?n.clone().attr("height",i.labelHeight):n,o=n[0].getContext("2d"),s=r[0].getContext("2d");switch(o.font=s.font=this.prop("font"),this.prop("labels")){case!1:break;case"overlay":s.textAlign="center",s.textBaseline="middle";break;default:s.textAlign="left",s.textBaseline="top"}this.view.draw(t,o,s,i.scale),e.attr("src",n[0].toDataURL()),s!==o&&e.clone(!0).attr({class:"gv-labels",src:r[0].toDataURL()}).insertAfter(e),this.checkHeight()},renderBackground:function(t,e,i){var n=this.browser.jQuery("<canvas>").attr({width:this.width,height:i||1})[0];this.view.drawBackground(t,n.getContext("2d"),e.data()),e.attr("src",n.toDataURL())},populateMenu:function(t){var e=t.label?t.label[0]:t.id;return function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){l(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({title:e,Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)},Object.entries(t).reduce((function(t,i){var n=c(i,2),r=n[0],o=n[1];return"object"===s(o)||o===e||["chr","start","end","sort"].includes(r)?t:Object.assign(t,l({},r,o))}),{}))},insertPropertiesIntoMenu:function(t,e,i,n){return this.browser.insertPropertiesIntoMenu(t,e,i,n,this.track)},abort:function(){this.deferreds.forEach((function(t){"pending"===t.state()&&t.reject()})),this.deferreds=[]},destroy:function(){this.abort(),this.container.add(this.label).add(this.menus).remove()}})},8455:function(t,e,i){"use strict";i.r(e);var n=i(7145);e.default=n.default.extend({getClickedFeatures:function(t,e){var i=this.base(t,e)[0];return!!i&&this.makeSeqFeatureMenu(i,Math.floor(t/this.scale))},makeSeqFeatureMenu:function(t,e){return t.featureMenus=t.featureMenus||{},t.featureMenus[e]=t.featureMenus[e]||{title:t.sequence.charAt(e-t.start),Location:"".concat(t.chr,":").concat(e)},t.featureMenus[e].title?t.featureMenus[e]:void 0}})},7905:function(t,e,i){"use strict";i.r(e);var n=i(7145);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=n.default.extend({constructor:function(t){if(this.base(t),"function"!=typeof this._makeImage){var e=this.prop("strand"),i=this.prop("featureStrand");if(-1===e)this._makeImage=this.track.makeReverseImage?this.track.makeReverseImage.bind(this):this.makeImage,this.makeImage=function(){};else{e=this.prop("strand",1),this._makeImage=this.makeImage,this.makeImage=this.makeForwardImage;var n=this.track;setTimeout((function(){n.reverseTrack=n.browser.addTrack(n.constructor.extend({id:n.id?"".concat(n.id,"Reverse"):void 0,strand:-1,url:!1,order:"number"==typeof n.orderReverse?n.orderReverse:n.order,forwardTrack:n})),n.controller._deferredReverseTrackImages.forEach((function(t){var e;return(e=n.controller)._makeReverseTrackImage.apply(e,r(t))})),delete n.controller._deferredReverseTrackImages}),1)}i||this.prop("featureStrand",e)}},makeForwardImage:function(t){this._makeReverseTrackImage(t,this._makeImage(t))},_makeReverseTrackImage:function(t,e){var i=this.prop("reverseTrack");i?e&&"function"==typeof e.done?e.done((function(){i.controller._makeImage(t,e)})):i.controller._makeImage(t,e):this._deferredReverseTrackImages=(this._deferredReverseTrackImages||[]).concat([[t,e]])},destroy:function(){this.destroying||(this.destroying=!0,this.browser.removeTrack(this.prop("forwardTrack")||this.prop("reverseTrack")),this.base())}})},4637:function(t,e,i){"use strict";i.r(e);var n=i(7810),r=i.n(n),o=i(702),s=i.n(o),a=i(2940);function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function u(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return d(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=r().extend({dataType:"json",allData:!1,dataBuffer:void 0,xhrFields:void 0,url:void 0,urlParams:void 0,urlParamsGenerator:function(){return{}},data:void 0,dataRequestLimit:void 0,showServerErrors:!1,constructor:function(t){var e=this;Object.entries(t).forEach((function(t){var i=f(t,2),n=i[0],r=i[1];void 0!==r&&(e[n]=r)})),(0,a.Z)(this,"Model"),this.init()},init:function(t){this.setDefaults(t),t&&Object.values(this.featuresById).forEach((function(t){delete t.position})),t&&!this.data||(delete this.dataRangesByChr,delete this.featuresByChr,this.featuresById={},this.setChrProps()),this.dataLoading=[]},setDefaults:function(t){this.dataBuffer=this.dataBuffer||{start:0,end:0},this.urlParams=this.urlParams||this.urlParamsGenerator(),this.xhrFields=this.xhrFields||{},this.dataBufferStart=this.dataBuffer.start,this._url||(this._url=this.url),t&&!this.url&&this._url&&(this.url=this._url)},setChrProps:function(){var t=this.browser.chr;this.dataRangesByChr=this.dataRangesByChr||{},this.featuresByChr=this.featuresByChr||{},this.dataRangesByChr[t]=this.dataRangesByChr[t]||new(s()),this.featuresByChr[t]=this.featuresByChr[t]||new(s())},features:function(t){return this.featuresByChr[t]},dataRanges:function(t){return this.dataRangesByChr[t]},parseURL:function(t,e,i,n){return this.allData&&(e=1,i=this.browser.getChromosomeSize(t)),(n||this.url).replace(/__ASSEMBLY__/,this.browser.assembly).replace(/__CHR__/,t).replace(/__START__/,e).replace(/__END__/,i)},setLabelBuffer:function(t){this.dataBuffer.start=Math.max(this.dataBufferStart,t)},getData:function(t,e,i,n){var r=this,o=this.browser.jQuery;e=Math.max(1,e),i=Math.min(this.browser.getChromosomeSize(t),i);var s=o.Deferred();if(void 0!==this.data)return this.receiveData("function"==typeof this.data.sort?this.data.sort((function(t,e){return t.start-e.start})):this.data,t,e,i),s.resolve();var a=[],l=i-e+1;if(!this.url)return s.resolve();if(this.dataRequestLimit&&l>this.dataRequestLimit)for(var h=Math.ceil(l/this.dataRequestLimit);h--;)a.push([e,h?e+=this.dataRequestLimit-1:i]),e++;else a.push([e,i]);return o.when.apply(o,u(a.map((function(e){var i=o.ajax({url:r.parseURL(t,e[0],e[1]),data:r.urlParams,dataType:r.dataType,xhrFields:r.xhrFields}).then((function(i){r.receiveData(i,t,e[0],e[1])})).catch((function(t,e){for(var i,n=arguments.length,o=new Array(n>2?n-2:0),s=2;s<n;s++)o[s-2]=arguments[s];r.track.controller.showError(r.showServerErrors&&null!==(i=t.responseJSON)&&void 0!==i&&i.message?t.responseJSON.message:"".concat(e," while getting the data, see console for more details"),[t,e].concat(o))})).always((function(){r.dataLoading=r.dataLoading.filter((function(t){return i!==t}))}));return i.coords=[t,e[0],e[1]],"function"==typeof n&&i.done(n),r.dataLoading.push(i),i})))).done(s.resolve),s},receiveData:function(t,e,i,n){i=Math.max(i,1),n=Math.min(n,this.browser.getChromosomeSize(e)),this.setDataRange(e,i,n),this.parseData(t,e,i,n),this.allData&&(this.url=!1)},parseData:function(t,e,i){var n=this;t.forEach((function(t,r){t.chr=t.chr||e,t.sort=i+r,n.insertFeature(t)}))},updateData:function(t){this.data=t,this.track.reset()},setDataRange:function(t,e,i){this.allData&&(e=1,i=this.browser.getChromosomeSize(t)),this.dataRanges(t).insert({x:e,w:i-e+1,y:0,h:1},[e,i])},checkDataRange:function(t,e,i){e=Math.max(1,e),i=Math.min(this.browser.getChromosomeSize(t),i);var n=this.dataRanges(t).search({x:e,w:i-e+1,y:0,h:1}).sort((function(t,e){return t[0]-e[0]}));if(!n.length)return!1;for(var r=1===n.length?n[0][0]:9e99,o=1===n.length?n[0][1]:-9e99,s=0;s<n.length-1;s++){var a=f(n[s],2),l=a[0],h=a[1],c=f(n[s+1],2),u=c[0],p=c[1];if(!(l<=h&&(u>=p||u+1>=h)))return!1;r=Math.min(r,l),o=Math.max(o,u,p)}return e>=r&&i<=o},insertFeature:function(t){if(t.chr){t.id||(t.id=t.ID||this.hashCode(JSON.stringify(h(h({},t),{},{sort:""}))));var e=this.features(t.chr);e&&!this.featuresById[t.id]&&(t.subFeatures&&(t.subFeatures.sort((function(t,e){return t.start-e.start})).forEach((function(e){e.start=Math.min(Math.max(e.start,t.start),t.end),e.end=Math.max(Math.min(e.end,t.end),t.start)})),t.subFeatures.unshift({start:t.start,end:t.start,fake:!0}),t.subFeatures.push({start:t.end,end:t.end,fake:!0})),e.insert({x:t.start,y:0,w:t.end-t.start+1,h:1},t),this.featuresById[t.id]=t)}},findFeatures:function(t,e,i){var n=this,r=this.features(t).search({x:e-this.dataBuffer.start,y:0,w:i-e+this.dataBuffer.start+this.dataBuffer.end+1,h:1});return(this.prop("featureFilters")||[]).forEach((function(t){r=r.filter((function(e){return t.call(n,e)}))})),this.sortFeatures(r)},sortFeatures:function(t){return t.sort((function(t,e){return t.sort-e.sort}))},hashCode:function(t){var e=0;if(t.length)for(var i=0;i<t.length;i++){e=(e<<5)-e+t.charCodeAt(i),e&=e}return String(e)},abort:function(){this.dataLoading.forEach((function(t){return t.abort()})),this.dataLoading=[]},destroy:function(){this.abort(),delete this.data,delete this.dataRangesByChr,delete this.featuresByChr,delete this.featuresById}})},2122:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({dataType:"text",init:function(){this.isLocal&&(this.url=!1),this.largeFile||this.indexFile||(this.allData=!0),this.base.apply(this,arguments)},getData:function(t){var e=this;if(this.isLocal&&this.dataFile){var i=new FileReader,n=this.browser.jQuery.Deferred();return i.onload=function(i){n.done((function(){e.receiveData(i.target.result,t,1,e.browser.getChromosomeSize(t))})).resolve()},i.readAsText(this.dataFile),n}for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return this.base.apply(this,[t].concat(o))}})},8350:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return m}});var n=i(9817),r=i(9408);function o(t,e){this.block=t,this.offset=e}function s(t,e,i){var n=4294967296*(255&t[e+6])+16777216*(255&t[e+5])+65536*(255&t[e+4])+256*(255&t[e+3])+(255&t[e+2]),r=t[e+1]<<8|t[e];return 0!=n||0!=r||i?new o(n,r):null}function a(t,e){e=Math.min(e||1,t.byteLength-50);for(var i=[],n=[0],o=0;n[0]<e;){var s=new Uint8Array(t,n[0],12),a=s[11]<<8|s[10],l=(0,r.Z)(t,12+a+n[0],Math.min(65536,t.byteLength-12-a-n[0]),n);n[0]+=8,o+=l.byteLength,i.push(l)}if(1==i.length)return i[0];for(var h=new Uint8Array(o),c=0,u=0;u<i.length;++u){var f=new Uint8Array(i[u]);arrayCopy(f,0,h,c,f.length),c+=f.length}return h.buffer}function l(t,e){this.minv=t,this.maxv=e}o.prototype.toString=function(){return this.block+":"+this.offset};function h(){}function c(t,e){var i=e,r=(0,n.N1)(t,i);i+=4;for(var o=0;o<r;++o){(0,n.N1)(t,i);i+=8+16*(0,n.N1)(t,i+4)}for(var a=(0,n.N1)(t,i),l=1e9,h=i+=4,c=0;c<a;++c){var u=s(t,h);if(h+=8,u){var f=u.block;u.offset>0&&(f+=65536),f<l&&(l=f);break}}return{minBlockIndex:l,nbin:r,length:(i+=8*a)-e}}function u(t,e,i,r,o){var s=new h;s.data=t,s.bai=e,s.indexChunks=i;var l=s.indexChunks?s.indexChunks.minBlockIndex:1e9;function f(t){if(!t)return r(null,"Couldn't access BAM");var e=a(t,t.byteLength),i=new Uint8Array(e),o=(0,n.N1)(i,0);if(21840194!=o)return r(null,"Not a BAM file, magic=0x"+o.toString(16));for(var l=(0,n.N1)(i,4),h=0;h<l;++h)String.fromCharCode(i[h+8]);var c=(0,n.N1)(i,l+8),u=l+12;s.chrToIndex={},s.indexToChr=[];for(h=0;h<c;++h){for(var f=(0,n.N1)(i,u),p="",d=0;d<f-1;++d)p+=String.fromCharCode(i[u+4+d]);(0,n.N1)(i,u+f+4);s.chrToIndex[p]=h,0==p.indexOf("chr")?s.chrToIndex[p.substring(3)]=h:s.chrToIndex["chr"+p]=h,s.indexToChr.push(p),u=u+8+f}return s.indices?r(s):void 0}if(s.indexChunks){var p=s.indexChunks.chunks;s.indices=[];for(var d=0;d<p.length;d++)s.indices[d]=null;s.data.slice(0,l).fetch(f)}else s.bai.fetch((function(e){var a=function(t){if(!t)return"Couldn't access BAI";var e=new Uint8Array(t),i=(0,n.N1)(e,0);if(21578050!=i)return r(null,"Not a BAI file, magic=0x"+i.toString(16));var o=(0,n.N1)(e,4);s.indices=[];for(var a=8,h=0;h<o;++h){var u=a,f=c(e,u);a+=f.length,l=Math.min(f.minBlockIndex,l),f.nbin>0&&(s.indices[h]=new Uint8Array(t,u,a-u))}return!0}(e);!0!==a?s.bai.url&&void 0===o?(s.bai.url=s.data.url.replace(new RegExp(".bam$"),".bai"),u(t,s.bai,i,r,!0)):r(null,a):s.data.slice(0,l).fetch(f)}))}h.prototype.blocksForRange=function(t,e,i){var r=this.indices[t];if(!r)return[];for(var o=function(t,e){var i,n=[];for(--e,n.push(0),i=1+(t>>26);i<=1+(e>>26);++i)n.push(i);for(i=9+(t>>23);i<=9+(e>>23);++i)n.push(i);for(i=73+(t>>20);i<=73+(e>>20);++i)n.push(i);for(i=585+(t>>17);i<=585+(e>>17);++i)n.push(i);for(i=4681+(t>>14);i<=4681+(e>>14);++i)n.push(i);return n}(e,i),a=[],h=0;h<o.length;++h)a[o[h]]=!0;for(var c=[],u=[],f=(0,n.N1)(r,0),p=4,d=0;d<f;++d){var g=(0,n.N1)(r,p),m=(0,n.N1)(r,p+4);if(p+=8,a[g])for(var v=0;v<m;++v){var y=s(r,p),b=s(r,p+8);(g<4681?u:c).push(new l(y,b)),p+=16}else p+=16*m}var w=(0,n.N1)(r,p),x=null,_=Math.min(e>>14,w-1),k=Math.min(i>>14,w-1);for(h=_;h<=k;++h){var S=s(r,p+4+8*h);S&&((!x||S.block<x.block||S.block==x.block&&S.offset<x.offset)&&(x=S))}var C=[];if(null!=x)for(h=0;h<u.length;++h){var T=u[h];(T.maxv.block>x.block||T.maxv.block==x.block&&T.maxv.offset>=x.offset)&&C.push(T)}u=C;var P=[];for(h=0;h<u.length;++h)P.push(u[h]);for(h=0;h<c.length;++h)P.push(c[h]);P.sort((function(t,e){var i=t.minv.block-e.minv.block;return 0!=i?i:t.minv.offset-e.minv.offset}));var j=[];if(P.length>0){var O=P[0];for(h=1;h<P.length;++h){var A=P[h];A.minv.block==O.maxv.block?O=new l(O.minv,A.maxv):(j.push(O),O=A)}j.push(O)}return j},h.prototype.fetch=function(t,e,i,n,r){var o=this;r=r||{};var s,l=this.chrToIndex[t];if(void 0===l)s=[];else{if(null===this.indices[l]&&this.indexChunks.chunks[l]){var h=this.indexChunks.chunks[l];return this.bai.slice(h[0],h[1]).fetch(function(o){var s=new Uint8Array(o);return this.indices[l]=s,this.fetch(t,e,i,n,r)}.bind(this))}(s=this.blocksForRange(l,e,i))||n(null,"Error in index fetch")}var c,u=[],f=0;!function t(){if(f>=s.length)return n(u);if(c){var h=new Uint8Array(c),p=o.readBamRecords(h,s[f].minv.offset,u,e,i,l,r);return c=null,++f,p?n(u):t()}var d=s[f],g=d.minv.block,m=d.maxv.block+65536;o.data.slice(g,m-g).fetch((function(e){return c=a(e,d.maxv.block-d.minv.block+1),t()}))}()};var f=["=","A","C","x","G","x","x","x","T","x","x","x","x","x","x","N"],p=["M","I","D","N","S","H","P","=","X","?","?","?","?","?","?","?"];function d(){}h.prototype.readBamRecords=function(t,e,i,r,o,s,a){for(;;){var l=e+(0,n.N1)(t,e)+4;if(l>t.length)return!1;var h=new d,c=(0,n.N1)(t,e+4),u=(0,n.N1)(t,e+8),g=(0,n.N1)(t,e+12),m=(65280&g)>>8,v=255&g,y=(0,n.N1)(t,e+16),b=(4294901760&y)>>16,w=65535&y,x=(0,n.N1)(t,e+20),_=(0,n.N1)(t,e+24),k=(0,n.N1)(t,e+28);(0,n.N1)(t,e+32);if(h.segment=this.indexToChr[c],h.flag=b,h.pos=u,h.mq=m,a.light&&(h.seqLength=x),!a.light||a.includeName){for(var S="",C=0;C<v-1;++C)S+=String.fromCharCode(t[e+36+C]);h.readName=S}if(!a.light){_>=0&&(h.nextSegment=this.indexToChr[_],h.nextPos=k);for(var T=e+36+v,P="",j=0;j<w;++j){var O=(0,n.N1)(t,T);P=P+(O>>4)+p[15&O],T+=4}h.cigar=P;var A="",E=x+1>>1;for(C=0;C<E;++C){var M=t[T+C];(A+=f[(240&M)>>4]).length<x&&(A+=f[15&M])}T+=E,h.seq=A;var I="";for(C=0;C<x;++C)I+=String.fromCharCode(t[T+C]+33);for(T+=x,h.quals=I;T<l;){var D,H=String.fromCharCode(t[T],t[T+1]),F=String.fromCharCode(t[T+2]);if("A"==F)D=String.fromCharCode(t[T+3]),T+=4;else if("i"==F||"I"==F)D=(0,n.N1)(t,T+3),T+=7;else if("c"==F||"C"==F)D=t[T+3],T+=4;else if("s"==F||"S"==F)D=(0,n.tq)(t,T+3),T+=5;else if("f"==F)D=(0,n.yl)(t,T+3),T+=7;else if("Z"==F||"H"==F)for(T+=3,D="";;){var R=t[T++];if(0==R)break;D+=String.fromCharCode(R)}else{if("B"!=F)throw"Unknown type "+F;var L,N,z=String.fromCharCode(t[T+3]),B=(0,n.N1)(t,T+4);if("i"==z||"I"==z||"f"==z)L=4,N="f"==z?n.yl:n.N1;else if("s"==z||"S"==z)L=2,N=n.tq;else{if("c"!=z&&"C"!=z)throw"Unknown array type "+z;L=1,N=n.$_}T+=8,D=[];for(var W=0;W<B;++W)D.push(N(t,T)),T+=L}h[H]=D}}if((!r||h.pos<=o&&h.pos+x>=r)&&(void 0!==s&&c!=s||i.push(h)),h.pos>o)return!0;e=l}};var g=function(t,e,i,n,r){t.slice(0,10).fetch((function(o){return o?u(t,e,i,n,r):n(null,"Couldn't access BAM.")}),{timeout:5e3})},m=i(2122).default.extend({getData:function(t,e,i){var r=this,o=this.browser.jQuery.Deferred();if(!this.bamFile)if(this.url)this.bamFile=new n.zn(this.url),this.baiFile=new n.zn(this.url+this.prop("indexExt"));else{if(!this.dataFile||!this.indexFile)return o.reject(new Error("BAM files must be accompanied by a .bai index file"));this.bamFile=new n.PE(this.dataFile),this.baiFile=new n.PE(this.indexFile)}return g(this.bamFile,this.baiFile,null,(function(n,s){s?console.error(s):n.fetch(t,e,i,(function(n,s){s?console.error(s):(r.receiveData(n,t,e,i),o.resolve())}))})),o},insertFeature:function(t){return t.id="".concat(t.chr,":").concat(t.readName,":").concat(t.pos),t.start=t.pos+1,t.end=t.start+t.seq.length,t.sequence=t.seq,this.base(t)}})},4475:function(t,e,i){"use strict";i.r(e);var n=i(2122);function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=n.default.extend({parseData:function(t,e){var i=this,n="string"==typeof t?t.split("\n"):t,r=this.prop("thinHeight"),s=this.prop("thickHeight");function a(t){return!isNaN(t)}n.forEach((function(t){var n=t.split("\t").filter((function(t){return t}));if(!(n.length<3||"track"===n[0]||"browser"===n[0])){var l=n.length;if(n[0]===String(e)||n[0].toLowerCase()==="chr".concat(e)||n[0].match("[^1-9]".concat(e,"$"))){var h={chr:e,start:parseInt(n[1],10)+1,end:parseInt(n[2],10),name:n[3],color:"#000000",originalFeature:n};if(l>3&&(h.score=parseFloat(n[4],10)),l>5&&(h.strand=n[5]),l>7&&(h.thickStart=parseInt(n[6],10)+1,h.thickEnd=parseInt(n[7],10),h.drawThick=n[6]!==n[7]),n[8]?h.color="rgb(".concat(n[8],")"):h.color=i.scoreColor(isNaN(h.score)?1e3:h.score),12===l){h.blockCount=parseInt(n[9],10);var c=[],u=n[10].split(",").filter(a),f=n[11].split(",").filter(a);u.forEach((function(t,e){var i={start:h.start+parseInt(f[e],10),height:r};if(i.end=i.start+parseInt(t,10)-1,h.drawThick&&i.start<=h.thickEnd&&i.end>=h.thickStart)if(i.start>=h.thickStart&&i.end<=h.thickEnd)i.height=s,c.push(i);else if(i.start<h.thickStart&&i.end<=h.thickEnd){var n=o(o({},i),{},{end:h.thickStart}),a=o(o({},i),{},{start:h.thickStart,height:s});c.push.apply(c,[n,a])}else if(i.start>=h.thickStart&&i.end>h.thickEnd){var l=o(o({},i),{},{start:h.thickEnd}),u=o(o({},i),{},{end:h.thickEnd,height:s});c.push.apply(c,[u,l])}else{var p=o(o({},i),{},{end:h.thickStart}),d=o(o({},i),{},{start:h.thickEnd}),g={start:h.thickStart,end:h.thickEnd,height:s};c.push.apply(c,[p,g,d])}else c.push(i)})),c.length&&(h.subFeatures=c)}i.insertFeature(h)}}}))},scoreColor:function(t){return t<=166?"rgb(219,219,219)":t<=277?"rgb(186,186,186)":t<=388?"rgb(154,154,154)":t<=499?"rgb(122,122,122)":t<=611?"rgb(94,94,94)":t<=722?"rgb(67,67,67)":t<=833?"rgb(42,42,42)":t<=944?"rgb(21,21,21)":"#000000"}})},7699:function(t,e,i){"use strict";i.r(e);var n=i(2122);e.default=n.default.extend({parseData:function(t,e){var i=this;t.split("\n").forEach((function(t){if(t.length&&0!==t.indexOf("#")){var n=t.split("\t");if(!(n.length<5)){var r=n[0].toLowerCase();(r===String(e)||r==="chr".concat(e)||r.match("[^1-9]".concat(e,"$"))||r.match("^".concat(e,"\\b")))&&i.insertFeature({id:n.slice(0,5).join("|"),chr:e,start:parseInt(n[3],10),end:parseInt(n[4],10),source:n[1],type:n[2],score:n[5],strand:"-"===n[6]?-1:1,label:"".concat(n[1]," ").concat(n[2]," ").concat(n[3],"-").concat(n[4])})}}}))}})},2743:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return f}});var n=i(4191),r=i.n(n),o=i(9408);r().prototype.structure.uint64=function(){return parseInt(this.view.getUint64(),10)};var s={string0:function(t){return this.parse(["string",t]).replace(/\0+$/,"")},header:{magic:["string",4],n_ref:"int32",format:"int32",col_seq:"int32",col_beg:"int32",col_end:"int32",meta:"int32",skip:"int32",l_nm:"int32",names:["string0",function(){return this.current.l_nm}]},chunk:{cnk_beg:"uint64",cnk_end:"uint64"},bin:{bin:"uint32",n_chunk:"int32",chunkseq:["array","chunk",function(){return this.current.n_chunk}]},index:{n_bin:"int32",binseq:["array","bin",function(){return this.current.n_bin}],n_intv:"int32",intervseq:["array","uint64",function(){return this.current.n_intv}]},tabix:{head:"header",indexseq:["array","index",function(){return this.current.head.n_ref}]}},a={header:{id1:"uint8",id2:"uint8",cm:"uint8",flg:"uint8",mtime:"uint32",xfl:"uint8",os:"uint8",xlen:"uint16"},subheader:{si1:"uint8",si2:"uint8",slen:"uint16",bsize:"uint16"},bgzfHd:{head:"header",subhead:"subheader"}},l=65536,h=function(t,e){this.vcf_data=t,this.tbi_data=e};h.prototype.readTabix=function(t){var e=function(t){var e={},i=0;for(var n in t)e[t[n].bin]=i,i++;return e};this.inflateRegion(this.tbi_data,0,1e8,(function(i){var n=new(r())(i,s).parse("tabix");n.head.names=n.head.names.split("\0"),n.bhash={};for(var o=0;o<n.head.n_ref;o++)n.bhash[o]=e(n.indexseq[o].binseq);t(n)}))},h.prototype.getRecords=function(t,e,i,n){var r=this,o=[],s=this.getChunks(t,e,i);if(-1===s)return n([]);!function t(a){a<s.length?r.inflateRegion(r.vcf_data,s[a].start,s[a].end,(function(n,l){var h=n.byteLength-l+s[a].inner_end;(n=r.buffer2String(n).slice(s[a].inner_start,h)).length>0&&(n=n.split("\n").filter((function(t){if(t.length>0){var n=parseInt(t.split("\t")[1],10);return e<=n&&n<=i}return!1})).join("\n"),o.push(n)),t(++a)})):n(o.join("\n"))}(0)},h.prototype.getChunks=function(t,e,i){var n=this,r=this.tabix;if(-1===(t=r.head.names.indexOf(t.toString())))return-1;var o=this.reg2bins(e,i+1).filter((function(e){return void 0!==r.bhash[t][e]})).map((function(e){return n.bin2Ranges(r,t,e)})).reduce((function(t,e){return e.forEach((function(e){t.push(e)})),t}),[]);return o=this.remove_duplicates(o)},h.prototype.inflateRegion=function(t,e,i,n){var r=this,o=[];this.inflateBlock(t,e,(function e(s,a){o.push(s),-1===a?n(r.appendBuffers(o),o[o.length-1].byteLength):a<=i?r.inflateBlock(t,a,e):n(r.appendBuffers(o),o[o.length-1].byteLength)}))},h.prototype.inflateBlock=function(t,e,i){this.getBGZFHD(t,e,(function(n){t.slice(e,n.subhead.bsize+1).fetch((function(t){var r=(0,o.Z)(t,18,t.byteLength-18),s=e+n.subhead.bsize+1;27===n.subhead.bsize&&(s=-1),i(r,s)}))}))},h.prototype.getBGZFHD=function(t,e,i){t.slice(e,19).fetch((function(t){var e=new(r())(t,a).parse("bgzfHd");i(e)}))},h.prototype.appendBuffers=function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i].byteLength;for(var n=new Uint8Array(e),r=0,o=0;o<t.length;o++)n.set(new Uint8Array(t[o]),r),r+=t[o].byteLength;return n.buffer},h.prototype.buffer2String=function(t){for(var e="",i=new Uint8Array(t),n=0;n<i.length;++n)e+=String.fromCharCode(i[n]);return e},h.prototype.remove_duplicates=function(t){for(var e={},i=t.length-1;i>=0;i--){var n=JSON.stringify(t[i]);e[n]?t.splice(i,1):e[n]=!0}return t},h.prototype.bin2Ranges=function(t,e,i){for(var n,r=[],o=t.indexseq[e].binseq[t.bhash[e][i]].chunkseq,s=0;s<o.length;s++)n=o[s],r.push({start:Math.floor(n.cnk_beg/l),inner_start:n.cnk_beg%l,end:Math.floor(n.cnk_end/l),inner_end:n.cnk_end%l});return r},h.prototype.reg2bins=function(t,e){var i,n=[];for(--e,n.push(0),i=1+(t>>26);i<=1+(e>>26);++i)n.push(i);for(i=9+(t>>23);i<=9+(e>>23);++i)n.push(i);for(i=73+(t>>20);i<=73+(e>>20);++i)n.push(i);for(i=585+(t>>17);i<=585+(e>>17);++i)n.push(i);for(i=4681+(t>>14);i<=4681+(e>>14);++i)n.push(i);return n};var c=h,u=i(9817),f=i(2122).default.extend({getData:function(t,e,i,n){var r=this;if(!this.prop("gz"))return this.base(t,e,i,n);var o=this.browser.jQuery.Deferred();if(!this.vcfFile)if(this.url)this.vcfFile=new u.zn(this.url),this.tbiFile=new u.zn(this.url+this.prop("indexExt"));else{if(!this.dataFile||!this.indexFile)return o.reject(new Error("GZipped VCF files must be accompanied by a .tbi index file"));this.vcfFile=new u.PE(this.dataFile),this.tbiFile=new u.PE(this.indexFile)}return this.makeVCF(this.vcfFile,this.tbiFile).then((function(n){r.cachedVCF=n,n.getRecords(t,e,i,(function(n){r.receiveData(n,t,e,i),o.resolve()}))})),o},makeVCF:function(t,e){var i=this.browser.jQuery.Deferred();if(this.cachedVCF)i.resolve(this.cachedVCF);else{var n=new c(t,e);n.readTabix((function(t){n.tabix=t,i.resolve(n)}))}return i},parseData:function(t,e){var i=this,n=t.split("\n"),r=!!this.allData&&(this.prop("maxQual")||0);n.forEach((function(t){if(t.length&&0!==t.indexOf("#")){var n=t.split("\t");if(!(n.length<5||n[0]!==String(e)&&n[0]!=="chr".concat(e))){var o=n.slice(0,3).join("|"),s=parseInt(n[1],10),a=n[4].split(",");a.unshift(n[3]),a.forEach((function(t,r){var a=s+t.length-1;i.insertFeature({id:"".concat(o,"|").concat(t),sort:r,chr:e,start:s,end:a,width:a-s,allele:0===r?"REF":"ALT",sequence:t,label:t,labelColor:"#FFFFFF",originalFeature:n})})),!1!==r&&(r=Math.max(r,n[5]))}}})),r&&this.prop("maxQual",r)}})},9486:function(t,e,i){"use strict";i.r(e);var n=i(4176),r=i(2122);e.default=n.Model.extend({dataType:"text",getData:function(){var t;return this.url?this.base.apply(this,arguments):(this.isLocal=!0,this.dataFile=this.track.dataFile,(t=r.default.prototype).getData.apply(t,arguments))},parseData:function(t,e,i,n){for(var r,o=t.split("\n"),s=[];o.length&&(r=o.shift())&&(-1!==r.indexOf("#")||-1!==r.indexOf("browser")||-1!==r.indexOf("track")););if(r){var a=r.split(/\s+/),l=parseInt(a[1].split("=")[1].replace("chr",""),10);if("fixedStep"===a[0]){var h=parseInt(a[3].split("=")[1],10),c=a[4]?parseInt(a[4].split("=")[1],10):1,u=parseInt(a[2].split("=")[1],10);o.forEach((function(t){s.push({chr:l,start:u,end:u+c,height:parseFloat(t)}),u+=h}))}else if("variableStep"===a[0]){var f=a[2]?parseInt(a[2].split("=")[1],10):1;o.forEach((function(t){var e=t.split(/\s+/),i={chr:l,start:parseInt(e[0],10),height:parseFloat(e[1])};i.end=i.start+f,s.push(i)}))}}return this.base.call(this,s,e,i,n)}})},432:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({})},2865:function(t,e,i){"use strict";i.r(e);var n=i(432);e.default=n.default.extend({url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=gene;content-type=application/json",dataRequestLimit:5e6,parseData:function(t,e){var i=this;t.forEach((function(t){"gene"!==t.feature_type||i.featuresById[t.id]||(t.chr=t.chr||e,t.label=1===parseInt(t.strand,10)?"".concat(t.external_name||t.id," >"):"< ".concat(t.external_name||t.id),t.transcripts=[],i.insertFeature(t))}))}})},2051:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({threshold:1e5,chunkSize:1e3,buffer:0,dataType:"text",setChrProps:function(){var t=this.browser.chr;this.base(),this.chunksByChr=this.chunksByChr||{},this.chunksByChr[t]=this.chunksByChr[t]||{}},getData:function(t,e,i){return e=e-e%this.chunkSize+1,i=i+this.chunkSize-i%this.chunkSize,this.base(t,e,i)},parseData:function(t,e,i){t=t.replace(/\n/g,""),this.prop("lowerCase")&&(t=t.toLowerCase());for(var n=0;n<t.length;n+=this.chunkSize)if(!this.chunksByChr[e][i+n]){var r={id:"".concat(e,":").concat(i,":").concat(n),chr:e,start:i+n,end:i+n+this.chunkSize-1,sequence:t.substr(n,this.chunkSize),sort:i+n};this.chunksByChr[e][r.start]=r,this.insertFeature(r)}}})},8583:function(t,e,i){"use strict";i.r(e);var n=i(2051);e.default=n.default.extend({url:"//rest.ensembl.org/sequence/region/human/__CHR__:__START__-__END__?content-type=text/plain",dataRequestLimit:1e7})},8970:function(t,e,i){"use strict";i.r(e);var n=i(2051);e.default=n.default.extend({url:"https://wtsi-web.github.io/Genoverse/data/Homo_sapiens.GRCh37.72.dna.chromosome.1.fa",startByte:void 0,lineLength:void 0,getData:function(t,e,i){var n=this,r=this.browser.jQuery,o=r.Deferred();return r.when(this.getStartByte()).done((function(){e=e-e%n.chunkSize+1,i=i+n.chunkSize-i%n.chunkSize;var s=e-1+Math.floor((e-1)/n.lineLength)+n.startByte,a=i-1+Math.floor((i-1)/n.lineLength)+n.startByte;r.ajax({url:n.parseURL(),dataType:n.dataType,headers:{Range:"bytes=".concat(s,"-").concat(a)},xhrFields:n.xhrFields,success:function(r){n.receiveData(r,t,e,i)},error:n.track.controller.showError}).done((function(){o.resolve()})).fail((function(){o.reject()}))})).fail((function(){o.reject()})),o},getStartByte:function(){var t=this;return this.startByteRequest?this.startByteRequest:void 0===this.startByte||void 0===this.lineLength?(this.startByteRequest=this.browser.jQuery.ajax({url:this.parseURL(),dataType:"text",headers:{Range:"bytes=0-300"},xhrFields:this.xhrFields,success:function(e){0===e.indexOf(">")?t.startByte=e.indexOf("\n")+1:t.startByte=0,t.lineLength=e.indexOf("\n",t.startByte)-t.startByte}}),this.startByteRequest):void 0}})},4914:function(t,e,i){"use strict";i.r(e);var n=i(4637),r=i(8583);function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function s(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=n.default.extend({seqModel:r.default,getSeqModel:function(){var t=this.prop("models");return t.seq=t.seq||this.track.newMVC(this.seqModel),t.seq},getData:function(t,e,i){var n=this,r=this.browser.jQuery.Deferred(),o=this.getSeqModel().checkDataRange(t,e,i);return this.base(t,e,i).done((function(){o?r.resolve():n.getSeqModel().getData(t,e,i).done(r.resolve)})),r},insertFeature:function(t){return this.base(s(s({},t),{},{end:t.start+t.alt_allele.length-1,length:t.alt_allele.length,sequence:t.alt_allele}))},checkDataRange:function(t,e,i){return this.base(t,e,i)&&this.getSeqModel().checkDataRange(t,e,i)},findFeatures:function(t,e,i){return this.getSeqModel().findFeatures(t,e,i).concat(this.base(t,e,i))}})},6637:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({init:function(t){if(this.base(t),!t){var e=this.prop("forwardTrack");e&&(this.featuresByChr=e.prop("featuresByChr"),this.features=e.prop("features"),this.featuresById=e.prop("featuresById"))}},parseURL:function(){return this.urlParams.strand||(this.urlParams.strand=this.prop("featureStrand")),this.base.apply(this,arguments)},findFeatures:function(){var t=this.track.featureStrand;return this.base.apply(this,arguments).filter((function(e){return e.strand===t}))}})},9875:function(t,e,i){"use strict";i.r(e);var n=i(4637);e.default=n.default.extend({})},3814:function(t,e,i){"use strict";i.r(e);var n=i(9875);function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){s(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=n.default.extend({url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=transcript;feature=exon;feature=cds;content-type=application/json",dataRequestLimit:5e6,setDefaults:function(){this.geneIds={},this.seenGenes=0,this.base.apply(this,arguments)},parseData:function(t,e){var i=this,n=this.featuresById,r=[];t.filter((function(t){return"transcript"===t.feature_type})).forEach((function(t,o){n[t.id]||(i.geneIds[t.Parent]=i.geneIds[t.Parent]||++i.seenGenes,t.chr=t.chr||e,t.label=1===parseInt(t.strand,10)?"".concat(t.external_name||t.id," >"):"< ".concat(t.external_name||t.id),t.sort=1e10*i.geneIds[t.Parent]+(0===t.logic_name.indexOf("ensembl_havana")?0:2e9)+("protein_coding"===t.biotype?0:1e9)+t.start+o,t.cdsStart=Infinity,t.cdsEnd=-Infinity,t.exons={},t.subFeatures=[],i.insertFeature(t)),r.push(t.id)})),t.filter((function(t){return"cds"===t.feature_type&&n[t.Parent]})).forEach((function(t){n[t.Parent].cdsStart=Math.min(n[t.Parent].cdsStart,t.start),n[t.Parent].cdsEnd=Math.max(n[t.Parent].cdsEnd,t.end)})),t.filter((function(t){return"exon"===t.feature_type&&n[t.Parent]&&!n[t.Parent].exons[t.id]})).forEach((function(t){t.end<n[t.Parent].cdsStart||t.start>n[t.Parent].cdsEnd?n[t.Parent].subFeatures.push(o({utr:!0},t)):(t.start<n[t.Parent].cdsStart&&n[t.Parent].subFeatures.push(o(o({utr:!0},t),{},{end:n[t.Parent].cdsStart})),n[t.Parent].subFeatures.push(o(o({},t),{},{start:Math.max(t.start,n[t.Parent].cdsStart),end:Math.min(t.end,n[t.Parent].cdsEnd),strand:n[t.Parent].strand})),t.end>n[t.Parent].cdsEnd&&n[t.Parent].subFeatures.push(o(o({utr:!0},t),{},{start:n[t.Parent].cdsEnd})))})),r.forEach((function(t){return n[t].subFeatures.sort((function(t,e){return t.start-e.start}))}))}})},4112:function(t,e,i){"use strict";i.r(e);var n=i(7810),r=i.n(n),o=i(702),s=i.n(o),a=i(2940);function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function u(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(t){if("string"==typeof t)return d(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=r().extend({fontHeight:10,fontFamily:"sans-serif",fontWeight:"normal",fontColor:void 0,color:"#000000",minScaledWidth:.5,precisionFactor:0,widthCorrection:1,labels:!0,repeatLabels:!1,bump:!1,alwaysReposition:!1,depth:void 0,featureHeight:void 0,featureMargin:void 0,subFeatureJoinStyle:!1,subFeatureJoinLineWidth:.5,constructor:function(t){var e=this;Object.entries(t).forEach((function(t){var i=f(t,2),n=i[0],r=i[1];void 0!==r&&(e[n]=r)})),(0,a.Z)(this,"View"),this.init()},init:function(){this.setDefaults(),this.scaleSettings={}},setDefaults:function(){var t=this;this.featureMargin=this.featureMargin||{top:3,right:1,bottom:1,left:0},["top","right","bottom","left"].forEach((function(e){"number"!=typeof t.featureMargin[e]&&(t.featureMargin[e]=0)})),this.context=this.browser.jQuery("<canvas>")[0].getContext("2d"),this.featureHeight=void 0!==this.featureHeight?this.featureHeight:this.prop("defaultHeight"),this.font="".concat(this.fontWeight," ").concat(this.fontHeight,"px ").concat(this.fontFamily),this.labelUnits=["bp","kb","Mb","Gb","Tb"],this.context.font=this.font,this.labels&&"overlay"!==this.labels&&(this.depth||"labels"===this.bump)&&(this.labels="separate")},setScaleSettings:function(t){var e=this.browser.chr;if(this.scaleSettings[e]||(this.scaleSettings[e]={}),!this.scaleSettings[e][t]){var i=new(s());this.scaleSettings[e][t]={imgContainers:this.browser.jQuery(),featurePositions:i,labelPositions:"separate"===this.labels?new(s()):i}}return this.scaleSettings[e][t]},roundPixelValue:function(t){return this.precisionFactor?Math.round(t*this.precisionFactor)/this.precisionFactor:t},scaleFeatures:function(t,e){var i=this,n=this.roundPixelValue(Math.max(e,this.widthCorrection));return t.forEach((function(t){t.position||(t.position={}),t.position[e]||(t.position[e]={start:i.roundPixelValue(t.start*e),width:Math.max(i.roundPixelValue((t.end-t.start)*e+n),i.minScaledWidth),height:t.height||i.featureHeight}),t.subFeatures&&(t.subFeatures.forEach((function(i){void 0===i.height&&(i.height=t.position[e].height)})),i.scaleFeatures(t.subFeatures,e))})),t},positionFeatures:function(t,e){var i=this;return e.margin=this.prop("margin"),t.forEach((function(t){return i.positionFeature(t,e)})),e.width=Math.ceil(e.width),e.height=Math.ceil(e.height),e.featureHeight=Math.max(Math.ceil(e.featureHeight),this.prop("resizable")?Math.max(this.prop("height"),this.prop("minLabelHeight")):0),e.labelHeight=Math.ceil(e.labelHeight),t},positionFeature:function(t,e){var i=this,n=e.scale,r=this.scaleSettings[t.chr][n];if(r){var o=t.subFeatures||[];if(t.position[n].X=t.position[n].start-e.scaledStart,o.forEach((function(t){t.position[n].x=t.position[n].start-e.scaledStart,i.subFeatureJoinStyle&&(t.position[n].join=t.position[n].join||{},t.position[n].join.x=t.position[n].start+t.position[n].width-e.scaledStart)})),this.alwaysReposition||!t.position[n].positioned){if(t.position[n].H=t.position[n].height+this.featureMargin.bottom,t.position[n].W=t.position[n].width+(t.marginRight||this.featureMargin.right),t.position[n].Y=("number"==typeof t.position[n].y?t.position[n].y:"number"==typeof t.y?t.y*t.position[n].H:0)+(t.marginTop||this.featureMargin.top),t.label){"string"==typeof t.label&&(t.label=t.label.split("\n"));var s=this.context;t.labelHeight=t.labelHeight||(this.fontHeight+2)*t.label.length,t.labelWidth=t.labelWidth||Math.max.apply(Math,u(t.label.map((function(t){return Math.ceil(s.measureText(t).width)}))))+1,!0===this.labels?(t.position[n].H+=t.labelHeight,t.position[n].W=Math.max(t.labelWidth,t.position[n].W)):"separate"!==this.labels||t.position[n].label||(t.position[n].label={x:t.position[n].start,y:t.position[n].Y,w:t.labelWidth,h:t.labelHeight})}var a={x:t.position[n].start,y:t.position[n].Y,w:t.position[n].W,h:t.position[n].H+(t.marginTop||this.featureMargin.top)};t.position[n].bounds=a,!0===this.bump&&this.bumpFeature(a,t,n,r.featurePositions),r.featurePositions.insert(a,t),t.position[n].bottom=t.position[n].Y+a.h+e.margin,t.position[n].positioned=!0}var l=!(!this.subFeatureJoinStyle||!o.length)&&{height:Math.max.apply(Math,u(o.map((function(t){return t.fake?0:t.position[n].height}))))/2*(t.strand>0?-1:1),y:t.position[n].Y+t.position[n].height/2};o.forEach((function(e,i){e.position[n].y=t.position[n].Y+(t.position[n].height-e.position[n].height)/2,l&&o[i+1]&&Object.assign(e.position[n].join,h({width:o[i+1].position[n].x-e.position[n].join.x},l))})),"separate"===this.labels&&t.position[n].label&&(!this.alwaysReposition&&t.position[n].label.positioned||(this.bumpFeature(t.position[n].label,t,n,r.labelPositions),t.position[n].label.bottom=t.position[n].label.y+t.position[n].label.h+e.margin,t.position[n].label.positioned=!0,r.labelPositions.insert(t.position[n].label,t)),e.labelHeight=Math.max(e.labelHeight,t.position[n].label.bottom)),e.featureHeight=Math.max(e.featureHeight,t.position[n].bottom),e.height=Math.max(e.height,e.featureHeight+e.labelHeight)}},bumpFeature:function(t,e,i,n){for(var r=this.scaleSettings[e.chr][i],o=n===r.labelPositions&&n!==r.featurePositions,s=!0,a=0;s;){if(this.depth&&++a>=this.depth){if(!o)for(var l=r.featurePositions.search(t),h=l.length;h--;)if(!1!==l[h].position[i].visible){e.position[i].visible=!1;break}break}var c=n.search(t)[0];c&&c.id!==e.id?t.y=c.position[i][o?"label":"bounds"].y+c.position[i][o?"label":"bounds"].h:s=!1}o||(e.position[i].Y=t.y)},draw:function(t,e,i,n){var r=this;t.forEach((function(t){if(!1!==t.position[n].visible){var o=h(h({},t),{},{x:t.position[n].X,y:t.position[n].Y,width:t.position[n].width,height:t.position[n].height,labelPosition:t.position[n].label});r.drawFeature(o,e,i,n),o.legend!==t.legend&&(t.legend=o.legend,t.legendColor=o.color)}}))},drawFeature:function(t,e,i,n){!1===t.color||t.color||this.setFeatureColor(t),t.subFeatures?this.drawSubFeatures(t,e,i,n):((t.x<0||t.x+t.width>this.width)&&this.truncateForDrawing(t),!1!==t.color&&(e.fillStyle=t.color,e.fillRect(t.x,t.y,t.width,t.height)),!0===t.clear&&e.clearRect(t.x,t.y,t.width,t.height),t.borderColor&&(e.strokeStyle=t.borderColor,e.strokeRect(t.x,Math.floor(t.y)+.5,t.width,t.height))),this.labels&&t.label&&this.drawLabel(t,i,n),t.decorations&&this.decorateFeature(t,e,n)},drawSubFeatures:function(t,e,i,n){var r=this,o=this.browser.jQuery.extend(!0,{},t,{subFeatures:!1,label:!1}),s=this.browser.jQuery.extend(!0,[],t.subFeatures),a=t.joinColor||t.color;s.forEach((function(t){t.fake||r.drawFeature(h(h(h({},o),t.position[n]),t),e,i,n),t.position[n].join&&t.position[n].join.width>0&&r.drawSubFeatureJoin(h({color:a},t.position[n].join),e)}))},drawLabel:function(t,e,i){var n=this,r=t.untruncated,o=(r||t).width;if(!("overlay"===this.labels&&t.labelWidth>=Math.floor(o))){t.labelPosition&&(e.labelPositions=e.labelPositions||new(s())),"string"==typeof t.label&&(t.label=[t.label]);var a,l,h,c=(r||t).x,u=this.repeatLabels&&Math.ceil((o-Math.max(i,1)-("overlay"===this.labels?t.labelWidth:0))/this.width)||1,f=o/u;this.repeatLabels&&(i>1||"overlay"!==this.labels)&&(f=this.browser.length*i,u=Math.ceil(o/f)),t.labelColor||this.setLabelColor(t),e.fillStyle=t.labelColor,"overlay"===this.labels?(a=[t.label.join(" ")],l=t.y+(t.height+1)/2,h=0):(a=t.label,l=t.labelPosition?t.labelPosition.y:t.y+t.height+this.featureMargin.bottom,h=this.fontHeight+2);var p="center"===e.textAlign?.5:0,d=t.labelWidth*p;u>1&&(p+=Math.max(Math.floor(-(t.labelWidth+c)/f),0));for(var g=function(){var r=c+p*f;if(r+t.labelWidth>=0){if(r-d>n.width||p>=1&&r+t.labelWidth>t.position[i].X+t.position[i].width)return"break";a.forEach((function(n,o){var s=l+o*h;e.labelPositions&&e.labelPositions.search({x:r,y:s,w:t.labelWidth,h:h}).length?t.position[i].label.visible=!1:(e.fillText(n,r,s),e.labelPositions&&e.labelPositions.insert({x:r,y:s,w:t.labelWidth,h:h},n))}))}};p<u;p++){if("break"===g())break}}},setFeatureColor:function(t){t.color=this.color},setLabelColor:function(t){t.labelColor=this.fontColor||t.color||this.color},shadeColor:function(t,e){var i=parseInt(t.slice(1),16),n=i>>16,r=i>>8&255,o=255&i;return"#".concat((16777216+65536*(Math.round((255-n)*e)+n)+256*(Math.round((255-r)*e)+r)+(Math.round((255-o)*e)+o)).toString(16).slice(1))},truncateForDrawing:function(t){var e=Math.min(Math.max(t.x,-1),this.width+1),i=t.x-e+t.width;i+e>this.width&&(i=this.width-e+1),t.untruncated={x:t.x,width:t.width},t.x=e,t.width=Math.max(i,0)},drawSubFeatureJoin:function(t,e){var i=this.truncateSubFeatureJoinForDrawing(t);if(i){var n=e.lineWidth;switch(e.strokeStyle=t.color,e.lineWidth=this.subFeatureJoinLineWidth,e.beginPath(),e.moveTo(i.x1,i.y1),this.subFeatureJoinStyle){case"line":e.lineTo(i.x3,i.y1);break;case"peak":e.lineTo(i.x2,i.y2),e.lineTo(i.x3,i.y3);break;case"curve":e.quadraticCurveTo(i.x2,i.y2,i.x3,i.y3)}e.stroke(),e.lineWidth=n}},truncateSubFeatureJoinForDrawing:function(t){var e=t.y,i=e;"line"===this.subFeatureJoinStyle&&(this.truncateForDrawing(t),e+=.5);var n,r,o=t.x,s=t.x+t.width;if(s<0||o>this.width)return!1;if("peak"===this.subFeatureJoinStyle){var a=(o+s)/2;n=a;var l=((r=t.y+t.height)-e)/(a-o);a<0?(r=t.y+l*s,n=0):a>this.width&&(r=t.y+l*(this.width-t.x),n=this.width),o<0&&(e=a<0?r:t.y-l*t.x,o=0),s>this.width&&(i=a>this.width?r:r-l*(this.width-n),s=this.width)}else"curve"===this.subFeatureJoinStyle&&(n=t.x+t.width/2,r=t.y+t.height);return{x1:o,y1:e,x2:n,y2:r,x3:s,y3:i}},formatLabel:function(t){var e=Math.floor((t.toString().length-1)/3),i=this.labelUnits[e];return t/=Math.pow(10,3*e),"".concat(Math.floor(t)).concat("bp"===i?"":".".concat((t.toString().split(".")[1]||"").concat("00").substring(0,2))," ").concat(i)},drawBackground:function(){},decorateFeature:function(){},destroy:function(){delete this.scaleSettings}})},5600:function(t,e,i){"use strict";i.r(e);var n=i(4112);e.default=n.default.extend({featureHeight:5,labels:!0,repeatLabels:!0,bump:!0})},1766:function(t,e,i){"use strict";i.r(e);var n=i(5600);e.default=n.default.extend({setFeatureColor:function(t){t.color="#000000",0===t.logic_name.indexOf("ensembl_havana")?(t.color="#CD9B1D",t.labelColor="#B78000",t.legend="Merged Ensembl/Havana"):!{sense_intronic:1,sense_overlapping:1,processed_transcript:1,nonsense_mediated_decay:1,non_stop_decay:1,antisense:1,retained_intron:1,tec:1,non_coding:1,ambiguous_orf:1,disrupted_domain:1,"3prime_overlapping_ncrna":1}[t.biotype.toLowerCase()]?"protein_coding"===t.biotype?(t.color="#A00000",t.legend="Protein coding"):t.biotype.indexOf("pseudogene")>-1?(t.color="#666666",t.legend="Pseudogene"):/rna/i.test(t.biotype)||"ribozyme"===t.biotype?(t.color="#8B668B",t.legend="RNA gene"):/^tr_.+_gene$/i.test(t.biotype)?(t.color="#CD6600",t.legend="TR gene"):/^ig_.+_gene$/i.test(t.biotype)&&(t.color="#8B4500",t.legend="IG gene"):(t.color="#0000FF",t.legend="Processed transcript"),t.labelColor=t.labelColor||t.color}})},2703:function(t,e,i){"use strict";i.r(e);var n=i(4112);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=n.default.extend({featureMargin:{top:0,right:0,bottom:0,left:0},colors:{default:"#CCCCCC",A:"#73E973",T:"#DE4C61",G:"#FFFF77",C:"#688EC0"},labelColors:{default:"#000000",T:"#FFFFFF",C:"#FFFFFF"},labels:"overlay",setDefaults:function(){this.base.apply(this,arguments);var t=this.prop("lowerCase");this.labelYOffset="number"==typeof this.labelYOffset?this.labelYOffset:(this.featureHeight+1)/2,this.widestLabel="string"==typeof this.widestLabel?this.widestLabel:t?"g":"G",this.labelWidth={},this.labelWidth[this.widestLabel]=Math.ceil(this.context.measureText(this.widestLabel).width)+1,t&&[this.colors,this.labelColors].forEach((function(t){return Object.entries(t).forEach((function(e){var i=r(e,2),n=i[0],o=i[1];t[n.toLowerCase()]=o}))}))},draw:function(t,e,i,n){var r=this;e.textBaseline="middle",e.textAlign="center";var o=Math.max(n,this.minScaledWidth);t.forEach((function(t){return r.drawSequence(t,e,n,o)}))},drawSequence:function(t,e,i,n){for(var r=this.labelWidth[this.widestLabel]<n-1,o=0;o<t.sequence.length;o++){var s=t.position[i].X+o*i;if(!(s<-i||s>e.canvas.width)){var a=t.sequence.charAt(o);e.fillStyle=this.colors[a]||this.colors.default,e.fillRect(s,t.position[i].Y,n,this.featureHeight),r&&(e.fillStyle=this.labelColors[a]||this.labelColors.default,e.fillText(a,s+n/2,t.position[i].Y+this.labelYOffset))}}}})},3224:function(t,e,i){"use strict";i.r(e);var n=i(2703);e.default=n.default.extend({featureHeight:15,featureMargin:{top:0,right:0,bottom:4,left:0},bump:!0,showLegend:!1,positionFeature:function(t,e){var i=t.position[e.scale];t.alt_allele&&(i.positioned||(i.reference={end:i.start+t.ref_allele.length*e.scale}),i.reference.x=i.reference.end-e.scaledStart),this.base(t,e)},bumpFeature:function(t,e){if(e.alt_allele){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];this.base.apply(this,[t,e].concat(n))}},draw:function(t,e,i,n){var r={seq:[],snv:[]};t.forEach((function(t){r[t.alt_allele?"snv":"seq"].push(t)})),this.base(r.seq,e,i,n),this.highlightSNVs(r.snv,e,n),this.base(r.snv,e,i,n),this.outlineSNVs(r.snv,e,n)},highlightSNVs:function(t,e,i){var n=this;t.forEach((function(t){var r=t.position[i],o=[r.X,r.reference.x,r.X+r.width];if(!(o[2]<0||o[0]>n.width)){(o[0]<0||o[2]>n.width)&&n.truncateForDrawing(o);var s=[0,r.Y-n.featureMargin.bottom/2,r.Y,r.Y+n.featureHeight];t.highlightColor||n.setHighlightColor(t),e.strokeStyle=e.fillStyle=t.highlightColor,e.lineWidth=2,e.beginPath(),e.moveTo(o[0],s[0]),e.lineTo(o[1],s[0]),e.lineTo(o[1],s[1]),e.lineTo(o[2],s[2]),e.lineTo(o[2],s[3]),e.lineTo(o[0],s[3]),e.closePath(),e.stroke(),e.lineWidth=1,e.globalAlpha=.5,e.fill(),e.globalAlpha=1}}))},outlineSNVs:function(t,e,i){var n=this;t.forEach((function(t){var r=t.position[i],o=[r.X,r.X+r.width],s=[r.Y,r.Y+n.featureHeight];e.strokeStyle=t.highlightColor,e.lineWidth=2,e.beginPath(),e.moveTo(o[1],s[0]),e.lineTo(o[1],s[1]),e.lineTo(o[0],s[1]),e.lineTo(o[0],s[0]),e.stroke(),e.lineWidth=1}))},truncateForDrawing:function(t){for(var e=0;e<t.length;e++)t[e]=Math.min(Math.max(t[e],-1),this.width+1)},setHighlightColor:function(t){t.highlightColor="-"===t.alt_allele||t.alt_allele.length<t.ref_allele.length?"#D31D00":"#1DD300"}})},521:function(t,e,i){"use strict";i.r(e);var n=i(4112);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=n.default.extend({featureHeight:12,utrHeight:7,labels:!0,repeatLabels:!0,bump:!0,subFeatureJoinStyle:"curve",scaleFeatures:function(t,e){var i=this;return t.forEach((function(t){var e=t.subFeatures||[];e.length&&(e.forEach((function(t){t.utr&&(t.height=i.utrHeight)})),t.height=Math.max.apply(Math,r(e.map((function(t){return t.fake?0:t.height||0})).concat(i.featureHeight))))})),this.base(t,e)}})},6006:function(t,e,i){"use strict";i.r(e);var n=i(1766),r=i(521);e.default=r.default.extend({setFeatureColor:function(t){n.default.prototype.setFeatureColor(t),(t.subFeatures||[]).forEach((function(e){e.utr&&(e.color=!1,e.borderColor=t.color)}))}})},5337:function(t,e,i){"use strict";i.r(e);var n=i(3766);e.default=n.ZP.extend({id:"chromosome",margin:1,featureMargin:{top:0,right:0,bottom:0,left:0},labels:"overlay",url:!1,allData:!0,colors:{acen:"#708090",gneg:"#FFFFFF",gpos:"#000000",gpos100:"#000000",gpos25:"#D9D9D9",gpos33:"#BFBFBF",gpos50:"#999999",gpos66:"#7F7F7F",gpos75:"#666666",gvar:"#E0E0E0",stalk:"#708090"},labelColors:{gneg:"#000000",gvar:"#000000",gpos25:"#000000",gpos33:"#000000"},getData:function(t,e,i){var n=this.browser.jQuery;return this.receiveData(n.extend(!0,[],this.browser.genome[t].bands),t,e,i),n.Deferred().resolveWith(this)},insertFeature:function(t){t.label="acen"!==t.type&&"stalk"!==t.type&&t.id,t.menuTitle=t.id?t.chr+t.id:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),t.color=this.prop("colors")[t.type]||"#FFFFFF",t.labelColor=this.prop("labelColors")[t.type]||"#FFFFFF",t.id&&(t.id=t.chr+t.id),this.base(t)},drawFeature:function(t,e,i,n){if(e.fillStyle=t.color,e.strokeStyle="#000000","acen"===t.type)e.beginPath(),this.drawnAcen?(e.moveTo(t.x+t.width,.5),e.lineTo(t.x,(t.height+.5)/2),e.lineTo(t.x+t.width,t.height+.5)):(e.moveTo(t.x,.5),e.lineTo(t.x+t.width,(t.height+.5)/2),e.lineTo(t.x,t.height+.5),this.drawnAcen=!0),e.fill(),e.stroke();else if("stalk"===t.type)for(var r=0;r<2;r++)e.beginPath(),e.moveTo(t.x,.5),e.lineTo(t.x+.25*t.width,.25*t.height+.5),e.lineTo(t.x+.75*t.width,.25*t.height+.5),e.lineTo(t.x+t.width,.5),e[r?"moveTo":"lineTo"](t.x+t.width,t.height+.5),e.lineTo(t.x+.75*t.width,.75*t.height-.5),e.lineTo(t.x+.25*t.width,.75*t.height-.5),e.lineTo(t.x,t.height+.5),e[r?"stroke":"fill"]();else{this.base(t,e,i,n),e.beginPath();var o=this.browser.getChromosomeSize(t.chr);if(1===t.start||t.end===o){if(1===t.start){var s=t.x+t.width-(t.end===o?5:0);e.clearRect(0,0,5,t.height+.5),e.fillStyle=t.color,e.moveTo(5,.5),e.lineTo(s,.5),e.moveTo(5,t.height+.5),e.lineTo(s,t.height+.5),e.moveTo(5,.5),e.bezierCurveTo(-1,.5,-1,t.height+.5,5,t.height+.5),e.fill()}t.end===o&&(e.clearRect(t.x+t.width-5,0,5,t.height+.5),1!==t.start&&(e.fillStyle=t.color,e.moveTo(t.x,.5),e.lineTo(t.x+t.width-5,.5),e.moveTo(t.x,t.height+.5),e.lineTo(t.x+t.width-5,t.height+.5)),e.moveTo(t.x+t.width-5,.5),e.bezierCurveTo(this.width+1,.5,this.width+1,t.height+.5,t.x+t.width-5,t.height+.5),e.fill())}else e.moveTo(t.x,.5),e.lineTo(t.x+t.width,.5),e.moveTo(t.x,t.height+.5),e.lineTo(t.x+t.width,t.height+.5);e.stroke()}},drawLabel:function(t){if(1!==t.start&&t.end!==this.browser.getChromosomeSize(t.chr)||!(t.labelWidth>=Math.floor(t.width-5))){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.base.apply(this,[t].concat(i))}},populateMenu:function(t){return{title:t.menuTitle,Position:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)}}})},3911:function(t,e,i){"use strict";i.r(e);var n=i(3766);e.default=n.ZP.extend({setInterface:function(){this.base(),this._interface.isLocal="model",this._interface.dataFile="model",this._interface.indexFile="model",this._interface.largeFile="model"}})},4448:function(t,e,i){"use strict";i.r(e);var n=i(8350),r=i(2703),o=i(3911);function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=o.default.extend({name:"BAM",indexExt:".bai",threshold:1e5,largeFile:!0,model:n.default,view:r.default.extend({bump:!0,autoHeight:!0}),click:function(){var t=this.base.apply(this,arguments);return t&&t.addClass("gv-wrap-values"),t},populateMenu:function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({title:t.readName},t);return delete e.sequence,delete e.id,this.base(e)}})},4149:function(t,e,i){"use strict";i.r(e);var n=i(4475),r=i(3911);e.default=r.default.extend({name:"BED",model:n.default,bump:!0,featureHeight:10,thickHeight:10,thinHeight:7,subFeatureJoinStyle:"curve",populateMenu:function(t){var e=[!1,!1,!1,"name","score","strand","thickStart","thickEnd","itemRgb","blockCount","blockSizes","blockStarts"];return t.originalFeature.reduce((function(t,i,n){return e[n]&&(t[e[n]]=i),t}),{title:'<a target="_blank" href="https://genome.ucsc.edu/FAQ/FAQformat.html#format1">BED feature details</a>',Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)})}})},617:function(t,e,i){"use strict";i.r(e);var n=i(8483),r=i(9817),o=i(4475),s=i(4149);e.default=s.default.extend({name:"bigbed",model:o.default.extend({getData:function(t,e,i){var o=this,s=this.browser.jQuery,a=s.Deferred();this.bigbedFile||(this.bigbedFile=this.bigbedFile||(this.url?new r.zn(this.url):new r.PE(this.track.dataFile)));var l=s.Deferred().done((function(){o.bwReader.getValues(t,e,i,(function(n,r){r||(n.sort((function(t,e){return t.start-e.start})),n.length?o.receiveData(n,t,n[0].start,n[n.length-1].end):o.receiveData(n,t,e,i)),a.resolve()}))}));return this.bwReader?l.resolve():new n.Z(this.bigbedFile,(function(n){if(!n)return o.receiveData([],t,e,i),a.resolve();o.bwReader=n,l.resolve()})),a}})})},9658:function(t,e,i){"use strict";i.r(e);var n=i(8483),r=i(9817),o=i(4176);e.default=o.default.extend({name:"bigwig",height:100,setDefaults:function(){this.bwReader=null,this.base.apply(this,arguments)},getData:function(t,e,i){var o=this,s=this.browser.jQuery.Deferred();this.bigwigFile||(this.bigwigFile=this.bigwigFile||(this.url?new r.zn(this.url):new r.PE(this.track.dataFile)));var a=this.browser.jQuery.Deferred().done((function(){o.prop("bwReader").getValues(t,e,i,(function(n,r){r||(n.sort((function(t,e){return t.start-e.start})),n.length?o.receiveData(n,t,n[0].start,n[n.length-1].end):o.receiveData(n,t,e,i)),s.resolve()}))}));return this.prop("bwReader")?a.resolve():new n.Z(this.bigwigFile,(function(n){if(!n)return o.receiveData([],t,e,i),s.resolve();o.prop("bwReader",n),a.resolve()})),s}})},8428:function(t,e,i){"use strict";i.r(e);var n=i(7699),r=i(3911);e.default=r.default.extend({name:"GFF",model:n.default,bump:!0,height:100,featureHeight:5})},1055:function(t,e,i){"use strict";i.r(e);var n=i(2743),r=i(4112),o=i(2703),s=i(3911);e.default=s.default.extend({name:"VCF",indexExt:".tbi",model:n.default,autoHeight:!1,maxQual:void 0,afterSetMVC:function(){this.prop("gz")&&this.prop("threshold",1e5)},populateMenu:function(t){return{title:'<a target="_blank" href="https://www.internationalgenome.org/wiki/Analysis/vcf4.0">VCF feature details</a>',CHROM:t.originalFeature[0],POS:t.originalFeature[1],ID:t.originalFeature[2],REF:t.originalFeature[3],ALT:t.originalFeature[4],QUAL:t.originalFeature[5],FILTER:t.originalFeature[6],INFO:t.originalFeature[7].split(";").join("<br />")}},1:{view:o.default.extend({bump:!0,labels:!1,featureMargin:{top:0,right:0,bottom:0,left:0},draw:function(t,e,i,n){this.base(t,e,i,n),this.highlightRef(t,e,n)},highlightRef:function(t,e,i){e.strokeStyle="black",t.forEach((function(t){"REF"===t.allele&&e.strokeRect(t.position[i].X,t.position[i].Y,t.position[i].width,t.position[i].height)}))}})},1e3:{view:r.default.extend({bump:!1,labels:!1,drawFeature:function(t){var e=this.prop("maxQual");if(e&&!t.color){var i=Math.min(255,Math.floor(255*(t.originalFeature[5]||0)/e))-127,n=i>0?255:127+i,r=i<0?255:127-i;t.color="rgb(".concat(n,",").concat(r,",0)")}for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];this.base.apply(this,[t].concat(s))}})}})},8915:function(t,e,i){"use strict";i.r(e);var n=i(9486),r=i(4176);e.default=r.default.extend({model:n.default,name:"wig",height:100})},1839:function(t,e,i){"use strict";i.r(e);var n=i(3766),r=i(2865),o=i(3814),s=i(1766),a=i(6006),l=i(2694);e.default=n.ZP.extend({id:"genes",name:"Genes",height:200,legend:l.default,populateMenu:function(t){var e="https://www.ensembl.org/Homo_sapiens/".concat("transcript"===t.feature_type?"Transcript":"Gene","/Summary?").concat("transcript"===t.feature_type?"t":"g","=").concat(t.id),i={title:'<a target="_blank" href="'.concat(e,'">').concat(t.external_name?"".concat(t.external_name," (").concat(t.id,")"):t.id,"</a>"),Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),Source:t.source,Biotype:t.biotype};return"transcript"===t.feature_type&&(i.Gene='<a target="_blank" href="https://www.ensembl.org/Homo_sapiens/Gene/Summary?g='.concat(t.Parent,'">').concat(t.Parent,"</a>")),i},2e6:{labels:!1},1e5:{labels:!0,model:r.default,view:s.default},1:{labels:!0,model:o.default,view:a.default}})},8944:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return a},Model:function(){return l},View:function(){return h}});var n=i(3766),r=i(2694);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var a=n.Qr.extend({setYRange:function(t,e){this.browser.dragging||(this.prop("showZeroY")?this.prop("range",[Math.min(t,0),Math.max(e,0)]):this.prop("range",[t,e]),this.track.reset())},yMinMaxFromFeatures:function(t){var e=Infinity,i=-Infinity;return"Line"===this.prop("type")?t.forEach((function(t){return t.coords.forEach((function(t){var n=o(t,2)[1];isNaN(n)||(e=Math.min(e,n),i=Math.max(i,n))}))})):t.forEach((function(t){var n=t.height;isNaN(n)||(e=Math.min(e,n),i=Math.max(i,n))})),{min:e=Infinity===e?0:e,max:i=-Infinity===i?0:i}},afterSetName:function(){this.minLabelHeight=Math.max(this.minLabelHeight,2*this.prop("fontHeight")+this.prop("margin")+this.prop("marginTop"))},visibleFeatureHeight:function(){if("auto"===this.prop("rescaleable")){var t=this.track.getYScale(),e=this.yMinMaxFromFeatures(this.model.findFeatures(this.browser.chr,this.browser.start,this.browser.end));return Math.ceil(Math.max(t*(e.max-e.min),this.prop("hideEmpty")?0:this.minLabelHeight))}return this.prop("height")},resize:function(){var t,e,i=this.prop("height"),n=this.base.apply(this,arguments),r=this.prop("height");if(i!==r)if(!0===this.prop("rescaleable")){var o=this.prop("range"),s=Math.max.apply(null,o.map((function(t){return(t.toString().split(".")[1]||"").length}))),a=o[1]-o[0],l=Math.ceil((a*(r/i)-a)/2);this.setYRange(parseFloat((o[0]-l).toFixed(s),10),parseFloat((o[1]+l).toFixed(s),10))}else this.track.reset();return null===(t=this.prop("expander"))||void 0===t||t.hide(),null===(e=this.prop("resizer"))||void 0===e||e.removeClass("gv-resizer-expander"),n},autoResize:function(){if("auto"===this.prop("rescaleable")){var t=this.model.findFeatures(this.browser.chr,this.browser.start,this.browser.end);if(t.length){var e=this.prop("range"),i=this.yMinMaxFromFeatures(t);if(i.min||i.max){var n=Math.max.apply(null,e.map((function(t){return(t.toString().split(".")[1]||"").length}))),r=Math.pow(10,n),o=parseFloat((Math.floor(i.min*r)/r).toFixed(n),10),s=parseFloat((Math.ceil(i.max*r)/r).toFixed(n),10);this.prop("showZeroY")&&(o=Math.min(o,0),s=Math.max(s,0)),o===s&&s++,o===e[0]&&s===e[1]||this.setYRange(o,s)}}}else this.base.apply(this,arguments)},makeFirstImage:function(){var t=this;return this.base.apply(this,arguments).done((function(){t.prop("yAxisPlaceholder").hide(),t.prop("offsetContainer").prepend(t.prop("guidelinesCanvas")).before(t.prop("yAxisCanvas").removeClass("gv-loading"))}))},typeWrapper:function(t){for(var e,i=a[this.prop("type")]||a.prototype,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(e=i[t]||a.prototype[t]).call.apply(e,[this].concat(r))},click:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.typeWrapper.apply(this,["click"].concat(e))},getClickedFeatures:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.typeWrapper.apply(this,["getClickedFeatures"].concat(e))},populateMenu:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return this.typeWrapper.apply(this,["populateMenu"].concat(e))}}),l=n.Hn.extend({dataBuffer:{start:1,end:1},setLabelBuffer:function(){},sortFeatures:function(t){return t.sort((function(t,e){return t.start-e.start}))}}),h=n.G7.extend({featureMargin:{},featureDataSets:function(t){var e=this.prop("datasets").concat({name:"_default"}),i=e.reduce((function(t,e){var i,n,r,o=e.name;return Object.assign(t,(r=!0,(n=o)in(i={})?Object.defineProperty(i,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[n]=r,i))}),{});return{list:e,features:t.reduce((function(t,e){var n=i[e.dataset]?e.dataset:"_default";return t[n]=t[n]||[],t[n].push(e),t}),{})}}});e.default=n.ZP.extend({controller:a,margin:10,invert:!0,yAxisLabels:void 0,yRange:void 0,showZeroY:!0,globalAlpha:1,axesSettings:{axisColor:"black",axisLabelColor:"black",scaleLineColor:"#E5E5E5"},datasets:[],legend:r.default,labels:!1,resizable:!0,rescaleableY:"auto",setDefaults:function(){this.range=this.yRange||[0,this.height],this.rescaleable=this.rescaleableY,this.browser.jQuery.isPlainObject(this.margin)&&(this.invert?(this.marginTop=this.margin.bottom,this.margin=this.margin.top):(this.marginTop=this.margin.top,this.margin=this.margin.bottom)),this.marginTop="number"==typeof this.marginTop?this.marginTop:this.margin,!1===this.resizable?this.resizable=this.rescaleable:"auto"===this.resizable&&(this.rescaleable="auto"),this.base.apply(this,arguments),this.legend&&!this.datasets.length&&(this.legend=!1),this.height+=this.marginTop,this.initialHeight+=this.marginTop},setHeight:function(t){return this.base(t,!0)},setMVC:function(){var t=this.browser.jQuery,e=this.controller instanceof n.Qr,i=this.base.apply(this,arguments);if(!e){var r=this.prop("scrollContainer");this.yAxisPlaceholder=t('<div class="gv-image-container gv-loading">'),this.yAxisCanvas=t('<canvas class="gv-image-container gv-barchart-axis">').attr("width",this.width),this.guidelinesCanvas=t('<canvas class="gv-image-container gv-barchart-guide">').attr("width",this.width),this.disabled&&this.yAxisCanvas.add(this.guidelinesCanvas).attr("height",0),this.offsetContainer=this.browser.jQuery('<div class="gv-scroll-container-offset">').width(this.width).insertAfter(r).append(r).before(this.yAxisPlaceholder),this.drawAxes()}return i},afterSetMVC:function(){var t,e;null===(t=this.prop("heightToggler"))||void 0===t||t.addClass("gv-hidden"),null===(e=this.prop("resizer"))||void 0===e||e.off("click")},reset:function(){return this.drawAxes(),this.base.apply(this,arguments)},enable:function(){var t=this.disabled,e=this.base.apply(this,arguments);return t&&this.drawAxes(),e},getYScale:function(){var t=this.prop("range");return(this.prop("height")-this.prop("margin")-this.prop("marginTop"))/(t[1]-t[0])},drawAxes:function(){if(!this.prop("disabled")){var t,e=this.width,i=this.prop("height"),n=this.prop("invert"),r=this.prop("margin"),o=this.prop("marginTop"),s=this.prop("fontHeight"),a=this.prop("range"),l=this.prop("axesSettings"),h=this.getYScale(),c=this.prop("yAxisCanvas").attr("height",i)[0].getContext("2d"),u=this.prop("guidelinesCanvas").attr("height",i)[0].getContext("2d"),f=this.prop("yAxisLabels");if(!f){var p=Math.floor((i-r-o)/(2*s)),d=(a[1]-a[0])/p;f=[],d!==Math.round(d)&&(t=Math.max.apply(null,a.map((function(t){return(t.toString().split(".")[1]||"").length})))+1);for(var g=0;g<=p;g++)f.push((a[0]+d*g)[t?"toFixed":"toString"](t))}var m=Math.max.apply(null,f.map((function(t){return c.measureText(t).width})))+10;this.prop("offsetContainer").css("marginLeft",m).width(e-m),this.prop("scrollContainer").css("marginLeft",-m),this.prop("yAxisPlaceholder").width(m).show(),c.fillStyle=l.axisColor,c.fillRect(m-1,n?r:o,1,i-r-o),u.fillStyle=l.scaleLineColor,c.fillStyle=l.axisLabelColor,c.textBaseline="middle",c.textAlign="right",f.forEach((function(t){var r=o+(parseFloat(t,10)-a[0])*h;r=n?i-r:r,u.fillRect(0,r,e,1),c.fillRect(m-4,r,4,1),c.fillText(t,m-6,r)}));var v=-a[0]*h+o;u.fillStyle=l.axisColor,u.fillRect(0,n?i-v:v,e,1)}}})},4176:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return c},Model:function(){return u},View:function(){return f}});var n=i(7810),r=i.n(n),o=i(8944),s=i(4989);function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c={getClickedFeatures:function(t,e){var i=this.prop("marginTop")-this.prop("range")[0]*this.track.getYScale(),n=this.scale,r=n>1?0:1,o=this.prop("featuresByChr")[this.browser.chr].search({x:(t-r/2)/n,y:0,w:(1+r)/n,h:1});return o.length&&(e<i&&0===o.filter((function(t){return t.position[n].bounds.y+t.position[n].bounds.h<=e&&t.position[n].bounds.y>=e})).length||e>=i&&0===this.featurePositions.search({x:t,y:e,w:1,h:1}).length)&&(o=[]),o.length?[this.model.sortFeatures(o)]:[]},populateMenu:function(t){if(!t.length)return[];var e=t[0].start,i=t[t.length-1].end,n=t[0].start!==t[t.length-1].start,r={title:"".concat(t[0].chr,":").concat(e===i?e:"".concat(e,"-").concat(i))};function o(t){var e=t.map((function(t){return t.height})).sort((function(t,e){return t-e}));return{avg:e.reduce((function(t,e){return t+e}),0)/e.length,min:e[0],max:e[e.length-1]}}if(n)if(1===t.length){var s=o(t);r["Average value"]=s.avg,r["Min value"]=s.min,r["Max value"]=s.max}else{r=[r];var a,c=this.prop("datasets");c.length?(a=c.reduce((function(t,e){return Object.assign(t,h({},e.name,[]))}),{}),t.forEach((function(t){a[t.dataset].push(t)}))):(c=[{name:""}],a={"":t}),c.forEach((function(t){var e=o(a[t.name]);r.push(l({Average:e.avg,Min:e.min,Max:e.max},t.name?{title:t.name}:{}))}))}else 1===t.length?r.Value=t[0].height:t.forEach((function(t){r[t.dataset]=t.height}));return r}},u=o.Model.extend({insertFeature:function(t){var e=this.prop("datasets");e.length&&(t.legend=t.dataset,t.color=(e.filter((function(e){return e.name===t.dataset}))[0]||{color:this.color}).color),t.id=t.id||[t.chr,t.start,t.end,t.dataset||""].join(":");for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return this.base.apply(this,[t].concat(n))}}),f=o.View.extend({scaleFeatures:function(t,e){var i=this.track.getYScale(),n=this.prop("marginTop")-this.prop("range")[0]*i;return(t=this.base(t,e)).forEach((function(t){t.position[e].height=t.height*i,t.position[e].y=n})),t},draw:function(t,e,i,n){var r=this,o=this.browser.jQuery,s=this.featureDataSets(t),a=this.prop("margin"),h=n<1?Math.ceil(1/n):0,c={color:this.color,globalAlpha:this.prop("globalAlpha")};s.list.forEach((function(t){var a=l(l({},c),t),u=t.name,f=o.extend(!0,[],s.features[u]||[]);if(f.length){if(h){for(var p=[],d=0,g=function(){for(var t=f[d].start,e=[];f[d]&&f[d].start-t<h;)e.push(f[d++]);var i=o.extend(!0,{},e[0],{height:e.reduce((function(t,e){return t+e.height}),0)/e.length,end:e[e.length-1].end});["H","W","height","width"].forEach((function(t){i.position[n][t]=e.reduce((function(e,i){return e+i.position[n][t]}),0)/e.length})),p.push(i)};d<f.length;)g();f=p}f.forEach((function(t){t.color=a.color})),e.globalAlpha=a.globalAlpha,r.base(f,e,i,n)}})),e.clearRect(0,0,this.width,this.prop("marginTop")-1),e.clearRect(0,this.prop("height")-a,this.width,a)}});e.default=o.default.extend({type:"Bar",model:u,view:f,threshold:5e5,1e4:l(l({},Object.keys(s.default.prototype).reduce((function(t,e){return s.default.prototype.hasOwnProperty(e)&&!r().prototype[e]&&(t[e]=s.default.prototype[e]),t}),{})),{},{fill:!0,model:s.Model.extend({parseData:function(t,e,i,n){var r=[];return t.forEach((function(t){for(var e=t.start;e<t.end;e++)r.push([e,t.height])})),this.base([{chr:e,start:i,end:n,coords:r}],e,i,n)}})}),5e4:l(l({},Object.keys(s.default.prototype).reduce((function(t,e){return s.default.prototype.hasOwnProperty(e)&&!r().prototype[e]&&(t[e]=s.default.prototype[e]),t}),{})),{},{fill:!0,model:s.Model.extend({parseData:function(t,e,i,n){return this.base([{chr:e,start:i,end:n,coords:t.map((function(t){return[t.start,t.height]}))}],e,i,n)}})})})},4989:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return c},Model:function(){return u},View:function(){return f}});var n=i(7145),r=i(8944);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c={click:function(){if(this.prop("showPopups")){var t;this.prop("menus").hide(),this.browser.closeMenus(this);for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return(t=n.default.prototype.click).call.apply(t,[this].concat(i))}},getClickedFeatures:function(t){var e=this,i={x:t,y:0,w:1,h:9e99},n=this.scale>1?0:1/this.scale,r=i.x/this.scale,o=n?[Math.floor(r-n),Math.ceil(r+n)]:[Math.floor(r),Math.floor(r)],s={};return this.featurePositions.search(i).forEach((function(t){s[t.dataset]||(s[t.dataset]=t)})),[this.model.sortFeatures(Object.keys(s).map((function(t){return e.browser.jQuery.extend(!0,{},s[t],{clickedCoords:s[t].coords.filter((function(t){return t[0]>=o[0]&&t[0]<=o[1]}))})})))]},populateMenu:function(t){if(!t.length||!t[0].clickedCoords.length)return[];var e=t[0].clickedCoords[0][0],i=t[0].clickedCoords[t[0].clickedCoords.length-1][0],n=e!==i,r={title:"".concat(t[0].chr,":").concat(e===i?e:"".concat(e,"-").concat(i))};function o(t){var e=t.map((function(t){return t[1]})).sort((function(t,e){return t-e}));return{avg:e.reduce((function(t,e){return t+e}),0)/e.length,min:e[0],max:e[e.length-1]}}if(n)if(1===t.length){var s=o(t[0].clickedCoords);r["Average value"]=s.avg,r["Min value"]=s.min,r["Max value"]=s.max}else r=[r],t.forEach((function(e){var i=o(t.clickedCoords);r.push({title:e.dataset,Average:i.avg,Min:i.min,Max:i.max})}));else 1===t.length?r.Value=t[0].clickedCoords[0][1]:t.forEach((function(t){r[t.dataset]=t.clickedCoords[0][1]}));return r}},u=r.Model.extend({parseData:function(t,e,i,n){var r,o=[];return t.sort((function(t,e){return t.start-e.start||t.x-e.x})).forEach((function(t){if(void 0===t.y||t.coords)r&&(o.push(r),r=void 0),o.push(t);else{var e=function(t){return void 0!==t.x?t.x:t.start+(t.start===t.end?0:(t.end-t.start+1)/2)}(t);r&&r.coords[r.coords.length-1][0]===e-1?(r.coords.push([e,t.y]),r.end=e):(r&&o.push(r),r=l({coords:[[e,t.y]],start:e,end:e},t))}})),r&&o.push(r),this.base(o,e,i,n)},insertFeature:function(t){var e=this.prop("datasets");t.coords?t.coords=t.coords.map((function(e,i){return e.length>1?e:[t.start+i,e]})).filter((function(e){return e[0]>=t.start&&e[0]<=t.end})):t.y?t.coords=[[t.start+(t.start===t.end?0:(t.end-t.start+1)/2),t.y]]:t.coords=[],e.length&&(t.legend=t.dataset,t.color=(e.filter((function(e){return e.name===t.dataset}))[0]||{color:this.color}).color),t.id=t.id||[t.chr,t.start,t.end,t.dataset||""].join(":");for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return this.base.apply(this,[t].concat(n))}}),f=r.View.extend({featureHeight:1,positionFeatures:function(t,e){var i=e.scale,n=this.track.getYScale(),r=this.prop("marginTop")-this.prop("range")[0]*n,o=(i>1?i/2:0)-e.scaledStart;function s(t){return[t[0]*i+o,t[1]*n+r]}return t.forEach((function(t){t.coordPositions=t.coords.map(s)})),e.featureHeight=this.prop("height"),this.base(t,e)},draw:function(t,e,i,n){if(t.length){var r=this.featureDataSets(t),s=this.prop("height"),a=this.prop("marginTop"),h=this.prop("margin"),c=Math.min(Math.max(a,a-this.prop("range")[0]*this.track.getYScale()),s-a),u=n<1?Math.floor(1/n):0,f={color:this.color,fill:this.prop("fill"),lineWidth:this.prop("lineWidth"),globalAlpha:this.prop("globalAlpha")};r.list.forEach((function(t){var i,n,s=l(l({},f),t),a=t.name;(r.features[a]||[]).forEach((function(t,l){var h=t.coordPositions;if(h.length){if(u){for(var f=[],p=0,d=0;d<h.length;){for(var g=t.coords[d][0],m=[];h[d]&&t.coords[d][0]-g<u;)m.push(h[d++]);var v=m.length;(m=m.reduce((function(t,e){return t[0]+=e[0],t[1]+=e[1],t}),[0,0]))[0]=Math.round(m[0]/v),f.length&&m[0]===f[f.length-1][0]?f[f.length-1][1]=(f[f.length-1][1]*p+m[1])/(p+v):f.push([m[0],m[1]/v]),p=v}h=f,t.binnedCoords=h}e.fillStyle=e.strokeStyle=s.color,e.lineWidth=s.lineWidth,s.fill&&(e.globalAlpha=s.globalAlpha),e.beginPath(),s.fill?(e.moveTo(h[0][0],c),e.lineTo.apply(e,o(h[0]))):e.moveTo.apply(e,o(h[0])),h.forEach((function(t){return e.lineTo.apply(e,o(t))})),e.stroke(),s.fill&&(e.lineTo(h[h.length-1][0],c),e.closePath(),e.fill()),(i=l?r.features[a][l-l]:void 0)&&i.end===t.start-1&&(e.beginPath(),n=(u?i.binnedCoords:i.coordPositions).slice(-1),e.moveTo.apply(e,o(n[0])),e.lineTo.apply(e,o(h[0])),e.stroke(),s.fill&&(e.lineTo(h[0][0],c),e.lineTo(n[0][0],c),e.closePath(),e.fill())),s.fill&&(e.globalAlpha=1)}}))})),e.clearRect(0,0,this.width,a-1),e.clearRect(0,s-h,this.width,h)}}});e.default=r.default.extend({type:"Line",showPopups:!0,fill:!1,lineWidth:1,model:u,view:f})},7110:function(t,e,i){"use strict";i.r(e);var n=i(3766),r=i(7905),o=i(6637);function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=n.ZP.extend({id:"highlights",unsortable:!0,fixedOrder:!0,repeatLabels:!0,resizable:!1,border:!1,alwaysReposition:!0,height:15,featureHeight:2,order:-1,orderReverse:9e99,controls:"off",colors:["#777777","#F08080","#3CB371","#6495ED","#FFA500","#9370DB"],labels:"separate",depth:1,featureMargin:{top:13,right:0,bottom:0,left:0},margin:0,constructor:function(){return this.colorIndex=0,this.base.apply(this,arguments)},addHighlights:function(t){var e=this;t.forEach((function(t){return e.model.insertFeature(function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({label:"".concat(t.start,"-").concat(t.end)},t))})),this.reset()},removeHighlights:function(t){var e=this.prop("featuresByChr"),i=this.prop("featuresById");(t=t||Object.values(i)).forEach((function(t){if(!1!==t.removable){var n=e[t.chr],r={x:t.start,y:0,w:t.end-t.start+1,h:1},o=n.search(r).filter((function(e){return e.id===t.id}));o.length&&n.remove(r,o[0]),delete i[t.id]}})),1===this.prop("strand")&&this.prop("reverseTrack").removeHighlights(t),this.reset()},controller:r.default.extend({setDefaults:function(){-1===this.prop("strand")&&(this.prop("labels",!1),this.prop("border",!1),this.prop("height",2),this.prop("featureMargin").top=0),this.base()},setName:function(t){-1===this.prop("strand")?(this.base(""),this.minLabelHeight=0,this.label.height(0)):this.base(t)},makeImage:function(t){1===this.prop("strand")&&(t.background="gv-full-height");var e=this.base(t);return t.container.addClass(t.background),e},render:function(t,e){this.base(t,e),e.siblings(".gv-labels").css("top",this.prop("featureHeight")-this.prop("featureMargin").top)},renderBackground:function(t,e){this.base(t,e),e.height(this.browser.wrapper.outerHeight(!0))},populateMenu:function(t){var e=[];return t.length>1&&e.push({title:"Highlights"}),t.forEach((function(t){var i="".concat(t.start,"-").concat(t.end),n={title:t.label?t.label[0]:i,start:!1};n[n.title===i?"title":"Location"]="".concat(t.chr,":").concat(i),n['<a class="gv-focus-highlight" href="#" data-chr="'.concat(t.chr,'" data-start="').concat(t.start,'" data-end="').concat(t.end,'">Focus here</a>')]="",!1!==t.removable&&(n['<a class="gv-remove-highlight" href="#" data-id="'.concat(t.id,'">Remove this highlight</a>')]="",n['<a class="gv-remove-highlights" href="#">Remove all highlights</a>']=""),e.push(n)})),e},click:function(){var t=this.browser.jQuery;if(1===this.prop("strand")){var e=this.base.apply(this,arguments);if(e&&!e.data("highlightEvents")){var i=this.track;e.find(".gv-remove-highlight").on("click",(function(){var n=t(this).data("id");return i.removeHighlights(e.data("feature").filter((function(t){return t.id===n}))),!1})),e.find(".gv-remove-highlights").on("click",(function(){return i.removeHighlights(),!1})),e.find(".gv-focus-highlight").on("click",(function(){var e=t(this).data(),n=e.end-e.start+1,r=Math.max(Math.round(n/4),25);return i.browser.moveTo(e.chr,e.start-r,e.end+r,!0),!1})),e.data("highlightEvents",!0)}}},getClickedFeatures:function(t,e){var i={},n=this.scale,r=this.featurePositions.search({x:t,y:e,w:1,h:1}).concat(this.labelPositions.search({x:t,y:e,w:1,h:1}).filter((function(t){return!1!==t.position[n].label.visible}))).filter((function(t){var e=!i[t.id];return i[t.id]=!0,e}));return!!r.length&&[this.model.sortFeatures(r)]}}),model:o.default.extend({url:!1,insertFeature:function(t){if(t.id="".concat(t.chr,":").concat(t.start,"-").concat(t.end),t.sort=t.start,!t.color){var e=this.prop("colors"),i=this.prop("colorIndex");t.color=e[i++],this.prop("colorIndex",e[i]?i:0)}this.featuresById[t.id]||this.base(t)},findFeatures:function(){for(var t,e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return(t=n.Hn.prototype.findFeatures).call.apply(t,[this].concat(i))}}),view:n.G7.extend({positionFeatures:function(t,e){var i=this.base(t,e);return e.featureHeight=Math.max(e.featureHeight-this.featureMargin.top,0),i},draw:function(t,e,i,n){1===this.prop("strand")&&(e.fillStyle="#FFF",e.fillRect(0,0,e.canvas.width,e.canvas.height)),this.base(t,e,i,n)},drawBackground:function(t,e,i){var n=this,r=this.browser.jQuery;-1!==this.prop("strand")&&t.forEach((function(t){e.fillStyle=t.color,n.drawFeature(r.extend(!0,{},t,{x:t.position[i.scale].X,y:0,width:t.position[i.scale].width,height:e.canvas.height,color:n.shadeColor(e.fillStyle,.8),border:t.color,label:!1,decorations:!0}),e,!1,i.scale)}))},decorateFeature:function(t,e){var i=t.x+.5,n=i+t.width,r=!1;e.strokeStyle=t.border,e.lineWidth=2,e.beginPath(),i>=0&&i<=this.width&&(e.moveTo(i,t.y),e.lineTo(i,t.y+t.height),r=!0),n>=0&&n<=this.width&&(e.moveTo(n,t.y),e.lineTo(n,t.y+t.height),r=!0),r&&e.stroke(),e.lineWidth=1}})})},2694:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return c},Model:function(){return u},View:function(){return f}});var n=i(4925);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach((function(e){h(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function h(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var c=n.Controller.extend({init:function(){this.base(),this.container.addClass("gv-track-container-legend"),this.browser.legends[this.track.id]=this.track,this.track.setTracks()},destroy:function(){delete this.browser.legends[this.prop("id")],this.base()}}),u=n.Model.extend({findFeatures:function(){var t={x:this.browser.scaledStart,y:0,w:this.width},e=this.track.tracks.flatMap((function(e){var i=e.prop("featurePositions"),n=l(l({},t),{},{h:e.prop("height")});return i?i.search(n).concat(e.prop("labelPositions").search(n)):[]})).reduce((function(t,e){return Array.isArray(e.legend)?e.legend.forEach((function(e){t[e.label]=e.color})):e.legend&&(t[e.legend]=e.legendColor||e.color),t}),{});return this.sortFeatures(Object.entries(e).map((function(t){var e=o(t,2);return[e[0],e[1]]})))},sortFeatures:function(t){return t.sort((function(t,e){return t[0].localeCompare(e[0])}))}}),f=n.View.extend({textColor:"#000000",labels:"overlay",featureHeight:12,positionFeatures:function(t,e){var i=this;if(e.positioned)return t;var n=0,r=0,s=this.width/2,a=this.fontHeight+5,l=e.xOffset||0,h=[];return t.forEach((function(t){var e=o(t,2),c=e[0],u=e[1],f=n*s+5,p=r*a+5,d=i.context.measureText(c).width;h.push({x:f+l,y:p,width:20,height:i.featureHeight,color:u},{x:f+l+5+20,y:p,width:d+1,height:i.featureHeight,color:!1,labelColor:i.textColor,labelWidth:d,label:c}),2==++n&&(n=0,r++)})),e.height=this.prop("height",t.length?(r+(n?1:0))*a+5:0),e.width=this.width,e.positioned=!0,this.base(h,e)}});e.default=n.default.extend({isLegend:!0,unsortable:!0,lockToTrack:!0,removable:!1,controller:c,model:u,view:f,setDefaults:function(){this.order=void 0!==this.order?this.order:9e99,this.id=this.id||"legend",this.type=this.type||"legend",this.base()},setEvents:function(){this.browser.on({"afterAddTracks afterRemoveTracks":function(){this.destroying||(Object.values(this.legends).forEach((function(t){return t.setTracks()})),this.sortTracks())},afterRemoveTracks:function(t){this.destroying||(t.forEach((function(t){t.legendTrack&&0===t.legendTrack.tracks.length&&t.legendTrack.remove()})),Object.values(this.legends).forEach((function(t){return t.controller.makeImage({})})))},afterUpdateTrackOrder:function(t,e){var i=e.item.data("track"),n=this.legends[i.id]||i.legendTrack;n&&n.lockToTrack&&!1===n.unsortable&&(n.lockToTrack=!1),Object.values(this.legends).forEach((function(t){return t.updateOrder()})),this.sortTracks()}}),this.browser.on({afterPositionFeatures:function(t,e){var i=this.prop("legendTrack");i&&setTimeout((function(){i.controller.makeImage(e)}),1)},afterResize:function(t,e){var i=this.prop("legendTrack");i&&!0===e&&i.controller.makeImage({})},afterCheckHeight:function(){var t=this.prop("legendTrack");t&&t.controller.makeImage({})},afterSetMVC:function(){var t=this.prop("legendTrack");t&&t.tracks.length&&(t.disable(),!1!==this.legend&&t.enable())}},this)},setTracks:function(){var t=this,e=this.type;this.tracks=this.browser.tracks.filter((function(i){return i.legendType===e&&(i.legendTrack=i.legendTrack||t,!0)})).flatMap((function(e){return[e].concat(e.prop("childTracks"),e.prop("parentTrack")).filter((function(e){return e&&e!==t&&!e.prop("disabled")}))})),this.updateOrder(),"object"===r(this.controller)?this[this.tracks.length?"enable":"disable"]():this.disabled=!this.tracks.length},updateOrder:function(){if(this.lockToTrack){var t=this.tracks.filter((function(t){return!t.prop("parentTrack")}));t.length&&(this.order=t[t.length-1].order+.1)}},enable:function(){this.base(),this.controller.makeImage({})},disable:function(){delete this.controller.stringified,this.base()}})},6427:function(t,e,i){"use strict";i.r(e);var n=i(702),r=i.n(n),o=i(3766);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function h(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){c(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}e.default=o.ZP.extend({unsortable:!0,fixedOrder:!0,order:0,orderReverse:1e5,featureStrand:1,controls:"off",height:20,featureHeight:3,featureMargin:{top:0,right:0,bottom:2,left:0},margin:0,minPixPerMajor:100,color:"#000000",autoHeight:!1,labels:!0,bump:!1,resizable:!1,click:function(){},colors:{majorGuideLine:"#CCCCCC",minorGuideLine:"#E5E5E5"},setEvents:function(){var t=this.browser;function e(){t.jQuery(".gv-bg.gv-full-height",t.container).height((function(){return t.wrapper.outerHeight(!0)-t.jQuery(this).parents(".gv-track-container").position().top}))}t.on("afterAddTracks",e),t.on("afterResize",this,e)},setScale:function(){for(var t,e=this.prop("width")/this.prop("minPixPerMajor"),i=5,n=-1,o="".concat(this.browser.start).split(""),s="".concat(this.browser.end).split(""),a={},l=o.length;l<s.length;l++)o.unshift("0");for(var h=s.length;h<o.length;h++)s.unshift("0");for(var c=0;c<o.length;c++)if((t=Number(s.slice(0,o.length-c).join(""))-Number(o.slice(0,o.length-c).join("")))&&t<=e){n=Number("1".concat(Array(c).fill("0").join("")));break}-1===n?(n=1===this.browser.length?1:Number("1".concat(Array(o.length).fill("0").join(""))),i=1):5*t<=e?(n/=5,i=2):4*t<=e?(n/=4,i=1):2*t<=e&&(n/=2),n=Math.max(n,1),a[this.browser.chr]=new(r()),this.prop("minorUnit",Math.max(n/i,1)),this.prop("majorUnit",n),this.prop("featuresByChr",a),this.prop("featuresById",{}),this.prop("seen",{}),this.base()},setFeatures:function(t,e,i){for(var n,r,o,s=this.prop("minorUnit"),a=this.prop("majorUnit"),l=this.prop("seen"),h=(e=Math.max(e-e%s-a,0))/s%2?1:-1,c=e;c<i+s;c+=s)h*=-1,l[c]||(l[c]=1,n={id:"".concat(t,":").concat(c),chr:t,strand:1,sort:c},r=c&&c%a==0,1===h&&(n.start=c,n.end=c+s-1),r&&((o=this.view.formatLabel(c))!==this.lastLabel&&(n.label=o,n.end||(n.start=c,n.end=c-1)),this.lastLabel=o),n.end&&this.model.insertFeature(n))},makeFirstImage:function(t){return this.base(-1===this.prop("strand")?this.track.forwardTrack.prop("scrollStart"):t)},makeImage:function(t){t.background="gv-guidelines gv-full-height",t.featureHeight=this.prop("height"),this.track.setFeatures(t.chr,t.start,t.end);var e=this.base(t);return t.container.addClass("gv-full-height"),e},makeReverseImage:function(t){this.imgContainers.push(t.container.clone().html(t.container.children(".gv-data").clone(!0).css({opacity:1,background:this.browser.wrapper.css("backgroundColor")}))[0]),this.scrollContainer.append(this.imgContainers)},renderBackground:function(t,e){this.base(t,e),e.height(this.browser.wrapper.outerHeight(!0))},draw:function(t,e,i,n){var r,o,s,a=this.prop("minorUnit"),l=Math.ceil(a*n),c=t.length;for(e.textBaseline="top",e.fillStyle=this.color,this.guideLines={major:{}};c--;)r=t[c],s=(o=Math.round(r.position[n].X))+l-1,this.drawFeature(h(h({},r),{},{x:o,y:0,width:Math.ceil(r.position[n].width),height:this.featureHeight}),e,i,n),r.label&&(o>-1&&e.fillRect(o,this.featureHeight,1,this.featureHeight),this.guideLines.major[r.start]=!0),r.end<r.start&&(o--,s++),this.guideLines[r.start]=o,this.guideLines[r.start+a]=s;e.fillRect(0,0,e.canvas.width,1),e.fillRect(0,this.featureHeight,e.canvas.width,1)},drawBackground:function(t,e){var i=this;Object.entries(this.guideLines).forEach((function(t){var n=s(t,2),r=n[0],o=n[1];o>=0&&o<=i.width&&(e.fillStyle=i.track.colors[i.guideLines.major[r]?"majorGuideLine":"minorGuideLine"],e.fillRect(o,0,1,e.canvas.height))}))},formatLabel:function(t){return this.prop("minorUnit")<1e3?t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"):this.base(t)}})},7450:function(t,e,i){"use strict";i.r(e);var n=i(4925);e.default=n.default.extend({strand:1,color:"#000000",height:12,labels:"overlay",unsortable:!0,fixedOrder:!0,arrowWidth:7,resize:function(){},makeFirstImage:function(){this.prop("scaleline",!1),this.base.apply(this,arguments)},render:function(t,e){this.base(t,e),this.prop("drawnScale",e.data("scale"))},positionFeatures:function(t,e){var i=this.prop("scaleline");if(e.scale===this.drawnScale)return!1;if(i)return i;var n=this.prop("strand"),r=this.prop("height"),o=this.formatLabel(this.browser.length),s=this.context.measureText(o).width,a=10,l=r/2,h=(this.width-s-a)/2;if(n){var c=1===n?"Forward strand":"Reverse strand",u=this.context.measureText(c).width,f=1===n?this.width-this.prop("arrowWidth")-u-15:this.prop("arrowWidth")+5;i=[{x:0,y:l,width:this.width,height:1,decorations:!0},{x:h,y:0,width:s+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:s,label:o},{x:f,y:0,width:u+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:u,label:c}]}else i=[{x:0,y:l,width:this.width,height:1,decorations:!0},{x:h,y:0,width:s+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:s,label:o}];return this.base(this.prop("scaleline",i),e)},decorateFeature:function(t,e){var i=this.prop("strand"),n=this.prop("height"),r=this.prop("arrowWidth"),o=this.width;e.strokeStyle=this.color,[-1,1].filter((function(t){return!i||t===i})).forEach((function(t){var i=1===t?o-r:r,s=i+t*r;e.beginPath(),e.moveTo(i,.25*n),e.lineTo(s,.5*n),e.lineTo(i,.75*n),e.closePath(),e.stroke(),e.fill()}))}})},4925:function(t,e,i){"use strict";i.r(e),i.d(e,{Controller:function(){return r},Model:function(){return o},View:function(){return s}});var n=i(3766),r=n.Qr.extend({addDomElements:function(){this.base(),this.image=this.browser.jQuery("<img>").appendTo(this.imgContainer),this.container.toggleClass("gv-track-container gv-track-container-static").prepend(this.imgContainer),this.scrollContainer.add(this.messageContainer).remove()},reset:function(){delete this.stringified,this.base.apply(this,arguments)},setWidth:function(t){this.base(t),this.image.width=this.width},makeFirstImage:function(){this.base.apply(this,arguments),this.container.css("left",0),this.imgContainer.show()},makeImage:function(t){if(this.prop("disabled"))return this.browser.jQuery.Deferred().resolve();var e=this.view.positionFeatures(this.model.findFeatures(t.chr,t.start,t.end),t);if(e){var i=JSON.stringify(e);if(this.stringified!==i){var n=this.prop("height");t.width=this.width,t.featureHeight=n,this.render(e,this.image.data(t)),this.imgContainer.children(":last").show(),this.resize(n,void 0,!1),this.stringified=i}}return this.browser.jQuery.Deferred().resolve()}}),o=n.Hn.extend({url:!1,checkDataRange:function(){return!0}}),s=n.G7.extend({featureMargin:{top:0,right:1,bottom:0,left:1},positionFeature:function(){},scaleFeatures:function(t){return t},draw:function(t,e,i,n){var r=this;t.forEach((function(t){return r.drawFeature(t,e,i,n)}))}});e.default=n.ZP.extend({controls:"off",resizable:!1,controller:r,model:o,view:s})},7371:function(t,e,i){"use strict";i.r(e);var n=i(3766),r=i(2694);function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){if(t){if("string"==typeof t)return h(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}e.default=n.ZP.extend({id:"dbSNP",name:"dbSNP",info:"All sequence variants from the database of Single Nucleotide Polymorphisms (dbSNP)",url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=variation;content-type=application/json",dataRequestLimit:5e6,threshold:1e5,labels:!1,legend:r.default,autoHeight:!0,colorMap:{transcript_ablation:"#ff0000",splice_acceptor_variant:"#FF581A",splice_donor_variant:"#FF581A",stop_gained:"#ff0000",frameshift_variant:"#9400D3",stop_lost:"#ff0000",start_lost:"#ffd700",transcript_amplification:"#ff69b4",inframe_insertion:"#ff69b4",inframe_deletion:"#ff69b4",missense_variant:"#ffd700",protein_altering_variant:"#FF0080",splice_region_variant:"#ff7f50",incomplete_terminal_codon_variant:"#ff00ff",stop_retained_variant:"#76ee00",synonymous_variant:"#76ee00",coding_sequence_variant:"#458b00",mature_miRNA_variant:"#458b00","5_prime_UTR_variant":"#7ac5cd","3_prime_UTR_variant":"#7ac5cd",non_coding_transcript_exon_variant:"#32cd32",intron_variant:"#02599c",NMD_transcript_variant:"#ff4500",non_coding_transcript_variant:"#32cd32",upstream_gene_variant:"#a2b5cd",downstream_gene_variant:"#a2b5cd",TFBS_ablation:"#a52a2a",TFBS_amplification:"#a52a2a",TF_binding_site_variant:"#a52a2a",regulatory_region_ablation:"#a52a2a",regulatory_region_amplification:"#a52a2a",feature_elongation:"#7f7f7f",regulatory_region_variant:"#a52a2a",feature_truncation:"#7f7f7f",intergenic_variant:"#636363"},insertFeature:function(t){t.color=this.prop("colorMap")[t.consequence_type],t.legend=t.consequence_type,t.start>t.end&&(t.decorations=!0),this.base(t)},decorateFeature:function(t,e,i){e.fillStyle=t.color,e.beginPath(),e.moveTo(t.position[i].X-3,t.position[i].Y+this.featureHeight),e.lineTo(t.position[i].X,t.position[i].Y+this.featureHeight-4),e.lineTo(t.position[i].X+3,t.position[i].Y+this.featureHeight),e.fill(),i>1&&e.fillRect(t.position[i].X-.5,t.position[i].Y,1.5,t.position[i].height)},populateMenu:function(t){var e=this.browser.jQuery.Deferred(),i=[{title:'<a href="https://www.ensembl.org/Homo_sapiens/Variation/Summary?v='.concat(t.id,'" target="_blank">').concat(t.id,"</a>"),Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),Consequence:t.consequence_type,Alleles:t.alleles.join(", ")}];return this.browser.jQuery.ajax({url:"//rest.ensembl.org/variation/human/".concat(t.id,"?population_genotypes=1;content-type=application/json"),dataType:"json",success:function(n){var r=n.population_genotypes.filter((function(t){return/1000GENOMES.+ALL/.test(t.population)})),l={};r.length&&(r.forEach((function(t){t.frequency=parseFloat(t.frequency,10),t.count=parseInt(t.count,10),l[t.population]=l[t.population]||[],l[t.population].push(t)})),i.push.apply(i,a(Object.entries(l).map((function(t){var e=s(t,2),i=e[0];return e[1].sort((function(t,e){return t.count<e.count})).reduce((function(t,e){return Object.assign(t,o({},e.genotype,["".concat((100*e.frequency).toFixed(2),"%"),e.count]))}),{title:"".concat(i," population genotypes"),Genotype:["Frequency","Count"],start:!1,end:!1})}))).concat([o({start:!1,end:!1},'<a href="https://www.ensembl.org/Homo_sapiens/Variation/Population?v='.concat(t.id,'" target="_blank">See all population genotypes</a>'),"")]))),e.resolve(i)}}),e},5e3:{bump:!1},1:{bump:!0}})},8483:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});var n=i(702),r=i.n(n),o=i(9408);function s(t,e){var i={fetchedData:new(r())},n=function(t,e){return t[e]+256*t[e+1]+65536*t[e+2]+16777216*t[e+3]+4294967296*t[e+4]},s=function(t,e){var n,r,o,s,a=[],l=new Uint8Array(t),h=new Int16Array(t),c=new Int32Array(t),u=new Float32Array(t),f=c[0],p=parseInt(i.chroms[f].replace("chr",""),10),d=c[1]+1,g=c[3],m=c[4],v=l[20],y=h[11];if(3===v)for(n=0;n<y;n++)o=(r=d+n*g)+m-1,s=u[n+6],f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});else if(2===v)for(n=0;n<y;n++)o=(r=c[2*n+6]+1)+m-1,s=u[2*n+7],f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});else if(1===v)for(n=0;n<y;n++)r=c[3*n+6]+1,o=c[3*n+7],s=u[3*n+8],r>o&&(r=o),f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});return a},a=function(t,e){for(var n,r,o,s=[],a=new Uint8Array(t),l=new Int32Array(t),h=0;h<l.length;){for(n={chromid:l[h],chr:i.chroms[l[h]],start:l[h+1],end:l[h+2]},h+=12;0!==(r=a[h++]);)o+=String.fromCharCode(r);n.chromid===e.chrom&&s.push([n.chr,n.start,n.end,o].join("\t"))}return s},l=function(e,n,r){var o=e+n,s=i.fetchedData.search({x:e,w:n,y:0,h:1}).filter((function(t){return t[0]<=e&&t[1]>=o}));1===s.length?r(s[0][2].slice(e-s[0][0],e+n)):t.slice(e,n).fetch((function(t){i.fetchedData.insert({x:e,w:n,y:0,h:1},[e,e+n,t]),r(t)}))},h=function(t,e,r,h){var c=[],u=i.chroms.indexOf(t);if(-1===u&&-1===(u=i.chroms.indexOf("chr".concat(t))))return h([],"chrom not found");var f,p,d,g,m={chrom:u,start:e,end:r};f=0,p=function(){var t="bigwig"===i.type?s:"bigbed"===i.type&&a,e=[];if(t&&c.length)for(var n=0;n<c.length;n++)e=e.concat(t(c[n].data,m));h(e)},d=function(){if(c.sort((function(t,e){return(0|t.offset)-(0|e.offset)})),0===c.length)return p();for(var t=0,e=c[0].offset,n=0;n<c.length;n++)t+=c[n].size;l(e,t,(function(e){for(var n,r,s=0,a=0;s<t;)n=c[a],r=i.uncompressBufSize>0?(0,o.Z)(e,s+2,n.size-2):e.slice(s,s+n.size),c[a].data=r,s+=n.size,a++;p()}))},g=function(t,e,i,r){var o,s=function(t,e){var i,r,o=new Uint8Array(t),s=new Uint16Array(t),a=new Uint32Array(t),l=s[e/2+1],h={isLeaf:o[e],children:l,chrIdxStart:new Array(l),baseStart:new Array(l),chrIdxEnd:new Array(l),baseEnd:new Array(l),dataOffset:new Array(l),x:{}};if(h.isLeaf)h.x.size=new Array(l);else for(h.x.child=new Array(l),r=0;r<l;r++)h.x.child[r]=-1;for(e+=4,r=0;r<l;r++)i=e/4,h.chrIdxStart[r]=a[i],h.baseStart[r]=a[i+1],h.chrIdxEnd[r]=a[i+2],h.baseEnd[r]=a[i+3],h.dataOffset[r]=n(o,e+16),e+=24,h.isLeaf&&(h.x.size[r]=n(o,e),e+=8);return h}(t,e),a=function(t){for(var e=t.children,i=[],n=0;n<e;n++){var r=t.chrIdxStart[n],o=t.baseStart[n],s=t.chrIdxEnd[n],a=t.baseEnd[n];(r<m.chrom||r==m.chrom&&o<=m.end)&&(s>m.chrom||s==m.chrom&&a>=m.start)&&i.push(n)}return i}(s);if(s.isLeaf){for(o=0;o<a.length;o++)c.push({offset:s.dataOffset[a[o]],size:s.x.size[a[o]]});return[]}r(a.map((function(t){return s.dataOffset[t]})),i+1)},function t(e,n){f+=e.length;var r=e[0],o=4+32*i.Rheader.blockSize,s=e[e.length-1]+o;l(r,s-r,(function(i){for(var o=0;o<e.length;o++)g(i,e[o]-r,n,t),0==--f&&d()}))}([i.rootOffset],1)},c=function(){var t=i.unzoomedDataOffset-i.chromTreeOffset;l(i.chromTreeOffset,t+4-t%4,(function(t){var r,o=new Uint8Array(t),s=new Uint16Array(t),a=new Uint32Array(t);2026540177===a[0]?(i.bpTree={itemsPerBlock:a[1],keySize:a[2],valueSize:a[3],itemCount:n(o,16)},i.chroms=new Array(i.bpTree.itemCount),i.lengths=new Array(i.bpTree.itemCount)):r="chromosome id B+ tree not found!",r?e(null,r):function(t){for(var e,n,r,a,l,h=s[t/2+1],c=t+4;h>0;){for(h--,e="",n=0;n<i.bpTree.keySize;n++)0!==(r=o[c+n])&&(e+=String.fromCharCode(r));c+=i.bpTree.keySize,a=o[c+3]<<24|o[c+2]<<16|o[c+1]<<8|o[c+0],l=o[c+7]<<24|o[c+6]<<16|o[c+5]<<8|o[c+4],c+=8,i.chroms[a]=e,i.lengths[a]=l}}(32),l(i.unzoomedIndexOffset,48,(function(t){var r=new Uint8Array(t),o=new Uint32Array(t);610839776===o[0]?(i.Rheader={blockSize:o[1],nItems:n(r,8),chrIdxStart:o[4],baseStart:o[5],chrIdxEnd:o[6],baseEnd:o[7],endFileOffset:n(r,32),nItemsPerSlot:o[10]},i.rootOffset=i.unzoomedIndexOffset+48,i.getValues=h,e(i)):e(null,"R-tree not found!")}))}))};l(0,512,(function(t){var r,o,s,a,h,u=new Uint8Array(t),f=new Uint16Array(t),p=new Uint32Array(t),d=p[0];2291137574===d?i.type="bigwig":2273964779===d?i.type="bigbed":r=654086024===d||3958540679===d?"big-endian files not supported yet!":"unsupported file format",r&&e(null,r),i.version=f[2],i.numZoomLevels=f[3],i.chromTreeOffset=n(u,8),i.unzoomedDataOffset=n(u,16),i.unzoomedIndexOffset=n(u,24),i.fieldCount=f[16],i.definedFieldCount=f[17],i.asOffset=n(u,36),i.totalSummaryOffset=n(u,44),i.uncompressBufSize=p[13],i.extHeaderOffset=n(u,56),i.compressed=i.uncompressBufSize>0,i.summary=i.totalSummaryOffset>0,i.extHeader=i.extHeaderOffset>0,i.zoomHeaders=[];for(var g=0;g<i.numZoomLevels;g++)o=p[16+6*g],s=n(u,72+24*g),a=n(u,80+24*g),i.zoomHeaders.push({reductionLevel:o,dataOffset:s,indexOffset:a});h=c,0===i.asOffset?h():l(i.asOffset,2048,(function(t){for(var e=new Uint8Array(t),n="",r=0;r<e.length&&0!==e[r];r++)n+=String.fromCharCode(e[r]);var o=/([\w[]]+)\s+(\w+)\s*;\s*("([^"]+)")?\s*/g,s=/(\w+)\s+(\w+)\s+("([^"]+)")?\s*\(\s*/.exec(n);if(s){var a={declType:s[1],name:s[2],comment:s[4],fields:[]};n=n.substring(s[0]);for(var l=o.exec(n);null!==l;l=o.exec(n))a.fields.push({type:l[1],name:l[2],comment:l[4]});i.schema=a}h()}))}))}},9817:function(t,e,i){"use strict";i.d(e,{PE:function(){return y},zn:function(){return b},$_:function(){return O},yl:function(){return T},N1:function(){return P},tq:function(){return j}});function n(t){return a(l(s(t),8*t.length))}function r(t){for(var e="",i=t.length,n=0;n<i;n+=3)for(var r=t.charCodeAt(n)<<16|(n+1<i?t.charCodeAt(n+1)<<8:0)|(n+2<i?t.charCodeAt(n+2):0),o=0;o<4;o++)8*n+6*o>8*t.length?e+="":e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>>6*(3-o)&63);return e}function o(t){for(var e,i,n="",r=-1;++r<t.length;)e=t.charCodeAt(r),i=r+1<t.length?t.charCodeAt(r+1):0,55296<=e&&e<=56319&&56320<=i&&i<=57343&&(e=65536+((1023&e)<<10)+(1023&i),r++),e<=127?n+=String.fromCharCode(e):e<=2047?n+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}function s(t){for(var e=Array(t.length>>2),i=0;i<e.length;i++)e[i]=0;for(i=0;i<8*t.length;i+=8)e[i>>5]|=(255&t.charCodeAt(i/8))<<24-i%32;return e}function a(t){for(var e="",i=0;i<32*t.length;i+=8)e+=String.fromCharCode(t[i>>5]>>>24-i%32&255);return e}function l(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var i=Array(80),n=1732584193,r=-271733879,o=-1732584194,s=271733878,a=-1009589776,l=0;l<t.length;l+=16){for(var p=n,d=r,g=o,m=s,v=a,y=0;y<80;y++){i[y]=y<16?t[l+y]:f(i[y-3]^i[y-8]^i[y-14]^i[y-16],1);var b=u(u(f(n,5),h(y,r,o,s)),u(u(a,i[y]),c(y)));a=s,s=o,o=f(r,30),r=n,n=b}n=u(n,p),r=u(r,d),o=u(o,g),s=u(s,m),a=u(a,v)}return Array(n,r,o,s,a)}function h(t,e,i,n){return t<20?e&i|~e&n:t<40?e^i^n:t<60?e&i|e&n|i&n:e^i^n}function c(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function u(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}function f(t,e){return t<<e|t>>>32-e}var p=function(t){return r(n(o(t)))};function d(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function g(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?d(Object(i),!0).forEach((function(e){m(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function m(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(t){this.blob=t}function b(t,e,i,n){n||("object"===v(e)?(n=e,e=void 0):n={}),this.url=t,this.start=e||0,i&&(this.end=i),this.opts=n}y.prototype.slice=function(t,e){return new y(this.blob.slice?e?this.blob.slice(t,t+e):this.blob.slice(t):e?this.blob.webkitSlice(t,t+e):this.blob.webkitSlice(t))},y.prototype.salted=function(){return this},"undefined"!=typeof FileReader?y.prototype.fetch=function(t){var e=new FileReader;e.onloadend=function(i){t(_(e.result))},e.readAsBinaryString(this.blob)}:y.prototype.fetch=function(t){var e=new FileReaderSync;try{t(e.readAsArrayBuffer(this.blob))}catch(e){t(null,e)}},b.prototype.slice=function(t,e){if(t<0)throw"Bad slice "+t;var i=this.start,n=this.end;return i&&t?i+=t:i=t||i,n=e&&i?i+e-1:n||e-1,new b(this.url,i,n,this.opts)};var w=0,x="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>=0&&navigator.userAgent.indexOf("Chrome")<0;function _(t){if(!t)return null;for(var e=new Uint8Array(t.length),i=0;i<e.length;++i)e[i]=t.charCodeAt(i);return e.buffer}b.prototype.fetchAsText=function(t){var e=this;this.getURL().then((function(i){try{var n=new XMLHttpRequest;if((x||e.opts.salt)&&i.indexOf("?")<0&&(i=i+"?salt="+p(Date.now()+","+ ++w)),n.open("GET",i,!0),e.end){if(e.end-e.start>1e8)throw"Monster fetch!";n.setRequestHeader("Range","bytes="+e.start+"-"+e.end),e.end-e.start+1}n.onreadystatechange=function(){if(4==n.readyState)return 200==n.status||206==n.status?t(n.responseText):t(null)},e.opts.credentials&&(n.withCredentials=!0),n.send()}catch(e){return t(null)}})).catch((function(e){return console.log(e),t(null,e)}))},b.prototype.salted=function(){return new b(this.url,this.start,this.end,g(g({},this.opts),{},{salt:!0}))},b.prototype.getURL=function(){return this.opts.resolver?this.opts.resolver(this.url).then((function(t){return"string"==typeof t?t:t.url})):Promise.resolve(this.url)},b.prototype.fetch=function(t,e){var i=this,n=(e=e||{}).attempt||1,r=e.truncatedLength;if(n>3)return t(null);this.getURL().then((function(o){try{var s;e.timeout&&!i.opts.credentials&&(s=setTimeout((function(){return console.log("timing out "+o),l.abort(),t(null,"Timeout")}),e.timeout));var a,l=new XMLHttpRequest;if((x||i.opts.salt)&&o.indexOf("?")<0&&(o=o+"?salt="+p(Date.now()+","+ ++w)),l.open("GET",o,!0),l.overrideMimeType("text/plain; charset=x-user-defined"),i.end){if(i.end-i.start>1e8)throw"Monster fetch!";l.setRequestHeader("Range","bytes="+i.start+"-"+i.end),a=i.end-i.start+1}l.responseType="arraybuffer",l.onreadystatechange=function(){if(4==l.readyState){if(s&&clearTimeout(s),200==l.status||206==l.status){if(l.response){var e=l.response.byteLength;return!a||a==e||r&&e==r?t(l.response):i.fetch(t,{attempt:n+1,truncatedLength:e})}if(l.mozResponseArrayBuffer)return t(l.mozResponseArrayBuffer);var o=l.responseText;return!a||a==o.length||r&&o.length==r?t(_(l.responseText)):i.fetch(t,{attempt:n+1,truncatedLength:o.length})}return i.fetch(t,{attempt:n+1})}},i.opts.credentials&&(l.withCredentials=!0),l.send()}catch(e){return t(null)}})).catch((function(e){return console.log(e),t(null,e)}))};var k=new ArrayBuffer(8),S=new Uint8Array(k),C=new Float32Array(k);function T(t,e){return S[0]=t[e],S[1]=t[e+1],S[2]=t[e+2],S[3]=t[e+3],C[0]}function P(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function j(t,e){return t[e+1]<<8|t[e]}function O(t,e){return t[e]}},9408:function(t,e){"use strict";var i=15,n=-2,r=-3,o=-5,s=13,a=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],l=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],h=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],c=[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],u=[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,112,112],f=[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],p=[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];function d(){}function g(){this.was=[0]}d.prototype.inflateInit=function(t,e){return t||(t=15),e&&(e=!1),this.istate=new g,this.istate.inflateInit(this,e?-t:t)},d.prototype.inflate=function(t){return null==this.istate?n:this.istate.inflate(this,t)},d.prototype.inflateEnd=function(){if(null==this.istate)return n;var t=istate.inflateEnd(this);return this.istate=null,t},d.prototype.inflateSync=function(){return istate.inflateSync(this)},d.prototype.inflateSetDictionary=function(t,e){return istate.inflateSetDictionary(this,t,e)},g.prototype.inflateReset=function(t){return null==t||null==t.istate?n:(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=0!=t.istate.nowrap?7:0,t.istate.blocks.reset(t,null),0)},g.prototype.inflateEnd=function(t){return null!=this.blocks&&this.blocks.free(t),this.blocks=null,0},g.prototype.inflateInit=function(t,e){return t.msg=null,this.blocks=null,nowrap=0,e<0&&(e=-e,nowrap=1),e<8||e>15?(this.inflateEnd(t),n):(this.wbits=e,t.istate.blocks=new y(t,0!=t.istate.nowrap?null:this,1<<e),this.inflateReset(t),0)},g.prototype.inflate=function(t,e){var i,a;if(null==t||null==t.istate||null==t.next_in)return n;for(e=4==e?o:0,i=o;;)switch(t.istate.mode){case 0:if(0==t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,8!=(15&(t.istate.method=t.next_in[t.next_in_index++]))){t.istate.mode=s,t.msg="unknown compression method",t.istate.marker=5;break}if(8+(t.istate.method>>4)>t.istate.wbits){t.istate.mode=s,t.msg="invalid window size",t.istate.marker=5;break}t.istate.mode=1;case 1:if(0==t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,a=255&t.next_in[t.next_in_index++],((t.istate.method<<8)+a)%31!=0){t.istate.mode=s,t.msg="incorrect header check",t.istate.marker=5;break}if(0==(32&a)){t.istate.mode=7;break}t.istate.mode=2;case 2:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=3;case 3:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=4;case 4:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=5;case 5:return 0==t.avail_in?i:(i=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.adler=t.istate.need,t.istate.mode=6,2);case 6:return t.istate.mode=s,t.msg="need dictionary",t.istate.marker=0,n;case 7:if((i=t.istate.blocks.proc(t,i))==r){t.istate.mode=s,t.istate.marker=0;break}if(0==i&&(i=e),1!=i)return i;if(i=e,t.istate.blocks.reset(t,t.istate.was),0!=t.istate.nowrap){t.istate.mode=12;break}t.istate.mode=8;case 8:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=9;case 9:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=10;case 10:if(0==t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=11;case 11:if(0==t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.istate.was[0]!=t.istate.need){t.istate.mode=s,t.msg="incorrect data check",t.istate.marker=5;break}t.istate.mode=12;case 12:return 1;case s:return r;default:return n}},g.prototype.inflateSetDictionary=function(t,e,i){var o=0,s=i;return null==t||null==t.istate||6!=t.istate.mode?n:t._adler.adler32(1,e,0,i)!=t.adler?r:(t.adler=t._adler.adler32(0,null,0,0),s>=1<<t.istate.wbits&&(o=i-(s=(1<<t.istate.wbits)-1)),t.istate.blocks.set_dictionary(e,o,s),t.istate.mode=7,0)};var m=[0,0,255,255];g.prototype.inflateSync=function(t){var e,i,a,l,h;if(null==t||null==t.istate)return n;if(t.istate.mode!=s&&(t.istate.mode=s,t.istate.marker=0),0==(e=t.avail_in))return o;for(i=t.next_in_index,a=t.istate.marker;0!=e&&a<4;)t.next_in[i]==m[a]?a++:a=0!=t.next_in[i]?0:4-a,i++,e--;return t.total_in+=i-t.next_in_index,t.next_in_index=i,t.avail_in=e,t.istate.marker=a,4!=a?r:(l=t.total_in,h=t.total_out,this.inflateReset(t),t.total_in=l,t.total_out=h,t.istate.mode=7,0)},g.prototype.inflateSyncPoint=function(t){return null==t||null==t.istate||null==t.istate.blocks?n:t.istate.blocks.sync_point()};var v=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function y(t,e,i){this.hufts=new Int32Array(4320),this.window=new Uint8Array(i),this.end=i,this.checkfn=e,this.mode=0,this.reset(t,null),this.left=0,this.table=0,this.index=0,this.blens=null,this.bb=new Int32Array(1),this.tb=new Int32Array(1),this.codes=new b,this.last=0,this.bitk=0,this.bitb=0,this.read=0,this.write=0,this.check=0,this.inftree=new w}y.prototype.reset=function(t,e){e&&(e[0]=this.check),6==this.mode&&this.codes.free(t),this.mode=0,this.bitk=0,this.bitb=0,this.read=this.write=0,this.checkfn&&(t.adler=this.check=t._adler.adler32(0,null,0,0))},y.prototype.proc=function(t,e){var i,o,l,h,c,u,f;for(h=t.next_in_index,c=t.avail_in,o=this.bitb,l=this.bitk,f=(u=this.write)<this.read?this.read-u-1:this.end-u;;)switch(this.mode){case 0:for(;l<3;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}switch(i=7&o,this.last=1&i,i>>>1){case 0:o>>>=3,o>>>=i=7&(l-=3),l-=i,this.mode=1;break;case 1:x(m=new Int32Array(1),y=new Int32Array(1),b=[],w=[],t),this.codes.init(m[0],y[0],b[0],0,w[0],0,t),o>>>=3,l-=3,this.mode=6;break;case 2:o>>>=3,l-=3,this.mode=3;break;case 3:return o>>>=3,l-=3,this.mode=s,t.msg="invalid block type",e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e)}break;case 1:for(;l<32;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}if((~o>>>16&65535)!=(65535&o))return this.mode=s,t.msg="invalid stored block lengths",e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);this.left=65535&o,o=l=0,this.mode=0!=this.left?2:0!=this.last?7:0;break;case 2:if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,write=u,this.inflate_flush(t,e);if(0==f&&(u==end&&0!=read&&(f=(u=0)<this.read?this.read-u-1:this.end-u),0==f&&(this.write=u,e=this.inflate_flush(t,e),f=(u=this.write)<this.read?this.read-u-1:this.end-u,u==this.end&&0!=this.read&&(f=(u=0)<this.read?this.read-u-1:this.end-u),0==f)))return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);if(e=0,(i=this.left)>c&&(i=c),i>f&&(i=f),k(t.next_in,h,this.window,u,i),h+=i,c-=i,u+=i,f-=i,0!=(this.left-=i))break;this.mode=0!=this.last?7:0;break;case 3:for(;l<14;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}if(this.table=i=16383&o,(31&i)>29||(i>>5&31)>29)return this.mode=9,t.msg="too many length or distance symbols",e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);if(i=258+(31&i)+(i>>5&31),null==this.blens||this.blens.length<i)this.blens=new Int32Array(i);else for(var p=0;p<i;p++)this.blens[p]=0;o>>>=14,l-=14,this.index=0,mode=4;case 4:for(;this.index<4+(this.table>>>10);){for(;l<3;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}this.blens[v[this.index++]]=7&o,o>>>=3,l-=3}for(;this.index<19;)this.blens[v[this.index++]]=0;if(this.bb[0]=7,0!=(i=this.inftree.inflate_trees_bits(this.blens,this.bb,this.tb,this.hufts,t)))return(e=i)==r&&(this.blens=null,this.mode=9),this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,write=u,this.inflate_flush(t,e);this.index=0,this.mode=5;case 5:for(;i=this.table,this.index<258+(31&i)+(i>>5&31);){var d,g;for(i=this.bb[0];l<i;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}if(i=this.hufts[3*(this.tb[0]+(o&a[i]))+1],(g=this.hufts[3*(this.tb[0]+(o&a[i]))+2])<16)o>>>=i,l-=i,this.blens[this.index++]=g;else{for(p=18==g?7:g-14,d=18==g?11:3;l<i+p;){if(0==c)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);e=0,c--,o|=(255&t.next_in[h++])<<l,l+=8}if(l-=i,d+=(o>>>=i)&a[p],o>>>=p,l-=p,(p=this.index)+d>258+(31&(i=this.table))+(i>>5&31)||16==g&&p<1)return this.blens=null,this.mode=9,t.msg="invalid bit length repeat",e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);g=16==g?this.blens[p-1]:0;do{this.blens[p++]=g}while(0!=--d);this.index=p}}this.tb[0]=-1;var m=new Int32Array(1),y=new Int32Array(1),b=new Int32Array(1),w=new Int32Array(1);if(m[0]=9,y[0]=6,i=this.table,0!=(i=this.inftree.inflate_trees_dynamic(257+(31&i),1+(i>>5&31),this.blens,m,y,b,w,this.hufts,t)))return i==r&&(this.blens=null,this.mode=s),e=i,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);this.codes.init(m[0],y[0],this.hufts,b[0],this.hufts,w[0],t),this.mode=6;case 6:if(this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,1!=(e=this.codes.proc(this,t,e)))return this.inflate_flush(t,e);if(e=0,this.codes.free(t),h=t.next_in_index,c=t.avail_in,o=this.bitb,l=this.bitk,f=(u=this.write)<this.read?this.read-u-1:this.end-u,0==this.last){this.mode=0;break}this.mode=7;case 7:if(this.write=u,e=this.inflate_flush(t,e),f=(u=this.write)<this.read?this.read-u-1:this.end-u,this.read!=this.write)return this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);mode=12;case 8:return e=1,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);case 9:return e=r,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e);default:return e=n,this.bitb=o,this.bitk=l,t.avail_in=c,t.total_in+=h-t.next_in_index,t.next_in_index=h,this.write=u,this.inflate_flush(t,e)}},y.prototype.free=function(t){this.reset(t,null),this.window=null,this.hufts=null},y.prototype.set_dictionary=function(t,e,i){k(t,e,window,0,i),this.read=this.write=i},y.prototype.sync_point=function(){return 1==this.mode},y.prototype.inflate_flush=function(t,e){var i,n,r;return n=t.next_out_index,(i=((r=this.read)<=this.write?this.write:this.end)-r)>t.avail_out&&(i=t.avail_out),0!=i&&e==o&&(e=0),t.avail_out-=i,t.total_out+=i,null!=this.checkfn&&(t.adler=this.check=t._adler.adler32(this.check,this.window,r,i)),k(this.window,r,t.next_out,n,i),n+=i,(r+=i)==this.end&&(r=0,this.write==this.end&&(this.write=0),(i=this.write-r)>t.avail_out&&(i=t.avail_out),0!=i&&e==o&&(e=0),t.avail_out-=i,t.total_out+=i,null!=this.checkfn&&(t.adler=this.check=t._adler.adler32(this.check,this.window,r,i)),k(this.window,r,t.next_out,n,i),n+=i,r+=i),t.next_out_index=n,this.read=r,e};function b(){}function w(){}function x(t,e,i,n,r){return t[0]=9,e[0]=5,i[0]=l,n[0]=h,0}b.prototype.init=function(t,e,i,n,r,o,s){this.mode=0,this.lbits=t,this.dbits=e,this.ltree=i,this.ltree_index=n,this.dtree=r,this.dtree_index=o,this.tree=null},b.prototype.proc=function(t,e,i){var o,s,l,h,c,u,f,p=0,d=0,g=0;for(g=e.next_in_index,h=e.avail_in,p=t.bitb,d=t.bitk,u=(c=t.write)<t.read?t.read-c-1:t.end-c;;)switch(this.mode){case 0:if(u>=258&&h>=10&&(t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,i=this.inflate_fast(this.lbits,this.dbits,this.ltree,this.ltree_index,this.dtree,this.dtree_index,t,e),g=e.next_in_index,h=e.avail_in,p=t.bitb,d=t.bitk,u=(c=t.write)<t.read?t.read-c-1:t.end-c,0!=i)){this.mode=1==i?7:9;break}this.need=this.lbits,this.tree=this.ltree,this.tree_index=this.ltree_index,this.mode=1;case 1:for(o=this.need;d<o;){if(0==h)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,h--,p|=(255&e.next_in[g++])<<d,d+=8}if(s=3*(this.tree_index+(p&a[o])),p>>>=this.tree[s+1],d-=this.tree[s+1],0==(l=this.tree[s])){this.lit=this.tree[s+2],this.mode=6;break}if(0!=(16&l)){this.get=15&l,this.len=this.tree[s+2],this.mode=2;break}if(0==(64&l)){this.need=l,this.tree_index=s/3+this.tree[s+2];break}if(0!=(32&l)){this.mode=7;break}return this.mode=9,e.msg="invalid literal/length code",i=r,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);case 2:for(o=this.get;d<o;){if(0==h)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,h--,p|=(255&e.next_in[g++])<<d,d+=8}this.len+=p&a[o],p>>=o,d-=o,this.need=this.dbits,this.tree=this.dtree,this.tree_index=this.dtree_index,this.mode=3;case 3:for(o=this.need;d<o;){if(0==h)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,h--,p|=(255&e.next_in[g++])<<d,d+=8}if(s=3*(this.tree_index+(p&a[o])),p>>=this.tree[s+1],d-=this.tree[s+1],0!=(16&(l=this.tree[s]))){this.get=15&l,this.dist=this.tree[s+2],this.mode=4;break}if(0==(64&l)){this.need=l,this.tree_index=s/3+this.tree[s+2];break}return this.mode=9,e.msg="invalid distance code",i=r,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);case 4:for(o=this.get;d<o;){if(0==h)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,h--,p|=(255&e.next_in[g++])<<d,d+=8}this.dist+=p&a[o],p>>=o,d-=o,this.mode=5;case 5:for(f=c-this.dist;f<0;)f+=t.end;for(;0!=this.len;){if(0==u&&(c==t.end&&0!=t.read&&(u=(c=0)<t.read?t.read-c-1:t.end-c),0==u&&(t.write=c,i=t.inflate_flush(e,i),u=(c=t.write)<t.read?t.read-c-1:t.end-c,c==t.end&&0!=t.read&&(u=(c=0)<t.read?t.read-c-1:t.end-c),0==u)))return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);t.window[c++]=t.window[f++],u--,f==t.end&&(f=0),this.len--}this.mode=0;break;case 6:if(0==u&&(c==t.end&&0!=t.read&&(u=(c=0)<t.read?t.read-c-1:t.end-c),0==u&&(t.write=c,i=t.inflate_flush(e,i),u=(c=t.write)<t.read?t.read-c-1:t.end-c,c==t.end&&0!=t.read&&(u=(c=0)<t.read?t.read-c-1:t.end-c),0==u)))return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);i=0,t.window[c++]=this.lit,u--,this.mode=0;break;case 7:if(d>7&&(d-=8,h++,g--),t.write=c,i=t.inflate_flush(e,i),u=(c=t.write)<t.read?t.read-c-1:t.end-c,t.read!=t.write)return t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);this.mode=8;case 8:return i=1,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);case 9:return i=r,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i);default:return i=n,t.bitb=p,t.bitk=d,e.avail_in=h,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=c,t.inflate_flush(e,i)}},b.prototype.free=function(t){},b.prototype.inflate_fast=function(t,e,i,n,o,s,l,h){var c,u,f,p,d,g,m,v,y,b,w,x,_,S,C,T;m=h.next_in_index,v=h.avail_in,d=l.bitb,g=l.bitk,b=(y=l.write)<l.read?l.read-y-1:l.end-y,w=a[t],x=a[e];do{for(;g<20;)v--,d|=(255&h.next_in[m++])<<g,g+=8;if(0!=(p=(u=i)[T=3*((f=n)+(c=d&w))]))for(;;){if(d>>=u[T+1],g-=u[T+1],0!=(16&p)){for(p&=15,_=u[T+2]+(d&a[p]),d>>=p,g-=p;g<15;)v--,d|=(255&h.next_in[m++])<<g,g+=8;for(p=(u=o)[T=3*((f=s)+(c=d&x))];;){if(d>>=u[T+1],g-=u[T+1],0!=(16&p)){for(p&=15;g<p;)v--,d|=(255&h.next_in[m++])<<g,g+=8;if(S=u[T+2]+(d&a[p]),d>>=p,g-=p,b-=_,y>=S)C=y-S,l.window[y++]=l.window[C++],l.window[y++]=l.window[C++],_-=2;else{C=y-S;do{C+=l.end}while(C<0);if(_>(p=l.end-C)){if(_-=p,y-C>0&&p>y-C)do{l.window[y++]=l.window[C++]}while(0!=--p);else k(l.window,C,l.window,y,p),y+=p,C+=p,p=0;C=0}}do{l.window[y++]=l.window[C++]}while(0!=--_);break}if(0!=(64&p))return h.msg="invalid distance code",v+=_=g>>3<(_=h.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,h.avail_in=v,h.total_in+=m-h.next_in_index,h.next_in_index=m,l.write=y,r;c+=u[T+2],p=u[T=3*(f+(c+=d&a[p]))]}break}if(0!=(64&p))return 0!=(32&p)?(v+=_=g>>3<(_=h.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,h.avail_in=v,h.total_in+=m-h.next_in_index,h.next_in_index=m,l.write=y,1):(h.msg="invalid literal/length code",v+=_=g>>3<(_=h.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,h.avail_in=v,h.total_in+=m-h.next_in_index,h.next_in_index=m,l.write=y,r);if(c+=u[T+2],0==(p=u[T=3*(f+(c+=d&a[p]))])){d>>=u[T+1],g-=u[T+1],l.window[y++]=u[T+2],b--;break}}else d>>=u[T+1],g-=u[T+1],l.window[y++]=u[T+2],b--}while(b>=258&&v>=10);return v+=_=g>>3<(_=h.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,h.avail_in=v,h.total_in+=m-h.next_in_index,h.next_in_index=m,l.write=y,0},w.prototype.huft_build=function(t,e,n,s,a,l,h,c,u,f,p){var d,g,m,v,y,b,w,x,_,S,C,T,P,j,O;S=0,y=n;do{this.c[t[e+S]]++,S++,y--}while(0!=y);if(this.c[0]==n)return h[0]=-1,c[0]=0,0;for(x=c[0],b=1;b<=i&&0==this.c[b];b++);for(w=b,x<b&&(x=b),y=i;0!=y&&0==this.c[y];y--);for(m=y,x>y&&(x=y),c[0]=x,j=1<<b;b<y;b++,j<<=1)if((j-=this.c[b])<0)return r;if((j-=this.c[y])<0)return r;for(this.c[y]+=j,this.x[1]=b=0,S=1,P=2;0!=--y;)this.x[P]=b+=this.c[S],P++,S++;y=0,S=0;do{0!=(b=t[e+S])&&(this.v[this.x[b]++]=y),S++}while(++y<n);for(n=this.x[m],this.x[0]=y=0,S=0,v=-1,T=-x,this.u[0]=0,C=0,O=0;w<=m;w++)for(d=this.c[w];0!=d--;){for(;w>T+x;){if(v++,O=(O=m-(T+=x))>x?x:O,(g=1<<(b=w-T))>d+1&&(g-=d+1,P=w,b<O))for(;++b<O&&!((g<<=1)<=this.c[++P]);)g-=this.c[P];if(O=1<<b,this.hn[0]+O>1440)return r;this.u[v]=C=this.hn[0],this.hn[0]+=O,0!=v?(this.x[v]=y,this.r[0]=b,this.r[1]=x,b=y>>>T-x,this.r[2]=C-this.u[v-1]-b,k(this.r,0,u,3*(this.u[v-1]+b),3)):h[0]=C}for(this.r[1]=w-T,S>=n?this.r[0]=192:p[S]<s?(this.r[0]=this.v[S]<256?0:96,this.r[2]=this.v[S++]):(this.r[0]=l[this.v[S]-s]+16+64,this.r[2]=a[this.v[S++]-s]),g=1<<w-T,b=y>>>T;b<O;b+=g)k(this.r,0,u,3*(C+b),3);for(b=1<<w-1;0!=(y&b);b>>>=1)y^=b;for(y^=b,_=(1<<T)-1;(y&_)!=this.x[v];)v--,_=(1<<(T-=x))-1}return 0!=j&&1!=m?o:0},w.prototype.inflate_trees_bits=function(t,e,i,n,s){var a;return this.initWorkArea(19),this.hn[0]=0,(a=this.huft_build(t,0,19,19,null,null,i,e,n,this.hn,this.v))==r?s.msg="oversubscribed dynamic bit lengths tree":a!=o&&0!=e[0]||(s.msg="incomplete dynamic bit lengths tree",a=r),a},w.prototype.inflate_trees_dynamic=function(t,e,i,n,s,a,l,h,d){var g;return this.initWorkArea(288),this.hn[0]=0,0!=(g=this.huft_build(i,0,t,257,c,u,a,n,h,this.hn,this.v))||0==n[0]?(g==r?d.msg="oversubscribed literal/length tree":-4!=g&&(d.msg="incomplete literal/length tree",g=r),g):(this.initWorkArea(288),0!=(g=this.huft_build(i,t,e,0,f,p,l,s,h,this.hn,this.v))||0==s[0]&&t>257?(g==r?d.msg="oversubscribed distance tree":g==o?(d.msg="incomplete distance tree",g=r):-4!=g&&(d.msg="empty distance tree with lengths",g=r),g):0)},w.prototype.initWorkArea=function(t){null==this.hn&&(this.hn=new Int32Array(1),this.v=new Int32Array(t),this.c=new Int32Array(16),this.r=new Int32Array(3),this.u=new Int32Array(i),this.x=new Int32Array(16)),this.v.length<t&&(this.v=new Int32Array(t));for(var e=0;e<t;e++)this.v[e]=0;for(e=0;e<16;e++)this.c[e]=0;for(e=0;e<3;e++)this.r[e]=0;k(this.c,0,this.u,0,i),k(this.c,0,this.x,0,16)};var _="function"==typeof new Uint8Array(1).subarray;function k(t,e,i,n,r){if(0!=r){if(!t)throw"Undef src";if(!i)throw"Undef dest";0==e&&r==t.length?S(t,i,n):_?S(t.subarray(e,e+r),i,n):1==t.BYTES_PER_ELEMENT&&r>100?S(new Uint8Array(t.buffer,t.byteOffset+e,r),i,n):function(t,e,i,n,r){for(var o=0;o<r;++o)i[n+o]=t[e+o]}(t,e,i,n,r)}}function S(t,e,i){e.set(t,i)}e.Z=function(t,e,i,n){t=e?i?new Uint8Array(t,e,i):new Uint8Array(t,e,t.byteLength-e):new Uint8Array(t);var r=new d;r.inflateInit(15,!0),r.next_in=t,r.next_in_index=0,r.avail_in=t.length;for(var s=[],a=0;;){var l=new Uint8Array(32e3);r.next_out=l,r.next_out_index=0,r.avail_out=l.length;var h=r.inflate(0);if(0!=h&&1!=h&&h!=o)throw r.msg;if(0!=r.avail_out){var c=new Uint8Array(l.length-r.avail_out);k(l,0,c,0,l.length-r.avail_out),l=c}if(s.push(l),a+=l.length,1==h||h==o)break}if(n&&(n[0]=(e||0)+r.next_in_index),1==s.length)return s[0].buffer;for(var u=new Uint8Array(a),f=0,p=0;p<s.length;++p){var g=s[p];k(g,0,u,f,g.length),f+=g.length}return u.buffer}},2940:function(t,e){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var n=function(t,e,i,n,r,o){var s="".concat(e).concat(i),a=r["".concat(s,".once")]||[],l=(r[s]||[]).concat(a,"function"==typeof n[s]?n[s]:[]);a.length&&delete r["".concat(s,".once")],l.forEach((function(e){return e.apply(t,o)}))},r=function(t,e,r,o,s){if(!e.functions[t]&&!/^(before|after)/.test(t)){var a="".concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)),l=s.for,h=!!l&&"".concat(s.label,".").concat(t),c="time"===l||"object"===i(l)&&l[t];e.functions[t]=e[t].bind(e),e[t]=function(){var i,s,u,f,p=(null===(i=e._currentConfig||(null===(s=e.track)||void 0===s?void 0:s._currentConfig))||void 0===i?void 0:i.func)||{};!0===l?console.log(h):c&&console.time("time: ".concat(h));for(var d=arguments.length,g=new Array(d),m=0;m<d;m++)g[m]=arguments[m];(n(e,"before",a,r,o,g),p[t])?(e.base=e.functions[t]||function(){},u=p[t].apply(e,g)):u=(f=e.functions)[t].apply(f,g);return n(e,"after",a,r,o,g),c&&console.timeEnd("time: ".concat(h)),u}}};e.Z=function(t,e){t.functions=t.functions||{};var i="Genoverse"===e,n=i||"Track"===e?t:t.track,o=i?t.events.browser:t.browser.events.tracks,s={for:n.debug,label:!!n.debug&&[i?"Genoverse":n.id||n.name||"Track",t!==n&&e].filter(Boolean).join(".")};for(var a in t)"function"!=typeof t[a]||"function"==typeof t[a].ancestor||a.match(/^(base|extend|constructor|controller|model|view|on|once|prop|loadPlugins|loadGenome|jQuery)$/)||r(a,t,n,o,s)}},7810:function(t){var e;t.exports=((e=function(){}).extend=function(t,i){var n=e.prototype.extend;e._prototyping=!0;var r=new this;n.call(r,t),r.base=function(){},delete e._prototyping;var o=r.constructor,s=r.constructor=function(){if(!e._prototyping)if(this._constructing||this.constructor===s)this._constructing=!0,o.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||n).call(arguments[0],r)};return s.ancestor=this,s.extend=this.extend,s.forEach=this.forEach,s.implement=this.implement,s.prototype=r,s.toString=this.toString,s.valueOf=function(t){return"object"===t?s:o.valueOf()},n.call(s,i),"function"==typeof s.init&&s.init(),s},e.prototype={extend:function(t,i){if(arguments.length>1){var n=this[t];if(n&&"function"==typeof i&&(!n.valueOf||n.valueOf()!==i.valueOf())&&/\bbase\b/.test(i)){var r=i.valueOf();i=function(){var t=this.base||e.prototype.base;this.base=n;var i=r.apply(this,arguments);return this.base=t,i},i.valueOf=function(t){return"object"===t?i:r},i.toString=e.toString}this[t]=i}else if(t){var o=e.prototype.extend;e._prototyping||"function"==typeof this||(o=this.extend||o);for(var s={toSource:null},a=["constructor","toString","valueOf"],l=e._prototyping?0:1;l<a.length;l++){var h=a[l];t[h]!==s[h]&&o.call(this,h,t[h])}for(var c in t)s[c]||o.call(this,c,t[c])}return this}},e=e.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(t,e,i){for(var n in t)void 0===this.prototype[n]&&e.call(i,t[n],n,t)},implement:function(){for(var t=0;t<arguments.length;t++)"function"==typeof arguments[t]?arguments[t](this.prototype):this.prototype.extend(arguments[t]);return this},toString:function(){return String(this.valueOf())}}),e)},9662:function(t,e,i){var n=i(7854),r=i(614),o=i(6330),s=n.TypeError;t.exports=function(t){if(r(t))return t;throw s(o(t)+" is not a function")}},9483:function(t,e,i){var n=i(7854),r=i(4411),o=i(6330),s=n.TypeError;t.exports=function(t){if(r(t))return t;throw s(o(t)+" is not a constructor")}},6077:function(t,e,i){var n=i(7854),r=i(614),o=n.String,s=n.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw s("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,i){var n=i(5112),r=i(30),o=i(3070),s=n("unscopables"),a=Array.prototype;null==a[s]&&o.f(a,s,{configurable:!0,value:r(null)}),t.exports=function(t){a[s][t]=!0}},5787:function(t,e,i){var n=i(7854),r=i(7976),o=n.TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,i){var n=i(7854),r=i(111),o=n.String,s=n.TypeError;t.exports=function(t){if(r(t))return t;throw s(o(t)+" is not an object")}},1285:function(t,e,i){"use strict";var n=i(7908),r=i(1400),o=i(6244);t.exports=function(t){for(var e=n(this),i=o(e),s=arguments.length,a=r(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,h=void 0===l?i:r(l,i);h>a;)e[a++]=t;return e}},8457:function(t,e,i){"use strict";var n=i(7854),r=i(9974),o=i(6916),s=i(7908),a=i(3411),l=i(7659),h=i(4411),c=i(6244),u=i(6135),f=i(8554),p=i(1246),d=n.Array;t.exports=function(t){var e=s(t),i=h(this),n=arguments.length,g=n>1?arguments[1]:void 0,m=void 0!==g;m&&(g=r(g,n>2?arguments[2]:void 0));var v,y,b,w,x,_,k=p(e),S=0;if(!k||this==d&&l(k))for(v=c(e),y=i?new this(v):d(v);v>S;S++)_=m?g(e[S],S):e[S],u(y,S,_);else for(x=(w=f(e,k)).next,y=i?new this:[];!(b=o(x,w)).done;S++)_=m?a(w,g,[b.value,S],!0):b.value,u(y,S,_);return y.length=S,y}},1318:function(t,e,i){var n=i(5656),r=i(1400),o=i(6244),s=function(t){return function(e,i,s){var a,l=n(e),h=o(l),c=r(s,h);if(t&&i!=i){for(;h>c;)if((a=l[c++])!=a)return!0}else for(;h>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,i){var n=i(9974),r=i(1702),o=i(8361),s=i(7908),a=i(6244),l=i(5417),h=r([].push),c=function(t){var e=1==t,i=2==t,r=3==t,c=4==t,u=6==t,f=7==t,p=5==t||u;return function(d,g,m,v){for(var y,b,w=s(d),x=o(w),_=n(g,m),k=a(x),S=0,C=v||l,T=e?C(d,k):i||f?C(d,0):void 0;k>S;S++)if((p||S in x)&&(b=_(y=x[S],S,w),t))if(e)T[S]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return S;case 2:h(T,y)}else switch(t){case 4:return!1;case 7:h(T,y)}return u?-1:r||c?c:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},1589:function(t,e,i){var n=i(7854),r=i(1400),o=i(6244),s=i(6135),a=n.Array,l=Math.max;t.exports=function(t,e,i){for(var n=o(t),h=r(e,n),c=r(void 0===i?n:i,n),u=a(l(c-h,0)),f=0;h<c;h++,f++)s(u,f,t[h]);return u.length=f,u}},206:function(t,e,i){var n=i(1702);t.exports=n([].slice)},4362:function(t,e,i){var n=i(1589),r=Math.floor,o=function(t,e){var i=t.length,l=r(i/2);return i<8?s(t,e):a(t,o(n(t,0,l),e),o(n(t,l),e),e)},s=function(t,e){for(var i,n,r=t.length,o=1;o<r;){for(n=o,i=t[o];n&&e(t[n-1],i)>0;)t[n]=t[--n];n!==o++&&(t[n]=i)}return t},a=function(t,e,i,n){for(var r=e.length,o=i.length,s=0,a=0;s<r||a<o;)t[s+a]=s<r&&a<o?n(e[s],i[a])<=0?e[s++]:i[a++]:s<r?e[s++]:i[a++];return t};t.exports=o},7475:function(t,e,i){var n=i(7854),r=i(3157),o=i(4411),s=i(111),a=i(5112)("species"),l=n.Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===l||r(e.prototype))||s(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?l:e}},5417:function(t,e,i){var n=i(7475);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},3411:function(t,e,i){var n=i(9670),r=i(9212);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){r(t,"throw",e)}}},7072:function(t,e,i){var n=i(5112)("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},4326:function(t,e,i){var n=i(1702),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},648:function(t,e,i){var n=i(7854),r=i(1694),o=i(614),s=i(4326),a=i(5112)("toStringTag"),l=n.Object,h="Arguments"==s(function(){return arguments}());t.exports=r?s:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=l(t),a))?i:h?s(e):"Object"==(n=s(e))&&o(e.callee)?"Arguments":n}},7741:function(t,e,i){var n=i(1702)("".replace),r=String(Error("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(r);t.exports=function(t,e){if(s&&"string"==typeof t)for(;e--;)t=n(t,o,"");return t}},9920:function(t,e,i){var n=i(2597),r=i(3887),o=i(1236),s=i(3070);t.exports=function(t,e,i){for(var a=r(e),l=s.f,h=o.f,c=0;c<a.length;c++){var u=a[c];n(t,u)||i&&n(i,u)||l(t,u,h(e,u))}}},8544:function(t,e,i){var n=i(7293);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:function(t,e,i){"use strict";var n=i(3383).IteratorPrototype,r=i(30),o=i(9114),s=i(8003),a=i(7497),l=function(){return this};t.exports=function(t,e,i,h){var c=e+" Iterator";return t.prototype=r(n,{next:o(+!h,i)}),s(t,c,!1,!0),a[c]=l,t}},8880:function(t,e,i){var n=i(9781),r=i(3070),o=i(9114);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:function(t,e,i){"use strict";var n=i(4948),r=i(3070),o=i(9114);t.exports=function(t,e,i){var s=n(e);s in t?r.f(t,s,o(0,i)):t[s]=i}},654:function(t,e,i){"use strict";var n=i(2109),r=i(6916),o=i(1913),s=i(6530),a=i(614),l=i(4994),h=i(9518),c=i(7674),u=i(8003),f=i(8880),p=i(1320),d=i(5112),g=i(7497),m=i(3383),v=s.PROPER,y=s.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=d("iterator"),_="keys",k="values",S="entries",C=function(){return this};t.exports=function(t,e,i,s,d,m,T){l(i,e,s);var P,j,O,A=function(t){if(t===d&&H)return H;if(!w&&t in I)return I[t];switch(t){case _:case k:case S:return function(){return new i(this,t)}}return function(){return new i(this)}},E=e+" Iterator",M=!1,I=t.prototype,D=I[x]||I["@@iterator"]||d&&I[d],H=!w&&D||A(d),F="Array"==e&&I.entries||D;if(F&&(P=h(F.call(new t)))!==Object.prototype&&P.next&&(o||h(P)===b||(c?c(P,b):a(P[x])||p(P,x,C)),u(P,E,!0,!0),o&&(g[E]=C)),v&&d==k&&D&&D.name!==k&&(!o&&y?f(I,"name",k):(M=!0,H=function(){return r(D,this)})),d)if(j={values:A(k),keys:m?H:A(_),entries:A(S)},T)for(O in j)(w||M||!(O in I))&&p(I,O,j[O]);else n({target:e,proto:!0,forced:w||M},j);return o&&!T||I[x]===H||p(I,x,H,{name:d}),g[e]=H,j}},9781:function(t,e,i){var n=i(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,e,i){var n=i(7854),r=i(111),o=n.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},7871:function(t){t.exports="object"==typeof window},1528:function(t,e,i){var n=i(8113),r=i(7854);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},6833:function(t,e,i){var n=i(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5268:function(t,e,i){var n=i(4326),r=i(7854);t.exports="process"==n(r.process)},1036:function(t,e,i){var n=i(8113);t.exports=/web0s(?!.*chrome)/i.test(n)},8113:function(t,e,i){var n=i(5005);t.exports=n("navigator","userAgent")||""},7392:function(t,e,i){var n,r,o=i(7854),s=i(8113),a=o.process,l=o.Deno,h=a&&a.versions||l&&l.version,c=h&&h.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2914:function(t,e,i){var n=i(7293),r=i(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},2109:function(t,e,i){var n=i(7854),r=i(1236).f,o=i(8880),s=i(1320),a=i(3505),l=i(9920),h=i(4705);t.exports=function(t,e){var i,c,u,f,p,d=t.target,g=t.global,m=t.stat;if(i=g?n:m?n[d]||a(d,{}):(n[d]||{}).prototype)for(c in e){if(f=e[c],u=t.noTargetGet?(p=r(i,c))&&p.value:i[c],!h(g?c:d+(m?".":"#")+c,t.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(t.sham||u&&u.sham)&&o(f,"sham",!0),s(i,c,f,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},6790:function(t,e,i){"use strict";var n=i(7854),r=i(3157),o=i(6244),s=i(9974),a=n.TypeError,l=function(t,e,i,n,h,c,u,f){for(var p,d,g=h,m=0,v=!!u&&s(u,f);m<n;){if(m in i){if(p=v?v(i[m],m,e):i[m],c>0&&r(p))d=o(p),g=l(t,e,p,d,g,c-1)-1;else{if(g>=9007199254740991)throw a("Exceed the acceptable array length");t[g]=p}g++}m++}return g};t.exports=l},2104:function(t,e,i){var n=i(4374),r=Function.prototype,o=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},9974:function(t,e,i){var n=i(1702),r=i(9662),o=i(4374),s=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,i){var n=i(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:function(t,e,i){var n=i(4374),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},6530:function(t,e,i){var n=i(9781),r=i(2597),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,h=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},1702:function(t,e,i){var n=i(4374),r=Function.prototype,o=r.bind,s=r.call,a=n&&o.bind(s,s);t.exports=n?function(t){return t&&a(t)}:function(t){return t&&function(){return s.apply(t,arguments)}}},5005:function(t,e,i){var n=i(7854),r=i(614),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t]):n[t]&&n[t][e]}},1246:function(t,e,i){var n=i(648),r=i(8173),o=i(7497),s=i(5112)("iterator");t.exports=function(t){if(null!=t)return r(t,s)||r(t,"@@iterator")||o[n(t)]}},8554:function(t,e,i){var n=i(7854),r=i(6916),o=i(9662),s=i(9670),a=i(6330),l=i(1246),h=n.TypeError;t.exports=function(t,e){var i=arguments.length<2?l(t):e;if(o(i))return s(r(i,t));throw h(a(t)+" is not iterable")}},8173:function(t,e,i){var n=i(9662);t.exports=function(t,e){var i=t[e];return null==i?void 0:n(i)}},7854:function(t,e,i){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||function(){return this}()||Function("return this")()},2597:function(t,e,i){var n=i(1702),r=i(7908),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},3501:function(t){t.exports={}},842:function(t,e,i){var n=i(7854);t.exports=function(t,e){var i=n.console;i&&i.error&&(1==arguments.length?i.error(t):i.error(t,e))}},490:function(t,e,i){var n=i(5005);t.exports=n("document","documentElement")},4664:function(t,e,i){var n=i(9781),r=i(7293),o=i(317);t.exports=!n&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,i){var n=i(7854),r=i(1702),o=i(7293),s=i(4326),a=n.Object,l=r("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==s(t)?l(t,""):a(t)}:a},2788:function(t,e,i){var n=i(1702),r=i(614),o=i(5465),s=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},8340:function(t,e,i){var n=i(111),r=i(8880);t.exports=function(t,e){n(e)&&"cause"in e&&r(t,"cause",e.cause)}},9909:function(t,e,i){var n,r,o,s=i(8536),a=i(7854),l=i(1702),h=i(111),c=i(8880),u=i(2597),f=i(5465),p=i(6200),d=i(3501),g="Object already initialized",m=a.TypeError,v=a.WeakMap;if(s||f.state){var y=f.state||(f.state=new v),b=l(y.get),w=l(y.has),x=l(y.set);n=function(t,e){if(w(y,t))throw new m(g);return e.facade=t,x(y,t,e),e},r=function(t){return b(y,t)||{}},o=function(t){return w(y,t)}}else{var _=p("state");d[_]=!0,n=function(t,e){if(u(t,_))throw new m(g);return e.facade=t,c(t,_,e),e},r=function(t){return u(t,_)?t[_]:{}},o=function(t){return u(t,_)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!h(e)||(i=r(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return i}}}},7659:function(t,e,i){var n=i(5112),r=i(7497),o=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},3157:function(t,e,i){var n=i(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:function(t){t.exports=function(t){return"function"==typeof t}},4411:function(t,e,i){var n=i(1702),r=i(7293),o=i(614),s=i(648),a=i(5005),l=i(2788),h=function(){},c=[],u=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=n(f.exec),d=!f.exec(h),g=function(t){if(!o(t))return!1;try{return u(h,c,t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!p(f,l(t))}catch(t){return!0}};m.sham=!0,t.exports=!u||r((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?m:g},4705:function(t,e,i){var n=i(7293),r=i(614),o=/#|\.prototype\./,s=function(t,e){var i=l[a(t)];return i==c||i!=h&&(r(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=s.data={},h=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},111:function(t,e,i){var n=i(614);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1913:function(t){t.exports=!1},2190:function(t,e,i){var n=i(7854),r=i(5005),o=i(614),s=i(7976),a=i(3307),l=n.Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&s(e.prototype,l(t))}},408:function(t,e,i){var n=i(7854),r=i(9974),o=i(6916),s=i(9670),a=i(6330),l=i(7659),h=i(6244),c=i(7976),u=i(8554),f=i(1246),p=i(9212),d=n.TypeError,g=function(t,e){this.stopped=t,this.result=e},m=g.prototype;t.exports=function(t,e,i){var n,v,y,b,w,x,_,k=i&&i.that,S=!(!i||!i.AS_ENTRIES),C=!(!i||!i.IS_ITERATOR),T=!(!i||!i.INTERRUPTED),P=r(e,k),j=function(t){return n&&p(n,"normal",t),new g(!0,t)},O=function(t){return S?(s(t),T?P(t[0],t[1],j):P(t[0],t[1])):T?P(t,j):P(t)};if(C)n=t;else{if(!(v=f(t)))throw d(a(t)+" is not iterable");if(l(v)){for(y=0,b=h(t);b>y;y++)if((w=O(t[y]))&&c(m,w))return w;return new g(!1)}n=u(t,v)}for(x=n.next;!(_=o(x,n)).done;){try{w=O(_.value)}catch(t){p(n,"throw",t)}if("object"==typeof w&&w&&c(m,w))return w}return new g(!1)}},9212:function(t,e,i){var n=i(6916),r=i(9670),o=i(8173);t.exports=function(t,e,i){var s,a;r(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw i;return i}s=n(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw i;if(a)throw s;return r(s),i}},3383:function(t,e,i){"use strict";var n,r,o,s=i(7293),a=i(614),l=i(30),h=i(9518),c=i(1320),u=i(5112),f=i(1913),p=u("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(r=h(h(o)))!==Object.prototype&&(n=r):d=!0),null==n||s((function(){var t={};return n[p].call(t)!==t}))?n={}:f&&(n=l(n)),a(n[p])||c(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7497:function(t){t.exports={}},6244:function(t,e,i){var n=i(7466);t.exports=function(t){return n(t.length)}},5948:function(t,e,i){var n,r,o,s,a,l,h,c,u=i(7854),f=i(9974),p=i(1236).f,d=i(261).set,g=i(6833),m=i(1528),v=i(1036),y=i(5268),b=u.MutationObserver||u.WebKitMutationObserver,w=u.document,x=u.process,_=u.Promise,k=p(u,"queueMicrotask"),S=k&&k.value;S||(n=function(){var t,e;for(y&&(t=x.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?s():o=void 0,t}}o=void 0,t&&t.enter()},g||y||v||!b||!w?!m&&_&&_.resolve?((h=_.resolve(void 0)).constructor=_,c=f(h.then,h),s=function(){c(n)}):y?s=function(){x.nextTick(n)}:(d=f(d,u),s=function(){d(n)}):(a=!0,l=w.createTextNode(""),new b(n).observe(l,{characterData:!0}),s=function(){l.data=a=!a})),t.exports=S||function(t){var e={fn:t,next:void 0};o&&(o.next=e),r||(r=e,s()),o=e}},3366:function(t,e,i){var n=i(7854);t.exports=n.Promise},133:function(t,e,i){var n=i(7392),r=i(7293);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},590:function(t,e,i){var n=i(7293),r=i(5112),o=i(1913),s=r("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,i="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),i+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==i||"x"!==new URL("http://x",void 0).host}))},8536:function(t,e,i){var n=i(7854),r=i(614),o=i(2788),s=n.WeakMap;t.exports=r(s)&&/native code/.test(o(s))},8523:function(t,e,i){"use strict";var n=i(9662),r=function(t){var e,i;this.promise=new t((function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n})),this.resolve=n(e),this.reject=n(i)};t.exports.f=function(t){return new r(t)}},6277:function(t,e,i){var n=i(1340);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},1574:function(t,e,i){"use strict";var n=i(9781),r=i(1702),o=i(6916),s=i(7293),a=i(1956),l=i(5181),h=i(5296),c=i(7908),u=i(8361),f=Object.assign,p=Object.defineProperty,d=r([].concat);t.exports=!f||s((function(){if(n&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!=f({},t)[i]||a(f({},e)).join("")!=r}))?function(t,e){for(var i=c(t),r=arguments.length,s=1,f=l.f,p=h.f;r>s;)for(var g,m=u(arguments[s++]),v=f?d(a(m),f(m)):a(m),y=v.length,b=0;y>b;)g=v[b++],n&&!o(p,m,g)||(i[g]=m[g]);return i}:f},30:function(t,e,i){var n,r=i(9670),o=i(6048),s=i(748),a=i(3501),l=i(490),h=i(317),c=i(6200),u=c("IE_PROTO"),f=function(){},p=function(t){return"<script>"+t+"</"+"script>"},d=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;g="undefined"!=typeof document?document.domain&&n?d(n):((e=h("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):d(n);for(var i=s.length;i--;)delete g.prototype[s[i]];return g()};a[u]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(f.prototype=r(t),i=new f,f.prototype=null,i[u]=t):i=g(),void 0===e?i:o.f(i,e)}},6048:function(t,e,i){var n=i(9781),r=i(3353),o=i(3070),s=i(9670),a=i(5656),l=i(1956);e.f=n&&!r?Object.defineProperties:function(t,e){s(t);for(var i,n=a(e),r=l(e),h=r.length,c=0;h>c;)o.f(t,i=r[c++],n[i]);return t}},3070:function(t,e,i){var n=i(7854),r=i(9781),o=i(4664),s=i(3353),a=i(9670),l=i(4948),h=n.TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",d="writable";e.f=r?s?function(t,e,i){if(a(t),e=l(e),a(i),"function"==typeof t&&"prototype"===e&&"value"in i&&d in i&&!i.writable){var n=u(t,e);n&&n.writable&&(t[e]=i.value,i={configurable:p in i?i.configurable:n.configurable,enumerable:f in i?i.enumerable:n.enumerable,writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(a(t),e=l(e),a(i),o)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw h("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},1236:function(t,e,i){var n=i(9781),r=i(6916),o=i(5296),s=i(9114),a=i(5656),l=i(4948),h=i(2597),c=i(4664),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=a(t),e=l(e),c)try{return u(t,e)}catch(t){}if(h(t,e))return s(!r(o.f,t,e),t[e])}},8006:function(t,e,i){var n=i(6324),r=i(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},9518:function(t,e,i){var n=i(7854),r=i(2597),o=i(614),s=i(7908),a=i(6200),l=i(8544),h=a("IE_PROTO"),c=n.Object,u=c.prototype;t.exports=l?c.getPrototypeOf:function(t){var e=s(t);if(r(e,h))return e[h];var i=e.constructor;return o(i)&&e instanceof i?i.prototype:e instanceof c?u:null}},7976:function(t,e,i){var n=i(1702);t.exports=n({}.isPrototypeOf)},6324:function(t,e,i){var n=i(1702),r=i(2597),o=i(5656),s=i(1318).indexOf,a=i(3501),l=n([].push);t.exports=function(t,e){var i,n=o(t),h=0,c=[];for(i in n)!r(a,i)&&r(n,i)&&l(c,i);for(;e.length>h;)r(n,i=e[h++])&&(~s(c,i)||l(c,i));return c}},1956:function(t,e,i){var n=i(6324),r=i(748);t.exports=Object.keys||function(t){return n(t,r)}},5296:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},7674:function(t,e,i){var n=i(1702),r=i(9670),o=i(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return r(i),o(n),e?t(i,n):i.__proto__=n,i}}():void 0)},4699:function(t,e,i){var n=i(9781),r=i(1702),o=i(1956),s=i(5656),a=r(i(5296).f),l=r([].push),h=function(t){return function(e){for(var i,r=s(e),h=o(r),c=h.length,u=0,f=[];c>u;)i=h[u++],n&&!a(r,i)||l(f,t?[i,r[i]]:r[i]);return f}};t.exports={entries:h(!0),values:h(!1)}},288:function(t,e,i){"use strict";var n=i(1694),r=i(648);t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},2140:function(t,e,i){var n=i(7854),r=i(6916),o=i(614),s=i(111),a=n.TypeError;t.exports=function(t,e){var i,n;if("string"===e&&o(i=t.toString)&&!s(n=r(i,t)))return n;if(o(i=t.valueOf)&&!s(n=r(i,t)))return n;if("string"!==e&&o(i=t.toString)&&!s(n=r(i,t)))return n;throw a("Can't convert object to primitive value")}},3887:function(t,e,i){var n=i(5005),r=i(1702),o=i(8006),s=i(5181),a=i(9670),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),i=s.f;return i?l(e,i(t)):e}},2534:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:function(t,e,i){var n=i(9670),r=i(111),o=i(8523);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=o.f(t);return(0,i.resolve)(e),i.promise}},8572:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},2248:function(t,e,i){var n=i(1320);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},1320:function(t,e,i){var n=i(7854),r=i(614),o=i(2597),s=i(8880),a=i(3505),l=i(2788),h=i(9909),c=i(6530).CONFIGURABLE,u=h.get,f=h.enforce,p=String(String).split("String");(t.exports=function(t,e,i,l){var h,u=!!l&&!!l.unsafe,d=!!l&&!!l.enumerable,g=!!l&&!!l.noTargetGet,m=l&&void 0!==l.name?l.name:e;r(i)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(i,"name")||c&&i.name!==m)&&s(i,"name",m),(h=f(i)).source||(h.source=p.join("string"==typeof m?m:""))),t!==n?(u?!g&&t[e]&&(d=!0):delete t[e],d?t[e]=i:s(t,e,i)):d?t[e]=i:a(e,i)})(Function.prototype,"toString",(function(){return r(this)&&u(this).source||l(this)}))},4488:function(t,e,i){var n=i(7854).TypeError;t.exports=function(t){if(null==t)throw n("Can't call method on "+t);return t}},3505:function(t,e,i){var n=i(7854),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},6340:function(t,e,i){"use strict";var n=i(5005),r=i(3070),o=i(5112),s=i(9781),a=o("species");t.exports=function(t){var e=n(t),i=r.f;s&&e&&!e[a]&&i(e,a,{configurable:!0,get:function(){return this}})}},8003:function(t,e,i){var n=i(3070).f,r=i(2597),o=i(5112)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,o)&&n(t,o,{configurable:!0,value:e})}},6200:function(t,e,i){var n=i(2309),r=i(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},5465:function(t,e,i){var n=i(7854),r=i(3505),o="__core-js_shared__",s=n[o]||r(o,{});t.exports=s},2309:function(t,e,i){var n=i(1913),r=i(5465);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:function(t,e,i){var n=i(9670),r=i(9483),o=i(5112)("species");t.exports=function(t,e){var i,s=n(t).constructor;return void 0===s||null==(i=n(s)[o])?e:r(i)}},8710:function(t,e,i){var n=i(1702),r=i(9303),o=i(1340),s=i(4488),a=n("".charAt),l=n("".charCodeAt),h=n("".slice),c=function(t){return function(e,i){var n,c,u=o(s(e)),f=r(i),p=u.length;return f<0||f>=p?t?"":void 0:(n=l(u,f))<55296||n>56319||f+1===p||(c=l(u,f+1))<56320||c>57343?t?a(u,f):n:t?h(u,f,f+2):c-56320+(n-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},3197:function(t,e,i){"use strict";var n=i(7854),r=i(1702),o=2147483647,s=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,l="Overflow: input needs wider integers to process",h=n.RangeError,c=r(a.exec),u=Math.floor,f=String.fromCharCode,p=r("".charCodeAt),d=r([].join),g=r([].push),m=r("".replace),v=r("".split),y=r("".toLowerCase),b=function(t){return t+22+75*(t<26)},w=function(t,e,i){var n=0;for(t=i?u(t/700):t>>1,t+=u(t/e);t>455;)t=u(t/35),n+=36;return u(n+36*t/(t+38))},x=function(t){var e=[];t=function(t){for(var e=[],i=0,n=t.length;i<n;){var r=p(t,i++);if(r>=55296&&r<=56319&&i<n){var o=p(t,i++);56320==(64512&o)?g(e,((1023&r)<<10)+(1023&o)+65536):(g(e,r),i--)}else g(e,r)}return e}(t);var i,n,r=t.length,s=128,a=0,c=72;for(i=0;i<t.length;i++)(n=t[i])<128&&g(e,f(n));var m=e.length,v=m;for(m&&g(e,"-");v<r;){var y=o;for(i=0;i<t.length;i++)(n=t[i])>=s&&n<y&&(y=n);var x=v+1;if(y-s>u((o-a)/x))throw h(l);for(a+=(y-s)*x,s=y,i=0;i<t.length;i++){if((n=t[i])<s&&++a>o)throw h(l);if(n==s){for(var _=a,k=36;;){var S=k<=c?1:k>=c+26?26:k-c;if(_<S)break;var C=_-S,T=36-S;g(e,f(b(S+C%T))),_=u(C/T),k+=36}g(e,f(b(_))),c=w(a,x,v==m),a=0,v++}}a++,s++}return d(e,"")};t.exports=function(t){var e,i,n=[],r=v(m(y(t),a,"."),".");for(e=0;e<r.length;e++)i=r[e],g(n,c(s,i)?"xn--"+x(i):i);return d(n,".")}},261:function(t,e,i){var n,r,o,s,a=i(7854),l=i(2104),h=i(9974),c=i(614),u=i(2597),f=i(7293),p=i(490),d=i(206),g=i(317),m=i(8053),v=i(6833),y=i(5268),b=a.setImmediate,w=a.clearImmediate,x=a.process,_=a.Dispatch,k=a.Function,S=a.MessageChannel,C=a.String,T=0,P={},j="onreadystatechange";try{n=a.location}catch(t){}var O=function(t){if(u(P,t)){var e=P[t];delete P[t],e()}},A=function(t){return function(){O(t)}},E=function(t){O(t.data)},M=function(t){a.postMessage(C(t),n.protocol+"//"+n.host)};b&&w||(b=function(t){m(arguments.length,1);var e=c(t)?t:k(t),i=d(arguments,1);return P[++T]=function(){l(e,void 0,i)},r(T),T},w=function(t){delete P[t]},y?r=function(t){x.nextTick(A(t))}:_&&_.now?r=function(t){_.now(A(t))}:S&&!v?(s=(o=new S).port2,o.port1.onmessage=E,r=h(s.postMessage,s)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!f(M)?(r=M,a.addEventListener("message",E,!1)):r=j in g("script")?function(t){p.appendChild(g("script")).onreadystatechange=function(){p.removeChild(this),O(t)}}:function(t){setTimeout(A(t),0)}),t.exports={set:b,clear:w}},1400:function(t,e,i){var n=i(9303),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},5656:function(t,e,i){var n=i(8361),r=i(4488);t.exports=function(t){return n(r(t))}},9303:function(t){var e=Math.ceil,i=Math.floor;t.exports=function(t){var n=+t;return n!=n||0===n?0:(n>0?i:e)(n)}},7466:function(t,e,i){var n=i(9303),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},7908:function(t,e,i){var n=i(7854),r=i(4488),o=n.Object;t.exports=function(t){return o(r(t))}},7593:function(t,e,i){var n=i(7854),r=i(6916),o=i(111),s=i(2190),a=i(8173),l=i(2140),h=i(5112),c=n.TypeError,u=h("toPrimitive");t.exports=function(t,e){if(!o(t)||s(t))return t;var i,n=a(t,u);if(n){if(void 0===e&&(e="default"),i=r(n,t,e),!o(i)||s(i))return i;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),l(t,e)}},4948:function(t,e,i){var n=i(7593),r=i(2190);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},1694:function(t,e,i){var n={};n[i(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:function(t,e,i){var n=i(7854),r=i(648),o=n.String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:function(t,e,i){var n=i(7854).String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},9711:function(t,e,i){var n=i(1702),r=0,o=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+o,36)}},3307:function(t,e,i){var n=i(133);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,i){var n=i(9781),r=i(7293);t.exports=n&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:function(t,e,i){var n=i(7854).TypeError;t.exports=function(t,e){if(t<e)throw n("Not enough arguments");return t}},5112:function(t,e,i){var n=i(7854),r=i(2309),o=i(2597),s=i(9711),a=i(133),l=i(3307),h=r("wks"),c=n.Symbol,u=c&&c.for,f=l?c:c&&c.withoutSetter||s;t.exports=function(t){if(!o(h,t)||!a&&"string"!=typeof h[t]){var e="Symbol."+t;a&&o(c,t)?h[t]=c[t]:h[t]=l&&u?u(e):f(e)}return h[t]}},9170:function(t,e,i){"use strict";var n=i(2109),r=i(7854),o=i(7976),s=i(9518),a=i(7674),l=i(9920),h=i(30),c=i(8880),u=i(9114),f=i(7741),p=i(8340),d=i(408),g=i(6277),m=i(5112),v=i(2914),y=m("toStringTag"),b=r.Error,w=[].push,x=function(t,e){var i,n=arguments.length>2?arguments[2]:void 0,r=o(_,this);a?i=a(new b,r?s(this):_):(i=r?this:h(_),c(i,y,"Error")),void 0!==e&&c(i,"message",g(e)),v&&c(i,"stack",f(i.stack,1)),p(i,n);var l=[];return d(t,w,{that:l}),c(i,"errors",l),i};a?a(x,b):l(x,b,{name:!0});var _=x.prototype=h(b.prototype,{constructor:u(1,x),message:u(1,""),name:u(1,"AggregateError")});n({global:!0},{AggregateError:x})},3290:function(t,e,i){var n=i(2109),r=i(1285),o=i(1223);n({target:"Array",proto:!0},{fill:r}),o("fill")},9826:function(t,e,i){"use strict";var n=i(2109),r=i(2092).find,o=i(1223),s="find",a=!0;s in[]&&Array(1).find((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},6535:function(t,e,i){"use strict";var n=i(2109),r=i(6790),o=i(9662),s=i(7908),a=i(6244),l=i(5417);n({target:"Array",proto:!0},{flatMap:function(t){var e,i=s(this),n=a(i);return o(t),(e=l(i,0)).length=r(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},4944:function(t,e,i){"use strict";var n=i(2109),r=i(6790),o=i(7908),s=i(6244),a=i(9303),l=i(5417);n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),i=s(e),n=l(e,0);return n.length=r(n,e,e,i,0,void 0===t?1:a(t)),n}})},6699:function(t,e,i){"use strict";var n=i(2109),r=i(1318).includes,o=i(1223);n({target:"Array",proto:!0},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:function(t,e,i){"use strict";var n=i(5656),r=i(1223),o=i(7497),s=i(9909),a=i(3070).f,l=i(654),h=i(1913),c=i(9781),u="Array Iterator",f=s.set,p=s.getterFor(u);t.exports=l(Array,"Array",(function(t,e){f(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");var d=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!h&&c&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(t){}},9244:function(t,e,i){i(1223)("flatMap")},3792:function(t,e,i){i(1223)("flat")},9601:function(t,e,i){var n=i(2109),r=i(1574);n({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},9720:function(t,e,i){var n=i(2109),r=i(4699).entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},1539:function(t,e,i){var n=i(1694),r=i(1320),o=i(288);n||r(Object.prototype,"toString",o,{unsafe:!0})},2479:function(t,e,i){var n=i(2109),r=i(4699).values;n({target:"Object",stat:!0},{values:function(t){return r(t)}})},7922:function(t,e,i){"use strict";var n=i(2109),r=i(6916),o=i(9662),s=i(8523),a=i(2534),l=i(408);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,i=s.f(e),n=i.resolve,h=i.reject,c=a((function(){var i=o(e.resolve),s=[],a=0,h=1;l(t,(function(t){var o=a++,l=!1;h++,r(i,e,t).then((function(t){l||(l=!0,s[o]={status:"fulfilled",value:t},--h||n(s))}),(function(t){l||(l=!0,s[o]={status:"rejected",reason:t},--h||n(s))}))})),--h||n(s)}));return c.error&&h(c.value),i.promise}})},4668:function(t,e,i){"use strict";var n=i(2109),r=i(9662),o=i(5005),s=i(6916),a=i(8523),l=i(2534),h=i(408),c="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,i=o("AggregateError"),n=a.f(e),u=n.resolve,f=n.reject,p=l((function(){var n=r(e.resolve),o=[],a=0,l=1,p=!1;h(t,(function(t){var r=a++,h=!1;l++,s(n,e,t).then((function(t){h||p||(p=!0,u(t))}),(function(t){h||p||(h=!0,o[r]=t,--l||f(new i(o,c)))}))})),--l||f(new i(o,c))}));return p.error&&f(p.value),n.promise}})},7727:function(t,e,i){"use strict";var n=i(2109),r=i(1913),o=i(3366),s=i(7293),a=i(5005),l=i(614),h=i(6707),c=i(9478),u=i(1320);if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&s((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=h(this,a("Promise")),i=l(t);return this.then(i?function(i){return c(e,t()).then((function(){return i}))}:t,i?function(i){return c(e,t()).then((function(){throw i}))}:t)}}),!r&&l(o)){var f=a("Promise").prototype.finally;o.prototype.finally!==f&&u(o.prototype,"finally",f,{unsafe:!0})}},8674:function(t,e,i){"use strict";var n,r,o,s,a=i(2109),l=i(1913),h=i(7854),c=i(5005),u=i(6916),f=i(3366),p=i(1320),d=i(2248),g=i(7674),m=i(8003),v=i(6340),y=i(9662),b=i(614),w=i(111),x=i(5787),_=i(2788),k=i(408),S=i(7072),C=i(6707),T=i(261).set,P=i(5948),j=i(9478),O=i(842),A=i(8523),E=i(2534),M=i(8572),I=i(9909),D=i(4705),H=i(5112),F=i(7871),R=i(5268),L=i(7392),N=H("species"),z="Promise",B=I.getterFor(z),W=I.set,q=I.getterFor(z),U=f&&f.prototype,$=f,V=U,Q=h.TypeError,Y=h.document,X=h.process,G=A.f,Z=G,J=!!(Y&&Y.createEvent&&h.dispatchEvent),K=b(h.PromiseRejectionEvent),tt="unhandledrejection",et=!1,it=D(z,(function(){var t=_($),e=t!==String($);if(!e&&66===L)return!0;if(l&&!V.finally)return!0;if(L>=51&&/native code/.test(t))return!1;var i=new $((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(i.constructor={})[N]=n,!(et=i.then((function(){}))instanceof n)||!e&&F&&!K})),nt=it||!S((function(t){$.all(t).catch((function(){}))})),rt=function(t){var e;return!(!w(t)||!b(e=t.then))&&e},ot=function(t,e){var i,n,r,o=e.value,s=1==e.state,a=s?t.ok:t.fail,l=t.resolve,h=t.reject,c=t.domain;try{a?(s||(2===e.rejection&&ct(e),e.rejection=1),!0===a?i=o:(c&&c.enter(),i=a(o),c&&(c.exit(),r=!0)),i===t.promise?h(Q("Promise-chain cycle")):(n=rt(i))?u(n,i,l,h):l(i)):h(o)}catch(t){c&&!r&&c.exit(),h(t)}},st=function(t,e){t.notified||(t.notified=!0,P((function(){for(var i,n=t.reactions;i=n.get();)ot(i,t);t.notified=!1,e&&!t.rejection&<(t)})))},at=function(t,e,i){var n,r;J?((n=Y.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),h.dispatchEvent(n)):n={promise:e,reason:i},!K&&(r=h["on"+t])?r(n):t===tt&&O("Unhandled promise rejection",i)},lt=function(t){u(T,h,(function(){var e,i=t.facade,n=t.value;if(ht(t)&&(e=E((function(){R?X.emit("unhandledRejection",n,i):at(tt,i,n)})),t.rejection=R||ht(t)?2:1,e.error))throw e.value}))},ht=function(t){return 1!==t.rejection&&!t.parent},ct=function(t){u(T,h,(function(){var e=t.facade;R?X.emit("rejectionHandled",e):at("rejectionhandled",e,t.value)}))},ut=function(t,e,i){return function(n){t(e,n,i)}},ft=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,st(t,!0))},pt=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw Q("Promise can't be resolved itself");var n=rt(e);n?P((function(){var i={done:!1};try{u(n,e,ut(pt,i,t),ut(ft,i,t))}catch(e){ft(i,e,t)}})):(t.value=e,t.state=1,st(t,!1))}catch(e){ft({done:!1},e,t)}}};if(it&&(V=($=function(t){x(this,V),y(t),u(n,this);var e=B(this);try{t(ut(pt,e),ut(ft,e))}catch(t){ft(e,t)}}).prototype,(n=function(t){W(this,{type:z,done:!1,notified:!1,parent:!1,reactions:new M,rejection:!1,state:0,value:void 0})}).prototype=d(V,{then:function(t,e){var i=q(this),n=G(C(this,$));return i.parent=!0,n.ok=!b(t)||t,n.fail=b(e)&&e,n.domain=R?X.domain:void 0,0==i.state?i.reactions.add(n):P((function(){ot(n,i)})),n.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new n,e=B(t);this.promise=t,this.resolve=ut(pt,e),this.reject=ut(ft,e)},A.f=G=function(t){return t===$||t===o?new r(t):Z(t)},!l&&b(f)&&U!==Object.prototype)){s=U.then,et||(p(U,"then",(function(t,e){var i=this;return new $((function(t,e){u(s,i,t,e)})).then(t,e)}),{unsafe:!0}),p(U,"catch",V.catch,{unsafe:!0}));try{delete U.constructor}catch(t){}g&&g(U,V)}a({global:!0,wrap:!0,forced:it},{Promise:$}),m($,z,!1,!0),v(z),o=c(z),a({target:z,stat:!0,forced:it},{reject:function(t){var e=G(this);return u(e.reject,void 0,t),e.promise}}),a({target:z,stat:!0,forced:l||it},{resolve:function(t){return j(l&&this===o?$:this,t)}}),a({target:z,stat:!0,forced:nt},{all:function(t){var e=this,i=G(e),n=i.resolve,r=i.reject,o=E((function(){var i=y(e.resolve),o=[],s=0,a=1;k(t,(function(t){var l=s++,h=!1;a++,u(i,e,t).then((function(t){h||(h=!0,o[l]=t,--a||n(o))}),r)})),--a||n(o)}));return o.error&&r(o.value),i.promise},race:function(t){var e=this,i=G(e),n=i.reject,r=E((function(){var r=y(e.resolve);k(t,(function(t){u(r,e,t).then(i.resolve,n)}))}));return r.error&&n(r.value),i.promise}})},8783:function(t,e,i){"use strict";var n=i(8710).charAt,r=i(1340),o=i(9909),s=i(654),a="String Iterator",l=o.set,h=o.getterFor(a);s(String,"String",(function(t){l(this,{type:a,string:r(t),index:0})}),(function(){var t,e=h(this),i=e.string,r=e.index;return r>=i.length?{value:void 0,done:!0}:(t=n(i,r),e.index+=t.length,{value:t,done:!1})}))},1637:function(t,e,i){"use strict";i(6992);var n=i(2109),r=i(7854),o=i(5005),s=i(6916),a=i(1702),l=i(590),h=i(1320),c=i(2248),u=i(8003),f=i(4994),p=i(9909),d=i(5787),g=i(614),m=i(2597),v=i(9974),y=i(648),b=i(9670),w=i(111),x=i(1340),_=i(30),k=i(9114),S=i(8554),C=i(1246),T=i(8053),P=i(5112),j=i(4362),O=P("iterator"),A="URLSearchParams",E="URLSearchParamsIterator",M=p.set,I=p.getterFor(A),D=p.getterFor(E),H=o("fetch"),F=o("Request"),R=o("Headers"),L=F&&F.prototype,N=R&&R.prototype,z=r.RegExp,B=r.TypeError,W=r.decodeURIComponent,q=r.encodeURIComponent,U=a("".charAt),$=a([].join),V=a([].push),Q=a("".replace),Y=a([].shift),X=a([].splice),G=a("".split),Z=a("".slice),J=/\+/g,K=Array(4),tt=function(t){return K[t-1]||(K[t-1]=z("((?:%[\\da-f]{2}){"+t+"})","gi"))},et=function(t){try{return W(t)}catch(e){return t}},it=function(t){var e=Q(t,J," "),i=4;try{return W(e)}catch(t){for(;i;)e=Q(e,tt(i--),et);return e}},nt=/[!'()~]|%20/g,rt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ot=function(t){return rt[t]},st=function(t){return Q(q(t),nt,ot)},at=f((function(t,e){M(this,{type:E,iterator:S(I(t).entries),kind:e})}),"Iterator",(function(){var t=D(this),e=t.kind,i=t.iterator.next(),n=i.value;return i.done||(i.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),i}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(w(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===U(t,0)?Z(t,1):t:x(t)))};lt.prototype={type:A,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,n,r,o,a,l,h=C(t);if(h)for(i=(e=S(t,h)).next;!(n=s(i,e)).done;){if(o=(r=S(b(n.value))).next,(a=s(o,r)).done||(l=s(o,r)).done||!s(o,r).done)throw B("Expected sequence with length 2");V(this.entries,{key:x(a.value),value:x(l.value)})}else for(var c in t)m(t,c)&&V(this.entries,{key:c,value:x(t[c])})},parseQuery:function(t){if(t)for(var e,i,n=G(t,"&"),r=0;r<n.length;)(e=n[r++]).length&&(i=G(e,"="),V(this.entries,{key:it(Y(i)),value:it($(i,"="))}))},serialize:function(){for(var t,e=this.entries,i=[],n=0;n<e.length;)t=e[n++],V(i,st(t.key)+"="+st(t.value));return $(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ht=function(){d(this,ct);var t=arguments.length>0?arguments[0]:void 0;M(this,new lt(t))},ct=ht.prototype;if(c(ct,{append:function(t,e){T(arguments.length,2);var i=I(this);V(i.entries,{key:x(t),value:x(e)}),i.updateURL()},delete:function(t){T(arguments.length,1);for(var e=I(this),i=e.entries,n=x(t),r=0;r<i.length;)i[r].key===n?X(i,r,1):r++;e.updateURL()},get:function(t){T(arguments.length,1);for(var e=I(this).entries,i=x(t),n=0;n<e.length;n++)if(e[n].key===i)return e[n].value;return null},getAll:function(t){T(arguments.length,1);for(var e=I(this).entries,i=x(t),n=[],r=0;r<e.length;r++)e[r].key===i&&V(n,e[r].value);return n},has:function(t){T(arguments.length,1);for(var e=I(this).entries,i=x(t),n=0;n<e.length;)if(e[n++].key===i)return!0;return!1},set:function(t,e){T(arguments.length,1);for(var i,n=I(this),r=n.entries,o=!1,s=x(t),a=x(e),l=0;l<r.length;l++)(i=r[l]).key===s&&(o?X(r,l--,1):(o=!0,i.value=a));o||V(r,{key:s,value:a}),n.updateURL()},sort:function(){var t=I(this);j(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,i=I(this).entries,n=v(t,arguments.length>1?arguments[1]:void 0),r=0;r<i.length;)n((e=i[r++]).value,e.key,this)},keys:function(){return new at(this,"keys")},values:function(){return new at(this,"values")},entries:function(){return new at(this,"entries")}},{enumerable:!0}),h(ct,O,ct.entries,{name:"entries"}),h(ct,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),u(ht,A),n({global:!0,forced:!l},{URLSearchParams:ht}),!l&&g(R)){var ut=a(N.has),ft=a(N.set),pt=function(t){if(w(t)){var e,i=t.body;if(y(i)===A)return e=t.headers?new R(t.headers):new R,ut(e,"content-type")||ft(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),_(t,{body:k(0,x(i)),headers:k(0,e)})}return t};if(g(H)&&n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return H(t,arguments.length>1?pt(arguments[1]):{})}}),g(F)){var dt=function(t){return d(this,L),new F(t,arguments.length>1?pt(arguments[1]):{})};L.constructor=dt,dt.prototype=L,n({global:!0,forced:!0},{Request:dt})}}t.exports={URLSearchParams:ht,getState:I}},285:function(t,e,i){"use strict";i(8783);var n,r=i(2109),o=i(9781),s=i(590),a=i(7854),l=i(9974),h=i(1702),c=i(6048).f,u=i(1320),f=i(5787),p=i(2597),d=i(1574),g=i(8457),m=i(1589),v=i(8710).codeAt,y=i(3197),b=i(1340),w=i(8003),x=i(8053),_=i(1637),k=i(9909),S=k.set,C=k.getterFor("URL"),T=_.URLSearchParams,P=_.getState,j=a.URL,O=a.TypeError,A=a.parseInt,E=Math.floor,M=Math.pow,I=h("".charAt),D=h(/./.exec),H=h([].join),F=h(1..toString),R=h([].pop),L=h([].push),N=h("".replace),z=h([].shift),B=h("".split),W=h("".slice),q=h("".toLowerCase),U=h([].unshift),$="Invalid scheme",V="Invalid host",Q="Invalid port",Y=/[a-z]/i,X=/[\d+-.a-z]/i,G=/\d/,Z=/^0x/i,J=/^[0-7]+$/,K=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,nt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,rt=/[\t\n\r]/g,ot=function(t){var e,i,n,r;if("number"==typeof t){for(e=[],i=0;i<4;i++)U(e,t%256),t=E(t/256);return H(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,i=1,n=null,r=0,o=0;o<8;o++)0!==t[o]?(r>i&&(e=n,i=r),n=null,r=0):(null===n&&(n=o),++r);return r>i&&(e=n,i=r),e}(t),i=0;i<8;i++)r&&0===t[i]||(r&&(r=!1),n===i?(e+=i?":":"::",r=!0):(e+=F(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},st={},at=d({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),lt=d({},at,{"#":1,"?":1,"{":1,"}":1}),ht=d({},lt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ct=function(t,e){var i=v(t,0);return i>32&&i<127&&!p(e,t)?t:encodeURIComponent(t)},ut={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ft=function(t,e){var i;return 2==t.length&&D(Y,I(t,0))&&(":"==(i=I(t,1))||!e&&"|"==i)},pt=function(t){var e;return t.length>1&&ft(W(t,0,2))&&(2==t.length||"/"===(e=I(t,2))||"\\"===e||"?"===e||"#"===e)},dt=function(t){return"."===t||"%2e"===q(t)},gt={},mt={},vt={},yt={},bt={},wt={},xt={},_t={},kt={},St={},Ct={},Tt={},Pt={},jt={},Ot={},At={},Et={},Mt={},It={},Dt={},Ht={},Ft=function(t,e,i){var n,r,o,s=b(t);if(e){if(r=this.parse(s))throw O(r);this.searchParams=null}else{if(void 0!==i&&(n=new Ft(i,!0)),r=this.parse(s,null,n))throw O(r);(o=P(new T)).bindURL(this),this.searchParams=o}};Ft.prototype={type:"URL",parse:function(t,e,i){var r,o,s,a,l,h=this,c=e||gt,u=0,f="",d=!1,v=!1,y=!1;for(t=b(t),e||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,t=N(t,nt,"")),t=N(t,rt,""),r=g(t);u<=r.length;){switch(o=r[u],c){case gt:if(!o||!D(Y,o)){if(e)return $;c=vt;continue}f+=q(o),c=mt;break;case mt:if(o&&(D(X,o)||"+"==o||"-"==o||"."==o))f+=q(o);else{if(":"!=o){if(e)return $;f="",c=vt,u=0;continue}if(e&&(h.isSpecial()!=p(ut,f)||"file"==f&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=f,e)return void(h.isSpecial()&&ut[h.scheme]==h.port&&(h.port=null));f="","file"==h.scheme?c=jt:h.isSpecial()&&i&&i.scheme==h.scheme?c=yt:h.isSpecial()?c=_t:"/"==r[u+1]?(c=bt,u++):(h.cannotBeABaseURL=!0,L(h.path,""),c=It)}break;case vt:if(!i||i.cannotBeABaseURL&&"#"!=o)return $;if(i.cannotBeABaseURL&&"#"==o){h.scheme=i.scheme,h.path=m(i.path),h.query=i.query,h.fragment="",h.cannotBeABaseURL=!0,c=Ht;break}c="file"==i.scheme?jt:wt;continue;case yt:if("/"!=o||"/"!=r[u+1]){c=wt;continue}c=kt,u++;break;case bt:if("/"==o){c=St;break}c=Mt;continue;case wt:if(h.scheme=i.scheme,o==n)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query=i.query;else if("/"==o||"\\"==o&&h.isSpecial())c=xt;else if("?"==o)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query="",c=Dt;else{if("#"!=o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.path.length--,c=Mt;continue}h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=m(i.path),h.query=i.query,h.fragment="",c=Ht}break;case xt:if(!h.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,c=Mt;continue}c=St}else c=kt;break;case _t:if(c=kt,"/"!=o||"/"!=I(f,u+1))continue;u++;break;case kt:if("/"!=o&&"\\"!=o){c=St;continue}break;case St:if("@"==o){d&&(f="%40"+f),d=!0,s=g(f);for(var w=0;w<s.length;w++){var x=s[w];if(":"!=x||y){var _=ct(x,ht);y?h.password+=_:h.username+=_}else y=!0}f=""}else if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()){if(d&&""==f)return"Invalid authority";u-=g(f).length+1,f="",c=Ct}else f+=o;break;case Ct:case Tt:if(e&&"file"==h.scheme){c=At;continue}if(":"!=o||v){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()){if(h.isSpecial()&&""==f)return V;if(e&&""==f&&(h.includesCredentials()||null!==h.port))return;if(a=h.parseHost(f))return a;if(f="",c=Et,e)return;continue}"["==o?v=!0:"]"==o&&(v=!1),f+=o}else{if(""==f)return V;if(a=h.parseHost(f))return a;if(f="",c=Pt,e==Tt)return}break;case Pt:if(!D(G,o)){if(o==n||"/"==o||"?"==o||"#"==o||"\\"==o&&h.isSpecial()||e){if(""!=f){var k=A(f,10);if(k>65535)return Q;h.port=h.isSpecial()&&k===ut[h.scheme]?null:k,f=""}if(e)return;c=Et;continue}return Q}f+=o;break;case jt:if(h.scheme="file","/"==o||"\\"==o)c=Ot;else{if(!i||"file"!=i.scheme){c=Mt;continue}if(o==n)h.host=i.host,h.path=m(i.path),h.query=i.query;else if("?"==o)h.host=i.host,h.path=m(i.path),h.query="",c=Dt;else{if("#"!=o){pt(H(m(r,u),""))||(h.host=i.host,h.path=m(i.path),h.shortenPath()),c=Mt;continue}h.host=i.host,h.path=m(i.path),h.query=i.query,h.fragment="",c=Ht}}break;case Ot:if("/"==o||"\\"==o){c=At;break}i&&"file"==i.scheme&&!pt(H(m(r,u),""))&&(ft(i.path[0],!0)?L(h.path,i.path[0]):h.host=i.host),c=Mt;continue;case At:if(o==n||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&ft(f))c=Mt;else if(""==f){if(h.host="",e)return;c=Et}else{if(a=h.parseHost(f))return a;if("localhost"==h.host&&(h.host=""),e)return;f="",c=Et}continue}f+=o;break;case Et:if(h.isSpecial()){if(c=Mt,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=n&&(c=Mt,"/"!=o))continue}else h.fragment="",c=Ht;else h.query="",c=Dt;break;case Mt:if(o==n||"/"==o||"\\"==o&&h.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(l=q(l=f))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(h.shortenPath(),"/"==o||"\\"==o&&h.isSpecial()||L(h.path,"")):dt(f)?"/"==o||"\\"==o&&h.isSpecial()||L(h.path,""):("file"==h.scheme&&!h.path.length&&ft(f)&&(h.host&&(h.host=""),f=I(f,0)+":"),L(h.path,f)),f="","file"==h.scheme&&(o==n||"?"==o||"#"==o))for(;h.path.length>1&&""===h.path[0];)z(h.path);"?"==o?(h.query="",c=Dt):"#"==o&&(h.fragment="",c=Ht)}else f+=ct(o,lt);break;case It:"?"==o?(h.query="",c=Dt):"#"==o?(h.fragment="",c=Ht):o!=n&&(h.path[0]+=ct(o,st));break;case Dt:e||"#"!=o?o!=n&&("'"==o&&h.isSpecial()?h.query+="%27":h.query+="#"==o?"%23":ct(o,st)):(h.fragment="",c=Ht);break;case Ht:o!=n&&(h.fragment+=ct(o,at))}u++}},parseHost:function(t){var e,i,n;if("["==I(t,0)){if("]"!=I(t,t.length-1))return V;if(e=function(t){var e,i,n,r,o,s,a,l=[0,0,0,0,0,0,0,0],h=0,c=null,u=0,f=function(){return I(t,u)};if(":"==f()){if(":"!=I(t,1))return;u+=2,c=++h}for(;f();){if(8==h)return;if(":"!=f()){for(e=i=0;i<4&&D(tt,f());)e=16*e+A(f(),16),u++,i++;if("."==f()){if(0==i)return;if(u-=i,h>6)return;for(n=0;f();){if(r=null,n>0){if(!("."==f()&&n<4))return;u++}if(!D(G,f()))return;for(;D(G,f());){if(o=A(f(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;u++}l[h]=256*l[h]+r,2!=++n&&4!=n||h++}if(4!=n)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;l[h++]=e}else{if(null!==c)return;u++,c=++h}}if(null!==c)for(s=h-c,h=7;0!=h&&s>0;)a=l[h],l[h--]=l[c+s-1],l[c+--s]=a;else if(8!=h)return;return l}(W(t,1,-1)),!e)return V;this.host=e}else if(this.isSpecial()){if(t=y(t),D(et,t))return V;if(e=function(t){var e,i,n,r,o,s,a,l=B(t,".");if(l.length&&""==l[l.length-1]&&l.length--,(e=l.length)>4)return t;for(i=[],n=0;n<e;n++){if(""==(r=l[n]))return t;if(o=10,r.length>1&&"0"==I(r,0)&&(o=D(Z,r)?16:8,r=W(r,8==o?1:2)),""===r)s=0;else{if(!D(10==o?K:8==o?J:tt,r))return t;s=A(r,o)}L(i,s)}for(n=0;n<e;n++)if(s=i[n],n==e-1){if(s>=M(256,5-e))return null}else if(s>255)return null;for(a=R(i),n=0;n<i.length;n++)a+=i[n]*M(256,3-n);return a}(t),null===e)return V;this.host=e}else{if(D(it,t))return V;for(e="",i=g(t),n=0;n<i.length;n++)e+=ct(i[n],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return p(ut,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&ft(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,i=t.username,n=t.password,r=t.host,o=t.port,s=t.path,a=t.query,l=t.fragment,h=e+":";return null!==r?(h+="//",t.includesCredentials()&&(h+=i+(n?":"+n:"")+"@"),h+=ot(r),null!==o&&(h+=":"+o)):"file"==e&&(h+="//"),h+=t.cannotBeABaseURL?s[0]:s.length?"/"+H(s,"/"):"",null!==a&&(h+="?"+a),null!==l&&(h+="#"+l),h},setHref:function(t){var e=this.parse(t);if(e)throw O(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Rt(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+ot(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",gt)},getUsername:function(){return this.username},setUsername:function(t){var e=g(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<e.length;i++)this.username+=ct(e[i],ht)}},getPassword:function(){return this.password},setPassword:function(t){var e=g(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<e.length;i++)this.password+=ct(e[i],ht)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ot(t):ot(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Ct)},getHostname:function(){var t=this.host;return null===t?"":ot(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Tt)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=b(t))?this.port=null:this.parse(t,Pt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+H(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Et))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=b(t))?this.query=null:("?"==I(t,0)&&(t=W(t,1)),this.query="",this.parse(t,Dt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=b(t))?("#"==I(t,0)&&(t=W(t,1)),this.fragment="",this.parse(t,Ht)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Rt=function(t){var e=f(this,Lt),i=x(arguments.length,1)>1?arguments[1]:void 0,n=S(e,new Ft(t,!1,i));o||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Lt=Rt.prototype,Nt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&c(Lt,{href:Nt("serialize","setHref"),origin:Nt("getOrigin"),protocol:Nt("getProtocol","setProtocol"),username:Nt("getUsername","setUsername"),password:Nt("getPassword","setPassword"),host:Nt("getHost","setHost"),hostname:Nt("getHostname","setHostname"),port:Nt("getPort","setPort"),pathname:Nt("getPathname","setPathname"),search:Nt("getSearch","setSearch"),searchParams:Nt("getSearchParams"),hash:Nt("getHash","setHash")}),u(Lt,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),u(Lt,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),j){var zt=j.createObjectURL,Bt=j.revokeObjectURL;zt&&u(Rt,"createObjectURL",l(zt,j)),Bt&&u(Rt,"revokeObjectURL",l(Bt,j))}w(Rt,"URL"),r({global:!0,forced:!s,sham:!o},{URL:Rt})},3753:function(t,e,i){"use strict";var n=i(2109),r=i(6916);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},7743:function(t,e,i){t.exports=i(2628)},4191:function(t,e,i){!function(){"undefined"==typeof jDataView&&(jDataView=i(7743));var e,n=function(t){for(var e=1;e<arguments.length;++e){var i=arguments[e];for(var n in i)void 0!==i[n]&&(t[n]=i[n])}return t};function r(t,e){if(!(this instanceof arguments.callee))throw new Error("Constructor may not be called as a function");t instanceof jDataView||(t=new jDataView(t,void 0,void 0,!0)),this.view=t,this.view.seek(0),this.structure=n({},r.prototype.structure,e)}function o(t){return"function"==typeof t&&(t=t.call(this)),t}r.prototype.structure={uint8:function(){return this.view.getUint8()},uint16:function(){return this.view.getUint16()},uint32:function(){return this.view.getUint32()},int8:function(){return this.view.getInt8()},int16:function(){return this.view.getInt16()},int32:function(){return this.view.getInt32()},float32:function(){return this.view.getFloat32()},float64:function(){return this.view.getFloat64()},char:function(){return this.view.getChar()},string:function(t){return this.view.getString(o.call(this,t))},array:function(t,e){e=o.call(this,e);for(var i=[],n=0;n<e;++n)i.push(this.parse(t));return i},seek:function(t,e){if(t=o.call(this,t),e instanceof Function){var i=this.view.tell();this.view.seek(t);var n=e.call(this);return this.view.seek(i),n}return this.view.seek(t)},tell:function(){return this.view.tell()},skip:function(t){return t=o.call(this,t),this.view.seek(this.view.tell()+t),t}},r.prototype.seek=r.prototype.structure.seek,r.prototype.tell=r.prototype.structure.tell,r.prototype.skip=r.prototype.structure.skip,r.prototype.parse=function(t){if(t instanceof Function)return t.apply(this,Array.prototype.slice.call(arguments,1));if("string"==typeof t&&(t=[t]),t instanceof Array){if(!((i=t[0])in this.structure))throw new Error("Missing structure for `"+i+"`");return this.parse.apply(this,[this.structure[i]].concat(t.slice(1)))}if("object"==typeof t){var e={};for(var i in t)this.current=e,e[i]=this.parse(t[i]);return e}throw new Error("Unknown structure type `"+t+"`")},"undefined"!=typeof self?e=self:"undefined"!=typeof window?e=window:void 0!==i.g&&(e=i.g),e.jParser=r,t.exports=r}()},2628:function(t){!function(e){t.exports=function(t){"use strict";function e(t,e){return"object"==typeof t&&null!==t&&(t.constructor===e||Object.prototype.toString.call(t)==="[object "+e.name+"]")}function i(t,i){return!i&&e(t,Array)?t:Array.prototype.slice.call(t)}function n(t,e){return void 0!==t?t:e}function r(t,i,o,s){if(r.is(t)){var a=t.slice(i,i+o);return a._littleEndian=n(s,a._littleEndian),a}if(!r.is(this))return new r(t,i,o,s);if(this.buffer=t=r.wrapBuffer(t),this._isArrayBuffer=h.ArrayBuffer&&e(t,ArrayBuffer),this._isPixelData=!1,this._isDataView=h.DataView&&this._isArrayBuffer,this._isNodeBuffer=h.NodeBuffer&&e(t,Buffer),!this._isNodeBuffer&&!this._isArrayBuffer&&!e(t,Array))throw new TypeError("jDataView buffer has an incompatible type");this._littleEndian=!!s;var l="byteLength"in t?t.byteLength:t.length;this.byteOffset=i=n(i,0),this.byteLength=o=n(o,l-i),this._offset=this._bitOffset=0,this._isDataView?this._view=new DataView(t,i,o):this._checkBounds(i,o,l),this._engineAction=this._isDataView?this._dataViewAction:this._isNodeBuffer?this._nodeBufferAction:this._isArrayBuffer?this._arrayBufferAction:this._arrayAction}function o(t){if(h.NodeBuffer)return new Buffer(t,"binary");for(var e=new(h.ArrayBuffer?Uint8Array:Array)(t.length),i=0,n=t.length;n>i;i++)e[i]=255&t.charCodeAt(i);return e}function s(t){return t>=0&&31>t?1<<t:s[t]||(s[t]=Math.pow(2,t))}function a(t,e){this.lo=t,this.hi=e}function l(){a.apply(this,arguments)}var h={NodeBuffer:"Buffer"in t,DataView:"DataView"in t,ArrayBuffer:"ArrayBuffer"in t,PixelData:!1},c=t.TextEncoder,u=t.TextDecoder;h.NodeBuffer&&function(t){try{t.writeFloatLE(1/0,0)}catch(t){h.NodeBuffer=!1}}(new Buffer(4));var f={Int8:1,Int16:2,Int32:4,Uint8:1,Uint16:2,Uint32:4,Float32:4,Float64:8};r.wrapBuffer=function(t){switch(typeof t){case"number":if(h.NodeBuffer)(t=new Buffer(t)).fill(0);else if(h.ArrayBuffer)t=new Uint8Array(t).buffer;else{t=new Array(t);for(var n=0;n<t.length;n++)t[n]=0}return t;case"string":t=o(t);default:return"length"in t&&!(h.NodeBuffer&&e(t,Buffer)||h.ArrayBuffer&&e(t,ArrayBuffer))&&(h.NodeBuffer?t=new Buffer(t):h.ArrayBuffer?e(t,ArrayBuffer)||(e(t=new Uint8Array(t).buffer,ArrayBuffer)||(t=new Uint8Array(i(t,!0)).buffer)):t=i(t)),t}},r.is=function(t){return t&&t.jDataView},r.from=function(){return new r(arguments)},r.Uint64=a,a.prototype={valueOf:function(){return this.lo+s(32)*this.hi},toString:function(){return Number.prototype.toString.apply(this.valueOf(),arguments)}},a.fromNumber=function(t){var e=Math.floor(t/s(32));return new a(t-e*s(32),e)},r.Int64=l,l.prototype="create"in Object?Object.create(a.prototype):new a,l.prototype.valueOf=function(){return this.hi<s(31)?a.prototype.valueOf.apply(this,arguments):-(s(32)-this.lo+s(32)*(s(32)-1-this.hi))},l.fromNumber=function(t){var e,i;if(t>=0){var n=a.fromNumber(t);e=n.lo,i=n.hi}else e=t-(i=Math.floor(t/s(32)))*s(32),i+=s(32);return new l(e,i)};var p=r.prototype={compatibility:h,jDataView:!0,_checkBounds:function(t,e,i){if("number"!=typeof t)throw new TypeError("Offset is not a number.");if("number"!=typeof e)throw new TypeError("Size is not a number.");if(0>e)throw new RangeError("Length is negative.");if(0>t||t+e>n(i,this.byteLength))throw new RangeError("Offsets are out of bounds.")},_action:function(t,e,i,r,o){return this._engineAction(t,e,n(i,this._offset),n(r,this._littleEndian),o)},_dataViewAction:function(t,e,i,n,r){return this._offset=i+f[t],e?this._view["get"+t](i,n):this._view["set"+t](i,r,n)},_arrayBufferAction:function(e,i,r,o,s){var a,l=f[e],h=t[e+"Array"];if(o=n(o,this._littleEndian),1===l||(this.byteOffset+r)%l==0&&o)return a=new h(this.buffer,this.byteOffset+r,1),this._offset=r+l,i?a[0]:a[0]=s;var c=new Uint8Array(i?this.getBytes(l,r,o,!0):l);return a=new h(c.buffer,0,1),i?a[0]:(a[0]=s,void this._setBytes(r,c,o))},_arrayAction:function(t,e,i,n,r){return e?this["_get"+t](i,n):this["_set"+t](i,r,n)},_getBytes:function(t,e,r){r=n(r,this._littleEndian),e=n(e,this._offset),t=n(t,this.byteLength-e),this._checkBounds(e,t),e+=this.byteOffset,this._offset=e-this.byteOffset+t;var o=this._isArrayBuffer?new Uint8Array(this.buffer,e,t):(this.buffer.slice||Array.prototype.slice).call(this.buffer,e,e+t);return r||1>=t?o:i(o).reverse()},getBytes:function(t,e,r,o){var s=this._getBytes(t,e,n(r,!0));return o?i(s):s},_setBytes:function(t,e,r){var o=e.length;if(0!==o){if(r=n(r,this._littleEndian),t=n(t,this._offset),this._checkBounds(t,o),!r&&o>1&&(e=i(e,!0).reverse()),t+=this.byteOffset,this._isArrayBuffer)new Uint8Array(this.buffer,t,o).set(e);else if(this._isNodeBuffer)new Buffer(e).copy(this.buffer,t);else for(var s=0;o>s;s++)this.buffer[t+s]=e[s];this._offset=t-this.byteOffset+o}},setBytes:function(t,e,i){this._setBytes(t,e,n(i,!0))},getString:function(t,e,i){if(this._isNodeBuffer)return e=n(e,this._offset),t=n(t,this.byteLength-e),this._checkBounds(e,t),this._offset=e+t,this.buffer.toString(i||"binary",this.byteOffset+e,this.byteOffset+this._offset);var r=this._getBytes(t,e,!0);if(i="utf8"===i?"utf-8":i||"binary",u&&"binary"!==i)return new u(i).decode(this._isArrayBuffer?r:new Uint8Array(r));var o="";t=r.length;for(var s=0;t>s;s++)o+=String.fromCharCode(r[s]);return"utf-8"===i&&(o=decodeURIComponent(escape(o))),o},setString:function(t,e,i){if(this._isNodeBuffer)return t=n(t,this._offset),this._checkBounds(t,e.length),void(this._offset=t+this.buffer.write(e,this.byteOffset+t,i||"binary"));var r;i="utf8"===i?"utf-8":i||"binary",c&&"binary"!==i?r=new c(i).encode(e):("utf-8"===i&&(e=unescape(encodeURIComponent(e))),r=o(e)),this._setBytes(t,r,!0)},getChar:function(t){return this.getString(1,t)},setChar:function(t,e){this.setString(t,e)},tell:function(){return this._offset},seek:function(t){return this._checkBounds(t,0),this._offset=t},skip:function(t){return this.seek(this._offset+t)},slice:function(t,e,i){function o(t,e){return 0>t?t+e:t}return t=o(t,this.byteLength),e=o(n(e,this.byteLength),this.byteLength),i?new r(this.getBytes(e-t,t,!0,!0),void 0,void 0,this._littleEndian):new r(this.buffer,this.byteOffset+t,e-t,this._littleEndian)},alignBy:function(t){return this._bitOffset=0,1!==n(t,1)?this.skip(t-(this._offset%t||t)):this._offset},_getFloat64:function(t,e){var i=this._getBytes(8,t,e),n=1-2*(i[7]>>7),r=((i[7]<<1&255)<<3|i[6]>>4)-1023,o=(15&i[6])*s(48)+i[5]*s(40)+i[4]*s(32)+i[3]*s(24)+i[2]*s(16)+i[1]*s(8)+i[0];return 1024===r?0!==o?NaN:1/0*n:-1023===r?n*o*s(-1074):n*(1+o*s(-52))*s(r)},_getFloat32:function(t,e){var i=this._getBytes(4,t,e),n=1-2*(i[3]>>7),r=(i[3]<<1&255|i[2]>>7)-127,o=(127&i[2])<<16|i[1]<<8|i[0];return 128===r?0!==o?NaN:1/0*n:-127===r?n*o*s(-149):n*(1+o*s(-23))*s(r)},_get64:function(t,e,i){i=n(i,this._littleEndian),e=n(e,this._offset);for(var r=i?[0,4]:[4,0],o=0;2>o;o++)r[o]=this.getUint32(e+r[o],i);return this._offset=e+8,new t(r[0],r[1])},getInt64:function(t,e){return this._get64(l,t,e)},getUint64:function(t,e){return this._get64(a,t,e)},_getInt32:function(t,e){var i=this._getBytes(4,t,e);return i[3]<<24|i[2]<<16|i[1]<<8|i[0]},_getUint32:function(t,e){return this._getInt32(t,e)>>>0},_getInt16:function(t,e){return this._getUint16(t,e)<<16>>16},_getUint16:function(t,e){var i=this._getBytes(2,t,e);return i[1]<<8|i[0]},_getInt8:function(t){return this._getUint8(t)<<24>>24},_getUint8:function(t){return this._getBytes(1,t)[0]},_getBitRangeData:function(t,e){var i=(n(e,this._offset)<<3)+this._bitOffset,r=i+t,o=i>>>3,s=r+7>>>3,a=this._getBytes(s-o,o,!0),l=0;(this._bitOffset=7&r)&&(this._bitOffset-=8);for(var h=0,c=a.length;c>h;h++)l=l<<8|a[h];return{start:o,bytes:a,wideValue:l}},getSigned:function(t,e){var i=32-t;return this.getUnsigned(t,e)<<i>>i},getUnsigned:function(t,e){var i=this._getBitRangeData(t,e).wideValue>>>-this._bitOffset;return 32>t?i&~(-1<<t):i},_setBinaryFloat:function(t,e,i,n,r){var o,a,l=0>e?1:0,h=~(-1<<n-1),c=1-h;0>e&&(e=-e),0===e?(o=0,a=0):isNaN(e)?(o=2*h+1,a=1):1/0===e?(o=2*h+1,a=0):(o=Math.floor(Math.log(e)/Math.LN2))>=c&&h>=o?(a=Math.floor((e*s(-o)-1)*s(i)),o+=h):(a=Math.floor(e/s(c-i)),o=0);for(var u=[];i>=8;)u.push(a%256),a=Math.floor(a/256),i-=8;for(o=o<<i|a,n+=i;n>=8;)u.push(255&o),o>>>=8,n-=8;u.push(l<<n|o),this._setBytes(t,u,r)},_setFloat32:function(t,e,i){this._setBinaryFloat(t,e,23,8,i)},_setFloat64:function(t,e,i){this._setBinaryFloat(t,e,52,11,i)},_set64:function(t,e,i,r){"object"!=typeof i&&(i=t.fromNumber(i)),r=n(r,this._littleEndian),e=n(e,this._offset);var o=r?{lo:0,hi:4}:{lo:4,hi:0};for(var s in o)this.setUint32(e+o[s],i[s],r);this._offset=e+8},setInt64:function(t,e,i){this._set64(l,t,e,i)},setUint64:function(t,e,i){this._set64(a,t,e,i)},_setUint32:function(t,e,i){this._setBytes(t,[255&e,e>>>8&255,e>>>16&255,e>>>24],i)},_setUint16:function(t,e,i){this._setBytes(t,[255&e,e>>>8&255],i)},_setUint8:function(t,e){this._setBytes(t,[255&e])},setUnsigned:function(t,e,i){var n=this._getBitRangeData(i,t),r=n.wideValue,o=n.bytes;r&=~(~(-1<<i)<<-this._bitOffset),r|=(32>i?e&~(-1<<i):e)<<-this._bitOffset;for(var s=o.length-1;s>=0;s--)o[s]=255&r,r>>>=8;this._setBytes(n.start,o,!0)}},d={Int8:"Int8",Int16:"Int16",Int32:"Int32",Uint8:"UInt8",Uint16:"UInt16",Uint32:"UInt32",Float32:"Float",Float64:"Double"};for(var g in p._nodeBufferAction=function(t,e,i,n,r){this._offset=i+f[t];var o=d[t]+("Int8"===t||"Uint8"===t?"":n?"LE":"BE");return i+=this.byteOffset,e?this.buffer["read"+o](i):this.buffer["write"+o](r,i)},f)!function(t){p["get"+t]=function(e,i){return this._action(t,!0,e,i)},p["set"+t]=function(e,i,n){this._action(t,!1,e,n,i)}}(g);for(var m in p._setInt32=p._setUint32,p._setInt16=p._setUint16,p._setInt8=p._setUint8,p.setSigned=p.setUnsigned,p)"set"===m.slice(0,3)&&function(t){p["write"+t]=function(){Array.prototype.unshift.call(arguments,void 0),this["set"+t].apply(this,arguments)}}(m.slice(3));return r}(this)}()},6400:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])}})})?n.apply(e,r):n)||(t.exports=o)}()},2064:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.fn.extend({disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(e+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var e})?n.apply(e,r):n)||(t.exports=o)}()},1870:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})?n.apply(e,r):n)||(t.exports=o)}()},1624:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],n=function(t){return t.ui.plugin={add:function(e,i,n){var r,o=t.ui[e].prototype;for(r in n)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([i,n[r]])},call:function(t,e,i,n){var r,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)t.options[o[r][0]]&&o[r][1].apply(t.element,i)}}},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},1822:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],n=function(t){return function(){var e,i=Math.max,n=Math.abs,r=/left|center|right/,o=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,h=t.fn.position;function c(t,e,i){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?i/100:1)]}function u(e,i){return parseInt(t.css(e,i),10)||0}function f(t){return null!=t&&t===t.window}function p(t){var e=t[0];return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:f(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var i,n,r=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=r.children()[0];return t("body").append(r),i=o.offsetWidth,r.css("overflow","scroll"),i===(n=o.offsetWidth)&&(n=r[0].clientWidth),r.remove(),e=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=f(i[0]),r=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:r,offset:!n&&!r?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return h.apply(this,arguments);var l,f,d,g,m,v,y="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||"flip").split(" "),_={};return v=p(y),y[0].preventDefault&&(e.at="left top"),f=v.width,d=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],(function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=r.test(n[0])?n.concat(["center"]):o.test(n[0])?["center"].concat(n):["center","center"]),n[0]=r.test(n[0])?n[0]:"center",n[1]=o.test(n[1])?n[1]:"center",t=s.exec(n[0]),i=s.exec(n[1]),_[this]=[t?t[0]:0,i?i[0]:0],e[this]=[a.exec(n[0])[0],a.exec(n[1])[0]]})),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?m.left+=f:"center"===e.at[0]&&(m.left+=f/2),"bottom"===e.at[1]?m.top+=d:"center"===e.at[1]&&(m.top+=d/2),l=c(_.at,f,d),m.left+=l[0],m.top+=l[1],this.each((function(){var r,o,s=t(this),a=s.outerWidth(),h=s.outerHeight(),p=u(this,"marginLeft"),v=u(this,"marginTop"),k=a+p+u(this,"marginRight")+w.width,S=h+v+u(this,"marginBottom")+w.height,C=t.extend({},m),T=c(_.my,s.outerWidth(),s.outerHeight());"right"===e.my[0]?C.left-=a:"center"===e.my[0]&&(C.left-=a/2),"bottom"===e.my[1]?C.top-=h:"center"===e.my[1]&&(C.top-=h/2),C.left+=T[0],C.top+=T[1],r={marginLeft:p,marginTop:v},t.each(["left","top"],(function(i,n){t.ui.position[x[i]]&&t.ui.position[x[i]][n](C,{targetWidth:f,targetHeight:d,elemWidth:a,elemHeight:h,collisionPosition:r,collisionWidth:k,collisionHeight:S,offset:[l[0]+T[0],l[1]+T[1]],my:e.my,at:e.at,within:b,elem:s})})),e.using&&(o=function(t){var r=g.left-C.left,o=r+f-a,l=g.top-C.top,c=l+d-h,u={target:{element:y,left:g.left,top:g.top,width:f,height:d},element:{element:s,left:C.left,top:C.top,width:a,height:h},horizontal:o<0?"left":r>0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};f<a&&n(r+o)<f&&(u.horizontal="center"),d<h&&n(l+c)<d&&(u.vertical="middle"),i(n(r),n(o))>i(n(l),n(c))?u.important="horizontal":u.important="vertical",e.using.call(this,t,u)}),s.offset(t.extend(C,{using:o}))}))},t.ui.position={fit:{left:function(t,e){var n,r=e.within,o=r.isWindow?r.scrollLeft:r.offset.left,s=r.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,h=a+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&h<=0?(n=t.left+l+e.collisionWidth-s-o,t.left+=l-n):t.left=h>0&&l<=0?o:l>h?o+s-e.collisionWidth:o:l>0?t.left+=l:h>0?t.left-=h:t.left=i(t.left-a,t.left)},top:function(t,e){var n,r=e.within,o=r.isWindow?r.scrollTop:r.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,h=a+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&h<=0?(n=t.top+l+e.collisionHeight-s-o,t.top+=l-n):t.top=h>0&&l<=0?o:l>h?o+s-e.collisionHeight:o:l>0?t.top+=l:h>0?t.top-=h:t.top=i(t.top-a,t.top)}},flip:{left:function(t,e){var i,r,o=e.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-a-l,f="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,d=-2*e.offset[0];c<0?((i=t.left+f+p+d+e.collisionWidth-a-s)<0||i<n(c))&&(t.left+=f+p+d):u>0&&((r=t.left-e.collisionPosition.marginLeft+f+p+d-l)>0||n(r)<u)&&(t.left+=f+p+d)},top:function(t,e){var i,r,o=e.within,s=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-a-l,f="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,d=-2*e.offset[1];c<0?((r=t.top+f+p+d+e.collisionHeight-a-s)<0||r<n(c))&&(t.top+=f+p+d):u>0&&((i=t.top-e.collisionPosition.marginTop+f+p+d-l)>0||n(i)<u)&&(t.top+=f+p+d)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},6575:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e}})?n.apply(e,r):n)||(t.exports=o)}()},192:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")}})?n.apply(e,r):n)||(t.exports=o)}()},464:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],void 0===(o="function"==typeof(n=function(t){return t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)}})?n.apply(e,r):n)||(t.exports=o)}()},5592:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755)],void 0===(o="function"==typeof(n=function(t){return t.ui=t.ui||{},t.ui.version="1.13.1"})?n.apply(e,r):n)||(t.exports=o)}()},6891:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(5592)],n=function(t){var e=0,i=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=function(e){return function(i){var n,r,o;for(o=0;null!=(r=i[o]);o++)(n=t._data(r,"events"))&&n.remove&&t(r).triggerHandler("remove");e(i)}}(t.cleanData),t.widget=function(e,i,n){var r,o,s,a={},l=e.split(".")[0],h=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(s=new i).options=t.widget.extend({},s.options),t.each(n,(function(t,e){a[t]="function"==typeof e?function(){function n(){return i.prototype[t].apply(this,arguments)}function r(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=n,this._superApply=r,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||e},a,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),r?(t.each(r._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete r._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var r,o,s=n.call(arguments,1),a=0,l=s.length;a<l;a++)for(r in s[a])o=s[a][r],i.call(s[a],r)&&void 0!==o&&(t.isPlainObject(o)?e[r]=t.isPlainObject(e[r])?t.widget.extend({},e[r],o):t.widget.extend({},o):e[r]=o);return e},t.widget.bridge=function(e,i){var r=i.prototype.widgetFullName||e;t.fn[e]=function(o){var s="string"==typeof o,a=n.call(arguments,1),l=this;return s?this.length||"instance"!==o?this.each((function(){var i,n=t.data(this,r);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,a))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(a.length&&(o=t.widget.extend.apply(null,[o].concat(a))),this.each((function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new i(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,r,o,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},n=e.split("."),e=n.shift(),n.length){for(r=s[e]=t.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)r[n[o]]=r[n[o]]||{},r=r[n[o]];if(e=n.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=i}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,r;for(i in e)r=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&r&&r.length&&(n=t(r.get()),this._removeClass(r,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],n=this;function r(){var i=[];e.element.each((function(e,r){t.map(n.classesElementLookup,(function(t){return t})).some((function(t){return t.is(r)}))||i.push(r)})),n._on(t(i),{remove:"_untrackClassesElement"})}function o(o,s){var a,l;for(l=0;l<o.length;l++)a=n.classesElementLookup[o[l]]||t(),e.add?(r(),a=t(t.uniqueSort(a.get().concat(e.element.get())))):a=t(a.not(e.element).get()),n.classesElementLookup[o[l]]=a,i.push(o[l]),s&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(n,r){-1!==t.inArray(e.target,r)&&(i.classesElementLookup[n]=t(r.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var r="string"==typeof t||null===t,o={extra:r?e:i,keys:r?t:e,element:r?this.element:t,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(e,i,n){var r,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,(function(n,s){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof s?o[s]:s).apply(o,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?r.on(h,c,a):i.on(h,a)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var r,o,s=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(r in o)r in i||(i[r]=o[r]);return this.element.trigger(i,n),!("function"==typeof s&&!1===s.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,r,o){var s;"string"==typeof r&&(r={effect:r});var a=r?!0===r||"number"==typeof r?i:r.effect||i:e;"number"==typeof(r=r||{})?r={duration:r}:!0===r&&(r={}),s=!t.isEmptyObject(r),r.complete=o,r.delay&&n.delay(r.delay),s&&t.effects&&t.effects.effect[a]?n[e](r):a!==e&&n[a]?n[a](r.duration,r.easing,o):n.queue((function(i){t(this)[e](),o&&o.call(n[0]),i()}))}})),t.widget},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},7285:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(6177),i(6400),i(1624),i(6575),i(192),i(464),i(5592),i(6891)],void 0===(o="function"==typeof(n=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.13.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper,r=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options,o=this.document[0];this.relativeContainer=null,r.containment?"window"!==r.containment?"document"!==r.containment?r.containment.constructor!==Array?("parent"===r.containment&&(r.containment=this.helper[0].parentNode),(n=(i=t(r.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=r.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,r,o,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),s.grid&&(r=s.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,h=i?r-this.offset.click.top>=i[1]||r-this.offset.click.top>i[3]?r:r-this.offset.click.top>=i[1]?r-s.grid[1]:r+s.grid[1]:r,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-s.grid[0]:o+s.grid[0]:o),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var r=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,r))}))},stop:function(e,i,n){var r=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,(function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,r))}))},drag:function(e,i,n){t.each(n.sortables,(function(){var r=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,t.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(r=!1),r}))),r?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",e),n.dropped=o.element,t.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var r=t("body"),o=n.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(e,i,n){var r=n.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var r=t(i.helper),o=n.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(e,i,n){var r=n.options;r._opacity&&t(i.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var r=n.options,o=!1,s=n.scrollParentNotHidden[0],a=n.document[0];s!==a&&"HTML"!==s.tagName?(r.axis&&"x"===r.axis||(n.overflowOffset.top+s.offsetHeight-e.pageY<r.scrollSensitivity?s.scrollTop=o=s.scrollTop+r.scrollSpeed:e.pageY-n.overflowOffset.top<r.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(n.overflowOffset.left+s.offsetWidth-e.pageX<r.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+r.scrollSpeed:e.pageX-n.overflowOffset.left<r.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(a).scrollTop()<r.scrollSensitivity?o=t(a).scrollTop(t(a).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<r.scrollSensitivity&&(o=t(a).scrollTop(t(a).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(a).scrollLeft()<r.scrollSensitivity?o=t(a).scrollLeft(t(a).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<r.scrollSensitivity&&(o=t(a).scrollLeft(t(a).scrollLeft()+r.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var r=n.options;n.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each((function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,n){var r,o,s,a,l,h,c,u,f,p,d=n.options,g=d.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,y=i.offset.top,b=y+n.helperProportions.height;for(f=n.snapElements.length-1;f>=0;f--)h=(l=n.snapElements[f].left-n.margins.left)+n.snapElements[f].width,u=(c=n.snapElements[f].top-n.margins.top)+n.snapElements[f].height,v<l-g||m>h+g||b<c-g||y>u+g||!t.contains(n.snapElements[f].item.ownerDocument,n.snapElements[f].item)?(n.snapElements[f].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[f].item})),n.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(r=Math.abs(c-b)<=g,o=Math.abs(u-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(h-m)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left)),p=r||o||s||a,"outer"!==d.snapMode&&(r=Math.abs(c-y)<=g,o=Math.abs(u-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(h-v)<=g,r&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left)),!n.snapElements[f].snapping&&(r||o||s||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[f].item})),n.snapElements[f].snapping=r||o||s||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var r,o=n.options,s=t.makeArray(t(o.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));s.length&&(r=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each((function(e){t(this).css("zIndex",r+e)})),this.css("zIndex",r+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var r=t(i.helper),o=n.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(e,i,n){var r=n.options;r._zIndex&&t(i.helper).css("zIndex",r._zIndex)}}),t.ui.draggable})?n.apply(e,r):n)||(t.exports=o)}()},6177:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(1870),i(5592),i(6891)],void 0===(o="function"==typeof(n=function(t){var e=!1;return t(document).on("mouseup",(function(){e=!1})),t.widget("ui.mouse",{version:"1.13.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,r=1===i.which,o=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&t.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,i.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(e,r):n)||(t.exports=o)}()},1707:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(6177),i(2064),i(1624),i(5592),i(6891)],n=function(t){return t.widget("ui.resizable",t.ui.mouse,{version:"1.13.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",r=!1;if(e[n]>0)return!0;try{e[n]=1,r=e[n]>0,e[n]=0}catch(t){}return r},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())})).on("mouseleave",(function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,n,r,o,s=this.options,a=this;if(this.handles=s.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)r="ui-resizable-"+(e=String.prototype.trim.call(n[i])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:s.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(e){var i,n,r,o;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),r=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(r,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")})),s.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,n,r=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var i,n,r,o=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,n+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,r=this.originalMousePosition,o=this.axis,s=e.pageX-r.left||0,a=e.pageY-r.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,s,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,r,o,s,a,l,h=this.options,c=this;return this._helper&&(r=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=n?0:c.sizeDiff.width,s={width:c.helper.width()-o,height:c.helper.height()-r},a=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,l=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,h.animate||this.element.css(t.extend(s,{top:l,left:a})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,r,o,s=this.options;o={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:Infinity,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:Infinity},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),n>o.minHeight&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,s=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),s&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),o&&h&&(t.left=a-e.minWidth),n&&h&&(t.left=a-e.maxWidth),s&&c&&(t.top=l-e.minHeight),r&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(r[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,r=i._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),s=o&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-s},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};r&&r.length&&t(r[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,r,o,s,a,l=t(this).resizable("instance"),h=l.options,c=l.element,u=h.containment,f=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;f&&(l.containerElement=t(f),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(f),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,n){i[t]=l._num(e.css("padding"+n))})),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,r=l.containerSize.height,o=l.containerSize.width,s=l._hasScroll(f,"left")?f.scrollWidth:o,a=l._hasScroll(f)?f.scrollHeight:r,l.parentData={element:f,left:n.left,top:n.top,width:s,height:a}))},resize:function(e){var i,n,r,o,s=t(this).resizable("instance"),a=s.options,l=s.containerOffset,h=s.position,c=s._aspectRatio||e.shiftKey,u={top:0,left:0},f=s.containerElement,p=!0;f[0]!==document&&/static/.test(f.css("position"))&&(u=l),h.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-u.left),c&&(s.size.height=s.size.width/s.aspectRatio,p=!1),s.position.left=a.helper?l.left:0),h.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),c&&(s.size.width=s.size.height*s.aspectRatio,p=!1),s.position.top=s._helper?l.top:0),r=s.containerElement.get(0)===s.element.parent().get(0),o=/relative|absolute/.test(s.containerElement.css("position")),r&&o?(s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top):(s.offset.left=s.element.offset().left,s.offset.top=s.element.offset().top),i=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-u.left:s.offset.left-l.left)),n=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-u.top:s.offset.top-l.top)),i+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-i,c&&(s.size.height=s.size.width/s.aspectRatio,p=!1)),n+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-n,c&&(s.size.width=s.size.height*s.aspectRatio,p=!1)),p||(s.position.left=s.prevPosition.left,s.position.top=s.prevPosition.top,s.size.width=s.prevSize.width,s.size.height=s.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,r=e.containerPosition,o=e.containerElement,s=t(e.helper),a=s.offset(),l=s.outerWidth()-e.sizeDiff.width,h=s.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:a.left-r.left-n.left,width:l,height:h}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:a.left-r.left-n.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,i){var n=t(this).resizable("instance"),r=n.options,o=n.originalSize,s=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-s.top||0,left:n.position.left-s.left||0};t(r.alsoResize).each((function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),r={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var i=(n[e]||0)+(a[e]||0);i&&i>=0&&(r[e]=i||null)})),e.css(r)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,r=i.size,o=i.originalSize,s=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,h=l[0]||1,c=l[1]||1,u=Math.round((r.width-o.width)/h)*h,f=Math.round((r.height-o.height)/c)*c,p=o.width+u,d=o.height+f,g=n.maxWidth&&n.maxWidth<p,m=n.maxHeight&&n.maxHeight<d,v=n.minWidth&&n.minWidth>p,y=n.minHeight&&n.minHeight>d;n.grid=l,v&&(p+=h),y&&(d+=c),g&&(p-=h),m&&(d-=c),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=d):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=d,i.position.top=s.top-f):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=d,i.position.left=s.left-u):((d-c<=0||p-h<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),d-c>0?(i.size.height=d,i.position.top=s.top-f):(d=c-e.height,i.size.height=d,i.position.top=s.top+o.height-d),p-h>0?(i.size.width=p,i.position.left=s.left-u):(p=h-e.width,i.size.width=p,i.position.left=s.left+o.width-p))}}),t.ui.resizable},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},2526:function(t,e,i){var n,r,o;!function(s){"use strict";r=[i(9755),i(6177),i(6400),i(1870),i(464),i(5592),i(6891)],n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.13.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,r=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1})),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(r=!0)})),!r))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var r,o,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==s.appendTo?s.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",s.cursor),this.storedStylesheet=t("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(o)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,r,o,s=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),s.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(r=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),o=this.options.axis,s={};o&&"x"!==o||(s.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(s.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,o=t.left,s=o+t.width,a=t.top,l=a+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||n+h>a&&n+h<l,f="y"===this.options.axis||e+c>o&&e+c<s,p=u&&f;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<s&&a<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!r)&&(e=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,r=this.dragDirection.horizontal;return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,r,o,s=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(r=t(l[i],this.document[0])).length-1;n>=0;n--)(o=t.data(r[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function h(){s.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(h);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,o,s,a,l,h,c=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],f=this._connectWith();if(f&&this.ready)for(i=f.length-1;i>=0;i--)for(n=(r=t(f[i],this.document[0])).length-1;n>=0;n--)(o=t.data(r[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(s=u[i][1],n=0,h=(a=u[i][0]).length;n<h;n++)(l=t(a[n])).data(this.widgetName+"-item",s),c.push({item:l,instance:s,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var i,n,r,o;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),o=r.offset(),n.left=o.left,n.top=o.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(i=r.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var r=t("<"+n+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===n?e._createTrPlaceholder(e.currentItem,r):"img"===n&&r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,o){i&&!r.forcePlaceholderSize||(o.height()&&(!r.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td> </td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,r,o,s,a,l,h,c,u,f=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(f&&t.contains(this.containers[i].element[0],f.element[0]))continue;f=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,o=null,s=(c=f.floating||this._isFloating(this.currentItem))?"left":"top",a=c?"width":"height",u=c?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[s],h=!1,e[u]-l>this.items[n][a]/2&&(h=!0),Math.abs(e[u]-l)<r&&(r=Math.abs(e[u]-l),o=this.items[n],this.direction=h?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,o=e.pageX,s=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1],s=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay((function(){r===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function r(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(r("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(r("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})},void 0===(o="function"==typeof n?n.apply(e,r):n)||(t.exports=o)}()},9755:function(t,e){var i;!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},h=o.push,c=o.indexOf,u={},f=u.toString,p=u.hasOwnProperty,d=p.toString,g=d.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,i){var n,r,o=(i=i||b).createElement("script");if(o.text=t,e)for(n in w)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,r);i.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[f.call(t)]||"object":typeof t}var k="3.6.0",S=function(t,e){return new S.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,i=_(t);return!v(t)&&!y(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:k,constructor:S,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var t,e,i,n,r,o,s=arguments[0]||{},a=1,l=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&s!==n&&(h&&n&&(S.isPlainObject(n)||(r=Array.isArray(n)))?(i=s[e],o=r&&!Array.isArray(i)?[]:r||S.isPlainObject(i)?i:{},r=!1,s[e]=S.extend(h,o,n)):void 0!==n&&(s[e]=n));return s},S.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==f.call(t))&&(!(e=s(t))||"function"==typeof(i=p.call(e,"constructor")&&e.constructor)&&d.call(i)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){x(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(C(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(C(Object(t))?S.merge(i,"string"==typeof t?[t]:t):h.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:c.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,o=t.length,s=!i;r<o;r++)!e(t[r],r)!==s&&n.push(t[r]);return n},map:function(t,e,i){var n,r,o=0,s=[];if(C(t))for(n=t.length;o<n;o++)null!=(r=e(t[o],o,i))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,i))&&s.push(r);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){u["[object "+e+"]"]=e.toLowerCase()}));var T=function(t){var e,i,n,r,o,s,a,l,h,c,u,f,p,d,g,m,v,y,b,w="sizzle"+1*new Date,x=t.document,_=0,k=0,S=lt(),C=lt(),T=lt(),P=lt(),j=function(t,e){return t===e&&(u=!0),0},O={}.hasOwnProperty,A=[],E=A.pop,M=A.push,I=A.push,D=A.slice,H=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",L="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\[[\\x20\\t\\r\\n\\f]*("+L+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+R+"*\\]",z=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",B=new RegExp(R+"+","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),$=new RegExp(R+"|>"),V=new RegExp(z),Q=new RegExp("^"+L+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){f()},st=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(A=D.call(x.childNodes),x.childNodes),A[x.childNodes.length].nodeType}catch(t){I={apply:A.length?function(t,e){M.apply(t,D.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function at(t,e,n,r){var o,a,h,c,u,d,v,y=e&&e.ownerDocument,x=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return n;if(!r&&(f(e),e=e||p,g)){if(11!==x&&(u=K.exec(t)))if(o=u[1]){if(9===x){if(!(h=e.getElementById(o)))return n;if(h.id===o)return n.push(h),n}else if(y&&(h=y.getElementById(o))&&b(e,h)&&h.id===o)return n.push(h),n}else{if(u[2])return I.apply(n,e.getElementsByTagName(t)),n;if((o=u[3])&&i.getElementsByClassName&&e.getElementsByClassName)return I.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!P[t+" "]&&(!m||!m.test(t))&&(1!==x||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===x&&($.test(t)||U.test(t))){for((y=tt.test(t)&&vt(e.parentNode)||e)===e&&i.scope||((c=e.getAttribute("id"))?c=c.replace(nt,rt):e.setAttribute("id",c=w)),a=(d=s(t)).length;a--;)d[a]=(c?"#"+c:":scope")+" "+bt(d[a]);v=d.join(",")}try{return I.apply(n,y.querySelectorAll(v)),n}catch(e){P(t,!0)}finally{c===w&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,n,r)}function lt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function ht(t){return t[w]=!0,t}function ct(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function ft(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ht((function(e){return e=+e,ht((function(i,n){for(var r,o=t([],i.length,e),s=o.length;s--;)i[r=o[s]]&&(i[r]=!(n[r]=i[r]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=at.support={},o=at.isXML=function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!X.test(e||i&&i.nodeName||"HTML")},f=at.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:x;return s!=p&&9===s.nodeType&&s.documentElement?(d=(p=s).documentElement,g=!o(p),x!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),i.scope=ct((function(t){return d.appendChild(t).appendChild(p.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ct((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(p.getElementsByClassName),i.getById=ct((function(t){return d.appendChild(t).id=w,!p.getElementsByName||!p.getElementsByName(w).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i,n,r,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(r=e.getElementsByName(t),n=0;o=r[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[r++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(i.qsa=J.test(p.querySelectorAll))&&(ct((function(t){var e;d.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+F+")"),t.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(e=p.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=J.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ct((function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",z)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(d.compareDocumentPosition),b=e||J.test(d.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},j=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==p||t.ownerDocument==x&&b(x,t)?-1:e==p||e.ownerDocument==x&&b(x,e)?1:c?H(c,t)-H(c,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var i,n=0,r=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!r||!o)return t==p?-1:e==p?1:r?-1:o?1:c?H(c,t)-H(c,e):0;if(r===o)return ft(t,e);for(i=t;i=i.parentNode;)s.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;s[n]===a[n];)n++;return n?ft(s[n],a[n]):s[n]==x?-1:a[n]==x?1:0},p):p},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(f(t),i.matchesSelector&&g&&!P[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){P(e,!0)}return at(e,p,null,[t]).length>0},at.contains=function(t,e){return(t.ownerDocument||t)!=p&&f(t),b(t,e)},at.attr=function(t,e){(t.ownerDocument||t)!=p&&f(t);var r=n.attrHandle[e.toLowerCase()],o=r&&O.call(n.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==o?o:i.attributes||!g?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},at.escape=function(t){return(t+"").replace(nt,rt)},at.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},at.uniqueSort=function(t){var e,n=[],r=0,o=0;if(u=!i.detectDuplicates,c=!i.sortStable&&t.slice(0),t.sort(j),u){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)t.splice(n[r],1)}return c=null,t},r=at.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},n=at.selectors={cacheLength:50,createPseudo:ht,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&at.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&V.test(i)&&(e=s(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+R+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var r=at.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(B," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var h,c,u,f,p,d,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(o){for(;g;){for(f=e;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(b=(p=(h=(c=(u=(f=m)[w]||(f[w]={}))[f.uniqueID]||(u[f.uniqueID]={}))[t]||[])[0]===_&&h[1])&&h[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(b=p=0)||d.pop();)if(1===f.nodeType&&++b&&f===e){c[t]=[_,p,b];break}}else if(y&&(b=p=(h=(c=(u=(f=e)[w]||(f[w]={}))[f.uniqueID]||(u[f.uniqueID]={}))[t]||[])[0]===_&&h[1]),!1===b)for(;(f=++p&&f&&f[g]||(b=p=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(u=f[w]||(f[w]={}))[f.uniqueID]||(u[f.uniqueID]={}))[t]=[_,b]),f!==e)););return(b-=r)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||at.error("unsupported pseudo: "+t);return r[w]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ht((function(t,i){for(var n,o=r(t,e),s=o.length;s--;)t[n=H(t,o[s])]=!(i[n]=o[s])})):function(t){return r(t,0,i)}):r}},pseudos:{not:ht((function(t){var e=[],i=[],n=a(t.replace(W,"$1"));return n[w]?ht((function(t,e,i,r){for(var o,s=n(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:ht((function(t){return function(e){return at(t,e).length>0}})),contains:ht((function(t){return t=t.replace(et,it),function(e){return(e.textContent||r(e)).indexOf(t)>-1}})),lang:ht((function(t){return Q.test(t||"")||at.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===d},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,i){return[i<0?i+e:i]})),even:mt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:mt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:mt((function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:mt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=pt(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=dt(e);function yt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function wt(t,e,i){var n=e.dir,r=e.next,o=r||n,s=i&&"parentNode"===o,a=k++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,r);return!1}:function(e,i,l){var h,c,u,f=[_,a];if(l){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||s)if(c=(u=e[w]||(e[w]={}))[e.uniqueID]||(u[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((h=c[o])&&h[0]===_&&h[1]===a)return f[2]=h[2];if(c[o]=f,f[2]=t(e,i,l))return!0}return!1}}function xt(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function _t(t,e,i,n,r){for(var o,s=[],a=0,l=t.length,h=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,r)||(s.push(o),h&&e.push(a)));return s}function kt(t,e,i,n,r,o){return n&&!n[w]&&(n=kt(n)),r&&!r[w]&&(r=kt(r,o)),ht((function(o,s,a,l){var h,c,u,f=[],p=[],d=s.length,g=o||function(t,e,i){for(var n=0,r=e.length;n<r;n++)at(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),m=!t||!o&&e?g:_t(g,f,t,a,l),v=i?r||(o?t:d||n)?[]:s:m;if(i&&i(m,v,a,l),n)for(h=_t(v,p),n(h,[],a,l),c=h.length;c--;)(u=h[c])&&(v[p[c]]=!(m[p[c]]=u));if(o){if(r||t){if(r){for(h=[],c=v.length;c--;)(u=v[c])&&h.push(m[c]=u);r(null,v=[],h,l)}for(c=v.length;c--;)(u=v[c])&&(h=r?H(o,u):f[c])>-1&&(o[h]=!(s[h]=u))}}else v=_t(v===s?v.splice(d,v.length):v),r?r(null,s,v,l):I.apply(s,v)}))}function St(t){for(var e,i,r,o=t.length,s=n.relative[t[0].type],a=s||n.relative[" "],l=s?1:0,c=wt((function(t){return t===e}),a,!0),u=wt((function(t){return H(e,t)>-1}),a,!0),f=[function(t,i,n){var r=!s&&(n||i!==h)||((e=i).nodeType?c(t,i,n):u(t,i,n));return e=null,r}];l<o;l++)if(i=n.relative[t[l].type])f=[wt(xt(f),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[w]){for(r=++l;r<o&&!n.relative[t[r].type];r++);return kt(l>1&&xt(f),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(W,"$1"),i,l<r&&St(t.slice(l,r)),r<o&&St(t=t.slice(r)),r<o&&bt(t))}f.push(i)}return xt(f)}return yt.prototype=n.filters=n.pseudos,n.setFilters=new yt,s=at.tokenize=function(t,e){var i,r,o,s,a,l,h,c=C[t+" "];if(c)return e?0:c.slice(0);for(a=t,l=[],h=n.preFilter;a;){for(s in i&&!(r=q.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=U.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(W," ")}),a=a.slice(i.length)),n.filter)!(r=Y[s].exec(a))||h[s]&&!(r=h[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return e?a.length:a?at.error(t):C(t,l).slice(0)},a=at.compile=function(t,e){var i,r=[],o=[],a=T[t+" "];if(!a){for(e||(e=s(t)),i=e.length;i--;)(a=St(e[i]))[w]?r.push(a):o.push(a);a=T(t,function(t,e){var i=e.length>0,r=t.length>0,o=function(o,s,a,l,c){var u,d,m,v=0,y="0",b=o&&[],w=[],x=h,k=o||r&&n.find.TAG("*",c),S=_+=null==x?1:Math.random()||.1,C=k.length;for(c&&(h=s==p||s||c);y!==C&&null!=(u=k[y]);y++){if(r&&u){for(d=0,s||u.ownerDocument==p||(f(u),a=!g);m=t[d++];)if(m(u,s||p,a)){l.push(u);break}c&&(_=S)}i&&((u=!m&&u)&&v--,o&&b.push(u))}if(v+=y,i&&y!==v){for(d=0;m=e[d++];)m(b,w,s,a);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=E.call(l));w=_t(w)}I.apply(l,w),c&&!o&&w.length>0&&v+e.length>1&&at.uniqueSort(l)}return c&&(_=S,h=x),b};return i?ht(o):o}(o,r)),a.selector=t}return a},l=at.select=function(t,e,i,r){var o,l,h,c,u,f="function"==typeof t&&t,p=!r&&s(t=f.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(h=l[0]).type&&9===e.nodeType&&g&&n.relative[l[1].type]){if(!(e=(n.find.ID(h.matches[0].replace(et,it),e)||[])[0]))return i;f&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=Y.needsContext.test(t)?0:l.length;o--&&(h=l[o],!n.relative[c=h.type]);)if((u=n.find[c])&&(r=u(h.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&bt(l)))return I.apply(i,r),i;break}}return(f||a(t,p))(r,e,!g,i,!e||tt.test(t)&&vt(e.parentNode)||e),i},i.sortStable=w.split("").sort(j).join("")===w,i.detectDuplicates=!!u,f(),i.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ut("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ut("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ut(F,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),at}(n);S.find=T,S.expr=T.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=T.uniqueSort,S.text=T.getText,S.isXMLDoc=T.isXML,S.contains=T.contains,S.escapeSelector=T.escape;var P=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&S(t).is(i))break;n.push(t)}return n},j=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},O=S.expr.match.needsContext;function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var E=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(t,e,i){return v(e)?S.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?S.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?S.grep(t,(function(t){return c.call(e,t)>-1!==i})):S.filter(e,t,i)}S.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?S.find.matchesSelector(n,t)?[n]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e<n;e++)if(S.contains(r[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)S.find(t,r[e],i);return n>1?S.uniqueSort(i):i},filter:function(t){return this.pushStack(M(this,t||[],!1))},not:function(t){return this.pushStack(M(this,t||[],!0))},is:function(t){return!!M(this,"string"==typeof t&&O.test(t)?S(t):t||[],!1).length}});var I,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||I,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:D.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),E.test(n[1])&&S.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=b.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,I=S(b);var H=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function R(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(S.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,r=this.length,o=[],s="string"!=typeof t&&S(t);if(!O.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&S.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(S(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return P(t,"parentNode")},parentsUntil:function(t,e,i){return P(t,"parentNode",i)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return P(t,"nextSibling")},prevAll:function(t){return P(t,"previousSibling")},nextUntil:function(t,e,i){return P(t,"nextSibling",i)},prevUntil:function(t,e,i){return P(t,"previousSibling",i)},siblings:function(t){return j((t.parentNode||{}).firstChild,t)},children:function(t){return j(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(A(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(i,n){var r=S.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=S.filter(n,r)),this.length>1&&(F[t]||S.uniqueSort(r),H.test(t)&&r.reverse()),this.pushStack(r)}}));var L=/[^\x20\t\r\n\f]+/g;function N(t){return t}function z(t){throw t}function B(t,e,i,n){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(i):t&&v(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(L)||[],(function(t,i){e[i]=!0})),e}(t):S.extend({},t);var e,i,n,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,n=e=!0;s.length;a=-1)for(i=s.shift();++a<o.length;)!1===o[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=o.length,i=!1);t.memory||(i=!1),e=!1,r&&(o=i?[]:"")},h={add:function(){return o&&(i&&!e&&(a=o.length-1,s.push(i)),function e(i){S.each(i,(function(i,n){v(n)?t.unique&&h.has(n)||o.push(n):n&&n.length&&"string"!==_(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return S.each(arguments,(function(t,e){for(var i;(i=S.inArray(e,o,i))>-1;)o.splice(i,1),i<=a&&a--})),this},has:function(t){return t?S.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=i="",this},disabled:function(){return!o},lock:function(){return r=s=[],i||e||(o=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],s.push(i),e||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return S.Deferred((function(i){S.each(e,(function(e,n){var r=v(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var o=0;function s(t,e,i,r){return function(){var a=this,l=arguments,h=function(){var n,h;if(!(t<o)){if((n=i.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");h=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(h)?r?h.call(n,s(o,e,N,r),s(o,e,z,r)):(o++,h.call(n,s(o,e,N,r),s(o,e,z,r),s(o,e,N,e.notifyWith))):(i!==N&&(a=void 0,l=[n]),(r||e.resolveWith)(a,l))}},c=r?h:function(){try{h()}catch(n){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(n,c.stackTrace),t+1>=o&&(i!==z&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?c():(S.Deferred.getStackHook&&(c.stackTrace=S.Deferred.getStackHook()),n.setTimeout(c))}}return S.Deferred((function(n){e[0][3].add(s(0,n,v(r)?r:N,n.notifyWith)),e[1][3].add(s(0,n,v(t)?t:N)),e[2][3].add(s(0,n,v(i)?i:z))})).promise()},promise:function(t){return null!=t?S.extend(t,r):r}},o={};return S.each(e,(function(t,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add((function(){i=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=s.fireWith})),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),r=a.call(arguments),o=S.Deferred(),s=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?a.call(arguments):i,--e||o.resolveWith(n,r)}};if(e<=1&&(B(t,o.done(s(i)).resolve,o.reject,!e),"pending"===o.state()||v(r[i]&&r[i].then)))return o.then();for(;i--;)B(r[i],s(i),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&W.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){n.setTimeout((function(){throw t}))};var q=S.Deferred();function U(){b.removeEventListener("DOMContentLoaded",U),n.removeEventListener("load",U),S.ready()}S.fn.ready=function(t){return q.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||q.resolveWith(b,[S]))}}),S.ready.then=q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(S.ready):(b.addEventListener("DOMContentLoaded",U),n.addEventListener("load",U));var $=function(t,e,i,n,r,o,s){var a=0,l=t.length,h=null==i;if("object"===_(i))for(a in r=!0,i)$(t,e,a,i[a],!0,o,s);else if(void 0!==n&&(r=!0,v(n)||(s=!0),h&&(s?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(S(t),i)})),e))for(;a<l;a++)e(t[a],i,s?n:n.call(t[a],a,e(t[a],i)));return r?t:h?e.call(t):l?e(t[0],i):o},V=/^-ms-/,Q=/-([a-z])/g;function Y(t,e){return e.toUpperCase()}function X(t){return t.replace(V,"ms-").replace(Q,Y)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Z(){this.expando=S.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[X(e)]=i;else for(n in e)r[X(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][X(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(X):(e=X(e))in n?[e]:e.match(L)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||S.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var J=new Z,K=new Z,tt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,et=/[A-Z]/g;function it(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(et,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:tt.test(t)?JSON.parse(t):t)}(i)}catch(t){}K.set(t,e,i)}else i=void 0;return i}S.extend({hasData:function(t){return K.hasData(t)||J.hasData(t)},data:function(t,e,i){return K.access(t,e,i)},removeData:function(t,e){K.remove(t,e)},_data:function(t,e,i){return J.access(t,e,i)},_removeData:function(t,e){J.remove(t,e)}}),S.fn.extend({data:function(t,e){var i,n,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=K.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=X(n.slice(5)),it(o,n,r[n]));J.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){K.set(this,t)})):$(this,(function(e){var i;if(o&&void 0===e)return void 0!==(i=K.get(o,t))||void 0!==(i=it(o,t))?i:void 0;this.each((function(){K.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){K.remove(this,t)}))}}),S.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=J.get(t,e),i&&(!n||Array.isArray(i)?n=J.access(t,e,S.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=S.queue(t,e),n=i.length,r=i.shift(),o=S._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,(function(){S.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return J.get(t,i)||J.access(t,i,{empty:S.Callbacks("once memory").add((function(){J.remove(t,[e+"queue",i])}))})}}),S.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?S.queue(this[0],t):void 0===e?this:this.each((function(){var i=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&S.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){S.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=S.Deferred(),o=this,s=this.length,a=function(){--n||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=J.get(o[s],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],st=b.documentElement,at=function(t){return S.contains(t.ownerDocument,t)},lt={composed:!0};st.getRootNode&&(at=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(lt)===t.ownerDocument});var ht=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===S.css(t,"display")};function ct(t,e,i,n){var r,o,s=20,a=n?function(){return n.cur()}:function(){return S.css(t,e,"")},l=a(),h=i&&i[3]||(S.cssNumber[e]?"":"px"),c=t.nodeType&&(S.cssNumber[e]||"px"!==h&&+l)&&rt.exec(S.css(t,e));if(c&&c[3]!==h){for(l/=2,h=h||c[3],c=+l||1;s--;)S.style(t,e,c+h),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,S.style(t,e,c+h),i=i||[]}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=h,n.start=c,n.end=r)),r}var ut={};function ft(t){var e,i=t.ownerDocument,n=t.nodeName,r=ut[n];return r||(e=i.body.appendChild(i.createElement(n)),r=S.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),ut[n]=r,r)}function pt(t,e){for(var i,n,r=[],o=0,s=t.length;o<s;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(r[o]=J.get(n,"display")||null,r[o]||(n.style.display="")),""===n.style.display&&ht(n)&&(r[o]=ft(n))):"none"!==i&&(r[o]="none",J.set(n,"display",i)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}S.fn.extend({show:function(){return pt(this,!0)},hide:function(){return pt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ht(this)?S(this).show():S(this).hide()}))}});var dt,gt,mt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,yt=/^$|^module$|\/(?:java|ecma)script/i;dt=b.createDocumentFragment().appendChild(b.createElement("div")),(gt=b.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),dt.appendChild(gt),m.checkClone=dt.cloneNode(!0).cloneNode(!0).lastChild.checked,dt.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!dt.cloneNode(!0).lastChild.defaultValue,dt.innerHTML="<option></option>",m.option=!!dt.lastChild;var bt={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 wt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&A(t,e)?S.merge([t],i):i}function xt(t,e){for(var i=0,n=t.length;i<n;i++)J.set(t[i],"globalEval",!e||J.get(e[i],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,m.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var _t=/<|&#?\w+;/;function kt(t,e,i,n,r){for(var o,s,a,l,h,c,u=e.createDocumentFragment(),f=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if("object"===_(o))S.merge(f,o.nodeType?[o]:o);else if(_t.test(o)){for(s=s||u.appendChild(e.createElement("div")),a=(vt.exec(o)||["",""])[1].toLowerCase(),l=bt[a]||bt._default,s.innerHTML=l[1]+S.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;S.merge(f,s.childNodes),(s=u.firstChild).textContent=""}else f.push(e.createTextNode(o));for(u.textContent="",p=0;o=f[p++];)if(n&&S.inArray(o,n)>-1)r&&r.push(o);else if(h=at(o),s=wt(u.appendChild(o),"script"),h&&xt(s),i)for(c=0;o=s[c++];)yt.test(o.type||"")&&i.push(o);return u}var St=/^([^.]*)(?:\.(.+)|)/;function Ct(){return!0}function Tt(){return!1}function Pt(t,e){return t===function(){try{return b.activeElement}catch(t){}}()==("focus"===e)}function jt(t,e,i,n,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)jt(t,a,i,n,e[a],o);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Tt;else if(!r)return t;return 1===o&&(s=r,r=function(t){return S().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=S.guid++)),t.each((function(){S.event.add(this,e,r,n,i)}))}function Ot(t,e,i){i?(J.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r,o=J.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=a.call(arguments),J.set(this,e,o),n=i(this,e),this[e](),o!==(r=J.get(this,e))||n?J.set(this,e,!1):r={},o!==r)return t.stopImmediatePropagation(),t.preventDefault(),r&&r.value}else o.length&&(J.set(this,e,{value:S.event.trigger(S.extend(o[0],S.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,e)&&S.event.add(t,e,Ct)}S.event={global:{},add:function(t,e,i,n,r){var o,s,a,l,h,c,u,f,p,d,g,m=J.get(t);if(G(t))for(i.handler&&(i=(o=i).handler,r=o.selector),r&&S.find.matchesSelector(st,r),i.guid||(i.guid=S.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(L)||[""]).length;h--;)p=g=(a=St.exec(e[h])||[])[1],d=(a[2]||"").split(".").sort(),p&&(u=S.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=S.event.special[p]||{},c=S.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:d.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,d,s)||t.addEventListener&&t.addEventListener(p,s)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),S.event.global[p]=!0)},remove:function(t,e,i,n,r){var o,s,a,l,h,c,u,f,p,d,g,m=J.hasData(t)&&J.get(t);if(m&&(l=m.events)){for(h=(e=(e||"").match(L)||[""]).length;h--;)if(p=g=(a=St.exec(e[h])||[])[1],d=(a[2]||"").split(".").sort(),p){for(u=S.event.special[p]||{},f=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)c=f[o],!r&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,u.remove&&u.remove.call(t,c));s&&!f.length&&(u.teardown&&!1!==u.teardown.call(t,d,m.handle)||S.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)S.event.remove(t,p+e[h],i,n,!0);S.isEmptyObject(l)&&J.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,o,s,a=new Array(arguments.length),l=S.event.fix(t),h=(J.get(this,"events")||Object.create(null))[l.type]||[],c=S.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=S.event.handlers.call(this,l,h),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((S.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,r,o,s,a=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(o=[],s={},i=0;i<l;i++)void 0===s[r=(n=e[i]).selector+" "]&&(s[r]=n.needsContext?S(r,this).index(h)>-1:S.find(r,this,null,[h]).length),s[r]&&o.push(n);o.length&&a.push({elem:h,handlers:o})}return h=this,l<e.length&&a.push({elem:h,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return mt.test(e.type)&&e.click&&A(e,"input")&&Ot(e,"click",Ct),!1},trigger:function(t){var e=this||t;return mt.test(e.type)&&e.click&&A(e,"input")&&Ot(e,"click"),!0},_default:function(t){var e=t.target;return mt.test(e.type)&&e.click&&A(e,"input")&&J.get(e,"click")||A(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ct:Tt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ct,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ct,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ct,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){S.event.special[t]={setup:function(){return Ot(this,t,Pt),!1},trigger:function(){return Ot(this,t),!0},_default:function(){return!0},delegateType:e}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===n||S.contains(n,r))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}})),S.fn.extend({on:function(t,e,i,n){return jt(this,t,e,i,n)},one:function(t,e,i,n){return jt(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,S(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Tt),this.each((function(){S.event.remove(this,t,i,e)}))}});var At=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,Mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function It(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ht(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ft(t,e){var i,n,r,o,s,a;if(1===e.nodeType){if(J.hasData(t)&&(a=J.get(t).events))for(r in J.remove(e,"handle events"),a)for(i=0,n=a[r].length;i<n;i++)S.event.add(e,r,a[r][i]);K.hasData(t)&&(o=K.access(t),s=S.extend({},o),K.set(e,s))}}function Rt(t,e){var i=e.nodeName.toLowerCase();"input"===i&&mt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function Lt(t,e,i,n){e=l(e);var r,o,s,a,h,c,u=0,f=t.length,p=f-1,d=e[0],g=v(d);if(g||f>1&&"string"==typeof d&&!m.checkClone&&Et.test(d))return t.each((function(r){var o=t.eq(r);g&&(e[0]=d.call(this,r,o.html())),Lt(o,e,i,n)}));if(f&&(o=(r=kt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=o),o||n)){for(a=(s=S.map(wt(r,"script"),Dt)).length;u<f;u++)h=r,u!==p&&(h=S.clone(h,!0,!0),a&&S.merge(s,wt(h,"script"))),i.call(t[u],h,u);if(a)for(c=s[s.length-1].ownerDocument,S.map(s,Ht),u=0;u<a;u++)h=s[u],yt.test(h.type||"")&&!J.access(h,"globalEval")&&S.contains(c,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?S._evalUrl&&!h.noModule&&S._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},c):x(h.textContent.replace(Mt,""),h,c))}return t}function Nt(t,e,i){for(var n,r=e?S.filter(e,t):t,o=0;null!=(n=r[o]);o++)i||1!==n.nodeType||S.cleanData(wt(n)),n.parentNode&&(i&&at(n)&&xt(wt(n,"script")),n.parentNode.removeChild(n));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,o,s,a=t.cloneNode(!0),l=at(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(s=wt(a),n=0,r=(o=wt(t)).length;n<r;n++)Rt(o[n],s[n]);if(e)if(i)for(o=o||wt(t),s=s||wt(a),n=0,r=o.length;n<r;n++)Ft(o[n],s[n]);else Ft(t,a);return(s=wt(a,"script")).length>0&&xt(s,!l&&wt(t,"script")),a},cleanData:function(t){for(var e,i,n,r=S.event.special,o=0;void 0!==(i=t[o]);o++)if(G(i)){if(e=i[J.expando]){if(e.events)for(n in e.events)r[n]?S.event.remove(i,n):S.removeEvent(i,n,e.handle);i[J.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Nt(this,t,!0)},remove:function(t){return Nt(this,t)},text:function(t){return $(this,(function(t){return void 0===t?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Lt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||It(this,t).appendChild(t)}))},prepend:function(){return Lt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=It(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Lt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Lt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(wt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return $(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!At.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(S.cleanData(wt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Lt(this,arguments,(function(e){var i=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(wt(this)),i&&i.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var i,n=[],r=S(t),o=r.length-1,s=0;s<=o;s++)i=s===o?this:this.clone(!0),S(r[s])[e](i),h.apply(n,i.get());return this.pushStack(n)}}));var zt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Wt=function(t,e,i){var n,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=i.call(t),e)t.style[r]=o[r];return n},qt=new RegExp(ot.join("|"),"i");function Ut(t,e,i){var n,r,o,s,a=t.style;return(i=i||Bt(t))&&(""!==(s=i.getPropertyValue(e)||i[e])||at(t)||(s=S.style(t,e)),!m.pixelBoxStyles()&&zt.test(s)&&qt.test(e)&&(n=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=i.width,a.width=n,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function $t(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",st.appendChild(h).appendChild(c);var t=n.getComputedStyle(c);i="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",s=36===e(t.right),r=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),st.removeChild(h),c=null}}function e(t){return Math.round(parseFloat(t))}var i,r,o,s,a,l,h=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,S.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,i,r;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),i=b.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",st.appendChild(t).appendChild(e).appendChild(i),r=n.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,st.removeChild(t)),a}}))}();var Vt=["Webkit","Moz","ms"],Qt=b.createElement("div").style,Yt={};function Xt(t){var e=S.cssProps[t]||Yt[t];return e||(t in Qt?t:Yt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Vt.length;i--;)if((t=Vt[i]+e)in Qt)return t}(t)||t)}var Gt=/^(none|table(?!-c[ea]).+)/,Zt=/^--/,Jt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:"0",fontWeight:"400"};function te(t,e,i){var n=rt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function ee(t,e,i,n,r,o){var s="width"===e?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=S.css(t,i+ot[s],!0,r)),n?("content"===i&&(l-=S.css(t,"padding"+ot[s],!0,r)),"margin"!==i&&(l-=S.css(t,"border"+ot[s]+"Width",!0,r))):(l+=S.css(t,"padding"+ot[s],!0,r),"padding"!==i?l+=S.css(t,"border"+ot[s]+"Width",!0,r):a+=S.css(t,"border"+ot[s]+"Width",!0,r));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l}function ie(t,e,i){var n=Bt(t),r=(!m.boxSizingReliable()||i)&&"border-box"===S.css(t,"boxSizing",!1,n),o=r,s=Ut(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(zt.test(s)){if(!i)return s;s="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&A(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===S.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===S.css(t,"boxSizing",!1,n),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ee(t,e,i||(r?"border":"content"),o,n,s)+"px"}function ne(t,e,i,n,r){return new ne.prototype.init(t,e,i,n,r)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ut(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=X(e),l=Zt.test(e),h=t.style;if(l||(e=Xt(a)),s=S.cssHooks[e]||S.cssHooks[a],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(t,!1,n))?r:h[e];"string"===(o=typeof i)&&(r=rt.exec(i))&&r[1]&&(i=ct(t,e,r),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=r&&r[3]||(S.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),s&&"set"in s&&void 0===(i=s.set(t,i,n))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,n){var r,o,s,a=X(e);return Zt.test(e)||(e=Xt(a)),(s=S.cssHooks[e]||S.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,i)),void 0===r&&(r=Ut(t,e,n)),"normal"===r&&e in Kt&&(r=Kt[e]),""===i||i?(o=parseFloat(r),!0===i||isFinite(o)?o||0:r):r}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,i,n){if(i)return!Gt.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ie(t,e,n):Wt(t,Jt,(function(){return ie(t,e,n)}))},set:function(t,i,n){var r,o=Bt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||n)&&"border-box"===S.css(t,"boxSizing",!1,o),l=n?ee(t,e,n,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ee(t,e,"border",!1,o)-.5)),l&&(r=rt.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=S.css(t,e)),te(0,i,l)}}})),S.cssHooks.marginLeft=$t(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.cssHooks[t+e]={expand:function(i){for(var n=0,r={},o="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+ot[n]+e]=o[n]||o[n-2]||o[0];return r}},"margin"!==t&&(S.cssHooks[t+e].set=te)})),S.fn.extend({css:function(t,e){return $(this,(function(t,e,i){var n,r,o={},s=0;if(Array.isArray(e)){for(n=Bt(t),r=e.length;s<r;s++)o[e[s]]=S.css(t,e[s],!1,n);return o}return void 0!==i?S.style(t,e,i):S.css(t,e)}),t,e,arguments.length>1)}}),S.Tween=ne,ne.prototype={constructor:ne,init:function(t,e,i,n,r,o){this.elem=t,this.prop=i,this.easing=r||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(S.cssNumber[i]?"":"px")},cur:function(){var t=ne.propHooks[this.prop];return t&&t.get?t.get(this):ne.propHooks._default.get(this)},run:function(t){var e,i=ne.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ne.propHooks._default.set(this),this}},ne.prototype.init.prototype=ne.prototype,ne.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[Xt(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},ne.propHooks.scrollTop=ne.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ne.prototype.init,S.fx.step={};var re,oe,se=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function le(){oe&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(le):n.setTimeout(le,S.fx.interval),S.fx.tick())}function he(){return n.setTimeout((function(){re=void 0})),re=Date.now()}function ce(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=ot[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function ue(t,e,i){for(var n,r=(fe.tweeners[e]||[]).concat(fe.tweeners["*"]),o=0,s=r.length;o<s;o++)if(n=r[o].call(i,e,t))return n}function fe(t,e,i){var n,r,o=0,s=fe.prefilters.length,a=S.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=re||he(),i=Math.max(0,h.startTime+h.duration-e),n=1-(i/h.duration||0),o=0,s=h.tweens.length;o<s;o++)h.tweens[o].run(n);return a.notifyWith(t,[h,n,i]),n<1&&s?i:(s||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},i),originalProperties:e,originalOptions:i,startTime:re||he(),duration:i.duration,tweens:[],createTween:function(e,i){var n=S.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(n),n},stop:function(e){var i=0,n=e?h.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)h.tweens[i].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),c=h.props;for(!function(t,e){var i,n,r,o,s;for(i in t)if(r=e[n=X(i)],o=t[i],Array.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(s=S.cssHooks[n])&&"expand"in s)for(i in o=s.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=r);else e[n]=r}(c,h.opts.specialEasing);o<s;o++)if(n=fe.prefilters[o].call(h,t,c,h.opts))return v(n.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ue,h),v(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),S.fx.timer(S.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h}S.Animation=S.extend(fe,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ct(i.elem,t,rt.exec(e),i),i}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(L);for(var i,n=0,r=t.length;n<r;n++)i=t[n],fe.tweeners[i]=fe.tweeners[i]||[],fe.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,r,o,s,a,l,h,c,u="width"in e||"height"in e,f=this,p={},d=t.style,g=t.nodeType&&ht(t),m=J.get(t,"fxshow");for(n in i.queue||(null==(s=S._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always((function(){f.always((function(){s.unqueued--,S.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[n],se.test(r)){if(delete e[n],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||S.style(t,n)}if((l=!S.isEmptyObject(e))||!S.isEmptyObject(p))for(n in u&&1===t.nodeType&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],null==(h=m&&m.display)&&(h=J.get(t,"display")),"none"===(c=S.css(t,"display"))&&(h?c=h:(pt([t],!0),h=t.style.display||h,c=S.css(t,"display"),pt([t]))),("inline"===c||"inline-block"===c&&null!=h)&&"none"===S.css(t,"float")&&(l||(f.done((function(){d.display=h})),null==h&&(c=d.display,h="none"===c?"":c)),d.display="inline-block")),i.overflow&&(d.overflow="hidden",f.always((function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(t,"fxshow",{display:h}),o&&(m.hidden=!g),g&&pt([t],!0),f.done((function(){for(n in g||pt([t]),J.remove(t,"fxshow"),p)S.style(t,n,p[n])}))),l=ue(g?m[n]:0,n,f),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?fe.prefilters.unshift(t):fe.prefilters.push(t)}}),S.speed=function(t,e,i){var n=t&&"object"==typeof t?S.extend({},t):{complete:i||!i&&e||v(t)&&t,duration:t,easing:i&&e||e&&!v(e)&&e};return S.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in S.fx.speeds?n.duration=S.fx.speeds[n.duration]:n.duration=S.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&S.dequeue(this,n.queue)},n},S.fn.extend({fadeTo:function(t,e,i,n){return this.filter(ht).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=S.isEmptyObject(t),o=S.speed(e,i,n),s=function(){var e=fe(this,S.extend({},t),o);(r||J.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=S.timers,s=J.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&ae.test(r)&&n(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(i),e=!1,o.splice(r,1));!e&&i||S.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=J.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],o=S.timers,s=n?n.length:0;for(i.finish=!0,S.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),S.each(["toggle","show","hide"],(function(t,e){var i=S.fn[e];S.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(ce(e,!0),t,n,r)}})),S.each({slideDown:ce("show"),slideUp:ce("hide"),slideToggle:ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){S.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),S.timers=[],S.fx.tick=function(){var t,e=0,i=S.timers;for(re=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||S.fx.stop(),re=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){oe||(oe=!0,le())},S.fx.stop=function(){oe=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var pe,de=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return $(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?S.prop(t,e,i):(1===o&&S.isXMLDoc(t)||(r=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?pe:void 0)),void 0!==i?null===i?void S.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=S.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&A(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(L);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),pe={set:function(t,e,i){return!1===e?S.removeAttr(t,i):t.setAttribute(i,i),i}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=de[e]||S.find.attr;de[e]=function(t,e,n){var r,o,s=e.toLowerCase();return n||(o=de[s],de[s]=r,r=null!=i(t,e,n)?s:null,de[s]=o),r}}));var ge=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function ve(t){return(t.match(L)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function be(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(L)||[]}S.fn.extend({prop:function(t,e){return $(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,i){var n,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(t)||(e=S.propFix[e]||e,r=S.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):ge.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,i,n,r,o,s,a,l=0;if(v(t))return this.each((function(e){S(this).addClass(t.call(this,e,ye(this)))}));if((e=be(t)).length)for(;i=this[l++];)if(r=ye(i),n=1===i.nodeType&&" "+ve(r)+" "){for(s=0;o=e[s++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");r!==(a=ve(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,r,o,s,a,l=0;if(v(t))return this.each((function(e){S(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=be(t)).length)for(;i=this[l++];)if(r=ye(i),n=1===i.nodeType&&" "+ve(r)+" "){for(s=0;o=e[s++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");r!==(a=ve(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):v(t)?this.each((function(i){S(this).toggleClass(t.call(this,i,ye(this),e),e)})):this.each((function(){var e,r,o,s;if(n)for(r=0,o=S(this),s=be(t);e=s[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=ye(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+ve(ye(i))+" ").indexOf(e)>-1)return!0;return!1}});var we=/\r/g;S.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=v(t),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,S(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=S.map(r,(function(t){return null==t?"":t+""}))),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=S.valHooks[r.type]||S.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(we,""):null==i?"":i:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:ve(S.text(t))}},select:{get:function(t){var e,i,n,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(n=o<0?l:s?o:0;n<l;n++)if(((i=r[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!A(i.parentNode,"optgroup"))){if(e=S(i).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var i,n,r=t.options,o=S.makeArray(e),s=r.length;s--;)((n=r[s]).selected=S.inArray(S.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},m.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),m.focusin="onfocusin"in n;var xe=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,i,r){var o,s,a,l,h,c,u,f,d=[i||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(s=f=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!xe.test(g+S.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),h=g.indexOf(":")<0&&"on"+g,(t=t[S.expando]?t:new S.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:S.makeArray(e,[t]),u=S.event.special[g]||{},r||!u.trigger||!1!==u.trigger.apply(i,e))){if(!r&&!u.noBubble&&!y(i)){for(l=u.delegateType||g,xe.test(l+g)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(i.ownerDocument||b)&&d.push(a.defaultView||a.parentWindow||n)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?l:u.bindType||g,(c=(J.get(s,"events")||Object.create(null))[t.type]&&J.get(s,"handle"))&&c.apply(s,e),(c=h&&s[h])&&c.apply&&G(s)&&(t.result=c.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!G(i)||h&&v(i[g])&&!y(i)&&((a=i[h])&&(i[h]=null),S.event.triggered=g,t.isPropagationStopped()&&f.addEventListener(g,_e),i[g](),t.isPropagationStopped()&&f.removeEventListener(g,_e),S.event.triggered=void 0,a&&(i[h]=a)),t.result}},simulate:function(t,e,i){var n=S.extend(new S.Event,i,{type:t,isSimulated:!0});S.event.trigger(n,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return S.event.trigger(t,e,i,!0)}}),m.focusin||S.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=J.access(n,e);r||n.addEventListener(t,i,!0),J.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=J.access(n,e)-1;r?J.access(n,e,r):(n.removeEventListener(t,i,!0),J.remove(n,e))}}}));var ke=n.location,Se={guid:Date.now()},Ce=/\?/;S.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||S.error("Invalid XML: "+(i?S.map(i.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Te=/\[\]$/,Pe=/\r?\n/g,je=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;function Ae(t,e,i,n){var r;if(Array.isArray(e))S.each(e,(function(e,r){i||Te.test(t)?n(t,r):Ae(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)}));else if(i||"object"!==_(e))n(t,e);else for(r in e)Ae(t+"["+r+"]",e[r],i,n)}S.param=function(t,e){var i,n=[],r=function(t,e){var i=v(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,(function(){r(this.name,this.value)}));else for(i in t)Ae(i,t[i],e,r);return n.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Oe.test(this.nodeName)&&!je.test(t)&&(this.checked||!mt.test(t))})).map((function(t,e){var i=S(this).val();return null==i?null:Array.isArray(i)?S.map(i,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:i.replace(Pe,"\r\n")}})).get()}});var Ee=/%20/g,Me=/#.*$/,Ie=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:GET|HEAD)$/,Fe=/^\/\//,Re={},Le={},Ne="*/".concat("*"),ze=b.createElement("a");function Be(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,o=e.toLowerCase().match(L)||[];if(v(i))for(;n=o[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function We(t,e,i,n){var r={},o=t===Le;function s(a){var l;return r[a]=!0,S.each(t[a]||[],(function(t,a){var h=a(e,i,n);return"string"!=typeof h||o||r[h]?o?!(l=h):void 0:(e.dataTypes.unshift(h),s(h),!1)})),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function qe(t,e){var i,n,r=S.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&S.extend(!0,t,n),t}ze.href=ke.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,S.ajaxSettings),e):qe(S.ajaxSettings,t)},ajaxPrefilter:Be(Re),ajaxTransport:Be(Le),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,o,s,a,l,h,c,u,f,p=S.ajaxSetup({},e),d=p.context||p,g=p.context&&(d.nodeType||d.jquery)?S(d):S.event,m=S.Deferred(),v=S.Callbacks("once memory"),y=p.statusCode||{},w={},x={},_="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(h){if(!s)for(s={};e=De.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?o:null},setRequestHeader:function(t,e){return null==h&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==h&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)k.always(t[k.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return i&&i.abort(e),C(0,e),this}};if(m.promise(k),p.url=((t||p.url||ke.href)+"").replace(Fe,ke.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=ze.protocol+"//"+ze.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=S.param(p.data,p.traditional)),We(Re,p,e,k),h)return k;for(u in(c=S.event&&p.global)&&0==S.active++&&S.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!He.test(p.type),r=p.url.replace(Me,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ee,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(Ce.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ie,"$1"),f=(Ce.test(r)?"&":"?")+"_="+Se.guid+++f),p.url=r+f),p.ifModified&&(S.lastModified[r]&&k.setRequestHeader("If-Modified-Since",S.lastModified[r]),S.etag[r]&&k.setRequestHeader("If-None-Match",S.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ne+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(d,k,p)||h))return k.abort();if(_="abort",v.add(p.complete),k.done(p.success),k.fail(p.error),i=We(Le,p,e,k)){if(k.readyState=1,c&&g.trigger("ajaxSend",[k,p]),h)return k;p.async&&p.timeout>0&&(a=n.setTimeout((function(){k.abort("timeout")}),p.timeout));try{h=!1,i.send(w,C)}catch(t){if(h)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,s,l){var u,f,b,w,x,_=e;h||(h=!0,a&&n.clearTimeout(a),i=void 0,o=l||"",k.readyState=t>0?4:0,u=t>=200&&t<300||304===t,s&&(w=function(t,e,i){for(var n,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)o=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,k,s)),!u&&S.inArray("script",p.dataTypes)>-1&&S.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(t,e,i,n){var r,o,s,a,l,h={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)h[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=h[l+" "+o]||h["* "+o]))for(r in h)if((a=r.split(" "))[1]===o&&(s=h[l+" "+a[0]]||h["* "+a[0]])){!0===s?s=h[r]:!0!==h[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,w,k,u),u?(p.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(S.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(S.etag[r]=x)),204===t||"HEAD"===p.type?_="nocontent":304===t?_="notmodified":(_=w.state,f=w.data,u=!(b=w.error))):(b=_,!t&&_||(_="error",t<0&&(t=0))),k.status=t,k.statusText=(e||_)+"",u?m.resolveWith(d,[f,_,k]):m.rejectWith(d,[k,_,b]),k.statusCode(y),y=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[k,p,u?f:b]),v.fireWith(d,[k,_]),c&&(g.trigger("ajaxComplete",[k,p]),--S.active||S.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,i){return S.get(t,e,i,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,i,n,r){return v(i)&&(r=r||n,n=i,i=void 0),S.ajax(S.extend({url:t,type:e,dataType:r,data:i,success:n},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,i){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,i)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(i){S(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},$e=S.ajaxSettings.xhr();m.cors=!!$e&&"withCredentials"in $e,m.ajax=$e=!!$e,S.ajaxTransport((function(t){var e,i;if(m.cors||$e&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ue[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=S("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ve,Qe=[],Ye=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Qe.pop()||S.expando+"_"+Se.guid++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",(function(t,e,i){var r,o,s,a=!1!==t.jsonp&&(Ye.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ye,"$1"+r):!1!==t.jsonp&&(t.url+=(Ce.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||S.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always((function(){void 0===o?S(n).removeProp(r):n[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,Qe.push(r)),s&&v(o)&&o(s[0]),s=o=void 0})),"script"})),m.createHTMLDocument=((Ve=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ve.childNodes.length),S.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(m.createHTMLDocument?((n=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(n)):e=b),o=!i&&[],(r=E.exec(t))?[e.createElement(r[1])]:(r=kt([t],e,o),o&&o.length&&S(o).remove(),S.merge([],r.childNodes)));var n,r,o},S.fn.load=function(t,e,i){var n,r,o,s=this,a=t.indexOf(" ");return a>-1&&(n=ve(t.slice(a)),t=t.slice(0,a)),v(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&S.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(n?S("<div>").append(S.parseHTML(t)).find(n):t)})).always(i&&function(t,e){s.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,(function(e){return t===e.elem})).length},S.offset={setOffset:function(t,e,i){var n,r,o,s,a,l,h=S.css(t,"position"),c=S(t),u={};"static"===h&&(t.style.position="relative"),a=c.offset(),o=S.css(t,"top"),l=S.css(t,"left"),("absolute"===h||"fixed"===h)&&(o+l).indexOf("auto")>-1?(s=(n=c.position()).top,r=n.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,i,S.extend({},a))),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+r),"using"in e?e.using.call(t,u):c.css(u)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){S.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===S.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),r.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-S.css(n,"marginTop",!0),left:e.left-r.left-S.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||st}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;S.fn[t]=function(n){return $(this,(function(t,n,r){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:r,i?r:o.pageYOffset):t[n]=r}),t,n,arguments.length)}})),S.each(["top","left"],(function(t,e){S.cssHooks[e]=$t(m.pixelPosition,(function(t,i){if(i)return i=Ut(t,e),zt.test(i)?S(t).position()[e]+"px":i}))})),S.each({Height:"height",Width:"width"},(function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){S.fn[n]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===o?"margin":"border");return $(this,(function(e,i,r){var o;return y(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?S.css(e,i,a):S.style(e,i,r,a)}),e,s?r:void 0,s)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){S.fn[e]=function(t){return this.on(e,t)}})),S.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.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(t,e){S.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var Xe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),v(t))return n=a.call(arguments,2),r=function(){return t.apply(e||this,n.concat(a.call(arguments)))},r.guid=t.guid=t.guid||S.guid++,r},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=v,S.isWindow=y,S.camelCase=X,S.type=_,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(Xe,"")},void 0===(i=function(){return S}.apply(e,[]))||(t.exports=i);var Ge=n.jQuery,Ze=n.$;return S.noConflict=function(t){return n.$===S&&(n.$=Ze),t&&n.jQuery===S&&(n.jQuery=Ge),S},void 0===r&&(n.jQuery=n.$=S),S}))},1989:function(t,e,i){var n=i(1789),r=i(401),o=i(7667),s=i(1327),a=i(1866);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},8407:function(t,e,i){var n=i(7040),r=i(4125),o=i(2117),s=i(7518),a=i(3399);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},7071:function(t,e,i){var n=i(852)(i(5639),"Map");t.exports=n},3369:function(t,e,i){var n=i(4785),r=i(6415),o=i(6e3),s=i(9916),a=i(5265);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},2705:function(t,e,i){var n=i(5639).Symbol;t.exports=n},9932:function(t){t.exports=function(t,e){for(var i=-1,n=null==t?0:t.length,r=Array(n);++i<n;)r[i]=e(t[i],i,t);return r}},4865:function(t,e,i){var n=i(9465),r=i(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,i){var s=t[e];o.call(t,e)&&r(s,i)&&(void 0!==i||e in t)||n(t,e,i)}},8470:function(t,e,i){var n=i(7813);t.exports=function(t,e){for(var i=t.length;i--;)if(n(t[i][0],e))return i;return-1}},9465:function(t,e,i){var n=i(8777);t.exports=function(t,e,i){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}},7786:function(t,e,i){var n=i(1811),r=i(327);t.exports=function(t,e){for(var i=0,o=(e=n(e,t)).length;null!=t&&i<o;)t=t[r(e[i++])];return i&&i==o?t:void 0}},4239:function(t,e,i){var n=i(2705),r=i(9607),o=i(2333),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?r(t):o(t)}},8458:function(t,e,i){var n=i(3560),r=i(5346),o=i(3218),s=i(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,h=Object.prototype,c=l.toString,u=h.hasOwnProperty,f=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||r(t))&&(n(t)?f:a).test(s(t))}},611:function(t,e,i){var n=i(4865),r=i(1811),o=i(5776),s=i(3218),a=i(327);t.exports=function(t,e,i,l){if(!s(t))return t;for(var h=-1,c=(e=r(e,t)).length,u=c-1,f=t;null!=f&&++h<c;){var p=a(e[h]),d=i;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(h!=u){var g=f[p];void 0===(d=l?l(g,p,f):void 0)&&(d=s(g)?g:o(e[h+1])?[]:{})}n(f,p,d),f=f[p]}return t}},531:function(t,e,i){var n=i(2705),r=i(9932),o=i(1469),s=i(3448),a=n?n.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return r(e,t)+"";if(s(e))return l?l.call(e):"";var i=e+"";return"0"==i&&1/e==-Infinity?"-0":i}},1811:function(t,e,i){var n=i(1469),r=i(5403),o=i(5514),s=i(9833);t.exports=function(t,e){return n(t)?t:r(t,e)?[t]:o(s(t))}},4429:function(t,e,i){var n=i(5639)["__core-js_shared__"];t.exports=n},8777:function(t,e,i){var n=i(852),r=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},1957:function(t,e,i){var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;t.exports=n},5050:function(t,e,i){var n=i(7019);t.exports=function(t,e){var i=t.__data__;return n(e)?i["string"==typeof e?"string":"hash"]:i.map}},852:function(t,e,i){var n=i(8458),r=i(7801);t.exports=function(t,e){var i=r(t,e);return n(i)?i:void 0}},9607:function(t,e,i){var n=i(2705),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),i=t[a];try{t[a]=void 0;var n=!0}catch(t){}var r=s.call(t);return n&&(e?t[a]=i:delete t[a]),r}},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},1789:function(t,e,i){var n=i(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:function(t,e,i){var n=i(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return r.call(e,t)?e[t]:void 0}},1327:function(t,e,i){var n=i(4536),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:r.call(e,t)}},1866:function(t,e,i){var n=i(4536);t.exports=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,i){var n=typeof t;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<i}},5403:function(t,e,i){var n=i(1469),r=i(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!r(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},7019:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:function(t,e,i){var n,r=i(4429),o=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!o&&o in t}},7040:function(t){t.exports=function(){this.__data__=[],this.size=0}},4125:function(t,e,i){var n=i(8470),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,i=n(e,t);return!(i<0)&&(i==e.length-1?e.pop():r.call(e,i,1),--this.size,!0)}},2117:function(t,e,i){var n=i(8470);t.exports=function(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]}},7518:function(t,e,i){var n=i(8470);t.exports=function(t){return n(this.__data__,t)>-1}},3399:function(t,e,i){var n=i(8470);t.exports=function(t,e){var i=this.__data__,r=n(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}},4785:function(t,e,i){var n=i(1989),r=i(8407),o=i(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}},6415:function(t,e,i){var n=i(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:function(t,e,i){var n=i(5050);t.exports=function(t){return n(this,t).get(t)}},9916:function(t,e,i){var n=i(5050);t.exports=function(t){return n(this,t).has(t)}},5265:function(t,e,i){var n=i(5050);t.exports=function(t,e){var i=n(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}},4523:function(t,e,i){var n=i(8306);t.exports=function(t){var e=n(t,(function(t){return 500===i.size&&i.clear(),t})),i=e.cache;return e}},4536:function(t,e,i){var n=i(852)(Object,"create");t.exports=n},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:function(t,e,i){var n=i(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();t.exports=o},5514:function(t,e,i){var n=i(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,i,n,r){e.push(n?r.replace(o,"$1"):i||t)})),e}));t.exports=s},327:function(t,e,i){var n=i(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},346:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},7361:function(t,e,i){var n=i(7786);t.exports=function(t,e,i){var r=null==t?void 0:n(t,e);return void 0===r?i:r}},1469:function(t){var e=Array.isArray;t.exports=e},3560:function(t,e,i){var n=i(4239),r=i(3218);t.exports=function(t){if(!r(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3448:function(t,e,i){var n=i(4239),r=i(7005);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==n(t)}},8306:function(t,e,i){var n=i(3369);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=e?e.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var s=t.apply(this,n);return i.cache=o.set(r,s)||o,s};return i.cache=new(r.Cache||n),i}r.Cache=n,t.exports=r},6968:function(t,e,i){var n=i(611);t.exports=function(t,e,i){return null==t?t:n(t,e,i)}},9833:function(t,e,i){var n=i(531);t.exports=function(t){return null==t?"":n(t)}},7574:function(t,e,i){"use strict";var n=i(9995),r=function(t,e){if(e&&e.bbox)return{leaf:e,x:e.bbox[0],y:e.bbox[1],w:e.bbox[2]-e.bbox[0],h:e.bbox[3]-e.bbox[1]};for(var i=t.length,n=0,r=new Array(i);n<i;)r[n]=[t[n][0],t[n][1]],n++;var o=r[0];i=r.length,n=1;for(var s={min:[].concat(o),max:[].concat(o)};n<i;)r[n][0]<s.min[0]?s.min[0]=r[n][0]:r[n][0]>s.max[0]&&(s.max[0]=r[n][0]),r[n][1]<s.min[1]?s.min[1]=r[n][1]:r[n][1]>s.max[1]&&(s.max[1]=r[n][1]),n++;var a={x:s.min[0],y:s.min[1],w:s.max[0]-s.min[0],h:s.max[1]-s.min[1]};return e&&(a.leaf=e),a},o={point:function(t,e){return e.insertSubtree({x:t.geometry.coordinates[0],y:t.geometry.coordinates[1],w:0,h:0,leaf:t},e.root)},multiPointLineString:function(t,e){return e.insertSubtree(r(t.geometry.coordinates,t),e.root)},multiLineStringPolygon:function(t,e){return e.insertSubtree(r(Array.prototype.concat.apply([],t.geometry.coordinates),t),e.root)},multiPolygon:function(t,e){return e.insertSubtree(r(Array.prototype.concat.apply([],Array.prototype.concat.apply([],t.geometry.coordinates)),t),e.root)},makeRec:function(t){return n(t.x,t.y,t.w,t.h)},geometryCollection:function(t,e){if(t.bbox)return e.insertSubtree({leaf:t,x:t.bbox[0],y:t.bbox[1],w:t.bbox[2]-t.bbox[0],h:t.bbox[3]-t.bbox[1]},e.root);for(var i,n=t.geometry.geometries,s=0,a=n.length,l=[];s<a;){switch((i=n[s]).type){case"Point":l.push(o.makeRec({x:i.coordinates[0],y:i.coordinates[1],w:0,h:0}));break;case"MultiPoint":case"LineString":l.push(o.makeRec(r(i.coordinates)));break;case"MultiLineString":case"Polygon":l.push(o.makeRec(r(Array.prototype.concat.apply([],i.coordinates))));break;case"MultiPolygon":l.push(o.makeRec(r(Array.prototype.concat.apply([],Array.prototype.concat.apply([],i.coordinates)))));break;case"GeometryCollection":a=(n=n.concat(i.geometries)).length}s++}var h=l[0];for(s=1,a=l.length;s<a;)h.expand(l[s]),s++;return e.insertSubtree({leaf:t,x:h.x(),y:h.y(),h:h.h(),w:h.w()},e.root)}};e.geoJSON=function(t){var e,i,n=this;if(Array.isArray(t))e=t.slice();else if(t.features&&Array.isArray(t.features))e=t.features.slice();else{if(!(t instanceof Object))throw"this isn't what we're looking for";e=[t]}for(var r=e.length,s=0;s<r;){if("Feature"===(i=e[s]).type)switch(i.geometry.type){case"Point":o.point(i,n);break;case"MultiPoint":case"LineString":o.multiPointLineString(i,n);break;case"MultiLineString":case"Polygon":o.multiLineStringPolygon(i,n);break;case"MultiPolygon":o.multiPolygon(i,n);break;case"GeometryCollection":o.geometryCollection(i,n)}s++}},e.bbox=function(){var t,e,i,n;switch(arguments.length){case 1:t=arguments[0][0][0],e=arguments[0][0][1],i=arguments[0][1][0],n=arguments[0][1][1];break;case 2:t=arguments[0][0],e=arguments[0][1],i=arguments[1][0],n=arguments[1][1];break;case 4:t=arguments[0],e=arguments[1],i=arguments[2],n=arguments[3]}return this.search({x:t,y:e,w:i-t,h:n-e})}},702:function(t,e,i){"use strict";var n=i(623),r=i(7574);n.prototype.bbox=r.bbox,n.prototype.geoJSON=r.geoJSON,n.Rectangle=i(9995),t.exports=n},9995:function(t){"use strict";function e(t,i,n,r){if(!(this instanceof e))return new e(t,i,n,r);var o,s,a;t.x?(n=t.w,r=t.h,i=t.y,0!==t.w&&!t.w&&t.x2?(n=t.x2-t.x,r=t.y2-t.y):(n=t.w,r=t.h),t=t.x,o=t+n,s=i+r,a=!(r+n)):(o=t+n,s=i+r,a=!(r+n)),this.x1=this.x=function(){return t},this.y1=this.y=function(){return i},this.x2=function(){return o},this.y2=function(){return s},this.w=function(){return n},this.h=function(){return r},this.p=function(){return a},this.overlap=function(e){return a||e.p()?t<=e.x2()&&o>=e.x()&&i<=e.y2()&&s>=e.y():t<e.x2()&&o>e.x()&&i<e.y2()&&s>e.y()},this.expand=function(e){var a,l,h=e.x(),c=e.y(),u=e.x2(),f=e.y2();return a=t>h?h:t,l=i>c?c:i,n=o>u?o-a:u-a,r=s>f?s-l:f-l,t=a,i=l,this}}e.overlapRectangle=function(t,e){return 0===t.h&&0===t.w||0===e.h&&0===e.w?t.x<=e.x+e.w&&t.x+t.w>=e.x&&t.y<=e.y+e.h&&t.y+t.h>=e.y:t.x<e.x+e.w&&t.x+t.w>e.x&&t.y<e.y+e.h&&t.y+t.h>e.y},e.containsRectangle=function(t,e){return t.x+t.w<=e.x+e.w&&t.x>=e.x&&t.y+t.h<=e.y+e.h&&t.y>=e.y},e.expandRectangle=function(t,e){var i,n,r=t.x+t.w,o=e.x+e.w,s=t.y+t.h,a=e.y+e.h;return i=t.x>e.x?e.x:t.x,n=t.y>e.y?e.y:t.y,t.w=r>o?r-i:o-i,t.h=s>a?s-n:a-n,t.x=i,t.y=n,t},e.makeMBR=function(t,i){if(!t.length)return{x:0,y:0,w:0,h:0};(i=i||{}).x=t[0].x,i.y=t[0].y,i.w=t[0].w,i.h=t[0].h;for(var n=1,r=t.length;n<r;n++)e.expandRectangle(i,t[n]);return i},e.squarifiedRatio=function(t,e,i){var n=(t+e)/2,r=t*e;return r*i/(r/(n*n))},t.exports=e},623:function(t,e,i){"use strict";var n=i(9995);function r(t){if(!(this instanceof r))return new r(t);var e=3,i=6;isNaN(t)||(e=Math.floor(t/2),i=t);var o={x:0,y:0,w:0,h:0,id:"root",nodes:[]};this.root=o;var s=function(t){for(var e,i=t.slice(),n=[];i.length;)(e=i.pop()).nodes?i=i.concat(e.nodes):e.leaf&&n.push(e);return n},a=function(t,i,r){var o,a,l,h=[],c=[],p=[];if(!t||!n.overlapRectangle(t,r))return p;var d={x:t.x,y:t.y,w:t.w,h:t.h,target:i};for(c.push(r.nodes.length),h.push(r);h.length>0;){if(o=h.pop(),a=c.pop()-1,"target"in d)for(;a>=0;){if(l=o.nodes[a],n.overlapRectangle(d,l)){if(d.target&&"leaf"in l&&l.leaf===d.target||!d.target&&("leaf"in l||n.containsRectangle(l,d))){p="nodes"in l?s(o.nodes.splice(a,1)):o.nodes.splice(a,1),n.makeMBR(o.nodes,o),delete d.target;break}"nodes"in l&&(c.push(a),h.push(o),o=l,a=l.nodes.length)}a--}else if("nodes"in d){o.nodes.splice(a+1,1),o.nodes.length>0&&n.makeMBR(o.nodes,o);for(var g=0;g<d.nodes.length;g++)f(d.nodes[g],o);d.nodes=[],0===h.length&&o.nodes.length<=1?(d.nodes=u(o,!0,d.nodes,o),o.nodes=[],h.push(o),c.push(1)):h.length>0&&o.nodes.length<e?(d.nodes=u(o,!0,d.nodes,o),o.nodes=[]):delete d.nodes}else n.makeMBR(o.nodes,o);1}return p},l=function(t){for(var e=c(t);t.length>0;)h(t,e[0],e[1]);return e},h=function(t,i,r){for(var o,s,a,l=n.squarifiedRatio(i.w,i.h,i.nodes.length+1),h=n.squarifiedRatio(r.w,r.h,r.nodes.length+1),c=t.length-1;c>=0;c--){var u=t[c],f={};f.x=Math.min(i.x,u.x),f.y=Math.min(i.y,u.y),f.w=Math.max(i.x+i.w,u.x+u.w)-f.x,f.h=Math.max(i.y+i.h,u.y+u.h)-f.y;var p=Math.abs(n.squarifiedRatio(f.w,f.h,i.nodes.length+2)-l),d={};d.x=Math.min(r.x,u.x),d.y=Math.min(r.y,u.y),d.w=Math.max(r.x+r.w,u.x+u.w)-d.x,d.h=Math.max(r.y+r.h,u.y+u.h)-d.y;var g=Math.abs(n.squarifiedRatio(d.w,d.h,r.nodes.length+2)-h);(!s||!o||Math.abs(g-p)<o)&&(s=c,o=Math.abs(g-p),a=g<p?r:i)}var m=t.splice(s,1)[0];i.nodes.length+t.length+1<=e?(i.nodes.push(m),n.expandRectangle(i,m)):r.nodes.length+t.length+1<=e?(r.nodes.push(m),n.expandRectangle(r,m)):(a.nodes.push(m),n.expandRectangle(a,m))},c=function(t){for(var e,i,n=t.length-1,r=0,o=t.length-1,s=0,a=t.length-2;a>=0;a--){var l=t[a];l.x>t[r].x?r=a:l.x+l.w<t[n].x+t[n].w&&(n=a),l.y>t[s].y?s=a:l.y+l.h<t[o].y+t[o].h&&(o=a)}return Math.abs(t[n].x+t[n].w-t[r].x)>Math.abs(t[o].y+t[o].h-t[s].y)?n>r?(e=t.splice(n,1)[0],i=t.splice(r,1)[0]):(i=t.splice(r,1)[0],e=t.splice(n,1)[0]):o>s?(e=t.splice(o,1)[0],i=t.splice(s,1)[0]):(i=t.splice(s,1)[0],e=t.splice(o,1)[0]),[{x:e.x,y:e.y,w:e.w,h:e.h,nodes:[e]},{x:i.x,y:i.y,w:i.w,h:i.h,nodes:[i]}]},u=function(t,e,i,r){var o=[];if(!n.overlapRectangle(t,r))return i;for(o.push(r.nodes);o.length>0;)for(var s=o.pop(),a=s.length-1;a>=0;a--){var l=s[a];n.overlapRectangle(t,l)&&("nodes"in l?o.push(l.nodes):"leaf"in l&&(e?i.push(l):i.push(l.leaf)))}return i},f=function(t,e){var r;if(0===e.nodes.length)return e.x=t.x,e.y=t.y,e.w=t.w,e.h=t.h,void e.nodes.push(t);for(var o,s=function(t,e){var i,r=-1,o=[],s=!0;o.push(e);for(var a=e.nodes;s||-1!==r;){s?s=!1:(o.push(a[r]),a=a[r].nodes,r=-1);for(var l=a.length-1;l>=0;l--){var h=a[l];if("leaf"in h){r=-1;break}var c=n.squarifiedRatio(h.w,h.h,h.nodes.length+1),u=Math.max(h.x+h.w,t.x+t.w)-Math.min(h.x,t.x),f=Math.max(h.y+h.h,t.y+t.h)-Math.min(h.y,t.y),p=n.squarifiedRatio(u,f,h.nodes.length+2);(r<0||Math.abs(p-c)<i)&&(i=Math.abs(p-c),r=l)}}return o}(t,e),a=t;s.length>0;){if(r&&"nodes"in r&&0===r.nodes.length){o=r,r=s.pop();for(var h=0;h<r.nodes.length;h++)if(r.nodes[h]===o||0===r.nodes[h].nodes.length){r.nodes.splice(h,1);break}}else r=s.pop();if("leaf"in a||"nodes"in a||Array.isArray(a)){if(Array.isArray(a)){for(var c=0;c<a.length;c++)n.expandRectangle(r,a[c]);r.nodes=r.nodes.concat(a)}else n.expandRectangle(r,a),r.nodes.push(a);if(r.nodes.length<=i)a={x:r.x,y:r.y,w:r.w,h:r.h};else{var u=l(r.nodes);a=u,s.length<1&&(r.nodes.push(u[0]),s.push(r),a=u[1])}}else n.expandRectangle(r,a),a={x:r.x,y:r.y,w:r.w,h:r.h}}};this.insertSubtree=f,this.getTree=function(){return o},this.setTree=function(t,e){return e||(e=o),n=t,(i=e).nodes=n.nodes,i.x=n.x,i.y=n.y,i.w=n.w,i.h=n.h,i;var i,n},this.search=function(t,e,i){return u(t,e,i=i||[],o)};this.remove=function(t,e){return e&&"function"!=typeof e?function(t,e){return a(t,e,o)}(t,e):function(t){for(var e,i=1,n=[];i>0;)i=(e=a(t,!1,o)).length,n=n.concat(e);return n}(t)},this.insert=function(t,e){return f({x:t.x,y:t.y,w:t.w,h:t.h,leaf:e},o)}}r.prototype.toJSON=function(t){return JSON.stringify(this.root,!1,t)},r.fromJSON=function(t){var e=new r;return e.setTree(JSON.parse(t)),e},t.exports=r,"function"!=typeof Array.isArray&&(Array.isArray=function(t){return"object"==typeof t&&"[object Array]"==={}.toString.call(t)})},3473:function(t,e,i){var n={"./Controller.js":7145,"./Controller/Sequence.js":8455,"./Controller/Stranded.js":7905,"./Model.js":4637,"./Model/File.js":2122,"./Model/File/BAM.js":8350,"./Model/File/BED.js":4475,"./Model/File/GFF.js":7699,"./Model/File/VCF.js":2743,"./Model/File/WIG.js":9486,"./Model/Gene.js":432,"./Model/Gene/Ensembl.js":2865,"./Model/Sequence.js":2051,"./Model/Sequence/Ensembl.js":8583,"./Model/Sequence/Fasta.js":8970,"./Model/SequenceVariation.js":4914,"./Model/Stranded.js":6637,"./Model/Transcript.js":9875,"./Model/Transcript/Ensembl.js":3814,"./View.js":4112,"./View/Gene.js":5600,"./View/Gene/Ensembl.js":1766,"./View/Sequence.js":2703,"./View/SequenceVariation.js":3224,"./View/Transcript.js":521,"./View/Transcript/Ensembl.js":6006,"./library/Chromosome.js":5337,"./library/File.js":3911,"./library/File/BAM.js":4448,"./library/File/BED.js":4149,"./library/File/BIGBED.js":617,"./library/File/BIGWIG.js":9658,"./library/File/GFF.js":8428,"./library/File/VCF.js":1055,"./library/File/WIG.js":8915,"./library/Gene.js":1839,"./library/Graph.js":8944,"./library/Graph/Bar.js":4176,"./library/Graph/Line.js":4989,"./library/HighlightRegion.js":7110,"./library/Legend.js":2694,"./library/Scalebar.js":6427,"./library/Scaleline.js":7450,"./library/Static.js":4925,"./library/dbSNP.js":7371};function r(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id=3473},7505:function(t,e,i){var n={"./grch37":[7842,842],"./grch37.js":[7842,842],"./grch38":[2893,893],"./grch38.js":[2893,893]};function r(t){if(!i.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],r=e[0];return i.e(e[1]).then((function(){return i(r)}))}r.keys=function(){return Object.keys(n)},r.id=7505,t.exports=r},1008:function(){var t;(t=jQuery).fn.mousehold=function(e,i){if(e&&"function"==typeof e&&(i=e,e=100),i&&"function"==typeof i){var n=0,r=0;return this.each((function(){t(this).mousedown((function(){r=1;var t=0,o=this;n=setInterval((function(){t++,i.call(o,t),r=2}),e)}));var o=function(){clearInterval(n),1==r&&i.call(this,1),r=0};t(this).mouseout(o),t(this).mouseup(o)}))}}},9813:function(){!function(t){var e=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var i=e.length;i;)t.event.fixHooks[e[--i]]=t.event.mouseHooks;function n(e){var i=e||window.event,n=[].slice.call(arguments,1),r=0,o=0,s=0;return(e=t.event.fix(i)).type="mousewheel",i.wheelDelta&&(r=i.wheelDelta/120),i.detail&&(r=-i.detail/3),s=r,void 0!==i.axis&&i.axis===i.HORIZONTAL_AXIS&&(s=0,o=-1*r),void 0!==i.wheelDeltaY&&(s=i.wheelDeltaY/120),void 0!==i.wheelDeltaX&&(o=-1*i.wheelDeltaX/120),n.unshift(e,r,o,s),(t.event.dispatch||t.event.handle).apply(this,n)}t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=e.length;t;)this.addEventListener(e[--t],n,!1);else this.onmousewheel=n},teardown:function(){if(this.removeEventListener)for(var t=e.length;t;)this.removeEventListener(e[--t],n,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery)},948:function(){!function(t){function e(t,e){return"function"==typeof t?t.call(e):t}function i(e,i){this.$element=t(e),this.options=i,this.enabled=!0,this.fixTitle()}i.prototype={show:function(){var i=this.getTitle();if(i&&this.enabled){var n=this.tip();n.find(".tipsy-inner")[this.options.html?"html":"text"](i),n[0].className="tipsy",n.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var r,o=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),s=n[0].offsetWidth,a=n[0].offsetHeight,l=e(this.options.gravity,this.$element[0]);switch(l.charAt(0)){case"n":r={top:o.top+o.height+this.options.offset,left:o.left+o.width/2-s/2};break;case"s":r={top:o.top-a-this.options.offset,left:o.left+o.width/2-s/2};break;case"e":r={top:o.top+o.height/2-a/2,left:o.left-s-this.options.offset};break;case"w":r={top:o.top+o.height/2-a/2,left:o.left+o.width+this.options.offset}}2==l.length&&("w"==l.charAt(1)?r.left=o.left+o.width/2-15:r.left=o.left+o.width/2-s+15),n.css(r).addClass("tipsy-"+l),n.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+l.charAt(0),this.options.className&&n.addClass(e(this.options.className,this.$element[0])),this.options.fade?n.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):n.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut((function(){t(this).remove()})):this.tip().remove()},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title")},getTitle:function(){var t,e=this.$element,i=this.options;return this.fixTitle(),"string"==typeof(i=this.options).title?t=e.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(t=i.title.call(e[0])),(t=(""+t).replace(/(^\s*|\s*$)/,""))||i.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(e){if(!0===e)return this.data("tipsy");if("string"==typeof e){var n=this.data("tipsy");return n&&n[e](),this}function r(n){var r=t.data(n,"tipsy");return r||(r=new i(n,t.fn.tipsy.elementOptions(n,e)),t.data(n,"tipsy",r)),r}if((e=t.extend({},t.fn.tipsy.defaults,e)).live||this.each((function(){r(this)})),"manual"!=e.trigger){var o=e.live?"live":"bind",s="hover"==e.trigger?"mouseenter":"focus",a="hover"==e.trigger?"mouseleave":"blur";this[o](s,(function(){var t=r(this);t.hoverState="in",0==e.delayIn?t.show():(t.fixTitle(),setTimeout((function(){"in"==t.hoverState&&t.show()}),e.delayIn))}))[o](a,(function(){var t=r(this);t.hoverState="out",0==e.delayOut?t.hide():setTimeout((function(){"out"==t.hoverState&&t.hide()}),e.delayOut)}))}return this},t.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},t.fn.tipsy.revalidate=function(){t(".tipsy").each((function(){var e=t.data(this,"tipsy-pointee");e&&function(t){for(;t=t.parentNode;)if(t==document)return!0;return!1}(e)||t(this).remove()}))},t.fn.tipsy.elementOptions=function(e,i){return t.metadata?t.extend({},i,t(e).metadata()):i},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(e,i){return function(){var n={ns:i[0],ew:i.length>1&&i[1]},r=t(document).scrollTop()+e,o=t(document).scrollLeft()+e,s=t(this);return s.offset().top<r&&(n.ns="n"),s.offset().left<o&&(n.ew="w"),t(window).width()+t(document).scrollLeft()-s.offset().left<e&&(n.ew="e"),t(window).height()+t(document).scrollTop()-s.offset().top<e&&(n.ns="s"),n.ns+(n.ew?n.ew:"")}}}(jQuery)},6772:function(t,e,i){var n={"./jquery.mousehold.js":1008,"./jquery.mousewheel.js":9813,"./jquery.tipsy.js":948};function r(t){var e=o(t);return i(e)}function o(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id=6772},1152:function(t,e,i){var n={"./controlPanel":[1804,804,729],"./controlPanel.js":[1804,804,729],"./fileDrop":[5014,469],"./fileDrop.js":[5014,469],"./focusRegion":[58,804,952],"./focusRegion.js":[58,804,952],"./fullscreen":[1398,804,129],"./fullscreen.js":[1398,804,129],"./karyotype":[4394,394],"./karyotype.js":[4394,394],"./resizer":[2530,530],"./resizer.js":[2530,530],"./tooltips":[3968,804,949],"./tooltips.js":[3968,804,949],"./trackControls":[4232,232],"./trackControls.js":[4232,232]};function r(t){if(!i.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],r=e[0];return Promise.all(e.slice(1).map(i.e)).then((function(){return i(r)}))}r.keys=function(){return Object.keys(n)},r.id=1152,t.exports=r}},o={};function s(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return r[t].call(i.exports,i,i.exports,s),i.exports}s.m=r,s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},s.d=function(t,e){for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce((function(e,i){return s.f[i](t,e),e}),[]))},s.u=function(t){return t+".genoverse.js"},s.miniCssF=function(t){return t+".css"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="genoverse:",s.l=function(i,n,r,o){if(t[i])t[i].push(n);else{var a,l;if(void 0!==r)for(var h=document.getElementsByTagName("script"),c=0;c<h.length;c++){var u=h[c];if(u.getAttribute("src")==i||u.getAttribute("data-webpack")==e+r){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",e+r),a.src=i),t[i]=[n];var f=function(e,n){a.onerror=a.onload=null,clearTimeout(p);var r=t[i];if(delete t[i],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(t){return t(n)})),e)return e(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");i.length&&(t=i[i.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t}(),i=function(t){return new Promise((function(e,i){var n=s.miniCssF(t),r=s.p+n;if(function(t,e){for(var i=document.getElementsByTagName("link"),n=0;n<i.length;n++){var r=(s=i[n]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===t||r===e))return s}var o=document.getElementsByTagName("style");for(n=0;n<o.length;n++){var s;if((r=(s=o[n]).getAttribute("data-href"))===t||r===e)return s}}(n,r))return e();!function(t,e,i,n){var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",r.onerror=r.onload=function(o){if(r.onerror=r.onload=null,"load"===o.type)i();else{var s=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.href||e,l=new Error("Loading CSS chunk "+t+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,r.parentNode.removeChild(r),n(l)}},r.href=e,document.head.appendChild(r)}(t,r,e,i)}))},n={179:0},s.f.miniCss=function(t,e){n[t]?e.push(n[t]):0!==n[t]&&{129:1,166:1,216:1,232:1,394:1,469:1,530:1,547:1,729:1,949:1,952:1}[t]&&e.push(n[t]=i(t).then((function(){n[t]=0}),(function(e){throw delete n[t],e})))},function(){var t={179:0};s.f.j=function(e,i){var n=s.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else if(/^(216|729)$/.test(e))t[e]=0;else{var r=new Promise((function(i,r){n=t[e]=[i,r]}));i.push(n[2]=r);var o=s.p+s.u(e),a=new Error;s.l(o,(function(i){if(s.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var r=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;a.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",a.name="ChunkLoadError",a.type=r,a.request=o,n[1](a)}}),"chunk-"+e,e)}};var e=function(e,i){var n,r,o=i[0],a=i[1],l=i[2],h=0;if(o.some((function(e){return 0!==t[e]}))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(l)l(s)}for(e&&e(i);h<o.length;h++)r=o[h],s.o(t,r)&&t[r]&&t[r][0](),t[r]=0},i=self.webpackChunkgenoverse=self.webpackChunkgenoverse||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))}(),function(){"use strict";s(9170),s(6992),s(1539),s(8674),s(7922),s(4668),s(7727),s(8783),s(9601),s(9720),s(2479),s(6699),s(3290),s(9826),s(4944),s(3792),s(6535),s(9244),s(285),s(3753),s(1637)}(),function(){"use strict";var t=s(7810),e=s.n(t),i=s(7361),n=s.n(i),r=s(3766),o=s(7110),a=s(2694),l=s(6968),h=s.n(l);function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var u=function(t,e,i,n){n&&h()("default"===i?t:t[i],e.replace("library/","").split("/"),n)},f=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.exclude,r=void 0===n?[]:n,o=e.keys().reduce((function(t,i){var n=i.replace("./","").replace(".js","");if(r&&(r.includes(n)||r.includes(n.replace("library/","").replace(/\//g,"."))))return t;for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];return Object.assign(t,c({},n,e.apply(void 0,[i].concat(s))))}),{});Object.keys(o).sort().forEach((function(e){return Object.keys(o[e]).sort().forEach((function(i){return u(t,e,i,o[e][i])}))}))},p=s(9755),d=s.n(p),g=(s(1822),s(7285),s(1707),s(2526),{$:s.g.$,jQuery:s.g.jQuery});s.g.$=s.g.jQuery=d();var m;try{(m=s(6772)).keys().forEach(m)}finally{s.g.$=g.$,s.g.jQuery=g.jQuery}var v=d(),y=s(2940);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function w(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function x(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?w(Object(i),!0).forEach((function(e){_(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function _(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function k(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==i)return;var n,r,o=[],s=!0,a=!1;try{for(i=i.call(t);!(s=(n=i.next()).done)&&(o.push(n.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==i.return||i.return()}finally{if(a)throw r}}return o}(t,e)||C(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){if(t){if("string"==typeof t)return T(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var P=e().extend({baseURL:void 0,urlParamTemplate:"r=__CHR__:__START__-__END__",width:1e3,longestLabel:30,defaultLength:5e3,defaultScrollDelta:100,tracks:[],highlights:[],plugins:[],dragAction:"scroll",wheelAction:"off",isStatic:!1,saveable:!1,saveKey:"",storageType:"sessionStorage",autoHideMessages:!0,trackAutoHeight:!1,hideEmptyTracks:!0,genome:void 0,useHash:void 0,chr:1,start:1,end:1e6,constructor:function(){var t,e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=v;if(this.jQuery=n,!this.supported())return this.die("Your browser does not support this functionality");P.configure();var r=n(i.container);null!==(t=r)&&void 0!==t&&t.length||(r=n("<div>").appendTo("body")),r.addClass("genoverse").data("genoverse",this),Object.entries(i).forEach((function(t){var i=S(t,2),n=i[0],r=i[1];void 0!==r&&(e[n]=r)})),this.container=r,this.eventNamespace=".genoverse.".concat(++P.id),this.events={browser:{},tracks:{}},n.when(this.loadCSS(),this.loadGenome(),this.loadPlugins()).always((function(){(0,y.Z)(e,"Genoverse"),e.init()}))},loadCSS:function(){var t=this.jQuery;return t.when(P.importCSS?s.e(547).then(s.bind(s,5547)):t.Deferred().resolve(),P.importFontAwesome?Promise.all([s.e(216),s.e(166)]).then(s.bind(s,3166)):t.Deferred().resolve())},loadGenome:function(){var t=this;if("string"==typeof this.genome){var e=this.genome.toLowerCase();return s(7505)("./".concat(e)).then((function(i){t.genomeName=t.genome,t.genome=i.default,t.genome||t.die("Unable to load genome ".concat(e))}))}},loadPlugins:function(t){var e,i=this;this.loadedPlugins=this.loadedPlugins||{};var n=(t||this.plugins).map((function(t){return Array.isArray(t)?{name:t[0],conf:t[1]}:{name:t,conf:void 0}})).reduce((function(t,e){return t[e.name]=e,t}),{}),r=function t(e){var r=e.exports.requires,o=e.exports[e.name]||e.exports.plugin;r&&Object.keys(r).forEach((function(e){"requires"!==e&&t({name:e,conf:(n[e]||{}).conf,exports:{plugin:r[e],requires:r.requires}})})),"function"==typeof o&&!0!==i.loadedPlugins[e.name]&&(o.call(i,e.conf||{}),i.container.addClass("gv-".concat(e.name.replace(/([A-Z])/g,"-$1").toLowerCase(),"-plugin")),i.loadedPlugins[e.name]=!0)},o=Object.keys(n).map((function(t){return s(1152)("./".concat(t)).then((function(e){r({name:t,conf:n[t].conf,exports:e.default})}))}));return(e=this.jQuery).when.apply(e,k(o))},init:function(){var t=this.width;this.addDomElements(t),this.addUserEventHandlers(),this.isStatic&&(this.dragAction=this.wheelAction="off",this.urlParamTemplate=!1),this.tracksById={},this.prev={},this.legends={},this.initialLocation={chr:this.chr,start:this.start,end:this.end},this.saveKey=this.saveKey?"genoverse-".concat(this.saveKey):"genoverse",this.urlParamTemplate=this.urlParamTemplate||"",this.useHash="boolean"==typeof this.useHash?this.useHash:"function"!=typeof window.history.pushState,this.textWidth=document.createElement("canvas").getContext("2d").measureText("W").width,this.labelWidth=this.labelContainer.outerWidth(!0)||0,this.width=Math.min(this.width-this.labelWidth,this.wrapper.width()||Infinity),this.paramRegex=this.urlParamTemplate?new RegExp("([?&;])".concat(this.urlParamTemplate.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/(\b(\w+=)?__CHR__(.)?)/,"$2([\\w\\.]+)$3").replace(/(\b(\w+=)?__START__(.)?)/,"$2(\\d+)$3").replace(/(\b(\w+=)?__END__(.)?)/,"$2(\\d+)$3"),"([;&])")):"";var e=this.getCoords();this.chr=e.chr,this.genome&&(this.chromosomeSize=this.genome[this.chr].size),this.canChangeChr=!!this.genome,this.saveable?this.loadConfig():this.addTracks(),this.width>0&&this.setRange(e.start,e.end),this.highlights.length&&this.addHighlights(this.highlights)},loadConfig:function(){var t,e=this;this.defaultTracks=this.jQuery.extend(!0,[],this.tracks);try{t=window[this.storageType].getItem(this.saveKey)}catch(t){}if(t){t=JSON.parse(t);var i=P.getAllTrackTypes(),n=[],r={},o={};this.tracks.forEach((function(t){var i=e.normaliseTrackDefinition(t);i.prototype.id&&(r[i.prototype.id]=i)})),t.forEach((function(t){var o=r[t.id];if(o)s(o,t),o._fromStorage=!0;else if(i[t.namespace]){var a=(o=i[t.namespace]).prototype.id;e.trackIds=e.trackIds||{},e.trackIds[a]=e.trackIds[a]||1,r[a]&&(o=r[a]),s(o,t),n.push(o)}})),this.tracks.forEach((function(t){var i,o=e.normaliseTrackDefinition(t);(!o.prototype.id||null!==(i=r[o.prototype.id])&&void 0!==i&&i._fromStorage)&&n.push(o)})),this.tracks=n,this.savedConfig=o,this.addTracks()}else this.addTracks();function s(t,e){Object.keys(e).forEach((function(i){if("config"===i)o[e.id]=e[i];else{if("height"===i&&(e[i]=parseInt(e[i],10),isNaN(e[i])))return;t.prototype[i]=e[i]}}))}},saveConfig:function(){if(!this._constructing&&this.saveable){var t=[];this.tracks.forEach((function(e){if(e.id&&!(e instanceof a.default)&&!(e instanceof o.default)){var i={id:e.id,namespace:e.namespace,order:e.order,autoHeight:e.autoHeight,height:e.height-(e.initialHeight-e.defaultHeight)};e.config&&(i.config=Object.assign(i.config||{},e.config)),t.push(i)}}));try{window[this.storageType].setItem(this.saveKey,JSON.stringify(t))}catch(t){}}},resetConfig:function(){var t=[];this.tracksById.highlights&&(this.tracksById.highlights.removeHighlights(),t=Object.values(this.tracksById.highlights.prop("featuresById")));try{window[this.storageType].removeItem(this.saveKey)}catch(t){}this._constructing=!0,this.savedConfig={},this.removeTracks(k(this.tracks)),this.addTracks(this.jQuery.extend(!0,[],this.defaultTracks)),t.length&&this.addHighlights(t),this._constructing=!1},addDomElements:function(t){var e=this.jQuery;this.menus=e(),this.labelContainer=e('<ul class="gv-label-container">').appendTo(this.container).sortable({items:"li:not(.gv-unsortable)",handle:".gv-handle",axis:"y",helper:"clone",cursor:"move",update:this.updateTrackOrder.bind(this),start:function(t,e){e.placeholder.css({height:e.item.height(),visibility:"visible"}).html(e.item.html()),e.helper.hide()}}),this.wrapper=this.jQuery('<div class="gv-wrapper">').appendTo(this.container),this.selector=this.jQuery('<div class="gv-selector gv-crosshair">').appendTo(this.wrapper),this.selectorControls=this.zoomInHighlight=this.zoomOutHighlight=e(),this.container.addClass("gv-canvas-container").width(t),this.isStatic||(this.selectorControls=e('\n <div class="gv-selector-controls gv-panel">\n <div class="gv-button-set">\n <div class="gv-position">\n <div class="gv-chr"></div>\n <div class="gv-start-end">\n <div class="gv-start"></div>\n <div class="gv-end"></div>\n </div>\n </div>\n </div>\n <div class="gv-button-set">\n <button class="gv-zoom-here">Zoom here</butto\n </div>\n <div class="gv-button-set">\n <button class="gv-center">Center</button>\n </div>\n <div class="gv-button-set">\n <button class="gv-highlight">Highlight</butto\n </div>\n <div class="gv-button-set">\n <button class="gv-cancel">Cancel</button>\n </div>\n </div>\'\n ').appendTo(this.selector),this.zoomInHighlight=e('\n <div class="gv-canvas-zoom gv-i">\n <div class="gv-t gv-l gv-h"></div>\n <div class="gv-t gv-r gv-h"></div>\n <div class="gv-t gv-l gv-v"></div>\n <div class="gv-t gv-r gv-v"></div>\n <div class="gv-b gv-l gv-h"></div>\n <div class="gv-b gv-r gv-h"></div>\n <div class="gv-b gv-l gv-v"></div>\n <div class="gv-b gv-r gv-v"></div>\n </div>\n ').appendTo("body"),this.zoomOutHighlight=this.zoomInHighlight.clone().toggleClass("gv-i gv-o").appendTo("body"))},addUserEventHandlers:function(){var t=this,e=this.jQuery,i=this.eventNamespace,n={},r={};r["mousedown".concat(i)]=function(e){return t.hideMessages(),e.which&&1!==e.which||e.currentTarget===t.selector[0]&&e.target!==e.currentTarget||t.mousedown(e),!1},r["mousewheel".concat(i)]=function(e,i,n,r){return!!t.noWheelZoom||(t.hideMessages(),"zoom"===t.wheelAction?t.mousewheelZoom(e,i):0===r&&0!==n?(t.startDragScroll(e),t.move(10*-n),t.stopDragScroll(!1),!1):void 0)},r["dblclick".concat(i)]=function(e){if(t.isStatic)return!0;t.hideMessages(),t.mousewheelZoom(e,1)},this.container.on(r,".gv-image-container, .gv-selector"),this.selectorControls.on("click",(function(e){var i=t.getSelectorPosition();switch(e.target.className){case"gv-zoom-here":t.setRange(i.start,i.end,!0);break;case"gv-center":t.moveTo(t.chr,i.start,i.end,!0,!0),t.cancelSelect();break;case"gv-highlight":t.addHighlight({chr:t.chr,start:i.start,end:i.end});case"gv-cancel":t.cancelSelect()}})),n["mouseup".concat(this.eventNamespace)]=this.mouseup.bind(this),n["mousemove".concat(this.eventNamespace)]=this.mousemove.bind(this),n["keydown".concat(this.eventNamespace)]=this.keydown.bind(this),n["keyup".concat(this.eventNamespace)]=this.keyup.bind(this),n["mousewheel".concat(this.eventNamespace)]=function(e){"zoom"===t.wheelAction&&(t.wheelTimeout&&clearTimeout(t.wheelTimeout),t.noWheelZoom=t.noWheelZoom||e.target!==t.container[0],t.wheelTimeout=setTimeout((function(){t.noWheelZoom=!1}),300))},e(document).on(n),e(window).on("".concat(this.useHash?"hashchange":"popstate").concat(this.eventNamespace),this.popState.bind(this))},onTracks:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.tracks.forEach((function(e){if(!e.disabled){var n,r=e._interface[t];if(r)(n=e[r])[t].apply(n,i);else e[t]&&e[t].apply(e,i)}}))},reset:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];this.onTracks.apply(this,["reset"].concat(e)),this.prev={},this.scale=9e99,this.setRange(this.start,this.end)},setWidth:function(t){var e=this;this.width=t,this.width-=this.labelWidth,this.controlPanel&&(this.width-=this.controlPanel.outerWidth(!0)),this.superContainer?(this.superContainer.width(t),this.container.width(this.width)):this.container.width(t),setTimeout((function(){e.onTracks("setWidth",Math.min(e.width,e.container.width())),e.reset("resizing")}),1)},mousewheelZoom:function(t,e){var i=this,n=this.jQuery;return clearTimeout(this.zoomDeltaTimeout),clearTimeout(this.zoomTimeout),this.zoomDeltaTimeout=setTimeout((function(){e>0?i.zoomInHighlight.css({left:t.pageX-20,top:t.pageY-20,display:"block"}).animate({width:80,height:80,top:"-=20",left:"-=20"},{complete:function(){n(this).css({width:40,height:40,display:"none"})}}):i.zoomOutHighlight.css({left:t.pageX-40,top:t.pageY-40,display:"block"}).animate({width:40,height:40,top:"+=20",left:"+=20"},{complete:function(){n(this).css({width:80,height:80,display:"none"})}})}),100),this.zoomTimeout=setTimeout((function(){i[e>0?"zoomIn":"zoomOut"](t.pageX-i.container.offset().left-i.labelWidth),"select"===i.dragAction&&i.moveSelector(t)}),300),!1},startDragScroll:function(t){this.dragging="scroll",this.scrolling=!t,this.dragOffset=t?t.pageX-this.left:0,this.dragStart=this.start,this.scrollDelta=Math.max(this.scale,this.defaultScrollDelta)},stopDragScroll:function(t){this.dragging=!1,this.scrolling=!1,!1!==t&&(this.start!==this.dragStart&&this.updateURL(),this.checkTrackHeights())},startDragSelect:function(t){if(!t)return!1;var e=Math.max(0,t.pageX-this.wrapper.offset().left-2);this.dragging="select",this.selectorStalled=!1,this.selectorStart=e,this.selector.css({left:e,width:0}).removeClass("gv-crosshair"),this.selectorControls.hide()},stopDragSelect:function(t){if(!t)return!1;if(this.dragging=!1,this.selectorStalled=!0,this.selector.outerWidth(!0)<2)return this.cancelSelect();var e=Math.min(t.pageY-this.wrapper.offset().top,this.wrapper.outerHeight(!0)-1.2*this.selectorControls.outerHeight(!0)),i=this.getSelectorPosition();this.selectorControls.find(".gv-chr").html(this.chr),this.selectorControls.find(".gv-start").html(i.start),this.selectorControls.find(".gv-end").html(i.end),this.selectorControls.find(".gv-selector-location").html("".concat(this.chr,":").concat(i.start,"-").concat(i.end)).end().css({top:e,left:this.selector.outerWidth(!0)/2-this.selectorControls.outerWidth(!0)/2}).show()},cancelSelect:function(t){t||(this.dragging=!1),this.selectorStalled=!1,this.selector.addClass("gv-crosshair").width(0),this.selectorControls.hide(),"scroll"===this.dragAction&&this.selector.hide()},dragSelect:function(t){var e=t.pageX-this.wrapper.offset().left;e>this.selectorStart?this.selector.css({left:this.selectorStart,width:Math.min(e-this.selectorStart,this.width-this.selectorStart-1)}):this.selector.css({left:Math.max(e,1),width:Math.min(this.selectorStart-e,this.selectorStart-1)})},setDragAction:function(t,e){this.dragAction=t,"select"===this.dragAction?this.selector.addClass("gv-crosshair").width(0).show():e&&!this.selector.hasClass("gv-crosshair")?this.selectorStalled=!1:(this.cancelSelect(),this.selector.hide())},toggleSelect:function(t){t?(this.prev.dragAction="scroll",this.setDragAction("select")):(this.setDragAction(this.prev.dragAction,!0),delete this.prev.dragAction)},setWheelAction:function(t){this.wheelAction=t},keydown:function(t){16!==t.which||this.prev.dragAction||"scroll"!==this.dragAction?27===t.which&&(this.cancelSelect(),this.closeMenus()):this.toggleSelect(!0)},keyup:function(t){16===t.which&&this.prev.dragAction&&this.toggleSelect()},mousedown:function(t){switch(t.shiftKey?"scroll"===this.dragAction&&this.toggleSelect(!0):this.prev.dragAction&&this.toggleSelect(),this.dragAction){case"select":this.startDragSelect(t);break;case"scroll":this.startDragScroll(t)}},mouseup:function(t){switch(this.dragging){case"select":this.stopDragSelect(t);break;case"scroll":this.stopDragScroll()}},mousemove:function(t){if(this.dragging&&!this.scrolling)switch(this.dragAction){case"scroll":this.move(t.pageX-this.dragOffset-this.left);break;case"select":this.dragSelect(t)}else"select"===this.dragAction&&this.moveSelector(t)},moveSelector:function(t){this.selectorStalled||this.selector.css("left",t.pageX-this.wrapper.offset().left-2)},move:function(t){var e=this.scale;e>1&&(t=Math.round(t/e)*e);var i=this.left+t;i<=this.minLeft?(i=this.minLeft,t=this.minLeft-this.left):i>=this.maxLeft&&(i=this.maxLeft,t=this.maxLeft-this.left);var n=Math.max(Math.round(this.start-t/e),1),r=n+this.length-1;r>this.chromosomeSize&&(n=(r=this.chromosomeSize)-this.length+1),this.left=i,n!==this.dragStart&&(this.closeMenus(),this.cancelSelect(!0)),this.onTracks("move",t),this.setRange(n,r)},moveTo:function(t,e,i,n,r){void 0!==t&&String(t)!==String(this.chr)&&(this.canChangeChr?(this.genome&&this.genome[t]?(this.chr=t,this.chromosomeSize=this.genome[t].size,this.start=this.end=this.scale=-1):this.die("Chromosome cannot be found in genome"),this.onTracks("changeChr")):this.die("Chromosome changing is not allowed")),this.setRange(e,i,n,r),this.prev.scale===this.scale&&(this.left=Math.max(Math.min(this.left+Math.round((this.prev.start-this.start)*this.scale),this.maxLeft),this.minLeft),this.onTracks("moveTo",this.chr,this.start,this.end,(this.prev.start-this.start)*this.scale))},setRange:function(t,e,i,n){if(this.prev.start=this.start,this.prev.end=this.end,this.start=Math.min(Math.max("number"==typeof t?Math.floor(t):parseInt(t,10),1),this.chromosomeSize),this.end=Math.max(Math.min("number"==typeof e?Math.floor(e):parseInt(e,10),this.chromosomeSize),1),this.end<this.start&&(this.end=Math.min(this.start+this.defaultLength-1,this.chromosomeSize)),n&&this.end-this.start+1!==this.length)if(this.end===this.chromosomeSize)this.start=this.end-this.length+1;else{var r=(this.start+this.end)/2;this.start=Math.max(Math.floor(r-this.length/2),1),this.end=this.start+this.length-1,this.end>this.chromosomeSize&&(this.end=this.chromosomeSize,this.start=this.end-this.length+1)}else this.length=this.end-this.start+1;this.setScale(),!0!==i||this.prev.start===this.start&&this.prev.end===this.end||this.updateURL()},setScale:function(){this.prev.scale=this.scale,this.scale=this.width/this.length,this.scaledStart=this.start*this.scale,this.prev.scale!==this.scale&&(this.left=0,this.minLeft=Math.round((this.end-this.chromosomeSize)*this.scale),this.maxLeft=Math.round((this.start-1)*this.scale),this.labelBuffer=Math.ceil(this.textWidth/this.scale)*this.longestLabel,this.prev.scale&&(this.cancelSelect(),this.closeMenus()),this.onTracks("setScale"),this.onTracks("makeFirstImage"))},checkTrackHeights:function(){this.dragging||this.onTracks("checkHeight")},resetTrackHeights:function(){this.onTracks("resetHeight")},zoomIn:function(t){t||(t=this.width/2);var e=Math.round(this.start+t/(2*this.scale)),i=2===this.length?e:Math.round(e+(this.length-1)/2);this.setRange(e,i,!0)},zoomOut:function(t){t||(t=this.width/2);var e=Math.round(this.start-t/this.scale),i=1===this.length?e+1:Math.round(e+2*(this.length-1));this.setRange(e,i,!0)},normaliseTrackDefinition:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Track",r=n()(P,i),o=i.split("."),s=function(t){var e=t.split(".").filter((function(t){return"Genoverse"!==t&&!o.includes(t)})).join(".");return e===i?r:n()(r,e)},a=function(t){return x(x(x(x({},t),t.controller?{controller:e.normaliseTrackDefinition(t.controller,"Track.Controller")}:{}),t.model?{model:e.normaliseTrackDefinition(t.model,"Track.Model")}:{}),t.view?{view:e.normaliseTrackDefinition(t.view,"Track.View")}:{})};if("string"==typeof t)return s(t);if(Array.isArray(t)&&"string"==typeof t[0]){var l=s(t[0]);return"object"===b(t[1])&&Object.keys(t[1]).length?l.extend(a(t[1])):l}return"object"===b(t)&&Object.keys(t).length?r.extend(a(t)):t},addTrack:function(t,e){return this.addTracks([t],e)[0]},addTracks:function(t,e){var i,n=this.jQuery,r={browser:this,width:Math.min(this.width,this.container.width())},o=Boolean(t);if(o&&!this.tracks.filter((function(t){return"function"==typeof t})).length){var s=S((e?this.tracks.filter((function(t){return t.order<e})):this.tracks).sort((function(t,e){return e.order-t.order})),1)[0];s&&(i=s.order+.1)}t=t||k(this.tracks);for(var a=0;a<t.length;a++){var l=this.normaliseTrackDefinition(t[a]);t[a]=new l(x(x({},r),{},{namespace:P.getTrackNamespace(l),order:"number"==typeof i?i:a,config:this.savedConfig?n.extend(!0,{},this.savedConfig[l.prototype.id]):void 0})),t[a].id&&(this.tracksById[t[a].id]=t[a]),o?this.tracks.push(t[a]):this.tracks[a]=t[a]}return this.sortTracks(),this.saveConfig(),t},removeTrack:function(t){t&&this.removeTracks((t.prop("childTracks")||[]).concat(t))},removeTracks:function(t){for(var e=t.length;e--;){for(var i=t[e],n=this.tracks.length;n--;)if(i===this.tracks[n]){this.tracks.splice(n,1);break}i.id&&delete this.tracksById[i.id],i.destructor()}this.saveConfig()},sortTracks:function(){var t=this.jQuery;if(!this.tracks.some((function(t){return"object"!==b(t)}))){var e=this.tracks.slice().sort((function(t,e){return t.order-e.order})),i=t(),n=t();e.forEach((function(t,e){if(!t.prop("parentTrack")){t.prop("fixedOrder")||t.prop("order",e);var r=t.prop("superContainer")||t.prop("container");t.prop("menus").length&&t.prop("top",r.position().top),i.push(t.prop("label")[0]),n.push(r[0])}})),this.labelContainer.append(i),this.wrapper.append(n),this.tracks=e,i.map((function(){return t(this).data("track")})).each((function(){if(this.prop("menus").length){var t=(this.prop("superContainer")||this.prop("container")).position().top-this.prop("top");this.prop("menus").css("top",(function(e,i){return parseInt(i,10)+t})),this.prop("top",null)}}))}},updateTrackOrder:function(t,e){var i=e.item.data("track");if(!i.prop("unsortable")&&!i.prop("fixedOrder")){var n=e.item.prev().data("track"),r=e.item.next().data("track"),o=n?n.prop("order"):0,s=r?r.prop("order"):0,a=o||s,l=n&&r&&Math.floor(s)===Math.floor(o)?o+(s-o)/2:a+(o?1:-1)*Math.abs(Math.round(a)-a||1)/2;i.prop("order",l),this.sortTracks(),this.saveConfig()}},updateURL:function(){this.urlParamTemplate&&(this.useHash?window.location.hash=this.getQueryString():window.history.pushState({},"",this.getQueryString()))},popState:function(){if(!this.baseURL||window.location.href.match(this.baseURL)){var t=this.getCoords(),e=parseInt(t.start,10),i=parseInt(t.end,10);(t.chr&&String(t.chr)!==String(this.chr)||t.start&&(e!==this.start||i!==this.end))&&(this.moveTo(t.chr,e,i),this.closeMenus(),this.hideMessages())}},getCoords:function(){var t={},e="".concat(decodeURIComponent(this.useHash&&window.location.hash.replace(/^#/,"?")||window.location.search),"&").match(this.paramRegex),i=0;return e?(e=e.slice(2,-1),this.urlParamTemplate.split("__").forEach((function(n){var r=n.match(/^(CHR|START|END)$/);r&&(t[r[1].toLowerCase()]="CHR"===r[1]?e[i++]:parseInt(e[i++],10))})),t.chr&&t.start&&t.end&&(!this.genome||this.genome[t.chr])?t:this.initialLocation):this.initialLocation},getQueryString:function(){var t=this.urlParamTemplate.replace("__CHR__",this.chr).replace("__START__",this.start).replace("__END__",this.end),e="".concat(decodeURIComponent(this.useHash?window.location.hash.replace(/^#/,"?"):window.location.search),"&"),i=e.match(this.paramRegex)?e.replace(this.paramRegex,"$1".concat(t,"$5")).slice(0,-1):"".concat(e).concat(t);return this.useHash?i=i.replace(/^[&?]/,""):0!==i.indexOf("?")&&(i="?".concat(i.replace(/^&/,""))),i},getChromosomeSize:function(t){return t&&this.genome&&this.genome[t]?this.genome[t].size:this.chromosomeSize},supported:function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},die:function(t,e){if(!e||!e.length)throw t;e.html(t),this.failed=!0},createMenuEl:function(){var t=this.jQuery;return this.menuTemplate=this.menuTemplate||t('\n <div class="gv-menu">\n <div class="gv-close gv-menu-button fas fa-times-circle"></div>\n <div class="gv-menu-loading">Loading...</div>\n <div class="gv-menu-error">An error has occurred</div>\n <div class="gv-menu-content">\n <div class="gv-title"></div>\n <table class="gv-focus-highlight">\n <tr>\n <td><a class="gv-focus" href="#">Focus here</a></td>\n <td><a class="gv-highlight" href="#">Highlight this feature</a></td>\n </tr>\n </table>\n <table></table>\n </div>\n </div>\n ').on("click",(function(e){var i=t(this);t(e.target).hasClass("gv-close")&&i.fadeOut("fast",(function(){var t=i.data();t.track&&t.track.prop("menus",t.track.prop("menus").not(this)),t.browser.menus=t.browser.menus.not(this)}))})),this.menuTemplate.clone(!0).data({browser:this})},makeMenu:function(t,e,i){var n=this,r=this.jQuery;if(!t)return!1;if(0===(t=[].concat(t)).length)return!1;if(1===t.length)return this.makeFeatureMenu(t[0],e,i);var o=this.createMenuEl(),s=r(".gv-menu-content",o).addClass("gv-menu-content-first"),a=r("table:not(.gv-focus-highlight)",s);return r(".gv-focus-highlight, .gv-menu-loading",o).remove(),r(".gv-title",o).html("".concat(t.length," features")),(i?i.model.sortFeatures(t):t.sort((function(t,e){return t.start-e.start}))).forEach((function(t){var e="".concat(t.chr,":").concat(t.start).concat(t.end===t.start?"":"-".concat(t.end)),o=t.menuLabel||t.name||(Array.isArray(t.label)?t.label.join(" "):t.label)||String(t.id);r('<a href="#">').html(o.match(e)?o:"".concat(e," ").concat(o)).on("click",(function(e){return n.makeFeatureMenu(t,e,i),!1})).appendTo(r("<td>").appendTo(r("<tr>").appendTo(a)))})),r('<div class="gv-menu-scroll-wrapper">').append(a).appendTo(s),o.appendTo(this.superContainer||this.container).show(),e&&o.css({left:0,top:0}).position({of:e,my:"left top",collision:"flipfit"}),this.menus=this.menus.add(o),i&&i.prop("menus",i.prop("menus").add(o)),o},insertPropertiesIntoMenu:function(t,e,i,n,r){var o=this,s=this.jQuery,a=function(t){var e=t.currentTarget,i=s(e).data(),n=i.end-i.start+1,r=Math.max(Math.round(n/4),25);return o.moveTo(i.chr,i.start-r,i.end+r,!0),!1},l=function(t){var e=t.currentTarget;return o.addHighlight(s(e).data()),!1};[].concat(t).forEach((function(t,h){var c=i.clone().addClass(h?"":"gv-menu-content-first").appendTo(e),u=void 0!==t.chr?t.chr:n.chr,f=parseInt(void 0!==t.start?t.start:n.start,10),p=parseInt(void 0!==t.end?t.end:n.end,10),d=Math.max.apply(Math,k(Object.values(t).map((function(t){return Array.isArray(t)?t.length:1})))),g="";if(s(".gv-title",c)[t.title?"html":"remove"](t.title),r&&f&&p&&!o.isStatic){var m={chr:u,start:f,end:Math.max(p,f),label:n.label||(t.title||"").replace(/<[^>]+>/g,""),color:n.color};s(".gv-focus",c).data(m).on("click",a),s(".gv-highlight",c).data(m).on("click",l)}else s(".gv-focus-highlight",c).remove();Object.entries(t).forEach((function(t){var e=S(t,2),i=e[0],n=e[1];if((!/^start|end$/.test(i)||!1!==n)&&"title"!==i){var r=""===n?' colspan="'.concat(d+1,'"'):"";g+="<tr><td".concat(r,">").concat(i,"</td>"),r||(Array.isArray(n)?n.forEach((function(t){g+="<td>".concat(t,"</td>")})):g+=1===d?"<td>".concat(n,"</td>"):'<td colspan="'.concat(d,'">').concat(n,"</td>")),g+="</tr>"}})),s("table:not(.gv-focus-highlight)",c)[g?"html":"remove"](g)}))},makeFeatureMenu:function(t,e,i){var n=this,r=this.jQuery,o=this.superContainer||this.container;if(t.menuEl&&!0!==t.menuEl.data("hasErrored"))t.menuEl.appendTo(o);else{var s,a=this.createMenuEl().data({feature:t}),l=r(".gv-menu-content",a).remove(),h=r(".gv-menu-loading",a);try{s=i?i.controller.populateMenu(t):t}catch(t){s=r.Deferred().reject(t),a.data("hasErrored",!0)}var c="object"===b(s)&&"function"==typeof s.promise;c||h.hide(),r.when(s).done((function(e){((null==i?void 0:i.controller)||n).insertPropertiesIntoMenu(e,a,l,t,i),c&&h.hide()})).fail((function(t){h.hide(),a.data("hasErrored",!0),r(".gv-menu-error",a).css("display","block"),console.error(t)})),i&&a.addClass(i.id).data("track",i),t.menuEl=a.appendTo(o)}return this.menus=this.menus.add(t.menuEl),i&&i.prop("menus",i.prop("menus").add(t.menuEl)),t.menuEl.show(),e&&t.menuEl.css({left:0,top:0}).position({of:e,my:"left top",collision:"flipfit"}),t.menuEl},closeMenus:function(t){(t=t||this).menus.filter(":visible").children(".gv-close").trigger("click"),t.menus=this.jQuery()},hideMessages:function(){this.autoHideMessages&&this.wrapper.find(".gv-message-container").addClass("gv-collapsed")},getSelectorPosition:function(){var t=this.selector.position().left,e=this.selector.outerWidth(!0),i=Math.round(t/this.scale)+this.start,n=Math.round((t+e)/this.scale)+this.start-1;return{start:i,end:n=n<=i?i:n,left:t,width:e}},addHighlight:function(t){this.addHighlights([t])},addHighlights:function(t){this.tracksById.highlights||this.addTrack(o.default),this.tracksById.highlights.addHighlights(t)},on:function(t,e,i,n){var o=this,s={};function a(t,e){t.split(" ").forEach((function(t){s[t]=(s[t]||[]).concat(e)}))}"object"===b(t)?(Object.entries(t).forEach((function(t){var e=S(t,2);return a(e[0],e[1])})),e=e||this):(void 0===i&&(i=e,e=this),a(t,i));var l=e instanceof r.ZP||"tracks"===e?"tracks":"browser";Object.entries(s).forEach((function(t){var e,i=S(t,2),r=i[0],s=i[1],a="".concat(r).concat(n?".once":""),h=s.map((function(t){return t.toString()}));(o.events[l][a]=o.events[l][a]||[],o.events[l][a].some((function(t){var e=t.toString();return h.some((function(t){return t===e}))})))||(e=o.events[l][a]).push.apply(e,k(s))}))},once:function(t,e,i){this.on(t,e,i,!0)},destroy:function(){var t=this;this.destroying=!0,this.onTracks("destructor"),(this.superContainer||this.container).empty(),this.zoomInHighlight&&this.zoomInHighlight.add(this.zoomOutHighlight).remove(),this.container.off(this.eventNamespace),this.jQuery(window).add(document).off(this.eventNamespace),Object.keys(this).forEach((function(e){delete t[e]}))}},{id:0,Track:r.ZP,jQuery:v,configure:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.tracks,i=void 0===e?{}:e,n=t.plugins,o=void 0===n?{}:n,a=t.genomes,l=void 0===a?{}:a,h=t.css,c=void 0===h||h,u=t.fontawesome,p=void 0===u||u,d=t.force,g=void 0!==d&&d;if(g||!P.configured){f(r.ZP,s(3473),{exclude:i.exclude}),i.include&&f(r.ZP,i.include);var m=function(t){return t.keys().forEach(t)};o.include&&m(o.include),l.include&&m(l.include),P.importCSS=c,P.importFontAwesome=p}P.configured=!0},getAllTrackTypes:function(t,i){if(t=t||r.ZP,i&&(t=t[i]),!t)return[];var n={};return Object.entries(t).forEach((function(i){var r=S(i,2),o=r[0],s=r[1];"function"!=typeof s||e()[o]||/^(Controller|Model|View)$/.test(o)||(Object.entries(P.getAllTrackTypes(t,o)).forEach((function(t){var e=S(t,2),i=e[0],r=e[1];"function"==typeof r&&(n["".concat(o,".").concat(i)]=r)})),n[o]=s)})),n},getTrackNamespace:function(t){for(var e=P.getAllTrackTypes(),i=Object.entries(e).map((function(e){var i=S(e,2),n=i[0],r=i[1];return(t===r||t.prototype instanceof r)&&n})).filter(Boolean),n=i.length;i.length>1;){for(var r=0;r<i.length-1;r++){if(e[i[r]].prototype instanceof e[i[r+1]]){i.splice(r+1,1);break}if(e[i[r+1]].prototype instanceof e[i[r]]){i.splice(r,1);break}}if(n--<0)break}return i[0]}});s.g.Genoverse=P}()}();
|
|
2
2
|
//# sourceMappingURL=genoverse.js.map
|