text
stringlengths 2
1.05M
|
|---|
(function(f){f.parser={auto:true,onComplete:function(e){},plugins:["draggable","droppable","resizable","pagination","tooltip","linkbutton","menu","menubutton","splitbutton","progressbar","tree","combobox","combotree","combogrid","numberbox","validatebox","searchbox","numberspinner","timespinner","calendar","datebox","datetimebox","slider","layout","panel","datagrid","propertygrid","treegrid","tabs","accordion","window","dialog"],parse:function(a){var i=[];for(var e=0;e<f.parser.plugins.length;e++){var t=f.parser.plugins[e];var n=f(".easyui-"+t,a);if(n.length){if(n[t]){n[t]()}else{i.push({name:t,jq:n})}}}if(i.length&&window.easyloader){var o=[];for(var e=0;e<i.length;e++){o.push(i[e].name)}easyloader.load(o,function(){for(var e=0;e<i.length;e++){var t=i[e].name;var n=i[e].jq;n[t]()}f.parser.onComplete.call(f.parser,a)})}else{f.parser.onComplete.call(f.parser,a)}},parseOptions:function(e,t){var n=f(e);var a={};var i=f.trim(n.attr("data-options"));if(i){var o=i.substring(0,1);var r=i.substring(i.length-1,1);if(o!="{"){i="{"+i}if(r!="}"){i=i+"}"}a=new Function("return "+i)()}if(t){var s={};for(var l=0;l<t.length;l++){var d=t[l];if(typeof d=="string"){if(d=="width"||d=="height"||d=="left"||d=="top"){s[d]=parseInt(e.style[d])||undefined}else{s[d]=n.attr(d)}}else{for(var u in d){var c=d[u];if(c=="boolean"){s[u]=n.attr(u)?n.attr(u)=="true":undefined}else{if(c=="number"){s[u]=n.attr(u)=="0"?0:parseFloat(n.attr(u))||undefined}}}}}f.extend(a,s)}return a}};f(function(){var e=f('<div style="position:absolute;top:-1000px;width:100px;height:100px;padding:5px"></div>').appendTo("body");f._boxModel=parseInt(e.width())==100;e.remove();if(!window.easyloader&&f.parser.auto){f.parser.parse()}});f.fn._outerWidth=function(e){if(e==undefined){if(this[0]==window){return this.width()||document.body.clientWidth}return this.outerWidth()||0}return this.each(function(){if(f._boxModel){f(this).width(e-(f(this).outerWidth()-f(this).width()))}else{f(this).width(e)}})};f.fn._outerHeight=function(e){if(e==undefined){if(this[0]==window){return this.height()||document.body.clientHeight}return this.outerHeight()||0}return this.each(function(){if(f._boxModel){f(this).height(e-(f(this).outerHeight()-f(this).height()))}else{f(this).height(e)}})};f.fn._scrollLeft=function(e){if(e==undefined){return this.scrollLeft()}else{return this.each(function(){f(this).scrollLeft(e)})}};f.fn._propAttr=f.fn.prop||f.fn.attr;f.fn._fit=function(e){e=e==undefined?true:e;var t=this[0];var n=t.tagName=="BODY"?t:this.parent()[0];var a=n.fcount||0;if(e){if(!t.fitted){t.fitted=true;n.fcount=a+1;f(n).addClass("panel-noscroll");if(n.tagName=="BODY"){f("html").addClass("panel-fit")}}}else{if(t.fitted){t.fitted=false;n.fcount=a-1;if(n.fcount==0){f(n).removeClass("panel-noscroll");if(n.tagName=="BODY"){f("html").removeClass("panel-fit")}}}}return{width:f(n).width(),height:f(n).height()}}})(jQuery);(function(o){function n(e){var t=o.data(e,"linkbutton").options;var n=o(e);n.addClass("l-btn").removeClass("l-btn-plain l-btn-selected l-btn-plain-selected");if(t.plain){n.addClass("l-btn-plain")}if(t.selected){n.addClass(t.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected")}n.attr("group",t.group||"");n.attr("id",t.id||"");n.html('<span class="l-btn-left">'+'<span class="l-btn-text"></span>'+"</span>");if(t.text){n.find(".l-btn-text").html(t.text);if(t.iconCls){n.find(".l-btn-text").addClass(t.iconCls).addClass(t.iconAlign=="left"?"l-btn-icon-left":"l-btn-icon-right")}}else{n.find(".l-btn-text").html('<span class="l-btn-empty"> </span>');if(t.iconCls){n.find(".l-btn-empty").addClass(t.iconCls)}}n.unbind(".linkbutton").bind("focus.linkbutton",function(){if(!t.disabled){o(this).find(".l-btn-text").addClass("l-btn-focus")}}).bind("blur.linkbutton",function(){o(this).find(".l-btn-text").removeClass("l-btn-focus")});if(t.toggle&&!t.disabled){n.bind("click.linkbutton",function(){if(t.selected){o(this).linkbutton("unselect")}else{o(this).linkbutton("select")}})}a(e,t.selected);i(e,t.disabled)}function a(e,t){var n=o.data(e,"linkbutton").options;if(t){if(n.group){o('a.l-btn[group="'+n.group+'"]').each(function(){var e=o(this).linkbutton("options");if(e.toggle){o(this).removeClass("l-btn-selected l-btn-plain-selected");e.selected=false}})}o(e).addClass(n.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");n.selected=true}else{if(!n.group){o(e).removeClass("l-btn-selected l-btn-plain-selected");n.selected=false}}}function i(e,t){var n=o.data(e,"linkbutton");var a=n.options;o(e).removeClass("l-btn-disabled l-btn-plain-disabled");if(t){a.disabled=true;var i=o(e).attr("href");if(i){n.href=i;o(e).attr("href","javascript:void(0)")}if(e.onclick){n.onclick=e.onclick;e.onclick=null}a.plain?o(e).addClass("l-btn-disabled l-btn-plain-disabled"):o(e).addClass("l-btn-disabled")}else{a.disabled=false;if(n.href){o(e).attr("href",n.href)}if(n.onclick){e.onclick=n.onclick}}}o.fn.linkbutton=function(t,e){if(typeof t=="string"){return o.fn.linkbutton.methods[t](this,e)}t=t||{};return this.each(function(){var e=o.data(this,"linkbutton");
if(e){o.extend(e.options,t)}else{o.data(this,"linkbutton",{options:o.extend({},o.fn.linkbutton.defaults,o.fn.linkbutton.parseOptions(this),t)});o(this).removeAttr("disabled")}n(this)})};o.fn.linkbutton.methods={options:function(e){return o.data(e[0],"linkbutton").options},enable:function(e){return e.each(function(){i(this,false)})},disable:function(e){return e.each(function(){i(this,true)})},select:function(e){return e.each(function(){a(this,true)})},unselect:function(e){return e.each(function(){a(this,false)})}};o.fn.linkbutton.parseOptions=function(e){var t=o(e);return o.extend({},o.parser.parseOptions(e,["id","iconCls","iconAlign","group",{plain:"boolean",toggle:"boolean",selected:"boolean"}]),{disabled:t.attr("disabled")?true:undefined,text:o.trim(t.html()),iconCls:t.attr("icon")||t.attr("iconCls")})};o.fn.linkbutton.defaults={id:null,disabled:false,toggle:false,selected:false,group:null,plain:false,text:"",iconCls:null,iconAlign:"left"}})(jQuery);(function(h){function i(e){var t=h(e);t.addClass("tree");return t}function o(e){var t=[];i(t,h(e));function i(a,e){e.children("li").each(function(){var e=h(this);var t=h.extend({},h.parser.parseOptions(this,["id","iconCls","state"]),{checked:e.attr("checked")?true:undefined});t.text=e.children("span").html();if(!t.text){t.text=e.html()}var n=e.children("ul");if(n.length){t.children=[];i(t.children,n)}a.push(t)})}return t}function r(a){var i=h.data(a,"tree").options;h(a).unbind().bind("mouseover",function(e){var t=h(e.target);var n=t.closest("div.tree-node");if(!n.length){return}n.addClass("tree-node-hover");if(t.hasClass("tree-hit")){if(t.hasClass("tree-expanded")){t.addClass("tree-expanded-hover")}else{t.addClass("tree-collapsed-hover")}}e.stopPropagation()}).bind("mouseout",function(e){var t=h(e.target);var n=t.closest("div.tree-node");if(!n.length){return}n.removeClass("tree-node-hover");if(t.hasClass("tree-hit")){if(t.hasClass("tree-expanded")){t.removeClass("tree-expanded-hover")}else{t.removeClass("tree-collapsed-hover")}}e.stopPropagation()}).bind("click",function(e){var t=h(e.target);var n=t.closest("div.tree-node");if(!n.length){return}if(t.hasClass("tree-hit")){m(a,n[0]);return false}else{if(t.hasClass("tree-checkbox")){p(a,n[0],!t.hasClass("tree-checkbox1"));return false}else{O(a,n[0]);i.onClick.call(a,T(a,n[0]))}}e.stopPropagation()}).bind("dblclick",function(e){var t=h(e.target).closest("div.tree-node");if(!t.length){return}O(a,t[0]);i.onDblClick.call(a,T(a,t[0]));e.stopPropagation()}).bind("contextmenu",function(e){var t=h(e.target).closest("div.tree-node");if(!t.length){return}i.onContextMenu.call(a,e,T(a,t[0]));e.stopPropagation()})}function s(e){var t=h(e).find("div.tree-node");t.draggable("disable");t.css("cursor","pointer")}function l(o){var r=h.data(o,"tree");var s=r.options;var e=r.tree;r.disabledNodes=[];e.find("div.tree-node").draggable({disabled:false,revert:true,cursor:"pointer",proxy:function(e){var t=h('<div class="tree-node-proxy"></div>').appendTo("body");t.html('<span class="tree-dnd-icon tree-dnd-no"> </span>'+h(e).find(".tree-title").html());t.hide();return t},deltaX:15,deltaY:15,onBeforeDrag:function(e){if(s.onBeforeDrag.call(o,T(o,this))==false){return false}if(h(e.target).hasClass("tree-hit")||h(e.target).hasClass("tree-checkbox")){return false}if(e.which!=1){return false}h(this).next("ul").find("div.tree-node").droppable({accept:"no-accept"});var t=h(this).find("span.tree-indent");if(t.length){e.data.offsetWidth-=t.length*t.width()}},onStartDrag:function(){h(this).draggable("proxy").css({left:-10000,top:-10000});s.onStartDrag.call(o,T(o,this));var e=T(o,this);if(e.id==undefined){e.id="easyui_tree_node_id_temp";D(o,e)}r.draggingNodeId=e.id},onDrag:function(e){var t=e.pageX,n=e.pageY,a=e.data.startX,i=e.data.startY;var o=Math.sqrt((t-a)*(t-a)+(n-i)*(n-i));if(o>3){h(this).draggable("proxy").show()}this.pageY=e.pageY},onStopDrag:function(){h(this).next("ul").find("div.tree-node").droppable({accept:"div.tree-node"});for(var e=0;e<r.disabledNodes.length;e++){h(r.disabledNodes[e]).droppable("enable")}r.disabledNodes=[];var t=W(o,r.draggingNodeId);if(t&&t.id=="easyui_tree_node_id_temp"){t.id="";D(o,t)}s.onStopDrag.call(o,t)}}).droppable({accept:"div.tree-node",onDragEnter:function(e,t){if(s.onDragEnter.call(o,this,T(o,t))==false){l(t,false);h(this).removeClass("tree-node-append tree-node-top tree-node-bottom");h(this).droppable("disable");r.disabledNodes.push(this)}},onDragOver:function(e,t){if(h(this).droppable("options").disabled){return}var n=t.pageY;var a=h(this).offset().top;var i=a+h(this).outerHeight();l(t,true);h(this).removeClass("tree-node-append tree-node-top tree-node-bottom");if(n>a+(i-a)/2){if(i-n<5){h(this).addClass("tree-node-bottom")}else{h(this).addClass("tree-node-append")}}else{if(n-a<5){h(this).addClass("tree-node-top")}else{h(this).addClass("tree-node-append")}}if(s.onDragOver.call(o,this,T(o,t))==false){l(t,false);h(this).removeClass("tree-node-append tree-node-top tree-node-bottom");h(this).droppable("disable");
r.disabledNodes.push(this)}},onDragLeave:function(e,t){l(t,false);h(this).removeClass("tree-node-append tree-node-top tree-node-bottom");s.onDragLeave.call(o,this,T(o,t))},onDrop:function(e,t){var n=this;var a,i;if(h(this).hasClass("tree-node-append")){a=d}else{a=u;i=h(this).hasClass("tree-node-top")?"top":"bottom"}if(s.onBeforeDrop.call(o,n,z(o,t),i)==false){h(this).removeClass("tree-node-append tree-node-top tree-node-bottom");return}a(t,n,i);h(this).removeClass("tree-node-append tree-node-top tree-node-bottom")}});function l(e,t){var n=h(e).draggable("proxy").find("span.tree-dnd-icon");n.removeClass("tree-dnd-yes tree-dnd-no").addClass(t?"tree-dnd-yes":"tree-dnd-no")}function d(t,n){if(T(o,n).state=="closed"){f(o,n,function(){e()})}else{e()}function e(){var e=h(o).tree("pop",t);h(o).tree("append",{parent:n,data:[e]});s.onDrop.call(o,n,e,"append")}}function u(e,t,n){var a={};if(n=="top"){a.before=t}else{a.after=t}var i=h(o).tree("pop",e);a.data=i;h(o).tree("insert",a);s.onDrop.call(o,t,i,n)}}function p(o,e,t){var n=h.data(o,"tree").options;if(!n.checkbox){return}var a=T(o,e);if(n.onBeforeCheck.call(o,a,t)==false){return}var i=h(e);var r=i.find(".tree-checkbox");r.removeClass("tree-checkbox0 tree-checkbox1 tree-checkbox2");if(t){r.addClass("tree-checkbox1")}else{r.addClass("tree-checkbox0")}if(n.cascadeCheck){l(i);s(i)}n.onCheck.call(o,a,t);function s(e){var t=e.next().find(".tree-checkbox");t.removeClass("tree-checkbox0 tree-checkbox1 tree-checkbox2");if(e.find(".tree-checkbox").hasClass("tree-checkbox1")){t.addClass("tree-checkbox1")}else{t.addClass("tree-checkbox0")}}function l(e){var t=_(o,e[0]);if(t){var n=h(t.target).find(".tree-checkbox");n.removeClass("tree-checkbox0 tree-checkbox1 tree-checkbox2");if(a(e)){n.addClass("tree-checkbox1")}else{if(i(e)){n.addClass("tree-checkbox0")}else{n.addClass("tree-checkbox2")}}l(h(t.target))}function a(e){var t=e.find(".tree-checkbox");if(t.hasClass("tree-checkbox0")||t.hasClass("tree-checkbox2")){return false}var n=true;e.parent().siblings().each(function(){if(!h(this).children("div.tree-node").children(".tree-checkbox").hasClass("tree-checkbox1")){n=false}});return n}function i(e){var t=e.find(".tree-checkbox");if(t.hasClass("tree-checkbox1")||t.hasClass("tree-checkbox2")){return false}var n=true;e.parent().siblings().each(function(){if(!h(this).children("div.tree-node").children(".tree-checkbox").hasClass("tree-checkbox0")){n=false}});return n}}}function d(e,t){var n=h.data(e,"tree").options;var a=h(t);if(H(e,t)){var i=a.find(".tree-checkbox");if(i.length){if(i.hasClass("tree-checkbox1")){p(e,t,true)}else{p(e,t,false)}}else{if(n.onlyLeafCheck){h('<span class="tree-checkbox tree-checkbox0"></span>').insertBefore(a.find(".tree-title"))}}}else{var i=a.find(".tree-checkbox");if(n.onlyLeafCheck){i.remove()}else{if(i.hasClass("tree-checkbox1")){p(e,t,true)}else{if(i.hasClass("tree-checkbox2")){var o=true;var r=true;var s=w(e,t);for(var l=0;l<s.length;l++){if(s[l].checked){r=false}else{o=false}}if(o){p(e,t,true)}if(r){p(e,t,false)}}}}}}function u(d,e,t,n){var u=h.data(d,"tree").options;t=u.loadFilter.call(d,t,h(e).prev("div.tree-node")[0]);if(!n){h(e).empty()}var c=[];var a=h(e).prev("div.tree-node").find("span.tree-indent, span.tree-hit").length;f(e,t,a);if(u.dnd){l(d)}else{s(d)}for(var i=0;i<c.length;i++){p(d,c[i],true)}setTimeout(function(){v(d,d)},0);var o=null;if(d!=e){var r=h(e).prev();o=T(d,r[0])}u.onLoadSuccess.call(d,o,t);function f(e,t,n){for(var a=0;a<t.length;a++){var i=h("<li></li>").appendTo(e);var o=t[a];if(o.state!="open"&&o.state!="closed"){o.state="open"}var r=h('<div class="tree-node"></div>').appendTo(i);r.attr("node-id",o.id);h.data(r[0],"tree-node",{id:o.id,text:o.text,iconCls:o.iconCls,attributes:o.attributes});h('<span class="tree-title"></span>').html(u.formatter.call(d,o)).appendTo(r);if(u.checkbox){if(u.onlyLeafCheck){if(o.state=="open"&&(!o.children||!o.children.length)){if(o.checked){h('<span class="tree-checkbox tree-checkbox1"></span>').prependTo(r)}else{h('<span class="tree-checkbox tree-checkbox0"></span>').prependTo(r)}}}else{if(o.checked){h('<span class="tree-checkbox tree-checkbox1"></span>').prependTo(r);c.push(r[0])}else{h('<span class="tree-checkbox tree-checkbox0"></span>').prependTo(r)}}}if(o.children&&o.children.length){var s=h("<ul></ul>").appendTo(i);if(o.state=="open"){h('<span class="tree-icon tree-folder tree-folder-open"></span>').addClass(o.iconCls).prependTo(r);h('<span class="tree-hit tree-expanded"></span>').prependTo(r)}else{h('<span class="tree-icon tree-folder"></span>').addClass(o.iconCls).prependTo(r);h('<span class="tree-hit tree-collapsed"></span>').prependTo(r);s.css("display","none")}f(s,o.children,n+1)}else{if(o.state=="closed"){h('<span class="tree-icon tree-folder"></span>').addClass(o.iconCls).prependTo(r);h('<span class="tree-hit tree-collapsed"></span>').prependTo(r)}else{h('<span class="tree-icon tree-file"></span>').addClass(o.iconCls).prependTo(r);h('<span class="tree-indent"></span>').prependTo(r)}}for(var l=0;
l<n;l++){h('<span class="tree-indent"></span>').prependTo(r)}}}}function v(n,e,a){var t=h.data(n,"tree").options;if(!t.lines){return}if(!a){a=true;h(n).find("span.tree-indent").removeClass("tree-line tree-join tree-joinbottom");h(n).find("div.tree-node").removeClass("tree-node-last tree-root-first tree-root-one");var i=h(n).tree("getRoots");if(i.length>1){h(i[0].target).addClass("tree-root-first")}else{if(i.length==1){h(i[0].target).addClass("tree-root-one")}}}h(e).children("li").each(function(){var e=h(this).children("div.tree-node");var t=e.next("ul");if(t.length){if(h(this).next().length){s(e)}v(n,t,a)}else{r(e)}});var o=h(e).children("li:last").children("div.tree-node").addClass("tree-node-last");o.children("span.tree-join").removeClass("tree-join").addClass("tree-joinbottom");function r(e,t){var n=e.find("span.tree-icon");n.prev("span.tree-indent").addClass("tree-join")}function s(e){var t=e.find("span.tree-indent, span.tree-hit").length;e.next().find("div.tree-node").each(function(){h(this).children("span:eq("+(t-1)+")").addClass("tree-line")})}}function c(t,n,e,a){var i=h.data(t,"tree").options;e=e||{};var o=null;if(t!=n){var r=h(n).prev();o=T(t,r[0])}if(i.onBeforeLoad.call(t,o,e)==false){return}var s=h(n).prev().children("span.tree-folder");s.addClass("tree-loading");var l=i.loader.call(t,e,function(e){s.removeClass("tree-loading");u(t,n,e);if(a){a()}},function(){s.removeClass("tree-loading");i.onLoadError.apply(t,arguments);if(a){a()}});if(l==false){s.removeClass("tree-loading")}}function f(e,t,n){var a=h.data(e,"tree").options;var i=h(t).children("span.tree-hit");if(i.length==0){return}if(i.hasClass("tree-expanded")){return}var o=T(e,t);if(a.onBeforeExpand.call(e,o)==false){return}i.removeClass("tree-collapsed tree-collapsed-hover").addClass("tree-expanded");i.next().addClass("tree-folder-open");var r=h(t).next();if(r.length){if(a.animate){r.slideDown("normal",function(){a.onExpand.call(e,o);if(n){n()}})}else{r.css("display","block");a.onExpand.call(e,o);if(n){n()}}}else{var s=h('<ul style="display:none"></ul>').insertAfter(t);c(e,s[0],{id:o.id},function(){if(s.is(":empty")){s.remove()}if(a.animate){s.slideDown("normal",function(){a.onExpand.call(e,o);if(n){n()}})}else{s.css("display","block");a.onExpand.call(e,o);if(n){n()}}})}}function b(e,t){var n=h.data(e,"tree").options;var a=h(t).children("span.tree-hit");if(a.length==0){return}if(a.hasClass("tree-collapsed")){return}var i=T(e,t);if(n.onBeforeCollapse.call(e,i)==false){return}a.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");a.next().removeClass("tree-folder-open");var o=h(t).next();if(n.animate){o.slideUp("normal",function(){n.onCollapse.call(e,i)})}else{o.css("display","none");n.onCollapse.call(e,i)}}function m(e,t){var n=h(t).children("span.tree-hit");if(n.length==0){return}if(n.hasClass("tree-expanded")){b(e,t)}else{f(e,t)}}function n(e,t){var n=w(e,t);if(t){n.unshift(T(e,t))}for(var a=0;a<n.length;a++){f(e,n[a].target)}}function a(e,t){var n=[];var a=_(e,t);while(a){n.unshift(a);a=_(e,a.target)}for(var i=0;i<n.length;i++){f(e,n[i].target)}}function g(e,t){var n=w(e,t);if(t){n.unshift(T(e,t))}for(var a=0;a<n.length;a++){b(e,n[a].target)}}function t(e){var t=x(e);if(t.length){return t[0]}else{return null}}function x(t){var n=[];h(t).children("li").each(function(){var e=h(this).children("div.tree-node");n.push(T(t,e[0]))});return n}function w(t,e){var n=[];if(e){o(h(e))}else{var a=x(t);for(var i=0;i<a.length;i++){n.push(a[i]);o(h(a[i].target))}}function o(e){e.next().find("div.tree-node").each(function(){n.push(T(t,this))})}return n}function _(e,t){var n=h(t).parent().parent();if(n[0]==e){return null}else{return T(e,n.prev()[0])}}function $(t,e){e=e||"checked";var n="";if(e=="checked"){n="span.tree-checkbox1"}else{if(e=="unchecked"){n="span.tree-checkbox0"}else{if(e=="indeterminate"){n="span.tree-checkbox2"}}}var a=[];h(t).find(n).each(function(){var e=h(this).parent();a.push(T(t,e[0]))});return a}function C(e){var t=h(e).find("div.tree-node-selected");if(t.length){return T(e,t[0])}else{return null}}function y(e,t){var n=h(t.parent);var a;if(n.length==0){a=h(e)}else{a=n.next();if(a.length==0){a=h("<ul></ul>").insertAfter(n)}}if(t.data&&t.data.length){var i=n.find("span.tree-icon");if(i.hasClass("tree-file")){i.removeClass("tree-file").addClass("tree-folder tree-folder-open");var o=h('<span class="tree-hit tree-expanded"></span>').insertBefore(i);if(o.prev().length){o.prev().remove()}}}u(e,a[0],t.data,true);d(e,a.prev())}function k(e,t){var n=t.before||t.after;var a=_(e,n);var i;if(a){y(e,{parent:a.target,data:[t.data]});i=h(a.target).next().children("li:last")}else{y(e,{parent:null,data:[t.data]});i=h(e).children("li:last")}if(t.before){i.insertBefore(h(n).parent())}else{i.insertAfter(h(n).parent())}}function F(e,t){var n=_(e,t);var a=h(t);var i=a.parent();var o=i.parent();i.remove();if(o.children("li").length==0){var a=o.prev();a.find(".tree-icon").removeClass("tree-folder").addClass("tree-file");a.find(".tree-hit").remove();
h('<span class="tree-indent"></span>').prependTo(a);if(o[0]!=e){o.remove()}}if(n){d(e,n.target)}v(e,e)}function z(i,e){function o(a,e){e.children("li").each(function(){var e=h(this).children("div.tree-node");var t=T(i,e[0]);var n=h(this).children("ul");if(n.length){t.children=[];o(t.children,n)}a.push(t)})}if(e){var t=T(i,e);t.children=[];o(t.children,h(e).next());return t}else{return null}}function D(e,t){var n=h.data(e,"tree").options;var a=h(t.target);var i=T(e,t.target);if(i.iconCls){a.find(".tree-icon").removeClass(i.iconCls)}var o=h.extend({},i,t);h.data(t.target,"tree-node",o);a.attr("node-id",o.id);a.find(".tree-title").html(n.formatter.call(e,o));if(o.iconCls){a.find(".tree-icon").addClass(o.iconCls)}if(i.checked!=o.checked){p(e,t.target,o.checked)}}function T(e,t){var n=h.extend({},h.data(t,"tree-node"),{target:t,checked:h(t).find(".tree-checkbox").hasClass("tree-checkbox1")});if(!H(e,t)){n.state=h(t).find(".tree-hit").hasClass("tree-expanded")?"open":"closed"}return n}function W(e,t){var n=h(e).find("div.tree-node[node-id="+t+"]");if(n.length){return T(e,n[0])}else{return null}}function O(e,t){var n=h.data(e,"tree").options;var a=T(e,t);if(n.onBeforeSelect.call(e,a)==false){return}h("div.tree-node-selected",e).removeClass("tree-node-selected");h(t).addClass("tree-node-selected");n.onSelect.call(e,a)}function H(e,t){var n=h(t);var a=n.children("span.tree-hit");return a.length==0}function E(t,n){var e=h.data(t,"tree").options;var a=T(t,n);if(e.onBeforeEdit.call(t,a)==false){return}h(n).css("position","relative");var i=h(n).find(".tree-title");var o=i.outerWidth();i.empty();var r=h('<input class="tree-editor">').appendTo(i);r.val(a.text).focus();r.width(o+20);r.height(document.compatMode=="CSS1Compat"?18-(r.outerHeight()-r.height()):18);r.bind("click",function(e){return false}).bind("mousedown",function(e){e.stopPropagation()}).bind("mousemove",function(e){e.stopPropagation()}).bind("keydown",function(e){if(e.keyCode==13){S(t,n);return false}else{if(e.keyCode==27){A(t,n);return false}}}).bind("blur",function(e){e.stopPropagation();S(t,n)})}function S(e,t){var n=h.data(e,"tree").options;h(t).css("position","");var a=h(t).find("input.tree-editor");var i=a.val();a.remove();var o=T(e,t);o.text=i;D(e,o);n.onAfterEdit.call(e,o)}function A(e,t){var n=h.data(e,"tree").options;h(t).css("position","");h(t).find("input.tree-editor").remove();var a=T(e,t);D(e,a);n.onCancelEdit.call(e,a)}h.fn.tree=function(a,e){if(typeof a=="string"){return h.fn.tree.methods[a](this,e)}var a=a||{};return this.each(function(){var e=h.data(this,"tree");var t;if(e){t=h.extend(e.options,a);e.options=t}else{t=h.extend({},h.fn.tree.defaults,h.fn.tree.parseOptions(this),a);h.data(this,"tree",{options:t,tree:i(this)});var n=o(this);if(n.length&&!t.data){t.data=n}}r(this);if(t.lines){h(this).addClass("tree-lines")}if(t.data){u(this,this,t.data)}else{if(t.dnd){l(this)}else{s(this)}}c(this,this)})};h.fn.tree.methods={options:function(e){return h.data(e[0],"tree").options},loadData:function(e,t){return e.each(function(){u(this,this,t)})},getNode:function(e,t){return T(e[0],t)},getData:function(e,t){return z(e[0],t)},reload:function(e,n){return e.each(function(){if(n){var e=h(n);var t=e.children("span.tree-hit");t.removeClass("tree-expanded tree-expanded-hover").addClass("tree-collapsed");e.next().remove();f(this,n)}else{h(this).empty();c(this,this)}})},getRoot:function(e){return t(e[0])},getRoots:function(e){return x(e[0])},getParent:function(e,t){return _(e[0],t)},getChildren:function(e,t){return w(e[0],t)},getChecked:function(e,t){return $(e[0],t)},getSelected:function(e){return C(e[0])},isLeaf:function(e,t){return H(e[0],t)},find:function(e,t){return W(e[0],t)},select:function(e,t){return e.each(function(){O(this,t)})},check:function(e,t){return e.each(function(){p(this,t,true)})},uncheck:function(e,t){return e.each(function(){p(this,t,false)})},collapse:function(e,t){return e.each(function(){b(this,t)})},expand:function(e,t){return e.each(function(){f(this,t)})},collapseAll:function(e,t){return e.each(function(){g(this,t)})},expandAll:function(e,t){return e.each(function(){n(this,t)})},expandTo:function(e,t){return e.each(function(){a(this,t)})},toggle:function(e,t){return e.each(function(){m(this,t)})},append:function(e,t){return e.each(function(){y(this,t)})},insert:function(e,t){return e.each(function(){k(this,t)})},remove:function(e,t){return e.each(function(){F(this,t)})},pop:function(e,t){var n=e.tree("getData",t);e.tree("remove",t);return n},update:function(e,t){return e.each(function(){D(this,t)})},enableDnd:function(e){return e.each(function(){l(this)})},disableDnd:function(e){return e.each(function(){s(this)})},beginEdit:function(e,t){return e.each(function(){E(this,t)})},endEdit:function(e,t){return e.each(function(){S(this,t)})},cancelEdit:function(e,t){return e.each(function(){A(this,t)})}};h.fn.tree.parseOptions=function(e){var t=h(e);return h.extend({},h.parser.parseOptions(e,["url","method",{checkbox:"boolean",cascadeCheck:"boolean",onlyLeafCheck:"boolean"},{animate:"boolean",lines:"boolean",dnd:"boolean"}]))
};h.fn.tree.defaults={url:null,method:"post",animate:false,checkbox:false,cascadeCheck:true,onlyLeafCheck:false,lines:false,dnd:false,data:null,formatter:function(e){return e.text},loader:function(e,t,n){var a=h(this).tree("options");if(!a.url){return false}h.ajax({type:a.method,url:a.url,data:e,dataType:"json",success:function(e){t(e)},error:function(){n.apply(this,arguments)}})},loadFilter:function(e,t){return e},onBeforeLoad:function(e,t){},onLoadSuccess:function(e,t){},onLoadError:function(){},onClick:function(e){},onDblClick:function(e){},onBeforeExpand:function(e){},onExpand:function(e){},onBeforeCollapse:function(e){},onCollapse:function(e){},onBeforeCheck:function(e,t){},onCheck:function(e,t){},onBeforeSelect:function(e){},onSelect:function(e){},onContextMenu:function(e,t){},onBeforeDrag:function(e){},onStartDrag:function(e){},onStopDrag:function(e){},onDragEnter:function(e,t){},onDragOver:function(e,t){},onDragLeave:function(e,t){},onBeforeDrop:function(e,t,n){},onDrop:function(e,t,n){},onBeforeEdit:function(e){},onAfterEdit:function(e){},onCancelEdit:function(e){}}})(jQuery);(function(s){function n(e){s(e).addClass("tooltip-f")}function a(t){var n=s.data(t,"tooltip").options;s(t).unbind(".tooltip").bind(n.showEvent+".tooltip",function(e){i(t,e)}).bind(n.hideEvent+".tooltip",function(e){o(t,e)}).bind("mousemove.tooltip",function(e){if(n.trackMouse){n.trackMouseX=e.pageX;n.trackMouseY=e.pageY;d(t)}})}function l(e){var t=s.data(e,"tooltip");if(t.showTimer){clearTimeout(t.showTimer);t.showTimer=null}if(t.hideTimer){clearTimeout(t.hideTimer);t.hideTimer=null}}function d(e){var t=s.data(e,"tooltip");if(!t||!t.tip){return}var n=t.options;var a=t.tip;if(n.trackMouse){r=s();var i=n.trackMouseX+n.deltaX;var o=n.trackMouseY+n.deltaY}else{var r=s(e);var i=r.offset().left+n.deltaX;var o=r.offset().top+n.deltaY}switch(n.position){case"right":i+=r._outerWidth()+12+(n.trackMouse?12:0);o-=(a._outerHeight()-r._outerHeight())/2;break;case"left":i-=a._outerWidth()+12+(n.trackMouse?12:0);o-=(a._outerHeight()-r._outerHeight())/2;break;case"top":i-=(a._outerWidth()-r._outerWidth())/2;o-=a._outerHeight()+12+(n.trackMouse?12:0);break;case"bottom":i-=(a._outerWidth()-r._outerWidth())/2;o+=r._outerHeight()+12+(n.trackMouse?12:0);break}a.css({left:i,top:o,zIndex:n.zIndex!=undefined?n.zIndex:s.fn.window?s.fn.window.defaults.zIndex++:""});n.onPosition.call(e,i,o)}function i(a,i){var e=s.data(a,"tooltip");var o=e.options;var r=e.tip;if(!r){r=s('<div tabindex="-1" class="tooltip">'+'<div class="tooltip-content"></div>'+'<div class="tooltip-arrow-outer"></div>'+'<div class="tooltip-arrow"></div>'+"</div>").appendTo("body");e.tip=r;u(a)}r.removeClass("tooltip-top tooltip-bottom tooltip-left tooltip-right").addClass("tooltip-"+o.position);l(a);e.showTimer=setTimeout(function(){d(a);r.show();o.onShow.call(a,i);var e=r.children(".tooltip-arrow-outer");var t=r.children(".tooltip-arrow");var n="border-"+o.position+"-color";e.add(t).css({borderTopColor:"",borderBottomColor:"",borderLeftColor:"",borderRightColor:""});e.css(n,r.css(n));t.css(n,r.css("backgroundColor"))},o.showDelay)}function o(e,t){var n=s.data(e,"tooltip");if(n&&n.tip){l(e);n.hideTimer=setTimeout(function(){n.tip.hide();n.options.onHide.call(e,t)},n.options.hideDelay)}}function u(e,t){var n=s.data(e,"tooltip");var a=n.options;if(t){a.content=t}if(!n.tip){return}var i=typeof a.content=="function"?a.content.call(e):a.content;n.tip.children(".tooltip-content").html(i);a.onUpdate.call(e,i)}function t(e){var t=s.data(e,"tooltip");if(t){l(e);var n=t.options;if(t.tip){t.tip.remove()}if(n._title){s(e).attr("title",n._title)}s.removeData(e,"tooltip");s(e).unbind(".tooltip").removeClass("tooltip-f");n.onDestroy.call(e)}}s.fn.tooltip=function(t,e){if(typeof t=="string"){return s.fn.tooltip.methods[t](this,e)}t=t||{};return this.each(function(){var e=s.data(this,"tooltip");if(e){s.extend(e.options,t)}else{s.data(this,"tooltip",{options:s.extend({},s.fn.tooltip.defaults,s.fn.tooltip.parseOptions(this),t)});n(this)}a(this);u(this)})};s.fn.tooltip.methods={options:function(e){return s.data(e[0],"tooltip").options},tip:function(e){return s.data(e[0],"tooltip").tip},arrow:function(e){return e.tooltip("tip").children(".tooltip-arrow-outer,.tooltip-arrow")},show:function(e,t){return e.each(function(){i(this,t)})},hide:function(e,t){return e.each(function(){o(this,t)})},update:function(e,t){return e.each(function(){u(this,t)})},reposition:function(e){return e.each(function(){d(this)})},destroy:function(e){return e.each(function(){t(this)})}};s.fn.tooltip.parseOptions=function(e){var t=s(e);var n=s.extend({},s.parser.parseOptions(e,["position","showEvent","hideEvent","content",{deltaX:"number",deltaY:"number",showDelay:"number",hideDelay:"number"}]),{_title:t.attr("title")});t.attr("title","");if(!n.content){n.content=n._title}return n};s.fn.tooltip.defaults={position:"bottom",content:null,trackMouse:false,deltaX:0,deltaY:0,showEvent:"mouseenter",hideEvent:"mouseleave",showDelay:200,hideDelay:100,onShow:function(e){},onHide:function(e){},onUpdate:function(e){},onPosition:function(e,t){},onDestroy:function(){}}
})(jQuery);(function($){$.fn._remove=function(){return this.each(function(){$(this).remove();try{this.outerHTML=""}catch(e){}})};function _1c9(e){e._remove()}function _1ca(e,t){var n=$.data(e,"panel").options;var a=$.data(e,"panel").panel;var i=a.children("div.panel-header");var o=a.children("div.panel-body");if(t){if(t.width){n.width=t.width}if(t.height){n.height=t.height}if(t.left!=null){n.left=t.left}if(t.top!=null){n.top=t.top}}n.fit?$.extend(n,a._fit()):a._fit(false);a.css({left:n.left,top:n.top});if(!isNaN(n.width)){a._outerWidth(n.width)}else{a.width("auto")}i.add(o)._outerWidth(a.width());if(!isNaN(n.height)){a._outerHeight(n.height);o._outerHeight(a.height()-i._outerHeight())}else{o.height("auto")}a.css("height","");n.onResize.apply(e,[n.width,n.height]);a.find(">div.panel-body>div").triggerHandler("_resize")}function _1d0(e,t){var n=$.data(e,"panel").options;var a=$.data(e,"panel").panel;if(t){if(t.left!=null){n.left=t.left}if(t.top!=null){n.top=t.top}}a.css({left:n.left,top:n.top});n.onMove.apply(e,[n.left,n.top])}function _1d4(t){$(t).addClass("panel-body");var e=$('<div class="panel"></div>').insertBefore(t);e[0].appendChild(t);e.bind("_resize",function(){var e=$.data(t,"panel").options;if(e.fit==true){_1ca(t)}return false});return e}function _1d7(_1d8){var opts=$.data(_1d8,"panel").options;var _1d9=$.data(_1d8,"panel").panel;if(opts.tools&&typeof opts.tools=="string"){_1d9.find(">div.panel-header>div.panel-tool .panel-tool-a").appendTo(opts.tools)}_1c9(_1d9.children("div.panel-header"));if(opts.title&&!opts.noheader){var _1da=$('<div class="panel-header"><div class="panel-title">'+opts.title+"</div></div>").prependTo(_1d9);if(opts.iconCls){_1da.find(".panel-title").addClass("panel-with-icon");$('<div class="panel-icon"></div>').addClass(opts.iconCls).appendTo(_1da)}var tool=$('<div class="panel-tool"></div>').appendTo(_1da);tool.bind("click",function(e){e.stopPropagation()});if(opts.tools){if(typeof opts.tools=="string"){$(opts.tools).children().each(function(){$(this).addClass($(this).attr("iconCls")).addClass("panel-tool-a").appendTo(tool)})}else{for(var i=0;i<opts.tools.length;i++){var t=$('<a href="javascript:void(0)"></a>').addClass(opts.tools[i].iconCls).appendTo(tool);if(opts.tools[i].handler){t.bind("click",eval(opts.tools[i].handler))}}}}if(opts.collapsible){$('<a class="panel-tool-collapse" href="javascript:void(0)"></a>').appendTo(tool).bind("click",function(){if(opts.collapsed==true){_1f5(_1d8,true)}else{_1ea(_1d8,true)}return false})}if(opts.minimizable){$('<a class="panel-tool-min" href="javascript:void(0)"></a>').appendTo(tool).bind("click",function(){_1fb(_1d8);return false})}if(opts.maximizable){$('<a class="panel-tool-max" href="javascript:void(0)"></a>').appendTo(tool).bind("click",function(){if(opts.maximized==true){_1fe(_1d8)}else{_1e9(_1d8)}return false})}if(opts.closable){$('<a class="panel-tool-close" href="javascript:void(0)"></a>').appendTo(tool).bind("click",function(){_1db(_1d8);return false})}_1d9.children("div.panel-body").removeClass("panel-body-noheader")}else{_1d9.children("div.panel-body").addClass("panel-body-noheader")}}function _1dc(t){var n=$.data(t,"panel");var a=n.options;if(a.href){if(!n.isLoaded||!a.cache){n.isLoaded=false;_1df(t);if(a.loadingMessage){$(t).html($('<div class="panel-loading"></div>').html(a.loadingMessage))}$.ajax({url:a.href,cache:false,dataType:"html",success:function(e){i(a.extractor.call(t,e));a.onLoad.apply(t,arguments);n.isLoaded=true}})}}else{if(a.content){if(!n.isLoaded){_1df(t);i(a.content);n.isLoaded=true}}}function i(e){$(t).html(e);if($.parser){$.parser.parse($(t))}}}function _1df(e){var t=$(e);t.find(".combo-f").each(function(){$(this).combo("destroy")});t.find(".m-btn").each(function(){$(this).menubutton("destroy")});t.find(".s-btn").each(function(){$(this).splitbutton("destroy")});t.find(".tooltip-f").tooltip("destroy")}function _1e3(e){$(e).find("div.panel:visible,div.accordion:visible,div.tabs-container:visible,div.layout:visible").each(function(){$(this).triggerHandler("_resize",[true])})}function _1e5(e,t){var n=$.data(e,"panel").options;var a=$.data(e,"panel").panel;if(t!=true){if(n.onBeforeOpen.call(e)==false){return}}a.show();n.closed=false;n.minimized=false;var i=a.children("div.panel-header").find("a.panel-tool-restore");if(i.length){n.maximized=true}n.onOpen.call(e);if(n.maximized==true){n.maximized=false;_1e9(e)}if(n.collapsed==true){n.collapsed=false;_1ea(e)}if(!n.collapsed){_1dc(e);_1e3(e)}}function _1db(e,t){var n=$.data(e,"panel").options;var a=$.data(e,"panel").panel;if(t!=true){if(n.onBeforeClose.call(e)==false){return}}a._fit(false);a.hide();n.closed=true;n.onClose.call(e)}function _1ee(e,t){var n=$.data(e,"panel").options;var a=$.data(e,"panel").panel;if(t!=true){if(n.onBeforeDestroy.call(e)==false){return}}_1df(e);_1c9(a);n.onDestroy.call(e)}function _1ea(e,t){var n=$.data(e,"panel").options;var a=$.data(e,"panel").panel;var i=a.children("div.panel-body");var o=a.children("div.panel-header").find("a.panel-tool-collapse");
if(n.collapsed==true){return}i.stop(true,true);if(n.onBeforeCollapse.call(e)==false){return}o.addClass("panel-tool-expand");if(t==true){i.slideUp("normal",function(){n.collapsed=true;n.onCollapse.call(e)})}else{i.hide();n.collapsed=true;n.onCollapse.call(e)}}function _1f5(e,t){var n=$.data(e,"panel").options;var a=$.data(e,"panel").panel;var i=a.children("div.panel-body");var o=a.children("div.panel-header").find("a.panel-tool-collapse");if(n.collapsed==false){return}i.stop(true,true);if(n.onBeforeExpand.call(e)==false){return}o.removeClass("panel-tool-expand");if(t==true){i.slideDown("normal",function(){n.collapsed=false;n.onExpand.call(e);_1dc(e);_1e3(e)})}else{i.show();n.collapsed=false;n.onExpand.call(e);_1dc(e);_1e3(e)}}function _1e9(e){var t=$.data(e,"panel").options;var n=$.data(e,"panel").panel;var a=n.children("div.panel-header").find("a.panel-tool-max");if(t.maximized==true){return}a.addClass("panel-tool-restore");if(!$.data(e,"panel").original){$.data(e,"panel").original={width:t.width,height:t.height,left:t.left,top:t.top,fit:t.fit}}t.left=0;t.top=0;t.fit=true;_1ca(e);t.minimized=false;t.maximized=true;t.onMaximize.call(e)}function _1fb(e){var t=$.data(e,"panel").options;var n=$.data(e,"panel").panel;n._fit(false);n.hide();t.minimized=true;t.maximized=false;t.onMinimize.call(e)}function _1fe(e){var t=$.data(e,"panel").options;var n=$.data(e,"panel").panel;var a=n.children("div.panel-header").find("a.panel-tool-max");if(t.maximized==false){return}n.show();a.removeClass("panel-tool-restore");$.extend(t,$.data(e,"panel").original);_1ca(e);t.minimized=false;t.maximized=false;$.data(e,"panel").original=null;t.onRestore.call(e)}function _201(e){var t=$.data(e,"panel").options;var n=$.data(e,"panel").panel;var a=$(e).panel("header");var i=$(e).panel("body");n.css(t.style);n.addClass(t.cls);if(t.border){a.removeClass("panel-header-noborder");i.removeClass("panel-body-noborder")}else{a.addClass("panel-header-noborder");i.addClass("panel-body-noborder")}a.addClass(t.headerCls);i.addClass(t.bodyCls);if(t.id){$(e).attr("id",t.id)}else{$(e).attr("id","")}}function _205(e,t){$.data(e,"panel").options.title=t;$(e).panel("header").find("div.panel-title").html(t)}var TO=false;var _208=true;$(window).unbind(".panel").bind("resize.panel",function(){if(!_208){return}if(TO!==false){clearTimeout(TO)}TO=setTimeout(function(){_208=false;var e=$("body.layout");if(e.length){e.layout("resize")}else{$("body").children("div.panel,div.accordion,div.tabs-container,div.layout").triggerHandler("_resize")}_208=true;TO=false},200)});$.fn.panel=function(n,e){if(typeof n=="string"){return $.fn.panel.methods[n](this,e)}n=n||{};return this.each(function(){var e=$.data(this,"panel");var t;if(e){t=$.extend(e.options,n);e.isLoaded=false}else{t=$.extend({},$.fn.panel.defaults,$.fn.panel.parseOptions(this),n);$(this).attr("title","");e=$.data(this,"panel",{options:t,panel:_1d4(this),isLoaded:false})}_1d7(this);_201(this);if(t.doSize==true){e.panel.css("display","block");_1ca(this)}if(t.closed==true||t.minimized==true){e.panel.hide()}else{_1e5(this)}})};$.fn.panel.methods={options:function(e){return $.data(e[0],"panel").options},panel:function(e){return $.data(e[0],"panel").panel},header:function(e){return $.data(e[0],"panel").panel.find(">div.panel-header")},body:function(e){return $.data(e[0],"panel").panel.find(">div.panel-body")},setTitle:function(e,t){return e.each(function(){_205(this,t)})},open:function(e,t){return e.each(function(){_1e5(this,t)})},close:function(e,t){return e.each(function(){_1db(this,t)})},destroy:function(e,t){return e.each(function(){_1ee(this,t)})},refresh:function(e,t){return e.each(function(){$.data(this,"panel").isLoaded=false;if(t){$.data(this,"panel").options.href=t}_1dc(this)})},resize:function(e,t){return e.each(function(){_1ca(this,t)})},move:function(e,t){return e.each(function(){_1d0(this,t)})},maximize:function(e){return e.each(function(){_1e9(this)})},minimize:function(e){return e.each(function(){_1fb(this)})},restore:function(e){return e.each(function(){_1fe(this)})},collapse:function(e,t){return e.each(function(){_1ea(this,t)})},expand:function(e,t){return e.each(function(){_1f5(this,t)})}};$.fn.panel.parseOptions=function(e){var t=$(e);return $.extend({},$.parser.parseOptions(e,["id","width","height","left","top","title","iconCls","cls","headerCls","bodyCls","tools","href",{cache:"boolean",fit:"boolean",border:"boolean",noheader:"boolean"},{collapsible:"boolean",minimizable:"boolean",maximizable:"boolean"},{closable:"boolean",collapsed:"boolean",minimized:"boolean",maximized:"boolean",closed:"boolean"}]),{loadingMessage:t.attr("loadingMessage")!=undefined?t.attr("loadingMessage"):undefined})};$.fn.panel.defaults={id:null,title:null,iconCls:null,width:"auto",height:"auto",left:null,top:null,cls:null,headerCls:null,bodyCls:null,style:{},href:null,cache:true,fit:false,border:true,doSize:true,noheader:false,content:null,collapsible:false,minimizable:false,maximizable:false,closable:false,collapsed:false,minimized:false,maximized:false,closed:false,tools:null,href:null,loadingMessage:"Loading...",extractor:function(e){var t=/<body[^>]*>((.|[\n\r])*)<\/body>/im;
var n=t.exec(e);if(n){return n[1]}else{return e}},onLoad:function(){},onBeforeOpen:function(){},onOpen:function(){},onBeforeClose:function(){},onClose:function(){},onBeforeDestroy:function(){},onDestroy:function(){},onResize:function(e,t){},onMove:function(e,t){},onMaximize:function(){},onRestore:function(){},onMinimize:function(){},onBeforeCollapse:function(){},onBeforeExpand:function(){},onCollapse:function(){},onExpand:function(){}}})(jQuery);(function(r){function a(e,t){var n=r.data(e,"window").options;if(t){if(t.width){n.width=t.width}if(t.height){n.height=t.height}if(t.left!=null){n.left=t.left}if(t.top!=null){n.top=t.top}}r(e).panel("resize",n)}function s(e,t){var n=r.data(e,"window");if(t){if(t.left!=null){n.options.left=t.left}if(t.top!=null){n.options.top=t.top}}r(e).panel("move",n.options);if(n.shadow){n.shadow.css({left:n.options.left,top:n.options.top})}}function t(e,t){var n=r.data(e,"window");var a=n.options;var i=a.width;if(isNaN(i)){i=n.window._outerWidth()}if(a.inline){var o=n.window.parent();a.left=(o.width()-i)/2+o.scrollLeft()}else{a.left=(r(window)._outerWidth()-i)/2+r(document).scrollLeft()}if(t){s(e)}}function n(e,t){var n=r.data(e,"window");var a=n.options;var i=a.height;if(isNaN(i)){i=n.window._outerHeight()}if(a.inline){var o=n.window.parent();a.top=(o.height()-i)/2+o.scrollTop()}else{a.top=(r(window)._outerHeight()-i)/2+r(document).scrollTop()}if(t){s(e)}}function i(a){var i=r.data(a,"window");var e=r(a).panel(r.extend({},i.options,{border:false,doSize:true,closed:true,cls:"window",headerCls:"window-header",bodyCls:"window-body "+(i.options.noheader?"window-body-noheader":""),onBeforeDestroy:function(){if(i.options.onBeforeDestroy.call(a)==false){return false}if(i.shadow){i.shadow.remove()}if(i.mask){i.mask.remove()}},onClose:function(){if(i.shadow){i.shadow.hide()}if(i.mask){i.mask.hide()}i.options.onClose.call(a)},onOpen:function(){if(i.mask){i.mask.css({display:"block",zIndex:r.fn.window.defaults.zIndex++})}if(i.shadow){i.shadow.css({display:"block",zIndex:r.fn.window.defaults.zIndex++,left:i.options.left,top:i.options.top,width:i.window._outerWidth(),height:i.window._outerHeight()})}i.window.css("z-index",r.fn.window.defaults.zIndex++);i.options.onOpen.call(a)},onResize:function(e,t){var n=r(this).panel("options");r.extend(i.options,{width:n.width,height:n.height,left:n.left,top:n.top});if(i.shadow){i.shadow.css({left:i.options.left,top:i.options.top,width:i.window._outerWidth(),height:i.window._outerHeight()})}i.options.onResize.call(a,e,t)},onMinimize:function(){if(i.shadow){i.shadow.hide()}if(i.mask){i.mask.hide()}i.options.onMinimize.call(a)},onBeforeCollapse:function(){if(i.options.onBeforeCollapse.call(a)==false){return false}if(i.shadow){i.shadow.hide()}},onExpand:function(){if(i.shadow){i.shadow.show()}i.options.onExpand.call(a)}}));i.window=e.panel("panel");if(i.mask){i.mask.remove()}if(i.options.modal==true){i.mask=r('<div class="window-mask"></div>').insertAfter(i.window);i.mask.css({width:i.options.inline?i.mask.parent().width():l().width,height:i.options.inline?i.mask.parent().height():l().height,display:"none"})}if(i.shadow){i.shadow.remove()}if(i.options.shadow==true){i.shadow=r('<div class="window-shadow"></div>').insertAfter(i.window);i.shadow.css({display:"none"})}if(i.options.left==null){t(a)}if(i.options.top==null){n(a)}s(a);if(i.options.closed==false){e.window("open")}}function o(t){var n=r.data(t,"window");n.window.draggable({handle:">div.panel-header>div.panel-title",disabled:n.options.draggable==false,onStartDrag:function(e){if(n.mask){n.mask.css("z-index",r.fn.window.defaults.zIndex++)}if(n.shadow){n.shadow.css("z-index",r.fn.window.defaults.zIndex++)}n.window.css("z-index",r.fn.window.defaults.zIndex++);if(!n.proxy){n.proxy=r('<div class="window-proxy"></div>').insertAfter(n.window)}n.proxy.css({display:"none",zIndex:r.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top});n.proxy._outerWidth(n.window._outerWidth());n.proxy._outerHeight(n.window._outerHeight());setTimeout(function(){if(n.proxy){n.proxy.show()}},500)},onDrag:function(e){n.proxy.css({display:"block",left:e.data.left,top:e.data.top});return false},onStopDrag:function(e){n.options.left=e.data.left;n.options.top=e.data.top;r(t).window("move");n.proxy.remove();n.proxy=null}});n.window.resizable({disabled:n.options.resizable==false,onStartResize:function(e){n.pmask=r('<div class="window-proxy-mask"></div>').insertAfter(n.window);n.pmask.css({zIndex:r.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top,width:n.window._outerWidth(),height:n.window._outerHeight()});if(!n.proxy){n.proxy=r('<div class="window-proxy"></div>').insertAfter(n.window)}n.proxy.css({zIndex:r.fn.window.defaults.zIndex++,left:e.data.left,top:e.data.top});n.proxy._outerWidth(e.data.width);n.proxy._outerHeight(e.data.height)},onResize:function(e){n.proxy.css({left:e.data.left,top:e.data.top});n.proxy._outerWidth(e.data.width);n.proxy._outerHeight(e.data.height);return false},onStopResize:function(e){r.extend(n.options,{left:e.data.left,top:e.data.top,width:e.data.width,height:e.data.height});
a(t);n.pmask.remove();n.pmask=null;n.proxy.remove();n.proxy=null}})}function l(){if(document.compatMode=="BackCompat"){return{width:Math.max(document.body.scrollWidth,document.body.clientWidth),height:Math.max(document.body.scrollHeight,document.body.clientHeight)}}else{return{width:Math.max(document.documentElement.scrollWidth,document.documentElement.clientWidth),height:Math.max(document.documentElement.scrollHeight,document.documentElement.clientHeight)}}}r(window).resize(function(){r("body>div.window-mask").css({width:r(window)._outerWidth(),height:r(window)._outerHeight()});setTimeout(function(){r("body>div.window-mask").css({width:l().width,height:l().height})},50)});r.fn.window=function(t,e){if(typeof t=="string"){var n=r.fn.window.methods[t];if(n){return n(this,e)}else{return this.panel(t,e)}}t=t||{};return this.each(function(){var e=r.data(this,"window");if(e){r.extend(e.options,t)}else{e=r.data(this,"window",{options:r.extend({},r.fn.window.defaults,r.fn.window.parseOptions(this),t)});if(!e.options.inline){document.body.appendChild(this)}}i(this);o(this)})};r.fn.window.methods={options:function(e){var t=e.panel("options");var n=r.data(e[0],"window").options;return r.extend(n,{closed:t.closed,collapsed:t.collapsed,minimized:t.minimized,maximized:t.maximized})},window:function(e){return r.data(e[0],"window").window},resize:function(e,t){return e.each(function(){a(this,t)})},move:function(e,t){return e.each(function(){s(this,t)})},hcenter:function(e){return e.each(function(){t(this,true)})},vcenter:function(e){return e.each(function(){n(this,true)})},center:function(e){return e.each(function(){t(this);n(this);s(this)})}};r.fn.window.parseOptions=function(e){return r.extend({},r.fn.panel.parseOptions(e),r.parser.parseOptions(e,[{draggable:"boolean",resizable:"boolean",shadow:"boolean",modal:"boolean",inline:"boolean"}]))};r.fn.window.defaults=r.extend({},r.fn.panel.defaults,{zIndex:9000,draggable:true,resizable:true,shadow:true,modal:false,inline:false,title:"New Window",collapsible:true,minimizable:true,maximizable:true,closable:true,closed:false})})(jQuery);(function($){function _23f(e){var t=document.createElement("div");while(e.firstChild){t.appendChild(e.firstChild)}e.appendChild(t);var n=$(t);n.attr("style",$(e).attr("style"));$(e).removeAttr("style").css("overflow","hidden");n.panel({border:false,doSize:false,bodyCls:"dialog-content"});return n}function _242(_243){var opts=$.data(_243,"dialog").options;var _244=$.data(_243,"dialog").contentPanel;if(opts.toolbar){if(typeof opts.toolbar=="string"){$(opts.toolbar).addClass("dialog-toolbar").prependTo(_243);$(opts.toolbar).show()}else{$(_243).find("div.dialog-toolbar").remove();var _245=$('<div class="dialog-toolbar"><table cellspacing="0" cellpadding="0"><tr></tr></table></div>').prependTo(_243);var tr=_245.find("tr");for(var i=0;i<opts.toolbar.length;i++){var btn=opts.toolbar[i];if(btn=="-"){$('<td><div class="dialog-tool-separator"></div></td>').appendTo(tr)}else{var td=$("<td></td>").appendTo(tr);var tool=$('<a href="javascript:void(0)"></a>').appendTo(td);tool[0].onclick=eval(btn.handler||function(){});tool.linkbutton($.extend({},btn,{plain:true}))}}}}else{$(_243).find("div.dialog-toolbar").remove()}if(opts.buttons){if(typeof opts.buttons=="string"){$(opts.buttons).addClass("dialog-button").appendTo(_243);$(opts.buttons).show()}else{$(_243).find("div.dialog-button").remove();var _246=$('<div class="dialog-button"></div>').appendTo(_243);for(var i=0;i<opts.buttons.length;i++){var p=opts.buttons[i];var _247=$('<a href="javascript:void(0)"></a>').appendTo(_246);if(p.handler){_247[0].onclick=p.handler}_247.linkbutton(p)}}}else{$(_243).find("div.dialog-button").remove()}var _248=opts.href;var _249=opts.content;opts.href=null;opts.content=null;_244.panel({closed:opts.closed,cache:opts.cache,href:_248,content:_249,onLoad:function(){if(opts.height=="auto"){$(_243).window("resize")}opts.onLoad.apply(_243,arguments)}});$(_243).window($.extend({},opts,{onOpen:function(){if(_244.panel("options").closed){_244.panel("open")}if(opts.onOpen){opts.onOpen.call(_243)}},onResize:function(e,t){var n=$(_243);_244.panel("panel").show();_244.panel("resize",{width:n.width(),height:t=="auto"?"auto":n.height()-n.children("div.dialog-toolbar")._outerHeight()-n.children("div.dialog-button")._outerHeight()});if(opts.onResize){opts.onResize.call(_243,e,t)}}}));opts.href=_248;opts.content=_249}function _24d(e,t){var n=$.data(e,"dialog").contentPanel;n.panel("refresh",t)}$.fn.dialog=function(t,e){if(typeof t=="string"){var n=$.fn.dialog.methods[t];if(n){return n(this,e)}else{return this.window(t,e)}}t=t||{};return this.each(function(){var e=$.data(this,"dialog");if(e){$.extend(e.options,t)}else{$.data(this,"dialog",{options:$.extend({},$.fn.dialog.defaults,$.fn.dialog.parseOptions(this),t),contentPanel:_23f(this)})}_242(this)})};$.fn.dialog.methods={options:function(e){var t=$.data(e[0],"dialog").options;var n=e.panel("options");$.extend(t,{closed:n.closed,collapsed:n.collapsed,minimized:n.minimized,maximized:n.maximized});
var a=$.data(e[0],"dialog").contentPanel;return t},dialog:function(e){return e.window("window")},refresh:function(e,t){return e.each(function(){_24d(this,t)})}};$.fn.dialog.parseOptions=function(e){return $.extend({},$.fn.window.parseOptions(e),$.parser.parseOptions(e,["toolbar","buttons"]))};$.fn.dialog.defaults=$.extend({},$.fn.window.defaults,{title:"New Dialog",collapsible:false,minimizable:false,maximizable:false,resizable:false,toolbar:null,buttons:null})})(jQuery);(function($){function show(e,t,n,a){var i=$(e).window("window");if(!i){return}switch(t){case null:i.show();break;case"slide":i.slideDown(n);break;case"fade":i.fadeIn(n);break;case"show":i.show(n);break}var o=null;if(a>0){o=setTimeout(function(){hide(e,t,n)},a)}i.hover(function(){if(o){clearTimeout(o)}},function(){if(a>0){o=setTimeout(function(){hide(e,t,n)},a)}})}function hide(e,t,n){if(e.locked==true){return}e.locked=true;var a=$(e).window("window");if(!a){return}switch(t){case null:a.hide();break;case"slide":a.slideUp(n);break;case"fade":a.fadeOut(n);break;case"show":a.hide(n);break}setTimeout(function(){$(e).window("destroy")},n)}function _25c(e){var t=$.extend({},$.fn.window.defaults,{collapsible:false,minimizable:false,maximizable:false,shadow:false,draggable:false,resizable:false,closed:true,style:{left:"",top:"",right:0,zIndex:$.fn.window.defaults.zIndex++,bottom:-document.body.scrollTop-document.documentElement.scrollTop},onBeforeOpen:function(){show(this,t.showType,t.showSpeed,t.timeout);return false},onBeforeClose:function(){hide(this,t.showType,t.showSpeed);return false}},{title:"",width:250,height:100,showType:"slide",showSpeed:600,msg:"",timeout:4000},e);t.style.zIndex=$.fn.window.defaults.zIndex++;var n=$('<div class="messager-body"></div>').html(t.msg).appendTo("body");n.window(t);n.window("window").css(t.style);n.window("open");return n}function _25e(_25f,_260,_261){var win=$('<div class="messager-body"></div>').appendTo("body");win.append(_260);if(_261){var tb=$('<div class="messager-button"></div>').appendTo(win);for(var _262 in _261){$("<a></a>").attr("href","javascript:void(0)").text(_262).css("margin-left",10).bind("click",eval(_261[_262])).appendTo(tb).linkbutton()}}win.window({title:_25f,noheader:_25f?false:true,width:300,height:"auto",modal:true,collapsible:false,minimizable:false,maximizable:false,resizable:false,onClose:function(){setTimeout(function(){win.window("destroy")},100)}});win.window("window").addClass("messager-window");win.children("div.messager-button").children("a:first").focus();return win}$.messager={show:function(e){return _25c(e)},alert:function(e,t,n,a){var i="<div>"+t+"</div>";switch(n){case"error":i='<div class="messager-icon messager-error"></div>'+i;break;case"info":i='<div class="messager-icon messager-info"></div>'+i;break;case"question":i='<div class="messager-icon messager-question"></div>'+i;break;case"warning":i='<div class="messager-icon messager-warning"></div>'+i;break}i+='<div style="clear:both;"/>';var o={};o[$.messager.defaults.ok]=function(){r.window("close");if(a){a();return false}};var r=_25e(e,i,o);return r},confirm:function(e,t,n){var a='<div class="messager-icon messager-question"></div>'+"<div>"+t+"</div>"+'<div style="clear:both;"/>';var i={};i[$.messager.defaults.ok]=function(){o.window("close");if(n){n(true);return false}};i[$.messager.defaults.cancel]=function(){o.window("close");if(n){n(false);return false}};var o=_25e(e,a,i);return o},prompt:function(e,t,n){var a='<div class="messager-icon messager-question"></div>'+"<div>"+t+"</div>"+"<br/>"+'<div style="clear:both;"/>'+'<div><input class="messager-input" type="text"/></div>';var i={};i[$.messager.defaults.ok]=function(){o.window("close");if(n){n($(".messager-input",o).val());return false}};i[$.messager.defaults.cancel]=function(){o.window("close");if(n){n();return false}};var o=_25e(e,a,i);o.children("input.messager-input").focus();return o},progress:function(e){var t={bar:function(){return $("body>div.messager-window").find("div.messager-p-bar")},close:function(){var e=$("body>div.messager-window>div.messager-body:has(div.messager-progress)");if(e.length){e.window("close")}}};if(typeof e=="string"){var n=t[e];return n()}var a=$.extend({title:"",msg:"",text:undefined,interval:300},e||{});var i='<div class="messager-progress"><div class="messager-p-msg"></div><div class="messager-p-bar"></div></div>';var o=_25e(a.title,i,null);o.find("div.messager-p-msg").html(a.msg);var r=o.find("div.messager-p-bar");r.progressbar({text:a.text});o.window({closable:false,onClose:function(){if(this.timer){clearInterval(this.timer)}$(this).window("destroy")}});if(a.interval){o[0].timer=setInterval(function(){var e=r.progressbar("getValue");e+=10;if(e>100){e=0}r.progressbar("setValue",e)},a.interval)}return o}};$.messager.defaults={ok:"Ok",cancel:"Cancel"}})(jQuery);(function(d){function l(e){var t=d.data(e,"accordion").options;var n=d.data(e,"accordion").panels;var a=d(e);t.fit?d.extend(t,a._fit()):a._fit(false);if(t.width>0){a._outerWidth(t.width)
}var i="auto";if(t.height>0){a._outerHeight(t.height);var o=n.length?n[0].panel("header").css("height","")._outerHeight():"auto";var i=a.height()-(n.length-1)*o}for(var r=0;r<n.length;r++){var s=n[r];var l=s.panel("header");l._outerHeight(o);s.panel("resize",{width:a.width(),height:i})}}function u(e){var t=d.data(e,"accordion").panels;for(var n=0;n<t.length;n++){var a=t[n];if(a.panel("options").collapsed==false){return a}}return null}function c(e,t){var n=d.data(e,"accordion").panels;for(var a=0;a<n.length;a++){if(n[a][0]==d(t)[0]){return a}}return -1}function f(e,t,n){var a=d.data(e,"accordion").panels;if(typeof t=="number"){if(t<0||t>=a.length){return null}else{var i=a[t];if(n){a.splice(t,1)}return i}}for(var o=0;o<a.length;o++){var i=a[o];if(i.panel("options").title==t){if(n){a.splice(o,1)}return i}}return null}function i(e){var t=d.data(e,"accordion").options;var n=d(e);if(t.border){n.removeClass("accordion-noborder")}else{n.addClass("accordion-noborder")}}function o(a){var e=d(a);e.addClass("accordion");var n=[];e.children("div").each(function(){var e=d.extend({},d.parser.parseOptions(this),{selected:d(this).attr("selected")?true:undefined});var t=d(this);n.push(t);r(a,t,e)});e.bind("_resize",function(e,t){var n=d.data(a,"accordion").options;if(n.fit==true||t){l(a)}return false});return{accordion:e,panels:n}}function r(n,a,e){a.panel(d.extend({},e,{collapsible:false,minimizable:false,maximizable:false,closable:false,doSize:false,collapsed:true,headerCls:"accordion-header",bodyCls:"accordion-body",onBeforeExpand:function(){var e=u(n);if(e){var t=d(e).panel("header");t.removeClass("accordion-header-selected");t.find(".accordion-collapse").triggerHandler("click")}var t=a.panel("header");t.addClass("accordion-header-selected");t.find(".accordion-collapse").removeClass("accordion-expand")},onExpand:function(){var e=d.data(n,"accordion").options;e.onSelect.call(n,a.panel("options").title,c(n,this))},onBeforeCollapse:function(){var e=a.panel("header");e.removeClass("accordion-header-selected");e.find(".accordion-collapse").addClass("accordion-expand")}}));var t=a.panel("header");var i=d('<a class="accordion-collapse accordion-expand" href="javascript:void(0)"></a>').appendTo(t.children("div.panel-tool"));i.bind("click",function(e){var t=d.data(n,"accordion").options.animate;p(n);if(a.panel("options").collapsed){a.panel("expand",t)}else{a.panel("collapse",t)}return false});t.click(function(){d(this).find(".accordion-collapse").triggerHandler("click");return false})}function h(e,t){var n=f(e,t);if(!n){return}var a=u(e);if(a&&a[0]==n[0]){return}n.panel("header").triggerHandler("click")}function s(a){var e=d.data(a,"accordion").panels;for(var t=0;t<e.length;t++){if(e[t].panel("options").selected){n(t);return}}if(e.length){n(0)}function n(e){var t=d.data(a,"accordion").options;var n=t.animate;t.animate=false;h(a,e);t.animate=n}}function p(e){var t=d.data(e,"accordion").panels;for(var n=0;n<t.length;n++){t[n].stop(true,true)}}function n(e,t){var n=d.data(e,"accordion").options;var a=d.data(e,"accordion").panels;if(t.selected==undefined){t.selected=true}p(e);var i=d("<div></div>").appendTo(e);a.push(i);r(e,i,t);l(e);n.onAdd.call(e,t.title,a.length-1);if(t.selected){h(e,a.length-1)}}function a(e,t){var n=d.data(e,"accordion").options;var a=d.data(e,"accordion").panels;p(e);var i=f(e,t);var o=i.panel("options").title;var r=c(e,i);if(n.onBeforeRemove.call(e,o,r)==false){return}var i=f(e,t,true);if(i){i.panel("destroy");if(a.length){l(e);var s=u(e);if(!s){h(e,0)}}}n.onRemove.call(e,o,r)}d.fn.accordion=function(a,e){if(typeof a=="string"){return d.fn.accordion.methods[a](this,e)}a=a||{};return this.each(function(){var e=d.data(this,"accordion");var t;if(e){t=d.extend(e.options,a);e.opts=t}else{t=d.extend({},d.fn.accordion.defaults,d.fn.accordion.parseOptions(this),a);var n=o(this);d.data(this,"accordion",{options:t,accordion:n.accordion,panels:n.panels})}i(this);l(this);s(this)})};d.fn.accordion.methods={options:function(e){return d.data(e[0],"accordion").options},panels:function(e){return d.data(e[0],"accordion").panels},resize:function(e){return e.each(function(){l(this)})},getSelected:function(e){return u(e[0])},getPanel:function(e,t){return f(e[0],t)},getPanelIndex:function(e,t){return c(e[0],t)},select:function(e,t){return e.each(function(){h(this,t)})},add:function(e,t){return e.each(function(){n(this,t)})},remove:function(e,t){return e.each(function(){a(this,t)})}};d.fn.accordion.parseOptions=function(e){var t=d(e);return d.extend({},d.parser.parseOptions(e,["width","height",{fit:"boolean",border:"boolean",animate:"boolean"}]))};d.fn.accordion.defaults={width:"auto",height:"auto",fit:false,border:true,animate:true,onSelect:function(e,t){},onAdd:function(e,t){},onBeforeRemove:function(e,t){},onRemove:function(e,t){}}})(jQuery);(function($){function _2bb(e){var t=$.data(e,"tabs").options;if(t.tabPosition=="left"||t.tabPosition=="right"){return}var n=$(e).children("div.tabs-header");var a=n.children("div.tabs-tool");var i=n.children("div.tabs-scroller-left");
var o=n.children("div.tabs-scroller-right");var r=n.children("div.tabs-wrap");a._outerHeight(n.outerHeight()-(t.plain?2:0));var s=0;$("ul.tabs li",n).each(function(){s+=$(this).outerWidth(true)});var l=n.width()-a._outerWidth();if(s>l){i.show();o.show();if(t.toolPosition=="left"){a.css({left:i.outerWidth(),right:""});r.css({marginLeft:i.outerWidth()+a._outerWidth(),marginRight:o._outerWidth(),width:l-i.outerWidth()-o.outerWidth()})}else{a.css({left:"",right:o.outerWidth()});r.css({marginLeft:i.outerWidth(),marginRight:o.outerWidth()+a._outerWidth(),width:l-i.outerWidth()-o.outerWidth()})}}else{i.hide();o.hide();if(t.toolPosition=="left"){a.css({left:0,right:""});r.css({marginLeft:a._outerWidth(),marginRight:0,width:l})}else{a.css({left:"",right:0});r.css({marginLeft:0,marginRight:a._outerWidth(),width:l})}}}function _2c2(_2c3){var opts=$.data(_2c3,"tabs").options;var _2c4=$(_2c3).children("div.tabs-header");if(opts.tools){if(typeof opts.tools=="string"){$(opts.tools).addClass("tabs-tool").appendTo(_2c4);$(opts.tools).show()}else{_2c4.children("div.tabs-tool").remove();var _2c5=$('<div class="tabs-tool"></div>').appendTo(_2c4);for(var i=0;i<opts.tools.length;i++){var tool=$('<a href="javascript:void(0);"></a>').appendTo(_2c5);tool[0].onclick=eval(opts.tools[i].handler||function(){});tool.linkbutton($.extend({},opts.tools[i],{plain:true}))}}}else{_2c4.children("div.tabs-tool").remove()}}function _2c6(e){var t=$.data(e,"tabs").options;var n=$(e);t.fit?$.extend(t,n._fit()):n._fit(false);n.width(t.width).height(t.height);var a=$(e).children("div.tabs-header");var i=$(e).children("div.tabs-panels");if(t.tabPosition=="left"||t.tabPosition=="right"){a._outerWidth(t.headerWidth);i._outerWidth(n.width()-t.headerWidth);a.add(i)._outerHeight(t.height);var o=a.find("div.tabs-wrap");o._outerWidth(a.width());a.find(".tabs")._outerWidth(o.width())}else{a.css("height","");a.find("div.tabs-wrap").css("width","");a.find(".tabs").css("width","");a._outerWidth(t.width);_2bb(e);var r=t.height;if(!isNaN(r)){i._outerHeight(r-a.outerHeight())}else{i.height("auto")}var s=t.width;if(!isNaN(s)){i._outerWidth(s)}else{i.width("auto")}}}function _2cc(e){var t=$.data(e,"tabs").options;var n=_2ce(e);if(n){var a=$(e).children("div.tabs-panels");var i=t.width=="auto"?"auto":a.width();var o=t.height=="auto"?"auto":a.height();n.panel("resize",{width:i,height:o})}}function _2d2(a){var i=$.data(a,"tabs").tabs;var e=$(a);e.addClass("tabs-container");e.wrapInner('<div class="tabs-panels"/>');$('<div class="tabs-header">'+'<div class="tabs-scroller-left"></div>'+'<div class="tabs-scroller-right"></div>'+'<div class="tabs-wrap">'+'<ul class="tabs"></ul>'+"</div>"+"</div>").prependTo(a);e.children("div.tabs-panels").children("div").each(function(e){var t=$.extend({},$.parser.parseOptions(this),{selected:$(this).attr("selected")?true:undefined});var n=$(this);i.push(n);_2d9(a,n,t)});e.children("div.tabs-header").find(".tabs-scroller-left, .tabs-scroller-right").hover(function(){$(this).addClass("tabs-scroller-over")},function(){$(this).removeClass("tabs-scroller-over")});e.bind("_resize",function(e,t){var n=$.data(a,"tabs").options;if(n.fit==true||t){_2c6(a);_2cc(a)}return false})}function _2d5(e){var t=$.data(e,"tabs").options;var n=$(e).children("div.tabs-header");var a=$(e).children("div.tabs-panels");n.removeClass("tabs-header-top tabs-header-bottom tabs-header-left tabs-header-right");a.removeClass("tabs-panels-top tabs-panels-bottom tabs-panels-left tabs-panels-right");if(t.tabPosition=="top"){n.insertBefore(a)}else{if(t.tabPosition=="bottom"){n.insertAfter(a);n.addClass("tabs-header-bottom");a.addClass("tabs-panels-top")}else{if(t.tabPosition=="left"){n.addClass("tabs-header-left");a.addClass("tabs-panels-right")}else{if(t.tabPosition=="right"){n.addClass("tabs-header-right");a.addClass("tabs-panels-left")}}}}if(t.plain==true){n.addClass("tabs-header-plain")}else{n.removeClass("tabs-header-plain")}if(t.border==true){n.removeClass("tabs-header-noborder");a.removeClass("tabs-panels-noborder")}else{n.addClass("tabs-header-noborder");a.addClass("tabs-panels-noborder")}$(".tabs-scroller-left",n).unbind(".tabs").bind("click.tabs",function(){$(e).tabs("scrollBy",-t.scrollIncrement)});$(".tabs-scroller-right",n).unbind(".tabs").bind("click.tabs",function(){$(e).tabs("scrollBy",t.scrollIncrement)})}function _2d9(t,e,n){var a=$.data(t,"tabs");n=n||{};e.panel($.extend({},n,{border:false,noheader:true,closed:true,doSize:false,iconCls:n.icon?n.icon:undefined,onLoad:function(){if(n.onLoad){n.onLoad.call(this,arguments)}a.options.onLoad.call(t,$(this))}}));var i=e.panel("options");var o=$(t).children("div.tabs-header").find("ul.tabs");i.tab=$("<li></li>").appendTo(o);i.tab.append('<a href="javascript:void(0)" class="tabs-inner">'+'<span class="tabs-title"></span>'+'<span class="tabs-icon"></span>'+"</a>");i.tab.unbind(".tabs").bind("click.tabs",{p:e},function(e){if($(this).hasClass("tabs-disabled")){return}_2e1(t,_2dd(t,e.data.p))}).bind("contextmenu.tabs",{p:e},function(e){if($(this).hasClass("tabs-disabled")){return
}a.options.onContextMenu.call(t,e,$(this).find("span.tabs-title").html(),_2dd(t,e.data.p))});$(t).tabs("update",{tab:e,options:i})}function _2de(e,t){var n=$.data(e,"tabs").options;var a=$.data(e,"tabs").tabs;if(t.selected==undefined){t.selected=true}var i=$("<div></div>").appendTo($(e).children("div.tabs-panels"));a.push(i);_2d9(e,i,t);n.onAdd.call(e,t.title,a.length-1);_2bb(e);if(t.selected){_2e1(e,a.length-1)}}function _2e2(t,e){var n=$.data(t,"tabs").selectHis;var a=e.tab;var i=a.panel("options").title;a.panel($.extend({},e.options,{iconCls:e.options.icon?e.options.icon:undefined}));var o=a.panel("options");var r=o.tab;var s=r.find("span.tabs-title");var l=r.find("span.tabs-icon");s.html(o.title);l.attr("class","tabs-icon");r.find("a.tabs-close").remove();if(o.closable){s.addClass("tabs-closable");var d=$('<a href="javascript:void(0)" class="tabs-close"></a>').appendTo(r);d.bind("click.tabs",{p:a},function(e){if($(this).parent().hasClass("tabs-disabled")){return}_2eb(t,_2dd(t,e.data.p));return false})}else{s.removeClass("tabs-closable")}if(o.iconCls){s.addClass("tabs-with-icon");l.addClass(o.iconCls)}else{s.removeClass("tabs-with-icon")}if(i!=o.title){for(var u=0;u<n.length;u++){if(n[u]==i){n[u]=o.title}}}r.find("span.tabs-p-tool").remove();if(o.tools){var c=$('<span class="tabs-p-tool"></span>').insertAfter(r.find("a.tabs-inner"));if(typeof o.tools=="string"){$(o.tools).children().appendTo(c)}else{for(var u=0;u<o.tools.length;u++){var f=$('<a href="javascript:void(0)"></a>').appendTo(c);f.addClass(o.tools[u].iconCls);if(o.tools[u].handler){f.bind("click",{handler:o.tools[u].handler},function(e){if($(this).parents("li").hasClass("tabs-disabled")){return}e.data.handler.call(this)})}}}var h=c.children().length*12;if(o.closable){h+=8}else{h-=3;c.css("right","5px")}s.css("padding-right",h+"px")}_2bb(t);$.data(t,"tabs").options.onUpdate.call(t,o.title,_2dd(t,a))}function _2eb(e,t){var n=$.data(e,"tabs").options;var a=$.data(e,"tabs").tabs;var i=$.data(e,"tabs").selectHis;if(!_2ef(e,t)){return}var o=_2f0(e,t);var r=o.panel("options").title;var s=_2dd(e,o);if(n.onBeforeClose.call(e,r,s)==false){return}var o=_2f0(e,t,true);o.panel("options").tab.remove();o.panel("destroy");n.onClose.call(e,r,s);_2bb(e);for(var l=0;l<i.length;l++){if(i[l]==r){i.splice(l,1);l--}}var d=i.pop();if(d){_2e1(e,d)}else{if(a.length){_2e1(e,0)}}}function _2f0(e,t,n){var a=$.data(e,"tabs").tabs;if(typeof t=="number"){if(t<0||t>=a.length){return null}else{var i=a[t];if(n){a.splice(t,1)}return i}}for(var o=0;o<a.length;o++){var i=a[o];if(i.panel("options").title==t){if(n){a.splice(o,1)}return i}}return null}function _2dd(e,t){var n=$.data(e,"tabs").tabs;for(var a=0;a<n.length;a++){if(n[a][0]==$(t)[0]){return a}}return -1}function _2ce(e){var t=$.data(e,"tabs").tabs;for(var n=0;n<t.length;n++){var a=t[n];if(a.panel("options").closed==false){return a}}return null}function _2f9(e){var t=$.data(e,"tabs").tabs;for(var n=0;n<t.length;n++){if(t[n].panel("options").selected){_2e1(e,n);return}}if(t.length){_2e1(e,0)}}function _2e1(e,t){var n=$.data(e,"tabs").options;var a=$.data(e,"tabs").tabs;var i=$.data(e,"tabs").selectHis;if(a.length==0){return}var o=_2f0(e,t);if(!o){return}var r=_2ce(e);if(r){r.panel("close");r.panel("options").tab.removeClass("tabs-selected")}o.panel("open");var s=o.panel("options").title;i.push(s);var l=o.panel("options").tab;l.addClass("tabs-selected");var d=$(e).find(">div.tabs-header>div.tabs-wrap");var u=l.position().left;var c=u+l.outerWidth();if(u<0||c>d.width()){var f=u-(d.width()-l.width())/2;$(e).tabs("scrollBy",f)}else{$(e).tabs("scrollBy",0)}_2cc(e);n.onSelect.call(e,s,_2dd(e,o))}function _2ef(e,t){return _2f0(e,t)!=null}$.fn.tabs=function(n,e){if(typeof n=="string"){return $.fn.tabs.methods[n](this,e)}n=n||{};return this.each(function(){var e=$.data(this,"tabs");var t;if(e){t=$.extend(e.options,n);e.options=t}else{$.data(this,"tabs",{options:$.extend({},$.fn.tabs.defaults,$.fn.tabs.parseOptions(this),n),tabs:[],selectHis:[]});_2d2(this)}_2c2(this);_2d5(this);_2c6(this);_2f9(this)})};$.fn.tabs.methods={options:function(e){return $.data(e[0],"tabs").options},tabs:function(e){return $.data(e[0],"tabs").tabs},resize:function(e){return e.each(function(){_2c6(this);_2cc(this)})},add:function(e,t){return e.each(function(){_2de(this,t)})},close:function(e,t){return e.each(function(){_2eb(this,t)})},getTab:function(e,t){return _2f0(e[0],t)},getTabIndex:function(e,t){return _2dd(e[0],t)},getSelected:function(e){return _2ce(e[0])},select:function(e,t){return e.each(function(){_2e1(this,t)})},exists:function(e,t){return _2ef(e[0],t)},update:function(e,t){return e.each(function(){_2e2(this,t)})},enableTab:function(e,t){return e.each(function(){$(this).tabs("getTab",t).panel("options").tab.removeClass("tabs-disabled")})},disableTab:function(e,t){return e.each(function(){$(this).tabs("getTab",t).panel("options").tab.addClass("tabs-disabled")})},scrollBy:function(e,i){return e.each(function(){var e=$(this).tabs("options");var n=$(this).find(">div.tabs-header>div.tabs-wrap");
var t=Math.min(n._scrollLeft()+i,a());n.animate({scrollLeft:t},e.scrollDuration);function a(){var e=0;var t=n.children("ul");t.children("li").each(function(){e+=$(this).outerWidth(true)});return e-n.width()+(t.outerWidth()-t.width())}})}};$.fn.tabs.parseOptions=function(e){return $.extend({},$.parser.parseOptions(e,["width","height","tools","toolPosition","tabPosition",{fit:"boolean",border:"boolean",plain:"boolean",headerWidth:"number"}]))};$.fn.tabs.defaults={width:"auto",height:"auto",headerWidth:150,plain:false,fit:false,border:true,tools:null,toolPosition:"right",tabPosition:"top",scrollIncrement:100,scrollDuration:400,onLoad:function(e){},onSelect:function(e,t){},onBeforeClose:function(e,t){},onClose:function(e,t){},onAdd:function(e,t){},onUpdate:function(e,t){},onContextMenu:function(e,t,n){}}})(jQuery);(function(c){var f=false;function h(e){var t=c.data(e,"layout");var n=t.options;var a=t.panels;var i=c(e);if(e.tagName=="BODY"){i._fit()}else{n.fit?i.css(i._fit()):i._fit(false)}var o={top:0,left:0,width:i.width(),height:i.height()};function r(e){if(e.length==0){return}var t=e.panel("options");var n=Math.min(Math.max(t.height,t.minHeight),t.maxHeight);e.panel("resize",{width:i.width(),height:n,left:0,top:0});o.top+=n;o.height-=n}if(u(a.expandNorth)){r(a.expandNorth)}else{r(a.north)}function s(e){if(e.length==0){return}var t=e.panel("options");var n=Math.min(Math.max(t.height,t.minHeight),t.maxHeight);e.panel("resize",{width:i.width(),height:n,left:0,top:i.height()-n});o.height-=n}if(u(a.expandSouth)){s(a.expandSouth)}else{s(a.south)}function l(e){if(e.length==0){return}var t=e.panel("options");var n=Math.min(Math.max(t.width,t.minWidth),t.maxWidth);e.panel("resize",{width:n,height:o.height,left:i.width()-n,top:o.top});o.width-=n}if(u(a.expandEast)){l(a.expandEast)}else{l(a.east)}function d(e){if(e.length==0){return}var t=e.panel("options");var n=Math.min(Math.max(t.width,t.minWidth),t.maxWidth);e.panel("resize",{width:n,height:o.height,left:0,top:o.top});o.left+=n;o.width-=n}if(u(a.expandWest)){d(a.expandWest)}else{d(a.west)}a.center.panel("resize",o)}function a(a){var e=c(a);e.addClass("layout");function t(e){e.children("div").each(function(){var e=c.parser.parseOptions(this,["region",{split:"boolean",minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number"}]);var t=e.region;if(t=="north"||t=="south"||t=="east"||t=="west"||t=="center"){n(a,e,this)}})}e.children("form").length?t(e.children("form")):t(e);c('<div class="layout-split-proxy-h"></div>').appendTo(e);c('<div class="layout-split-proxy-v"></div>').appendTo(e);e.bind("_resize",function(e,t){var n=c.data(a,"layout").options;if(n.fit==true||t){h(a)}return false})}function n(s,e,t){e.region=e.region||"center";var n=c.data(s,"layout").panels;var l=c(s);var d=e.region;if(n[d].length){return}var a=c(t);if(!a.length){a=c("<div></div>").appendTo(l)}a.panel(c.extend({minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000},{width:a.length?parseInt(a[0].style.width)||a.outerWidth():"auto",height:a.length?parseInt(a[0].style.height)||a.outerHeight():"auto",doSize:false,collapsible:true,cls:"layout-panel layout-panel-"+d,bodyCls:"layout-body",onOpen:function(){var e=c(this).panel("header").children("div.panel-tool");e.children("a.panel-tool-collapse").hide();var t={north:"up",south:"down",east:"right",west:"left"};if(!t[d]){return}var n="layout-button-"+t[d];var a=e.children("a."+n);if(!a.length){a=c('<a href="javascript:void(0)"></a>').addClass(n).appendTo(e);a.bind("click",{dir:d},function(e){p(s,e.data.dir);return false})}c(this).panel("options").collapsible?a.show():a.hide()}},e));n[d]=a;if(a.panel("options").split){var u=a.panel("panel");u.addClass("layout-split-"+d);var i="";if(d=="north"){i="s"}if(d=="south"){i="n"}if(d=="east"){i="w"}if(d=="west"){i="e"}u.resizable(c.extend({},{handles:i,onStartResize:function(e){f=true;if(d=="north"||d=="south"){var t=c(">div.layout-split-proxy-v",s)}else{var t=c(">div.layout-split-proxy-h",s)}var n=0,a=0,i=0,o=0;var r={display:"block"};if(d=="north"){r.top=parseInt(u.css("top"))+u.outerHeight()-t.height();r.left=parseInt(u.css("left"));r.width=u.outerWidth();r.height=t.height()}else{if(d=="south"){r.top=parseInt(u.css("top"));r.left=parseInt(u.css("left"));r.width=u.outerWidth();r.height=t.height()}else{if(d=="east"){r.top=parseInt(u.css("top"))||0;r.left=parseInt(u.css("left"))||0;r.width=t.width();r.height=u.outerHeight()}else{if(d=="west"){r.top=parseInt(u.css("top"))||0;r.left=u.outerWidth()-t.width();r.width=t.width();r.height=u.outerHeight()}}}}t.css(r);c('<div class="layout-mask"></div>').css({left:0,top:0,width:l.width(),height:l.height()}).appendTo(l)},onResize:function(e){if(d=="north"||d=="south"){var t=c(">div.layout-split-proxy-v",s);t.css("top",e.pageY-c(s).offset().top-t.height()/2)}else{var t=c(">div.layout-split-proxy-h",s);t.css("left",e.pageX-c(s).offset().left-t.width()/2)}return false},onStopResize:function(){c(">div.layout-split-proxy-v",s).css("display","none");c(">div.layout-split-proxy-h",s).css("display","none");
var e=a.panel("options");e.width=u.outerWidth();e.height=u.outerHeight();e.left=u.css("left");e.top=u.css("top");a.panel("resize");h(s);f=false;l.find(">div.layout-mask").remove()}},e))}}function i(e,t){var n=c.data(e,"layout").panels;if(n[t].length){n[t].panel("destroy");n[t]=c();var a="expand"+t.substring(0,1).toUpperCase()+t.substring(1);if(n[a]){n[a].panel("destroy");n[a]=undefined}}}function p(a,i,t){if(t==undefined){t="normal"}var n=c.data(a,"layout").panels;var o=n[i];if(o.panel("options").onBeforeCollapse.call(o)==false){return}var e="expand"+i.substring(0,1).toUpperCase()+i.substring(1);if(!n[e]){n[e]=s(i);n[e].panel("panel").click(function(){var e=l();o.panel("expand",false).panel("open").panel("resize",e.collapse);o.panel("panel").animate(e.expand,t,function(){c(this).unbind(".layout").bind("mouseleave.layout",{region:i},function(e){if(f==true){return}p(a,e.data.region)})});return false})}var r=l();if(!u(n[e])){n.center.panel("resize",r.resizeC)}o.panel("panel").animate(r.collapse,t,function(){o.panel("collapse",false).panel("close");n[e].panel("open").panel("resize",r.expandP);c(this).unbind(".layout")});function s(e){var t;if(e=="east"){t="layout-button-left"}else{if(e=="west"){t="layout-button-right"}else{if(e=="north"){t="layout-button-down"}else{if(e=="south"){t="layout-button-up"}}}}var n=c("<div></div>").appendTo(a).panel({cls:"layout-expand",title:" ",closed:true,doSize:false,tools:[{iconCls:t,handler:function(){d(a,i);return false}}]});n.panel("panel").hover(function(){c(this).addClass("layout-expand-over")},function(){c(this).removeClass("layout-expand-over")});return n}function l(){var e=c(a);if(i=="east"){return{resizeC:{width:n.center.panel("options").width+n["east"].panel("options").width-28},expand:{left:e.width()-n["east"].panel("options").width},expandP:{top:n["east"].panel("options").top,left:e.width()-28,width:28,height:n["center"].panel("options").height},collapse:{left:e.width()}}}else{if(i=="west"){return{resizeC:{width:n.center.panel("options").width+n["west"].panel("options").width-28,left:28},expand:{left:0},expandP:{left:0,top:n["west"].panel("options").top,width:28,height:n["center"].panel("options").height},collapse:{left:-n["west"].panel("options").width}}}else{if(i=="north"){var t=e.height()-28;if(u(n.expandSouth)){t-=n.expandSouth.panel("options").height}else{if(u(n.south)){t-=n.south.panel("options").height}}n.east.panel("resize",{top:28,height:t});n.west.panel("resize",{top:28,height:t});if(u(n.expandEast)){n.expandEast.panel("resize",{top:28,height:t})}if(u(n.expandWest)){n.expandWest.panel("resize",{top:28,height:t})}return{resizeC:{top:28,height:t},expand:{top:0},expandP:{top:0,left:0,width:e.width(),height:28},collapse:{top:-n["north"].panel("options").height}}}else{if(i=="south"){var t=e.height()-28;if(u(n.expandNorth)){t-=n.expandNorth.panel("options").height}else{if(u(n.north)){t-=n.north.panel("options").height}}n.east.panel("resize",{height:t});n.west.panel("resize",{height:t});if(u(n.expandEast)){n.expandEast.panel("resize",{height:t})}if(u(n.expandWest)){n.expandWest.panel("resize",{height:t})}return{resizeC:{height:t},expand:{top:e.height()-n["south"].panel("options").height},expandP:{top:e.height()-28,left:0,width:e.width(),height:28},collapse:{top:e.height()}}}}}}}}function d(t,n){var a=c.data(t,"layout").panels;var e=r();var i=a[n];if(i.panel("options").onBeforeExpand.call(i)==false){return}var o="expand"+n.substring(0,1).toUpperCase()+n.substring(1);a[o].panel("close");i.panel("panel").stop(true,true);i.panel("expand",false).panel("open").panel("resize",e.collapse);i.panel("panel").animate(e.expand,function(){h(t)});function r(){var e=c(t);if(n=="east"&&a.expandEast){return{collapse:{left:e.width()},expand:{left:e.width()-a["east"].panel("options").width}}}else{if(n=="west"&&a.expandWest){return{collapse:{left:-a["west"].panel("options").width},expand:{left:0}}}else{if(n=="north"&&a.expandNorth){return{collapse:{top:-a["north"].panel("options").height},expand:{top:0}}}else{if(n=="south"&&a.expandSouth){return{collapse:{top:e.height()},expand:{top:e.height()-a["south"].panel("options").height}}}}}}}}function u(e){if(!e){return false}if(e.length){return e.panel("panel").is(":visible")}else{return false}}function o(e){var t=c.data(e,"layout").panels;if(t.east.length&&t.east.panel("options").collapsed){p(e,"east",0)}if(t.west.length&&t.west.panel("options").collapsed){p(e,"west",0)}if(t.north.length&&t.north.panel("options").collapsed){p(e,"north",0)}if(t.south.length&&t.south.panel("options").collapsed){p(e,"south",0)}}c.fn.layout=function(n,e){if(typeof n=="string"){return c.fn.layout.methods[n](this,e)}n=n||{};return this.each(function(){var e=c.data(this,"layout");if(e){c.extend(e.options,n)}else{var t=c.extend({},c.fn.layout.defaults,c.fn.layout.parseOptions(this),n);c.data(this,"layout",{options:t,panels:{center:c(),north:c(),south:c(),east:c(),west:c()}});a(this)}h(this);o(this)})};c.fn.layout.methods={resize:function(e){return e.each(function(){h(this)
})},panel:function(e,t){return c.data(e[0],"layout").panels[t]},collapse:function(e,t){return e.each(function(){p(this,t)})},expand:function(e,t){return e.each(function(){d(this,t)})},add:function(e,t){return e.each(function(){n(this,t);h(this);if(c(this).layout("panel",t.region).panel("options").collapsed){p(this,t.region,0)}})},remove:function(e,t){return e.each(function(){i(this,t);h(this)})}};c.fn.layout.parseOptions=function(e){return c.extend({},c.parser.parseOptions(e,[{fit:"boolean"}]))};c.fn.layout.defaults={fit:false}})(jQuery);(function($){function init(a){$(a).appendTo("body");$(a).addClass("menu-top");$(document).unbind(".menu").bind("mousedown.menu",function(e){var t=$("body>div.menu:visible");var n=$(e.target).closest("div.menu",t);if(n.length){return}$("body>div.menu-top:visible").menu("hide")});var e=i($(a));for(var t=0;t<e.length;t++){n(e[t])}function i(e){var n=[];e.addClass("menu");n.push(e);if(!e.hasClass("menu-content")){e.children("div").each(function(){var e=$(this).children("div");if(e.length){e.insertAfter(a);this.submenu=e;var t=i(e);n=n.concat(t)}})}return n}function n(e){var t=$.parser.parseOptions(e[0],["width"]).width;if(e.hasClass("menu-content")){e[0].originalWidth=t||e._outerWidth()}else{e[0].originalWidth=t||0;e.children("div").each(function(){var e=$(this);if(e.hasClass("menu-sep")){}else{var t=$.extend({},$.parser.parseOptions(this,["name","iconCls","href"]),{disabled:e.attr("disabled")?true:undefined});e.attr("name",t.name||"").attr("href",t.href||"");var n=e.addClass("menu-item").html();e.empty().append($('<div class="menu-text"></div>').html(n));if(t.iconCls){$('<div class="menu-icon"></div>').addClass(t.iconCls).appendTo(e)}if(t.disabled){_368(a,e[0],true)}if(e[0].submenu){$('<div class="menu-rightarrow"></div>').appendTo(e)}_369(a,e)}});$('<div class="menu-line"></div>').prependTo(e)}_36a(a,e);e.hide();_36b(a,e)}}function _36a(e,t){var n=$.data(e,"menu").options;var a=t.css("display");t.css({display:"block",left:-10000});t.find("div.menu-item")._outerHeight(22);var i=0;t.find("div.menu-text").each(function(){if(i<$(this)._outerWidth()){i=$(this)._outerWidth()}});i+=65;t._outerWidth(Math.max(t[0].originalWidth||0,i,n.minWidth));t.css("display",a)}function _36b(e,t){var n=$.data(e,"menu");t.unbind(".menu").bind("mouseenter.menu",function(){if(n.timer){clearTimeout(n.timer);n.timer=null}}).bind("mouseleave.menu",function(){n.timer=setTimeout(function(){_370(e)},100)})}function _369(n,a){a.unbind(".menu");a.bind("click.menu",function(){if($(this).hasClass("menu-item-disabled")){return}if(!this.submenu){_370(n);var e=$(this).attr("href");if(e){location.href=e}}var t=$(n).menu("getItem",this);$.data(n,"menu").options.onClick.call(n,t)}).bind("mouseenter.menu",function(e){a.siblings().each(function(){if(this.submenu){_374(this.submenu)}$(this).removeClass("menu-active")});a.addClass("menu-active");if($(this).hasClass("menu-item-disabled")){a.addClass("menu-active-disabled");return}var t=a[0].submenu;if(t){$(n).menu("show",{menu:t,parent:a})}}).bind("mouseleave.menu",function(e){a.removeClass("menu-active menu-active-disabled");var t=a[0].submenu;if(t){if(e.pageX>=parseInt(t.css("left"))){a.addClass("menu-active")}else{_374(t)}}else{a.removeClass("menu-active")}})}function _370(e){var t=$.data(e,"menu");if(t){if($(e).is(":visible")){_374($(e));t.options.onHide.call(e)}}return false}function _377(e,t){var n,a;var i=$(t.menu||e);if(i.hasClass("menu-top")){var o=$.data(e,"menu").options;n=o.left;a=o.top;if(t.alignTo){var r=$(t.alignTo);n=r.offset().left;a=r.offset().top+r._outerHeight()}if(t.left!=undefined){n=t.left}if(t.top!=undefined){a=t.top}if(n+i.outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){n=$(window)._outerWidth()+$(document).scrollLeft()-i.outerWidth()-5}if(a+i.outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){a-=i.outerHeight()}}else{var s=t.parent;n=s.offset().left+s.outerWidth()-2;if(n+i.outerWidth()+5>$(window)._outerWidth()+$(document).scrollLeft()){n=s.offset().left-i.outerWidth()+2}var a=s.offset().top-3;if(a+i.outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){a=$(window)._outerHeight()+$(document).scrollTop()-i.outerHeight()-5}}i.css({left:n,top:a});i.show(0,function(){if(!i[0].shadow){i[0].shadow=$('<div class="menu-shadow"></div>').insertAfter(i)}i[0].shadow.css({display:"block",zIndex:$.fn.menu.defaults.zIndex++,left:i.css("left"),top:i.css("top"),width:i.outerWidth(),height:i.outerHeight()});i.css("z-index",$.fn.menu.defaults.zIndex++);if(i.hasClass("menu-top")){$.data(i[0],"menu").options.onShow.call(i[0])}})}function _374(e){if(!e){return}t(e);e.find("div.menu-item").each(function(){if(this.submenu){_374(this.submenu)}$(this).removeClass("menu-active")});function t(e){e.stop(true,true);if(e[0].shadow){e[0].shadow.hide()}e.hide()}}function _37c(n,a){var i=null;var o=$("<div></div>");function r(e){e.children("div.menu-item").each(function(){var e=$(n).menu("getItem",this);var t=o.empty().html(e.text).text();if(a==$.trim(t)){i=e
}else{if(this.submenu&&!i){r(this.submenu)}}})}r($(n));o.remove();return i}function _368(e,t,n){var a=$(t);if(n){a.addClass("menu-item-disabled");if(t.onclick){t.onclick1=t.onclick;t.onclick=null}}else{a.removeClass("menu-item-disabled");if(t.onclick1){t.onclick=t.onclick1;t.onclick1=null}}}function _382(_383,_384){var menu=$(_383);if(_384.parent){if(!_384.parent.submenu){var _385=$('<div class="menu"><div class="menu-line"></div></div>').appendTo("body");_385.hide();_384.parent.submenu=_385;$('<div class="menu-rightarrow"></div>').appendTo(_384.parent)}menu=_384.parent.submenu}var item=$('<div class="menu-item"></div>').appendTo(menu);$('<div class="menu-text"></div>').html(_384.text).appendTo(item);if(_384.iconCls){$('<div class="menu-icon"></div>').addClass(_384.iconCls).appendTo(item)}if(_384.id){item.attr("id",_384.id)}if(_384.href){item.attr("href",_384.href)}if(_384.name){item.attr("name",_384.name)}if(_384.onclick){if(typeof _384.onclick=="string"){item.attr("onclick",_384.onclick)}else{item[0].onclick=eval(_384.onclick)}}if(_384.handler){item[0].onclick=eval(_384.handler)}_369(_383,item);if(_384.disabled){_368(_383,item[0],true)}_36b(_383,menu);_36a(_383,menu)}function _386(e,t){function n(e){if(e.submenu){e.submenu.children("div.menu-item").each(function(){n(this)});var t=e.submenu[0].shadow;if(t){t.remove()}e.submenu.remove()}$(e).remove()}n(t)}function _38b(e){$(e).children("div.menu-item").each(function(){_386(e,this)});if(e.shadow){e.shadow.remove()}$(e).remove()}$.fn.menu=function(t,e){if(typeof t=="string"){return $.fn.menu.methods[t](this,e)}t=t||{};return this.each(function(){var e=$.data(this,"menu");if(e){$.extend(e.options,t)}else{e=$.data(this,"menu",{options:$.extend({},$.fn.menu.defaults,$.fn.menu.parseOptions(this),t)});init(this)}$(this).css({left:e.options.left,top:e.options.top})})};$.fn.menu.methods={options:function(e){return $.data(e[0],"menu").options},show:function(e,t){return e.each(function(){_377(this,t)})},hide:function(e){return e.each(function(){_370(this)})},destroy:function(e){return e.each(function(){_38b(this)})},setText:function(e,t){return e.each(function(){$(t.target).children("div.menu-text").html(t.text)})},setIcon:function(e,t){return e.each(function(){var e=$(this).menu("getItem",t.target);if(e.iconCls){$(e.target).children("div.menu-icon").removeClass(e.iconCls).addClass(t.iconCls)}else{$('<div class="menu-icon"></div>').addClass(t.iconCls).appendTo(t.target)}})},getItem:function(e,t){var n=$(t);var a={target:t,id:n.attr("id"),text:$.trim(n.children("div.menu-text").html()),disabled:n.hasClass("menu-item-disabled"),href:n.attr("href"),name:n.attr("name"),onclick:t.onclick};var i=n.children("div.menu-icon");if(i.length){var o=[];var r=i.attr("class").split(" ");for(var s=0;s<r.length;s++){if(r[s]!="menu-icon"){o.push(r[s])}}a.iconCls=o.join(" ")}return a},findItem:function(e,t){return _37c(e[0],t)},appendItem:function(e,t){return e.each(function(){_382(this,t)})},removeItem:function(e,t){return e.each(function(){_386(this,t)})},enableItem:function(e,t){return e.each(function(){_368(this,t,false)})},disableItem:function(e,t){return e.each(function(){_368(this,t,true)})}};$.fn.menu.parseOptions=function(e){return $.extend({},$.parser.parseOptions(e,["left","top",{minWidth:"number"}]))};$.fn.menu.defaults={zIndex:110000,left:0,top:0,minWidth:120,onShow:function(){},onHide:function(){},onClick:function(e){}}})(jQuery);(function(r){function n(e){var t=r.data(e,"menubutton").options;var n=r(e);n.removeClass("m-btn-active m-btn-plain-active").addClass("m-btn");n.linkbutton(r.extend({},t,{text:t.text+'<span class="m-btn-downarrow"> </span>'}));if(t.menu){r(t.menu).menu({onShow:function(){n.addClass(t.plain==true?"m-btn-plain-active":"m-btn-active")},onHide:function(){n.removeClass(t.plain==true?"m-btn-plain-active":"m-btn-active")}})}a(e,t.disabled)}function a(e,t){var n=r.data(e,"menubutton").options;n.disabled=t;var a=r(e);if(t){a.linkbutton("disable");a.unbind(".menubutton")}else{a.linkbutton("enable");a.unbind(".menubutton");a.bind("click.menubutton",function(){o();return false});var i=null;a.bind("mouseenter.menubutton",function(){i=setTimeout(function(){o()},n.duration);return false}).bind("mouseleave.menubutton",function(){if(i){clearTimeout(i)}})}function o(){if(!n.menu){return}r("body>div.menu-top").menu("hide");r(n.menu).menu("show",{alignTo:a});a.blur()}}r.fn.menubutton=function(t,e){if(typeof t=="string"){return r.fn.menubutton.methods[t](this,e)}t=t||{};return this.each(function(){var e=r.data(this,"menubutton");if(e){r.extend(e.options,t)}else{r.data(this,"menubutton",{options:r.extend({},r.fn.menubutton.defaults,r.fn.menubutton.parseOptions(this),t)});r(this).removeAttr("disabled")}n(this)})};r.fn.menubutton.methods={options:function(e){return r.data(e[0],"menubutton").options},enable:function(e){return e.each(function(){a(this,false)})},disable:function(e){return e.each(function(){a(this,true)})},destroy:function(e){return e.each(function(){var e=r(this).menubutton("options");
if(e.menu){r(e.menu).menu("destroy")}r(this).remove()})}};r.fn.menubutton.parseOptions=function(e){var t=r(e);return r.extend({},r.fn.linkbutton.parseOptions(e),r.parser.parseOptions(e,["menu",{plain:"boolean",duration:"number"}]))};r.fn.menubutton.defaults=r.extend({},r.fn.linkbutton.defaults,{plain:true,menu:null,duration:100})})(jQuery);(function(s){function n(e){var t=s.data(e,"splitbutton").options;var n=s(e);n.removeClass("s-btn-active s-btn-plain-active").addClass("s-btn");n.linkbutton(s.extend({},t,{text:t.text+'<span class="s-btn-downarrow"> </span>'}));if(t.menu){s(t.menu).menu({onShow:function(){n.addClass(t.plain==true?"s-btn-plain-active":"s-btn-active")},onHide:function(){n.removeClass(t.plain==true?"s-btn-plain-active":"s-btn-active")}})}a(e,t.disabled)}function a(e,t){var n=s.data(e,"splitbutton").options;n.disabled=t;var a=s(e);var i=a.find(".s-btn-downarrow");if(t){a.linkbutton("disable");i.unbind(".splitbutton")}else{a.linkbutton("enable");i.unbind(".splitbutton");i.bind("click.splitbutton",function(){r();return false});var o=null;i.bind("mouseenter.splitbutton",function(){o=setTimeout(function(){r()},n.duration);return false}).bind("mouseleave.splitbutton",function(){if(o){clearTimeout(o)}})}function r(){if(!n.menu){return}s("body>div.menu-top").menu("hide");s(n.menu).menu("show",{alignTo:a});a.blur()}}s.fn.splitbutton=function(t,e){if(typeof t=="string"){return s.fn.splitbutton.methods[t](this,e)}t=t||{};return this.each(function(){var e=s.data(this,"splitbutton");if(e){s.extend(e.options,t)}else{s.data(this,"splitbutton",{options:s.extend({},s.fn.splitbutton.defaults,s.fn.splitbutton.parseOptions(this),t)});s(this).removeAttr("disabled")}n(this)})};s.fn.splitbutton.methods={options:function(e){return s.data(e[0],"splitbutton").options},enable:function(e){return e.each(function(){a(this,false)})},disable:function(e){return e.each(function(){a(this,true)})},destroy:function(e){return e.each(function(){var e=s(this).splitbutton("options");if(e.menu){s(e.menu).menu("destroy")}s(this).remove()})}};s.fn.splitbutton.parseOptions=function(e){var t=s(e);return s.extend({},s.fn.linkbutton.parseOptions(e),s.parser.parseOptions(e,["menu",{plain:"boolean",duration:"number"}]))};s.fn.splitbutton.defaults=s.extend({},s.fn.linkbutton.defaults,{plain:true,menu:null,duration:100})})(jQuery);(function($){function init(e){$(e).hide();var t=$('<span class="searchbox"></span>').insertAfter(e);var n=$('<input type="text" class="searchbox-text">').appendTo(t);$('<span><span class="searchbox-button"></span></span>').appendTo(t);var a=$(e).attr("name");if(a){n.attr("name",a);$(e).removeAttr("name").attr("searchboxName",a)}return t}function _3af(e,t){var n=$.data(e,"searchbox").options;var a=$.data(e,"searchbox").searchbox;if(t){n.width=t}a.appendTo("body");if(isNaN(n.width)){n.width=a._outerWidth()}var i=a.find("span.searchbox-button");var o=a.find("a.searchbox-menu");var r=a.find("input.searchbox-text");a._outerWidth(n.width)._outerHeight(n.height);r._outerWidth(a.width()-o._outerWidth()-i._outerWidth());r.css({height:a.height()+"px",lineHeight:a.height()+"px"});o._outerHeight(a.height());i._outerHeight(a.height());var s=o.find("span.l-btn-left");s._outerHeight(a.height());s.find("span.l-btn-text,span.m-btn-downarrow").css({height:s.height()+"px",lineHeight:s.height()+"px"});a.insertAfter(e)}function _3b5(n){var a=$.data(n,"searchbox");var e=a.options;if(e.menu){a.menu=$(e.menu).menu({onClick:function(e){i(e)}});var t=a.menu.children("div.menu-item:first");a.menu.children("div.menu-item").each(function(){var e=$.extend({},$.parser.parseOptions(this),{selected:$(this).attr("selected")?true:undefined});if(e.selected){t=$(this);return false}});t.triggerHandler("click")}else{a.searchbox.find("a.searchbox-menu").remove();a.menu=null}function i(e){a.searchbox.find("a.searchbox-menu").remove();var t=$('<a class="searchbox-menu" href="javascript:void(0)"></a>').html(e.text);t.prependTo(a.searchbox).menubutton({menu:a.menu,iconCls:e.iconCls});a.searchbox.find("input.searchbox-text").attr("name",$(e.target).attr("name")||e.text);_3af(n)}}function _3ba(n){var e=$.data(n,"searchbox");var a=e.options;var i=e.searchbox.find("input.searchbox-text");var t=e.searchbox.find(".searchbox-button");i.unbind(".searchbox").bind("blur.searchbox",function(e){a.value=$(this).val();if(a.value==""){$(this).val(a.prompt);$(this).addClass("searchbox-prompt")}else{$(this).removeClass("searchbox-prompt")}}).bind("focus.searchbox",function(e){if($(this).val()!=a.value){$(this).val(a.value)}$(this).removeClass("searchbox-prompt")}).bind("keydown.searchbox",function(e){if(e.keyCode==13){e.preventDefault();var t=$.fn.prop?i.prop("name"):i.attr("name");a.value=$(this).val();a.searcher.call(n,a.value,t);return false}});t.unbind(".searchbox").bind("click.searchbox",function(){var e=$.fn.prop?i.prop("name"):i.attr("name");a.searcher.call(n,a.value,e)}).bind("mouseenter.searchbox",function(){$(this).addClass("searchbox-button-hover")}).bind("mouseleave.searchbox",function(){$(this).removeClass("searchbox-button-hover")
})}function _3bf(e){var t=$.data(e,"searchbox");var n=t.options;var a=t.searchbox.find("input.searchbox-text");if(n.value==""){a.val(n.prompt);a.addClass("searchbox-prompt")}else{a.val(n.value);a.removeClass("searchbox-prompt")}}$.fn.searchbox=function(t,e){if(typeof t=="string"){return $.fn.searchbox.methods[t](this,e)}t=t||{};return this.each(function(){var e=$.data(this,"searchbox");if(e){$.extend(e.options,t)}else{e=$.data(this,"searchbox",{options:$.extend({},$.fn.searchbox.defaults,$.fn.searchbox.parseOptions(this),t),searchbox:init(this)})}_3b5(this);_3bf(this);_3ba(this);_3af(this)})};$.fn.searchbox.methods={options:function(e){return $.data(e[0],"searchbox").options},menu:function(e){return $.data(e[0],"searchbox").menu},textbox:function(e){return $.data(e[0],"searchbox").searchbox.find("input.searchbox-text")},getValue:function(e){return $.data(e[0],"searchbox").options.value},setValue:function(e,t){return e.each(function(){$(this).searchbox("options").value=t;$(this).searchbox("textbox").val(t);$(this).searchbox("textbox").blur()})},getName:function(e){return $.data(e[0],"searchbox").searchbox.find("input.searchbox-text").attr("name")},selectName:function(e,t){return e.each(function(){var e=$.data(this,"searchbox").menu;if(e){e.children('div.menu-item[name="'+t+'"]').triggerHandler("click")}})},destroy:function(e){return e.each(function(){var e=$(this).searchbox("menu");if(e){e.menu("destroy")}$.data(this,"searchbox").searchbox.remove();$(this).remove()})},resize:function(e,t){return e.each(function(){_3af(this,t)})}};$.fn.searchbox.parseOptions=function(_3c8){var t=$(_3c8);return $.extend({},$.parser.parseOptions(_3c8,["width","height","prompt","menu"]),{value:t.val(),searcher:t.attr("searcher")?eval(t.attr("searcher")):undefined})};$.fn.searchbox.defaults={width:"auto",height:22,prompt:"",value:"",menu:null,searcher:function(e,t){}}})(jQuery);(function($){function init(e){$(e).addClass("validatebox-text")}function _3cb(e){var t=$.data(e,"validatebox");t.validating=false;$(e).tooltip("destroy");$(e).unbind();$(e).remove()}function _3ce(e){var t=$(e);var n=$.data(e,"validatebox");t.unbind(".validatebox").bind("focus.validatebox",function(){n.validating=true;n.value=undefined;(function(){if(n.validating){if(n.value!=t.val()){n.value=t.val();if(n.timer){clearTimeout(n.timer)}n.timer=setTimeout(function(){$(e).validatebox("validate")},n.options.delay)}else{_3d5(e)}setTimeout(arguments.callee,200)}})()}).bind("blur.validatebox",function(){if(n.timer){clearTimeout(n.timer);n.timer=undefined}n.validating=false;_3d1(e)}).bind("mouseenter.validatebox",function(){if(t.hasClass("validatebox-invalid")){_3d2(e)}}).bind("mouseleave.validatebox",function(){if(!n.validating){_3d1(e)}})}function _3d2(e){var t=$.data(e,"validatebox");var n=t.options;$(e).tooltip($.extend({},n.tipOptions,{content:t.message,position:n.tipPosition,deltaX:n.deltaX})).tooltip("show");t.tip=true}function _3d5(e){var t=$.data(e,"validatebox");if(t&&t.tip){$(e).tooltip("reposition")}}function _3d1(e){var t=$.data(e,"validatebox");t.tip=false;$(e).tooltip("hide")}function _3da(_3db){var _3dc=$.data(_3db,"validatebox");var opts=_3dc.options;var box=$(_3db);var _3dd=box.val();function _3de(e){_3dc.message=e}function _3df(_3e0){var _3e1=/([a-zA-Z_]+)(.*)/.exec(_3e0);var rule=opts.rules[_3e1[1]];if(rule&&_3dd){var _3e2=eval(_3e1[2]);if(!rule["validator"](_3dd,_3e2)){box.addClass("validatebox-invalid");var _3e3=rule["message"];if(_3e2){for(var i=0;i<_3e2.length;i++){_3e3=_3e3.replace(new RegExp("\\{"+i+"\\}","g"),_3e2[i])}}_3de(opts.invalidMessage||_3e3);if(_3dc.validating){_3d2(_3db)}return false}}return true}if(opts.required){if(_3dd==""){box.addClass("validatebox-invalid");_3de(opts.missingMessage);if(_3dc.validating){_3d2(_3db)}return false}}if(opts.validType){if(typeof opts.validType=="string"){if(!_3df(opts.validType)){return false}}else{for(var i=0;i<opts.validType.length;i++){if(!_3df(opts.validType[i])){return false}}}}box.removeClass("validatebox-invalid");_3d1(_3db);return true}$.fn.validatebox=function(t,e){if(typeof t=="string"){return $.fn.validatebox.methods[t](this,e)}t=t||{};return this.each(function(){var e=$.data(this,"validatebox");if(e){$.extend(e.options,t)}else{init(this);$.data(this,"validatebox",{options:$.extend({},$.fn.validatebox.defaults,$.fn.validatebox.parseOptions(this),t)})}_3ce(this)})};$.fn.validatebox.methods={options:function(e){return $.data(e[0],"validatebox").options},destroy:function(e){return e.each(function(){_3cb(this)})},validate:function(e){return e.each(function(){_3da(this)})},isValid:function(e){return _3da(e[0])}};$.fn.validatebox.parseOptions=function(e){var t=$(e);return $.extend({},$.parser.parseOptions(e,["validType","missingMessage","invalidMessage","tipPosition",{delay:"number",deltaX:"number"}]),{required:t.attr("required")?true:undefined})};$.fn.validatebox.defaults={required:false,validType:null,delay:200,missingMessage:"This field is required.",invalidMessage:null,tipPosition:"right",deltaX:0,tipOptions:{showEvent:"none",hideEvent:"none",showDelay:0,hideDelay:0,zIndex:"",onShow:function(){$(this).tooltip("tip").css({color:"#000",borderColor:"#CC9933",backgroundColor:"#FFFFCC"})
},onHide:function(){$(this).tooltip("destroy")}},rules:{email:{validator:function(e){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(e)},message:"Please enter a valid email address."},url:{validator:function(e){return/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},message:"Please enter a valid URL."},length:{validator:function(e,t){var n=$.trim(e).length;return n>=t[0]&&n<=t[1]},message:"Please enter a value between {0} and {1}."},remote:{validator:function(e,t){var n={};n[t[1]]=e;var a=$.ajax({url:t[0],dataType:"json",data:n,async:false,cache:false,type:"post"}).responseText;return a=="true"},message:"Please fix this field."}}}})(jQuery);(function(h){function a(e,i){i=i||{};var t={};if(i.onSubmit){if(i.onSubmit.call(e,t)==false){return}}var n=h(e);if(i.url){n.attr("action",i.url)}var o="easyui_frame_"+(new Date).getTime();var r=h("<iframe id="+o+" name="+o+"></iframe>").attr("src",window.ActiveXObject?"javascript:false":"about:blank").css({position:"absolute",top:-1000,left:-1000});var a=n.attr("target"),s=n.attr("action");n.attr("target",o);var l=h();try{r.appendTo("body");r.bind("load",f);for(var d in t){var u=h('<input type="hidden" name="'+d+'">').val(t[d]).appendTo(n);l=l.add(u)}n[0].submit()}finally{n.attr("action",s);a?n.attr("target",a):n.removeAttr("target");l.remove()}var c=10;function f(){r.unbind();var e=h("#"+o).contents().find("body");var t=e.html();if(t==""){if(--c){setTimeout(f,100);return}return}var n=e.find(">textarea");if(n.length){t=n.val()}else{var a=e.find(">pre");if(a.length){t=a.html()}}if(i.success){i.success(t)}setTimeout(function(){r.unbind();r.remove()},100)}}function n(s,e){if(!h.data(s,"form")){h.data(s,"form",{options:h.extend({},h.fn.form.defaults)})}var r=h.data(s,"form").options;if(typeof e=="string"){var t={};if(r.onBeforeLoad.call(s,t)==false){return}h.ajax({url:e,data:t,dataType:"json",success:function(e){n(e)},error:function(){r.onLoadError.apply(s,arguments)}})}else{n(e)}function n(e){var t=h(s);for(var n in e){var a=e[n];var i=l(n,a);if(!i.length){var o=t.find('input[numberboxName="'+n+'"]');if(o.length){o.numberbox("setValue",a)}else{h('input[name="'+n+'"]',t).val(a);h('textarea[name="'+n+'"]',t).val(a);h('select[name="'+n+'"]',t).val(a)}}d(n,a)}r.onLoadSuccess.call(s,e);u(s)}function l(e,t){var n=h(s).find('input[name="'+e+'"][type=radio], input[name="'+e+'"][type=checkbox]');n._propAttr("checked",false);n.each(function(){var e=h(this);if(e.val()==String(t)||h.inArray(e.val(),t)>=0){e._propAttr("checked",true)}});return n}function d(e,t){var n=h(s);var a=["combobox","combotree","combogrid","datetimebox","datebox","combo"];var i=n.find('[comboName="'+e+'"]');if(i.length){for(var o=0;o<a.length;o++){var r=a[o];if(i.hasClass(r+"-f")){if(i[r]("options").multiple){i[r]("setValues",t)}else{i[r]("setValue",t)}return}}}}}function t(e){h("input,select,textarea",e).each(function(){var e=this.type,t=this.tagName.toLowerCase();if(e=="text"||e=="hidden"||e=="password"||t=="textarea"){this.value=""
}else{if(e=="file"){var n=h(this);n.after(n.clone().val(""));n.remove()}else{if(e=="checkbox"||e=="radio"){this.checked=false}else{if(t=="select"){this.selectedIndex=-1}}}}});if(h.fn.combo){h(".combo-f",e).combo("clear")}if(h.fn.combobox){h(".combobox-f",e).combobox("clear")}if(h.fn.combotree){h(".combotree-f",e).combotree("clear")}if(h.fn.combogrid){h(".combogrid-f",e).combogrid("clear")}u(e)}function i(e){e.reset();var t=h(e);if(h.fn.combo){t.find(".combo-f").combo("reset")}if(h.fn.combobox){t.find(".combobox-f").combobox("reset")}if(h.fn.combotree){t.find(".combotree-f").combotree("reset")}if(h.fn.combogrid){t.find(".combogrid-f").combogrid("reset")}if(h.fn.spinner){t.find(".spinner-f").spinner("reset")}if(h.fn.timespinner){t.find(".timespinner-f").timespinner("reset")}if(h.fn.numberbox){t.find(".numberbox-f").numberbox("reset")}if(h.fn.numberspinner){t.find(".numberspinner-f").numberspinner("reset")}u(e)}function o(e){var t=h.data(e,"form").options;var n=h(e);n.unbind(".form").bind("submit.form",function(){setTimeout(function(){a(e,t)},0);return false})}function u(e){if(h.fn.validatebox){var t=h(e);t.find(".validatebox-text:not(:disabled)").validatebox("validate");var n=t.find(".validatebox-invalid");n.filter(":not(:disabled):first").focus();return n.length==0}return true}h.fn.form=function(e,t){if(typeof e=="string"){return h.fn.form.methods[e](this,t)}e=e||{};return this.each(function(){if(!h.data(this,"form")){h.data(this,"form",{options:h.extend({},h.fn.form.defaults,e)})}o(this)})};h.fn.form.methods={submit:function(e,t){return e.each(function(){a(this,h.extend({},h.fn.form.defaults,t||{}))})},load:function(e,t){return e.each(function(){n(this,t)})},clear:function(e){return e.each(function(){t(this)})},reset:function(e){return e.each(function(){i(this)})},validate:function(e){return u(e[0])}};h.fn.form.defaults={url:null,onSubmit:function(e){return h(this).form("validate")},success:function(e){},onBeforeLoad:function(e){},onLoadSuccess:function(e){},onLoadError:function(){}}})(jQuery);(function(r){function a(e){r(e).addClass("numberbox-f");var t=r('<input type="hidden">').insertAfter(e);var n=r(e).attr("name");if(n){t.attr("name",n);r(e).removeAttr("name").attr("numberboxName",n)}return t}function i(e){var t=r.data(e,"numberbox").options;var n=t.onChange;t.onChange=function(){};s(e,t.parser.call(e,t.value));t.onChange=n;t.originalValue=o(e)}function o(e){return r.data(e,"numberbox").field.val()}function s(e,t){var n=r.data(e,"numberbox");var a=n.options;var i=o(e);t=a.parser.call(e,t);a.value=t;n.field.val(t);r(e).val(a.formatter.call(e,t));if(i!=t){a.onChange.call(e,t,i)}}function l(t){var n=r.data(t,"numberbox").options;r(t).unbind(".numberbox").bind("keypress.numberbox",function(e){return n.filter.call(t,e)}).bind("blur.numberbox",function(){s(t,r(this).val());r(this).val(n.formatter.call(t,o(t)))}).bind("focus.numberbox",function(){var e=o(t);if(e!=n.parser.call(t,r(this).val())){r(this).val(n.formatter.call(t,e))}})}function d(e){if(r.fn.validatebox){var t=r.data(e,"numberbox").options;r(e).validatebox(t)}}function u(e,t){var n=r.data(e,"numberbox").options;if(t){n.disabled=true;r(e).attr("disabled",true)}else{n.disabled=false;r(e).removeAttr("disabled")}}r.fn.numberbox=function(t,e){if(typeof t=="string"){var n=r.fn.numberbox.methods[t];if(n){return n(this,e)}else{return this.validatebox(t,e)}}t=t||{};return this.each(function(){var e=r.data(this,"numberbox");if(e){r.extend(e.options,t)}else{e=r.data(this,"numberbox",{options:r.extend({},r.fn.numberbox.defaults,r.fn.numberbox.parseOptions(this),t),field:a(this)});r(this).removeAttr("disabled");r(this).css({imeMode:"disabled"})}u(this,e.options.disabled);l(this);d(this);i(this)})};r.fn.numberbox.methods={options:function(e){return r.data(e[0],"numberbox").options},destroy:function(e){return e.each(function(){r.data(this,"numberbox").field.remove();r(this).validatebox("destroy");r(this).remove()})},disable:function(e){return e.each(function(){u(this,true)})},enable:function(e){return e.each(function(){u(this,false)})},fix:function(e){return e.each(function(){s(this,r(this).val())})},setValue:function(e,t){return e.each(function(){s(this,t)})},getValue:function(e){return o(e[0])},clear:function(e){return e.each(function(){var e=r.data(this,"numberbox");e.field.val("");r(this).val("")})},reset:function(e){return e.each(function(){var e=r(this).numberbox("options");r(this).numberbox("setValue",e.originalValue)})}};r.fn.numberbox.parseOptions=function(e){var t=r(e);return r.extend({},r.fn.validatebox.parseOptions(e),r.parser.parseOptions(e,["decimalSeparator","groupSeparator","suffix",{min:"number",max:"number",precision:"number"}]),{prefix:t.attr("prefix")?t.attr("prefix"):undefined,disabled:t.attr("disabled")?true:undefined,value:t.val()||undefined})};r.fn.numberbox.defaults=r.extend({},r.fn.validatebox.defaults,{disabled:false,value:"",min:null,max:null,precision:0,decimalSeparator:".",groupSeparator:"",prefix:"",suffix:"",filter:function(e){var t=r(this).numberbox("options");
if(e.which==45){return r(this).val().indexOf("-")==-1?true:false}var n=String.fromCharCode(e.which);if(n==t.decimalSeparator){return r(this).val().indexOf(n)==-1?true:false}else{if(n==t.groupSeparator){return true}else{if(e.which>=48&&e.which<=57&&e.ctrlKey==false&&e.shiftKey==false||e.which==0||e.which==8){return true}else{if(e.ctrlKey==true&&(e.which==99||e.which==118)){return true}else{return false}}}}},formatter:function(e){if(!e){return e}e=e+"";var t=r(this).numberbox("options");var n=e,a="";var i=e.indexOf(".");if(i>=0){n=e.substring(0,i);a=e.substring(i+1,e.length)}if(t.groupSeparator){var o=/(\d+)(\d{3})/;while(o.test(n)){n=n.replace(o,"$1"+t.groupSeparator+"$2")}}if(a){return t.prefix+n+t.decimalSeparator+a+t.suffix}else{return t.prefix+n+t.suffix}},parser:function(e){e=e+"";var t=r(this).numberbox("options");if(parseFloat(e)!=e){if(t.prefix){e=r.trim(e.replace(new RegExp("\\"+r.trim(t.prefix),"g"),""))}if(t.suffix){e=r.trim(e.replace(new RegExp("\\"+r.trim(t.suffix),"g"),""))}if(t.groupSeparator){e=r.trim(e.replace(new RegExp("\\"+t.groupSeparator,"g"),""))}if(t.decimalSeparator){e=r.trim(e.replace(new RegExp("\\"+t.decimalSeparator,"g"),"."))}e=e.replace(/\s/g,"")}var n=parseFloat(e).toFixed(t.precision);if(isNaN(n)){n=""}else{if(typeof t.min=="number"&&n<t.min){n=t.min.toFixed(t.precision)}else{if(typeof t.max=="number"&&n>t.max){n=t.max.toFixed(t.precision)}}}return n},onChange:function(e,t){}})})(jQuery);(function(b){function n(e){var t=b.data(e,"calendar").options;var n=b(e);if(t.fit==true){var a=n.parent();t.width=a.width();t.height=a.height()}var i=n.find(".calendar-header");n._outerWidth(t.width);n._outerHeight(t.height);n.find(".calendar-body")._outerHeight(n.height()-i._outerHeight())}function a(t){b(t).addClass("calendar").html('<div class="calendar-header">'+'<div class="calendar-prevmonth"></div>'+'<div class="calendar-nextmonth"></div>'+'<div class="calendar-prevyear"></div>'+'<div class="calendar-nextyear"></div>'+'<div class="calendar-title">'+"<span>Aprial 2010</span>"+"</div>"+"</div>"+'<div class="calendar-body">'+'<div class="calendar-menu">'+'<div class="calendar-menu-year-inner">'+'<span class="calendar-menu-prev"></span>'+'<span><input class="calendar-menu-year" type="text"></input></span>'+'<span class="calendar-menu-next"></span>'+"</div>"+'<div class="calendar-menu-month-inner">'+"</div>"+"</div>"+"</div>");b(t).find(".calendar-title span").hover(function(){b(this).addClass("calendar-menu-hover")},function(){b(this).removeClass("calendar-menu-hover")}).click(function(){var e=b(t).find(".calendar-menu");if(e.is(":visible")){e.hide()}else{o(t)}});b(".calendar-prevmonth,.calendar-nextmonth,.calendar-prevyear,.calendar-nextyear",t).hover(function(){b(this).addClass("calendar-nav-hover")},function(){b(this).removeClass("calendar-nav-hover")});b(t).find(".calendar-nextmonth").click(function(){e(t,1)});b(t).find(".calendar-prevmonth").click(function(){e(t,-1)});b(t).find(".calendar-nextyear").click(function(){i(t,1)});b(t).find(".calendar-prevyear").click(function(){i(t,-1)});b(t).bind("_resize",function(){var e=b.data(t,"calendar").options;if(e.fit==true){n(t)}return false})}function e(e,t){var n=b.data(e,"calendar").options;n.month+=t;if(n.month>12){n.year++;n.month=1}else{if(n.month<1){n.year--;n.month=12}}f(e);var a=b(e).find(".calendar-menu-month-inner");a.find("td.calendar-selected").removeClass("calendar-selected");a.find("td:eq("+(n.month-1)+")").addClass("calendar-selected")}function i(e,t){var n=b.data(e,"calendar").options;n.year+=t;f(e);var a=b(e).find(".calendar-menu-year");a.val(n.year)}function o(a){var i=b.data(a,"calendar").options;b(a).find(".calendar-menu").show();if(b(a).find(".calendar-menu-month-inner").is(":empty")){b(a).find(".calendar-menu-month-inner").empty();var e=b("<table></table>").appendTo(b(a).find(".calendar-menu-month-inner"));var t=0;for(var n=0;n<3;n++){var o=b("<tr></tr>").appendTo(e);for(var r=0;r<4;r++){b('<td class="calendar-menu-month"></td>').html(i.months[t++]).attr("abbr",t).appendTo(o)}}b(a).find(".calendar-menu-prev,.calendar-menu-next").hover(function(){b(this).addClass("calendar-menu-hover")},function(){b(this).removeClass("calendar-menu-hover")});b(a).find(".calendar-menu-next").click(function(){var e=b(a).find(".calendar-menu-year");if(!isNaN(e.val())){e.val(parseInt(e.val())+1)}});b(a).find(".calendar-menu-prev").click(function(){var e=b(a).find(".calendar-menu-year");if(!isNaN(e.val())){e.val(parseInt(e.val()-1))}});b(a).find(".calendar-menu-year").keypress(function(e){if(e.keyCode==13){s()}});b(a).find(".calendar-menu-month").hover(function(){b(this).addClass("calendar-menu-hover")},function(){b(this).removeClass("calendar-menu-hover")}).click(function(){var e=b(a).find(".calendar-menu");e.find(".calendar-selected").removeClass("calendar-selected");b(this).addClass("calendar-selected");s()})}function s(){var e=b(a).find(".calendar-menu");var t=e.find(".calendar-menu-year").val();var n=e.find(".calendar-selected").attr("abbr");
if(!isNaN(t)){i.year=parseInt(t);i.month=parseInt(n);f(a)}e.hide()}var l=b(a).find(".calendar-body");var d=b(a).find(".calendar-menu");var u=d.find(".calendar-menu-year-inner");var c=d.find(".calendar-menu-month-inner");u.find("input").val(i.year).focus();c.find("td.calendar-selected").removeClass("calendar-selected");c.find("td:eq("+(i.month-1)+")").addClass("calendar-selected");d._outerWidth(l._outerWidth());d._outerHeight(l._outerHeight());c._outerHeight(d.height()-u._outerHeight())}function v(e,t,n){var a=b.data(e,"calendar").options;var i=[];var o=new Date(t,n,0).getDate();for(var r=1;r<=o;r++){i.push([t,n,r])}var s=[],l=[];var d=-1;while(i.length>0){var u=i.shift();l.push(u);var c=new Date(u[0],u[1]-1,u[2]).getDay();if(d==c){c=0}else{if(c==(a.firstDay==0?7:a.firstDay)-1){s.push(l);l=[]}}d=c}if(l.length){s.push(l)}var f=s[0];if(f.length<7){while(f.length<7){var h=f[0];var u=new Date(h[0],h[1]-1,h[2]-1);f.unshift([u.getFullYear(),u.getMonth()+1,u.getDate()])}}else{var h=f[0];var l=[];for(var r=1;r<=7;r++){var u=new Date(h[0],h[1]-1,h[2]-r);l.unshift([u.getFullYear(),u.getMonth()+1,u.getDate()])}s.unshift(l)}var p=s[s.length-1];while(p.length<7){var v=p[p.length-1];var u=new Date(v[0],v[1]-1,v[2]+1);p.push([u.getFullYear(),u.getMonth()+1,u.getDate()])}if(s.length<6){var v=p[p.length-1];var l=[];for(var r=1;r<=7;r++){var u=new Date(v[0],v[1]-1,v[2]+r);l.push([u.getFullYear(),u.getMonth()+1,u.getDate()])}s.push(l)}return s}function f(t){var n=b.data(t,"calendar").options;b(t).find(".calendar-title span").html(n.months[n.month-1]+" "+n.year);var e=b(t).find("div.calendar-body");e.find(">table").remove();var a=b('<table cellspacing="0" cellpadding="0" border="0"><thead></thead><tbody></tbody></table>').prependTo(e);var i=b("<tr></tr>").appendTo(a.find("thead"));for(var o=n.firstDay;o<n.weeks.length;o++){i.append("<th>"+n.weeks[o]+"</th>")}for(var o=0;o<n.firstDay;o++){i.append("<th>"+n.weeks[o]+"</th>")}var r=v(t,n.year,n.month);for(var o=0;o<r.length;o++){var s=r[o];var i=b("<tr></tr>").appendTo(a.find("tbody"));for(var l=0;l<s.length;l++){var d=s[l];b('<td class="calendar-day calendar-other-month"></td>').attr("abbr",d[0]+","+d[1]+","+d[2]).html(d[2]).appendTo(i)}}a.find('td[abbr^="'+n.year+","+n.month+'"]').removeClass("calendar-other-month");var u=new Date;var c=u.getFullYear()+","+(u.getMonth()+1)+","+u.getDate();a.find('td[abbr="'+c+'"]').addClass("calendar-today");if(n.current){a.find(".calendar-selected").removeClass("calendar-selected");var f=n.current.getFullYear()+","+(n.current.getMonth()+1)+","+n.current.getDate();a.find('td[abbr="'+f+'"]').addClass("calendar-selected")}var h=6-n.firstDay;var p=h+1;if(h>=7){h-=7}if(p>=7){p-=7}a.find("tr").find("td:eq("+h+")").addClass("calendar-saturday");a.find("tr").find("td:eq("+p+")").addClass("calendar-sunday");a.find("td").hover(function(){b(this).addClass("calendar-hover")},function(){b(this).removeClass("calendar-hover")}).click(function(){a.find(".calendar-selected").removeClass("calendar-selected");b(this).addClass("calendar-selected");var e=b(this).attr("abbr").split(",");n.current=new Date(e[0],parseInt(e[1])-1,e[2]);n.onSelect.call(t,n.current)})}b.fn.calendar=function(t,e){if(typeof t=="string"){return b.fn.calendar.methods[t](this,e)}t=t||{};return this.each(function(){var e=b.data(this,"calendar");if(e){b.extend(e.options,t)}else{e=b.data(this,"calendar",{options:b.extend({},b.fn.calendar.defaults,b.fn.calendar.parseOptions(this),t)});a(this)}if(e.options.border==false){b(this).addClass("calendar-noborder")}n(this);f(this);b(this).find("div.calendar-menu").hide()})};b.fn.calendar.methods={options:function(e){return b.data(e[0],"calendar").options},resize:function(e){return e.each(function(){n(this)})},moveTo:function(e,t){return e.each(function(){b(this).calendar({year:t.getFullYear(),month:t.getMonth()+1,current:t})})}};b.fn.calendar.parseOptions=function(e){var t=b(e);return b.extend({},b.parser.parseOptions(e,["width","height",{firstDay:"number",fit:"boolean",border:"boolean"}]))};b.fn.calendar.defaults={width:180,height:180,fit:false,border:true,firstDay:0,weeks:["S","M","T","W","T","F","S"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],year:(new Date).getFullYear(),month:(new Date).getMonth()+1,current:new Date,onSelect:function(e){}}})(jQuery);(function(r){function a(e){var t=r('<span class="spinner">'+'<span class="spinner-arrow">'+'<span class="spinner-arrow-up"></span>'+'<span class="spinner-arrow-down"></span>'+"</span>"+"</span>").insertAfter(e);r(e).addClass("spinner-text spinner-f").prependTo(t);return t}function i(e,t){var n=r.data(e,"spinner").options;var a=r.data(e,"spinner").spinner;if(t){n.width=t}var i=r('<div style="display:none"></div>').insertBefore(a);a.appendTo("body");if(isNaN(n.width)){n.width=r(e).outerWidth()}var o=a.find(".spinner-arrow");a._outerWidth(n.width)._outerHeight(n.height);r(e)._outerWidth(a.width()-o.outerWidth());r(e).css({height:a.height()+"px",lineHeight:a.height()+"px"});
o._outerHeight(a.height());o.find("span")._outerHeight(o.height()/2);a.insertAfter(i);i.remove()}function o(e){var t=r.data(e,"spinner").options;var n=r.data(e,"spinner").spinner;n.find(".spinner-arrow-up,.spinner-arrow-down").unbind(".spinner");if(!t.disabled){n.find(".spinner-arrow-up").bind("mouseenter.spinner",function(){r(this).addClass("spinner-arrow-hover")}).bind("mouseleave.spinner",function(){r(this).removeClass("spinner-arrow-hover")}).bind("click.spinner",function(){t.spin.call(e,false);t.onSpinUp.call(e);r(e).validatebox("validate")});n.find(".spinner-arrow-down").bind("mouseenter.spinner",function(){r(this).addClass("spinner-arrow-hover")}).bind("mouseleave.spinner",function(){r(this).removeClass("spinner-arrow-hover")}).bind("click.spinner",function(){t.spin.call(e,true);t.onSpinDown.call(e);r(e).validatebox("validate")})}}function s(e,t){var n=r.data(e,"spinner").options;if(t){n.disabled=true;r(e).attr("disabled",true)}else{n.disabled=false;r(e).removeAttr("disabled")}}r.fn.spinner=function(t,e){if(typeof t=="string"){var n=r.fn.spinner.methods[t];if(n){return n(this,e)}else{return this.validatebox(t,e)}}t=t||{};return this.each(function(){var e=r.data(this,"spinner");if(e){r.extend(e.options,t)}else{e=r.data(this,"spinner",{options:r.extend({},r.fn.spinner.defaults,r.fn.spinner.parseOptions(this),t),spinner:a(this)});r(this).removeAttr("disabled")}e.options.originalValue=e.options.value;r(this).val(e.options.value);r(this).attr("readonly",!e.options.editable);s(this,e.options.disabled);i(this);r(this).validatebox(e.options);o(this)})};r.fn.spinner.methods={options:function(e){var t=r.data(e[0],"spinner").options;return r.extend(t,{value:e.val()})},destroy:function(e){return e.each(function(){var e=r.data(this,"spinner").spinner;r(this).validatebox("destroy");e.remove()})},resize:function(e,t){return e.each(function(){i(this,t)})},enable:function(e){return e.each(function(){s(this,false);o(this)})},disable:function(e){return e.each(function(){s(this,true);o(this)})},getValue:function(e){return e.val()},setValue:function(e,t){return e.each(function(){var e=r.data(this,"spinner").options;e.value=t;r(this).val(t)})},clear:function(e){return e.each(function(){var e=r.data(this,"spinner").options;e.value="";r(this).val("")})},reset:function(e){return e.each(function(){var e=r(this).spinner("options");r(this).spinner("setValue",e.originalValue)})}};r.fn.spinner.parseOptions=function(e){var t=r(e);return r.extend({},r.fn.validatebox.parseOptions(e),r.parser.parseOptions(e,["width","height","min","max",{increment:"number",editable:"boolean"}]),{value:t.val()||undefined,disabled:t.attr("disabled")?true:undefined})};r.fn.spinner.defaults=r.extend({},r.fn.validatebox.defaults,{width:"auto",height:22,deltaX:19,value:"",min:null,max:null,increment:1,editable:true,disabled:false,spin:function(e){},onSpinUp:function(){},onSpinDown:function(){}})})(jQuery);(function(i){function a(e){i(e).addClass("numberspinner-f");var t=i.data(e,"numberspinner").options;i(e).spinner(t).numberbox(t)}function t(e,t){var n=i.data(e,"numberspinner").options;var a=parseFloat(i(e).numberbox("getValue")||n.value)||0;if(t==true){a-=n.increment}else{a+=n.increment}i(e).numberbox("setValue",a)}i.fn.numberspinner=function(t,e){if(typeof t=="string"){var n=i.fn.numberspinner.methods[t];if(n){return n(this,e)}else{return this.spinner(t,e)}}t=t||{};return this.each(function(){var e=i.data(this,"numberspinner");if(e){i.extend(e.options,t)}else{i.data(this,"numberspinner",{options:i.extend({},i.fn.numberspinner.defaults,i.fn.numberspinner.parseOptions(this),t)})}a(this)})};i.fn.numberspinner.methods={options:function(e){var t=i.data(e[0],"numberspinner").options;return i.extend(t,{value:e.numberbox("getValue"),originalValue:e.numberbox("options").originalValue})},setValue:function(e,t){return e.each(function(){i(this).numberbox("setValue",t)})},getValue:function(e){return e.numberbox("getValue")},clear:function(e){return e.each(function(){i(this).spinner("clear");i(this).numberbox("clear")})},reset:function(e){return e.each(function(){var e=i(this).numberspinner("options");i(this).numberspinner("setValue",e.originalValue)})}};i.fn.numberspinner.parseOptions=function(e){return i.extend({},i.fn.spinner.parseOptions(e),i.fn.numberbox.parseOptions(e),{})};i.fn.numberspinner.defaults=i.extend({},i.fn.spinner.defaults,i.fn.numberbox.defaults,{spin:function(e){t(this,e)}})})(jQuery);function btnFan(){var e=$("#cron").val();if(e){var t=e.split(" ");$("input[name=v_second]").val(t[0]);$("input[name=v_min]").val(t[1]);$("input[name=v_hour]").val(t[2]);$("input[name=v_day]").val(t[3]);$("input[name=v_mouth]").val(t[4]);$("input[name=v_week]").val(t[5]);initObj(t[0],"second");initObj(t[1],"min");initObj(t[2],"hour");initDay(t[3]);initMonth(t[4]);initWeek(t[5]);if(t.length>6){$("input[name=v_year]").val(t[6]);initYear(t[6])}}}function initObj(e,t){var n=null;var a=$("input[name='"+t+"'");if(e=="*"){a.eq(0).attr("checked","checked")}else{if(e.split("-").length>1){n=e.split("-");
a.eq(1).attr("checked","checked");$("#"+t+"Start_0").numberspinner("setValue",n[0]);$("#"+t+"End_0").numberspinner("setValue",n[1])}else{if(e.split("/").length>1){n=e.split("/");a.eq(2).attr("checked","checked");$("#"+t+"Start_1").numberspinner("setValue",n[0]);$("#"+t+"End_1").numberspinner("setValue",n[1])}else{a.eq(3).attr("checked","checked");if(e!="?"){n=e.split(",");for(var i=0;i<n.length;i++){$("."+t+"List input[value='"+n[i]+"']").attr("checked","checked")}}}}}}function initDay(e){var t=null;var n=$("input[name='day'");if(e=="*"){n.eq(0).attr("checked","checked")}else{if(e=="?"){n.eq(1).attr("checked","checked")}else{if(e.split("-").length>1){t=e.split("-");n.eq(2).attr("checked","checked");$("#dayStart_0").numberspinner("setValue",t[0]);$("#dayEnd_0").numberspinner("setValue",t[1])}else{if(e.split("/").length>1){t=e.split("/");n.eq(3).attr("checked","checked");$("#dayStart_1").numberspinner("setValue",t[0]);$("#dayEnd_1").numberspinner("setValue",t[1])}else{if(e.split("W").length>1){t=e.split("W");n.eq(4).attr("checked","checked");$("#dayStart_2").numberspinner("setValue",t[0])}else{if(e=="L"){n.eq(5).attr("checked","checked")}else{n.eq(6).attr("checked","checked");t=e.split(",");for(var a=0;a<t.length;a++){$(".dayList input[value='"+t[a]+"']").attr("checked","checked")}}}}}}}}function initMonth(e){var t=null;var n=$("input[name='mouth'");if(e=="*"){n.eq(0).attr("checked","checked")}else{if(e=="?"){n.eq(1).attr("checked","checked")}else{if(e.split("-").length>1){t=e.split("-");n.eq(2).attr("checked","checked");$("#mouthStart_0").numberspinner("setValue",t[0]);$("#mouthEnd_0").numberspinner("setValue",t[1])}else{if(e.split("/").length>1){t=e.split("/");n.eq(3).attr("checked","checked");$("#mouthStart_1").numberspinner("setValue",t[0]);$("#mouthEnd_1").numberspinner("setValue",t[1])}else{n.eq(4).attr("checked","checked");t=e.split(",");for(var a=0;a<t.length;a++){$(".mouthList input[value='"+t[a]+"']").attr("checked","checked")}}}}}}function initWeek(e){var t=null;var n=$("input[name='week'");if(e=="*"){n.eq(0).attr("checked","checked")}else{if(e=="?"){n.eq(1).attr("checked","checked")}else{if(e.split("/").length>1){t=e.split("/");n.eq(2).attr("checked","checked");$("#weekStart_0").numberspinner("setValue",t[0]);$("#weekEnd_0").numberspinner("setValue",t[1])}else{if(e.split("-").length>1){t=e.split("-");n.eq(3).attr("checked","checked");$("#weekStart_1").numberspinner("setValue",t[0]);$("#weekEnd_1").numberspinner("setValue",t[1])}else{if(e.split("L").length>1){t=e.split("L");n.eq(4).attr("checked","checked");$("#weekStart_2").numberspinner("setValue",t[0])}else{n.eq(5).attr("checked","checked");t=e.split(",");for(var a=0;a<t.length;a++){$(".weekList input[value='"+t[a]+"']").attr("checked","checked")}}}}}}}function initYear(e){var t=null;var n=$("input[name='year'");if(e=="*"){n.eq(1).attr("checked","checked")}else{if(e.split("-").length>1){t=e.split("-");n.eq(2).attr("checked","checked");$("#yearStart_0").numberspinner("setValue",t[0]);$("#yearEnd_0").numberspinner("setValue",t[1])}}}function everyTime(e){var t=$("input[name=v_"+e.name+"]");t.val("*");t.change()}function unAppoint(e){var t=e.name;var n="?";if(t=="year"){n=""}var a=$("input[name=v_"+t+"]");a.val(n);a.change()}function appoint(e){}function cycle(e){var t=e.name;var n=$(e).parent().find(".numberspinner");var a=n.eq(0).numberspinner("getValue");var i=n.eq(1).numberspinner("getValue");var o=$("input[name=v_"+t+"]");o.val(a+"-"+i);o.change()}function startOn(e){var t=e.name;var n=$(e).parent().find(".numberspinner");var a=n.eq(0).numberspinner("getValue");var i=n.eq(1).numberspinner("getValue");var o=$("input[name=v_"+t+"]");o.val(a+"/"+i);o.change()}function lastDay(e){var t=$("input[name=v_"+e.name+"]");t.val("L");t.change()}function weekOfDay(e){var t=e.name;var n=$(e).parent().find(".numberspinner");var a=n.eq(0).numberspinner("getValue");var i=n.eq(1).numberspinner("getValue");var o=$("input[name=v_"+t+"]");o.val(a+"#"+i);o.change()}function lastWeek(e){var t=$("input[name=v_"+e.name+"]");var n=$(e).parent().find(".numberspinner");var a=n.eq(0).numberspinner("getValue");t.val(a+"L");t.change()}function workDay(e){var t=e.name;var n=$(e).parent().find(".numberspinner");var a=n.eq(0).numberspinner("getValue");var i=$("input[name=v_"+t+"]");i.val(a+"W");i.change()}$(function(){$(".numberspinner").numberspinner({onChange:function(){$(this).closest("div.line").children().eq(0).click()}});var a=$("input[name^='v_']");var i=$("#cron");a.change(function(){var e=[];a.each(function(){e.push(this.value)});var n=0;$(".tabs>li").each(function(e,t){if($(t).hasClass("tabs-selected")){n=e;return false}});for(var t=n;t>=1;t--){if(e[t]!="*"&&e[t-1]=="*"){e[t-1]="0"}}if(e[n]=="*"){for(var t=n+1;t<e.length;t++){if(t==5){e[t]="?"}else{e[t]="*"}}}i.val(e.join(" ")).change()});i.change(function(){btnFan();$.ajax({type:"get",url:baseURL+"sysjob/getNextExecTime",dataType:"json",data:{CronExpression:$("#cron").val()},success:function(e){if(e.code=="00000"){if(e&&e.data.length>0){var t="";
for(var n=0;n<e.data.length;n++){t+=e.data[n]+"\n"}$("#runTime").val(t)}else{$("#runTime").val("(⊙o⊙)…您的表达式运行不出结果额")}}else{$("#runTime").val(e.msg)}}})});var o=$(".secondList").children();$("#sencond_appoint").click(function(){if(this.checked){if($(o).filter(":checked").length==0){$(o.eq(0)).attr("checked",true)}o.eq(0).change()}});o.change(function(){var e=$("#sencond_appoint").prop("checked");if(e){var t=[];o.each(function(){if(this.checked){t.push(this.value)}});var n="?";if(t.length>0&&t.length<59){n=t.join(",")}else{if(t.length==59){n="*"}}var a=$("input[name=v_second]");a.val(n);a.change()}});var r=$(".minList").children();$("#min_appoint").click(function(){if(this.checked){if($(r).filter(":checked").length==0){$(r.eq(0)).attr("checked",true)}r.eq(0).change()}});r.change(function(){var e=$("#min_appoint").prop("checked");if(e){var t=[];r.each(function(){if(this.checked){t.push(this.value)}});var n="?";if(t.length>0&&t.length<59){n=t.join(",")}else{if(t.length==59){n="*"}}var a=$("input[name=v_min]");a.val(n);a.change()}});var s=$(".hourList").children();$("#hour_appoint").click(function(){if(this.checked){if($(s).filter(":checked").length==0){$(s.eq(0)).attr("checked",true)}s.eq(0).change()}});s.change(function(){var e=$("#hour_appoint").prop("checked");if(e){var t=[];s.each(function(){if(this.checked){t.push(this.value)}});var n="?";if(t.length>0&&t.length<24){n=t.join(",")}else{if(t.length==24){n="*"}}var a=$("input[name=v_hour]");a.val(n);a.change()}});var l=$(".dayList").children();$("#day_appoint").click(function(){if(this.checked){if($(l).filter(":checked").length==0){$(l.eq(0)).attr("checked",true)}l.eq(0).change()}});l.change(function(){var e=$("#day_appoint").prop("checked");if(e){var t=[];l.each(function(){if(this.checked){t.push(this.value)}});var n="?";if(t.length>0&&t.length<31){n=t.join(",")}else{if(t.length==31){n="*"}}var a=$("input[name=v_day]");a.val(n);a.change()}});var d=$(".mouthList").children();$("#mouth_appoint").click(function(){if(this.checked){if($(d).filter(":checked").length==0){$(d.eq(0)).attr("checked",true)}d.eq(0).change()}});d.change(function(){var e=$("#mouth_appoint").prop("checked");if(e){var t=[];d.each(function(){if(this.checked){t.push(this.value)}});var n="?";if(t.length>0&&t.length<12){n=t.join(",")}else{if(t.length==12){n="*"}}var a=$("input[name=v_mouth]");a.val(n);a.change()}});var u=$(".weekList").children();$("#week_appoint").click(function(){if(this.checked){if($(u).filter(":checked").length==0){$(u.eq(0)).attr("checked",true)}u.eq(0).change()}});u.change(function(){var e=$("#week_appoint").prop("checked");if(e){var t=[];u.each(function(){if(this.checked){t.push(this.value)}});var n="?";if(t.length>0&&t.length<7){n=t.join(",")}else{if(t.length==7){n="*"}}var a=$("input[name=v_week]");a.val(n);a.change()}})});
|
import axios from "axios";
const myaxios = axios.create({
baseURL: "http://127.0.0.1:8000/api/v1/",
});
export default myaxios;
|
import { Link } from "react-router-dom";
import { dateToRelativeTime } from "../helpers/date";
import UserAvatar from "./UserAvatar";
import { useAuth } from "../hooks/useAuth";
const Comment = ({ data = {}, deleteComment }) => {
const { user } = useAuth();
const handleDelete = async () => {
try {
const consent = window.confirm(
`Are you sure to delete the comment.\nThis action cannot be undone.`
);
if (!consent) return;
await deleteComment(data.id);
} catch {}
};
return (
<article className="media">
<div className="media-left">
{data?.author?.photoURL ? (
<figure className="image is-1by1 is-48x48">
<img
className="is-rounded"
src={data?.author?.photoURL}
alt={data?.author?.displayName}
/>
</figure>
) : (
<UserAvatar
className="avatar-circle-small"
name={data?.author?.displayName}
/>
)}
</div>
<div className="media-content">
<div className="content">
<p>
<Link
to={`/profile/${data?.author?.userName}`}
className="title is-6 mr-1"
>
{data?.author?.displayName}
</Link>
<span className="subtitle is-7">@{data?.author?.userName}</span>
<span className="mx-2">·</span>
<span className="subtitle is-7">
{dateToRelativeTime(data?.createdAt)}
</span>
<br />
<span style={{ whiteSpace: "pre-wrap" }}>{data?.content}</span>
</p>
</div>
</div>
{user.uid === data.author?.uid && (
<div className="media-right">
<button className="delete" onClick={handleDelete}></button>
</div>
)}
</article>
);
};
export default Comment;
|
const server = require('./server');
const keys = require('./keys.json');
// Initialize express server api
server.listen(keys.port, () => console.log(`listening on port ${keys.port} ...`));
|
var http = require("http"),
url = require("url"),
fs = require("fs"),
gracefulFs = require("graceful-fs"),
fsExtra = require("fs-extra"),
originalFs = require("original-fs");
var server = http.createServer(function(req, res) {
var path = url.parse(req.url, true).query.path;
fs.readFileSync(path); // NOT OK
gracefulFs.readFileSync(path); // NOT OK
fsExtra.readFileSync(path); // NOT OK
originalFs.readFileSync(path); // NOT OK
getFsModule(true).readFileSync(path); // NOT OK
getFsModule(false).readFileSync(path); // NOT OK
require("./my-fs-module").require(true).readFileSync(path); // NOT OK
let flexibleModuleName = require(process.versions["electron"]
? "original-fs"
: "fs");
flexibleModuleName.readFileSync(path); // NOT OK
});
function getFsModule(special) {
if (special) {
return require("fs");
} else {
return require("original-fs");
}
}
var util = require("util");
http.createServer(function(req, res) {
var path = url.parse(req.url, true).query.path;
util.promisify(fs.readFileSync)(path); // NOT OK
require("bluebird").promisify(fs.readFileSync)(path); // NOT OK
require("bluebird").promisifyAll(fs).readFileSync(path); // NOT OK
});
|
/*global describe, it, expect, example, before, after, beforeEach, afterEach, mocha, sinon*/
'use strict';
var assert = require('chai').assert;
var $ = require('jquery');
var faker = require('faker');
var utils = require('./utils');
var profile = require('../profile');
// Add sinon asserts to chai.assert, so we can do assert.calledWith instead of sinon.assert.calledWith
sinon.assert.expose(assert, {prefix: ''});
describe('profile', () => {
describe('ViewModels', () => {
var nameURLs = {
crud: '/settings/names/',
impute: '/settings/names/impute/'
};
var server;
var names = {
full: faker.name.findName(),
given: faker.name.firstName(),
middle: [faker.name.lastName()],
family: faker.name.lastName(),
suffix: faker.name.suffix()
};
var imputedNames = {
given: faker.name.firstName(),
middle: [faker.name.lastName()],
family: faker.name.lastName(),
suffix: faker.name.suffix()
};
before(() => {
// Set up fake server
var endpoints = [
{url: nameURLs.crud, response: names},
{url: /\/settings\/names\/impute\/.+/, response: imputedNames}
];
server = utils.createServer(sinon, endpoints);
});
after(() => {
server.restore();
});
describe('NameViewModel', () => {
var vm;
// Constructor current sends a request, so need to make beforeEach async
beforeEach((done) => {
vm = new profile._NameViewModel(nameURLs, ['view', 'edit'], false, function() {
done();
});
});
it('should fetch and update names upon instantiation', (done) => {
var vm = new profile._NameViewModel(nameURLs, ['view', 'edit'], false, function() {
// Observables have been updated
assert.equal(this.full(), names.full);
assert.equal(this.given(), names.given);
assert.equal(this.family(), names.family);
assert.equal(this.suffix(), names.suffix);
done();
});
});
it('should not crash initials function when name contains two spaces', () => {
var initials = vm.initials('John Quincy');
assert.equal(initials, 'J. Q.');
});
describe('impute', () => {
it('should send request and update imputed names', (done) => {
vm.impute().done(() => {
assert.equal(vm.given(), imputedNames.given);
done();
});
});
});
// TODO: Test citation computes
});
// TODO: Test other profile ViewModels
});
});
|
/** Detect free variable `global` from Node.js. 检测Node.js中的自由变量`global` */
const freeGlobal = typeof global === 'object' && global !== null && global.Object === Object && global
export default freeGlobal
|
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import { Card, CardMedia, CardTitle } from 'material-ui/Card';
import history from '../../history';
import s from './Lesson.css';
class Lesson extends React.Component {
static propTypes = {
lesson: PropTypes.shape({
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
video: PropTypes.string,
image: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
}).isRequired,
};
handleClick = to => event => {
if (event.defaultPrevented === true) {
return;
}
event.preventDefault();
history.push(to);
};
render() {
return (
<div className={s.root}>
<h1>{this.props.lesson.title}</h1>
<Card>
<CardMedia>
{this.props.lesson.video === null ? (
<div>未购买课程(需要一张图片)</div>
) : (
<video src={this.props.lesson.video} controls="controls" />
)}
</CardMedia>
<CardTitle
title={this.props.lesson.title}
subtitle={this.props.lesson.description}
/>
</Card>
</div>
);
}
}
export default withStyles(s)(Lesson);
|
import InsightsConfigWarning from 'ee/insights/components/insights_config_warning.vue';
import { shallowMount } from '@vue/test-utils';
describe('Insights config warning component', () => {
const image = 'illustrations/monitoring/getting_started.svg';
const title = 'There are no charts configured for this page';
const summary =
'Please check the configuration file to ensure that a collection of charts has been declared.';
let wrapper;
beforeEach(() => {
wrapper = shallowMount(InsightsConfigWarning, {
propsData: { image, title, summary },
});
});
afterEach(() => {
wrapper.destroy();
});
it('renders the component', () => {
expect(
wrapper
.findAll('.content-image')
.at(0)
.attributes('src'),
).toContain(image);
expect(wrapper.find('.content-title').text()).toBe(title);
expect(wrapper.find('.content-summary').text()).toBe(summary);
});
});
|
import React, { Component } from 'react';
import { showModal } from 'react-redux-modal-provider';
import ExampleModal from './exampleModal';
class App extends Component {
state = {
message: 'Pass me to the modal'
}
render() {
return (
<div>
<p>
React Modal Provider App
</p>
<p>
<input
type="text"
onChange={e => this.setState({message: e.target.value})}
/>
</p>
<p>
<button
type="button"
className="btn btn-primary btn-lg"
onClick={() => showModal(ExampleModal, {
message: this.state.message
})}>
Launch demo modal
</button>
</p>
</div>
);
}
}
export default App;
|
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { BrowserRouter, Link, Route } from 'react-router-dom';
const NavLink = ({
className,
classNameActive,
classNameHasActiveChild,
active,
hasActiveChild,
to,
externalLink,
hasSubMenu,
toggleSubMenu,
activateMe,
children,
}) => (
<Link
className={classnames(
className,
active && classNameActive,
hasActiveChild && classNameHasActiveChild,
)}
to={to}
onClick={hasSubMenu ? toggleSubMenu : activateMe}
target={externalLink ? '_blank' : undefined}
>
{children}
</Link>
);
NavLink.defaultProps = {
externalLink: false,
toggleSubMenu: null,
};
NavLink.propTypes = {
className: PropTypes.string.isRequired,
classNameActive: PropTypes.string.isRequired,
classNameHasActiveChild: PropTypes.string.isRequired,
active: PropTypes.bool.isRequired,
hasActiveChild: PropTypes.bool.isRequired,
to: PropTypes.string.isRequired,
externalLink: PropTypes.bool,
hasSubMenu: PropTypes.bool.isRequired,
toggleSubMenu: PropTypes.func,
activateMe: PropTypes.func.isRequired,
children: PropTypes.oneOfType([
PropTypes.element,
PropTypes.array,
]).isRequired,
};
export default NavLink;
|
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* strict
* @format
*/
"use strict";
function _toConsumableArray(arr) {
return (
_arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread()
);
}
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
}
function _iterableToArray(iter) {
if (
Symbol.iterator in Object(iter) ||
Object.prototype.toString.call(iter) === "[object Arguments]"
)
return Array.from(iter);
}
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++)
arr2[i] = arr[i];
return arr2;
}
}
const template = require("@babel/template").default;
/**
* Produces a Babel template that transforms an "import * as x from ..." or an
* "import x from ..." call into a "const x = importAll(...)" call with the
* corresponding id in it.
*/
const importTemplate = template(`
var LOCAL = IMPORT(FILE);
`);
/**
* Produces a Babel template that transforms an "import {x as y} from ..." into
* "const y = require(...).x" call with the corresponding id in it.
*/
const importNamedTemplate = template(`
var LOCAL = require(FILE).REMOTE;
`);
/**
* Produces a Babel template that transforms an "import ..." into
* "require(...)", which is considered a side-effect call.
*/
const importSideEffect = template(`
require(FILE);
`);
/**
* Produces an "export all" template that traverses all exported symbols and
* re-exposes them.
*/
const exportAllTemplate = template(`
var REQUIRED = require(FILE);
for (var KEY in REQUIRED) {
exports[KEY] = REQUIRED[KEY];
}
`);
/**
* Produces a "named export" or "default export" template to export a single
* symbol.
*/
const exportTemplate = template(`
exports.REMOTE = LOCAL;
`);
/**
* Flags the exported module as a transpiled ES module. Needs to be kept in 1:1
* compatibility with Babel.
*/
const esModuleExport = template(`
Object.defineProperty(exports, '__esModule', {value: true});
`); // eslint-disable-next-line lint/flow-no-fixme
function importExportPlugin(_ref) {
let t = _ref.types;
return {
visitor: {
ExportAllDeclaration(path, state) {
if (path.node.exportKind && path.node.exportKind !== "value") {
return;
}
state.exportAll.push({
file: path.get("source").node.value
});
path.remove();
},
ExportDefaultDeclaration(path, state) {
if (path.node.exportKind && path.node.exportKind !== "value") {
return;
}
const declaration = path.get("declaration");
const node = declaration.node;
const id = node.id || path.scope.generateUidIdentifier("default");
node.id = id;
state.exportDefault.push({
local: id.name
});
if (t.isDeclaration(declaration)) {
path.insertBefore(node);
} else {
path.insertBefore(
t.variableDeclaration("var", [t.variableDeclarator(id, node)])
);
}
path.remove();
},
ExportNamedDeclaration(path, state) {
if (path.node.exportKind && path.node.exportKind !== "value") {
return;
}
const declaration = path.get("declaration");
const specifiers = path.get("specifiers");
if (declaration.node) {
if (t.isVariableDeclaration(declaration)) {
declaration.get("declarations").forEach(d => {
switch (d.get("id").node.type) {
case "ObjectPattern":
{
const properties = d.get("id").get("properties");
properties.forEach(p => {
const name = p.get("key").node.name;
state.exportNamed.push({
local: name,
remote: name
});
});
}
break;
case "ArrayPattern":
{
const elements = d.get("id").get("elements");
elements.forEach(e => {
const name = e.node.name;
state.exportNamed.push({
local: name,
remote: name
});
});
}
break;
default:
{
const name = d.get("id").node.name;
state.exportNamed.push({
local: name,
remote: name
});
}
break;
}
});
} else {
const id =
declaration.node.id || path.scope.generateUidIdentifier();
const name = id.name;
declaration.node.id = id;
state.exportNamed.push({
local: name,
remote: name
});
}
path.insertBefore(declaration.node);
}
if (specifiers) {
specifiers.forEach(s => {
const local = s.node.local;
const remote = s.node.exported;
if (path.node.source) {
const temp = path.scope.generateUidIdentifier(local.name);
if (local.name === "default") {
path.insertBefore(
importTemplate({
IMPORT: state.importDefault,
FILE: path.node.source,
LOCAL: temp
})
);
state.exportNamed.push({
local: temp.name,
remote: remote.name
});
} else if (remote.name === "default") {
path.insertBefore(
importNamedTemplate({
FILE: path.node.source,
LOCAL: temp,
REMOTE: local
})
);
state.exportDefault.push({
local: temp.name
});
} else {
path.insertBefore(
importNamedTemplate({
FILE: path.node.source,
LOCAL: temp,
REMOTE: local
})
);
state.exportNamed.push({
local: temp.name,
remote: remote.name
});
}
} else {
if (remote.name === "default") {
state.exportDefault.push({
local: local.name
});
} else {
state.exportNamed.push({
local: local.name,
remote: remote.name
});
}
}
});
}
path.remove();
},
ImportDeclaration(path, state) {
if (path.node.importKind && path.node.importKind !== "value") {
return;
}
const file = path.get("source").node;
const specifiers = path.get("specifiers");
const anchor = path.scope.path.get("body.0");
if (!specifiers.length) {
anchor.insertBefore(
importSideEffect({
FILE: file
})
);
} else {
path.get("specifiers").forEach(s => {
const imported = s.get("imported").node;
const local = s.get("local").node;
switch (s.node.type) {
case "ImportNamespaceSpecifier":
anchor.insertBefore(
importTemplate({
IMPORT: state.importAll,
FILE: file,
LOCAL: local
})
);
break;
case "ImportDefaultSpecifier":
anchor.insertBefore(
importTemplate({
IMPORT: state.importDefault,
FILE: file,
LOCAL: local
})
);
break;
case "ImportSpecifier":
anchor.insertBefore(
importNamedTemplate({
FILE: file,
LOCAL: local,
REMOTE: imported
})
);
break;
default:
throw new TypeError("Unknown import type: " + s.node.type);
}
});
}
path.remove();
},
Program: {
enter(path, state) {
state.exportAll = [];
state.exportDefault = [];
state.exportNamed = [];
state.importAll = t.identifier(state.opts.importAll);
state.importDefault = t.identifier(state.opts.importDefault);
},
exit(path, state) {
const body = path.node.body;
state.exportDefault.forEach(e => {
body.push(
exportTemplate({
LOCAL: t.identifier(e.local),
REMOTE: t.identifier("default")
})
);
});
state.exportAll.forEach(e => {
body.push.apply(
body,
_toConsumableArray(
exportAllTemplate({
FILE: t.stringLiteral(e.file),
REQUIRED: path.scope.generateUidIdentifier(e.file),
KEY: path.scope.generateUidIdentifier("key")
})
)
);
});
state.exportNamed.forEach(e => {
body.push(
exportTemplate({
LOCAL: t.identifier(e.local),
REMOTE: t.identifier(e.remote)
})
);
});
if (
state.exportDefault.length ||
state.exportAll.length ||
state.exportNamed.length
) {
body.unshift(esModuleExport());
}
}
}
}
};
}
module.exports = importExportPlugin;
|
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="/dist/",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n(1);var i=n(298),o=r(i),s=n(299),a=r(s),u=n(300),c=r(u),f=n(310),l=r(f);o["default"].use(a["default"]),new o["default"]({el:"body",components:{App:c["default"]},store:new a["default"].Store(l["default"])})},function(t,e,n){(function(t){"use strict";function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(2),n(293),n(295),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,function(){return this}())},function(t,e,n){n(3),n(52),n(53),n(54),n(55),n(57),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(70),n(72),n(74),n(76),n(79),n(80),n(81),n(85),n(87),n(89),n(92),n(93),n(94),n(95),n(97),n(98),n(99),n(100),n(101),n(102),n(103),n(105),n(106),n(107),n(109),n(110),n(111),n(113),n(114),n(115),n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(131),n(132),n(136),n(137),n(138),n(139),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(159),n(160),n(166),n(167),n(169),n(170),n(171),n(175),n(176),n(177),n(178),n(179),n(181),n(182),n(183),n(184),n(187),n(189),n(190),n(191),n(193),n(195),n(197),n(198),n(199),n(201),n(202),n(203),n(204),n(211),n(214),n(215),n(217),n(218),n(221),n(222),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(244),n(245),n(246),n(247),n(248),n(249),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(260),n(261),n(263),n(264),n(265),n(266),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(291),n(292),t.exports=n(9)},function(t,e,n){"use strict";var r=n(4),i=n(5),o=n(6),s=n(8),a=n(18),u=n(22).KEY,c=n(7),f=n(23),l=n(24),h=n(19),p=n(25),v=n(26),d=n(27),g=n(29),m=n(42),y=n(45),_=n(12),b=n(32),w=n(16),x=n(17),S=n(46),k=n(49),C=n(51),O=n(11),E=n(30),A=C.f,$=O.f,j=k.f,N=r.Symbol,T=r.JSON,F=T&&T.stringify,M="prototype",P=p("_hidden"),I=p("toPrimitive"),R={}.propertyIsEnumerable,L=f("symbol-registry"),D=f("symbols"),V=f("op-symbols"),W=Object[M],U="function"==typeof N,B=r.QObject,z=!B||!B[M]||!B[M].findChild,H=o&&c(function(){return 7!=S($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=A(W,e);r&&delete W[e],$(t,e,n),r&&t!==W&&$(W,e,r)}:$,G=function(t){var e=D[t]=S(N[M]);return e._k=t,e},J=U&&"symbol"==typeof N.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof N},K=function(t,e,n){return t===W&&K(V,e,n),_(t),e=w(e,!0),_(n),i(D,e)?(n.enumerable?(i(t,P)&&t[P][e]&&(t[P][e]=!1),n=S(n,{enumerable:x(0,!1)})):(i(t,P)||$(t,P,x(1,{})),t[P][e]=!0),H(t,e,n)):$(t,e,n)},q=function(t,e){_(t);for(var n,r=m(e=b(e)),i=0,o=r.length;o>i;)K(t,n=r[i++],e[n]);return t},Y=function(t,e){return void 0===e?S(t):q(S(t),e)},Q=function(t){var e=R.call(this,t=w(t,!0));return!(this===W&&i(D,t)&&!i(V,t))&&(!(e||!i(this,t)||!i(D,t)||i(this,P)&&this[P][t])||e)},X=function(t,e){if(t=b(t),e=w(e,!0),t!==W||!i(D,e)||i(V,e)){var n=A(t,e);return!n||!i(D,e)||i(t,P)&&t[P][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=j(b(t)),r=[],o=0;n.length>o;)i(D,e=n[o++])||e==P||e==u||r.push(e);return r},tt=function(t){for(var e,n=t===W,r=j(n?V:b(t)),o=[],s=0;r.length>s;)!i(D,e=r[s++])||n&&!i(W,e)||o.push(D[e]);return o};U||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(V,n),i(this,P)&&i(this[P],t)&&(this[P][t]=!1),H(this,t,x(1,n))};return o&&z&&H(W,t,{configurable:!0,set:e}),G(t)},a(N[M],"toString",function(){return this._k}),C.f=X,O.f=K,n(50).f=k.f=Z,n(44).f=Q,n(43).f=tt,o&&!n(28)&&a(W,"propertyIsEnumerable",Q,!0),v.f=function(t){return G(p(t))}),s(s.G+s.W+s.F*!U,{Symbol:N});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)p(et[nt++]);for(var et=E(p.store),nt=0;et.length>nt;)d(et[nt++]);s(s.S+s.F*!U,"Symbol",{"for":function(t){return i(L,t+="")?L[t]:L[t]=N(t)},keyFor:function(t){if(J(t))return g(L,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){z=!0},useSimple:function(){z=!1}}),s(s.S+s.F*!U,"Object",{create:Y,defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),T&&s(s.S+s.F*(!U||c(function(){var t=N();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!J(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&y(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,F.apply(T,r)}}}),N[M][I]||n(10)(N[M],I,N[M].valueOf),l(N,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(4),i=n(9),o=n(10),s=n(18),a=n(20),u="prototype",c=function(t,e,n){var f,l,h,p,v=t&c.F,d=t&c.G,g=t&c.S,m=t&c.P,y=t&c.B,_=d?r:g?r[e]||(r[e]={}):(r[e]||{})[u],b=d?i:i[e]||(i[e]={}),w=b[u]||(b[u]={});d&&(n=e);for(f in n)l=!v&&_&&void 0!==_[f],h=(l?_:n)[f],p=y&&l?a(h,r):m&&"function"==typeof h?a(Function.call,h):h,_&&s(_,f,h,t&c.U),b[f]!=h&&o(b,f,p),m&&w[f]!=h&&(w[f]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(11),i=n(17);t.exports=n(6)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(12),i=n(14),o=n(16),s=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(13);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(6)&&!n(7)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(13),i=n(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(13);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(4),i=n(10),o=n(5),s=n(19)("src"),a="toString",u=Function[a],c=(""+u).split(a);n(9).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,s)||i(n,s,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[s]||u.call(this)})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(21);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(19)("meta"),i=n(13),o=n(5),s=n(11).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(7)(function(){return u(Object.preventExtensions({}))}),f=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},l=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";f(t)}return t[r].i},h=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;f(t)}return t[r].w},p=function(t){return c&&v.NEED&&u(t)&&!o(t,r)&&f(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:p}},function(t,e,n){var r=n(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(11).f,i=n(5),o=n(25)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(23)("wks"),i=n(19),o=n(4).Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},function(t,e,n){e.f=n(25)},function(t,e,n){var r=n(4),i=n(9),o=n(28),s=n(26),a=n(11).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e){t.exports=!1},function(t,e,n){var r=n(30),i=n(32);t.exports=function(t,e){for(var n,o=i(t),s=r(o),a=s.length,u=0;a>u;)if(o[n=s[u++]]===e)return n}},function(t,e,n){var r=n(31),i=n(41);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(5),i=n(32),o=n(36)(!1),s=n(40)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(33),i=n(35);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(32),i=n(37),o=n(39);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=i(u.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if(a=u[f++],a!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(38),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(38),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(23)("keys"),i=n(19);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(30),i=n(43),o=n(44);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(12),i=n(47),o=n(41),s=n(40)("IE_PROTO"),a=function(){},u="prototype",c=function(){var t,e=n(15)("iframe"),r=o.length,i="<",s=">";for(e.style.display="none",n(48).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),c=t.F;r--;)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(11),i=n(12),o=n(30);t.exports=n(6)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){t.exports=n(4).document&&document.documentElement},function(t,e,n){var r=n(32),i=n(50).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,e,n){var r=n(31),i=n(41).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(44),i=n(17),o=n(32),s=n(16),a=n(5),u=n(14),c=Object.getOwnPropertyDescriptor;e.f=n(6)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(n){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(8);r(r.S,"Object",{create:n(46)})},function(t,e,n){var r=n(8);r(r.S+r.F*!n(6),"Object",{defineProperty:n(11).f})},function(t,e,n){var r=n(8);r(r.S+r.F*!n(6),"Object",{defineProperties:n(47)})},function(t,e,n){var r=n(32),i=n(51).f;n(56)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(8),i=n(9),o=n(7);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){var r=n(58),i=n(59);n(56)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(35);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(5),i=n(58),o=n(40)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(58),i=n(30);n(56)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){n(56)("getOwnPropertyNames",function(){return n(49).f})},function(t,e,n){var r=n(13),i=n(22).onFreeze;n(56)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(13),i=n(22).onFreeze;n(56)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(13),i=n(22).onFreeze;n(56)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(13);n(56)("isFrozen",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(13);n(56)("isSealed",function(t){return function(e){return!r(e)||!!t&&t(e)}})},function(t,e,n){var r=n(13);n(56)("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},function(t,e,n){var r=n(8);r(r.S+r.F,"Object",{assign:n(69)})},function(t,e,n){"use strict";var r=n(30),i=n(43),o=n(44),s=n(58),a=n(33),u=Object.assign;t.exports=!u||n(7)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,f=i.f,l=o.f;u>c;)for(var h,p=a(arguments[c++]),v=f?r(p).concat(f(p)):r(p),d=v.length,g=0;d>g;)l.call(p,h=v[g++])&&(n[h]=p[h]);return n}:u},function(t,e,n){var r=n(8);r(r.S,"Object",{is:n(71)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,n){var r=n(8);r(r.S,"Object",{setPrototypeOf:n(73).set})},function(t,e,n){var r=n(13),i=n(12),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(20)(Function.call,n(51).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){"use strict";var r=n(75),i={};i[n(25)("toStringTag")]="z",i+""!="[object z]"&&n(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(34),i=n(25)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(8);r(r.P,"Function",{bind:n(77)})},function(t,e,n){"use strict";var r=n(21),i=n(13),o=n(78),s=[].slice,a={},u=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("F,a","return new F("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),a=function(){var r=n.concat(s.call(arguments));return this instanceof a?u(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(11).f,i=n(17),o=n(5),s=Function.prototype,a=/^\s*function ([^ (]*)/,u="name",c=Object.isExtensible||function(){return!0};u in s||n(6)&&r(s,u,{configurable:!0,get:function(){try{var t=this,e=(""+t).match(a)[1];return o(t,u)||!c(t)||r(t,u,i(5,e)),e}catch(n){return""}}})},function(t,e,n){"use strict";var r=n(13),i=n(59),o=n(25)("hasInstance"),s=Function.prototype;o in s||n(11).f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(8),i=n(82);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(4).parseInt,i=n(83).trim,o=n(84),s=/^[\-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(s.test(n)?16:10))}:r},function(t,e,n){var r=n(8),i=n(35),o=n(7),s=n(84),a="["+s+"]",u="
",c=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t,e,n){var i={},a=o(function(){return!!s[t]()||u[t]()!=u}),c=i[t]=a?e(h):s[t];n&&(i[n]=c),r(r.P+r.F*a,"String",i)},h=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},function(t,e){t.exports="\t\n\x0B\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(8),i=n(86);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){var r=n(4).parseFloat,i=n(83).trim;t.exports=1/r(n(84)+"-0")!==-(1/0)?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){"use strict";var r=n(4),i=n(5),o=n(34),s=n(88),a=n(16),u=n(7),c=n(50).f,f=n(51).f,l=n(11).f,h=n(83).trim,p="Number",v=r[p],d=v,g=v.prototype,m=o(n(46)(g))==p,y="trim"in String.prototype,_=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,u=e.slice(2),c=0,f=u.length;c<f;c++)if(s=u.charCodeAt(c),s<48||s>i)return NaN;return parseInt(u,r)}}return+e};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof v&&(m?u(function(){g.valueOf.call(n)}):o(n)!=p)?s(new d(_(e)),n,v):_(e)};for(var b,w=n(6)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)i(d,b=w[x])&&!i(v,b)&&l(v,b,f(d,b));v.prototype=g,g.constructor=v,n(18)(r,p,v)}},function(t,e,n){var r=n(13),i=n(73).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){"use strict";var r=n(8),i=n(38),o=n(90),s=n(91),a=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l="0",h=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=u(n/t),n=n%t*1e7},v=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+s.call(l,7-n.length)+n}return e},d=function(t,e,n){return 0===e?n:e%2===1?d(t,e-1,n*t):d(t*t,e/2,n)},g=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(7)(function(){a.call({})})),"Number",{toFixed:function(t){var e,n,r,a,u=o(this,f),c=i(t),m="",y=l;if(c<0||c>20)throw RangeError(f);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(m="-",u=-u),u>1e-21)if(e=g(u*d(2,69,1))-69,n=e<0?u*d(2,-e,1):u/d(2,e,1),n*=4503599627370496,e=52-e,e>0){for(h(0,n),r=c;r>=7;)h(1e7,0),r-=7;for(h(d(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<<r),h(1,1),p(2),y=v()}else h(0,n),h(1<<-e,0),y=v()+s.call(l,c);return c>0?(a=y.length,y=m+(a<=c?"0."+s.call(l,c-a)+y:y.slice(0,a-c)+"."+y.slice(a-c))):y=m+y,y}})},function(t,e,n){var r=n(34);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){"use strict";var r=n(38),i=n(35);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(8),i=n(7),o=n(90),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,n){var r=n(8);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(8),i=n(4).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(8);r(r.S,"Number",{isInteger:n(96)})},function(t,e,n){var r=n(13),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){var r=n(8);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(8),i=n(96),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(8);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(8);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(8),i=n(86);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(8),i=n(82);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(8),i=n(104),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?t<0?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(8),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(8),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(8),i=n(108);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var r=n(8);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(8),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(8),i=n(112);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(8),i=n(108),o=Math.pow,s=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),c=o(2,-126),f=function(t){return t+1/s-1/s};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),o=i(t);return r<c?o*f(r/c/a)*c*a:(e=(1+a/s)*r,n=e-(e-r),n>u||n!=n?o*(1/0):o*n)}})},function(t,e,n){var r=n(8),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,a=arguments.length,u=0;s<a;)n=i(arguments[s++]),u<n?(r=u/n,o=o*r*r+1,u=n):n>0?(r=n/u,o+=r*r):o+=n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(t,e,n){var r=n(8),i=Math.imul;r(r.S+r.F*n(7)(function(){return i(4294967295,5)!=-5||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,o=n&r,s=n&i;return 0|o*s+((n&r>>>16)*s+o*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(8);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(8);r(r.S,"Math",{log1p:n(104)})},function(t,e,n){var r=n(8);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(8);r(r.S,"Math",{sign:n(108)})},function(t,e,n){var r=n(8),i=n(112),o=Math.exp;r(r.S+r.F*n(7)(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(8),i=n(112),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(8);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(8),i=n(39),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(8),i=n(32),o=n(37);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],a=0;n>a;)s.push(String(e[a++])),a<r&&s.push(String(arguments[a]));return s.join("")}})},function(t,e,n){"use strict";n(83)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(127)(!0);n(128)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(38),i=n(35);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):(o-55296<<10)+(s-56320)+65536)}}},function(t,e,n){"use strict";var r=n(28),i=n(8),o=n(18),s=n(10),a=n(5),u=n(129),c=n(130),f=n(24),l=n(59),h=n(25)("iterator"),p=!([].keys&&"next"in[].keys()),v="@@iterator",d="keys",g="values",m=function(){return this};t.exports=function(t,e,n,y,_,b,w){c(n,e,y);var x,S,k,C=function(t){if(!p&&t in $)return $[t];switch(t){case d:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",E=_==g,A=!1,$=t.prototype,j=$[h]||$[v]||_&&$[_],N=j||C(_),T=_?E?C("entries"):N:void 0,F="Array"==e?$.entries||j:j;if(F&&(k=l(F.call(new t)),k!==Object.prototype&&(f(k,O,!0),r||a(k,h)||s(k,h,m))),E&&j&&j.name!==g&&(A=!0,N=function(){return j.call(this)}),r&&!w||!p&&!A&&$[h]||s($,h,N),u[e]=N,u[O]=m,_)if(x={values:E?N:C(g),keys:b?N:C(d),entries:T},w)for(S in x)S in $||o($,S,x[S]);else i(i.P+i.F*(p||A),e,x);return x}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(46),i=n(17),o=n(24),s={};n(10)(s,n(25)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(8),i=n(127)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(8),i=n(37),o=n(133),s="endsWith",a=""[s];r(r.P+r.F*n(135)(s),"String",{endsWith:function(t){var e=o(this,t,s),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),u=void 0===n?r:Math.min(i(n),r),c=String(t);return a?a.call(e,c,u):e.slice(u-c.length,u)===c}})},function(t,e,n){var r=n(134),i=n(35);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(13),i=n(34),o=n(25)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(25)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},function(t,e,n){"use strict";var r=n(8),i=n(133),o="includes";r(r.P+r.F*n(135)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(8);r(r.P,"String",{repeat:n(91)})},function(t,e,n){"use strict";var r=n(8),i=n(37),o=n(133),s="startsWith",a=""[s];r(r.P+r.F*n(135)(s),"String",{startsWith:function(t){var e=o(this,t,s),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(140)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){var r=n(8),i=n(7),o=n(35),s=/"/g,a=function(t,e,n,r){var i=String(o(t)),a="<"+e;return""!==n&&(a+=" "+n+'="'+String(r).replace(s,""")+'"'),a+">"+i+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(a),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";n(140)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(140)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(140)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(140)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(140)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(140)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(140)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(140)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(140)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(140)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(140)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(140)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(8);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(8),i=n(58),o=n(16);r(r.P+r.F*n(7)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){"use strict";var r=n(8),i=n(7),o=Date.prototype.getTime,s=function(t){return t>9?t:"0"+t};r(r.P+r.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString();
})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=e<0?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z"}})},function(t,e,n){var r=Date.prototype,i="Invalid Date",o="toString",s=r[o],a=r.getTime;new Date(NaN)+""!=i&&n(18)(r,o,function(){var t=a.call(this);return t===t?s.call(this):i})},function(t,e,n){var r=n(25)("toPrimitive"),i=Date.prototype;r in i||n(10)(i,r,n(158))},function(t,e,n){"use strict";var r=n(12),i=n(16),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),t!=o)}},function(t,e,n){var r=n(8);r(r.S,"Array",{isArray:n(45)})},function(t,e,n){"use strict";var r=n(20),i=n(8),o=n(58),s=n(161),a=n(162),u=n(37),c=n(163),f=n(164);i(i.S+i.F*!n(165)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,g=void 0!==d,m=0,y=f(h);if(g&&(d=r(d,v>2?arguments[2]:void 0,2)),void 0==y||p==Array&&a(y))for(e=u(h.length),n=new p(e);e>m;m++)c(n,m,g?d(h[m],m):h[m]);else for(l=y.call(h),n=new p;!(i=l.next()).done;m++)c(n,m,g?s(l,d,[i.value,m],!0):i.value);return n.length=m,n}})},function(t,e,n){var r=n(12);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var s=t["return"];throw void 0!==s&&r(s.call(t)),o}}},function(t,e,n){var r=n(129),i=n(25)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(11),i=n(17);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(75),i=n(25)("iterator"),o=n(129);t.exports=n(9).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(25)("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(a){}return n}},function(t,e,n){"use strict";var r=n(8),i=n(163);r(r.S+r.F*n(7)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(8),i=n(32),o=[].join;r(r.P+r.F*(n(33)!=Object||!n(168)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){var r=n(7);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";var r=n(8),i=n(48),o=n(34),s=n(39),a=n(37),u=[].slice;r(r.P+r.F*n(7)(function(){i&&u.call(i)}),"Array",{slice:function(t,e){var n=a(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return u.call(this,t,e);for(var i=s(t,n),c=s(e,n),f=a(c-i),l=Array(f),h=0;h<f;h++)l[h]="String"==r?this.charAt(i+h):this[i+h];return l}})},function(t,e,n){"use strict";var r=n(8),i=n(21),o=n(58),s=n(7),a=[].sort,u=[1,2,3];r(r.P+r.F*(s(function(){u.sort(void 0)})||!s(function(){u.sort(null)})||!n(168)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},function(t,e,n){"use strict";var r=n(8),i=n(172)(0),o=n(168)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,n){var r=n(20),i=n(33),o=n(58),s=n(37),a=n(173);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,f=4==t,l=6==t,h=5==t||l,p=e||a;return function(e,a,v){for(var d,g,m=o(e),y=i(m),_=r(a,v,3),b=s(y.length),w=0,x=n?p(e,b):u?p(e,0):void 0;b>w;w++)if((h||w in y)&&(d=y[w],g=_(d,w,m),t))if(n)x[w]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return w;case 2:x.push(d)}else if(f)return!1;return l?-1:c||f?f:x}}},function(t,e,n){var r=n(174);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(13),i=n(45),o=n(25)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),r(e)&&(e=e[o],null===e&&(e=void 0))),void 0===e?Array:e}},function(t,e,n){"use strict";var r=n(8),i=n(172)(1);r(r.P+r.F*!n(168)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(8),i=n(172)(2);r(r.P+r.F*!n(168)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(8),i=n(172)(3);r(r.P+r.F*!n(168)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(8),i=n(172)(4);r(r.P+r.F*!n(168)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(8),i=n(180);r(r.P+r.F*!n(168)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){var r=n(21),i=n(58),o=n(33),s=n(37);t.exports=function(t,e,n,a,u){r(e);var c=i(t),f=o(c),l=s(c.length),h=u?l-1:0,p=u?-1:1;if(n<2)for(;;){if(h in f){a=f[h],h+=p;break}if(h+=p,u?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;u?h>=0:l>h;h+=p)h in f&&(a=e(a,f[h],h,c));return a}},function(t,e,n){"use strict";var r=n(8),i=n(180);r(r.P+r.F*!n(168)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(8),i=n(36)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(168)(o)),"Array",{indexOf:function(t){return s?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(8),i=n(32),o=n(38),s=n(37),a=[].lastIndexOf,u=!!a&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(168)(a)),"Array",{lastIndexOf:function(t){if(u)return a.apply(this,arguments)||0;var e=i(this),n=s(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(8);r(r.P,"Array",{copyWithin:n(185)}),n(186)("copyWithin")},function(t,e,n){"use strict";var r=n(58),i=n(39),o=n(37);t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),a=i(t,s),u=i(e,s),c=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===c?s:i(c,s))-u,s-a),l=1;for(u<a&&a<u+f&&(l=-1,u+=f-1,a+=f-1);f-- >0;)u in n?n[a]=n[u]:delete n[a],a+=l,u+=l;return n}},function(t,e,n){var r=n(25)("unscopables"),i=Array.prototype;void 0==i[r]&&n(10)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(8);r(r.P,"Array",{fill:n(188)}),n(186)("fill")},function(t,e,n){"use strict";var r=n(58),i=n(39),o=n(37);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,n),u=s>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>a;)e[a++]=t;return e}},function(t,e,n){"use strict";var r=n(8),i=n(172)(5),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(186)(o)},function(t,e,n){"use strict";var r=n(8),i=n(172)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(186)(o)},function(t,e,n){n(192)("Array")},function(t,e,n){"use strict";var r=n(4),i=n(11),o=n(6),s=n(25)("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(186),i=n(194),o=n(129),s=n(32);t.exports=n(128)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(4),i=n(88),o=n(11).f,s=n(50).f,a=n(134),u=n(196),c=r.RegExp,f=c,l=c.prototype,h=/a/g,p=/a/g,v=new c(h)!==h;if(n(6)&&(!v||n(7)(function(){return p[n(25)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")}))){c=function(t,e){var n=this instanceof c,r=a(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(v?new f(r&&!o?t.source:t,e):f((r=t instanceof c)?t.source:t,r&&o?u.call(t):e),n?this:l,c)};for(var d=(function(t){t in c||o(c,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})}),g=s(f),m=0;g.length>m;)d(g[m++]);l.constructor=c,c.prototype=l,n(18)(r,"RegExp",c)}n(192)("RegExp")},function(t,e,n){"use strict";var r=n(12);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";n(198);var r=n(12),i=n(196),o=n(6),s="toString",a=/./[s],u=function(t){n(18)(RegExp.prototype,s,t,!0)};n(7)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):a.name!=s&&u(function(){return a.call(this)})},function(t,e,n){n(6)&&"g"!=/./g.flags&&n(11).f(RegExp.prototype,"flags",{configurable:!0,get:n(196)})},function(t,e,n){n(200)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){"use strict";var r=n(10),i=n(18),o=n(7),s=n(35),a=n(25);t.exports=function(t,e,n){var u=a(t),c=n(s,u,""[t]),f=c[0],l=c[1];o(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,f),r(RegExp.prototype,u,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,n){n(200)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(200)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(200)("split",2,function(t,e,r){"use strict";var i=n(134),o=r,s=[].push,a="split",u="length",c="lastIndex";if("c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[u]||2!="ab"[a](/(?:ab)*/)[u]||4!="."[a](/(.?)(.?)/)[u]||"."[a](/()()/)[u]>1||""[a](/.?/)[u]){var f=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,a,l,h,p,v=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,m=void 0===e?4294967295:e>>>0,y=new RegExp(t.source,d+"g");for(f||(r=new RegExp("^"+y.source+"$(?!\\s)",d));(a=y.exec(n))&&(l=a.index+a[0][u],!(l>g&&(v.push(n.slice(g,a.index)),!f&&a[u]>1&&a[0].replace(r,function(){for(p=1;p<arguments[u]-2;p++)void 0===arguments[p]&&(a[p]=void 0)}),a[u]>1&&a.index<n[u]&&s.apply(v,a.slice(1)),h=a[0][u],g=l,v[u]>=m)));)y[c]===a.index&&y[c]++;return g===n[u]?!h&&y.test("")||v.push(""):v.push(n.slice(g)),v[u]>m?v.slice(0,m):v}}else"0"[a](void 0,0)[u]&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){"use strict";var r,i,o,s=n(28),a=n(4),u=n(20),c=n(75),f=n(8),l=n(13),h=n(21),p=n(205),v=n(206),d=n(207),g=n(208).set,m=n(209)(),y="Promise",_=a.TypeError,b=a.process,w=a[y],b=a.process,x="process"==c(b),S=function(){},k=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(25)("species")]=function(t){t(S,S)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof e}catch(r){}}(),C=function(t,e){return t===e||t===w&&e===o},O=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},E=function(t){return C(w,t)?new A(t):new i(t)},A=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw _("Bad Promise constructor");e=t,n=r}),this.resolve=h(e),this.reject=h(n)},$=function(t){try{t()}catch(e){return{error:e}}},j=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s=i?e.ok:e.fail,a=e.resolve,u=e.reject,c=e.domain;try{s?(i||(2==t._h&&F(t),t._h=1),s===!0?n=r:(c&&c.enter(),n=s(r),c&&c.exit()),n===e.promise?u(_("Promise-chain cycle")):(o=O(n))?o.call(n,a,u):a(n)):u(r)}catch(f){u(f)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&N(t)})}},N=function(t){g.call(a,function(){var e,n,r,i=t._v;if(T(t)&&(e=$(function(){x?b.emit("unhandledRejection",i,t):(n=a.onunhandledrejection)?n({promise:t,reason:i}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=x||T(t)?2:1),t._a=void 0,e)throw e.error})},T=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!T(e.promise))return!1;return!0},F=function(t){g.call(a,function(){var e;x?b.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},M=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),j(e,!0))},P=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=O(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,u(P,r,1),u(M,r,1))}catch(i){M.call(r,i)}}):(n._v=t,n._s=1,j(n,!1))}catch(r){M.call({_w:n,_d:!1},r)}}};k||(w=function(t){p(this,w,y,"_h"),h(t),r.call(this);try{t(u(P,this,1),u(M,this,1))}catch(e){M.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(210)(w.prototype,{then:function(t,e){var n=E(d(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},"catch":function(t){return this.then(void 0,t)}}),A=function(){var t=new r;this.promise=t,this.resolve=u(P,t,1),this.reject=u(M,t,1)}),f(f.G+f.W+f.F*!k,{Promise:w}),n(24)(w,y),n(192)(y),o=n(9)[y],f(f.S+f.F*!k,y,{reject:function(t){var e=E(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(s||!k),y,{resolve:function(t){if(t instanceof w&&C(t.constructor,this))return t;var e=E(this),n=e.resolve;return n(t),e.promise}}),f(f.S+f.F*!(k&&n(165)(function(t){w.all(t)["catch"](S)})),y,{all:function(t){var e=this,n=E(e),r=n.resolve,i=n.reject,o=$(function(){var n=[],o=0,s=1;v(t,!1,function(t){var a=o++,u=!1;n.push(void 0),s++,e.resolve(t).then(function(t){u||(u=!0,n[a]=t,--s||r(n))},i)}),--s||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=E(e),r=n.reject,i=$(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(20),i=n(161),o=n(162),s=n(12),a=n(37),u=n(164),c={},f={},e=t.exports=function(t,e,n,l,h){var p,v,d,g,m=h?function(){return t}:u(t),y=r(n,l,e?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(p=a(t.length);p>_;_++)if(g=e?y(s(v=t[_])[0],v[1]):y(t[_]),g===c||g===f)return g}else for(d=m.call(t);!(v=d.next()).done;)if(g=i(d,y,v.value,e),g===c||g===f)return g};e.BREAK=c,e.RETURN=f},function(t,e,n){var r=n(12),i=n(21),o=n(25)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},function(t,e,n){var r,i,o,s=n(20),a=n(78),u=n(48),c=n(15),f=n(4),l=f.process,h=f.setImmediate,p=f.clearImmediate,v=f.MessageChannel,d=0,g={},m="onreadystatechange",y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},_=function(t){y.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++d]=function(){a("function"==typeof t?t:Function(t),e)},r(d),d},p=function(t){delete g[t]},"process"==n(34)(l)?r=function(t){l.nextTick(s(y,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r=m in c("script")?function(t){u.appendChild(c("script"))[m]=function(){u.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){var r=n(4),i=n(208).set,o=r.MutationObserver||r.WebKitMutationObserver,s=r.process,a=r.Promise,u="process"==n(34)(s);t.exports=function(){var t,e,n,c=function(){var r,i;for(u&&(r=s.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(u)n=function(){s.nextTick(c)};else if(o){var f=!0,l=document.createTextNode("");new o(c).observe(l,{characterData:!0}),n=function(){l.data=f=!f}}else if(a&&a.resolve){var h=a.resolve();n=function(){h.then(c)}}else n=function(){i.call(r,c)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(212);t.exports=n(213)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(11).f,i=n(46),o=n(210),s=n(20),a=n(205),u=n(35),c=n(206),f=n(128),l=n(194),h=n(192),p=n(6),v=n(22).fastKey,d=p?"_s":"size",g=function(t,e){var n,r=v(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,f){var l=t(function(t,r){a(t,l,e,"_i"),t._i=i(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=r&&c(r,n,t[f],t)});return o(l.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[d]=0},"delete":function(t){var e=this,n=g(e,t);if(n){var r=n.n,i=n.p;delete e._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),e._f==n&&(e._f=r),e._l==n&&(e._l=i),e[d]--}return!!n},forEach:function(t){a(this,l,"forEach");for(var e,n=s(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(this,t)}}),p&&r(l.prototype,"size",{get:function(){return u(this[d])}}),l},def:function(t,e,n){var r,i,o=g(t,e);return o?o.v=n:(t._l=o={i:i=v(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[d]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,e,n){f(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?l(0,n.k):"values"==e?l(0,n.v):l(0,[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(4),i=n(8),o=n(18),s=n(210),a=n(22),u=n(206),c=n(205),f=n(13),l=n(7),h=n(165),p=n(24),v=n(88);t.exports=function(t,e,n,d,g,m){var y=r[t],_=y,b=g?"set":"add",w=_&&_.prototype,x={},S=function(t){var e=w[t];o(w,t,"delete"==t?function(t){return!(m&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(m||w.forEach&&!l(function(){(new _).entries().next()}))){var k=new _,C=k[b](m?{}:-0,1)!=k,O=l(function(){k.has(1)}),E=h(function(t){new _(t)}),A=!m&&l(function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)});E||(_=e(function(e,n){c(e,_,t);var r=v(new y,e,_);return void 0!=n&&u(n,g,r[b],r),r}),_.prototype=w,w.constructor=_),(O||A)&&(S("delete"),S("has"),g&&S("get")),(A||C)&&S(b),m&&w.clear&&delete w.clear}else _=d.getConstructor(e,t,g,b),s(_.prototype,n),a.NEED=!0;return p(_,t),x[t]=_,i(i.G+i.W+i.F*(_!=y),x),m||d.setStrong(_,t,g),_}},function(t,e,n){"use strict";var r=n(212);t.exports=n(213)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(172)(0),o=n(18),s=n(22),a=n(69),u=n(216),c=n(13),f=s.getWeak,l=Object.isExtensible,h=u.ufstore,p={},v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},d={get:function(t){if(c(t)){var e=f(t);return e===!0?h(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(this,t,e)}},g=t.exports=n(213)("WeakMap",v,d,u,!0,!0);7!=(new g).set((Object.freeze||Object)(p),7).get(p)&&(r=u.getConstructor(v),a(r.prototype,d),s.NEED=!0,i(["delete","has","get","set"],function(t){var e=g.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!l(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(210),i=n(22).getWeak,o=n(12),s=n(13),a=n(205),u=n(206),c=n(172),f=n(5),l=c(5),h=c(6),p=0,v=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},g=function(t,e){return l(t.a,function(t){return t[0]===e})};d.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},"delete":function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t(function(t,r){a(t,c,e,"_i"),t._i=p++,t._l=void 0,void 0!=r&&u(r,n,t[o],t)});return r(c.prototype,{"delete":function(t){if(!s(t))return!1;var e=i(t);return e===!0?v(this)["delete"](t):e&&f(e,this._i)&&delete e[this._i]},has:function(t){if(!s(t))return!1;var e=i(t);return e===!0?v(this).has(t):e&&f(e,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return r===!0?v(t).set(e,n):r[t._i]=n,t},ufstore:v}},function(t,e,n){"use strict";var r=n(216);n(213)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(8),i=n(219),o=n(220),s=n(12),a=n(39),u=n(37),c=n(13),f=n(4).ArrayBuffer,l=n(207),h=o.ArrayBuffer,p=o.DataView,v=i.ABV&&f.isView,d=h.prototype.slice,g=i.VIEW,m="ArrayBuffer";r(r.G+r.W+r.F*(f!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,m,{isView:function(t){return v&&v(t)||c(t)&&g in t}}),r(r.P+r.U+r.F*n(7)(function(){return!new h(2).slice(1,void 0).byteLength}),m,{slice:function(t,e){if(void 0!==d&&void 0===e)return d.call(s(this),t);for(var n=s(this).byteLength,r=a(t,n),i=a(void 0===e?n:e,n),o=new(l(this,h))(u(i-r)),c=new p(this),f=new p(o),v=0;r<i;)f.setUint8(v++,c.getUint8(r++));return o}}),n(192)(m)},function(t,e,n){for(var r,i=n(4),o=n(10),s=n(19),a=s("typed_array"),u=s("view"),c=!(!i.ArrayBuffer||!i.DataView),f=c,l=0,h=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<h;)(r=i[p[l++]])?(o(r.prototype,a,!0),o(r.prototype,u,!0)):f=!1;t.exports={ABV:c,CONSTR:f,TYPED:a,VIEW:u}},function(t,e,n){"use strict";var r=n(4),i=n(6),o=n(28),s=n(219),a=n(10),u=n(210),c=n(7),f=n(205),l=n(38),h=n(37),p=n(50).f,v=n(11).f,d=n(188),g=n(24),m="ArrayBuffer",y="DataView",_="prototype",b="Wrong length!",w="Wrong index!",x=r[m],S=r[y],k=r.Math,C=r.RangeError,O=r.Infinity,E=x,A=k.abs,$=k.pow,j=k.floor,N=k.log,T=k.LN2,F="buffer",M="byteLength",P="byteOffset",I=i?"_b":F,R=i?"_l":M,L=i?"_o":P,D=function(t,e,n){var r,i,o,s=Array(n),a=8*n-e-1,u=(1<<a)-1,c=u>>1,f=23===e?$(2,-24)-$(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for(t=A(t),t!=t||t===O?(i=t!=t?1:0,r=u):(r=j(N(t)/T),t*(o=$(2,-r))<1&&(r--,o*=2),t+=r+c>=1?f/o:f*$(2,1-c),t*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(t*o-1)*$(2,e),r+=c):(i=t*$(2,c-1)*$(2,e),r=0));e>=8;s[l++]=255&i,i/=256,e-=8);for(r=r<<e|i,a+=e;a>0;s[l++]=255&r,r/=256,a-=8);return s[--l]|=128*h,s},V=function(t,e,n){var r,i=8*n-e-1,o=(1<<i)-1,s=o>>1,a=i-7,u=n-1,c=t[u--],f=127&c;for(c>>=7;a>0;f=256*f+t[u],u--,a-=8);for(r=f&(1<<-a)-1,f>>=-a,a+=e;a>0;r=256*r+t[u],u--,a-=8);if(0===f)f=1-s;else{if(f===o)return r?NaN:c?-O:O;r+=$(2,e),f-=s}return(c?-1:1)*r*$(2,f-e)},W=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},U=function(t){return[255&t]},B=function(t){return[255&t,t>>8&255]},z=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},H=function(t){return D(t,52,8)},G=function(t){return D(t,23,4)},J=function(t,e,n){v(t[_],e,{get:function(){return this[n]}})},K=function(t,e,n,r){var i=+n,o=l(i);if(i!=o||o<0||o+e>t[R])throw C(w);var s=t[I]._b,a=o+t[L],u=s.slice(a,a+e);return r?u:u.reverse()},q=function(t,e,n,r,i,o){var s=+n,a=l(s);if(s!=a||a<0||a+e>t[R])throw C(w);for(var u=t[I]._b,c=a+t[L],f=r(+i),h=0;h<e;h++)u[c+h]=f[o?h:e-h-1]},Y=function(t,e){f(t,x,m);var n=+e,r=h(n);if(n!=r)throw C(b);return r};if(s.ABV){if(!c(function(){new x})||!c(function(){new x(.5)})){x=function(t){return new E(Y(this,t))};for(var Q,X=x[_]=E[_],Z=p(E),tt=0;Z.length>tt;)(Q=Z[tt++])in x||a(x,Q,E[Q]);o||(X.constructor=x)}var et=new S(new x(2)),nt=S[_].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||u(S[_],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else x=function(t){var e=Y(this,t);this._b=d.call(Array(e),0),this[R]=e},S=function(t,e,n){f(this,S,y),f(t,x,y);var r=t[R],i=l(e);if(i<0||i>r)throw C("Wrong offset!");if(n=void 0===n?r-i:h(n),i+n>r)throw C(b);this[I]=t,this[L]=i,this[R]=n},i&&(J(x,M,"_l"),J(S,F,"_b"),J(S,M,"_l"),J(S,P,"_o")),u(S[_],{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return W(K(this,4,t,arguments[1]))},getUint32:function(t){return W(K(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return V(K(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return V(K(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){q(this,1,t,U,e)},setUint8:function(t,e){q(this,1,t,U,e)},setInt16:function(t,e){q(this,2,t,B,e,arguments[2])},setUint16:function(t,e){q(this,2,t,B,e,arguments[2])},setInt32:function(t,e){q(this,4,t,z,e,arguments[2])},setUint32:function(t,e){q(this,4,t,z,e,arguments[2])},setFloat32:function(t,e){q(this,4,t,G,e,arguments[2])},setFloat64:function(t,e){q(this,8,t,H,e,arguments[2])}});g(x,m),g(S,y),a(S[_],s.VIEW,!0),e[m]=x,e[y]=S},function(t,e,n){var r=n(8);r(r.G+r.W+r.F*!n(219).ABV,{DataView:n(220).DataView})},function(t,e,n){n(223)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";if(n(6)){var r=n(28),i=n(4),o=n(7),s=n(8),a=n(219),u=n(220),c=n(20),f=n(205),l=n(17),h=n(10),p=n(210),v=n(38),d=n(37),g=n(39),m=n(16),y=n(5),_=n(71),b=n(75),w=n(13),x=n(58),S=n(162),k=n(46),C=n(59),O=n(50).f,E=n(164),A=n(19),$=n(25),j=n(172),N=n(36),T=n(207),F=n(193),M=n(129),P=n(165),I=n(192),R=n(188),L=n(185),D=n(11),V=n(51),W=D.f,U=V.f,B=i.RangeError,z=i.TypeError,H=i.Uint8Array,G="ArrayBuffer",J="Shared"+G,K="BYTES_PER_ELEMENT",q="prototype",Y=Array[q],Q=u.ArrayBuffer,X=u.DataView,Z=j(0),tt=j(2),et=j(3),nt=j(4),rt=j(5),it=j(6),ot=N(!0),st=N(!1),at=F.values,ut=F.keys,ct=F.entries,ft=Y.lastIndexOf,lt=Y.reduce,ht=Y.reduceRight,pt=Y.join,vt=Y.sort,dt=Y.slice,gt=Y.toString,mt=Y.toLocaleString,yt=$("iterator"),_t=$("toStringTag"),bt=A("typed_constructor"),wt=A("def_constructor"),xt=a.CONSTR,St=a.TYPED,kt=a.VIEW,Ct="Wrong length!",Ot=j(1,function(t,e){return Tt(T(t,t[wt]),e)}),Et=o(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),At=!!H&&!!H[q].set&&o(function(){new H(1).set({})}),$t=function(t,e){if(void 0===t)throw z(Ct);var n=+t,r=d(t);if(e&&!_(n,r))throw B(Ct);return r},jt=function(t,e){var n=v(t);if(n<0||n%e)throw B("Wrong offset!");return n},Nt=function(t){if(w(t)&&St in t)return t;throw z(t+" is not a typed array!")},Tt=function(t,e){if(!(w(t)&&bt in t))throw z("It is not a typed array constructor!");return new t(e)},Ft=function(t,e){return Mt(T(t,t[wt]),e)},Mt=function(t,e){for(var n=0,r=e.length,i=Tt(t,r);r>n;)i[n]=e[n++];return i},Pt=function(t,e,n){W(t,e,{get:function(){return this._d[n]}})},It=function(t){var e,n,r,i,o,s,a=x(t),u=arguments.length,f=u>1?arguments[1]:void 0,l=void 0!==f,h=E(a);if(void 0!=h&&!S(h)){for(s=h.call(a),r=[],e=0;!(o=s.next()).done;e++)r.push(o.value);a=r}for(l&&u>2&&(f=c(f,arguments[2],2)),e=0,n=d(a.length),i=Tt(this,n);n>e;e++)i[e]=l?f(a[e],e):a[e];return i},Rt=function(){for(var t=0,e=arguments.length,n=Tt(this,e);e>t;)n[t]=arguments[t++];return n},Lt=!!H&&o(function(){mt.call(new H(1))}),Dt=function(){return mt.apply(Lt?dt.call(Nt(this)):Nt(this),arguments)},Vt={copyWithin:function(t,e){return L.call(Nt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(Nt(this),arguments)},filter:function(t){return Ft(this,tt(Nt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Nt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Nt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Nt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Nt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Nt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Nt(this),arguments)},lastIndexOf:function(t){return ft.apply(Nt(this),arguments)},map:function(t){return Ot(Nt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(Nt(this),arguments)},reduceRight:function(t){return ht.apply(Nt(this),arguments)},reverse:function(){for(var t,e=this,n=Nt(e).length,r=Math.floor(n/2),i=0;i<r;)t=e[i],e[i++]=e[--n],e[n]=t;return e},some:function(t){return et(Nt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return vt.call(Nt(this),t)},subarray:function(t,e){var n=Nt(this),r=n.length,i=g(t,r);return new(T(n,n[wt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,d((void 0===e?r:g(e,r))-i))}},Wt=function(t,e){return Ft(this,dt.call(Nt(this),t,e))},Ut=function(t){Nt(this);var e=jt(arguments[1],1),n=this.length,r=x(t),i=d(r.length),o=0;if(i+e>n)throw B(Ct);for(;o<i;)this[e+o]=r[o++]},Bt={entries:function(){return ct.call(Nt(this))},keys:function(){return ut.call(Nt(this))},values:function(){return at.call(Nt(this))}},zt=function(t,e){return w(t)&&t[St]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ht=function(t,e){return zt(t,e=m(e,!0))?l(2,t[e]):U(t,e)},Gt=function(t,e,n){return!(zt(t,e=m(e,!0))&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?W(t,e,n):(t[e]=n.value,t)};xt||(V.f=Ht,D.f=Gt),s(s.S+s.F*!xt,"Object",{getOwnPropertyDescriptor:Ht,defineProperty:Gt}),o(function(){gt.call({})})&&(gt=mt=function(){return pt.call(this)});var Jt=p({},Vt);p(Jt,Bt),h(Jt,yt,Bt.values),p(Jt,{slice:Wt,set:Ut,constructor:function(){},toString:gt,toLocaleString:Dt}),Pt(Jt,"buffer","b"),Pt(Jt,"byteOffset","o"),Pt(Jt,"byteLength","l"),Pt(Jt,"length","e"),W(Jt,_t,{get:function(){return this[St]}}),t.exports=function(t,e,n,u){u=!!u;var c=t+(u?"Clamped":"")+"Array",l="Uint8Array"!=c,p="get"+t,v="set"+t,g=i[c],m=g||{},y=g&&C(g),_=!g||!a.ABV,x={},S=g&&g[q],E=function(t,n){var r=t._d;return r.v[p](n*e+r.o,Et)},A=function(t,n,r){var i=t._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[v](n*e+i.o,r,Et)},$=function(t,e){W(t,e,{get:function(){return E(this,e)},set:function(t){return A(this,e,t)},enumerable:!0})};_?(g=n(function(t,n,r,i){f(t,g,c,"_d");var o,s,a,u,l=0,p=0;if(w(n)){if(!(n instanceof Q||(u=b(n))==G||u==J))return St in n?Mt(g,n):It.call(g,n);o=n,p=jt(r,e);var v=n.byteLength;if(void 0===i){if(v%e)throw B(Ct);if(s=v-p,s<0)throw B(Ct)}else if(s=d(i)*e,s+p>v)throw B(Ct);a=s/e}else a=$t(n,!0),s=a*e,o=new Q(s);for(h(t,"_d",{
b:o,o:p,l:s,e:a,v:new X(o)});l<a;)$(t,l++)}),S=g[q]=k(Jt),h(S,"constructor",g)):P(function(t){new g(null),new g(t)},!0)||(g=n(function(t,n,r,i){f(t,g,c);var o;return w(n)?n instanceof Q||(o=b(n))==G||o==J?void 0!==i?new m(n,jt(r,e),i):void 0!==r?new m(n,jt(r,e)):new m(n):St in n?Mt(g,n):It.call(g,n):new m($t(n,l))}),Z(y!==Function.prototype?O(m).concat(O(y)):O(m),function(t){t in g||h(g,t,m[t])}),g[q]=S,r||(S.constructor=g));var j=S[yt],N=!!j&&("values"==j.name||void 0==j.name),T=Bt.values;h(g,bt,!0),h(S,St,c),h(S,kt,!0),h(S,wt,g),(u?new g(1)[_t]==c:_t in S)||W(S,_t,{get:function(){return c}}),x[c]=g,s(s.G+s.W+s.F*(g!=m),x),s(s.S,c,{BYTES_PER_ELEMENT:e,from:It,of:Rt}),K in S||h(S,K,e),s(s.P,c,Vt),I(c),s(s.P+s.F*At,c,{set:Ut}),s(s.P+s.F*!N,c,Bt),s(s.P+s.F*(S.toString!=gt),c,{toString:gt}),s(s.P+s.F*o(function(){new g(1).slice()}),c,{slice:Wt}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new g([1,2]).toLocaleString()})||!o(function(){S.toLocaleString.call([1,2])})),c,{toLocaleString:Dt}),M[c]=N?j:T,r||N||h(S,yt,T)}}else t.exports=function(){}},function(t,e,n){n(223)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(223)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(223)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(223)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(223)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(223)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(223)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(223)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(8),i=n(21),o=n(12),s=(n(4).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(7)(function(){s(function(){})}),"Reflect",{apply:function(t,e,n){var r=i(t),u=o(n);return s?s(r,e,u):a.call(r,e,u)}})},function(t,e,n){var r=n(8),i=n(46),o=n(21),s=n(12),a=n(13),u=n(7),c=n(77),f=(n(4).Reflect||{}).construct,l=u(function(){function t(){}return!(f(function(){},[],t)instanceof t)}),h=!u(function(){f(function(){})});r(r.S+r.F*(l||h),"Reflect",{construct:function(t,e){o(t),s(e);var n=arguments.length<3?t:o(arguments[2]);if(h&&!l)return f(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(c.apply(t,r))}var u=n.prototype,p=i(a(u)?u:Object.prototype),v=Function.apply.call(t,p,e);return a(v)?v:p}})},function(t,e,n){var r=n(11),i=n(8),o=n(12),s=n(16);i(i.S+i.F*n(7)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return r.f(t,e,n),!0}catch(i){return!1}}})},function(t,e,n){var r=n(8),i=n(51).f,o=n(12);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){"use strict";var r=n(8),i=n(12),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(130)(o,"Object",function(){var t,e=this,n=e._k;do if(e._i>=n.length)return{value:void 0,done:!0};while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){function r(t,e){var n,a,f=arguments.length<3?t:arguments[2];return c(t)===f?t[e]:(n=i.f(t,e))?s(n,"value")?n.value:void 0!==n.get?n.get.call(f):void 0:u(a=o(t))?r(a,e,f):void 0}var i=n(51),o=n(59),s=n(5),a=n(8),u=n(13),c=n(12);a(a.S,"Reflect",{get:r})},function(t,e,n){var r=n(51),i=n(8),o=n(12);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(8),i=n(59),o=n(12);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(8);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(8),i=n(12),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,n){var r=n(8);r(r.S,"Reflect",{ownKeys:n(243)})},function(t,e,n){var r=n(50),i=n(43),o=n(12),s=n(4).Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(8),i=n(12),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(e){return!1}}})},function(t,e,n){function r(t,e,n){var u,h,p=arguments.length<4?t:arguments[3],v=o.f(f(t),e);if(!v){if(l(h=s(t)))return r(h,e,n,p);v=c(0)}return a(v,"value")?!(v.writable===!1||!l(p))&&(u=o.f(p,e)||c(0),u.value=n,i.f(p,e,u),!0):void 0!==v.set&&(v.set.call(p,n),!0)}var i=n(11),o=n(51),s=n(59),a=n(5),u=n(8),c=n(17),f=n(12),l=n(13);u(u.S,"Reflect",{set:r})},function(t,e,n){var r=n(8),i=n(73);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(n){return!1}}})},function(t,e,n){"use strict";var r=n(8),i=n(36)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(186)("includes")},function(t,e,n){"use strict";var r=n(8),i=n(127)(!0);r(r.P,"String",{at:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(8),i=n(250);r(r.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){var r=n(37),i=n(91),o=n(35);t.exports=function(t,e,n,s){var a=String(o(t)),u=a.length,c=void 0===n?" ":String(n),f=r(e);if(f<=u||""==c)return a;var l=f-u,h=i.call(c,Math.ceil(l/c.length));return h.length>l&&(h=h.slice(0,l)),s?h+a:a+h}},function(t,e,n){"use strict";var r=n(8),i=n(250);r(r.P,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";n(83)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(83)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){"use strict";var r=n(8),i=n(35),o=n(37),s=n(134),a=n(196),u=RegExp.prototype,c=function(t,e){this._r=t,this._s=e};n(130)(c,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){if(i(this),!s(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in u?String(t.flags):a.call(t),r=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(t.lastIndex),new c(r,e)}})},function(t,e,n){n(27)("asyncIterator")},function(t,e,n){n(27)("observable")},function(t,e,n){var r=n(8),i=n(243),o=n(32),s=n(51),a=n(163);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n=o(t),r=s.f,u=i(n),c={},f=0;u.length>f;)a(c,e=u[f++],r(n,e));return c}})},function(t,e,n){var r=n(8),i=n(259)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){var r=n(30),i=n(32),o=n(44).f;t.exports=function(t){return function(e){for(var n,s=i(e),a=r(s),u=a.length,c=0,f=[];u>c;)o.call(s,n=a[c++])&&f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e,n){var r=n(8),i=n(259)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(8),i=n(58),o=n(21),s=n(11);n(6)&&r(r.P+n(262),"Object",{__defineGetter__:function(t,e){s.f(i(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){t.exports=n(28)||!n(7)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(4)[t]})},function(t,e,n){"use strict";var r=n(8),i=n(58),o=n(21),s=n(11);n(6)&&r(r.P+n(262),"Object",{__defineSetter__:function(t,e){s.f(i(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(8),i=n(58),o=n(16),s=n(59),a=n(51).f;n(6)&&r(r.P+n(262),"Object",{__lookupGetter__:function(t){var e,n=i(this),r=o(t,!0);do if(e=a(n,r))return e.get;while(n=s(n))}})},function(t,e,n){"use strict";var r=n(8),i=n(58),o=n(16),s=n(59),a=n(51).f;n(6)&&r(r.P+n(262),"Object",{__lookupSetter__:function(t){var e,n=i(this),r=o(t,!0);do if(e=a(n,r))return e.set;while(n=s(n))}})},function(t,e,n){var r=n(8);r(r.P+r.R,"Map",{toJSON:n(267)("Map")})},function(t,e,n){var r=n(75),i=n(268);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){var r=n(206);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(8);r(r.P+r.R,"Set",{toJSON:n(267)("Set")})},function(t,e,n){var r=n(8);r(r.S,"System",{global:n(4)})},function(t,e,n){var r=n(8),i=n(34);r(r.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,e,n){var r=n(8);r(r.S,"Math",{iaddh:function(t,e,n,r){var i=t>>>0,o=e>>>0,s=n>>>0;return o+(r>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},function(t,e,n){var r=n(8);r(r.S,"Math",{isubh:function(t,e,n,r){var i=t>>>0,o=e>>>0,s=n>>>0;return o-(r>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},function(t,e,n){var r=n(8);r(r.S,"Math",{imulh:function(t,e){var n=65535,r=+t,i=+e,o=r&n,s=i&n,a=r>>16,u=i>>16,c=(a*s>>>0)+(o*s>>>16);return a*u+(c>>16)+((o*u>>>0)+(c&n)>>16)}})},function(t,e,n){var r=n(8);r(r.S,"Math",{umulh:function(t,e){var n=65535,r=+t,i=+e,o=r&n,s=i&n,a=r>>>16,u=i>>>16,c=(a*s>>>0)+(o*s>>>16);return a*u+(c>>>16)+((o*u>>>0)+(c&n)>>>16)}})},function(t,e,n){var r=n(277),i=n(12),o=r.key,s=r.set;r.exp({defineMetadata:function(t,e,n,r){s(t,e,i(n),o(r))}})},function(t,e,n){var r=n(211),i=n(8),o=n(23)("metadata"),s=o.store||(o.store=new(n(215))),a=function(t,e,n){var i=s.get(t);if(!i){if(!n)return;s.set(t,i=new r)}var o=i.get(e);if(!o){if(!n)return;i.set(e,o=new r)}return o},u=function(t,e,n){var r=a(e,n,!1);return void 0!==r&&r.has(t)},c=function(t,e,n){var r=a(e,n,!1);return void 0===r?void 0:r.get(t)},f=function(t,e,n,r){a(n,r,!0).set(t,e)},l=function(t,e){var n=a(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},p=function(t){i(i.S,"Reflect",t)};t.exports={store:s,map:a,has:u,get:c,set:f,keys:l,key:h,exp:p}},function(t,e,n){var r=n(277),i=n(12),o=r.key,s=r.map,a=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(e),n,!1);if(void 0===r||!r["delete"](t))return!1;if(r.size)return!0;var u=a.get(e);return u["delete"](n),!!u.size||a["delete"](e)}})},function(t,e,n){var r=n(277),i=n(12),o=n(59),s=r.has,a=r.get,u=r.key,c=function(t,e,n){var r=s(t,e,n);if(r)return a(t,e,n);var i=o(e);return null!==i?c(t,i,n):void 0};r.exp({getMetadata:function(t,e){return c(t,i(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(214),i=n(268),o=n(277),s=n(12),a=n(59),u=o.keys,c=o.key,f=function(t,e){var n=u(t,e),o=a(t);if(null===o)return n;var s=f(o,e);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(t){return f(s(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,n){var r=n(277),i=n(12),o=r.get,s=r.key;r.exp({getOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(277),i=n(12),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:s(arguments[1]))}})},function(t,e,n){var r=n(277),i=n(12),o=n(59),s=r.has,a=r.key,u=function(t,e,n){var r=s(t,e,n);if(r)return!0;var i=o(e);return null!==i&&u(t,i,n)};r.exp({hasMetadata:function(t,e){return u(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(277),i=n(12),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(277),i=n(12),o=n(21),s=r.key,a=r.set;r.exp({metadata:function(t,e){return function(n,r){a(t,e,(void 0!==r?i:o)(n),s(r))}}})},function(t,e,n){var r=n(8),i=n(209)(),o=n(4).process,s="process"==n(34)(o);r(r.G,{asap:function(t){var e=s&&o.domain;i(e?e.bind(t):t)}})},function(t,e,n){"use strict";var r=n(8),i=n(4),o=n(9),s=n(209)(),a=n(25)("observable"),u=n(21),c=n(12),f=n(205),l=n(210),h=n(10),p=n(206),v=p.RETURN,d=function(t){return null==t?void 0:u(t)},g=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},y=function(t){m(t)||(t._o=void 0,g(t))},_=function(t,e){c(t),this._c=void 0,this._o=t,t=new b(this);try{var n=e(t),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(i){return void t.error(i)}m(this)&&g(this)};_.prototype=l({},{unsubscribe:function(){y(this)}});var b=function(t){this._s=t};b.prototype=l({},{next:function(t){var e=this._s;if(!m(e)){var n=e._o;try{var r=d(n.next);if(r)return r.call(n,t)}catch(i){try{y(e)}finally{throw i}}}},error:function(t){var e=this._s;if(m(e))throw t;var n=e._o;e._o=void 0;try{var r=d(n.error);if(!r)throw t;t=r.call(n,t)}catch(i){try{g(e)}finally{throw i}}return g(e),t},complete:function(t){var e=this._s;if(!m(e)){var n=e._o;e._o=void 0;try{var r=d(n.complete);t=r?r.call(n,t):void 0}catch(i){try{g(e)}finally{throw i}}return g(e),t}}});var w=function(t){f(this,w,"Observable","_f")._f=u(t)};l(w.prototype,{subscribe:function(t){return new _(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||i.Promise)(function(n,r){u(t);var i=e.subscribe({next:function(e){try{return t(e)}catch(n){r(n),i.unsubscribe()}},error:r,complete:n})})}}),l(w,{from:function(t){var e="function"==typeof this?this:w,n=d(c(t)[a]);if(n){var r=c(n.call(t));return r.constructor===e?r:new e(function(t){return r.subscribe(t)})}return new e(function(e){var n=!1;return s(function(){if(!n){try{if(p(t,!1,function(t){if(e.next(t),n)return v})===v)return}catch(r){if(n)throw r;return void e.error(r)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=Array(e);t<e;)n[t]=arguments[t++];return new("function"==typeof this?this:w)(function(t){var e=!1;return s(function(){if(!e){for(var r=0;r<n.length;++r)if(t.next(n[r]),e)return;t.complete()}}),function(){e=!0}})}}),h(w.prototype,a,function(){return this}),r(r.G,{Observable:w}),n(192)("Observable")},function(t,e,n){var r=n(4),i=n(8),o=n(78),s=n(289),a=r.navigator,u=!!a&&/MSIE .\./.test(a.userAgent),c=function(t){return u?function(e,n){return t(o(s,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),n)}:t};i(i.G+i.B+i.F*u,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){"use strict";var r=n(290),i=n(78),o=n(21);t.exports=function(){for(var t=o(this),e=arguments.length,n=Array(e),s=0,a=r._,u=!1;e>s;)(n[s]=arguments[s++])===a&&(u=!0);return function(){var r,o=this,s=arguments.length,c=0,f=0;if(!u&&!s)return i(t,n,o);if(r=n.slice(),u)for(;e>c;c++)r[c]===a&&(r[c]=arguments[f++]);for(;s>f;)r.push(arguments[f++]);return i(t,r,o)}}},function(t,e,n){t.exports=n(4)},function(t,e,n){var r=n(8),i=n(208);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(193),i=n(18),o=n(4),s=n(10),a=n(129),u=n(25),c=u("iterator"),f=u("toStringTag"),l=a.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],p=0;p<5;p++){var v,d=h[p],g=o[d],m=g&&g.prototype;if(m){m[c]||s(m,c,l),m[f]||s(m,f,d),a[d]=l;for(v in r)m[v]||i(m,v,r[v],!0)}}},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var i=Object.create((e||o).prototype),s=new v(r||[]);return i._invoke=l(t,n,s),i}function i(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function o(){}function s(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function f(t){function e(n,r,o,s){var a=i(t[n],t,r);if("throw"!==a.type){var u=a.arg,f=u.value;return f instanceof c?Promise.resolve(f.arg).then(function(t){e("next",t,o,s)},function(t){e("throw",t,o,s)}):Promise.resolve(f).then(function(t){u.value=t,o(u)},s)}s(a.arg)}function r(t,n){function r(){return new Promise(function(r,i){e(t,n,r,i)})}return o=o?o.then(r,r):r()}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var o;this._invoke=r}function l(t,e,n){var r=k;return function(o,s){if(r===O)throw new Error("Generator is already running");if(r===E){if("throw"===o)throw s;return g()}for(;;){var a=n.delegate;if(a){if("return"===o||"throw"===o&&a.iterator[o]===m){n.delegate=null;var u=a.iterator["return"];if(u){var c=i(u,a.iterator,s);if("throw"===c.type){o="throw",s=c.arg;continue}}if("return"===o)continue}var c=i(a.iterator[o],a.iterator,s);if("throw"===c.type){n.delegate=null,o="throw",s=c.arg;continue}o="next",s=m;var f=c.arg;if(!f.done)return r=C,f;n[a.resultName]=f.value,n.next=a.nextLoc,n.delegate=null}if("next"===o)n.sent=n._sent=s;else if("throw"===o){if(r===k)throw r=E,s;n.dispatchException(s)&&(o="next",s=m)}else"return"===o&&n.abrupt("return",s);r=O;var c=i(t,e,n);if("normal"===c.type){r=n.done?E:C;var f={value:c.arg,done:n.done};if(c.arg!==A)return f;n.delegate&&"next"===o&&(s=m)}else"throw"===c.type&&(r=E,o="throw",s=c.arg)}}}function h(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function v(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function d(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n<t.length;)if(y.call(t,n))return i.value=t[n],i.done=!1,i;return i.value=m,i.done=!0,i};return r.next=r}}return{next:g}}function g(){return{value:m,done:!0}}var m,y=Object.prototype.hasOwnProperty,_="function"==typeof Symbol?Symbol:{},b=_.iterator||"@@iterator",w=_.toStringTag||"@@toStringTag",x="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(x&&(t.exports=S));S=e.regeneratorRuntime=x?t.exports:{},S.wrap=r;var k="suspendedStart",C="suspendedYield",O="executing",E="completed",A={},$=a.prototype=o.prototype;s.prototype=$.constructor=a,a.constructor=s,a[w]=s.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===s||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,w in t||(t[w]="GeneratorFunction")),t.prototype=Object.create($),t},S.awrap=function(t){return new c(t)},u(f.prototype),S.async=function(t,e,n,i){var o=new f(r(t,e,n,i));return S.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},u($),$[b]=function(){return this},$[w]="Generator",$.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},S.values=d,v.prototype={constructor:v,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return o.type="throw",o.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var s=y.call(i,"catchLoc"),a=y.call(i,"finallyLoc");if(s&&a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?this.next=i.finallyLoc:this.complete(o),A},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),A}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:d(t),resultName:e,nextLoc:n},A}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(294))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===n||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function s(){d&&p&&(d=!1,p.length?v=p.concat(v):g=-1,v.length&&a())}function a(){if(!d){var t=i(s);d=!0;for(var e=v.length;e;){for(p=v,v=[];++g<e;)p&&p[g].run();g=-1,e=v.length}p=null,d=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var f,l,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:n}catch(t){f=n}try{l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}}();var p,v=[],d=!1,g=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];v.push(new u(t,e)),1!==v.length||d||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,n){n(296),t.exports=n(9).RegExp.escape},function(t,e,n){var r=n(8),i=n(297)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return i(t)}})},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){(function(e){/*!
* Vue.js v1.0.26
* (c) 2016 Evan You
* Released under the MIT License.
*/
"use strict";function n(t,e,r){if(i(t,e))return void(t[e]=r);if(t._isVue)return void n(t._data,e,r);var o=t.__ob__;if(!o)return void(t[e]=r);if(o.convert(e,r),o.dep.notify(),o.vms)for(var s=o.vms.length;s--;){var a=o.vms[s];a._proxy(e),a._digest()}return r}function r(t,e){if(i(t,e)){delete t[e];var n=t.__ob__;if(!n)return void(t._isVue&&(delete t._data[e],t._digest()));if(n.dep.notify(),n.vms)for(var r=n.vms.length;r--;){var o=n.vms[r];o._unproxy(e),o._digest()}}}function i(t,e){return jn.call(t,e)}function o(t){return Nn.test(t)}function s(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function a(t){return null==t?"":t.toString()}function u(t){if("string"!=typeof t)return t;var e=Number(t);return isNaN(e)?t:e}function c(t){return"true"===t||"false"!==t&&t}function f(t){var e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e!==n||34!==e&&39!==e?t:t.slice(1,-1)}function l(t){return t.replace(Tn,h)}function h(t,e){return e?e.toUpperCase():""}function p(t){return t.replace(Fn,"$1-$2").toLowerCase()}function v(t){return t.replace(Mn,h)}function d(t,e){return function(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}}function g(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function m(t,e){for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}function y(t){return null!==t&&"object"==typeof t}function _(t){return Pn.call(t)===In}function b(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function w(t,e){var n,r,i,o,s,a=function u(){var a=Date.now()-o;a<e&&a>=0?n=setTimeout(u,e-a):(n=null,s=t.apply(i,r),n||(i=r=null))};return function(){return i=this,r=arguments,o=Date.now(),n||(n=setTimeout(a,e)),s}}function x(t,e){for(var n=t.length;n--;)if(t[n]===e)return n;return-1}function S(t){var e=function n(){if(!n.cancelled)return t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function k(t,e){return t==e||!(!y(t)||!y(e))&&JSON.stringify(t)===JSON.stringify(e)}function C(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function O(){var t,e=ir.slice(fr,ur).trim();if(e){t={};var n=e.match(mr);t.name=n[0],n.length>1&&(t.args=n.slice(1).map(E))}t&&(or.filters=or.filters||[]).push(t),fr=ur+1}function E(t){if(yr.test(t))return{value:u(t),dynamic:!1};var e=f(t),n=e===t;return{value:n?t:e,dynamic:n}}function A(t){var e=gr.get(t);if(e)return e;for(ir=t,lr=hr=!1,pr=vr=dr=0,fr=0,or={},ur=0,cr=ir.length;ur<cr;ur++)if(ar=sr,sr=ir.charCodeAt(ur),lr)39===sr&&92!==ar&&(lr=!lr);else if(hr)34===sr&&92!==ar&&(hr=!hr);else if(124===sr&&124!==ir.charCodeAt(ur+1)&&124!==ir.charCodeAt(ur-1))null==or.expression?(fr=ur+1,or.expression=ir.slice(0,ur).trim()):O();else switch(sr){case 34:hr=!0;break;case 39:lr=!0;break;case 40:dr++;break;case 41:dr--;break;case 91:vr++;break;case 93:vr--;break;case 123:pr++;break;case 125:pr--}return null==or.expression?or.expression=ir.slice(0,ur).trim():0!==fr&&O(),gr.put(t,or),or}function $(t){return t.replace(br,"\\$&")}function j(){var t=$(Ar.delimiters[0]),e=$(Ar.delimiters[1]),n=$(Ar.unsafeDelimiters[0]),r=$(Ar.unsafeDelimiters[1]);xr=new RegExp(n+"((?:.|\\n)+?)"+r+"|"+t+"((?:.|\\n)+?)"+e,"g"),Sr=new RegExp("^"+n+"((?:.|\\n)+?)"+r+"$"),wr=new C(1e3)}function N(t){wr||j();var e=wr.get(t);if(e)return e;if(!xr.test(t))return null;for(var n,r,i,o,s,a,u=[],c=xr.lastIndex=0;n=xr.exec(t);)r=n.index,r>c&&u.push({value:t.slice(c,r)}),i=Sr.test(n[0]),o=i?n[1]:n[2],s=o.charCodeAt(0),a=42===s,o=a?o.slice(1):o,u.push({tag:!0,value:o.trim(),html:i,oneTime:a}),c=r+n[0].length;return c<t.length&&u.push({value:t.slice(c)}),wr.put(t,u),u}function T(t,e){return t.length>1?t.map(function(t){return F(t,e)}).join("+"):F(t[0],e,!0)}function F(t,e,n){return t.tag?t.oneTime&&e?'"'+e.$eval(t.value)+'"':M(t.value,n):'"'+t.value+'"'}function M(t,e){if(kr.test(t)){var n=A(t);return n.filters?"this._applyFilters("+n.expression+",null,"+JSON.stringify(n.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function P(t,e,n,r){L(t,1,function(){e.appendChild(t)},n,r)}function I(t,e,n,r){L(t,1,function(){z(t,e)},n,r)}function R(t,e,n){L(t,-1,function(){G(t)},e,n)}function L(t,e,n,r,i){var o=t.__v_trans;if(!o||!o.hooks&&!Yn||!r._isCompiled||r.$parent&&!r.$parent._isCompiled)return n(),void(i&&i());var s=e>0?"enter":"leave";o[s](n,i)}function D(t){if("string"==typeof t){t=document.querySelector(t)}return t}function V(t){if(!t)return!1;var e=t.ownerDocument.documentElement,n=t.parentNode;return e===t||e===n||!(!n||1!==n.nodeType||!e.contains(n))}function W(t,e){var n=t.getAttribute(e);return null!==n&&t.removeAttribute(e),n}function U(t,e){var n=W(t,":"+e);return null===n&&(n=W(t,"v-bind:"+e)),n}function B(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function z(t,e){e.parentNode.insertBefore(t,e)}function H(t,e){e.nextSibling?z(t,e.nextSibling):e.parentNode.appendChild(t)}function G(t){t.parentNode.removeChild(t)}function J(t,e){e.firstChild?z(t,e.firstChild):e.appendChild(t)}function K(t,e){var n=t.parentNode;n&&n.replaceChild(e,t)}function q(t,e,n,r){t.addEventListener(e,n,r)}function Y(t,e,n){t.removeEventListener(e,n)}function Q(t){var e=t.className;return"object"==typeof e&&(e=e.baseVal||""),e}function X(t,e){Bn&&!/svg$/.test(t.namespaceURI)?t.className=e:t.setAttribute("class",e)}function Z(t,e){if(t.classList)t.classList.add(e);else{var n=" "+Q(t)+" ";n.indexOf(" "+e+" ")<0&&X(t,(n+e).trim())}}function tt(t,e){if(t.classList)t.classList.remove(e);else{for(var n=" "+Q(t)+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");X(t,n.trim())}t.className||t.removeAttribute("class")}function et(t,e){var n,r;if(it(t)&&ct(t.content)&&(t=t.content),t.hasChildNodes())for(nt(t),r=e?document.createDocumentFragment():document.createElement("div");n=t.firstChild;)r.appendChild(n);return r}function nt(t){for(var e;e=t.firstChild,rt(e);)t.removeChild(e);for(;e=t.lastChild,rt(e);)t.removeChild(e)}function rt(t){return t&&(3===t.nodeType&&!t.data.trim()||8===t.nodeType)}function it(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function ot(t,e){var n=Ar.debug?document.createComment(t):document.createTextNode(e?" ":"");return n.__v_anchor=!0,n}function st(t){if(t.hasAttributes())for(var e=t.attributes,n=0,r=e.length;n<r;n++){var i=e[n].name;if(Nr.test(i))return l(i.replace(Nr,""))}}function at(t,e,n){for(var r;t!==e;)r=t.nextSibling,n(t),t=r;n(e)}function ut(t,e,n,r,i){function o(){if(a++,s&&a>=u.length){for(var t=0;t<u.length;t++)r.appendChild(u[t]);i&&i()}}var s=!1,a=0,u=[];at(t,e,function(t){t===e&&(s=!0),u.push(t),R(t,n,o)})}function ct(t){return t&&11===t.nodeType}function ft(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}function lt(t,e){var n=t.tagName.toLowerCase(),r=t.hasAttributes();if(Tr.test(n)||Fr.test(n)){if(r)return ht(t,e)}else{if(_t(e,"components",n))return{id:n};var i=r&&ht(t,e);if(i)return i}}function ht(t,e){var n=t.getAttribute("is");if(null!=n){if(_t(e,"components",n))return t.removeAttribute("is"),{id:n}}else if(n=U(t,"is"),null!=n)return{id:n,dynamic:!0}}function pt(t,e){var r,o,s;for(r in e)o=t[r],s=e[r],i(t,r)?y(o)&&y(s)&&pt(o,s):n(t,r,s);return t}function vt(t,e){var n=Object.create(t||null);return e?m(n,mt(e)):n}function dt(t){if(t.components)for(var e,n=t.components=mt(t.components),r=Object.keys(n),i=0,o=r.length;i<o;i++){var s=r[i];Tr.test(s)||Fr.test(s)||(e=n[s],_(e)&&(n[s]=kn.extend(e)))}}function gt(t){var e,n,r=t.props;if(Rn(r))for(t.props={},e=r.length;e--;)n=r[e],"string"==typeof n?t.props[n]=null:n.name&&(t.props[n.name]=n);else if(_(r)){var i=Object.keys(r);for(e=i.length;e--;)n=r[i[e]],"function"==typeof n&&(r[i[e]]={type:n})}}function mt(t){if(Rn(t)){for(var e,n={},r=t.length;r--;){e=t[r];var i="function"==typeof e?e.options&&e.options.name||e.id:e.name||e.id;i&&(n[i]=e)}return n}return t}function yt(t,e,n){function r(r){var i=Mr[r]||Pr;s[r]=i(t[r],e[r],n,r)}dt(e),gt(e);var o,s={};if(e["extends"]&&(t="function"==typeof e["extends"]?yt(t,e["extends"].options,n):yt(t,e["extends"],n)),e.mixins)for(var a=0,u=e.mixins.length;a<u;a++){var c=e.mixins[a],f=c.prototype instanceof kn?c.options:c;t=yt(t,f,n)}for(o in t)r(o);for(o in e)i(t,o)||r(o);return s}function _t(t,e,n,r){if("string"==typeof n){var i,o=t[e],s=o[n]||o[i=l(n)]||o[i.charAt(0).toUpperCase()+i.slice(1)];return s}}function bt(){this.id=Ir++,this.subs=[]}function wt(t){Vr=!1,t(),Vr=!0}function xt(t){if(this.value=t,this.dep=new bt,b(t,"__ob__",this),Rn(t)){var e=Ln?St:kt;e(t,Lr,Dr),this.observeArray(t)}else this.walk(t)}function St(t,e){t.__proto__=e}function kt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];b(t,o,e[o])}}function Ct(t,e){if(t&&"object"==typeof t){var n;return i(t,"__ob__")&&t.__ob__ instanceof xt?n=t.__ob__:Vr&&(Rn(t)||_(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new xt(t)),n&&e&&n.addVm(e),n}}function Ot(t,e,n){var r=new bt,i=Object.getOwnPropertyDescriptor(t,e);if(!i||i.configurable!==!1){var o=i&&i.get,s=i&&i.set,a=Ct(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=o?o.call(t):n;if(bt.target&&(r.depend(),a&&a.dep.depend(),Rn(e)))for(var i,s=0,u=e.length;s<u;s++)i=e[s],i&&i.__ob__&&i.__ob__.dep.depend();return e},set:function(e){var i=o?o.call(t):n;e!==i&&(s?s.call(t,e):n=e,a=Ct(e),r.notify())}})}}function Et(t){t.prototype._init=function(t){t=t||{},this.$el=null,this.$parent=t.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=Ur++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=this._vForRemoving=!1,this._unlinkFn=null,this._context=t._context||this.$parent,this._scope=t._scope,this._frag=t._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),t=this.$options=yt(this.constructor.options,t,this),this._updateRef(),this._data={},this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}}function At(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&e<=122||e>=65&&e<=90?"ident":e>=49&&e<=57?"number":"else"}function $t(t){var e=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(o(e)?f(e):"*"+e)}function jt(t){function e(){var e=t[f+1];if(l===Zr&&"'"===e||l===ti&&'"'===e)return f++,r="\\"+e,p[zr](),!0}var n,r,i,o,s,a,u,c=[],f=-1,l=Kr,h=0,p=[];for(p[Hr]=function(){void 0!==i&&(c.push(i),i=void 0)},p[zr]=function(){void 0===i?i=r:i+=r},p[Gr]=function(){p[zr](),h++},p[Jr]=function(){if(h>0)h--,l=Xr,p[zr]();else{if(h=0,i=$t(i),i===!1)return!1;p[Hr]()}};null!=l;)if(f++,n=t[f],"\\"!==n||!e()){if(o=At(n),u=ri[l],s=u[o]||u["else"]||ni,s===ni)return;if(l=s[0],a=p[s[1]],a&&(r=s[2],r=void 0===r?n:r,a()===!1))return;if(l===ei)return c.raw=t,c}}function Nt(t){var e=Br.get(t);return e||(e=jt(t),e&&Br.put(t,e)),e}function Tt(t,e){return Wt(e).get(t)}function Ft(t,e,r){var i=t;if("string"==typeof e&&(e=jt(e)),!e||!y(t))return!1;for(var o,s,a=0,u=e.length;a<u;a++)o=t,s=e[a],"*"===s.charAt(0)&&(s=Wt(s.slice(1)).get.call(i,i)),a<u-1?(t=t[s],y(t)||(t={},n(o,s,t))):Rn(t)?t.$set(s,r):s in t?t[s]=r:n(t,s,r);return!0}function Mt(){}function Pt(t,e){var n=mi.length;return mi[n]=e?t.replace(li,"\\n"):t,'"'+n+'"'}function It(t){var e=t.charAt(0),n=t.slice(1);return ai.test(n)?t:(n=n.indexOf('"')>-1?n.replace(pi,Rt):n,e+"scope."+n)}function Rt(t,e){return mi[e]}function Lt(t){ci.test(t),mi.length=0;var e=t.replace(hi,Pt).replace(fi,"");return e=(" "+e).replace(di,It).replace(pi,Rt),Dt(e)}function Dt(t){try{return new Function("scope","return "+t+";")}catch(e){return Mt}}function Vt(t){var e=Nt(t);if(e)return function(t,n){Ft(t,e,n)}}function Wt(t,e){t=t.trim();var n=oi.get(t);if(n)return e&&!n.set&&(n.set=Vt(n.exp)),n;var r={exp:t};return r.get=Ut(t)&&t.indexOf("[")<0?Dt("scope."+t):Lt(t),e&&(r.set=Vt(t)),oi.put(t,r),r}function Ut(t){return vi.test(t)&&!gi.test(t)&&"Math."!==t.slice(0,5)}function Bt(){_i.length=0,bi.length=0,wi={},xi={},Si=!1}function zt(){for(var t=!0;t;)t=!1,Ht(_i),Ht(bi),_i.length?t=!0:(Vn&&Ar.devtools&&Vn.emit("flush"),Bt())}function Ht(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.id;wi[r]=null,n.run()}t.length=0}function Gt(t){var e=t.id;if(null==wi[e]){var n=t.user?bi:_i;wi[e]=n.length,n.push(t),Si||(Si=!0,er(zt))}}function Jt(t,e,n,r){r&&m(this,r);var i="function"==typeof e;if(this.vm=t,t._watchers.push(this),this.expression=e,this.cb=n,this.id=++ki,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new nr,this.newDepIds=new nr,this.prevError=null,i)this.getter=e,this.setter=void 0;else{var o=Wt(e,this.twoWay);this.getter=o.get,this.setter=o.set}this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function Kt(t,e){var n=void 0,r=void 0;e||(e=Ci,e.clear());var i=Rn(t),o=y(t);if((i||o)&&Object.isExtensible(t)){if(t.__ob__){var s=t.__ob__.dep.id;if(e.has(s))return;e.add(s)}if(i)for(n=t.length;n--;)Kt(t[n],e);else if(o)for(r=Object.keys(t),n=r.length;n--;)Kt(t[r[n]],e)}}function qt(t){return it(t)&&ct(t.content)}function Yt(t,e){var n=e?t:t.trim(),r=Ei.get(n);if(r)return r;var i=document.createDocumentFragment(),o=t.match(ji),s=Ni.test(t),a=Ti.test(t);if(o||s||a){var u=o&&o[1],c=$i[u]||$i.efault,f=c[0],l=c[1],h=c[2],p=document.createElement("div");for(p.innerHTML=l+t+h;f--;)p=p.lastChild;for(var v;v=p.firstChild;)i.appendChild(v)}else i.appendChild(document.createTextNode(t));return e||nt(i),Ei.put(n,i),i}function Qt(t){if(qt(t))return Yt(t.innerHTML);if("SCRIPT"===t.tagName)return Yt(t.textContent);for(var e,n=Xt(t),r=document.createDocumentFragment();e=n.firstChild;)r.appendChild(e);return nt(r),r}function Xt(t){if(!t.querySelectorAll)return t.cloneNode();var e,n,r,i=t.cloneNode(!0);if(Fi){var o=i;if(qt(t)&&(t=t.content,o=i.content),n=t.querySelectorAll("template"),n.length)for(r=o.querySelectorAll("template"),e=r.length;e--;)r[e].parentNode.replaceChild(Xt(n[e]),r[e])}if(Mi)if("TEXTAREA"===t.tagName)i.value=t.value;else if(n=t.querySelectorAll("textarea"),n.length)for(r=i.querySelectorAll("textarea"),e=r.length;e--;)r[e].value=n[e].value;return i}function Zt(t,e,n){var r,i;return ct(t)?(nt(t),e?Xt(t):t):("string"==typeof t?n||"#"!==t.charAt(0)?i=Yt(t,n):(i=Ai.get(t),i||(r=document.getElementById(t.slice(1)),r&&(i=Qt(r),Ai.put(t,i)))):t.nodeType&&(i=Qt(t)),i&&e?Xt(i):i)}function te(t,e,n,r,i,o){this.children=[],this.childFrags=[],this.vm=e,this.scope=i,this.inserted=!1,this.parentFrag=o,o&&o.childFrags.push(this),this.unlink=t(e,n,r,i,this);var s=this.single=1===n.childNodes.length&&!n.childNodes[0].__v_anchor;s?(this.node=n.childNodes[0],this.before=ee,this.remove=ne):(this.node=ot("fragment-start"),this.end=ot("fragment-end"),this.frag=n,J(this.node,n),n.appendChild(this.end),this.before=re,this.remove=ie),this.node.__v_frag=this}function ee(t,e){this.inserted=!0;var n=e!==!1?I:z;n(this.node,t,this.vm),V(this.node)&&this.callHook(oe)}function ne(){this.inserted=!1;var t=V(this.node),e=this;this.beforeRemove(),R(this.node,this.vm,function(){t&&e.callHook(se),e.destroy()})}function re(t,e){this.inserted=!0;var n=this.vm,r=e!==!1?I:z;at(this.node,this.end,function(e){r(e,t,n)}),V(this.node)&&this.callHook(oe)}function ie(){this.inserted=!1;var t=this,e=V(this.node);this.beforeRemove(),ut(this.node,this.end,this.vm,this.frag,function(){e&&t.callHook(se),t.destroy()})}function oe(t){!t._isAttached&&V(t.$el)&&t._callHook("attached")}function se(t){t._isAttached&&!V(t.$el)&&t._callHook("detached")}function ae(t,e){this.vm=t;var n,r="string"==typeof e;r||it(e)&&!e.hasAttribute("v-if")?n=Zt(e,!0):(n=document.createDocumentFragment(),n.appendChild(e)),this.template=n;var i,o=t.constructor.cid;if(o>0){var s=o+(r?e:ft(e));i=Ri.get(s),i||(i=Ie(n,t.$options,!0),Ri.put(s,i))}else i=Ie(n,t.$options,!0);this.linker=i}function ue(t,e,n){var r=t.node.previousSibling;if(r){for(t=r.__v_frag;!(t&&t.forId===n&&t.inserted||r===e);){if(r=r.previousSibling,!r)return;t=r.__v_frag}return t}}function ce(t){var e=t.node;if(t.end)for(;!e.__vue__&&e!==t.end&&e.nextSibling;)e=e.nextSibling;return e.__vue__}function fe(t){for(var e=-1,n=new Array(Math.floor(t));++e<t;)n[e]=e;return n}function le(t,e,n,r){return r?"$index"===r?t:r.charAt(0).match(/\w/)?Tt(n,r):n[r]:e||n}function he(t,e,n){for(var r,i,o,s=e?[]:null,a=0,u=t.options.length;a<u;a++)if(r=t.options[a],o=n?r.hasAttribute("selected"):r.selected){if(i=r.hasOwnProperty("_value")?r._value:r.value,!e)return i;s.push(i)}return s}function pe(t,e){for(var n=t.length;n--;)if(k(t[n],e))return n;return-1}function ve(t,e){var n=e.map(function(t){var e=t.charCodeAt(0);return e>47&&e<58?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&e<91)?e:io[t]});return n=[].concat.apply([],n),function(e){if(n.indexOf(e.keyCode)>-1)return t.call(this,e)}}function de(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function ge(t){return function(e){return e.preventDefault(),t.call(this,e)}}function me(t){return function(e){if(e.target===e.currentTarget)return t.call(this,e)}}function ye(t){if(co[t])return co[t];var e=_e(t);return co[t]=co[e]=e,e}function _e(t){t=p(t);var e=l(t),n=e.charAt(0).toUpperCase()+e.slice(1);fo||(fo=document.createElement("div"));var r,i=so.length;if("filter"!==e&&e in fo.style)return{kebab:t,camel:e};for(;i--;)if(r=ao[i]+n,r in fo.style)return{kebab:so[i]+t,camel:r}}function be(t){var e=[];if(Rn(t))for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i)if("string"==typeof i)e.push(i);else for(var o in i)i[o]&&e.push(o)}else if(y(t))for(var s in t)t[s]&&e.push(s);return e}function we(t,e,n){if(e=e.trim(),e.indexOf(" ")===-1)return void n(t,e);for(var r=e.split(/\s+/),i=0,o=r.length;i<o;i++)n(t,r[i])}function xe(t,e,n){function r(){++o>=i?n():t[o].call(e,r)}var i=t.length,o=0;t[0].call(e,r)}function Se(t,e,n){for(var r,i,s,a,u,c,f,h=[],v=Object.keys(e),d=v.length;d--;)if(i=v[d],r=e[i]||Eo,u=l(i),Ao.test(u)){if(f={name:i,path:u,options:r,mode:Oo.ONE_WAY,raw:null},s=p(i),null===(a=U(t,s))&&(null!==(a=U(t,s+".sync"))?f.mode=Oo.TWO_WAY:null!==(a=U(t,s+".once"))&&(f.mode=Oo.ONE_TIME)),null!==a)f.raw=a,c=A(a),a=c.expression,f.filters=c.filters,o(a)&&!c.filters?f.optimizedLiteral=!0:f.dynamic=!0,f.parentPath=a;else if(null!==(a=W(t,s)))f.raw=a;else;h.push(f)}return ke(h)}function ke(t){return function(e,n){e._props={};for(var r,o,s,a,l,h=e.$options.propsData,v=t.length;v--;)if(r=t[v],l=r.raw,o=r.path,s=r.options,e._props[o]=r,h&&i(h,o)&&Oe(e,r,h[o]),null===l)Oe(e,r,void 0);else if(r.dynamic)r.mode===Oo.ONE_TIME?(a=(n||e._context||e).$get(r.parentPath),Oe(e,r,a)):e._context?e._bindDir({name:"prop",def:jo,prop:r},null,null,n):Oe(e,r,e.$get(r.parentPath));else if(r.optimizedLiteral){var d=f(l);a=d===l?c(u(l)):d,Oe(e,r,a)}else a=s.type===Boolean&&(""===l||l===p(r.name))||l,Oe(e,r,a)}}function Ce(t,e,n,r){var i=e.dynamic&&Ut(e.parentPath),o=n;void 0===o&&(o=Ae(t,e)),o=je(e,o,t);var s=o!==n;$e(e,o,t)||(o=void 0),i&&!s?wt(function(){r(o)}):r(o)}function Oe(t,e,n){Ce(t,e,n,function(n){Ot(t,e.path,n)})}function Ee(t,e,n){Ce(t,e,n,function(n){t[e.path]=n})}function Ae(t,e){var n=e.options;if(!i(n,"default"))return n.type!==Boolean&&void 0;var r=n["default"];return y(r),"function"==typeof r&&n.type!==Function?r.call(t):r}function $e(t,e,n){if(!t.options.required&&(null===t.raw||null==e))return!0;var r=t.options,i=r.type,o=!i,s=[];if(i){Rn(i)||(i=[i]);for(var a=0;a<i.length&&!o;a++){var u=Ne(e,i[a]);s.push(u.expectedType),o=u.valid}}if(!o)return!1;var c=r.validator;return!(c&&!c(e))}function je(t,e,n){var r=t.options.coerce;return r&&"function"==typeof r?r(e):e}function Ne(t,e){var n,r;return e===String?(r="string",n=typeof t===r):e===Number?(r="number",n=typeof t===r):e===Boolean?(r="boolean",n=typeof t===r):e===Function?(r="function",n=typeof t===r):e===Object?(r="object",n=_(t)):e===Array?(r="array",n=Rn(t)):n=t instanceof e,{valid:n,expectedType:r}}function Te(t){No.push(t),To||(To=!0,er(Fe))}function Fe(){for(var t=document.documentElement.offsetHeight,e=0;e<No.length;e++)No[e]();return No=[],To=!1,t}function Me(t,e,n,r){this.id=e,this.el=t,this.enterClass=n&&n.enterClass||e+"-enter",this.leaveClass=n&&n.leaveClass||e+"-leave",this.hooks=n,this.vm=r,this.pendingCssEvent=this.pendingCssCb=this.cancel=this.pendingJsCb=this.op=this.cb=null,this.justEntered=!1,this.entered=this.left=!1,this.typeCache={},this.type=n&&n.type;var i=this;["enterNextTick","enterDone","leaveNextTick","leaveDone"].forEach(function(t){i[t]=d(i[t],i)})}function Pe(t){if(/svg$/.test(t.namespaceURI)){var e=t.getBoundingClientRect();return!(e.width||e.height)}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Ie(t,e,n){var r=n||!e._asComponent?Be(t,e):null,i=r&&r.terminal||an(t)||!t.hasChildNodes()?null:qe(t.childNodes,e);return function(t,e,n,o,s){var a=g(e.childNodes),u=Re(function(){r&&r(t,e,n,o,s),i&&i(t,a,n,o,s)},t);return De(t,u)}}function Re(t,e){e._directives=[];var n=e._directives.length;t();var r=e._directives.slice(n);r.sort(Le);for(var i=0,o=r.length;i<o;i++)r[i]._bind();return r}function Le(t,e){return t=t.descriptor.def.priority||Jo,e=e.descriptor.def.priority||Jo,t>e?-1:t===e?0:1}function De(t,e,n,r){function i(i){Ve(t,e,i),n&&r&&Ve(n,r)}return i.dirs=e,i}function Ve(t,e,n){for(var r=e.length;r--;)e[r]._teardown()}function We(t,e,n,r){var i=Se(e,n,t),o=Re(function(){i(t,r)},t);return De(t,o)}function Ue(t,e,n){var r,i,o=e._containerAttrs,s=e._replacerAttrs;if(11!==t.nodeType)e._asComponent?(o&&n&&(r=nn(o,n)),s&&(i=nn(s,e))):i=nn(t.attributes,e);else;return e._containerAttrs=e._replacerAttrs=null,function(t,e,n){var o,s=t._context;s&&r&&(o=Re(function(){r(s,e,null,n)},s));var a=Re(function(){i&&i(t,e)},t);return De(t,a,s,o)}}function Be(t,e){var n=t.nodeType;return 1!==n||an(t)?3===n&&t.data.trim()?He(t,e):null:ze(t,e)}function ze(t,e){if("TEXTAREA"===t.tagName){var n=N(t.value);n&&(t.setAttribute(":value",T(n)),t.value="")}var r,i=t.hasAttributes(),o=i&&g(t.attributes);return i&&(r=Ze(t,o,e)),r||(r=Qe(t,e)),r||(r=Xe(t,e)),!r&&i&&(r=nn(o,e)),r}function He(t,e){if(t._skip)return Ge;var n=N(t.wholeText);if(!n)return null;for(var r=t.nextSibling;r&&3===r.nodeType;)r._skip=!0,r=r.nextSibling;for(var i,o,s=document.createDocumentFragment(),a=0,u=n.length;a<u;a++)o=n[a],i=o.tag?Je(o,e):document.createTextNode(o.value),s.appendChild(i);return Ke(n,s,e)}function Ge(t,e){G(e)}function Je(t,e){function n(e){if(!t.descriptor){var n=A(t.value);t.descriptor={name:e,def:So[e],expression:n.expression,filters:n.filters}}}var r;return t.oneTime?r=document.createTextNode(t.value):t.html?(r=document.createComment("v-html"),n("html")):(r=document.createTextNode(" "),n("text")),r}function Ke(t,e){return function(n,r,i,o){for(var s,u,c,f=e.cloneNode(!0),l=g(f.childNodes),h=0,p=t.length;h<p;h++)s=t[h],u=s.value,s.tag&&(c=l[h],s.oneTime?(u=(o||n).$eval(u),s.html?K(c,Zt(u,!0)):c.data=a(u)):n._bindDir(s.descriptor,c,i,o));K(r,f)}}function qe(t,e){for(var n,r,i,o=[],s=0,a=t.length;s<a;s++)i=t[s],n=Be(i,e),r=n&&n.terminal||"SCRIPT"===i.tagName||!i.hasChildNodes()?null:qe(i.childNodes,e),o.push(n,r);return o.length?Ye(o):null}function Ye(t){return function(e,n,r,i,o){for(var s,a,u,c=0,f=0,l=t.length;c<l;f++){s=n[f],a=t[c++],u=t[c++];var h=g(s.childNodes);a&&a(e,s,r,i,o),u&&u(e,h,r,i,o)}}}function Qe(t,e){var n=t.tagName.toLowerCase();if(!Tr.test(n)){var r=_t(e,"elementDirectives",n);return r?en(t,n,"",e,r):void 0}}function Xe(t,e){var n=lt(t,e);if(n){var r=st(t),i={name:"component",ref:r,expression:n.id,def:Wo.component,modifiers:{literal:!n.dynamic}},o=function(t,e,n,o,s){r&&Ot((o||t).$refs,r,null),t._bindDir(i,e,n,o,s)};return o.terminal=!0,o}}function Ze(t,e,n){if(null!==W(t,"v-pre"))return tn;if(t.hasAttribute("v-else")){var r=t.previousElementSibling;if(r&&r.hasAttribute("v-if"))return tn}for(var i,o,s,a,u,c,f,l,h,p,v=0,d=e.length;v<d;v++)i=e[v],o=i.name.replace(Ho,""),(u=o.match(zo))&&(h=_t(n,"directives",u[1]),h&&h.terminal&&(!p||(h.priority||Ko)>p.priority)&&(p=h,f=i.name,a=rn(i.name),s=i.value,c=u[1],l=u[2]));return p?en(t,c,s,n,p,f,l,a):void 0}function tn(){}function en(t,e,n,r,i,o,s,a){var u=A(n),c={name:e,arg:s,expression:u.expression,filters:u.filters,raw:n,attr:o,modifiers:a,def:i};"for"!==e&&"router-view"!==e||(c.ref=st(t));var f=function(t,e,n,r,i){c.ref&&Ot((r||t).$refs,c.ref,null),t._bindDir(c,e,n,r,i)};return f.terminal=!0,f}function nn(t,e){function n(t,e,n){var r=n&&sn(n),i=!r&&A(o);d.push({name:t,attr:s,raw:a,def:e,arg:c,modifiers:f,expression:i&&i.expression,filters:i&&i.filters,interp:n,hasOneTime:r})}for(var r,i,o,s,a,u,c,f,l,h,p,v=t.length,d=[];v--;)if(r=t[v],i=s=r.name,o=a=r.value,h=N(o),c=null,f=rn(i),i=i.replace(Ho,""),h)o=T(h),c=i,n("bind",So.bind,h);else if(Go.test(i))f.literal=!Uo.test(i),n("transition",Wo.transition);else if(Bo.test(i))c=i.replace(Bo,""),n("on",So.on);else if(Uo.test(i))u=i.replace(Uo,""),"style"===u||"class"===u?n(u,Wo[u]):(c=u,n("bind",So.bind));else if(p=i.match(zo)){if(u=p[1],c=p[2],"else"===u)continue;l=_t(e,"directives",u,!0),l&&n(u,l)}if(d.length)return on(d)}function rn(t){var e=Object.create(null),n=t.match(Ho);if(n)for(var r=n.length;r--;)e[n[r].slice(1)]=!0;return e}function on(t){return function(e,n,r,i,o){for(var s=t.length;s--;)e._bindDir(t[s],n,r,i,o)}}function sn(t){for(var e=t.length;e--;)if(t[e].oneTime)return!0}function an(t){return"SCRIPT"===t.tagName&&(!t.hasAttribute("type")||"text/javascript"===t.getAttribute("type"))}function un(t,e){return e&&(e._containerAttrs=fn(t)),it(t)&&(t=Zt(t)),e&&(e._asComponent&&!e.template&&(e.template="<slot></slot>"),e.template&&(e._content=et(t),t=cn(t,e))),ct(t)&&(J(ot("v-start",!0),t),t.appendChild(ot("v-end",!0))),t}function cn(t,e){var n=e.template,r=Zt(n,!0);if(r){var i=r.firstChild,o=i.tagName&&i.tagName.toLowerCase();return e.replace?(t===document.body,r.childNodes.length>1||1!==i.nodeType||"component"===o||_t(e,"components",o)||B(i,"is")||_t(e,"elementDirectives",o)||i.hasAttribute("v-for")||i.hasAttribute("v-if")?r:(e._replacerAttrs=fn(i),ln(t,i),i)):(t.appendChild(r),t)}}function fn(t){if(1===t.nodeType&&t.hasAttributes())return g(t.attributes)}function ln(t,e){for(var n,r,i=t.attributes,o=i.length;o--;)n=i[o].name,r=i[o].value,e.hasAttribute(n)||qo.test(n)?"class"===n&&!N(r)&&(r=r.trim())&&r.split(/\s+/).forEach(function(t){Z(e,t)}):e.setAttribute(n,r)}function hn(t,e){if(e){for(var n,r,i=t._slotContents=Object.create(null),o=0,s=e.children.length;o<s;o++)n=e.children[o],(r=n.getAttribute("slot"))&&(i[r]||(i[r]=[])).push(n);for(r in i)i[r]=pn(i[r],e);if(e.hasChildNodes()){var a=e.childNodes;if(1===a.length&&3===a[0].nodeType&&!a[0].data.trim())return;i["default"]=pn(e.childNodes,e)}}}function pn(t,e){var n=document.createDocumentFragment();t=g(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];!it(o)||o.hasAttribute("v-if")||o.hasAttribute("v-for")||(e.removeChild(o),o=Zt(o,!0)),n.appendChild(o)}return n}function vn(t){function e(){}function n(t,e){var n=new Jt(e,t,null,{lazy:!0});return function(){return n.dirty&&n.evaluate(),bt.target&&n.depend(),n.value}}Object.defineProperty(t.prototype,"$data",{get:function(){return this._data},set:function(t){t!==this._data&&this._setData(t)}}),t.prototype._initState=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},t.prototype._initProps=function(){var t=this.$options,e=t.el,n=t.props;e=t.el=D(e),this._propsUnlinkFn=e&&1===e.nodeType&&n?We(this,e,n,this._scope):null},t.prototype._initData=function(){var t=this.$options.data,e=this._data=t?t():{};_(e)||(e={});var n,r,o=this._props,s=Object.keys(e);for(n=s.length;n--;)r=s[n],o&&i(o,r)||this._proxy(r);Ct(e,this)},t.prototype._setData=function(t){t=t||{};var e=this._data;this._data=t;var n,r,o;for(n=Object.keys(e),o=n.length;o--;)r=n[o],r in t||this._unproxy(r);for(n=Object.keys(t),o=n.length;o--;)r=n[o],i(this,r)||this._proxy(r);e.__ob__.removeVm(this),Ct(t,this),this._digest()},t.prototype._proxy=function(t){if(!s(t)){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}},t.prototype._unproxy=function(t){s(t)||delete this[t]},t.prototype._digest=function(){for(var t=0,e=this._watchers.length;t<e;t++)this._watchers[t].update(!0)},t.prototype._initComputed=function(){var t=this.$options.computed;if(t)for(var r in t){var i=t[r],o={enumerable:!0,configurable:!0};"function"==typeof i?(o.get=n(i,this),o.set=e):(o.get=i.get?i.cache!==!1?n(i.get,this):d(i.get,this):e,o.set=i.set?d(i.set,this):e),Object.defineProperty(this,r,o)}},t.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=d(t[e],this)},t.prototype._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)Ot(this,e,t[e])}}function dn(t){function e(t,e){for(var n,r,i,o=e.attributes,s=0,a=o.length;s<a;s++)n=o[s].name,Qo.test(n)&&(n=n.replace(Qo,""),r=o[s].value,Ut(r)&&(r+=".apply(this, $arguments)"),i=(t._scope||t._context).$eval(r,!0),i._fromParent=!0,t.$on(n.replace(Qo),i))}function n(t,e,n){if(n){var i,o,s,a;for(o in n)if(i=n[o],Rn(i))for(s=0,a=i.length;s<a;s++)r(t,e,o,i[s]);else r(t,e,o,i)}}function r(t,e,n,i,o){var s=typeof i;if("function"===s)t[e](n,i,o);else if("string"===s){var a=t.$options.methods,u=a&&a[i];u&&t[e](n,u,o)}else i&&"object"===s&&r(t,e,n,i.handler,i)}function i(){this._isAttached||(this._isAttached=!0,this.$children.forEach(o))}function o(t){!t._isAttached&&V(t.$el)&&t._callHook("attached")}function s(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(a))}function a(t){t._isAttached&&!V(t.$el)&&t._callHook("detached")}t.prototype._initEvents=function(){var t=this.$options;t._asComponent&&e(this,t.el),n(this,"$on",t.events),n(this,"$watch",t.watch)},t.prototype._initDOMHooks=function(){this.$on("hook:attached",i),this.$on("hook:detached",s)},t.prototype._callHook=function(t){this.$emit("pre-hook:"+t);var e=this.$options[t];if(e)for(var n=0,r=e.length;n<r;n++)e[n].call(this);this.$emit("hook:"+t)}}function gn(){}function mn(t,e,n,r,i,o){this.vm=e,this.el=n,this.descriptor=t,this.name=t.name,this.expression=t.expression,this.arg=t.arg,this.modifiers=t.modifiers,this.filters=t.filters,this.literal=this.modifiers&&this.modifiers.literal,this._locked=!1,this._bound=!1,this._listeners=null,this._host=r,this._scope=i,this._frag=o}function yn(t){t.prototype._updateRef=function(t){var e=this.$options._ref;if(e){var n=(this._scope||this._context).$refs;t?n[e]===this&&(n[e]=null):n[e]=this}},t.prototype._compile=function(t){var e=this.$options,n=t;if(t=un(t,e),this._initElement(t),1!==t.nodeType||null===W(t,"v-pre")){var r=this._context&&this._context.$options,i=Ue(t,e,r);hn(this,e._content);var o,s=this.constructor;e._linkerCachable&&(o=s.linker,o||(o=s.linker=Ie(t,e)));var a=i(this,t,this._scope),u=o?o(this,t):Ie(t,e)(this,t);this._unlinkFn=function(){a(),u(!0)},e.replace&&K(n,t),this._isCompiled=!0,this._callHook("compiled")}},t.prototype._initElement=function(t){ct(t)?(this._isFragment=!0,this.$el=this._fragmentStart=t.firstChild,this._fragmentEnd=t.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._fragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},t.prototype._bindDir=function(t,e,n,r,i){this._directives.push(new mn(t,this,e,n,r,i))},t.prototype._destroy=function(t,e){if(this._isBeingDestroyed)return void(e||this._cleanup());var n,r,i=this,o=function(){!n||r||e||i._cleanup()};t&&this.$el&&(r=!0,this.$remove(function(){r=!1,o()})),this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var s,a=this.$parent;for(a&&!a._isBeingDestroyed&&(a.$children.$remove(this),this._updateRef(!0)),
s=this.$children.length;s--;)this.$children[s].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),s=this._watchers.length;s--;)this._watchers[s].teardown();this.$el&&(this.$el.__vue__=null),n=!0,o()},t.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data&&this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}function _n(t){t.prototype._applyFilters=function(t,e,n,r){var i,o,s,a,u,c,f,l,h;for(c=0,f=n.length;c<f;c++)if(i=n[r?f-c-1:c],o=_t(this.$options,"filters",i.name,!0),o&&(o=r?o.write:o.read||o,"function"==typeof o)){if(s=r?[t,e]:[t],u=r?2:1,i.args)for(l=0,h=i.args.length;l<h;l++)a=i.args[l],s[l+u]=a.dynamic?this.$get(a.value):a.value;t=o.apply(this,s)}return t},t.prototype._resolveComponent=function(e,n){var r;if(r="function"==typeof e?e:_t(this.$options,"components",e,!0))if(r.options)n(r);else if(r.resolved)n(r.resolved);else if(r.requested)r.pendingCallbacks.push(n);else{r.requested=!0;var i=r.pendingCallbacks=[n];r.call(this,function(e){_(e)&&(e=t.extend(e)),r.resolved=e;for(var n=0,o=i.length;n<o;n++)i[n](e)},function(t){})}}}function bn(t){function e(t){return JSON.parse(JSON.stringify(t))}t.prototype.$get=function(t,e){var n=Wt(t);if(n){if(e){var r=this;return function(){r.$arguments=g(arguments);var t=n.get.call(r,r);return r.$arguments=null,t}}try{return n.get.call(this,this)}catch(i){}}},t.prototype.$set=function(t,e){var n=Wt(t,!0);n&&n.set&&n.set.call(this,this,e)},t.prototype.$delete=function(t){r(this._data,t)},t.prototype.$watch=function(t,e,n){var r,i=this;"string"==typeof t&&(r=A(t),t=r.expression);var o=new Jt(i,t,e,{deep:n&&n.deep,sync:n&&n.sync,filters:r&&r.filters,user:!n||n.user!==!1});return n&&n.immediate&&e.call(i,o.value),function(){o.teardown()}},t.prototype.$eval=function(t,e){if(Xo.test(t)){var n=A(t),r=this.$get(n.expression,e);return n.filters?this._applyFilters(r,null,n.filters):r}return this.$get(t,e)},t.prototype.$interpolate=function(t){var e=N(t),n=this;return e?1===e.length?n.$eval(e[0].value)+"":e.map(function(t){return t.tag?n.$eval(t.value):t.value}).join(""):t},t.prototype.$log=function(t){var n=t?Tt(this._data,t):this._data;if(n&&(n=e(n)),!t){var r;for(r in this.$options.computed)n[r]=e(this[r]);if(this._props)for(r in this._props)n[r]=e(this[r])}console.log(n)}}function wn(t){function e(t,e,r,i,o,s){e=n(e);var a=!V(e),u=i===!1||a?o:s,c=!a&&!t._isAttached&&!V(t.$el);return t._isFragment?(at(t._fragmentStart,t._fragmentEnd,function(n){u(n,e,t)}),r&&r()):u(t.$el,e,t,r),c&&t._callHook("attached"),t}function n(t){return"string"==typeof t?document.querySelector(t):t}function r(t,e,n,r){e.appendChild(t),r&&r()}function i(t,e,n,r){z(t,e),r&&r()}function o(t,e,n){G(t),n&&n()}t.prototype.$nextTick=function(t){er(t,this)},t.prototype.$appendTo=function(t,n,i){return e(this,t,n,i,r,P)},t.prototype.$prependTo=function(t,e,r){return t=n(t),t.hasChildNodes()?this.$before(t.firstChild,e,r):this.$appendTo(t,e,r),this},t.prototype.$before=function(t,n,r){return e(this,t,n,r,i,I)},t.prototype.$after=function(t,e,r){return t=n(t),t.nextSibling?this.$before(t.nextSibling,e,r):this.$appendTo(t.parentNode,e,r),this},t.prototype.$remove=function(t,e){if(!this.$el.parentNode)return t&&t();var n=this._isAttached&&V(this.$el);n||(e=!1);var r=this,i=function(){n&&r._callHook("detached"),t&&t()};if(this._isFragment)ut(this._fragmentStart,this._fragmentEnd,this,this._fragment,i);else{var s=e===!1?o:R;s(this.$el,this,i)}return this}}function xn(t){function e(t,e,r){var i=t.$parent;if(i&&r&&!n.test(e))for(;i;)i._eventsCount[e]=(i._eventsCount[e]||0)+r,i=i.$parent}t.prototype.$on=function(t,n){return(this._events[t]||(this._events[t]=[])).push(n),e(this,t,1),this},t.prototype.$once=function(t,e){function n(){r.$off(t,n),e.apply(this,arguments)}var r=this;return n.fn=e,this.$on(t,n),this},t.prototype.$off=function(t,n){var r;if(!arguments.length){if(this.$parent)for(t in this._events)r=this._events[t],r&&e(this,t,-r.length);return this._events={},this}if(r=this._events[t],!r)return this;if(1===arguments.length)return e(this,t,-r.length),this._events[t]=null,this;for(var i,o=r.length;o--;)if(i=r[o],i===n||i.fn===n){e(this,t,-1),r.splice(o,1);break}return this},t.prototype.$emit=function(t){var e="string"==typeof t;t=e?t:t.name;var n=this._events[t],r=e||!n;if(n){n=n.length>1?g(n):n;var i=e&&n.some(function(t){return t._fromParent});i&&(r=!1);for(var o=g(arguments,1),s=0,a=n.length;s<a;s++){var u=n[s],c=u.apply(this,o);c!==!0||i&&!u._fromParent||(r=!0)}}return r},t.prototype.$broadcast=function(t){var e="string"==typeof t;if(t=e?t:t.name,this._eventsCount[t]){var n=this.$children,r=g(arguments);e&&(r[0]={name:t,source:this});for(var i=0,o=n.length;i<o;i++){var s=n[i],a=s.$emit.apply(s,r);a&&s.$broadcast.apply(s,r)}return this}},t.prototype.$dispatch=function(t){var e=this.$emit.apply(this,arguments);if(e){var n=this.$parent,r=g(arguments);for(r[0]={name:t,source:this};n;)e=n.$emit.apply(n,r),n=e?n.$parent:null;return this}};var n=/^hook:/}function Sn(t){function e(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}t.prototype.$mount=function(t){if(!this._isCompiled)return t=D(t),t||(t=document.createElement("div")),this._compile(t),this._initDOMHooks(),V(this.$el)?(this._callHook("attached"),e.call(this)):this.$once("hook:attached",e),this},t.prototype.$destroy=function(t,e){this._destroy(t,e)},t.prototype.$compile=function(t,e,n,r){return Ie(t,this.$options,!0)(this,t,e,n,r)}}function kn(t){this._init(t)}function Cn(t,e,n){return n=n?parseInt(n,10):0,e=u(e),"number"==typeof e?t.slice(n,n+e):t}function On(t,e,n){if(t=ns(t),null==e)return t;if("function"==typeof e)return t.filter(e);e=(""+e).toLowerCase();for(var r,i,o,s,a="in"===n?3:2,u=Array.prototype.concat.apply([],g(arguments,a)),c=[],f=0,l=t.length;f<l;f++)if(r=t[f],o=r&&r.$value||r,s=u.length){for(;s--;)if(i=u[s],"$key"===i&&An(r.$key,e)||An(Tt(o,i),e)){c.push(r);break}}else An(r,e)&&c.push(r);return c}function En(t){function e(t,e,n){var i=r[n];return i&&("$key"!==i&&(y(t)&&"$value"in t&&(t=t.$value),y(e)&&"$value"in e&&(e=e.$value)),t=y(t)?Tt(t,i):t,e=y(e)?Tt(e,i):e),t===e?0:t>e?o:-o}var n=null,r=void 0;t=ns(t);var i=g(arguments,1),o=i[i.length-1];"number"==typeof o?(o=o<0?-1:1,i=i.length>1?i.slice(0,-1):i):o=1;var s=i[0];return s?("function"==typeof s?n=function(t,e){return s(t,e)*o}:(r=Array.prototype.concat.apply([],i),n=function(t,i,o){return o=o||0,o>=r.length-1?e(t,i,o):e(t,i,o)||n(t,i,o+1)}),t.slice().sort(n)):t}function An(t,e){var n;if(_(t)){var r=Object.keys(t);for(n=r.length;n--;)if(An(t[r[n]],e))return!0}else if(Rn(t)){for(n=t.length;n--;)if(An(t[n],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function $n(t){function e(t){return new Function("return function "+v(t)+" (options) { this._init(options) }")()}t.options={directives:So,elementDirectives:es,filters:is,transitions:{},components:{},partials:{},replace:!0},t.util=Wr,t.config=Ar,t.set=n,t["delete"]=r,t.nextTick=er,t.compiler=Yo,t.FragmentFactory=ae,t.internalDirectives=Wo,t.parsers={path:ii,text:Cr,template:Pi,directive:_r,expression:yi},t.cid=0;var i=1;t.extend=function(t){t=t||{};var n=this,r=0===n.cid;if(r&&t._Ctor)return t._Ctor;var o=t.name||n.options.name,s=e(o||"VueComponent");return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=i++,s.options=yt(n.options,t),s["super"]=n,s.extend=n.extend,Ar._assetTypes.forEach(function(t){s[t]=n[t]}),o&&(s.options.components[o]=s),r&&(t._Ctor=s),s},t.use=function(t){if(!t.installed){var e=g(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},t.mixin=function(e){t.options=yt(t.options,e)},Ar._assetTypes.forEach(function(e){t[e]=function(n,r){return r?("component"===e&&_(r)&&(r.name||(r.name=n),r=t.extend(r)),this.options[e+"s"][n]=r,r):this.options[e+"s"][n]}}),m(t.transition,jr)}var jn=Object.prototype.hasOwnProperty,Nn=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,Tn=/-(\w)/g,Fn=/([a-z\d])([A-Z])/g,Mn=/(?:^|[-_\/])(\w)/g,Pn=Object.prototype.toString,In="[object Object]",Rn=Array.isArray,Ln="__proto__"in{},Dn="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),Vn=Dn&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Wn=Dn&&window.navigator.userAgent.toLowerCase(),Un=Wn&&Wn.indexOf("trident")>0,Bn=Wn&&Wn.indexOf("msie 9.0")>0,zn=Wn&&Wn.indexOf("android")>0,Hn=Wn&&/(iphone|ipad|ipod|ios)/i.test(Wn),Gn=Hn&&Wn.match(/os ([\d_]+)/),Jn=Gn&&Gn[1].split("_"),Kn=Jn&&Number(Jn[0])>=9&&Number(Jn[1])>=3&&!window.indexedDB,qn=void 0,Yn=void 0,Qn=void 0,Xn=void 0;if(Dn&&!Bn){var Zn=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,tr=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;qn=Zn?"WebkitTransition":"transition",Yn=Zn?"webkitTransitionEnd":"transitionend",Qn=tr?"WebkitAnimation":"animation",Xn=tr?"webkitAnimationEnd":"animationend"}var er=function(){function t(){i=!1;var t=r.slice(0);r=[];for(var e=0;e<t.length;e++)t[e]()}var n,r=[],i=!1;if("undefined"==typeof MutationObserver||Kn){var o=Dn?window:"undefined"!=typeof e?e:{};n=o.setImmediate||setTimeout}else{var s=1,a=new MutationObserver(t),u=document.createTextNode(s);a.observe(u,{characterData:!0}),n=function(){s=(s+1)%2,u.data=s}}return function(e,o){var s=o?function(){e.call(o)}:e;r.push(s),i||(i=!0,n(t,0))}}(),nr=void 0;"undefined"!=typeof Set&&Set.toString().match(/native code/)?nr=Set:(nr=function(){this.set=Object.create(null)},nr.prototype.has=function(t){return void 0!==this.set[t]},nr.prototype.add=function(t){this.set[t]=1},nr.prototype.clear=function(){this.set=Object.create(null)});var rr=C.prototype;rr.put=function(t,e){var n,r=this.get(t,!0);return r||(this.size===this.limit&&(n=this.shift()),r={key:t},this._keymap[t]=r,this.tail?(this.tail.newer=r,r.older=this.tail):this.head=r,this.tail=r,this.size++),r.value=e,n},rr.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0,this.size--),t},rr.get=function(t,e){var n=this._keymap[t];if(void 0!==n)return n===this.tail?e?n:n.value:(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=void 0,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n,e?n:n.value)};var ir,or,sr,ar,ur,cr,fr,lr,hr,pr,vr,dr,gr=new C(1e3),mr=/[^\s'"]+|'[^']*'|"[^"]*"/g,yr=/^in$|^-?\d+/,_r=Object.freeze({parseDirective:A}),br=/[-.*+?^${}()|[\]\/\\]/g,wr=void 0,xr=void 0,Sr=void 0,kr=/[^|]\|[^|]/,Cr=Object.freeze({compileRegex:j,parseText:N,tokensToExp:T}),Or=["{{","}}"],Er=["{{{","}}}"],Ar=Object.defineProperties({debug:!1,silent:!1,async:!0,warnExpressionErrors:!0,devtools:!1,_delimitersChanged:!0,_assetTypes:["component","directive","elementDirective","filter","transition","partial"],_propBindingModes:{ONE_WAY:0,TWO_WAY:1,ONE_TIME:2},_maxUpdateCount:100},{delimiters:{get:function(){return Or},set:function(t){Or=t,j()},configurable:!0,enumerable:!0},unsafeDelimiters:{get:function(){return Er},set:function(t){Er=t,j()},configurable:!0,enumerable:!0}}),$r=void 0,jr=Object.freeze({appendWithTransition:P,beforeWithTransition:I,removeWithTransition:R,applyTransition:L}),Nr=/^v-ref:/,Tr=/^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/i,Fr=/^(slot|partial|component)$/i,Mr=Ar.optionMergeStrategies=Object.create(null);Mr.data=function(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,i="function"==typeof t?t.call(n):void 0;return r?pt(r,i):i}:void 0:e?"function"!=typeof e?t:t?function(){return pt(e.call(this),t.call(this))}:e:t},Mr.el=function(t,e,n){if(n||!e||"function"==typeof e){var r=e||t;return n&&"function"==typeof r?r.call(n):r}},Mr.init=Mr.created=Mr.ready=Mr.attached=Mr.detached=Mr.beforeCompile=Mr.compiled=Mr.beforeDestroy=Mr.destroyed=Mr.activate=function(t,e){return e?t?t.concat(e):Rn(e)?e:[e]:t},Ar._assetTypes.forEach(function(t){Mr[t+"s"]=vt}),Mr.watch=Mr.events=function(t,e){if(!e)return t;if(!t)return e;var n={};m(n,t);for(var r in e){var i=n[r],o=e[r];i&&!Rn(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},Mr.props=Mr.methods=Mr.computed=function(t,e){if(!e)return t;if(!t)return e;var n=Object.create(null);return m(n,t),m(n,e),n};var Pr=function(t,e){return void 0===e?t:e},Ir=0;bt.target=null,bt.prototype.addSub=function(t){this.subs.push(t)},bt.prototype.removeSub=function(t){this.subs.$remove(t)},bt.prototype.depend=function(){bt.target.addDep(this)},bt.prototype.notify=function(){for(var t=g(this.subs),e=0,n=t.length;e<n;e++)t[e].update()};var Rr=Array.prototype,Lr=Object.create(Rr);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Rr[t];b(Lr,t,function(){for(var n=arguments.length,r=new Array(n);n--;)r[n]=arguments[n];var i,o=e.apply(this,r),s=this.__ob__;switch(t){case"push":i=r;break;case"unshift":i=r;break;case"splice":i=r.slice(2)}return i&&s.observeArray(i),s.dep.notify(),o})}),b(Rr,"$set",function(t,e){return t>=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),b(Rr,"$remove",function(t){if(this.length){var e=x(this,t);return e>-1?this.splice(e,1):void 0}});var Dr=Object.getOwnPropertyNames(Lr),Vr=!0;xt.prototype.walk=function(t){for(var e=Object.keys(t),n=0,r=e.length;n<r;n++)this.convert(e[n],t[e[n]])},xt.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ct(t[e])},xt.prototype.convert=function(t,e){Ot(this.value,t,e)},xt.prototype.addVm=function(t){(this.vms||(this.vms=[])).push(t)},xt.prototype.removeVm=function(t){this.vms.$remove(t)};var Wr=Object.freeze({defineReactive:Ot,set:n,del:r,hasOwn:i,isLiteral:o,isReserved:s,_toString:a,toNumber:u,toBoolean:c,stripQuotes:f,camelize:l,hyphenate:p,classify:v,bind:d,toArray:g,extend:m,isObject:y,isPlainObject:_,def:b,debounce:w,indexOf:x,cancellable:S,looseEqual:k,isArray:Rn,hasProto:Ln,inBrowser:Dn,devtools:Vn,isIE:Un,isIE9:Bn,isAndroid:zn,isIos:Hn,iosVersionMatch:Gn,iosVersion:Jn,hasMutationObserverBug:Kn,get transitionProp(){return qn},get transitionEndEvent(){return Yn},get animationProp(){return Qn},get animationEndEvent(){return Xn},nextTick:er,get _Set(){return nr},query:D,inDoc:V,getAttr:W,getBindAttr:U,hasBindAttr:B,before:z,after:H,remove:G,prepend:J,replace:K,on:q,off:Y,setClass:X,addClass:Z,removeClass:tt,extractContent:et,trimNode:nt,isTemplate:it,createAnchor:ot,findRef:st,mapNodeRange:at,removeNodeRange:ut,isFragment:ct,getOuterHTML:ft,mergeOptions:yt,resolveAsset:_t,checkComponentAttr:lt,commonTagRE:Tr,reservedTagRE:Fr,get warn(){return $r}}),Ur=0,Br=new C(1e3),zr=0,Hr=1,Gr=2,Jr=3,Kr=0,qr=1,Yr=2,Qr=3,Xr=4,Zr=5,ti=6,ei=7,ni=8,ri=[];ri[Kr]={ws:[Kr],ident:[Qr,zr],"[":[Xr],eof:[ei]},ri[qr]={ws:[qr],".":[Yr],"[":[Xr],eof:[ei]},ri[Yr]={ws:[Yr],ident:[Qr,zr]},ri[Qr]={ident:[Qr,zr],0:[Qr,zr],number:[Qr,zr],ws:[qr,Hr],".":[Yr,Hr],"[":[Xr,Hr],eof:[ei,Hr]},ri[Xr]={"'":[Zr,zr],'"':[ti,zr],"[":[Xr,Gr],"]":[qr,Jr],eof:ni,"else":[Xr,zr]},ri[Zr]={"'":[Xr,zr],eof:ni,"else":[Zr,zr]},ri[ti]={'"':[Xr,zr],eof:ni,"else":[ti,zr]};var ii=Object.freeze({parsePath:Nt,getPath:Tt,setPath:Ft}),oi=new C(1e3),si="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",ai=new RegExp("^("+si.replace(/,/g,"\\b|")+"\\b)"),ui="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,protected,static,interface,private,public",ci=new RegExp("^("+ui.replace(/,/g,"\\b|")+"\\b)"),fi=/\s/g,li=/\n/g,hi=/[\{,]\s*[\w\$_]+\s*:|('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`)|new |typeof |void /g,pi=/"(\d+)"/g,vi=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,di=/[^\w$\.](?:[A-Za-z_$][\w$]*)/g,gi=/^(?:true|false|null|undefined|Infinity|NaN)$/,mi=[],yi=Object.freeze({parseExpression:Wt,isSimplePath:Ut}),_i=[],bi=[],wi={},xi={},Si=!1,ki=0;Jt.prototype.get=function(){this.beforeGet();var t,e=this.scope||this.vm;try{t=this.getter.call(e,e)}catch(n){}return this.deep&&Kt(t),this.preProcess&&(t=this.preProcess(t)),this.filters&&(t=e._applyFilters(t,null,this.filters,!1)),this.postProcess&&(t=this.postProcess(t)),this.afterGet(),t},Jt.prototype.set=function(t){var e=this.scope||this.vm;this.filters&&(t=e._applyFilters(t,this.value,this.filters,!0));try{this.setter.call(e,e,t)}catch(n){}var r=e.$forContext;if(r&&r.alias===this.expression){if(r.filters)return;r._withLock(function(){e.$key?r.rawValue[e.$key]=t:r.rawValue.$set(e.$index,t)})}},Jt.prototype.beforeGet=function(){bt.target=this},Jt.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},Jt.prototype.afterGet=function(){bt.target=null;for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},Jt.prototype.update=function(t){this.lazy?this.dirty=!0:this.sync||!Ar.async?this.run():(this.shallow=this.queued?!!t&&this.shallow:!!t,this.queued=!0,Gt(this))},Jt.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||(y(t)||this.deep)&&!this.shallow){var e=this.value;this.value=t;this.prevError;this.cb.call(this.vm,t,e)}this.queued=this.shallow=!1}},Jt.prototype.evaluate=function(){var t=bt.target;this.value=this.get(),this.dirty=!1,bt.target=t},Jt.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},Jt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||this.vm._watchers.$remove(this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var Ci=new nr,Oi={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(t){this.el[this.attr]=a(t)}},Ei=new C(1e3),Ai=new C(1e3),$i={efault:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};$i.td=$i.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],$i.option=$i.optgroup=[1,'<select multiple="multiple">',"</select>"],$i.thead=$i.tbody=$i.colgroup=$i.caption=$i.tfoot=[1,"<table>","</table>"],$i.g=$i.defs=$i.symbol=$i.use=$i.image=$i.text=$i.circle=$i.ellipse=$i.line=$i.path=$i.polygon=$i.polyline=$i.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var ji=/<([\w:-]+)/,Ni=/&#?\w+?;/,Ti=/<!--/,Fi=function(){if(Dn){var t=document.createElement("div");return t.innerHTML="<template>1</template>",!t.cloneNode(!0).firstChild.innerHTML}return!1}(),Mi=function(){if(Dn){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}return!1}(),Pi=Object.freeze({cloneNode:Xt,parseTemplate:Zt}),Ii={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=ot("v-html"),K(this.el,this.anchor))},update:function(t){t=a(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)G(this.nodes[e]);var n=Zt(t,!0,!0);this.nodes=g(n.childNodes),z(n,this.anchor)}};te.prototype.callHook=function(t){var e,n;for(e=0,n=this.childFrags.length;e<n;e++)this.childFrags[e].callHook(t);for(e=0,n=this.children.length;e<n;e++)t(this.children[e])},te.prototype.beforeRemove=function(){var t,e;for(t=0,e=this.childFrags.length;t<e;t++)this.childFrags[t].beforeRemove(!1);for(t=0,e=this.children.length;t<e;t++)this.children[t].$destroy(!1,!0);var n=this.unlink.dirs;for(t=0,e=n.length;t<e;t++)n[t]._watcher&&n[t]._watcher.teardown()},te.prototype.destroy=function(){this.parentFrag&&this.parentFrag.childFrags.$remove(this),this.node.__v_frag=null,this.unlink()};var Ri=new C(5e3);ae.prototype.create=function(t,e,n){var r=Xt(this.template);return new te(this.linker,this.vm,r,t,e,n)};var Li=700,Di=800,Vi=850,Wi=1100,Ui=1500,Bi=1500,zi=1750,Hi=2100,Gi=2200,Ji=2300,Ki=0,qi={priority:Gi,terminal:!0,params:["track-by","stagger","enter-stagger","leave-stagger"],bind:function(){var t=this.expression.match(/(.*) (?:in|of) (.*)/);if(t){var e=t[1].match(/\((.*),(.*)\)/);e?(this.iterator=e[1].trim(),this.alias=e[2].trim()):this.alias=t[1].trim(),this.expression=t[2]}if(this.alias){this.id="__v-for__"+ ++Ki;var n=this.el.tagName;this.isOption=("OPTION"===n||"OPTGROUP"===n)&&"SELECT"===this.el.parentNode.tagName,this.start=ot("v-for-start"),this.end=ot("v-for-end"),K(this.el,this.end),z(this.start,this.end),this.cache=Object.create(null),this.factory=new ae(this.vm,this.el)}},update:function(t){this.diff(t),this.updateRef(),this.updateModel()},diff:function(t){var e,n,r,o,s,a,u=t[0],c=this.fromObject=y(u)&&i(u,"$key")&&i(u,"$value"),f=this.params.trackBy,l=this.frags,h=this.frags=new Array(t.length),p=this.alias,v=this.iterator,d=this.start,g=this.end,m=V(d),_=!l;for(e=0,n=t.length;e<n;e++)u=t[e],o=c?u.$key:null,s=c?u.$value:u,a=!y(s),r=!_&&this.getCachedFrag(s,e,o),r?(r.reused=!0,r.scope.$index=e,o&&(r.scope.$key=o),v&&(r.scope[v]=null!==o?o:e),(f||c||a)&&wt(function(){r.scope[p]=s})):(r=this.create(s,p,e,o),r.fresh=!_),h[e]=r,_&&r.before(g);if(!_){var b=0,w=l.length-h.length;for(this.vm._vForRemoving=!0,e=0,n=l.length;e<n;e++)r=l[e],r.reused||(this.deleteCachedFrag(r),this.remove(r,b++,w,m));this.vm._vForRemoving=!1,b&&(this.vm._watchers=this.vm._watchers.filter(function(t){return t.active}));var x,S,k,C=0;for(e=0,n=h.length;e<n;e++)r=h[e],x=h[e-1],S=x?x.staggerCb?x.staggerAnchor:x.end||x.node:d,r.reused&&!r.staggerCb?(k=ue(r,d,this.id),k===x||k&&ue(k,d,this.id)===x||this.move(r,S)):this.insert(r,C++,S,m),r.reused=r.fresh=!1}},create:function(t,e,n,r){var i=this._host,o=this._scope||this.vm,s=Object.create(o);s.$refs=Object.create(o.$refs),s.$els=Object.create(o.$els),s.$parent=o,s.$forContext=this,wt(function(){Ot(s,e,t)}),Ot(s,"$index",n),r?Ot(s,"$key",r):s.$key&&b(s,"$key",null),this.iterator&&Ot(s,this.iterator,null!==r?r:n);var a=this.factory.create(i,s,this._frag);return a.forId=this.id,this.cacheFrag(t,a,n,r),a},updateRef:function(){var t=this.descriptor.ref;if(t){var e,n=(this._scope||this.vm).$refs;this.fromObject?(e={},this.frags.forEach(function(t){e[t.scope.$key]=ce(t)})):e=this.frags.map(ce),n[t]=e}},updateModel:function(){if(this.isOption){var t=this.start.parentNode,e=t&&t.__v_model;e&&e.forceUpdate()}},insert:function(t,e,n,r){t.staggerCb&&(t.staggerCb.cancel(),t.staggerCb=null);var i=this.getStagger(t,e,null,"enter");if(r&&i){var o=t.staggerAnchor;o||(o=t.staggerAnchor=ot("stagger-anchor"),o.__v_frag=t),H(o,n);var s=t.staggerCb=S(function(){t.staggerCb=null,t.before(o),G(o)});setTimeout(s,i)}else{var a=n.nextSibling;a||(H(this.end,n),a=this.end),t.before(a)}},remove:function(t,e,n,r){if(t.staggerCb)return t.staggerCb.cancel(),void(t.staggerCb=null);var i=this.getStagger(t,e,n,"leave");if(r&&i){var o=t.staggerCb=S(function(){t.staggerCb=null,t.remove()});setTimeout(o,i)}else t.remove()},move:function(t,e){e.nextSibling||this.end.parentNode.appendChild(this.end),t.before(e.nextSibling,!1)},cacheFrag:function(t,e,n,r){var o,s=this.params.trackBy,a=this.cache,u=!y(t);r||s||u?(o=le(n,r,t,s),a[o]||(a[o]=e)):(o=this.id,i(t,o)?null===t[o]&&(t[o]=e):Object.isExtensible(t)&&b(t,o,e)),e.raw=t},getCachedFrag:function(t,e,n){var r,i=this.params.trackBy,o=!y(t);if(n||i||o){var s=le(e,n,t,i);r=this.cache[s]}else r=t[this.id];return r&&(r.reused||r.fresh),r},deleteCachedFrag:function(t){var e=t.raw,n=this.params.trackBy,r=t.scope,o=r.$index,s=i(r,"$key")&&r.$key,a=!y(e);if(n||s||a){var u=le(o,s,e,n);this.cache[u]=null}else e[this.id]=null,t.raw=null},getStagger:function(t,e,n,r){r+="Stagger";var i=t.node.__v_trans,o=i&&i.hooks,s=o&&(o[r]||o.stagger);return s?s.call(t,e,n):e*parseInt(this.params[r]||this.params.stagger,10)},_preProcess:function(t){return this.rawValue=t,t},_postProcess:function(t){if(Rn(t))return t;if(_(t)){for(var e,n=Object.keys(t),r=n.length,i=new Array(r);r--;)e=n[r],i[r]={$key:e,$value:t[e]};return i}return"number"!=typeof t||isNaN(t)||(t=fe(t)),t||[]},unbind:function(){if(this.descriptor.ref&&((this._scope||this.vm).$refs[this.descriptor.ref]=null),this.frags)for(var t,e=this.frags.length;e--;)t=this.frags[e],this.deleteCachedFrag(t),t.destroy()}},Yi={priority:Hi,terminal:!0,bind:function(){var t=this.el;if(t.__vue__)this.invalid=!0;else{var e=t.nextElementSibling;e&&null!==W(e,"v-else")&&(G(e),this.elseEl=e),this.anchor=ot("v-if"),K(t,this.anchor)}},update:function(t){this.invalid||(t?this.frag||this.insert():this.remove())},insert:function(){this.elseFrag&&(this.elseFrag.remove(),this.elseFrag=null),this.factory||(this.factory=new ae(this.vm,this.el)),this.frag=this.factory.create(this._host,this._scope,this._frag),this.frag.before(this.anchor)},remove:function(){this.frag&&(this.frag.remove(),this.frag=null),this.elseEl&&!this.elseFrag&&(this.elseFactory||(this.elseFactory=new ae(this.elseEl._context||this.vm,this.elseEl)),this.elseFrag=this.elseFactory.create(this._host,this._scope,this._frag),this.elseFrag.before(this.anchor))},unbind:function(){this.frag&&this.frag.destroy(),this.elseFrag&&this.elseFrag.destroy()}},Qi={bind:function(){var t=this.el.nextElementSibling;t&&null!==W(t,"v-else")&&(this.elseEl=t)},update:function(t){this.apply(this.el,t),this.elseEl&&this.apply(this.elseEl,!t)},apply:function(t,e){function n(){t.style.display=e?"":"none"}V(t)?L(t,e?1:-1,n,this.vm):n()}},Xi={bind:function(){var t=this,e=this.el,n="range"===e.type,r=this.params.lazy,i=this.params.number,o=this.params.debounce,s=!1;if(zn||n||(this.on("compositionstart",function(){s=!0}),this.on("compositionend",function(){s=!1,r||t.listener()})),this.focused=!1,n||r||(this.on("focus",function(){t.focused=!0}),this.on("blur",function(){t.focused=!1,t._frag&&!t._frag.inserted||t.rawListener()})),this.listener=this.rawListener=function(){if(!s&&t._bound){var r=i||n?u(e.value):e.value;t.set(r),er(function(){t._bound&&!t.focused&&t.update(t._watcher.value)})}},o&&(this.listener=w(this.listener,o)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery){var a=jQuery.fn.on?"on":"bind";jQuery(e)[a]("change",this.rawListener),r||jQuery(e)[a]("input",this.listener)}else this.on("change",this.rawListener),r||this.on("input",this.listener);!r&&Bn&&(this.on("cut",function(){er(t.listener)}),this.on("keyup",function(e){46!==e.keyCode&&8!==e.keyCode||t.listener()})),(e.hasAttribute("value")||"TEXTAREA"===e.tagName&&e.value.trim())&&(this.afterBind=this.listener)},update:function(t){t=a(t),t!==this.el.value&&(this.el.value=t)},unbind:function(){var t=this.el;if(this.hasjQuery){var e=jQuery.fn.off?"off":"unbind";jQuery(t)[e]("change",this.listener),jQuery(t)[e]("input",this.listener)}}},Zi={bind:function(){var t=this,e=this.el;this.getValue=function(){if(e.hasOwnProperty("_value"))return e._value;var n=e.value;return t.params.number&&(n=u(n)),n},this.listener=function(){t.set(t.getValue())},this.on("change",this.listener),e.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){this.el.checked=k(t,this.getValue())}},to={bind:function(){var t=this,e=this,n=this.el;this.forceUpdate=function(){e._watcher&&e.update(e._watcher.get())};var r=this.multiple=n.hasAttribute("multiple");this.listener=function(){var t=he(n,r);t=e.params.number?Rn(t)?t.map(u):u(t):t,e.set(t)},this.on("change",this.listener);var i=he(n,r,!0);(r&&i.length||!r&&null!==i)&&(this.afterBind=this.listener),this.vm.$on("hook:attached",function(){er(t.forceUpdate)}),V(n)||er(this.forceUpdate)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var n,r,i=this.multiple&&Rn(t),o=e.options,s=o.length;s--;)n=o[s],r=n.hasOwnProperty("_value")?n._value:n.value,n.selected=i?pe(t,r)>-1:k(t,r)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate)}},eo={bind:function(){function t(){var t=n.checked;return t&&n.hasOwnProperty("_trueValue")?n._trueValue:!t&&n.hasOwnProperty("_falseValue")?n._falseValue:t}var e=this,n=this.el;this.getValue=function(){return n.hasOwnProperty("_value")?n._value:e.params.number?u(n.value):n.value},this.listener=function(){var r=e._watcher.value;if(Rn(r)){var i=e.getValue();n.checked?x(r,i)<0&&r.push(i):r.$remove(i)}else e.set(t())},this.on("change",this.listener),n.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){var e=this.el;Rn(t)?e.checked=x(t,this.getValue())>-1:e.hasOwnProperty("_trueValue")?e.checked=k(t,e._trueValue):e.checked=!!t}},no={text:Xi,radio:Zi,select:to,checkbox:eo},ro={priority:Di,twoWay:!0,handlers:no,params:["lazy","number","debounce"],bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite;var t,e=this.el,n=e.tagName;if("INPUT"===n)t=no[e.type]||no.text;else if("SELECT"===n)t=no.select;else{if("TEXTAREA"!==n)return;t=no.text}e.__v_model=this,t.bind.call(this),this.update=t.update,this._unbind=t.unbind},checkFilters:function(){var t=this.filters;if(t)for(var e=t.length;e--;){var n=_t(this.vm.$options,"filters",t[e].name);("function"==typeof n||n.read)&&(this.hasRead=!0),n.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}},io={esc:27,tab:9,enter:13,space:32,"delete":[8,46],up:38,left:37,right:39,down:40},oo={priority:Li,acceptStatement:!0,keyCodes:io,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){q(t.el.contentWindow,t.arg,t.handler,t.modifiers.capture)},this.on("load",this.iframeBind)}},update:function(t){if(this.descriptor.raw||(t=function(){}),"function"==typeof t){this.modifiers.stop&&(t=de(t)),this.modifiers.prevent&&(t=ge(t)),this.modifiers.self&&(t=me(t));var e=Object.keys(this.modifiers).filter(function(t){return"stop"!==t&&"prevent"!==t&&"self"!==t&&"capture"!==t});e.length&&(t=ve(t,e)),this.reset(),this.handler=t,this.iframeBind?this.iframeBind():q(this.el,this.arg,this.handler,this.modifiers.capture)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&Y(t,this.arg,this.handler)},unbind:function(){this.reset()}},so=["-webkit-","-moz-","-ms-"],ao=["Webkit","Moz","ms"],uo=/!important;?$/,co=Object.create(null),fo=null,lo={deep:!0,update:function(t){"string"==typeof t?this.el.style.cssText=t:Rn(t)?this.handleObject(t.reduce(m,{})):this.handleObject(t||{})},handleObject:function(t){var e,n,r=this.cache||(this.cache={});for(e in r)e in t||(this.handleSingle(e,null),delete r[e]);for(e in t)n=t[e],n!==r[e]&&(r[e]=n,this.handleSingle(e,n))},handleSingle:function(t,e){if(t=ye(t))if(null!=e&&(e+=""),e){var n=uo.test(e)?"important":"";n?(e=e.replace(uo,"").trim(),this.el.style.setProperty(t.kebab,e,n)):this.el.style[t.camel]=e}else this.el.style[t.camel]=""}},ho="http://www.w3.org/1999/xlink",po=/^xlink:/,vo=/^v-|^:|^@|^(?:is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/,go=/^(?:value|checked|selected|muted)$/,mo=/^(?:draggable|contenteditable|spellcheck)$/,yo={value:"_value","true-value":"_trueValue","false-value":"_falseValue"},_o={priority:Vi,bind:function(){var t=this.arg,e=this.el.tagName;t||(this.deep=!0);var n=this.descriptor,r=n.interp;if(r){n.hasOneTime&&(this.expression=T(r,this._scope||this.vm)),(vo.test(t)||"name"===t&&("PARTIAL"===e||"SLOT"===e))&&(this.el.removeAttribute(t),this.invalid=!0)}},update:function(t){if(!this.invalid){var e=this.arg;this.arg?this.handleSingle(e,t):this.handleObject(t||{})}},handleObject:lo.handleObject,handleSingle:function(t,e){var n=this.el,r=this.descriptor.interp;
if(this.modifiers.camel&&(t=l(t)),!r&&go.test(t)&&t in n){var i="value"===t&&null==e?"":e;n[t]!==i&&(n[t]=i)}var o=yo[t];if(!r&&o){n[o]=e;var s=n.__v_model;s&&s.listener()}return"value"===t&&"TEXTAREA"===n.tagName?void n.removeAttribute(t):void(mo.test(t)?n.setAttribute(t,e?"true":"false"):null!=e&&e!==!1?"class"===t?(n.__v_trans&&(e+=" "+n.__v_trans.id+"-transition"),X(n,e)):po.test(t)?n.setAttributeNS(ho,t,e===!0?"":e):n.setAttribute(t,e===!0?"":e):n.removeAttribute(t))}},bo={priority:Ui,bind:function(){if(this.arg){var t=this.id=l(this.arg),e=(this._scope||this.vm).$els;i(e,t)?e[t]=this.el:Ot(e,t,this.el)}},unbind:function(){var t=(this._scope||this.vm).$els;t[this.id]===this.el&&(t[this.id]=null)}},wo={bind:function(){}},xo={bind:function(){var t=this.el;this.vm.$once("pre-hook:compiled",function(){t.removeAttribute("v-cloak")})}},So={text:Oi,html:Ii,"for":qi,"if":Yi,show:Qi,model:ro,on:oo,bind:_o,el:bo,ref:wo,cloak:xo},ko={deep:!0,update:function(t){t?"string"==typeof t?this.setClass(t.trim().split(/\s+/)):this.setClass(be(t)):this.cleanup()},setClass:function(t){this.cleanup(t);for(var e=0,n=t.length;e<n;e++){var r=t[e];r&&we(this.el,r,Z)}this.prevKeys=t},cleanup:function(t){var e=this.prevKeys;if(e)for(var n=e.length;n--;){var r=e[n];(!t||t.indexOf(r)<0)&&we(this.el,r,tt)}}},Co={priority:Bi,params:["keep-alive","transition-mode","inline-template"],bind:function(){this.el.__vue__||(this.keepAlive=this.params.keepAlive,this.keepAlive&&(this.cache={}),this.params.inlineTemplate&&(this.inlineTemplate=et(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this.anchor=ot("v-component"),K(this.el,this.anchor),this.el.removeAttribute("is"),this.el.removeAttribute(":is"),this.descriptor.ref&&this.el.removeAttribute("v-ref:"+p(this.descriptor.ref)),this.literal&&this.setComponent(this.expression))},update:function(t){this.literal||this.setComponent(t)},setComponent:function(t,e){if(this.invalidatePending(),t){var n=this;this.resolveComponent(t,function(){n.mountComponent(e)})}else this.unbuild(!0),this.remove(this.childVM,e),this.childVM=null},resolveComponent:function(t,e){var n=this;this.pendingComponentCb=S(function(r){n.ComponentName=r.options.name||("string"==typeof t?t:null),n.Component=r,e()}),this.vm._resolveComponent(t,this.pendingComponentCb)},mountComponent:function(t){this.unbuild(!0);var e=this,n=this.Component.options.activate,r=this.getCached(),i=this.build();n&&!r?(this.waitingFor=i,xe(n,i,function(){e.waitingFor===i&&(e.waitingFor=null,e.transition(i,t))})):(r&&i._updateRef(),this.transition(i,t))},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),this.pendingComponentCb=null)},build:function(t){var e=this.getCached();if(e)return e;if(this.Component){var n={name:this.ComponentName,el:Xt(this.el),template:this.inlineTemplate,parent:this._host||this.vm,_linkerCachable:!this.inlineTemplate,_ref:this.descriptor.ref,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm,_scope:this._scope,_frag:this._frag};t&&m(n,t);var r=new this.Component(n);return this.keepAlive&&(this.cache[this.Component.cid]=r),r}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(t){this.waitingFor&&(this.keepAlive||this.waitingFor.$destroy(),this.waitingFor=null);var e=this.childVM;return!e||this.keepAlive?void(e&&(e._inactive=!0,e._updateRef(!0))):void e.$destroy(!1,t)},remove:function(t,e){var n=this.keepAlive;if(t){this.pendingRemovals++,this.pendingRemovalCb=e;var r=this;t.$remove(function(){r.pendingRemovals--,n||t._cleanup(),!r.pendingRemovals&&r.pendingRemovalCb&&(r.pendingRemovalCb(),r.pendingRemovalCb=null)})}else e&&e()},transition:function(t,e){var n=this,r=this.childVM;switch(r&&(r._inactive=!0),t._inactive=!1,this.childVM=t,n.params.transitionMode){case"in-out":t.$before(n.anchor,function(){n.remove(r,e)});break;case"out-in":n.remove(r,function(){t.$before(n.anchor,e)});break;default:n.remove(r),t.$before(n.anchor,e)}},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}},Oo=Ar._propBindingModes,Eo={},Ao=/^[$_a-zA-Z]+[\w$]*$/,$o=Ar._propBindingModes,jo={bind:function(){var t=this.vm,e=t._context,n=this.descriptor.prop,r=n.path,i=n.parentPath,o=n.mode===$o.TWO_WAY,s=this.parentWatcher=new Jt(e,i,function(e){Ee(t,n,e)},{twoWay:o,filters:n.filters,scope:this._scope});if(Oe(t,n,s.value),o){var a=this;t.$once("pre-hook:created",function(){a.childWatcher=new Jt(t,r,function(t){s.set(t)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}},No=[],To=!1,Fo="transition",Mo="animation",Po=qn+"Duration",Io=Qn+"Duration",Ro=Dn&&window.requestAnimationFrame,Lo=Ro?function(t){Ro(function(){Ro(t)})}:function(t){setTimeout(t,50)},Do=Me.prototype;Do.enter=function(t,e){this.cancelPending(),this.callHook("beforeEnter"),this.cb=e,Z(this.el,this.enterClass),t(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,Te(this.enterNextTick))},Do.enterNextTick=function(){var t=this;this.justEntered=!0,Lo(function(){t.justEntered=!1});var e=this.enterDone,n=this.getCssTransitionType(this.enterClass);this.pendingJsCb?n===Fo&&tt(this.el,this.enterClass):n===Fo?(tt(this.el,this.enterClass),this.setupCssCb(Yn,e)):n===Mo?this.setupCssCb(Xn,e):e()},Do.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,tt(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},Do.leave=function(t,e){this.cancelPending(),this.callHook("beforeLeave"),this.op=t,this.cb=e,Z(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():Te(this.leaveNextTick)))},Do.leaveNextTick=function(){var t=this.getCssTransitionType(this.leaveClass);if(t){var e=t===Fo?Yn:Xn;this.setupCssCb(e,this.leaveDone)}else this.leaveDone()},Do.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),tt(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},Do.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,Y(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(tt(this.el,this.enterClass),tt(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},Do.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},Do.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=S(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},Do.getCssTransitionType=function(t){if(!(!Yn||document.hidden||this.hooks&&this.hooks.css===!1||Pe(this.el))){var e=this.type||this.typeCache[t];if(e)return e;var n=this.el.style,r=window.getComputedStyle(this.el),i=n[Po]||r[Po];if(i&&"0s"!==i)e=Fo;else{var o=n[Io]||r[Io];o&&"0s"!==o&&(e=Mo)}return e&&(this.typeCache[t]=e),e}},Do.setupCssCb=function(t,e){this.pendingCssEvent=t;var n=this,r=this.el,i=this.pendingCssCb=function(o){o.target===r&&(Y(r,t,i),n.pendingCssEvent=n.pendingCssCb=null,!n.pendingJsCb&&e&&e())};q(r,t,i)};var Vo={priority:Wi,update:function(t,e){var n=this.el,r=_t(this.vm.$options,"transitions",t);t=t||"v",e=e||"v",n.__v_trans=new Me(n,t,r,this.vm),tt(n,e+"-transition"),Z(n,t+"-transition")}},Wo={style:lo,"class":ko,component:Co,prop:jo,transition:Vo},Uo=/^v-bind:|^:/,Bo=/^v-on:|^@/,zo=/^v-([^:]+)(?:$|:(.*)$)/,Ho=/\.[^\.]+/g,Go=/^(v-bind:|:)?transition$/,Jo=1e3,Ko=2e3;tn.terminal=!0;var qo=/[^\w\-:\.]/,Yo=Object.freeze({compile:Ie,compileAndLinkProps:We,compileRoot:Ue,transclude:un,resolveSlots:hn}),Qo=/^v-on:|^@/;mn.prototype._bind=function(){var t=this.name,e=this.descriptor;if(("cloak"!==t||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var n=e.attr||"v-"+t;this.el.removeAttribute(n)}var r=e.def;if("function"==typeof r?this.update=r:m(this,r),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(e.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var i=this;this.update?this._update=function(t,e){i._locked||i.update(t,e)}:this._update=gn;var o=this._preProcess?d(this._preProcess,this):null,s=this._postProcess?d(this._postProcess,this):null,a=this._watcher=new Jt(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:o,postProcess:s,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(a.value)}},mn.prototype._setupParams=function(){if(this.params){var t=this.params;this.params=Object.create(null);for(var e,n,r,i=t.length;i--;)e=p(t[i]),r=l(e),n=U(this.el,e),null!=n?this._setupParamWatcher(r,n):(n=W(this.el,e),null!=n&&(this.params[r]=""===n||n))}},mn.prototype._setupParamWatcher=function(t,e){var n=this,r=!1,i=(this._scope||this.vm).$watch(e,function(e,i){if(n.params[t]=e,r){var o=n.paramWatchers&&n.paramWatchers[t];o&&o.call(n,e,i)}else r=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(i)},mn.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!Ut(t)){var e=Wt(t).get,n=this._scope||this.vm,r=function(t){n.$event=t,e.call(n,n),n.$event=null};return this.filters&&(r=n._applyFilters(r,null,this.filters)),this.update(r),!0}},mn.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},mn.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),er(function(){e._locked=!1})},mn.prototype.on=function(t,e,n){q(this.el,t,e,n),(this._listeners||(this._listeners=[])).push([t,e])},mn.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t,e=this._listeners;if(e)for(t=e.length;t--;)Y(this.el,e[t][0],e[t][1]);var n=this._paramUnwatchFns;if(n)for(t=n.length;t--;)n[t]();this.vm=this.el=this._watcher=this._listeners=null}};var Xo=/[^|]\|[^|]/;Et(kn),vn(kn),dn(kn),yn(kn),_n(kn),bn(kn),wn(kn),xn(kn),Sn(kn);var Zo={priority:Ji,params:["name"],bind:function(){var t=this.params.name||"default",e=this.vm._slotContents&&this.vm._slotContents[t];e&&e.hasChildNodes()?this.compile(e.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(t,e,n){if(t&&e){if(this.el.hasChildNodes()&&1===t.childNodes.length&&1===t.childNodes[0].nodeType&&t.childNodes[0].hasAttribute("v-if")){var r=document.createElement("template");r.setAttribute("v-else",""),r.innerHTML=this.el.innerHTML,r._context=this.vm,t.appendChild(r)}var i=n?n._scope:this._scope;this.unlink=e.$compile(t,n,i,this._frag)}t?K(this.el,t):G(this.el)},fallback:function(){this.compile(et(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},ts={priority:zi,params:["name"],paramWatchers:{name:function(t){Yi.remove.call(this),t&&this.insert(t)}},bind:function(){this.anchor=ot("v-partial"),K(this.el,this.anchor),this.insert(this.params.name)},insert:function(t){var e=_t(this.vm.$options,"partials",t,!0);e&&(this.factory=new ae(this.vm,e),Yi.insert.call(this))},unbind:function(){this.frag&&this.frag.destroy()}},es={slot:Zo,partial:ts},ns=qi._postProcess,rs=/(\d{3})(?=\d)/g,is={orderBy:En,filterBy:On,limitBy:Cn,json:{read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,arguments.length>1?e:2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},capitalize:function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},uppercase:function(t){return t||0===t?t.toString().toUpperCase():""},lowercase:function(t){return t||0===t?t.toString().toLowerCase():""},currency:function(t,e,n){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=null!=e?e:"$",n=null!=n?n:2;var r=Math.abs(t).toFixed(n),i=n?r.slice(0,-1-n):r,o=i.length%3,s=o>0?i.slice(0,o)+(i.length>3?",":""):"",a=n?r.slice(-1-n):"",u=t<0?"-":"";return u+e+s+i.slice(o).replace(rs,"$1,")+a},pluralize:function(t){var e=g(arguments,1),n=e.length;if(n>1){var r=t%10-1;return r in e?e[r]:e[n-1]}return e[0]+(1===t?"":"s")},debounce:function(t,e){if(t)return e||(e=300),w(t,e)}};$n(kn),kn.version="1.0.26",setTimeout(function(){Ar.devtools&&Vn&&Vn.emit("init",kn)},0),t.exports=kn}).call(e,function(){return this}())},function(t,e,n){/*!
* Vuex v0.8.2
* (c) 2016 Evan You
* Released under the MIT License.
*/
!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t){return t.reduce(function(t,e){return Object.keys(e).forEach(function(n){var r=t[n];r?Array.isArray(r)?r.push(e[n]):t[n]=[t[n],e[n]]:t[n]=e[n]}),t},{})}function e(t){if(Array.isArray(t))return t.map(e);if(t&&"object"===("undefined"==typeof t?"undefined":s(t))){for(var n={},r=Object.keys(t),i=0,o=r.length;i<o;i++){var a=r[i];n[a]=e(t[a])}return n}return t}function n(t){if(!f){var e=function(){},n=t.$watch(e,e);f=t._watchers[0].constructor,n()}return f}function r(t){return l||(l=t._data.__ob__.dep.constructor),l}function i(t){function e(){var t=this.$options,e=t.store,n=t.vuex;if(e?this.$store=e:t.parent&&t.parent.$store&&(this.$store=t.parent.$store),n){this.$store||console.warn("[vuex] store not injected. make sure to provide the store option in your root component.");var r=n.state,i=n.actions,s=n.getters;if(r&&!s&&(console.warn("[vuex] vuex.state option will been deprecated in 1.0. Use vuex.getters instead."),s=r),s){t.computed=t.computed||{};for(var u in s)o(this,u,s[u])}if(i){t.methods=t.methods||{};for(var c in i)t.methods[c]=a(this.$store,i[c],c)}}}function i(){throw new Error("vuex getter properties are read-only.")}function o(t,e,n){"function"!=typeof n?console.warn("[vuex] Getter bound to key 'vuex.getters."+e+"' is not a function."):Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:s(t.$store,n),set:i})}function s(t,e){var i=t._getterCacheId;if(e[i])return e[i];var o=t._vm,s=n(o),a=r(o),u=new s(o,function(t){return e(t.state)},null,{lazy:!0}),c=function(){return u.dirty&&u.evaluate(),a.target&&u.depend(),u.value};return e[i]=c,c}function a(t,e,n){return"function"!=typeof e&&console.warn("[vuex] Action bound to key 'vuex.actions."+n+"' is not a function."),function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.call.apply(e,[this,t].concat(r))}}var u=Number(t.version.split(".")[0]);if(u>=2){var c=t.config._lifecycleHooks.indexOf("init")>-1;t.mixin(c?{init:e}:{beforeCreate:e})}else!function(){var n=t.prototype._init;t.prototype._init=function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];t.init=t.init?[e].concat(t.init):e,n.call(this,t)}}();var f=t.config.optionMergeStrategies.computed;t.config.optionMergeStrategies.vuex=function(t,e){return t?e?{getters:f(t.getters,e.getters),state:f(t.state,e.state),actions:f(t.actions,e.actions)}:t:e}}function o(t){return v?void console.warn("[vuex] already installed. Vue.use(Vuex) should be called only once."):(v=t,void i(v))}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},a=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)},f=void 0,l=void 0,h="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,p={onInit:function(t,e){h&&(h.emit("vuex:init",e),h.on("vuex:travel-to-state",function(t){e._dispatching=!0,e._vm.state=t,e._dispatching=!1}))},onMutation:function(t,e){h&&h.emit("vuex:mutation",t,e)}},v=void 0,d=0,g=function(){function r(){var t=this,e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=e.state,i=void 0===n?{}:n,o=e.mutations,s=void 0===o?{}:o,u=e.modules,c=void 0===u?{}:u,f=e.middlewares,l=void 0===f?[]:f,h=e.strict,p=void 0!==h&&h;a(this,r),this._getterCacheId="vuex_store_"+d++,this._dispatching=!1,this._rootMutations=this._mutations=s,this._modules=c;var g=this.dispatch;if(this.dispatch=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];g.apply(t,n)},!v)throw new Error("[vuex] must call Vue.use(Vuex) before creating a store instance.");var m=v.config.silent;v.config.silent=!0,this._vm=new v({data:{state:i}}),v.config.silent=m,this._setupModuleState(i,c),this._setupModuleMutations(c),this._setupMiddlewares(l,i),p&&this._setupMutationCheck()}return u(r,[{key:"dispatch",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=!1;"object"===("undefined"==typeof t?"undefined":s(t))&&t.type&&1===arguments.length&&(n=[t.payload],t.silent&&(i=!0),t=t.type);var o=this._mutations[t],a=this.state;o?(this._dispatching=!0,Array.isArray(o)?o.forEach(function(t){return t.apply(void 0,[a].concat(c(n)))}):o.apply(void 0,[a].concat(c(n))),this._dispatching=!1,i||this._applyMiddlewares(t,n)):console.warn("[vuex] Unknown mutation: "+t)}},{key:"watch",value:function(t,e,n){var r=this;return"function"!=typeof t?void console.error("Vuex store.watch only accepts function."):this._vm.$watch(function(){return t(r.state)},e,n)}},{key:"hotUpdate",value:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.mutations,n=t.modules;this._rootMutations=this._mutations=e||this._rootMutations,this._setupModuleMutations(n||this._modules)}},{key:"_setupModuleState",value:function(t,e){Object.keys(e).forEach(function(n){v.set(t,n,e[n].state||{})})}},{key:"_setupModuleMutations",value:function(e){var n=this._modules,r=[this._rootMutations];Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(n).forEach(function(t){var e=n[t];if(e&&e.mutations){var i={};Object.keys(e.mutations).forEach(function(n){var r=e.mutations[n];i[n]=function(e){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r.apply(void 0,[e[t]].concat(i))}}),r.push(i)}}),this._mutations=t(r)}},{key:"_setupMutationCheck",value:function(){var t=this,e=n(this._vm);new e(this._vm,"state",function(){if(!t._dispatching)throw new Error("[vuex] Do not mutate vuex store state outside mutation handlers.")},{deep:!0,sync:!0})}},{key:"_setupMiddlewares",value:function(t,n){var r=this;this._middlewares=[p].concat(t),this._needSnapshots=t.some(function(t){return t.snapshot}),this._needSnapshots&&console.log("[vuex] One or more of your middlewares are taking state snapshots for each mutation. Make sure to use them only during development.");var i=this._prevSnapshot=this._needSnapshots?e(n):null;this._middlewares.forEach(function(t){t.onInit&&t.onInit(t.snapshot?i:n,r)})}},{key:"_applyMiddlewares",value:function(t,n){var r=this,i=this.state,o=this._prevSnapshot,s=void 0,a=void 0;this._needSnapshots&&(s=this._prevSnapshot=e(i),a=e(n)),this._middlewares.forEach(function(e){e.onMutation&&(e.snapshot?e.onMutation({type:t,payload:a},s,o,r):e.onMutation({type:t,payload:n},i,r))})}},{key:"state",get:function(){return this._vm.state},set:function(t){throw new Error("[vuex] Vuex root state is read only.")}}]),r}();"undefined"!=typeof window&&window.Vue&&o(window.Vue);var m={Store:g,install:o};return m})},function(t,e,n){var r,i;n(301),r=n(305),i=n(327),t.exports=r||{},t.exports.__esModule&&(t.exports=t.exports["default"]),i&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=i)},function(t,e,n){var r=n(302);"string"==typeof r&&(r=[[t.id,r,""]]);n(304)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(303)(),e.push([t.id,"#app[_v-6f58f7a2]{margin:20px auto;width:800px;height:600px;overflow:hidden;border-radius:3px}#app .main[_v-6f58f7a2],#app .sidebar[_v-6f58f7a2]{height:100%}#app .sidebar[_v-6f58f7a2]{float:left;width:200px;color:#f4f4f4;background-color:#2e3238}#app .main[_v-6f58f7a2]{position:relative;overflow:hidden;background-color:#eee}#app .text[_v-6f58f7a2]{position:absolute;width:100%;bottom:0;left:0}#app .message[_v-6f58f7a2]{height:calc(100% - 160px)}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=l[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(u(r.parts[o],e))}else{for(var s=[],o=0;o<r.parts.length;o++)s.push(u(r.parts[o],e));l[r.id]={id:r.id,refs:1,parts:s}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],s=i[1],a=i[2],u=i[3],c={css:s,media:a,sourceMap:u};n[o]?n[o].parts.push(c):e.push(n[o]={id:o,parts:[c]})}return e}function o(t,e){var n=v(),r=m[m.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),m.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function s(t){t.parentNode.removeChild(t);var e=m.indexOf(t);e>=0&&m.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function u(t,e){var n,r,i;if(e.singleton){var o=g++;n=d||(d=a(e)),r=c.bind(null,n,o,!1),i=c.bind(null,n,o,!0)}else n=a(e),r=f.bind(null,n),i=function(){s(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function c(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function f(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var l={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},p=h(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),d=null,g=0,m=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=p()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],s=0;s<n.length;s++){var a=n[s],u=l[a.id];u.refs--,o.push(u)}if(t){var c=i(t);r(c,e)}for(var s=0;s<o.length;s++){var u=o[s];if(0===u.refs){for(var f=0;f<u.parts.length;f++)u.parts[f]();delete l[u.id]}}}};var y=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(306),o=r(i),s=n(312),a=r(s),u=n(317),c=r(u),f=n(322),l=r(f);e["default"]={components:{Card:o["default"],List:a["default"],Text:c["default"],Message:l["default"]}}},function(t,e,n){var r,i;n(307),r=n(309),i=n(311),t.exports=r||{},t.exports.__esModule&&(t.exports=t.exports["default"]),i&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=i)},function(t,e,n){var r=n(308);"string"==typeof r&&(r=[[t.id,r,""]]);n(304)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(303)(),e.push([t.id,".card[_v-7021c5b7]{padding:12px;border-bottom:1px solid #24272c}.card footer[_v-7021c5b7]{margin-top:10px}.card .avatar[_v-7021c5b7],.card .name[_v-7021c5b7]{vertical-align:middle}.card .avatar[_v-7021c5b7]{border-radius:2px}.card .name[_v-7021c5b7]{display:inline-block;margin:0 0 0 15px;font-size:16px}.card .search[_v-7021c5b7]{padding:0 10px;width:100%;font-size:12px;color:#fff;height:30px;line-height:30px;border:1px solid #3a3a3a;border-radius:4px;outline:none;background-color:#26292e}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(310);e["default"]={vuex:{actions:r.actions,getters:{user:function(t){var e=t.user;return e},filterKey:function(t){var e=t.filterKey;return e}}},methods:{onKeyup:function(t){this.search(t.target.value)}}}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=new Date;e["default"]={state:{user:{name:"coffce",img:"dist/images/1.jpg"},sessions:[{id:1,user:{name:"示例介绍",img:"dist/images/2.png"},messages:[{content:"Hello,这是一个基于Vue + Vuex + Webpack构建的简单chat示例,聊天记录保存在localStorge, 有什么问题可以通过Github Issue问我。",date:n},{content:"项目地址: https://github.com/coffcer/vue-chat",date:n}]},{id:2,user:{name:"webpack",img:"dist/images/3.jpg"},messages:[]}],currentSessionId:1,filterKey:""},mutations:{SEND_MESSAGE:function(t,e){var n=t.sessions,r=t.currentSessionId,i=n.find(function(t){return t.id===r});i.messages.push({content:e,date:new Date,self:!0})},SELECT_SESSION:function(t,e){t.currentSessionId=e},SET_FILTER_KEY:function(t,e){t.filterKey=e}}};e.actions={sendMessage:function(t,e){var n=t.dispatch;return n("SEND_MESSAGE",e)},selectSession:function(t,e){var n=t.dispatch;return n("SELECT_SESSION",e)},search:function(t,e){var n=t.dispatch;return n("SET_FILTER_KEY",e)}}},function(t,e){t.exports=' <div class=card _v-7021c5b7=""> <header _v-7021c5b7=""> <img class=avatar width=40 height=40 :alt=user.name :src=user.img _v-7021c5b7=""> <p class=name _v-7021c5b7="">{{user.name}}</p> </header> <footer _v-7021c5b7=""> <input class=search type=text placeholder="search user..." @keyup="onKeyup | debounce 150" _v-7021c5b7=""> </footer> </div> '},function(t,e,n){var r,i;n(313),r=n(315),i=n(316),t.exports=r||{},t.exports.__esModule&&(t.exports=t.exports["default"]),i&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=i)},function(t,e,n){var r=n(314);"string"==typeof r&&(r=[[t.id,r,""]]);n(304)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(303)(),e.push([t.id,".list li[_v-7e56f776]{padding:12px 15px;border-bottom:1px solid #292c33;cursor:pointer;-webkit-transition:background-color .1s;transition:background-color .1s}.list li[_v-7e56f776]:hover{background-color:hsla(0,0%,100%,.03)}.list li.active[_v-7e56f776]{background-color:hsla(0,0%,100%,.1)}.list .avatar[_v-7e56f776],.list .name[_v-7e56f776]{vertical-align:middle}.list .avatar[_v-7e56f776]{border-radius:2px}.list .name[_v-7e56f776]{display:inline-block;margin:0 0 0 15px}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(310);e["default"]={vuex:{actions:r.actions,getters:{sessions:function(t){var e=t.sessions,n=t.filterKey,r=e.filter(function(t){return t.user.name.includes(n)});return r},currentId:function(t){var e=t.currentSessionId;return e}}}}},function(t,e){t.exports=' <div class=list _v-7e56f776=""> <ul _v-7e56f776=""> <li v-for="item in sessions" :class="{ active: item.id === currentId }" @click=selectSession(item.id) _v-7e56f776=""> <img class=avatar width=30 height=30 :alt=item.user.name :src=item.user.img _v-7e56f776=""> <p class=name _v-7e56f776="">{{item.user.name}}</p> </li> </ul> </div> '},function(t,e,n){var r,i;n(318),r=n(320),i=n(321),t.exports=r||{},t.exports.__esModule&&(t.exports=t.exports["default"]),i&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=i)},function(t,e,n){var r=n(319);"string"==typeof r&&(r=[[t.id,r,""]]);n(304)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(303)(),e.push([t.id,".text[_v-34cd3954]{height:160px;border-top:1px solid #ddd}.text textarea[_v-34cd3954]{padding:10px;height:100%;width:100%;border:none;outline:none;font-family:Micrsofot Yahei;resize:none}",""])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(310);e["default"]={vuex:{actions:r.actions},data:function(){return{content:""}},methods:{onKeyup:function(t){t.ctrlKey&&13===t.keyCode&&this.content.length&&(this.sendMessage(this.content),this.content="")}}}},function(t,e){t.exports=' <div class=text _v-34cd3954=""> <textarea placeholder="按 Ctrl + Enter 发送" v-model=content @keyup=onKeyup _v-34cd3954=""></textarea> </div> '},function(t,e,n){var r,i;n(323),r=n(325),i=n(326),t.exports=r||{},t.exports.__esModule&&(t.exports=t.exports["default"]),i&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=i)},function(t,e,n){var r=n(324);"string"==typeof r&&(r=[[t.id,r,""]]);n(304)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(303)(),e.push([t.id,'.message[_v-b412eea0]{padding:10px 15px;overflow-y:scroll}.message li[_v-b412eea0]{margin-bottom:15px}.message .time[_v-b412eea0]{margin:7px 0;text-align:center}.message .time>span[_v-b412eea0]{display:inline-block;padding:0 18px;font-size:12px;color:#fff;border-radius:2px;background-color:#dcdcdc}.message .avatar[_v-b412eea0]{float:left;margin:0 10px 0 0;border-radius:3px}.message .text[_v-b412eea0]{display:inline-block;position:relative;padding:0 10px;max-width:calc(100% - 40px);min-height:30px;line-height:2.5;font-size:12px;text-align:left;word-break:break-all;background-color:#fafafa;border-radius:4px}.message .text[_v-b412eea0]:before{content:" ";position:absolute;top:9px;right:100%;border:6px solid transparent;border-right-color:#fafafa}.message .self[_v-b412eea0]{text-align:right}.message .self .avatar[_v-b412eea0]{float:right;margin:0 0 0 10px}.message .self .text[_v-b412eea0]{background-color:#b2e281}.message .self .text[_v-b412eea0]:before{right:inherit;left:100%;border-right-color:transparent;border-left-color:#b2e281}',""])},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={vuex:{getters:{user:function(t){var e=t.user;return e},session:function(t){var e=t.sessions,n=t.currentSessionId;return e.find(function(t){return t.id===n})}}},filters:{time:function(t){return"string"==typeof t&&(t=new Date(t)),t.getHours()+":"+t.getMinutes()}},directives:{"scroll-bottom":function(){var t=this;this.vm.$nextTick(function(){t.el.scrollTop=t.el.scrollHeight-t.el.clientHeight})}}}},function(t,e){t.exports=' <div class=message v-scroll-bottom=session.messages _v-b412eea0=""> <ul v-if=session _v-b412eea0=""> <li v-for="item in session.messages" _v-b412eea0=""> <p class=time _v-b412eea0=""> <span _v-b412eea0="">{{ item.date | time }}</span> </p> <div class=main :class="{ self: item.self }" _v-b412eea0=""> <img class=avatar width=30 height=30 :src="item.self ? user.img : session.user.img" _v-b412eea0=""> <div class=text _v-b412eea0="">{{ item.content }}</div> </div> </li> </ul> </div> '},function(t,e){t.exports=' <div id=app _v-6f58f7a2=""> <div class=sidebar _v-6f58f7a2=""> <card _v-6f58f7a2=""></card> <list _v-6f58f7a2=""></list> </div> <div class=main _v-6f58f7a2=""> <message _v-6f58f7a2=""></message> <text _v-6f58f7a2=""></text> </div> </div> '}]);
//# sourceMappingURL=build.js.map
|
export async function fetchData(url) {
const res = await fetch(url);
const data = await res.json();
return data;
}
export const delay = (ms) => new Promise((res) => setTimeout(res, ms));
|
// @flow
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import userInfoFragment from '../../fragments/user/userInfo';
import type { UserInfoType } from '../../fragments/user/userInfo';
import type { EditUserInput } from '../../../../api/models/user';
export type EditUserType = {
...$Exact<UserInfoType>,
};
export type EditUserProps = {
editUser: (
input: $PropertyType<EditUserInput, 'input'>
) => Promise<EditUserType>,
};
export const editUserMutation = gql`
mutation editUser($input: EditUserInput!) {
editUser(input: $input) {
...userInfo
}
}
${userInfoFragment}
`;
const editUserOptions = {
props: ({ mutate }) => ({
editUser: input =>
mutate({
variables: {
input,
},
}),
}),
};
export default graphql(editUserMutation, editUserOptions);
|
mycallback( {"CONTRIBUTOR OCCUPATION": "Attorney", "CONTRIBUTION AMOUNT (F3L Bundled)": "250.00", "ELECTION CODE": "G2010", "MEMO CODE": "", "CONTRIBUTOR EMPLOYER": "Eric Weaver", "DONOR CANDIDATE STATE": "", "CONTRIBUTOR STREET 1": "1009 Creston Rd", "CONTRIBUTOR MIDDLE NAME": "", "DONOR CANDIDATE FEC ID": "", "DONOR CANDIDATE MIDDLE NAME": "", "CONTRIBUTOR STATE": "CA", "DONOR CANDIDATE FIRST NAME": "", "CONTRIBUTOR FIRST NAME": "Eric", "BACK REFERENCE SCHED NAME": "", "DONOR CANDIDATE DISTRICT": "", "CONTRIBUTION DATE": "20101026", "DONOR COMMITTEE NAME": "", "MEMO TEXT/DESCRIPTION": "", "Reference to SI or SL system code that identifies the Account": "", "FILER COMMITTEE ID NUMBER": "C00461061", "DONOR CANDIDATE LAST NAME": "", "CONTRIBUTOR LAST NAME": "Weaver", "_record_type": "fec.version.v7_0.SA", "CONDUIT STREET2": "", "CONDUIT STREET1": "", "DONOR COMMITTEE FEC ID": "", "CONTRIBUTION PURPOSE DESCRIP": "", "CONTRIBUTOR ZIP": "94708", "CONTRIBUTOR STREET 2": "", "CONDUIT CITY": "", "ENTITY TYPE": "IND", "CONTRIBUTOR CITY": "Berkeley", "CONTRIBUTOR SUFFIX": "", "TRANSACTION ID": "INCA7648", "DONOR CANDIDATE SUFFIX": "", "DONOR CANDIDATE OFFICE": "", "CONTRIBUTION PURPOSE CODE": "15", "ELECTION OTHER DESCRIPTION": "", "_src_file": "2011/20110504/727407.fec_3.yml", "CONDUIT STATE": "", "CONTRIBUTOR ORGANIZATION NAME": "", "BACK REFERENCE TRAN ID NUMBER": "", "DONOR CANDIDATE PREFIX": "", "CONTRIBUTOR PREFIX": "", "CONDUIT ZIP": "", "CONDUIT NAME": "", "CONTRIBUTION AGGREGATE F3L Semi-annual Bundled": "750.00", "FORM TYPE": "SA11AI"});
|
/**
* Base webpack config used across other specific configs
*/
import path from 'path';
import webpack from 'webpack';
export default {
module: {
rules: [{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
cacheDirectory: true
}
}
}]
},
output: {
path: path.join(__dirname, 'app'),
filename: 'bundle.js',
// https://github.com/webpack/webpack/issues/1114
libraryTarget: 'commonjs2'
},
/**
* Determine the array of extensions that should be used to resolve modules.
*/
resolve: {
extensions: ['.js', '.jsx', '.json'],
modules: [
'node_modules'
],
alias: {
Components: path.resolve(__dirname, './app/components'),
Data: path.resolve(__dirname, './app/data'),
Styles: path.resolve(__dirname, './app/styles'),
Utils: path.resolve(__dirname, './app/utils'),
}
},
plugins: [
new webpack.NamedModulesPlugin(),
],
};
|
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 48, height: 48, viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg", className: className },
React.createElement("path", { d: "M17.75 7C19.55 7 21 8.46 21 10.25v27.5c0 1.8-1.46 3.25-3.25 3.25h-5.5A3.25 3.25 0 019 37.75v-27.5C9 8.45 10.46 7 12.25 7h5.5zm18 0C37.55 7 39 8.46 39 10.25v27.5c0 1.8-1.46 3.25-3.25 3.25h-5.5A3.25 3.25 0 0127 37.75v-27.5C27 8.45 28.46 7 30.25 7h5.5zm-18 2.5h-5.5a.75.75 0 00-.75.75v27.5c0 .41.34.75.75.75h5.5c.41 0 .75-.34.75-.75v-27.5a.75.75 0 00-.75-.75zm18 0h-5.5a.75.75 0 00-.75.75v27.5c0 .41.34.75.75.75h5.5c.41 0 .75-.34.75-.75v-27.5a.75.75 0 00-.75-.75z", fill: primaryFill }));
};
const Pause48Regular = wrapIcon(rawSvg({}), 'Pause48Regular');
export default Pause48Regular;
|
'use strict';
var dns = require('dns');
var EventEmitter = require('events').EventEmitter;
var bitcore = require('bitcore-lib-cash');
var sha256 = bitcore.crypto.Hash.sha256;
var Peer = require('./peer');
var Networks = bitcore.Networks;
var util = require('util');
var net = require('net');
function now() {
return Math.floor(new Date().getTime() / 1000);
}
/**
* A pool is a collection of Peers. A pool will discover peers from DNS seeds, and
* collect information about new peers in the network. When a peer disconnects the pool
* will connect to others that are available to maintain a max number of
* ongoing peer connections. Peer events are relayed to the pool.
*
* @example
* ```javascript
*
* var pool = new Pool({network: Networks.livenet});
* pool.on('peerinv', function(peer, message) {
* // do something with the inventory announcement
* });
* pool.connect();
* ```
*
* @param {Object=} options
* @param {Network=} options.network - The network configuration
* @param {Boolean=} options.listenAddr - Prevent new peers being added from addr messages
* @param {Boolean=} options.dnsSeed - Prevent seeding with DNS discovered known peers
* @param {Boolean=} options.relay - Prevent inventory announcements until a filter is loaded
* @param {Number=} options.maxSize - The max number of peers
* @param {Socket=} options.subversion - Subversion (user agent) to share with remote peers
* @param {Socket=} options.version - Protocol version to share with remote peers
* @returns {Pool}
* @constructor
*/
function Pool(options) {
/* jshint maxcomplexity: 10 */
/* jshint maxstatements: 20 */
var self = this;
options = options || {};
this.keepalive = false;
this._connectedPeers = {};
this._addrs = [];
this.listenAddr = options.listenAddr !== false;
this.dnsSeed = options.dnsSeed !== false;
this.maxSize = options.maxSize || Pool.MaxConnectedPeers;
this.messages = options.messages;
this.network = Networks.get(options.network) || Networks.defaultNetwork;
this.relay = options.relay === false ? false : true;
this.subversion = options.subversion;
this.version = options.version;
if (options.addrs) {
for(var i = 0; i < options.addrs.length; i++) {
this._addAddr(options.addrs[i]);
}
}
if (this.listenAddr) {
this.on('peeraddr', function peerAddrEvent(peer, message) {
var addrs = message.addresses;
var length = addrs.length;
for (var i = 0; i < length; i++) {
var addr = addrs[i];
var future = new Date().getTime() + (10 * 60 * 1000);
if (addr.time.getTime() <= 100000000000 || addr.time.getTime() > future) {
// In case of an invalid time, assume "5 days ago"
var past = new Date(new Date().getTime() - 5 * 24 * 60 * 60 * 1000);
addr.time = past;
}
this._addAddr(addr);
}
});
}
this.on('seed', function seedEvent(ips) {
ips.forEach(function(ip) {
self._addAddr({
ip: {
v4: ip
}
});
});
if (self.keepalive) {
self._fillConnections();
}
});
this.on('peerdisconnect', function peerDisconnectEvent(peer, addr) {
self._deprioritizeAddr(addr);
self._removeConnectedPeer(addr);
if (self.keepalive) {
self._fillConnections();
}
});
return this;
}
util.inherits(Pool, EventEmitter);
Pool.MaxConnectedPeers = 8;
Pool.RetrySeconds = 30;
Pool.PeerEvents = ['version', 'inv', 'getdata', 'ping', 'pong', 'addr',
'getaddr', 'verack', 'reject', 'alert', 'headers', 'block', 'merkleblock',
'tx', 'getblocks', 'getheaders', 'error', 'filterload', 'filteradd',
'filterclear', 'sendheaders'
];
/**
* Will initiate connection to peers, if available peers have been added to
* the pool, it will connect to those, otherwise will use DNS seeds to find
* peers to connect. When a peer disconnects it will add another.
*/
Pool.prototype.connect = function connect() {
this.keepalive = true;
var self = this;
if (this.dnsSeed) {
self._addAddrsFromSeeds();
} else {
self._fillConnections();
}
return this;
};
/**
* Will disconnect all peers that are connected.
*/
Pool.prototype.disconnect = function disconnect() {
this.keepalive = false;
for (var i in this._connectedPeers) {
this._connectedPeers[i].disconnect();
}
return this;
};
/**
* @returns {Number} The number of peers currently connected.
*/
Pool.prototype.numberConnected = function numberConnected() {
return Object.keys(this._connectedPeers).length;
};
/**
* Will fill the connected peers to the maximum amount.
*/
Pool.prototype._fillConnections = function _fillConnections() {
var length = this._addrs.length;
for (var i = 0; i < length; i++) {
if (this.numberConnected() >= this.maxSize) {
break;
}
var addr = this._addrs[i];
if (!addr.retryTime || now() > addr.retryTime) {
this._connectPeer(addr);
}
}
return this;
};
/**
* Will remove a peer from the list of connected peers.
* @param {Object} addr - An addr from the list of addrs
*/
Pool.prototype._removeConnectedPeer = function _removeConnectedPeer(addr) {
if (this._connectedPeers[addr.hash].status !== Peer.STATUS.DISCONNECTED) {
this._connectedPeers[addr.hash].disconnect();
} else {
delete this._connectedPeers[addr.hash];
}
return this;
};
/**
* Will connect a peer and add to the list of connected peers.
* @param {Object} addr - An addr from the list of addrs
*/
Pool.prototype._connectPeer = function _connectPeer(addr) {
var self = this;
if (!this._connectedPeers[addr.hash]) {
var port = addr.port || self.network.port;
var ip = addr.ip.v4 || addr.ip.v6;
var peer = new Peer({
host: ip,
port: port,
messages: self.messages,
network: this.network,
relay: self.relay
});
peer.on('connect', function peerConnect() {
self.emit('peerconnect', peer, addr);
});
self._addPeerEventHandlers(peer, addr);
peer.connect();
self._connectedPeers[addr.hash] = peer;
}
return this;
};
/**
* Adds a peer with a connected socket to the _connectedPeers object, and
* initializes the associated event handlers.
* @param {Socket} - socket - A new connected socket
* @param {Object} - addr - The associated addr object for the peer
*/
Pool.prototype._addConnectedPeer = function _addConnectedPeer(socket, addr) {
var self = this;
if (!this._connectedPeers[addr.hash]) {
var peer = new Peer({
socket: socket,
network: this.network,
messages: self.messages,
subversion: this.subversion,
version: this.version
});
self._addPeerEventHandlers(peer, addr);
self._connectedPeers[addr.hash] = peer;
self.emit('peerconnect', peer, addr);
}
return this;
};
/**
* Will add disconnect and ready events for a peer and initialize
* handlers for relay peer message events.
*/
Pool.prototype._addPeerEventHandlers = function(peer, addr) {
var self = this;
peer.on('disconnect', function peerDisconnect() {
self.emit('peerdisconnect', peer, addr);
});
peer.on('ready', function peerReady() {
self.emit('peerready', peer, addr);
});
Pool.PeerEvents.forEach(function addPeerEvents(event) {
peer.on(event, function peerEvent(message) {
var eventName = 'peer' + event;
self.emit('*', peer, message, eventName);
self.emit(eventName, peer, message);
});
});
};
/**
* Will deprioritize an addr in the list of addrs by moving it to the end
* of the array, and setting a retryTime
* @param {Object} addr - An addr from the list of addrs
*/
Pool.prototype._deprioritizeAddr = function _deprioritizeAddr(addr) {
for (var i = 0; i < this._addrs.length; i++) {
if (this._addrs[i].hash === addr.hash) {
var middle = this._addrs[i];
middle.retryTime = now() + Pool.RetrySeconds;
var beginning = this._addrs.splice(0, i);
var end = this._addrs.splice(i + 1, this._addrs.length);
var combined = beginning.concat(end);
this._addrs = combined.concat([middle]);
}
}
return this;
};
/**
* Will add an addr to the beginning of the addrs array
* @param {Object}
*/
Pool.prototype._addAddr = function _addAddr(addr) {
// Use default port if not specified
addr.port = addr.port || this.network.port;
// make a unique key
addr.hash = sha256(Buffer.from(addr.ip.v6 + addr.ip.v4 + addr.port)).toString('hex');
var length = this._addrs.length;
var exists = false;
for (var i = 0; i < length; i++) {
if (this._addrs[i].hash === addr.hash) {
exists = true;
}
}
if (!exists) {
this._addrs.unshift(addr);
}
return addr;
};
/**
* Will add addrs to the list of addrs from a DNS seed
* @param {String} seed - A domain name to resolve known peers
* @param {Function} done
*/
Pool.prototype._addAddrsFromSeed = function _addAddrsFromSeed(seed) {
var self = this;
dns.resolve(seed, function(err, ips) {
if (err) {
self.emit('seederror', err);
return;
}
if (!ips || !ips.length) {
self.emit('seederror', new Error('No IPs found from seed lookup.'));
return;
}
// announce to pool
self.emit('seed', ips);
});
return this;
};
/**
* Will add addrs to the list of addrs from network DNS seeds
* @param {Function} done
*/
Pool.prototype._addAddrsFromSeeds = function _addAddrsFromSeeds() {
var self = this;
var seeds = this.network.dnsSeeds;
seeds.forEach(function(seed) {
self._addAddrsFromSeed(seed);
});
return this;
};
/**
* @returns {String} A string formatted for the console
*/
Pool.prototype.inspect = function inspect() {
return '<Pool network: ' +
this.network + ', connected: ' +
this.numberConnected() + ', available: ' +
this._addrs.length + '>';
};
/**
* Will send a message to all of the peers in the pool.
* @param {Message} message - An instance of the message to send
*/
Pool.prototype.sendMessage = function(message) {
// broadcast to peers
for(var key in this._connectedPeers) {
var peer = this._connectedPeers[key];
peer.sendMessage(message);
}
};
/**
* Will enable a listener for peer connections, when a peer connects
* it will be added to the pool.
*/
Pool.prototype.listen = function() {
var self = this;
// Create server
this.server = net.createServer(function(socket) {
var addr = {
ip: {}
};
if(net.isIPv6(socket.remoteAddress)) {
addr.ip.v6 = socket.remoteAddress;
} else {
addr.ip.v4 = socket.remoteAddress;
}
addr.port = socket.remotePort;
addr = self._addAddr(addr);
self._addConnectedPeer(socket, addr);
});
this.server.listen(this.network.port);
};
module.exports = Pool;
|
goog.provide('ol.tilegrid.WMTS');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('ol.proj');
goog.require('ol.tilegrid.TileGrid');
/**
* @classdesc
* Set the grid pattern for sources accessing WMTS tiled-image servers.
*
* @constructor
* @extends {ol.tilegrid.TileGrid}
* @param {olx.tilegrid.WMTSOptions} options WMTS options.
* @struct
* @api
*/
ol.tilegrid.WMTS = function(options) {
goog.asserts.assert(
options.resolutions.length == options.matrixIds.length,
'options resolutions and matrixIds must have equal length (%s == %s)',
options.resolutions.length, options.matrixIds.length);
/**
* @private
* @type {!Array.<string>}
*/
this.matrixIds_ = options.matrixIds;
// FIXME: should the matrixIds become optionnal?
goog.base(this, {
extent: options.extent,
origin: options.origin,
origins: options.origins,
resolutions: options.resolutions,
tileSize: options.tileSize,
tileSizes: options.tileSizes,
sizes: options.sizes
});
};
goog.inherits(ol.tilegrid.WMTS, ol.tilegrid.TileGrid);
/**
* @param {number} z Z.
* @return {string} MatrixId..
*/
ol.tilegrid.WMTS.prototype.getMatrixId = function(z) {
goog.asserts.assert(0 <= z && z < this.matrixIds_.length,
'attempted to retrive matrixId for illegal z (%s)', z);
return this.matrixIds_[z];
};
/**
* Get the list of matrix identifiers.
* @return {Array.<string>} MatrixIds.
* @api
*/
ol.tilegrid.WMTS.prototype.getMatrixIds = function() {
return this.matrixIds_;
};
/**
* Create a tile grid from a WMTS capabilities matrix set.
* @param {Object} matrixSet An object representing a matrixSet in the
* capabilities document.
* @param {ol.Extent=} opt_extent An optional extent to restrict the tile
* ranges the server provides.
* @return {ol.tilegrid.WMTS} WMTS tileGrid instance.
* @api
*/
ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet =
function(matrixSet, opt_extent) {
/** @type {!Array.<number>} */
var resolutions = [];
/** @type {!Array.<string>} */
var matrixIds = [];
/** @type {!Array.<ol.Coordinate>} */
var origins = [];
/** @type {!Array.<ol.Size>} */
var tileSizes = [];
/** @type {!Array.<ol.Size>} */
var sizes = [];
var supportedCRSPropName = 'SupportedCRS';
var matrixIdsPropName = 'TileMatrix';
var identifierPropName = 'Identifier';
var scaleDenominatorPropName = 'ScaleDenominator';
var topLeftCornerPropName = 'TopLeftCorner';
var tileWidthPropName = 'TileWidth';
var tileHeightPropName = 'TileHeight';
var projection;
projection = ol.proj.get(matrixSet[supportedCRSPropName].replace(
/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/, '$1:$3'));
var metersPerUnit = projection.getMetersPerUnit();
// swap origin x and y coordinates if axis orientation is lat/long
var switchOriginXY = projection.getAxisOrientation().substr(0, 2) == 'ne';
goog.array.sort(matrixSet[matrixIdsPropName], function(a, b) {
return b[scaleDenominatorPropName] - a[scaleDenominatorPropName];
});
goog.array.forEach(matrixSet[matrixIdsPropName],
function(elt, index, array) {
matrixIds.push(elt[identifierPropName]);
var resolution = elt[scaleDenominatorPropName] * 0.28E-3 /
metersPerUnit;
var tileWidth = elt[tileWidthPropName];
var tileHeight = elt[tileHeightPropName];
if (switchOriginXY) {
origins.push([elt[topLeftCornerPropName][1],
elt[topLeftCornerPropName][0]]);
} else {
origins.push(elt[topLeftCornerPropName]);
}
resolutions.push(resolution);
tileSizes.push(tileWidth == tileHeight ?
tileWidth : [tileWidth, tileHeight]);
// top-left origin, so height is negative
sizes.push([elt['MatrixWidth'], -elt['MatrixHeight']]);
});
return new ol.tilegrid.WMTS({
extent: opt_extent,
origins: origins,
resolutions: resolutions,
matrixIds: matrixIds,
tileSizes: tileSizes,
sizes: sizes
});
};
|
import{r as n,o as a,c as e,a as s,w as l,F as t,b as p,d as o}from"./app.bd6623af.js";const i={},c=s("h1",{id:"config",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#config","aria-hidden":"true"},"#"),p(" Config")],-1),r=p("Reference of default theme config, which can be set via "),u=p("themeConfig"),d=p("."),h=s("h2",{id:"basic-config",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#basic-config","aria-hidden":"true"},"#"),p(" Basic Config")],-1),b=s("h3",{id:"locales",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#locales","aria-hidden":"true"},"#"),p(" locales")],-1),m=s("li",null,[s("p",null,[p("Type: "),s("code",null,"{ [path: string]: Partial<DefaultThemeLocaleData> }")])],-1),k=s("li",null,[s("p",null,[p("Default: "),s("code",null,"{}")])],-1),f=s("p",null,"Details:",-1),g=s("p",null,"Specify locales for i18n support.",-1),y=s("p",null,[p("All the options inside the "),s("a",{href:"#locale-config"},"Locale Config"),p(" section can be used in locales.")],-1),v=p("This option will only take effect in default theme, so don't confuse with "),x=s("code",null,"locales",-1),w=p(" in "),D=p("Site Config"),T=p("."),j=s("p",null,"Also see:",-1),S=p("Guide > I18n"),C=o('<h2 id="locale-config" tabindex="-1"><a class="header-anchor" href="#locale-config" aria-hidden="true">#</a> Locale Config</h2><p>Config of this section can be used as normal config, and can also be used in the <a href="#locales">locales</a> option.</p><h3 id="home" tabindex="-1"><a class="header-anchor" href="#home" aria-hidden="true">#</a> home</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Default: <code>/</code></p></li><li><p>Details:</p><p>Specify the path of the homepage.</p><p>This will be used for:</p><ul><li>the logo link of the navbar</li><li>the <em>back to home</em> link of the 404 page</li></ul></li></ul><h3 id="navbar" tabindex="-1"><a class="header-anchor" href="#navbar" aria-hidden="true">#</a> navbar</h3><ul><li><p>Type: <code>false | (NavbarItem | NavbarGroup | string)[]</code></p></li><li><p>Default: <code>[]</code></p></li><li><p>Details:</p><p>Configuration of navbar.</p><p>Set to <code>false</code> to disable navbar.</p><p>To configure the navbar items, you can set it to a <em>navbar array</em>, each item of which could be a <code>NavbarItem</code> object, a <code>NavbarGroup</code> object, or a string:</p><ul><li>A <code>NavbarItem</code> object should have a <code>text</code> field and a <code>link</code> field, could have an optional <code>activeMatch</code> field.</li><li>A <code>NavbarGroup</code> object should have a <code>text</code> field and a <code>children</code> field. The <code>children</code> field should be a <em>navbar array</em>, too.</li><li>A string should be the path to the target page file. It will be converted to a <code>NavbarItem</code> object, using the page title as <code>text</code>, and the page route path as <code>link</code>.</li></ul></li><li><p>Example 1:</p></li></ul><div class="theme-code-dark"><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>\n themeConfig<span class="token operator">:</span> <span class="token punctuation">{</span>\n navbar<span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token comment">// NavbarItem</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Foo'</span><span class="token punctuation">,</span>\n link<span class="token operator">:</span> <span class="token string">'/foo/'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token comment">// NavbarGroup</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Group'</span><span class="token punctuation">,</span>\n children<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">'/group/foo.md'</span><span class="token punctuation">,</span> <span class="token string">'/group/bar.md'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token comment">// string - page file path</span>\n <span class="token string">'/bar/README.md'</span><span class="token punctuation">,</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br></div></div></div><ul><li>Example 2:</li></ul><div class="theme-code-dark"><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>\n themeConfig<span class="token operator">:</span> <span class="token punctuation">{</span>\n navbar<span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token comment">// nested group - max depth is 2</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Group'</span><span class="token punctuation">,</span>\n children<span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'SubGroup'</span><span class="token punctuation">,</span>\n children<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">'/group/sub/foo.md'</span><span class="token punctuation">,</span> <span class="token string">'/group/sub/bar.md'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token comment">// control when should the item be active</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Group 2'</span><span class="token punctuation">,</span>\n children<span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Always active'</span><span class="token punctuation">,</span>\n link<span class="token operator">:</span> <span class="token string">'/'</span><span class="token punctuation">,</span>\n <span class="token comment">// this item will always be active</span>\n activeMatch<span class="token operator">:</span> <span class="token string">'/'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Active on /foo/'</span><span class="token punctuation">,</span>\n link<span class="token operator">:</span> <span class="token string">'/not-foo/'</span><span class="token punctuation">,</span>\n <span class="token comment">// this item will be active when current route path starts with /foo/</span>\n <span class="token comment">// regular expression is supported</span>\n activeMatch<span class="token operator">:</span> <span class="token string">'^/foo/'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br></div></div></div><h3 id="logo" tabindex="-1"><a class="header-anchor" href="#logo" aria-hidden="true">#</a> logo</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Details:</p><p>Specify the url of logo image.</p><p>The logo image will be displayed at the left end of the navbar.</p></li><li><p>Example:</p></li></ul><div class="theme-code-dark"><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>\n themeConfig<span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token comment">// public file path</span>\n logo<span class="token operator">:</span> <span class="token string">'/hero.png'</span><span class="token punctuation">,</span>\n <span class="token comment">// url</span>\n logo<span class="token operator">:</span> <span class="token string">'https://vuejs.org/images/logo.png'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div></div>',12),E=p("Also see: "),I=p("Guide > Assets > Public Files"),_=s("h3",{id:"darkmode",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#darkmode","aria-hidden":"true"},"#"),p(" darkMode")],-1),L=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),N=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),A=s("p",null,"Details:",-1),G=s("p",null,"Enable dark mode switching or not.",-1),P=p("If set to "),R=s("code",null,"true",-1),M=p(", a button to switch dark mode will be displayed in the navbar, and the initial mode will be automatically set according to "),z={href:"https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme",target:"_blank",rel:"noopener noreferrer"},B=p("prefers-color-scheme"),U=p("."),Y=o('<h3 id="repo" tabindex="-1"><a class="header-anchor" href="#repo" aria-hidden="true">#</a> repo</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Details:</p><p>Specify the repository url of your project.</p><p>This will be used as the link of the <em>repository link</em>, which will be displayed as the last item of the navbar.</p></li></ul><div class="theme-code-dark"><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>\n themeConfig<span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token comment">// If you set it in the form of `organization/repository`</span>\n <span class="token comment">// we will take it as a GitHub repo</span>\n repo<span class="token operator">:</span> <span class="token string">'vuejs/vuepress'</span><span class="token punctuation">,</span>\n <span class="token comment">// You can also set it to a URL directly</span>\n repo<span class="token operator">:</span> <span class="token string">'https://gitlab.com/foo/bar'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br></div></div></div><h3 id="repolabel" tabindex="-1"><a class="header-anchor" href="#repolabel" aria-hidden="true">#</a> repoLabel</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Details:</p><p>Specify the repository label of your project.</p><p>This will be used as the text of the <em>repository link</em>, which will be displayed as the last item of the navbar.</p><p>If you don't set this option explicitly, it will be automatically inferred from the <a href="#repo">repo</a> option.</p></li></ul><h3 id="selectlanguagetext" tabindex="-1"><a class="header-anchor" href="#selectlanguagetext" aria-hidden="true">#</a> selectLanguageText</h3>',6),F=s("li",null,[s("p",null,[p("Type: "),s("code",null,"string")])],-1),H=s("p",null,"Details:",-1),O=s("p",null,[p("Specify the text of the "),s("em",null,"select language menu"),p(".")],-1),W=p("The "),Z=s("em",null,"select language menu",-1),q=p(" will appear next to the repository button in the navbar when you set multiple "),J=p("locales"),K=p(" in your site config."),Q=o('<h3 id="selectlanguagearialabel" tabindex="-1"><a class="header-anchor" href="#selectlanguagearialabel" aria-hidden="true">#</a> selectLanguageAriaLabel</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Details:</p><p>Specify the <code>aria-label</code> attribute of the <em>select language menu</em>.</p><p>This is mainly for a11y purpose.</p></li></ul><h3 id="selectlanguagename" tabindex="-1"><a class="header-anchor" href="#selectlanguagename" aria-hidden="true">#</a> selectLanguageName</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Details:</p><p>Specify the name of the language of a locale.</p><p>This option will <strong>only take effect inside</strong> the <a href="#locales">locales</a> of your theme config. It will be used as the language name of the locale, which will be displayed in the <em>select language menu</em>.</p></li><li><p>Example:</p></li></ul><div class="theme-code-dark"><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>\n locales<span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token string">'/'</span><span class="token operator">:</span> <span class="token punctuation">{</span>\n lang<span class="token operator">:</span> <span class="token string">'en-US'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token string">'/zh/'</span><span class="token operator">:</span> <span class="token punctuation">{</span>\n lang<span class="token operator">:</span> <span class="token string">'zh-CN'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n themeConfig<span class="token operator">:</span> <span class="token punctuation">{</span>\n locales<span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token string">'/'</span><span class="token operator">:</span> <span class="token punctuation">{</span>\n selectLanguageName<span class="token operator">:</span> <span class="token string">'English'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token string">'/zh/'</span><span class="token operator">:</span> <span class="token punctuation">{</span>\n selectLanguageName<span class="token operator">:</span> <span class="token string">'简体中文'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br></div></div></div><h3 id="sidebar" tabindex="-1"><a class="header-anchor" href="#sidebar" aria-hidden="true">#</a> sidebar</h3>',6),V=s("li",null,[s("p",null,[p("Type: "),s("code",null,"false | 'auto' | SidebarConfigArray | SidebarConfigObject")])],-1),X=s("li",null,[s("p",null,[p("Default: "),s("code",null,"'auto'")])],-1),$=s("p",null,"Details:",-1),nn=s("p",null,"Configuration of sidebar.",-1),an=p("You can override this global option via "),en=p("sidebar"),sn=p(" frontmatter in your pages."),ln=o("<p>Set to <code>false</code> to disable sidebar.</p><p>If you set it to <code>'auto'</code>, the sidebar will be automatically generated from the page headers.</p><p>To configure the sidebar items manually, you can set this option to a <em>sidebar array</em>, each item of which could be a <code>SidebarItem</code> object or a string:</p><ul><li>A <code>SidebarItem</code> object should have a <code>text</code> field, could have an optional <code>link</code> field and an optional <code>children</code> field. The <code>children</code> field should be a <em>sidebar array</em>.</li><li>A string should be the path to the target page file. It will be converted to a <code>SidebarItem</code> object, whose <code>text</code> is the page title, <code>link</code> is the page route path, and <code>children</code> is automatically generated from the page headers.</li></ul><p>If you want to set different sidebar for different sub paths, you can set this option to a <em>sidebar object</em>:</p><ul><li>The key should be the path prefix.</li><li>The value should be a <em>sidebar array</em>.</li></ul>",6),tn=s("li",null,[s("p",null,"Example 1:")],-1),pn=o('<div class="theme-code-dark"><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>\n themeConfig<span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token comment">// sidebar array</span>\n <span class="token comment">// all pages will use the same sidebar</span>\n sidebar<span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token comment">// SidebarItem</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Foo'</span><span class="token punctuation">,</span>\n link<span class="token operator">:</span> <span class="token string">'/foo/'</span><span class="token punctuation">,</span>\n children<span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token comment">// SidebarItem</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'github'</span><span class="token punctuation">,</span>\n link<span class="token operator">:</span> <span class="token string">'https://github.com'</span><span class="token punctuation">,</span>\n children<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token comment">// string - page file path</span>\n <span class="token string">'/foo/bar.md'</span><span class="token punctuation">,</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token comment">// string - page file path</span>\n <span class="token string">'/bar/README.md'</span><span class="token punctuation">,</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br></div></div></div><ul><li>Example 2:</li></ul><div class="theme-code-dark"><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>\n themeConfig<span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token comment">// sidebar object</span>\n <span class="token comment">// pages under different sub paths will use different sidebar</span>\n sidebar<span class="token operator">:</span> <span class="token punctuation">{</span>\n <span class="token string">'/guide/'</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Guide'</span><span class="token punctuation">,</span>\n children<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">'/guide/README.md'</span><span class="token punctuation">,</span> <span class="token string">'/guide/getting-started.md'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token string">'/reference/'</span><span class="token operator">:</span> <span class="token punctuation">[</span>\n <span class="token punctuation">{</span>\n text<span class="token operator">:</span> <span class="token string">'Reference'</span><span class="token punctuation">,</span>\n children<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token string">'/reference/cli.md'</span><span class="token punctuation">,</span> <span class="token string">'/reference/config.md'</span><span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">]</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br></div></div></div><h3 id="sidebardepth" tabindex="-1"><a class="header-anchor" href="#sidebardepth" aria-hidden="true">#</a> sidebarDepth</h3>',4),on=s("li",null,[s("p",null,[p("Type: "),s("code",null,"number")])],-1),cn=s("li",null,[s("p",null,[p("Default: "),s("code",null,"2")])],-1),rn=o("<p>Details:</p><p>Set the maximum depth of the sidebar children which are automatically generated from the page headers.</p><ul><li>Set to <code>0</code> to disable all levels of headers.</li><li>Set to <code>1</code> to include <code><h2></code> headers.</li><li>Set to <code>2</code> to include <code><h2></code> and <code><h3></code> headers.</li><li>...</li></ul>",3),un=p("The max value depends on which levels of headers you have extracted via "),dn=p("markdown.extractHeaders.level"),hn=p("."),bn=s("p",null,[p("The default value of "),s("code",null,"markdown.extractHeaders.level"),p(" is "),s("code",null,"[2, 3]"),p(", so the default max value of "),s("code",null,"sidebarDepth"),p(" is "),s("code",null,"2"),p(".")],-1),mn=p("You can override this global option via "),kn=p("sidebarDepth"),fn=p(" frontmatter in your pages."),gn=s("h3",{id:"editlink",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#editlink","aria-hidden":"true"},"#"),p(" editLink")],-1),yn=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),vn=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),xn=s("p",null,"Details:",-1),wn=s("p",null,[p("Enable the "),s("em",null,"edit this page"),p(" link or not.")],-1),Dn=p("You can override this global option via "),Tn=p("editLink"),jn=p(" frontmatter in your pages."),Sn=o('<h3 id="editlinktext" tabindex="-1"><a class="header-anchor" href="#editlinktext" aria-hidden="true">#</a> editLinkText</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Default: <code>'Edit this page'</code></p></li><li><p>Details:</p><p>Specify the text of the <em>edit this page</em> link.</p></li></ul><h3 id="editlinkpattern" tabindex="-1"><a class="header-anchor" href="#editlinkpattern" aria-hidden="true">#</a> editLinkPattern</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Details:</p><p>Specify the pattern of the <em>edit this page</em> link.</p><p>This will be used for generating the <em>edit this page</em> link.</p><p>If you don't set this option, the pattern will be inferred from the <a href="#docsrepo">docsRepo</a> option. But if your documentation repository is not hosted on a common platform, for example, GitHub, GitLab, Bitbucket, Gitee, etc., you have to set this option explicitly to make the <em>edit this page</em> link work.</p></li><li><p>Usage:</p><table><thead><tr><th>Pattern</th><th>Description</th></tr></thead><tbody><tr><td><code>:repo</code></td><td>The docs repo url, i.e. <a href="#docsrepo">docsRepo</a></td></tr><tr><td><code>:branch</code></td><td>The docs repo branch, i.e. <a href="#docsbranch">docsBranch</a></td></tr><tr><td><code>:path</code></td><td>The path of the page source file, i.e. <a href="#docsdir">docsDir</a> joins the relative path of the page file</td></tr></tbody></table></li><li><p>Example:</p></li></ul><div class="theme-code-dark"><div class="language-javascript ext-js line-numbers-mode"><pre class="language-javascript"><code>module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>\n themeConfig<span class="token operator">:</span> <span class="token punctuation">{</span>\n docsRepo<span class="token operator">:</span> <span class="token string">'https://gitlab.com/owner/name'</span><span class="token punctuation">,</span>\n docsBranch<span class="token operator">:</span> <span class="token string">'master'</span><span class="token punctuation">,</span>\n docsDir<span class="token operator">:</span> <span class="token string">'docs'</span><span class="token punctuation">,</span>\n editLinkPattern<span class="token operator">:</span> <span class="token string">':repo/-/edit/:branch/:path'</span><span class="token punctuation">,</span>\n <span class="token punctuation">}</span><span class="token punctuation">,</span>\n<span class="token punctuation">}</span>\n</code></pre><div class="line-numbers"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br></div></div></div><p>The generated link will look like <code>'https://gitlab.com/owner/name/-/edit/master/docs/path/to/file.md'</code>.</p><h3 id="docsrepo" tabindex="-1"><a class="header-anchor" href="#docsrepo" aria-hidden="true">#</a> docsRepo</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Details:</p><p>Specify the repository url of your documentation source files.</p><p>This will be used for generating the <em>edit this page</em> link.</p><p>If you don't set this option, it will use the <a href="#repo">repo</a> option by default. But if your documentation source files are in a different repository, you will need to set this option.</p></li></ul><h3 id="docsbranch" tabindex="-1"><a class="header-anchor" href="#docsbranch" aria-hidden="true">#</a> docsBranch</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Default: <code>'main'</code></p></li><li><p>Details:</p><p>Specify the repository branch of your documentation source files.</p><p>This will be used for generating the <em>edit this page</em> link.</p></li></ul><h3 id="docsdir" tabindex="-1"><a class="header-anchor" href="#docsdir" aria-hidden="true">#</a> docsDir</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Default: <code>''</code></p></li><li><p>Details:</p><p>Specify the directory of your documentation source files in the repository.</p><p>This will be used for generating the <em>edit this page</em> link.</p></li></ul><h3 id="lastupdated" tabindex="-1"><a class="header-anchor" href="#lastupdated" aria-hidden="true">#</a> lastUpdated</h3>',13),Cn=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),En=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),In=s("p",null,"Details:",-1),_n=s("p",null,[p("Enable the "),s("em",null,"last updated timestamp"),p(" or not.")],-1),Ln=p("You can override this global option via "),Nn=p("lastUpdated"),An=p(" frontmatter in your pages."),Gn=s("p",null,[p("Notice that if you set "),s("code",null,"themeConfig.lastUpdated"),p(" to "),s("code",null,"false"),p(", this feature will be disabled totally and could not be enabled in locales nor page frontmatter.")],-1),Pn=o('<h3 id="lastupdatedtext" tabindex="-1"><a class="header-anchor" href="#lastupdatedtext" aria-hidden="true">#</a> lastUpdatedText</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Default: <code>'Last Updated'</code></p></li><li><p>Details:</p><p>Specify the text of the <em>last updated timestamp</em> label.</p></li></ul><h3 id="contributors" tabindex="-1"><a class="header-anchor" href="#contributors" aria-hidden="true">#</a> contributors</h3>',3),Rn=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),Mn=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),zn=s("p",null,"Details:",-1),Bn=s("p",null,[p("Enable the "),s("em",null,"contributors list"),p(" or not.")],-1),Un=p("You can override this global option via "),Yn=p("contributors"),Fn=p(" frontmatter in your pages."),Hn=s("p",null,[p("Notice that if you set "),s("code",null,"themeConfig.contributors"),p(" to "),s("code",null,"false"),p(", this feature will be disabled totally and could not be enabled in locales nor page frontmatter.")],-1),On=o('<h3 id="contributorstext" tabindex="-1"><a class="header-anchor" href="#contributorstext" aria-hidden="true">#</a> contributorsText</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Default: <code>'Contributors'</code></p></li><li><p>Details:</p><p>Specify the text of the <em>contributors list</em> label.</p></li></ul><h3 id="tip" tabindex="-1"><a class="header-anchor" href="#tip" aria-hidden="true">#</a> tip</h3>',3),Wn=s("li",null,[s("p",null,[p("Type: "),s("code",null,"string")])],-1),Zn=s("li",null,[s("p",null,[p("Default: "),s("code",null,"'TIP'")])],-1),qn=s("p",null,"Details:",-1),Jn=p("Specify the default title of the tip "),Kn=p("custom containers"),Qn=p("."),Vn=s("h3",{id:"warning",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#warning","aria-hidden":"true"},"#"),p(" warning")],-1),Xn=s("li",null,[s("p",null,[p("Type: "),s("code",null,"string")])],-1),$n=s("li",null,[s("p",null,[p("Default: "),s("code",null,"'WARNING'")])],-1),na=s("p",null,"Details:",-1),aa=p("Specify the default title of the warning "),ea=p("custom containers"),sa=p("."),la=s("h3",{id:"danger",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#danger","aria-hidden":"true"},"#"),p(" danger")],-1),ta=s("li",null,[s("p",null,[p("Type: "),s("code",null,"string")])],-1),pa=s("li",null,[s("p",null,[p("Default: "),s("code",null,"'DANGER'")])],-1),oa=s("p",null,"Details:",-1),ia=p("Specify the default title of the danger "),ca=p("custom containers"),ra=p("."),ua=o('<h3 id="notfound" tabindex="-1"><a class="header-anchor" href="#notfound" aria-hidden="true">#</a> notFound</h3><ul><li><p>Type: <code>string[]</code></p></li><li><p>Default: <code>['Not Found']</code></p></li><li><p>Details:</p><p>Specify the messages of the 404 page.</p><p>The message will be randomly picked from the array when users enter the 404 page.</p></li></ul><h3 id="backtohome" tabindex="-1"><a class="header-anchor" href="#backtohome" aria-hidden="true">#</a> backToHome</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Default: <code>'Back to home'</code></p></li><li><p>Details:</p><p>Specify the text of the <em>back to home</em> link in the 404 page.</p></li></ul><h3 id="openinnewwindow" tabindex="-1"><a class="header-anchor" href="#openinnewwindow" aria-hidden="true">#</a> openInNewWindow</h3>',5),da=s("li",null,[s("p",null,[p("Type: "),s("code",null,"string")])],-1),ha=s("li",null,[s("p",null,[p("Default: "),s("code",null,"'open in new window'")])],-1),ba=s("p",null,"Details:",-1),ma=p("Specify the "),ka=s("code",null,"sr-only",-1),fa=p(" text of the "),ga=p("OutboundLink"),ya=p("."),va=s("p",null,"This is mainly for a11y purpose.",-1),xa=o('<h3 id="toggledarkmode" tabindex="-1"><a class="header-anchor" href="#toggledarkmode" aria-hidden="true">#</a> toggleDarkMode</h3><ul><li><p>Type: <code>string</code></p></li><li><p>Default: <code>'toggle dark mode'</code></p></li><li><p>Details:</p><p>Title text for dark mode toggle button.</p><p>This is mainly for a11y purpose.</p></li></ul><h2 id="plugins-config" tabindex="-1"><a class="header-anchor" href="#plugins-config" aria-hidden="true">#</a> Plugins Config</h2><h3 id="themeplugins" tabindex="-1"><a class="header-anchor" href="#themeplugins" aria-hidden="true">#</a> themePlugins</h3><ul><li><p>Details:</p><p>Configure the plugins that used by default theme.</p><p>Default theme is using some plugins by default. You can disable a plugin if you really do not want to use it. Make sure you understand what the plugin is for before disabling it.</p></li></ul><h3 id="themeplugins-activeheaderlinks" tabindex="-1"><a class="header-anchor" href="#themeplugins-activeheaderlinks" aria-hidden="true">#</a> themePlugins.activeHeaderLinks</h3>',6),wa=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),Da=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),Ta=s("p",null,"Details:",-1),ja=p("Enable "),Sa=p("@vuepress/plugin-active-header-links"),Ca=p(" or not."),Ea=s("h3",{id:"themeplugins-backtotop",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#themeplugins-backtotop","aria-hidden":"true"},"#"),p(" themePlugins.backToTop")],-1),Ia=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),_a=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),La=s("p",null,"Details:",-1),Na=p("Enable "),Aa=p("@vuepress/plugin-back-to-top"),Ga=p(" or not."),Pa=s("h3",{id:"themeplugins-container",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#themeplugins-container","aria-hidden":"true"},"#"),p(" themePlugins.container")],-1),Ra=s("li",null,[s("p",null,[p("Type: "),s("code",null,"Record<ContainerType, boolean>")])],-1),Ma=s("p",null,"Details:",-1),za=p("Enable custom containers that powered by "),Ba=p("@vuepress/plugin-container"),Ua=p(" or not."),Ya=o("<p><code>ContainerType</code> type is:</p><ul><li><code>tip</code></li><li><code>warning</code></li><li><code>danger</code></li><li><code>details</code></li><li><code>codeGroup</code></li><li><code>codeGroupItem</code></li></ul>",2),Fa=s("p",null,"Also see:",-1),Ha=p("Default Theme > Markdown > Custom Containers"),Oa=s("h3",{id:"themeplugins-git",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#themeplugins-git","aria-hidden":"true"},"#"),p(" themePlugins.git")],-1),Wa=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),Za=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),qa=s("p",null,"Details:",-1),Ja=p("Enable "),Ka=p("@vuepress/plugin-git"),Qa=p(" or not."),Va=s("h3",{id:"themeplugins-mediumzoom",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#themeplugins-mediumzoom","aria-hidden":"true"},"#"),p(" themePlugins.mediumZoom")],-1),Xa=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),$a=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),ne=s("p",null,"Details:",-1),ae=p("Enable "),ee=p("@vuepress/plugin-medium-zoom"),se=p(" or not."),le=s("h3",{id:"themeplugins-nprogress",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#themeplugins-nprogress","aria-hidden":"true"},"#"),p(" themePlugins.nprogress")],-1),te=s("li",null,[s("p",null,[p("Type: "),s("code",null,"boolean")])],-1),pe=s("li",null,[s("p",null,[p("Default: "),s("code",null,"true")])],-1),oe=s("p",null,"Details:",-1),ie=p("Enable "),ce=p("@vuepress/plugin-nprogress"),re=p(" or not.");i.render=function(p,o){const i=n("NpmBadge"),ue=n("RouterLink"),de=n("OutboundLink");return a(),e(t,null,[c,s(i,{package:"@vuepress/theme-default"}),s("p",null,[r,s(ue,{to:"/reference/config.html#themeconfig"},{default:l((()=>[u])),_:1}),d]),h,b,s("ul",null,[m,k,s("li",null,[f,g,y,s("p",null,[v,x,w,s(ue,{to:"/reference/config.html#locales"},{default:l((()=>[D])),_:1}),T])]),s("li",null,[j,s("ul",null,[s("li",null,[s(ue,{to:"/guide/i18n.html"},{default:l((()=>[S])),_:1})])])])]),C,s("ul",null,[s("li",null,[E,s("ul",null,[s("li",null,[s(ue,{to:"/guide/assets.html#public-files"},{default:l((()=>[I])),_:1})])])])]),_,s("ul",null,[L,N,s("li",null,[A,G,s("p",null,[P,R,M,s("a",z,[B,s(de)]),U])])]),Y,s("ul",null,[F,s("li",null,[H,O,s("p",null,[W,Z,q,s(ue,{to:"/reference/config.html#locales"},{default:l((()=>[J])),_:1}),K])])]),Q,s("ul",null,[V,X,s("li",null,[$,nn,s("p",null,[an,s(ue,{to:"/reference/default-theme/frontmatter.html#sidebar"},{default:l((()=>[en])),_:1}),sn]),ln]),tn]),pn,s("ul",null,[on,cn,s("li",null,[rn,s("p",null,[un,s(ue,{to:"/reference/config.html#markdown-extractheaders"},{default:l((()=>[dn])),_:1}),hn]),bn,s("p",null,[mn,s(ue,{to:"/reference/default-theme/frontmatter.html#sidebardepth"},{default:l((()=>[kn])),_:1}),fn])])]),gn,s("ul",null,[yn,vn,s("li",null,[xn,wn,s("p",null,[Dn,s(ue,{to:"/reference/default-theme/frontmatter.html#editlink"},{default:l((()=>[Tn])),_:1}),jn])])]),Sn,s("ul",null,[Cn,En,s("li",null,[In,_n,s("p",null,[Ln,s(ue,{to:"/reference/default-theme/frontmatter.html#lastupdated"},{default:l((()=>[Nn])),_:1}),An]),Gn])]),Pn,s("ul",null,[Rn,Mn,s("li",null,[zn,Bn,s("p",null,[Un,s(ue,{to:"/reference/default-theme/frontmatter.html#contributors"},{default:l((()=>[Yn])),_:1}),Fn]),Hn])]),On,s("ul",null,[Wn,Zn,s("li",null,[qn,s("p",null,[Jn,s(ue,{to:"/reference/default-theme/markdown.html#custom-containers"},{default:l((()=>[Kn])),_:1}),Qn])])]),Vn,s("ul",null,[Xn,$n,s("li",null,[na,s("p",null,[aa,s(ue,{to:"/reference/default-theme/markdown.html#custom-containers"},{default:l((()=>[ea])),_:1}),sa])])]),la,s("ul",null,[ta,pa,s("li",null,[oa,s("p",null,[ia,s(ue,{to:"/reference/default-theme/markdown.html#custom-containers"},{default:l((()=>[ca])),_:1}),ra])])]),ua,s("ul",null,[da,ha,s("li",null,[ba,s("p",null,[ma,ka,fa,s(ue,{to:"/reference/components.html#outboundlink"},{default:l((()=>[ga])),_:1}),ya]),va])]),xa,s("ul",null,[wa,Da,s("li",null,[Ta,s("p",null,[ja,s(ue,{to:"/reference/plugin/active-header-links.html"},{default:l((()=>[Sa])),_:1}),Ca])])]),Ea,s("ul",null,[Ia,_a,s("li",null,[La,s("p",null,[Na,s(ue,{to:"/reference/plugin/back-to-top.html"},{default:l((()=>[Aa])),_:1}),Ga])])]),Pa,s("ul",null,[Ra,s("li",null,[Ma,s("p",null,[za,s(ue,{to:"/reference/plugin/container.html"},{default:l((()=>[Ba])),_:1}),Ua]),Ya]),s("li",null,[Fa,s("ul",null,[s("li",null,[s(ue,{to:"/reference/default-theme/markdown.html#custom-containers"},{default:l((()=>[Ha])),_:1})])])])]),Oa,s("ul",null,[Wa,Za,s("li",null,[qa,s("p",null,[Ja,s(ue,{to:"/reference/plugin/git.html"},{default:l((()=>[Ka])),_:1}),Qa])])]),Va,s("ul",null,[Xa,$a,s("li",null,[ne,s("p",null,[ae,s(ue,{to:"/reference/plugin/medium-zoom.html"},{default:l((()=>[ee])),_:1}),se])])]),le,s("ul",null,[te,pe,s("li",null,[oe,s("p",null,[ie,s(ue,{to:"/reference/plugin/nprogress.html"},{default:l((()=>[ce])),_:1}),re])])])],64)};export default i;
|
import angular from 'angular';
/* Services */
import urlBuilder from 'shared/services/util/ps-urlBuilder';
import exceptionService from 'shared/services/util/ps-exception';
import interceptorService from 'shared/services/util/ps-interceptor';
import { pickUpServiceName, pickUpService } from './pickUp.service';
const MODULE_NAME = 'ps-pickUpResource';
/**
* Defines the service module for the resource ps-addressResource
*/
angular.module(MODULE_NAME, [
// Util Services
urlBuilder,
exceptionService,
interceptorService,
])
.service(pickUpServiceName, pickUpService);
export default MODULE_NAME;
|
module.exports = {
purge: ["./src/**/*.{js,jsx,ts,tsx}", "./public/index.html"],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
primary: "#FF6363",
secondary: {
100: "#E2E2D5",
200: "#888883",
},
},
fontFamily: {
body: ["Nunito"],
},
},
},
variants: {
extend: {},
},
plugins: [],
};
|
// This file was procedurally generated from the following sources:
// - src/class-elements/rs-static-generator-method-privatename-identifier.case
// - src/class-elements/productions/cls-decl-after-same-line-static-gen.template
/*---
description: Valid Static GeneratorMethod PrivateName (field definitions after a static generator in the same line)
esid: prod-FieldDefinition
features: [class-static-methods-private, generators, class, class-fields-public]
flags: [generated]
includes: [propertyHelper.js]
info: |
ClassElement :
MethodDefinition
static MethodDefinition
FieldDefinition ;
static FieldDefinition ;
;
MethodDefinition :
GeneratorMethod
GeneratorMethod :
* ClassElementName ( UniqueFormalParameters ){ GeneratorBody }
ClassElementName :
PropertyName
PrivateName
PrivateName ::
# IdentifierName
IdentifierName ::
IdentifierStart
IdentifierName IdentifierPart
IdentifierStart ::
UnicodeIDStart
$
_
\ UnicodeEscapeSequence
IdentifierPart::
UnicodeIDContinue
$
\ UnicodeEscapeSequence
<ZWNJ> <ZWJ>
UnicodeIDStart::
any Unicode code point with the Unicode property "ID_Start"
UnicodeIDContinue::
any Unicode code point with the Unicode property "ID_Continue"
NOTE 3
The sets of code points with Unicode properties "ID_Start" and
"ID_Continue" include, respectively, the code points with Unicode
properties "Other_ID_Start" and "Other_ID_Continue".
---*/
class C {
static *m() { return 42; } static * #$(value) {
yield * value;
}
static * #_(value) {
yield * value;
}
static * #\u{6F}(value) {
yield * value;
}
static * #\u2118(value) {
yield * value;
}
static * #ZW_\u200C_NJ(value) {
yield * value;
}
static * #ZW_\u200D_J(value) {
yield * value;
};
static get $() {
return this.#$;
}
static get _() {
return this.#_;
}
static get \u{6F}() {
return this.#\u{6F};
}
static get \u2118() {
return this.#\u2118;
}
static get ZW_\u200C_NJ() {
return this.#ZW_\u200C_NJ;
}
static get ZW_\u200D_J() {
return this.#ZW_\u200D_J;
}
}
var c = new C();
assert.sameValue(C.m().next().value, 42);
assert.sameValue(Object.hasOwnProperty.call(c, "m"), false);
assert.sameValue(Object.hasOwnProperty.call(C.prototype, "m"), false);
verifyProperty(C, "m", {
enumerable: false,
configurable: true,
writable: true,
});
assert.sameValue(C.$([1]).next().value, 1);
assert.sameValue(C._([1]).next().value, 1);
assert.sameValue(C.\u{6F}([1]).next().value, 1);
assert.sameValue(C.\u2118([1]).next().value, 1);
assert.sameValue(C.ZW_\u200C_NJ([1]).next().value, 1);
assert.sameValue(C.ZW_\u200D_J([1]).next().value, 1);
|
/** @license React vundefined
* react-dom-unstable-fizz.node.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
if (process.env.NODE_ENV !== "production") {
(function() {
'use strict';
function scheduleWork(callback) {
setImmediate(callback);
}
function flushBuffered(destination) {
// If we don't have any more data to send right now.
// Flush whatever is in the buffer to the wire.
if (typeof destination.flush === 'function') {
// By convention the Zlib streams provide a flush function for this purpose.
destination.flush();
}
}
function beginWriting(destination) {
destination.cork();
}
function writeChunk(destination, buffer) {
var nodeBuffer = buffer; // close enough
destination.write(nodeBuffer);
}
function completeWriting(destination) {
destination.uncork();
}
function close(destination) {
destination.end();
}
function convertStringToBuffer(content) {
return Buffer.from(content, 'utf8');
}
function formatChunk(type, props) {
var str = '<' + type + '>';
if (typeof props.children === 'string') {
str += props.children;
}
str += '</' + type + '>';
return convertStringToBuffer(str);
}
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
// TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
// (unstable) APIs that have been removed. Can we remove the symbols?
function createRequest(children, destination) {
return {
destination: destination,
children: children,
completedChunks: [],
flowing: false
};
}
function performWork(request) {
var element = request.children;
request.children = null;
if (element && element.$$typeof !== REACT_ELEMENT_TYPE) {
return;
}
var type = element.type;
var props = element.props;
if (typeof type !== 'string') {
return;
}
request.completedChunks.push(formatChunk(type, props));
if (request.flowing) {
flushCompletedChunks(request);
}
flushBuffered(request.destination);
}
function flushCompletedChunks(request) {
var destination = request.destination;
var chunks = request.completedChunks;
request.completedChunks = [];
beginWriting(destination);
try {
for (var i = 0; i < chunks.length; i++) {
var chunk = chunks[i];
writeChunk(destination, chunk);
}
} finally {
completeWriting(destination);
}
close(destination);
}
function startWork(request) {
request.flowing = true;
scheduleWork(function () {
return performWork(request);
});
}
function startFlowing(request, desiredBytes) {
request.flowing = false;
flushCompletedChunks(request);
}
// This file intentionally does *not* have the Flow annotation.
// Don't add it. See `./inline-typed.js` for an explanation.
function createDrainHandler(destination, request) {
return function () {
return startFlowing(request, 0);
};
}
function pipeToNodeWritable(children, destination) {
var request = createRequest(children, destination);
destination.on('drain', createDrainHandler(destination, request));
startWork(request);
}
var ReactDOMFizzServerNode = {
pipeToNodeWritable: pipeToNodeWritable
};
var ReactDOMFizzServerNode$1 = Object.freeze({
default: ReactDOMFizzServerNode
});
var ReactDOMFizzServerNode$2 = ( ReactDOMFizzServerNode$1 && ReactDOMFizzServerNode ) || ReactDOMFizzServerNode$1;
// TODO: decide on the top-level export form.
// This is hacky but makes it work with both Rollup and Jest
var unstableFizz_node = ReactDOMFizzServerNode$2.default || ReactDOMFizzServerNode$2;
module.exports = unstableFizz_node;
})();
}
|
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.FilePrinter = exports.ConsolePrinter = exports.PrinterFactory = void 0;
var fs_1 = __importDefault(require("fs"));
var PrinterFactory = /** @class */ (function () {
function PrinterFactory() {
}
PrinterFactory.prototype.create = function (type) {
var PrinterClass = this.getPrinterClass(type);
return new PrinterClass();
};
PrinterFactory.prototype.getPrinterClass = function (type) {
switch (type) {
case 'file':
return FilePrinter;
case 'console':
return ConsolePrinter;
default:
throw new Error("Unknown printer type: " + type);
}
};
return PrinterFactory;
}());
exports.PrinterFactory = PrinterFactory;
var ConsolePrinter = /** @class */ (function () {
function ConsolePrinter() {
}
ConsolePrinter.prototype.print = function (data) {
console.log('Console print: \n', data);
};
return ConsolePrinter;
}());
exports.ConsolePrinter = ConsolePrinter;
var FilePrinter = /** @class */ (function () {
function FilePrinter() {
}
FilePrinter.prototype.print = function (data) {
var directory = 'output.txt';
fs_1.default.writeFileSync(directory, data);
};
return FilePrinter;
}());
exports.FilePrinter = FilePrinter;
var Program = /** @class */ (function () {
function Program(factory) {
this.factory = factory;
}
Program.prototype.main = function (type) {
var printer = this.factory.create(type);
printer.print('Hello world');
};
return Program;
}());
new Program(new PrinterFactory()).main('file');
//# sourceMappingURL=index.js.map
|
export const cilDataTransferDown = ["512 512","<rect width='480' height='32' x='16' y='464' fill='var(--ci-primary-color, currentColor)' class='ci-primary'/><polygon fill='var(--ci-primary-color, currentColor)' points='395.313 299.313 372.687 276.687 280 369.373 280 16 248 16 248 369.373 155.313 276.687 132.687 299.313 264 430.627 395.313 299.313' class='ci-primary'/>"]
|
// constructor function for departement
class Departement {
constructor(name) {
this.name = name;
}
}
module.exports = Departement;
|
var woof_edit_view = false;
var woof_current_conatiner_class = '';
var woof_current_containers_data = {};
jQuery(function () {
jQuery('.woof_edit_view').click(function () {
woof_edit_view = true;
var sid = jQuery(this).data('sid');
var css_class = 'woof_sid_' + sid;
jQuery(this).next('div').html(css_class);
//+++
jQuery("." + css_class + " .woof_container_overlay_item").show();
jQuery("." + css_class + " .woof_container").addClass('woof_container_overlay');
jQuery.each(jQuery("." + css_class + " .woof_container_overlay_item"), function (index, ul) {
jQuery(this).html(jQuery(this).parents('.woof_container').data('css-class'));
});
return false;
});
woof_init_masonry();
});
function woof_init_masonry() {
return;
/*
var $container = jQuery('.woof_sid');
$container.imagesLoaded(function () {
$container.masonry({
itemSelector: '.woof_container',
columnWidth: 300
});
});
*/
}
/*
function woof_change_cont_width(select) {
var width = parseFloat(jQuery(select).val()) * 100;
jQuery('.' + woof_current_conatiner_class).css('width', width + '%');
}
*/
|
const R = require('ramda');
const async = require('async');
const querystring = require('querystring');
const httpClient = require('@src/clients/http-client');
const oauthWrapper = require('@src/utils/oauth-wrapper');
const CONSTANTS = require('@src/utils/constants');
const accountLinkingApi = require('./resources/account-linking');
const catalogApi = require('./resources/catalog');
const historyApi = require('./resources/history');
const ispApi = require('./resources/isp');
const manifestApi = require('./resources/manifest');
const interactionModelApi = require('./resources/interaction-model');
const privateSkillApi = require('./resources/private-skill');
const skillPackageApi = require('./resources/skill-package');
const skillApi = require('./resources/skill');
const testApi = require('./resources/test');
const vendorApi = require('./resources/vendor');
const evaluationsApi = require('./resources/evaluations');
const alexaHostedApi = require('./resources/alexa-hosted');
const betaTestApi = require('./resources/beta-test');
const publishingApi = require('./resources/publishing');
const taskApi = require('./resources/task');
const JSON_PROPERTIES = ['_links'];
/**
* Class for Alexa Skill Management API Service (SMAPI) client
*/
module.exports = class SmapiClient {
/**
* Constructor for SmapiClient with "profile" for authorization and "doDebug" for client setting
* @param {object} configuration | profile
* | doDebug
*/
constructor(configuration) {
this.profile = configuration.profile;
this.doDebug = configuration.doDebug;
this._smapiRequest = this._smapiRequest.bind(this);
this.smapiRedirectRequestWithUrl = this.smapiRedirectRequestWithUrl.bind(this);
this.listWithAutoPagination = this.listWithAutoPagination.bind(this);
this.skill = skillApi(this._smapiRequest);
this.skill.manifest = manifestApi(this._smapiRequest);
this.skill.interactionModel = interactionModelApi(this._smapiRequest);
this.skill.accountLinking = accountLinkingApi(this._smapiRequest);
this.skill.privateSkill = privateSkillApi(this._smapiRequest);
this.skill.history = historyApi(this._smapiRequest);
this.skill.test = testApi(this._smapiRequest);
this.skill.evaluations = evaluationsApi(this._smapiRequest);
this.skill.alexaHosted = alexaHostedApi(this._smapiRequest);
this.skill.betaTest = betaTestApi(this._smapiRequest);
this.skill.publishing = publishingApi(this._smapiRequest);
this.skillPackage = skillPackageApi(this._smapiRequest);
this.vendor = vendorApi(this._smapiRequest);
this.isp = ispApi(this._smapiRequest);
this.catalog = catalogApi(this._smapiRequest);
this.task = taskApi(this._smapiRequest);
}
/**
* Method to handle response redirect urls sent by SMAPI
* @param {string} url
* @param {function} callback
*/
smapiRedirectRequestWithUrl(url, callback) {
const EMPTY_HEADERS = {};
const method = CONSTANTS.HTTP_REQUEST.VERB.GET;
const NULL_PAYLOAD = null;
const requestOptions = {
url,
method,
headers: EMPTY_HEADERS,
body: NULL_PAYLOAD,
};
oauthWrapper.tokenRefreshAndRead(requestOptions, this.profile, () => {
httpClient.request(requestOptions, 'REDIRECT_URL', this.doDebug, (reqErr, reqResponse) => {
if (reqErr) {
return callback(reqErr);
}
_normalizeSmapiResponse(reqResponse, (handleErr, smapiResponse) => {
callback(handleErr, handleErr ? null : smapiResponse);
});
});
});
}
/**
* The SMAPI specific function to extract list results by traversing all pages and return aggregated list results.
* @param {Array} callApiTrack Array to represent the target SMAPI client API request
* @param {Array} callArgv Array of the input arguements for the SMAPI API request
* @param {String} responseAccessor Name/type of listed element
* @param {Function} responseHandle Handle to extract list result in each page. Return { nextToken, listResult } from each response.
* @param {Function} callback (err, aggregatedListResult)
*/
listWithAutoPagination(callApiTrack, callArgv, responseAccessor, responseHandle, callback) {
const result = {};
result[responseAccessor] = [];
const queryParams = {
maxResults: CONSTANTS.SMAPI.DEFAULT_MAX_RESULT_PER_PAGE,
};
const smapiMethod = R.path(callApiTrack, this);
async.doWhilst(
(loopCallback) => {
smapiMethod(...callArgv, queryParams, (err, res) => {
if (err) {
return loopCallback(err, null);
}
if (res.statusCode >= 300) {
// TODO stringify the body
return loopCallback(res.body, null);
}
const parseResult = responseHandle(res);
queryParams.nextToken = parseResult.nextToken;
result[responseAccessor] = result[responseAccessor].concat(parseResult.listResult);
loopCallback(null, result);
});
},
() => queryParams.nextToken,
(err, res) => callback(err, err ? null : res)
);
}
/**
* Generic SMAPI http request wrapper
* @param {String} apiName API name for metrics usage
* @param {String} method HTTP method
* @param {String} version SMAPI version
* @param {String} urlPath Path component for a SMAPI url
* @param {Object} queryParams Map of querry parameters
* @param {Object} headers Map of headers
* @param {Object} payload Payload body
* @param {Function} callback (err, requestResponse)
*/
_smapiRequest(apiName, method, version, urlPath, queryParams, headers, payload, callback) {
const qs = querystring.stringify(queryParams) && `?${querystring.stringify(queryParams)}`;
const requestOptions = {
url: `${CONSTANTS.SMAPI.ENDPOINT}/${version}/${urlPath}${qs}`,
method,
headers: headers || {},
body: payload,
json: !!payload
};
// TODO: Improve oauthWrapper module since current tokenRefreshAndRead is short circuit style.
oauthWrapper.tokenRefreshAndRead(requestOptions, this.profile, () => {
httpClient.request(requestOptions, apiName, this.doDebug, (reqErr, reqResponse) => {
if (reqErr) {
return callback(reqErr);
}
_normalizeSmapiResponse(reqResponse, (normalizeErr, smapiResponse) => {
callback(normalizeErr, normalizeErr ? null : smapiResponse);
});
});
});
}
};
/**
* Common function to validate and normalize SMAPI response.
* @param {Object} reqResponse the response from SMAPI
* @param {Function} callback (error, { statusCode, body, headers })
*/
function _normalizeSmapiResponse(reqResponse, callback) {
let parsedResponseBody;
try {
_validateSmapiResponse(reqResponse);
parsedResponseBody = _cleanResponseBody(reqResponse.body);
} catch (validateErr) {
return callback(validateErr);
}
callback(null, {
statusCode: reqResponse.statusCode,
body: parsedResponseBody,
headers: reqResponse.headers
});
}
/**
* Validate SMAPI's response
* 1. If SMAPI response doesn't contain error object but status code >= 300
* 2. If SMAPI response body is valid JSON object
*
* @param {Object} reqResponse the response from SMAPI
*/
function _validateSmapiResponse(reqResponse) {
if (reqResponse.statusCode >= 300 && !reqResponse.body) {
throw `[Fatal]: SMAPI error code ${reqResponse.statusCode}. No response body from the service request.`;
}
try {
if (reqResponse.body && typeof reqResponse.body === 'string') {
reqResponse.body = JSON.parse(reqResponse.body);
}
} catch (parseErr) {
throw `[Fatal]: Failed to parse SMAPI's response. Please run again with --debug to check more details.\nError: ${parseErr}`;
}
}
/**
* function to clean up properties (such as _links) from the response body.
* @param {Object} reqResponseBody
*/
function _cleanResponseBody(reqResponseBody) {
if (reqResponseBody) {
Object.keys(reqResponseBody).forEach((key) => {
if (JSON_PROPERTIES.includes(key)) {
reqResponseBody = R.omit([key], reqResponseBody);
} else if (typeof reqResponseBody[key] === 'object') {
reqResponseBody[key] = _cleanResponseBody(reqResponseBody[key]);
}
});
}
return reqResponseBody;
}
|
const { exec } = require('child_process')
module.exports = {
commands: ['execute'],
callback: async (message, args) => {
if (message.author.id !== '298589600132366339') return message.channel.send('You cannot use this command.')
exec(args.join(' '), (error, stdout) => {
const response = stdout || error;
message.channel.send(response, {split: true, code: true});
});
}
}
|
"use strict";
var copyPrototype = require("./copy-prototype");
module.exports = copyPrototype(Map.prototype);
|
import React, { useEffect, useState } from 'react';
import {Stack, Layout, TextStyle, DisplayText, Card, Button, Frame} from '@shopify/polaris';
import instance from './Interceptor';
// import Empty from './Empty';
import Skeleton from './utils/Skeleton';
const Dashboard = () => {
const [ installed, setInstalled ] = useState();
const [skeleton, setSkeleton] = useState(true);
const [storeType, setStoreType] = useState();
const [loading, setLoading] = useState(false);
useEffect(() => {
const apiUrl = `/api/getdata`;
instance.get(apiUrl)
.then((data) => {
// console.log(data.data);
if(data.data.billingRoute){
window.top.location.href = data.data.billingRoute;
}
setInstalled(data.data.installed);
setStoreType(data.data.store_type);
setSkeleton(false), [setSkeleton];
});
}, [setInstalled]);
const install = () => {
setLoading(true);
instance.get('/api/install')
.then(response => {
setInstalled(true);
setLoading(false);
console.log(response)
})
}
const uninstall = () => {
setLoading(true);
instance.get('api/uninstall')
.then(response => {
setInstalled(false);
setLoading(false);
console.log(response)
})
}
if(skeleton){
return(
<Skeleton/>
)
}
return (
<Frame>
<>
<Layout sectioned={true}>
<Layout.Section>
<Card title={installed ? "App status: Initiated" : "App status: Not initiated yet"} sectioned={true} actions={[{content: 'View details', url: '/internal'}]}>
<Card.Section>
<Stack>
<TextStyle>Some text here for store type {storeType}</TextStyle>
</Stack>
<Stack distribution="trailing">
{
storeType == "1.0" ? <Button loading={loading} primary onClick={installed ? uninstall : install}>{installed ? "Deactivate App" : "Inititate App"}</Button> : ""
}
</Stack>
</Card.Section>
<Card.Section title="Something">
<Stack>
<TextStyle>Some text here for store type {storeType}</TextStyle>
</Stack>
</Card.Section>
<Card.Section title="Something">
<Stack>
<TextStyle>Some text here for store type {storeType}</TextStyle>
</Stack>
</Card.Section>
</Card>
</Layout.Section>
</Layout>
</>
</Frame>
)
}
export default Dashboard;
|
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'tachyons';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
/**
* Copyright IBM Corp. 2019, 2020
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*
* Code generated by @carbon/icon-build-helpers. DO NOT EDIT.
*/
import { _ as _objectWithoutProperties, I as Icon, a as _extends } from '../Icon-83b9d1f1.js';
import '@carbon/icon-helpers';
import 'prop-types';
import React from 'react';
var _ref2 =
/*#__PURE__*/
/*#__PURE__*/
React.createElement("path", {
d: "M16,4V6h6.5859L16.05,12.5356a6.954,6.954,0,0,0-2.05,4.95V28h2V17.4854A4.9683,4.9683,0,0,1,17.4644,13.95L24,7.4141V14h2V4Z"
});
var _ref3 =
/*#__PURE__*/
/*#__PURE__*/
React.createElement("path", {
d: "M8.5 5.55H10.5V13.45H8.5z",
transform: "rotate(-45 9.5 9.5)"
});
var DirectionBearRight_0220 = /*#__PURE__*/React.forwardRef(function DirectionBearRight_0220(_ref, ref) {
var children = _ref.children,
rest = _objectWithoutProperties(_ref, ["children"]);
return /*#__PURE__*/React.createElement(Icon, _extends({
width: 20,
height: 20,
viewBox: "0 0 32 32",
xmlns: "http://www.w3.org/2000/svg",
fill: "currentColor",
ref: ref
}, rest), _ref2, _ref3, children);
});
export default DirectionBearRight_0220;
|
import React from 'react';
import ToolBox from './ToolBox';
import Product from './Product';
class Products extends React.Component{
state = {
products:[]
};
componentDidMount(){
fetch('http://localhost:3003/products').then(response => response.json())
.then(data=>{
console.log(data);
this.setState({
products: data
}
});
}
render(){
return(
<div>
<ToolBox/>
<div className="products">
<div className="columns is-multiline is-dektop">
{
this.state.products.map(p=>{
return(
<div className="column is-3" key={p.id}>
<Product product={p}/>
</div>
);
})
}
</div>
</div>
</div>
)
}
}
export default Products;
|
import './src/base.css';
|
import { inject, observer } from "mobx-react";
import React, { useEffect, useState } from "react";
import {
Container,
Nav,
Navbar,
NavDropdown,
} from "react-bootstrap";
import { useHistory } from "react-router-dom";
import AuthService from "../../../Services/AuthService";
const Layout = (props) => {
const [user, setUser] = useState({});
const [isLoggedIn, setIsLoggedIn] = useState(false);
props.AuthStore.getToken();
useEffect(() => {
const token =
props.AuthStore.appState != null
? props.AuthStore.appState.user.access_token
: null;
let authService = new AuthService();
authService
.authenticate(token)
.then((result) => {
if (!result.data.isLoggedIn) {
props.history.push("/login");
}
setUser(result.data.user);
setIsLoggedIn(result.data.isLoggedIn);
})
.catch((e) => {
props.history.push("/login");
});
}, []);
const logout = () => {
const token =
props.AuthStore.appState != null
? props.AuthStore.appState.user.access_token
: null;
let authService = new AuthService();
authService
.logout(token)
.then((res) => console.log(res))
.catch((e) => console.log(e));
props.AuthStore.removeToken();
window.location.href = '/login';
};
return (
<>
<Navbar style={{background:'#2f5e58'}}>
<Container >
<Navbar.Brand style={{color:'#fff'}} href="/">CRM ADMİN</Navbar.Brand>
<Navbar.Toggle />
<Navbar.Collapse className="justify-content-start text-white">
<Nav >
<NavDropdown
title="Ürün Yönetimi"
>
<NavDropdown.Item href="/urunler">Ürünler</NavDropdown.Item>
<NavDropdown.Item href="/urunler/ekle">Yeni Ürün</NavDropdown.Item>
</NavDropdown>
</Nav>
<Nav >
<NavDropdown
title="Kategori Yönetimi"
>
<NavDropdown.Item href="/kategoriler">Kategoriler</NavDropdown.Item>
<NavDropdown.Item href="/kategoriler/ekle">Yeni Kategori</NavDropdown.Item>
</NavDropdown>
</Nav>
</Navbar.Collapse>
<Navbar.Collapse className="justify-content-end">
<Nav>
<NavDropdown
id="nav-dropdown-dark-example"
title={user.name}
menuVariant="dark"
>
<NavDropdown.Item href="/">Hesap Ayarları</NavDropdown.Item>
<NavDropdown.Divider />
<NavDropdown.Item onClick={logout}>Çıkış Yap</NavDropdown.Item>
</NavDropdown>
</Nav>
</Navbar.Collapse>
</Container>
</Navbar>
<div>{props.children}</div>
</>
);
};
export default inject("AuthStore")(observer(Layout));
|
/* eslint-disable */
import React from 'react';
import { Svg, Path } from 'react-native-svg';
import { getIconColor } from './helper';
let Iconlocation = ({ size, color, ...rest }) => {
return (
<Svg viewBox="0 0 1024 1024" width={size} height={size} {...rest}>
<Path
d="M511.424 885.994667c-7.765333 0-15.509333-2.410667-22.08-7.253334-11.754667-8.661333-288-213.653333-288-430.08 0-170.986667 139.072-310.08 310.08-310.08 170.986667 0 310.08 139.093333 310.08 310.08 0 216.426667-276.266667 421.504-288 430.08-6.506667 4.842667-14.336 7.253333-22.08 7.253334z m0-672.661334C381.653333 213.333333 276.053333 318.933333 276.053333 448.661333c0 147.093333 172.928 301.504 235.349334 352.426667 62.4-50.922667 235.306667-205.333333 235.306666-352.426667 0-129.834667-105.557333-235.328-235.306666-235.328z"
fill={getIconColor(color, 0, '#333333')}
/>
<Path
d="M511.424 595.093333a146.56 146.56 0 0 1-146.432-146.432 146.56 146.56 0 0 1 146.432-146.410666c80.746667 0 146.496 65.664 146.496 146.410666 0 80.746667-65.749333 146.432-146.496 146.432z m0-218.176a71.808 71.808 0 0 0-71.765333 71.744 71.808 71.808 0 0 0 71.765333 71.765334 71.808 71.808 0 0 0 71.744-71.765334 71.808 71.808 0 0 0-71.744-71.744z"
fill={getIconColor(color, 1, '#A4A9B4')}
/>
</Svg>
);
};
Iconlocation.defaultProps = {
size: 18,
};
Iconlocation = React.memo ? React.memo(Iconlocation) : Iconlocation;
export default Iconlocation;
|
import React from "react"
import { Link, graphql } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
export default function Home({ data }) {
return (
<Layout>
<SEO title="home" />
{data.allWpPost.nodes.map((node) => (
<div key={node.slug}>
<Link to={node.link}>
<p>{node.title}</p>
</Link>
<div dangerouslySetInnerHTML={{ __html: node.excerpt }} />
</div>
))}
</Layout>
)
}
export const pageQuery = graphql`
query {
allWpPost(sort: { fields: [date], order: DESC }) {
nodes {
title
excerpt
slug
link
}
}
}
`
|
var Uber = require('node-uber');
var secrets = require('../secrets');
var authenticate = function (req, reply) {
var models = server.plugins.models;
var uber = new Uber(secrets.uber);
var code = req.payload.code;
var id = req.params.user_id;
uber.authorization({authorization_code: code}, function (err, at, rt) {
if(err) return reply(err);
var access_token = at;
var refresh_token = rt;
models.user.findById(id, function(err, user){
if(err) return reply(err);
user.access_token = access_token;
user.refresh_token = refresh_token;
user.save(function(err, u){
if(err) return reply(err);
reply({message: "User Authenticated"});
})
})
});
}
module.exports = {
authenticate: authenticate
};
|
$.extend($.fn.datagrid.methods, {
autoMergeCells: function(jq, fields) {
return jq.each(function() {
var target = $(this);
if (!fields) {
fields = target.datagrid("getColumnFields");
}
var rows = target.datagrid("getRows");
var i = 0,
j = 0,
temp = {};
for (i; i < rows.length; i++) {
var row = rows[i];
j = 0;
for (j; j < fields.length; j++) {
var field = fields[j];
var tf = temp[field];
if (!tf) {
tf = temp[field] = {};
tf[row[field]] = [i];
} else {
var tfv = tf[row[field]];
if (tfv) {
tfv.push(i);
} else {
tfv = tf[row[field]] = [i];
}
}
}
}
$.each(temp,
function(field, colunm) {
$.each(colunm,
function() {
var group = this;
if (group.length > 1) {
var before, after, megerIndex = group[0];
for (var i = 0; i < group.length; i++) {
before = group[i];
after = group[i + 1];
if (after && (after - before) == 1) {
continue;
}
var rowspan = before - megerIndex + 1;
if (rowspan > 1) {
target.datagrid('mergeCells', {
index: megerIndex,
field: field,
rowspan: rowspan
});
}
if (after && (after - before) != 1) {
megerIndex = after;
}
}
}
});
});
});
}
});
|
import {
formattedDay,
yearMonthDay,
parseDay,
parseMonth,
parseYear,
getFirstDay,
getLastDay,
getDates,
isSelected,
setSelected,
beforeFirstDayInMonth,
afterLastDayInMonth,
} from "./_util";
import dayjs from "dayjs";
const state = {
today: "2020-01-01",
firstAvailableDate: "2020-01-01",
lastAvailableDate: "2020-01-15",
};
describe("Handles formatting", function () {
test("Full date", async () => {
const day = formattedDay("2020-01-01");
expect(day).toEqual("Wednesday January 01 2020");
});
test("YYYY-MM-DD", async () => {
const day = yearMonthDay("2020-01-01");
expect(day).toEqual("2020-01-01");
});
test("day", async () => {
const day = parseDay("2020-01-01");
expect(day).toEqual("1");
});
test("month", async () => {
const day = parseMonth("2020-01-01");
expect(day).toEqual("01");
});
test("year", async () => {
const day = parseYear("2020-01-01");
expect(day).toEqual("2020");
});
});
describe("First and Last days", function () {
test("First day", async () => {
const day = getFirstDay("2020-01-01");
expect(day).toEqual("1");
});
test("Last day", async () => {
const day = getLastDay("2020-01-01");
expect(day).toEqual("31");
});
});
describe("Creates an array of dayjs dates", function () {
test("Dates", async () => {
const dates = getDates("2020-01-01");
const { $D: day } = dates[1][0];
expect(day).toEqual(5);
});
});
describe("Selected dates", function () {
test("Is selected", async () => {
expect(isSelected(["2020-01-01"], "2020-01-01")).toEqual(0);
expect(isSelected(["2020-01-01"], "2020-01-02")).toEqual(-1);
});
test("Date select & deselect", async () => {
const dates = setSelected([], "2020-01-01");
expect(dates[0]).toEqual("2020-01-01");
expect(setSelected(dates, "2020-01-01")).toEqual([]);
});
test("Multi date select & deselect", async () => {
let dates = [];
//select a day
dates = setSelected(dates, "2020-01-01", true);
// select another day
dates = setSelected(dates, "2020-01-02", true);
expect(dates[1]).toEqual("2020-01-02");
// deselect the second day
dates = setSelected(dates, "2020-01-02", true);
expect(dates[0]).toEqual("2020-01-01");
});
});
describe("Is before or after date", function () {
test("Is at start of calendar", async () => {
let date = "2050-01-01";
let firstAvailableDate = dayjs(date);
let stateObj = { ...state, firstAvailableDate, focusedDayNum: 1 };
expect(beforeFirstDayInMonth(stateObj)).toEqual({
updateMessage: "at_start_of_calendar",
});
});
test("Is at start of month but before first available", async () => {
let date = "2020-03-01"; // year month date we're displaying on the calendar
let firstAvailableDate = dayjs("2020-01-14");
let stateObj = { ...state, date, firstAvailableDate, focusedDayNum: 1 };
// Calendar date is March 01 2020
// expecting to move to last day in the previous month (Feb 29 2020)
expect(beforeFirstDayInMonth(stateObj)).toEqual({
date: "2020-02-01",
focusedDayNum: 29,
updateMessage: "",
});
});
test("Is at end of calendar", async () => {
let date = "2020-02-01";
let lastDay = getLastDay(date);
let stateObj = { ...state, lastDay, focusedDayNum: 29 };
expect(afterLastDayInMonth(stateObj)).toEqual({
updateMessage: "at_end_of_calendar",
});
});
test("Is at start of month but before last available", async () => {
let date = "2020-02-01";
let lastDay = getLastDay(date);
let lastAvailableDate = dayjs("2020-03-31");
let stateObj = {
...state,
date,
lastDay,
focusedDayNum: 29,
lastAvailableDate,
};
expect(afterLastDayInMonth(stateObj)).toEqual({
date: "2020-03-01",
focusedDayNum: 1,
updateMessage: "",
});
});
});
describe("Next day", function () {
// on first day left right up down
// on last day left right up down
// on 14th day left right up down
});
|
var jsxControlStatements = require('jsx-control-statements');
const addTemplatesToModule = require('./addTemplatesToModule');
const constructTemplates = require('./constructTemplates');
const isComponent = require('./helpers/is-component');
module.exports = function (babel) {
const t = babel.types;
// skip passing them as values
const literalTypes = {
Literal: true,
StringLiteral: true,
NumericLiteral: true,
BooleanLiteral: true
};
function handleWhiteSpace(str) {
str = str.replace(/\t/g, '');
str = str.replace(/(\s*[\r\n]\s*)/g, '');
return str;
}
function isAttrAnEvent(attr) {
return attr[0] === 'o' && attr[1] === 'n' && attr.length > 3;
}
function isAttrAHook(hook) {
return hook === 'onCreated'
|| hook === 'onAttached'
|| hook === 'onWillDetach'
|| hook === 'onWillUpdate'
|| hook === 'onDidUpdate';
}
function processAttributes(t, attributes, root, templateElem) {
let property = 'attrs';
if (attributes && attributes.length) {
templateElem.staticAttrs = true;
for (let i = 0; i < attributes.length; i++) {
const attribute = attributes[i];
let attrName;
// JSXSpreadAttribute attribute
if (attribute.type === 'JSXSpreadAttribute') {
const name = attribute.argument.name;
root.templateString += name + '=$$|';
if (!templateElem.spread) {
templateElem.spread = {};
}
templateElem.spread[name] = true;
templateElem.staticAttrs = false;
continue;
} else if (attribute.name.type === 'JSXNamespacedName') {
attrName = attribute.name.namespace.name + ':' + attribute.name.name.name;
} else {
attrName = attribute.name.name;
}
if (isAttrAHook(attrName)) {
property = 'hooks';
} else if (!templateElem.isComponent && isAttrAnEvent(attrName)) {
property = 'events';
} else {
property = 'attrs';
}
if (attribute.type === 'JSXAttribute') {
const value = attribute.value;
if (value) {
const expression = value.expression;
if (expression !== undefined) {
if (literalTypes[expression.type]) {
root.templateString += attrName + '=' + expression.value + '|-|';
templateElem[property][attrName] = expression;
} else if (expression.type === 'NullLiteral') {
root.templateString += attrName + '=null|-|';
templateElem[property][attrName] = null;
templateElem.staticAttrs = false;
} else if (expression.type === 'BinaryExpression'
&& literalTypes[expression.left.type] && literalTypes[expression.right.type]) {
root.templateString += attrName + '=' + expression.left.value + ' ' + expression.operator + ' ' + expression.right.value + '|-|';
templateElem[property][attrName] = expression;
} else {
root.templateString += attrName + '=$$|';
templateElem[property][attrName] = expression;
templateElem.staticAttrs = false;
}
} else if (literalTypes[attribute.value.type]) {
root.templateString += attrName + '=' + attribute.value.value + '|-|';
templateElem[property][attrName] = attribute.value.value;
} else if (attribute.value.type === 'NullLiteral') {
root.templateString += attrName + '=null|-|';
templateElem[property][attrName] = null;
}
} else {
root.templateString += attrName + '=true|-|';
templateElem[property][attrName] = true;
}
}
}
}
}
function processElement(t, element, root, parentTemplateElem, counter) {
if (element.type === 'JSXElement') {
if (element.openingElement) {
const tagName = element.openingElement.name;
let templateElem;
if (t.isJSXIdentifier(tagName) && !isComponent(tagName.name)) {
templateElem = {
tag: t.StringLiteral(tagName.name),
children: null,
attrs: {},
events: {},
hooks: {},
id: counter.id++
};
if (element.openingElement.attributes && element.openingElement.attributes.length > 0) {
processAttributes(t, element.openingElement.attributes, root, templateElem);
}
} else {
templateElem = {
tag: tagName,
attrs: {},
hooks: {},
children: null,
isComponent: true,
id: counter.id++
};
if (element.openingElement.attributes && element.openingElement.attributes.length > 0) {
processAttributes(t, element.openingElement.attributes, root, templateElem);
}
}
root.templateString += tagName + '|';
if (!root.templateElem) {
root.templateElem = templateElem;
}
if (!element.selfClosing) {
templateElem.children = [];
processChildren(t, element.children, root, templateElem, counter);
}
if (parentTemplateElem) {
parentTemplateElem.children.push(templateElem);
}
}
} else if (element.type === 'JSXExpressionContainer') {
if (element.expression.type === 'StringLiteral') {
parentTemplateElem.children.push(element.expression.value);
root.templateString += element.expression.value + '|';
} else {
root.templateString += '$$|';
parentTemplateElem.children.push(element.expression);
}
} else if (element.type === 'Literal') {
parentTemplateElem.children.push(element.value);
root.templateString += element.value + '|';
} else if (element.type === 'JSXText') {
const text = handleWhiteSpace(element.value);
if (text !== '') {
parentTemplateElem.children.push(text);
root.templateString += text + '|';
}
} else {
parentTemplateElem.children.push(element);
}
}
function processChildren(t, children, root, parentTemplateElem, counter) {
if (children && children.length) {
for (let i = 0; i < children.length; i++) {
const child = children[i];
processElement(t, child, root, parentTemplateElem, counter);
}
}
}
function getHoistedNode(lastNode, path) {
if (path.parentPath === null) {
const body = path.node.body;
const index = body.indexOf(lastNode);
return {
node: path.node,
index: index
};
} else {
return getHoistedNode(path.node, path.parentPath);
}
}
var replaceControlStatements = jsxControlStatements(babel).visitor;
var replaceJSXtoHyperscript = {
JSXElement: {
enter: function(path, state) {
if (path.parent.type === 'JSXElement') {
return;
}
const opts = state.opts;
let node = path.node;
const root = {
templateElem: null,
templateString: '',
templateKey: null
};
const counter = opts.counter;
processElement(t, node, root, null, counter);
const templates = {};
const templateCalls = constructTemplates(t, root.templateElem, templates);
path.replaceWith(templateCalls);
addTemplatesToModule(t, getHoistedNode(path.node, path.parentPath), templates, opts.pragma, opts.pragmaMethod);
}
}
};
return {
inherits: require('babel-plugin-syntax-jsx'),
visitor: {
Program: {
enter: function(path, state) {
if (!state.opts.counter) {
state.opts.counter = {
id: 0
};
}
path.traverse(replaceControlStatements, state);
path.traverse(replaceJSXtoHyperscript, state);
}
}
}
};
};
|
switch (foo) {
case 1:
break;
case 2:
break;
case 3:
break;
}
|
import {
SET_QUERY,
SET_QUERY_OPTIONS,
LOG_QUERY,
LOG_COMBINED_QUERY,
SET_LOADING,
SET_TIMESTAMP,
SET_HEADERS,
SET_STREAMING,
SET_QUERY_LISTENER,
SET_SEARCH_ID,
SET_ERROR,
SET_PROMOTED_RESULTS,
} from '../constants';
import { setValue } from './value';
import { updateHits, updateAggs, pushToStreamHits } from './hits';
import { buildQuery, isEqual, getSearchState } from '../utils/helper';
import getFilterString from '../utils/analytics';
import { updateMapData } from './maps';
import fetchGraphQL from '../utils/graphQL';
export function setQuery(component, query) {
return {
type: SET_QUERY,
component,
query,
};
}
export function updateQueryOptions(component, options) {
return {
type: SET_QUERY_OPTIONS,
component,
options,
};
}
// gatekeeping for normal queries
export function logQuery(component, query) {
return {
type: LOG_QUERY,
component,
query,
};
}
// gatekeeping for queries combined with map queries
export function logCombinedQuery(component, query) {
return {
type: LOG_COMBINED_QUERY,
component,
query,
};
}
function setLoading(component, isLoading) {
return {
type: SET_LOADING,
component,
isLoading,
};
}
function setError(component, error) {
return {
type: SET_ERROR,
component,
error,
};
}
function setTimestamp(component, timestamp) {
return {
type: SET_TIMESTAMP,
component,
timestamp,
};
}
export function setStreaming(component, status = false, ref = null) {
return {
type: SET_STREAMING,
component,
status,
ref,
};
}
export function setHeaders(headers) {
return {
type: SET_HEADERS,
headers,
};
}
export function setPromotedResults(results = []) {
return {
type: SET_PROMOTED_RESULTS,
results,
};
}
function setSearchId(searchId = null) {
return {
type: SET_SEARCH_ID,
searchId,
};
}
function msearch(
query,
orderOfQueries,
appendToHits = false,
isInternalComponent = false,
appendToAggs = false,
) {
return (dispatch, getState) => {
const {
appbaseRef,
config,
headers,
queryListener,
analytics,
selectedValues,
} = getState();
let searchHeaders = {};
// send search id or term in headers
if (config.analytics && !isInternalComponent) {
const { searchValue, searchId } = analytics;
// if a filter string exists append that to the search headers
const filterString = getFilterString(selectedValues);
// if search id exists use that otherwise
// it implies a new query in which case I send X-Search-Query
if (searchId) {
searchHeaders = Object.assign(
{
'X-Search-Id': searchId,
},
filterString && {
'X-Search-Filters': filterString,
},
);
} else if (searchValue) {
searchHeaders = Object.assign(
{
'X-Search-Query': searchValue,
},
filterString && {
'X-Search-Filters': filterString,
},
);
}
if (config.searchStateHeader) {
const searchState = getSearchState(getState(), true);
if (searchState && Object.keys(searchState).length) {
searchHeaders['X-Search-State'] = JSON.stringify(searchState);
}
}
}
// set loading as active for the given component
orderOfQueries.forEach((component) => {
dispatch(setLoading(component, true));
});
const handleTransformResponse = (res, component) => {
if (config.transformResponse && typeof config.transformResponse === 'function') {
return config.transformResponse(res, component);
}
return new Promise(resolve => resolve(res));
};
const handleError = (error) => {
console.error(error);
orderOfQueries.forEach((component) => {
if (queryListener[component] && queryListener[component].onError) {
queryListener[component].onError(error);
}
dispatch(setError(component, error));
dispatch(setLoading(component, false));
});
};
const handleResponse = (res) => {
const searchId = res._headers ? res._headers.get('X-Search-Id') : null;
if (searchId) {
// if search id was updated set it in store
dispatch(setSearchId(searchId));
}
// handle promoted results
orderOfQueries.forEach((component, index) => {
handleTransformResponse(res.responses[index], component)
.then((response) => {
const { timestamp } = getState();
if (
timestamp[component] === undefined
|| timestamp[component] < res._timestamp
) {
if (response.promoted) {
dispatch(setPromotedResults(response.promoted));
} else {
dispatch(setPromotedResults());
}
if (response.hits) {
dispatch(setTimestamp(component, res._timestamp));
dispatch(updateHits(
component,
response.hits,
response.took,
appendToHits,
));
dispatch(setLoading(component, false));
}
if (response.aggregations) {
dispatch(updateAggs(component, response.aggregations, appendToAggs));
}
}
})
.catch((err) => {
handleError(err);
});
});
};
if (config.graphQLUrl) {
fetchGraphQL(config.graphQLUrl, config.url, config.credentials, config.app, query)
.then((res) => {
handleResponse(res);
})
.catch((err) => {
handleError(err);
});
} else {
appbaseRef.setHeaders({ ...headers, ...searchHeaders });
appbaseRef
.msearch({
type: config.type === '*' ? '' : config.type,
body: query,
})
.then((res) => {
handleResponse(res);
})
.catch((err) => {
handleError(err);
});
}
};
}
function executeQueryListener(listener, oldQuery, newQuery) {
if (listener && listener.onQueryChange) {
listener.onQueryChange(oldQuery, newQuery);
}
}
export function executeQuery(componentId, executeWatchList = false, mustExecuteMapQuery = false) {
return (dispatch, getState) => {
const {
queryLog,
stream,
appbaseRef,
config,
mapData,
watchMan,
dependencyTree,
queryList,
queryOptions,
queryListener,
} = getState();
let orderOfQueries = [];
let finalQuery = [];
const matchAllQuery = { match_all: {} };
let componentList = [componentId];
if (executeWatchList) {
const watchList = watchMan[componentId] || [];
componentList = [...componentList, ...watchList];
}
componentList.forEach((component) => {
// eslint-disable-next-line
let { queryObj, options } = buildQuery(
component,
dependencyTree,
queryList,
queryOptions,
);
const validOptions = ['aggs', 'from', 'sort'];
// check if query or options are valid - non-empty
if (
(queryObj && !!Object.keys(queryObj).length)
|| (options && Object.keys(options).some(item => validOptions.includes(item)))
) {
// attach a match-all-query if empty
if (!queryObj || (queryObj && !Object.keys(queryObj).length)) {
queryObj = { ...matchAllQuery };
}
const currentQuery = {
query: { ...queryObj },
...options,
...queryOptions[component],
};
const queryToLog = {
query: { ...queryObj },
...options,
...queryOptions[component],
};
const oldQuery = queryLog[component];
if (mustExecuteMapQuery || !isEqual(currentQuery, oldQuery)) {
orderOfQueries = [...orderOfQueries, component];
// log query before adding the map query,
// since we don't do gatekeeping on the map query in the `queryLog`
dispatch(logQuery(component, queryToLog));
// add maps query here
const isMapComponent = Object.keys(mapData).includes(component);
if (isMapComponent && mapData[component].query) {
// attach mapQuery to exisiting query via "must" type
const existingQuery = currentQuery.query;
currentQuery.query = {
bool: {
must: [existingQuery, mapData[component].query],
},
};
if (!mapData[component].persistMapQuery) {
// clear mapQuery if we don't want it to persist
dispatch(updateMapData(componentId, null, false));
}
// skip the query execution if the combined query [component + map Query]
// matches the logged combined query
const { combinedLog } = getState();
if (isEqual(combinedLog[component], currentQuery)) return;
// log query after adding the map query,
// to separately support gatekeeping for combined map queries
dispatch(logCombinedQuery(component, currentQuery));
}
executeQueryListener(queryListener[component], oldQuery, currentQuery);
// execute streaming query if applicable
if (stream[component] && stream[component].status) {
if (stream[component].ref) {
stream[component].ref.stop();
}
const ref = appbaseRef.searchStream(
{
type: config.type === '*' ? '' : config.type,
body: currentQuery,
},
(response) => {
if (response._id) {
dispatch(pushToStreamHits(component, response));
}
},
(error) => {
if (queryListener[component] && queryListener[component].onError) {
queryListener[component].onError(error);
}
/**
* In android devices, sometime websocket throws error when there is no activity
* for a long time, console.error crashes the app, so changed it to console.warn
*/
console.warn(error);
dispatch(setError(component, error));
dispatch(setLoading(component, false));
},
);
// update streaming ref
dispatch(setStreaming(component, true, ref));
}
// push to combined query for msearch
finalQuery = [
...finalQuery,
{
preference: component,
},
currentQuery,
];
}
}
});
if (finalQuery.length) {
// in case of an internal component the analytics headers should not be included
dispatch(msearch(finalQuery, orderOfQueries, false, componentId.endsWith('__internal')));
}
};
}
export function setQueryOptions(component, queryOptions, execute = true) {
return (dispatch) => {
dispatch(updateQueryOptions(component, queryOptions));
if (execute) {
dispatch(executeQuery(component, true));
}
};
}
export function updateQuery(
{
componentId,
query,
value,
label = null,
showFilter = true,
URLParams = false,
componentType = null,
category = null,
},
execute = true,
) {
return (dispatch) => {
let queryToDispatch = query;
if (query && query.query) {
queryToDispatch = query.query;
}
// don't set filters for internal components
if (!componentId.endsWith('__internal')) {
dispatch(setValue(componentId, value, label, showFilter, URLParams, componentType, category));
}
dispatch(setQuery(componentId, queryToDispatch));
if (execute) dispatch(executeQuery(componentId, true));
};
}
export function loadMore(component, newOptions, appendToHits = true, appendToAggs = false) {
// `appendToAggs` will be `true` in case of consecutive loading
// of data-driven components via composite aggregations.
// This approach will enable us to reset the component's query (aggs)
// whenever there is a change in the component's subscribed source.
return (dispatch, getState) => {
const store = getState();
let { queryObj, options } = buildQuery(
component,
store.dependencyTree,
store.queryList,
store.queryOptions,
);
const { queryLog } = store;
if (!options) options = {};
options = { ...options, ...newOptions };
if (!queryObj || (queryObj && !Object.keys(queryObj).length)) {
queryObj = { match_all: {} };
}
const currentQuery = {
query: { ...queryObj },
...options,
};
// query gatekeeping
if (isEqual(queryLog[component], currentQuery)) return;
dispatch(logQuery(component, currentQuery));
const finalQuery = [
{
preference: component,
},
currentQuery,
];
dispatch(msearch(finalQuery, [component], appendToHits, false, appendToAggs));
};
}
export function setQueryListener(component, onQueryChange, onError) {
return {
type: SET_QUERY_LISTENER,
component,
onQueryChange,
onError,
};
}
|
const buildQuery = require('../gql/query-factories/block-magazine-latest-issue');
/**
* @param {ApolloClient} apolloClient The Apollo GraphQL client that will perform the query.
* @param {object} params
* @param {string} [params.queryFragment] The `graphql-tag` fragment
* to apply to the `magazineLatestIssue` query.
*/
module.exports = async (apolloClient, {
publicationId,
requiresCoverImage,
queryFragment,
queryName,
} = {}) => {
const query = buildQuery({ queryFragment, queryName });
const variables = { input: { publicationId, requiresCoverImage } };
const { data } = await apolloClient.query({ query, variables });
if (!data || !data.magazineLatestIssue) return { node: null };
const { magazineLatestIssue: node } = data;
return { node };
};
|
/* generated by Svelte v3.43.0 */
"use strict";
const { SvelteComponent, append, attr, detach, init, insert, noop, safe_not_equal, svg_element } = require("svelte/internal");
function create_fragment(ctx) {
let svg;
let path;
return {
c() {
svg = svg_element("svg");
path = svg_element("path");
attr(path, "stroke-linecap", "round");
attr(path, "stroke-linejoin", "round");
attr(path, "stroke-width", "2");
attr(path, "d", "M12 18h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z");
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
attr(svg, "class", /*classes*/ ctx[0]);
attr(svg, "style", /*style*/ ctx[1]);
attr(svg, "fill", "none");
attr(svg, "viewBox", "0 0 24 24");
attr(svg, "stroke", "currentColor");
attr(svg, "aria-hidden", "true");
},
m(target, anchor) {
insert(target, svg, anchor);
append(svg, path);
},
p(ctx, [dirty]) {
if (dirty & /*classes*/ 1) {
attr(svg, "class", /*classes*/ ctx[0]);
}
if (dirty & /*style*/ 2) {
attr(svg, "style", /*style*/ ctx[1]);
}
},
i: noop,
o: noop,
d(detaching) {
if (detaching) detach(svg);
}
};
}
function instance($$self, $$props, $$invalidate) {
let { class: classes = '' } = $$props;
let { style = '' } = $$props;
$$self.$$set = $$props => {
if ('class' in $$props) $$invalidate(0, classes = $$props.class);
if ('style' in $$props) $$invalidate(1, style = $$props.style);
};
return [classes, style];
}
class Component extends SvelteComponent {
constructor(options) {
super();
init(this, options, instance, create_fragment, safe_not_equal, { class: 0, style: 1 });
}
}
exports.default = Component;
|
$(function () {
$(window).on("scroll", onScroll);
function onScroll() {
var sct = $(window).scrollTop();
$(".navigation ul li").each(function () {
var list = $(this).children("a");
var t = $(this).children("a").attr("href");
var off = $(t).offset().top;
var off_end = off + $("section").height();
});
if (sct < $("#ABOUT").offset().top) {
$(".navigation ul li").removeClass("active");
$(".navigation ul li.HOME").addClass("active");
} else if (sct < $("#SKILL").offset().top) {
$(".navigation ul li").removeClass("active");
$(".navigation ul li.ABOUT").addClass("active");
} else if (sct < $("#WORK").offset().top) {
$(".navigation ul li").removeClass("active");
$(".navigation ul li.SKILL").addClass("active");
} else if (sct < $("#CONTACT").offset().top) {
$(".navigation ul li").removeClass("active");
$(".navigation ul li.WORK").addClass("active");
} else if (sct == $("#CONTACT").offset().top) {
$(".navigation ul li").removeClass("active");
$(".navigation ul li.CONTACT").addClass("active");
}
}
});
|
import ls from 'local-storage'
import React, { useContext, useReducer, createContext } from 'react'
import { AUTH, NAVIGATION, TOAST } from 'constants/actions'
const authData = ls.get('auth')
const initialStore = {
auth: {
data: authData,
inProgress: false,
status: !!authData
},
error: null,
navigation: []
}
const StoreContext = createContext(initialStore)
const mainReducer = (state, action) => {
switch (action.type) {
case AUTH.IN_PROGRESS:
return ({
...state,
auth: {
...state.auth,
inProgress: true,
status: false
},
showToast: false
})
case AUTH.SUCCESS:
return ({
...state,
auth: {
data: JSON.parse(ls.get('auth')),
inProgress: false,
status: true
}
})
case AUTH.FAILED:
return ({
...state,
auth: {
inProgress: false,
status: false
},
error: action.error
})
case AUTH.LOGOUT:
return ({
...state,
auth: {
status: false
}
})
case NAVIGATION.ADD_VISIBLE:
return ({
...state,
navigation: [...state.navigation, action.data]
})
case NAVIGATION.REMOVE_VISIBLE:
return ({
...state,
navigation: [...(state.navigation.filter(e => e !== action.data))]
})
case TOAST.TOGGLE:
return ({
...state,
showToast: !state.showToast
})
default:
return state
}
}
const middleware = dispatch => async action => Promise.resolve(action(dispatch))
export const StoreProvider = (props) => {
const [store, dispatch] = useReducer(mainReducer, initialStore)
const middlewareDispatch = middleware(dispatch)
const storeData = { dispatch: middlewareDispatch, store }
return <StoreContext.Provider value={storeData}
{...props} />
}
export const useStore = () => useContext(StoreContext)
|
// Generated by CoffeeScript 1.12.7
(function() {
var Address, Attachment, BackboneElement, Base, CodeableConcept, Coding, ContactPoint, DT, DomainResource, Element, ElementDefinition, ElementDefinitionBindingComponent, ElementDefinitionConstraintComponent, ElementDefinitionMappingComponent, ElementDefinitionSlicingComponent, Extension, HumanName, Identifier, Narrative, Parameters, ParametersParameterComponent, Period, Quantity, Range, Ratio, Reference, Resource, ResourceMetaComponent, SampledData, Timing, TimingRepeatComponent, TypeRefComponent,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Base = (function() {
function Base(json) {
this.json = json;
}
return Base;
})();
module.exports.Base = Base;
DT = require('../cql-datatypes');
/**
Base definition for all elements in a resource.
@class Element
@exports Element as Element
*/
Element = (function(superClass) {
extend(Element, superClass);
function Element(json) {
this.json = json;
Element.__super__.constructor.call(this, this.json);
}
/**
unique id for the element within a resource (for internal references).
@returns {Array} an array of {@link String} objects
*/
Element.prototype.id = function() {
return this.json['id'];
};
/**
May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
@returns {Array} an array of {@link Extension} objects
*/
Element.prototype.extension = function() {
var i, item, len, ref, results;
if (this.json['extension']) {
ref = this.json['extension'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new Extension(item));
}
return results;
}
};
return Element;
})(Base);
module.exports.Element = Element;
/**
Base definition for all elements that are defined inside a resource - but not those in a data type.
@class BackboneElement
@exports BackboneElement as BackboneElement
*/
BackboneElement = (function(superClass) {
extend(BackboneElement, superClass);
function BackboneElement(json) {
this.json = json;
BackboneElement.__super__.constructor.call(this, this.json);
}
/**
May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
@returns {Array} an array of {@link Extension} objects
*/
BackboneElement.prototype.modifierExtension = function() {
var i, item, len, ref, results;
if (this.json['modifierExtension']) {
ref = this.json['modifierExtension'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new Extension(item));
}
return results;
}
};
return BackboneElement;
})(Element);
module.exports.BackboneElement = BackboneElement;
/**
Optional Extensions Element - found in all resources.
@class Extension
@exports Extension as Extension
*/
Extension = (function(superClass) {
extend(Extension, superClass);
function Extension(json) {
this.json = json;
Extension.__super__.constructor.call(this, this.json);
}
/**
Source of the definition for the extension code - a logical name or a URL.
@returns {Array} an array of {@link String} objects
*/
Extension.prototype.url = function() {
return this.json['url'];
};
/**
Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list).
@returns {Array} an array of {@link } objects
*/
Extension.prototype.value = function() {
return this.json['value'];
};
return Extension;
})(Element);
module.exports.Extension = Extension;
/**
A human-readable formatted text, including images.
@class Narrative
@exports Narrative as Narrative
*/
Narrative = (function(superClass) {
extend(Narrative, superClass);
function Narrative(json) {
this.json = json;
Narrative.__super__.constructor.call(this, this.json);
}
/**
The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data.
@returns {Array} an array of {@link String} objects
*/
Narrative.prototype.status = function() {
return this.json['status'];
};
/**
The actual narrative content, a stripped down version of XHTML.
@returns {xhtml}
*/
Narrative.prototype.div = function() {
if (this.json['div']) {
return new xhtml(this.json['div']);
}
};
return Narrative;
})(Element);
module.exports.Narrative = Narrative;
/**
A time period defined by a start and end date and optionally time.
@class Period
@exports Period as Period
*/
Period = (function(superClass) {
extend(Period, superClass);
function Period(json) {
this.json = json;
Period.__super__.constructor.call(this, this.json);
}
/**
The start of the period. The boundary is inclusive.
@returns {Array} an array of {@link Date} objects
*/
Period.prototype.start = function() {
if (this.json['start']) {
return DT.DateTime.parse(this.json['start']);
}
};
/**
The end of the period. If the end of the period is missing, it means that the period is ongoing.
@returns {Array} an array of {@link Date} objects
*/
Period.prototype.end = function() {
if (this.json['end']) {
return DT.DateTime.parse(this.json['end']);
}
};
return Period;
})(Element);
module.exports.Period = Period;
/**
A reference to a code defined by a terminology system.
@class Coding
@exports Coding as Coding
*/
Coding = (function(superClass) {
extend(Coding, superClass);
function Coding(json) {
this.json = json;
Coding.__super__.constructor.call(this, this.json);
}
/**
The identification of the code system that defines the meaning of the symbol in the code.
@returns {Array} an array of {@link String} objects
*/
Coding.prototype.system = function() {
return this.json['system'];
};
/**
The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
@returns {Array} an array of {@link String} objects
*/
Coding.prototype.version = function() {
return this.json['version'];
};
/**
A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
@returns {Array} an array of {@link String} objects
*/
Coding.prototype.code = function() {
return this.json['code'];
};
/**
A representation of the meaning of the code in the system, following the rules of the system.
@returns {Array} an array of {@link String} objects
*/
Coding.prototype.display = function() {
return this.json['display'];
};
/**
Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
@returns {Array} an array of {@link boolean} objects
*/
Coding.prototype.primary = function() {
return this.json['primary'];
};
/**
The set of possible coded values this coding was chosen from or constrained by.
@returns {Reference}
*/
Coding.prototype.valueSet = function() {
if (this.json['valueSet']) {
return new Reference(this.json['valueSet']);
}
};
return Coding;
})(Element);
module.exports.Coding = Coding;
/**
A set of ordered Quantities defined by a low and high limit.
@class Range
@exports Range as Range
*/
Range = (function(superClass) {
extend(Range, superClass);
function Range(json) {
this.json = json;
Range.__super__.constructor.call(this, this.json);
}
/**
The low limit. The boundary is inclusive.
@returns {Quantity}
*/
Range.prototype.low = function() {
if (this.json['low']) {
return new Quantity(this.json['low']);
}
};
/**
The high limit. The boundary is inclusive.
@returns {Quantity}
*/
Range.prototype.high = function() {
if (this.json['high']) {
return new Quantity(this.json['high']);
}
};
return Range;
})(Element);
module.exports.Range = Range;
/**
A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
@class Quantity
@exports Quantity as Quantity
*/
Quantity = (function(superClass) {
extend(Quantity, superClass);
function Quantity(json) {
this.json = json;
Quantity.__super__.constructor.call(this, this.json);
}
/**
The value of the measured amount. The value includes an implicit precision in the presentation of the value.
@returns {Array} an array of {@link Number} objects
*/
Quantity.prototype.value = function() {
return this.json['value'];
};
/**
How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is "<" , then the real value is < stated value.
@returns {Array} an array of {@link String} objects
*/
Quantity.prototype.comparator = function() {
return this.json['comparator'];
};
/**
A human-readable form of the units.
@returns {Array} an array of {@link String} objects
*/
Quantity.prototype.units = function() {
return this.json['units'];
};
/**
The identification of the system that provides the coded form of the unit.
@returns {Array} an array of {@link String} objects
*/
Quantity.prototype.system = function() {
return this.json['system'];
};
/**
A computer processable form of the units in some unit representation system.
@returns {Array} an array of {@link String} objects
*/
Quantity.prototype.code = function() {
return this.json['code'];
};
return Quantity;
})(Element);
module.exports.Quantity = Quantity;
/**
For referring to data content defined in other formats.
@class Attachment
@exports Attachment as Attachment
*/
Attachment = (function(superClass) {
extend(Attachment, superClass);
function Attachment(json) {
this.json = json;
Attachment.__super__.constructor.call(this, this.json);
}
/**
Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate.
@returns {Array} an array of {@link String} objects
*/
Attachment.prototype.contentType = function() {
return this.json['contentType'];
};
/**
The human language of the content. The value can be any valid value according to BCP 47.
@returns {Array} an array of {@link String} objects
*/
Attachment.prototype.language = function() {
return this.json['language'];
};
/**
The actual data of the attachment - a sequence of bytes. In XML, represented using base64.
@returns {Array} an array of {@link } objects
*/
Attachment.prototype.data = function() {
return this.json['data'];
};
/**
An alternative location where the data can be accessed.
@returns {Array} an array of {@link String} objects
*/
Attachment.prototype.url = function() {
return this.json['url'];
};
/**
The number of bytes of data that make up this attachment.
@returns {Array} an array of {@link Number} objects
*/
Attachment.prototype.size = function() {
return this.json['size'];
};
/**
The calculated hash of the data using SHA-1. Represented using base64.
@returns {Array} an array of {@link } objects
*/
Attachment.prototype.hash = function() {
return this.json['hash'];
};
/**
A label or set of text to display in place of the data.
@returns {Array} an array of {@link String} objects
*/
Attachment.prototype.title = function() {
return this.json['title'];
};
return Attachment;
})(Element);
module.exports.Attachment = Attachment;
/**
A relationship of two Quantity values - expressed as a numerator and a denominator.
@class Ratio
@exports Ratio as Ratio
*/
Ratio = (function(superClass) {
extend(Ratio, superClass);
function Ratio(json) {
this.json = json;
Ratio.__super__.constructor.call(this, this.json);
}
/**
The value of the numerator.
@returns {Quantity}
*/
Ratio.prototype.numerator = function() {
if (this.json['numerator']) {
return new Quantity(this.json['numerator']);
}
};
/**
The value of the denominator.
@returns {Quantity}
*/
Ratio.prototype.denominator = function() {
if (this.json['denominator']) {
return new Quantity(this.json['denominator']);
}
};
return Ratio;
})(Element);
module.exports.Ratio = Ratio;
/**
A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data.
@class SampledData
@exports SampledData as SampledData
*/
SampledData = (function(superClass) {
extend(SampledData, superClass);
function SampledData(json) {
this.json = json;
SampledData.__super__.constructor.call(this, this.json);
}
/**
The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series.
@returns {Quantity}
*/
SampledData.prototype.origin = function() {
if (this.json['origin']) {
return new Quantity(this.json['origin']);
}
};
/**
The length of time between sampling times, measured in milliseconds.
@returns {Array} an array of {@link Number} objects
*/
SampledData.prototype.period = function() {
return this.json['period'];
};
/**
A correction factor that is applied to the sampled data points before they are added to the origin.
@returns {Array} an array of {@link Number} objects
*/
SampledData.prototype.factor = function() {
return this.json['factor'];
};
/**
The lower limit of detection of the measured points. This is needed if any of the data points have the value "L" (lower than detection limit).
@returns {Array} an array of {@link Number} objects
*/
SampledData.prototype.lowerLimit = function() {
return this.json['lowerLimit'];
};
/**
The upper limit of detection of the measured points. This is needed if any of the data points have the value "U" (higher than detection limit).
@returns {Array} an array of {@link Number} objects
*/
SampledData.prototype.upperLimit = function() {
return this.json['upperLimit'];
};
/**
The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once.
@returns {Array} an array of {@link Number} objects
*/
SampledData.prototype.dimensions = function() {
return this.json['dimensions'];
};
/**
A series of data points which are decimal values separated by a single space (character u20). The special values "E" (error), "L" (below detection limit) and "U" (above detection limit) can also be used in place of a decimal value.
@returns {Array} an array of {@link String} objects
*/
SampledData.prototype.data = function() {
return this.json['data'];
};
return SampledData;
})(Element);
module.exports.SampledData = SampledData;
/**
A reference from one resource to another.
@class Reference
@exports Reference as Reference
*/
Reference = (function(superClass) {
extend(Reference, superClass);
function Reference(json) {
this.json = json;
Reference.__super__.constructor.call(this, this.json);
}
/**
A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
@returns {Array} an array of {@link String} objects
*/
Reference.prototype.reference = function() {
return this.json['reference'];
};
/**
Plain text narrative that identifies the resource in addition to the resource reference.
@returns {Array} an array of {@link String} objects
*/
Reference.prototype.display = function() {
return this.json['display'];
};
return Reference;
})(Element);
module.exports.Reference = Reference;
/**
A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
@class CodeableConcept
@exports CodeableConcept as CodeableConcept
*/
CodeableConcept = (function(superClass) {
extend(CodeableConcept, superClass);
function CodeableConcept(json) {
this.json = json;
CodeableConcept.__super__.constructor.call(this, this.json);
}
/**
A reference to a code defined by a terminology system.
@returns {Array} an array of {@link Coding} objects
*/
CodeableConcept.prototype.coding = function() {
var i, item, len, ref, results;
if (this.json['coding']) {
ref = this.json['coding'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new Coding(item));
}
return results;
}
};
/**
A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
@returns {Array} an array of {@link String} objects
*/
CodeableConcept.prototype.text = function() {
return this.json['text'];
};
return CodeableConcept;
})(Element);
module.exports.CodeableConcept = CodeableConcept;
/**
A technical identifier - identifies some entity uniquely and unambiguously.
@class Identifier
@exports Identifier as Identifier
*/
Identifier = (function(superClass) {
extend(Identifier, superClass);
function Identifier(json) {
this.json = json;
Identifier.__super__.constructor.call(this, this.json);
}
/**
The purpose of this identifier.
@returns {Array} an array of {@link String} objects
*/
Identifier.prototype.use = function() {
return this.json['use'];
};
/**
A text string for the identifier that can be displayed to a human so they can recognize the identifier.
@returns {Array} an array of {@link String} objects
*/
Identifier.prototype.label = function() {
return this.json['label'];
};
/**
Establishes the namespace in which set of possible id values is unique.
@returns {Array} an array of {@link String} objects
*/
Identifier.prototype.system = function() {
return this.json['system'];
};
/**
The portion of the identifier typically displayed to the user and which is unique within the context of the system.
@returns {Array} an array of {@link String} objects
*/
Identifier.prototype.value = function() {
return this.json['value'];
};
/**
Time period during which identifier is/was valid for use.
@returns {Period}
*/
Identifier.prototype.period = function() {
if (this.json['period']) {
return new Period(this.json['period']);
}
};
/**
Organization that issued/manages the identifier.
@returns {Reference}
*/
Identifier.prototype.assigner = function() {
if (this.json['assigner']) {
return new Reference(this.json['assigner']);
}
};
return Identifier;
})(Element);
module.exports.Identifier = Identifier;
/**
Embedded class
@class ElementDefinitionSlicingComponent
@exports ElementDefinitionSlicingComponent as ElementDefinitionSlicingComponent
*/
ElementDefinitionSlicingComponent = (function(superClass) {
extend(ElementDefinitionSlicingComponent, superClass);
function ElementDefinitionSlicingComponent(json) {
this.json = json;
ElementDefinitionSlicingComponent.__super__.constructor.call(this, this.json);
}
/**
Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionSlicingComponent.prototype.discriminator = function() {
return this.json['discriminator'];
};
/**
A humane readable text description of how the slicing works. If there is no discriminator, this is required to be present to provide whatever information is possible about how the slices can be differentiated.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionSlicingComponent.prototype.description = function() {
return this.json['description'];
};
/**
If the matching elements have to occur in the same order as defined in the profile.
@returns {Array} an array of {@link boolean} objects
*/
ElementDefinitionSlicingComponent.prototype.ordered = function() {
return this.json['ordered'];
};
/**
Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionSlicingComponent.prototype.rules = function() {
return this.json['rules'];
};
return ElementDefinitionSlicingComponent;
})(Element);
/**
Embedded class
@class TypeRefComponent
@exports TypeRefComponent as TypeRefComponent
*/
TypeRefComponent = (function(superClass) {
extend(TypeRefComponent, superClass);
function TypeRefComponent(json) {
this.json = json;
TypeRefComponent.__super__.constructor.call(this, this.json);
}
/**
Name of Data type or Resource that is a(or the) type used for this element.
@returns {Array} an array of {@link String} objects
*/
TypeRefComponent.prototype.code = function() {
return this.json['code'];
};
/**
Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile.
@returns {Array} an array of {@link String} objects
*/
TypeRefComponent.prototype.profile = function() {
return this.json['profile'];
};
/**
If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
@returns {Array} an array of {@link String} objects
*/
TypeRefComponent.prototype.aggregation = function() {
return this.json['aggregation'];
};
return TypeRefComponent;
})(Element);
/**
Embedded class
@class ElementDefinitionConstraintComponent
@exports ElementDefinitionConstraintComponent as ElementDefinitionConstraintComponent
*/
ElementDefinitionConstraintComponent = (function(superClass) {
extend(ElementDefinitionConstraintComponent, superClass);
function ElementDefinitionConstraintComponent(json) {
this.json = json;
ElementDefinitionConstraintComponent.__super__.constructor.call(this, this.json);
}
/**
Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionConstraintComponent.prototype.key = function() {
return this.json['key'];
};
/**
Used to label the constraint in OCL or in short displays incapable of displaying the full human description.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionConstraintComponent.prototype.name = function() {
return this.json['name'];
};
/**
Identifies the impact constraint violation has on the conformance of the instance.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionConstraintComponent.prototype.severity = function() {
return this.json['severity'];
};
/**
Text that can be used to describe the constraint in messages identifying that the constraint has been violated.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionConstraintComponent.prototype.human = function() {
return this.json['human'];
};
/**
An XPath expression of constraint that can be executed to see if this constraint is met.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionConstraintComponent.prototype.xpath = function() {
return this.json['xpath'];
};
return ElementDefinitionConstraintComponent;
})(Element);
/**
Embedded class
@class ElementDefinitionBindingComponent
@exports ElementDefinitionBindingComponent as ElementDefinitionBindingComponent
*/
ElementDefinitionBindingComponent = (function(superClass) {
extend(ElementDefinitionBindingComponent, superClass);
function ElementDefinitionBindingComponent(json) {
this.json = json;
ElementDefinitionBindingComponent.__super__.constructor.call(this, this.json);
}
/**
A descriptive name for this - can be useful for generating implementation artifacts.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionBindingComponent.prototype.name = function() {
return this.json['name'];
};
/**
If true, then conformant systems may use additional codes or (where the data type permits) text alone to convey concepts not covered by the set of codes identified in the binding. If false, then conformant systems are constrained to the provided codes alone.
@returns {Array} an array of {@link boolean} objects
*/
ElementDefinitionBindingComponent.prototype.isExtensible = function() {
return this.json['isExtensible'];
};
/**
Indicates the degree of conformance expectations associated with this binding.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionBindingComponent.prototype.conformance = function() {
return this.json['conformance'];
};
/**
Describes the intended use of this particular set of codes.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionBindingComponent.prototype.description = function() {
return this.json['description'];
};
/**
Points to the value set or external definition that identifies the set of codes to be used.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionBindingComponent.prototype.referenceUri = function() {
return this.json['referenceUri'];
};
/**
Points to the value set or external definition that identifies the set of codes to be used.
@returns {Reference}
*/
ElementDefinitionBindingComponent.prototype.referenceReference = function() {
if (this.json['referenceReference']) {
return new Reference(this.json['referenceReference']);
}
};
return ElementDefinitionBindingComponent;
})(Element);
/**
Embedded class
@class ElementDefinitionMappingComponent
@exports ElementDefinitionMappingComponent as ElementDefinitionMappingComponent
*/
ElementDefinitionMappingComponent = (function(superClass) {
extend(ElementDefinitionMappingComponent, superClass);
function ElementDefinitionMappingComponent(json) {
this.json = json;
ElementDefinitionMappingComponent.__super__.constructor.call(this, this.json);
}
/**
An internal reference to the definition of a mapping.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionMappingComponent.prototype.identity = function() {
return this.json['identity'];
};
/**
Expresses what part of the target specification corresponds to this element.
@returns {Array} an array of {@link String} objects
*/
ElementDefinitionMappingComponent.prototype.map = function() {
return this.json['map'];
};
return ElementDefinitionMappingComponent;
})(Element);
/**
Captures constraints on each element within the resource, profile, or extension.
@class ElementDefinition
@exports ElementDefinition as ElementDefinition
*/
ElementDefinition = (function(superClass) {
extend(ElementDefinition, superClass);
function ElementDefinition(json) {
this.json = json;
ElementDefinition.__super__.constructor.call(this, this.json);
}
/**
The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.path = function() {
return this.json['path'];
};
/**
Codes that define how this element is represented in instances, when the deviation varies from the normal case.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.representation = function() {
return this.json['representation'];
};
/**
The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.name = function() {
return this.json['name'];
};
/**
Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set).
@returns {ElementDefinitionSlicingComponent}
*/
ElementDefinition.prototype.slicing = function() {
if (this.json['slicing']) {
return new ElementDefinitionSlicingComponent(this.json['slicing']);
}
};
/**
A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification).
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.short = function() {
return this.json['short'];
};
/**
The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.formal = function() {
return this.json['formal'];
};
/**
Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.comments = function() {
return this.json['comments'];
};
/**
Explains why this element is needed and why it's been constrained as it has.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.requirements = function() {
return this.json['requirements'];
};
/**
Identifies additional names by which this element might also be known.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.synonym = function() {
return this.json['synonym'];
};
/**
The minimum number of times this element SHALL appear in the instance.
@returns {Array} an array of {@link Number} objects
*/
ElementDefinition.prototype.min = function() {
return this.json['min'];
};
/**
The maximum number of times this element is permitted to appear in the instance.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.max = function() {
return this.json['max'];
};
/**
The data type or resource that the value of this element is permitted to be.
@returns {Array} an array of {@link TypeRefComponent} objects
*/
ElementDefinition.prototype.type = function() {
var i, item, len, ref, results;
if (this.json['type']) {
ref = this.json['type'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new TypeRefComponent(item));
}
return results;
}
};
/**
Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.nameReference = function() {
return this.json['nameReference'];
};
/**
The value that should be used if there is no value stated in the instance.
@returns {Array} an array of {@link } objects
*/
ElementDefinition.prototype.defaultValue = function() {
return this.json['defaultValue'];
};
/**
The Implicit meaning that is to be understood when this element is missing.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.meaningWhenMissing = function() {
return this.json['meaningWhenMissing'];
};
/**
Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.
@returns {Array} an array of {@link } objects
*/
ElementDefinition.prototype.fixed = function() {
return this.json['fixed'];
};
/**
Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.).
@returns {Array} an array of {@link } objects
*/
ElementDefinition.prototype.pattern = function() {
return this.json['pattern'];
};
/**
An example value for this element.
@returns {Array} an array of {@link } objects
*/
ElementDefinition.prototype.example = function() {
return this.json['example'];
};
/**
Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.
@returns {Array} an array of {@link Number} objects
*/
ElementDefinition.prototype.maxLength = function() {
return this.json['maxLength'];
};
/**
A reference to an invariant that may make additional statements about the cardinality or value in the instance.
@returns {Array} an array of {@link String} objects
*/
ElementDefinition.prototype.condition = function() {
return this.json['condition'];
};
/**
Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance.
@returns {Array} an array of {@link ElementDefinitionConstraintComponent} objects
*/
ElementDefinition.prototype.constraint = function() {
var i, item, len, ref, results;
if (this.json['constraint']) {
ref = this.json['constraint'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new ElementDefinitionConstraintComponent(item));
}
return results;
}
};
/**
If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported.
@returns {Array} an array of {@link boolean} objects
*/
ElementDefinition.prototype.mustSupport = function() {
return this.json['mustSupport'];
};
/**
If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system.
@returns {Array} an array of {@link boolean} objects
*/
ElementDefinition.prototype.isModifier = function() {
return this.json['isModifier'];
};
/**
Whether the element should be included if a client requests a search with the parameter _summary=true.
@returns {Array} an array of {@link boolean} objects
*/
ElementDefinition.prototype.isSummary = function() {
return this.json['isSummary'];
};
/**
Binds to a value set if this element is coded (code, Coding, CodeableConcept).
@returns {ElementDefinitionBindingComponent}
*/
ElementDefinition.prototype.binding = function() {
if (this.json['binding']) {
return new ElementDefinitionBindingComponent(this.json['binding']);
}
};
/**
Identifies a concept from an external specification that roughly corresponds to this element.
@returns {Array} an array of {@link ElementDefinitionMappingComponent} objects
*/
ElementDefinition.prototype.mapping = function() {
var i, item, len, ref, results;
if (this.json['mapping']) {
ref = this.json['mapping'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new ElementDefinitionMappingComponent(item));
}
return results;
}
};
return ElementDefinition;
})(Element);
module.exports.ElementDefinition = ElementDefinition;
/**
Embedded class
@class TimingRepeatComponent
@exports TimingRepeatComponent as TimingRepeatComponent
*/
TimingRepeatComponent = (function(superClass) {
extend(TimingRepeatComponent, superClass);
function TimingRepeatComponent(json) {
this.json = json;
TimingRepeatComponent.__super__.constructor.call(this, this.json);
}
/**
Indicates how often the event should occur.
@returns {Array} an array of {@link Number} objects
*/
TimingRepeatComponent.prototype.frequency = function() {
return this.json['frequency'];
};
/**
Identifies the occurrence of daily life that determines timing.
@returns {Array} an array of {@link String} objects
*/
TimingRepeatComponent.prototype.when = function() {
return this.json['when'];
};
/**
How long each repetition should last.
@returns {Array} an array of {@link Number} objects
*/
TimingRepeatComponent.prototype.duration = function() {
return this.json['duration'];
};
/**
The units of time for the duration.
@returns {Array} an array of {@link String} objects
*/
TimingRepeatComponent.prototype.units = function() {
return this.json['units'];
};
/**
A total count of the desired number of repetitions.
@returns {Array} an array of {@link Number} objects
*/
TimingRepeatComponent.prototype.count = function() {
return this.json['count'];
};
/**
When to stop repeating the timing schedule.
@returns {Array} an array of {@link Date} objects
*/
TimingRepeatComponent.prototype.end = function() {
if (this.json['end']) {
return DT.DateTime.parse(this.json['end']);
}
};
return TimingRepeatComponent;
})(Element);
/**
Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur.
@class Timing
@exports Timing as Timing
*/
Timing = (function(superClass) {
extend(Timing, superClass);
function Timing(json) {
this.json = json;
Timing.__super__.constructor.call(this, this.json);
}
/**
Identifies specific time periods when the event should occur.
@returns {Array} an array of {@link Period} objects
*/
Timing.prototype.event = function() {
var i, item, len, ref, results;
if (this.json['event']) {
ref = this.json['event'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new Period(item));
}
return results;
}
};
/**
Identifies a repeating pattern to the intended time periods.
@returns {TimingRepeatComponent}
*/
Timing.prototype.repeat = function() {
if (this.json['repeat']) {
return new TimingRepeatComponent(this.json['repeat']);
}
};
return Timing;
})(Element);
module.exports.Timing = Timing;
/**
There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world.
@class Address
@exports Address as Address
*/
Address = (function(superClass) {
extend(Address, superClass);
function Address(json) {
this.json = json;
Address.__super__.constructor.call(this, this.json);
}
/**
The purpose of this address.
@returns {Array} an array of {@link String} objects
*/
Address.prototype.use = function() {
return this.json['use'];
};
/**
A full text representation of the address.
@returns {Array} an array of {@link String} objects
*/
Address.prototype.text = function() {
return this.json['text'];
};
/**
This component contains the house number, apartment number, street name, street direction,
P.O. Box number, delivery hints, and similar address information.
@returns {Array} an array of {@link String} objects
*/
Address.prototype.line = function() {
return this.json['line'];
};
/**
The name of the city, town, village or other community or delivery center.
@returns {Array} an array of {@link String} objects
*/
Address.prototype.city = function() {
return this.json['city'];
};
/**
Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
@returns {Array} an array of {@link String} objects
*/
Address.prototype.state = function() {
return this.json['state'];
};
/**
A postal code designating a region defined by the postal service.
@returns {Array} an array of {@link String} objects
*/
Address.prototype.postalCode = function() {
return this.json['postalCode'];
};
/**
Country - a nation as commonly understood or generally accepted.
@returns {Array} an array of {@link String} objects
*/
Address.prototype.country = function() {
return this.json['country'];
};
/**
Time period when address was/is in use.
@returns {Period}
*/
Address.prototype.period = function() {
if (this.json['period']) {
return new Period(this.json['period']);
}
};
return Address;
})(Element);
module.exports.Address = Address;
/**
A human's name with the ability to identify parts and usage.
@class HumanName
@exports HumanName as HumanName
*/
HumanName = (function(superClass) {
extend(HumanName, superClass);
function HumanName(json) {
this.json = json;
HumanName.__super__.constructor.call(this, this.json);
}
/**
Identifies the purpose for this name.
@returns {Array} an array of {@link String} objects
*/
HumanName.prototype.use = function() {
return this.json['use'];
};
/**
A full text representation of the name.
@returns {Array} an array of {@link String} objects
*/
HumanName.prototype.text = function() {
return this.json['text'];
};
/**
The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
@returns {Array} an array of {@link String} objects
*/
HumanName.prototype.family = function() {
return this.json['family'];
};
/**
Given name.
@returns {Array} an array of {@link String} objects
*/
HumanName.prototype.given = function() {
return this.json['given'];
};
/**
Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name.
@returns {Array} an array of {@link String} objects
*/
HumanName.prototype.prefix = function() {
return this.json['prefix'];
};
/**
Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name.
@returns {Array} an array of {@link String} objects
*/
HumanName.prototype.suffix = function() {
return this.json['suffix'];
};
/**
Indicates the period of time when this name was valid for the named person.
@returns {Period}
*/
HumanName.prototype.period = function() {
if (this.json['period']) {
return new Period(this.json['period']);
}
};
return HumanName;
})(Element);
module.exports.HumanName = HumanName;
/**
Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc.
@class ContactPoint
@exports ContactPoint as ContactPoint
*/
ContactPoint = (function(superClass) {
extend(ContactPoint, superClass);
function ContactPoint(json) {
this.json = json;
ContactPoint.__super__.constructor.call(this, this.json);
}
/**
Telecommunications form for contact point - what communications system is required to make use of the contact.
@returns {Array} an array of {@link String} objects
*/
ContactPoint.prototype.system = function() {
return this.json['system'];
};
/**
The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
@returns {Array} an array of {@link String} objects
*/
ContactPoint.prototype.value = function() {
return this.json['value'];
};
/**
Identifies the purpose for the contact point.
@returns {Array} an array of {@link String} objects
*/
ContactPoint.prototype.use = function() {
return this.json['use'];
};
/**
Time period when the contact point was/is in use.
@returns {Period}
*/
ContactPoint.prototype.period = function() {
if (this.json['period']) {
return new Period(this.json['period']);
}
};
return ContactPoint;
})(Element);
module.exports.ContactPoint = ContactPoint;
/**
Embedded class
@class ResourceMetaComponent
@exports ResourceMetaComponent as ResourceMetaComponent
*/
ResourceMetaComponent = (function(superClass) {
extend(ResourceMetaComponent, superClass);
function ResourceMetaComponent(json) {
this.json = json;
ResourceMetaComponent.__super__.constructor.call(this, this.json);
}
/**
The version specific identifier, as it appears in the version portion of the url. This values changes when the resource is created, updated, or deleted.
@returns {Array} an array of {@link String} objects
*/
ResourceMetaComponent.prototype.versionId = function() {
return this.json['versionId'];
};
/**
When the resource last changed - e.g. when the version changed.
@returns {Array} an array of {@link Date} objects
*/
ResourceMetaComponent.prototype.lastUpdated = function() {
if (this.json['lastUpdated']) {
return DT.DateTime.parse(this.json['lastUpdated']);
}
};
/**
A list of profiles that this resource claims to conform to. The URL is a reference to Profile.url.
@returns {Array} an array of {@link String} objects
*/
ResourceMetaComponent.prototype.profile = function() {
return this.json['profile'];
};
/**
Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.
@returns {Array} an array of {@link Coding} objects
*/
ResourceMetaComponent.prototype.security = function() {
var i, item, len, ref, results;
if (this.json['security']) {
ref = this.json['security'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new Coding(item));
}
return results;
}
};
/**
Tags applied to this resource. Tags are intended to to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.
@returns {Array} an array of {@link Coding} objects
*/
ResourceMetaComponent.prototype.tag = function() {
var i, item, len, ref, results;
if (this.json['tag']) {
ref = this.json['tag'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new Coding(item));
}
return results;
}
};
return ResourceMetaComponent;
})(BackboneElement);
/**
Base Resource for everything.
@class Resource
@exports Resource as Resource
*/
Resource = (function(superClass) {
extend(Resource, superClass);
function Resource(json) {
this.json = json;
Resource.__super__.constructor.call(this, this.json);
}
/**
The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.
@returns {Array} an array of {@link String} objects
*/
Resource.prototype.id = function() {
return this.json['id'];
};
/**
The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.
@returns {ResourceMetaComponent}
*/
Resource.prototype.meta = function() {
if (this.json['meta']) {
return new ResourceMetaComponent(this.json['meta']);
}
};
/**
A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
@returns {Array} an array of {@link String} objects
*/
Resource.prototype.implicitRules = function() {
return this.json['implicitRules'];
};
/**
The base language in which the resource is written.
@returns {Array} an array of {@link String} objects
*/
Resource.prototype.language = function() {
return this.json['language'];
};
return Resource;
})(Base);
module.exports.Resource = Resource;
/**
@class DomainResource
@exports DomainResource as DomainResource
*/
DomainResource = (function(superClass) {
extend(DomainResource, superClass);
function DomainResource(json) {
this.json = json;
DomainResource.__super__.constructor.call(this, this.json);
}
/**
A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
@returns {Narrative}
*/
DomainResource.prototype.text = function() {
if (this.json['text']) {
return new Narrative(this.json['text']);
}
};
/**
These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
@returns {Array} an array of {@link Resource} objects
*/
DomainResource.prototype.contained = function() {
var i, item, len, ref, req, results, typeName;
if (this.json['contained']) {
ref = this.json['contained'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
typeName = this.json['contained'].resourceType;
req = require('./' + typeName.toLowerCase())[typeName];
results.push(new req(item));
}
return results;
}
};
/**
May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
@returns {Array} an array of {@link Extension} objects
*/
DomainResource.prototype.extension = function() {
var i, item, len, ref, results;
if (this.json['extension']) {
ref = this.json['extension'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new Extension(item));
}
return results;
}
};
/**
May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
@returns {Array} an array of {@link Extension} objects
*/
DomainResource.prototype.modifierExtension = function() {
var i, item, len, ref, results;
if (this.json['modifierExtension']) {
ref = this.json['modifierExtension'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new Extension(item));
}
return results;
}
};
return DomainResource;
})(Resource);
module.exports.DomainResource = DomainResource;
/**
Embedded class
@class ParametersParameterComponent
@exports ParametersParameterComponent as ParametersParameterComponent
*/
ParametersParameterComponent = (function(superClass) {
extend(ParametersParameterComponent, superClass);
function ParametersParameterComponent(json) {
this.json = json;
ParametersParameterComponent.__super__.constructor.call(this, this.json);
}
/**
The name of the parameter (reference to the operation definition).
@returns {Array} an array of {@link String} objects
*/
ParametersParameterComponent.prototype.name = function() {
return this.json['name'];
};
/**
If the parameter is a data type.
@returns {Array} an array of {@link } objects
*/
ParametersParameterComponent.prototype.value = function() {
return this.json['value'];
};
/**
If the parameter is a whole resource.
@returns {Resource}
*/
ParametersParameterComponent.prototype.resource = function() {
var req, typeName;
if (this.json['resource']) {
typeName = this.json['resource'].resourceType;
req = require('./' + typeName.toLowerCase())[typeName];
return new req(this.json['resource']);
}
};
return ParametersParameterComponent;
})(BackboneElement);
/**
This special resource type is used to represent [operation](operations.html] request and response. It has no other use, and there is no RESTful end=point associated with it.
@class Parameters
@exports Parameters as Parameters
*/
Parameters = (function(superClass) {
extend(Parameters, superClass);
function Parameters(json) {
this.json = json;
Parameters.__super__.constructor.call(this, this.json);
}
/**
A parameter passed to or received from the operation.
@returns {Array} an array of {@link ParametersParameterComponent} objects
*/
Parameters.prototype.parameter = function() {
var i, item, len, ref, results;
if (this.json['parameter']) {
ref = this.json['parameter'];
results = [];
for (i = 0, len = ref.length; i < len; i++) {
item = ref[i];
results.push(new ParametersParameterComponent(item));
}
return results;
}
};
return Parameters;
})(Resource);
module.exports.Parameters = Parameters;
}).call(this);
//# sourceMappingURL=core.js.map
|
module["exports"] = [
"Ada",
"Adina",
"Adriana",
"Adrijana",
"Agata",
"Alemka",
"Alenka",
"Alisa",
"Alka",
"Alma",
"Amalija",
"Ana",
"Ančica",
"Anamarija",
"Anastazija",
"Anci",
"Anči",
"Ancica",
"Anda",
"Anđela",
"Anđelika",
"Anđelina",
"Andi",
"Andrea",
"Andreja",
"Andrina",
"Anesa",
"Aneta",
"Ani",
"Anica",
"Anja",
"Anka",
"Antea",
"Antonija",
"Asija",
"Asja",
"Bara",
"Barbara",
"Barica",
"Beata",
"Bela",
"Biserka",
"Borka",
"Borna",
"Božena",
"Božica",
"Branimira",
"Branka",
"Brankica",
"Brigita",
"Dada",
"Dagmar",
"Dalibora",
"Daliborka",
"Danica",
"Danijela",
"Danka",
"Dara",
"Darinka",
"Dea",
"Ðina",
"Dona",
"Donka",
"Dora",
"Dorana",
"Dorica",
"Draga",
"Ela",
"Eli",
"Elka",
"Evelin",
"Ina",
"Inga",
"Inge",
"Inja",
"Inka",
"Ita",
"Iva",
"Ivančica",
"Ivanka",
"Ivica",
"Ivna",
"Jagica",
"Jana",
"Janica",
"Janka",
"Jasna",
"Jela",
"Jelica",
"Ješa",
"Kata",
"Kate",
"Katica",
"Katija",
"Katina",
"Kika",
"Lara",
"Laura",
"Lea",
"Lela",
"Lena",
"Leona",
"Lola",
"Maca",
"Magda",
"Maja",
"Majda",
"Manda",
"Mara",
"Mare",
"Marena",
"Marica",
"Marta",
"Maša",
"Mica",
"Mika",
"Mila",
"Milica",
"Milka",
"Mima",
"Mina",
"Mira",
"Mirka",
"Naja",
"Nana",
"Natalija",
"Nataša",
"Natka",
"Neda",
"Nela",
"Neli",
"Nena",
"Nera",
"Nesa",
"Neva",
"Nevenka",
"Nina",
"Nuša",
"Paulina",
"Pava",
"Pave",
"Pavica",
"Rajna",
"Rija",
"Rina",
"Ružica",
"Staša",
"Tasa",
"Teja",
"Tija",
"Tijana",
"Tina",
"Tončica",
"Tonija",
"Tonka",
"Vala",
"Valera",
"Vali",
"Vela",
"Velana",
"Velina",
"Vera",
"Verica",
"Vinka",
"Zlatica",
"Zlatka",
"Darija",
"Darina",
"Divna",
"Donata",
"Doroteja",
"Dragica",
"Dubravka",
"Dunja",
"Ðurda",
"Edita",
"Elena",
"Ema",
"Eva",
"Gabrijela",
"Goranka",
"Gordana",
"Grozdana",
"Helena",
"Hrvojka",
"Ira",
"Irena",
"Irma",
"Ivana",
"Jadranka",
"Jaga",
"Jasmina",
"Josipa",
"Karmela",
"Katarina",
"Kristina",
"Leda",
"Leonida",
"Lidija",
"Ljiljana",
"Ljubica",
"Lovorka",
"Lucija",
"Magdalena",
"Marija",
"Marijana",
"Marina",
"Martina",
"Miranda",
"Mirna",
"Monika",
"Nada",
"Nadalina",
"Nedjeljka",
"Nevena",
"Nora",
"Paula",
"Petra",
"Renata",
"Romana",
"Rosana",
"Ruža",
"Sanja",
"Silvija",
"Slavica",
"Snježana",
"Tereza",
"Tomislava",
"Valentina",
"Valerija",
"Vedrana",
"Velimira",
"Veronika",
"Vesna",
"Vladimira",
"Zdenka",
"Zdeslava",
"Zlata",
"Adi",
"Ado",
"Andel",
"Andelin",
"Andelko",
"Andelo",
"Andi",
"Andras",
"Andrej",
"Andrija",
"Andro",
"Anko",
"Ante",
"Antek",
"Antonin",
"Antonio",
"Antun",
"Bela",
"Belimir",
"Berti",
"Boris",
"Borko",
"Borna",
"Božidar",
"Branimir",
"Bruno",
"Časlav",
"Dado",
"Damil",
"Damir",
"Danijel",
"Dario",
"Darko",
"David",
"Davor",
"Davorin",
"Domagoj",
"Donat",
"Dražen",
"Držimir",
"Držislav",
"Dubravko",
"Duje",
"Dujo",
"Emil",
"Emilijan",
"Erik",
"Fabijan",
"Filip",
"Franjo",
"Gaj",
"Gašpar",
"Goran",
"Gordan",
"Gradimir",
"Grga",
"Grgo",
"Grgur",
"Gvozden",
"Hrvoj",
"Hrvoje",
"Ico",
"Igor",
"Ilija",
"Ilko",
"Ino",
"Ivan",
"Ive",
"Ivek",
"Ivica",
"Ivo",
"Jadran",
"Jadranko",
"Jadro",
"Jakov",
"Jan",
"Janko",
"Jasen",
"Jasenko",
"Josip",
"Joško",
"Joso",
"Joža",
"Jože",
"Krešimir",
"Kristijan",
"Kruno",
"Krunoslav",
"Ladislav",
"Ljudevit",
"Lucijan",
"Luka",
"Marin",
"Marko",
"Martin",
"Matan",
"Mate",
"Matej",
"Matija",
"Matko",
"Mato",
"Mihael",
"Milan",
"Mile",
"Milivoj",
"Miljenko",
"Mimo",
"Miran",
"Mirko",
"Miro",
"Mislav",
"Mladen",
"Nedjeljko",
"Neven",
"Nikola",
"Nino",
"Ozren",
"Pavel",
"Pepo",
"Pero",
"Petar",
"Pravdan",
"Rino",
"Robert",
"Roberto",
"Robi",
"Roko",
"Sanjin",
"Saša",
"Slavek",
"Slaven",
"Slavko",
"Srećko",
"Stanko",
"Štef",
"Stipan",
"Stipe",
"Stjepan",
"Stribor",
"Svebor",
"Tihomir",
"Toma",
"Tome",
"Tomislav",
"Tomo",
"Tonči",
"Tone",
"Toni",
"Tonko",
"Trpimir",
"Trpko",
"Tvrtko",
"Valentin",
"Vanja",
"Vatroslav",
"Vedran",
"Velimir",
"Vijeko",
"Vjekoslav",
"Vjenceslav",
"Vladek",
"Vladislav",
"Vlado",
"Vlatko",
"Zdenko",
"Zdravko",
"Željko",
"Zoltan",
"Zrinislav",
"Zrinko",
"Zvonimir"
];
|
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.1.2 (2019-11-19)
*/
!(function() {
'use strict'
var o = tinymce.util.Tools.resolve('tinymce.PluginManager'),
e = tinymce.util.Tools.resolve('tinymce.util.Tools'),
t = function(t) {
t = e.trim(t)
function o(o, e) {
t = t.replace(o, e)
}
return (
o(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi, '[url=$1]$2[/url]'),
o(
/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,
'[code][color=$1]$2[/color][/code]'
),
o(
/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,
'[quote][color=$1]$2[/color][/quote]'
),
o(
/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,
'[code][color=$1]$2[/color][/code]'
),
o(
/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,
'[quote][color=$1]$2[/color][/quote]'
),
o(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi, '[color=$1]$2[/color]'),
o(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi, '[color=$1]$2[/color]'),
o(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi, '[size=$1]$2[/size]'),
o(/<font>(.*?)<\/font>/gi, '$1'),
o(/<img.*?src=\"(.*?)\".*?\/>/gi, '[img]$1[/img]'),
o(/<span class=\"codeStyle\">(.*?)<\/span>/gi, '[code]$1[/code]'),
o(/<span class=\"quoteStyle\">(.*?)<\/span>/gi, '[quote]$1[/quote]'),
o(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi, '[code][b]$1[/b][/code]'),
o(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi, '[quote][b]$1[/b][/quote]'),
o(/<em class=\"codeStyle\">(.*?)<\/em>/gi, '[code][i]$1[/i][/code]'),
o(/<em class=\"quoteStyle\">(.*?)<\/em>/gi, '[quote][i]$1[/i][/quote]'),
o(/<u class=\"codeStyle\">(.*?)<\/u>/gi, '[code][u]$1[/u][/code]'),
o(/<u class=\"quoteStyle\">(.*?)<\/u>/gi, '[quote][u]$1[/u][/quote]'),
o(/<\/(strong|b)>/gi, '[/b]'),
o(/<(strong|b)>/gi, '[b]'),
o(/<\/(em|i)>/gi, '[/i]'),
o(/<(em|i)>/gi, '[i]'),
o(/<\/u>/gi, '[/u]'),
o(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi, '[u]$1[/u]'),
o(/<u>/gi, '[u]'),
o(/<blockquote[^>]*>/gi, '[quote]'),
o(/<\/blockquote>/gi, '[/quote]'),
o(/<br \/>/gi, '\n'),
o(/<br\/>/gi, '\n'),
o(/<br>/gi, '\n'),
o(/<p>/gi, ''),
o(/<\/p>/gi, '\n'),
o(/ |\u00a0/gi, ' '),
o(/"/gi, '"'),
o(/</gi, '<'),
o(/>/gi, '>'),
o(/&/gi, '&'),
t
)
},
i = function(t) {
t = e.trim(t)
function o(o, e) {
t = t.replace(o, e)
}
return (
o(/\n/gi, '<br />'),
o(/\[b\]/gi, '<strong>'),
o(/\[\/b\]/gi, '</strong>'),
o(/\[i\]/gi, '<em>'),
o(/\[\/i\]/gi, '</em>'),
o(/\[u\]/gi, '<u>'),
o(/\[\/u\]/gi, '</u>'),
o(/\[url=([^\]]+)\](.*?)\[\/url\]/gi, '<a href="$1">$2</a>'),
o(/\[url\](.*?)\[\/url\]/gi, '<a href="$1">$1</a>'),
o(/\[img\](.*?)\[\/img\]/gi, '<img src="$1" />'),
o(/\[color=(.*?)\](.*?)\[\/color\]/gi, '<font color="$1">$2</font>'),
o(/\[code\](.*?)\[\/code\]/gi, '<span class="codeStyle">$1</span> '),
o(/\[quote.*?\](.*?)\[\/quote\]/gi, '<span class="quoteStyle">$1</span> '),
t
)
}
!(function n() {
o.add('bbcode', function(o) {
o.on('BeforeSetContent', function(o) {
o.content = i(o.content)
}),
o.on('PostProcess', function(o) {
o.set && (o.content = i(o.content)), o.get && (o.content = t(o.content))
})
})
})()
})()
|
"use strict";
class Hist {
static hashChange (forceLoad) {
if (Hist.isHistorySuppressed) {
Hist.setSuppressHistory(false);
return;
}
const [link, ...sub] = Hist.getHashParts();
let blankFilterLoad = false;
if (link !== Hist.lastLoadedLink || sub.length === 0 || forceLoad) {
Hist.lastLoadedLink = link;
if (link === HASH_BLANK) {
blankFilterLoad = true;
} else {
const listItem = Hist.getActiveListItem(link);
if (listItem == null) {
if (typeof pHandleUnknownHash === "function" && window.location.hash.length && Hist._lastUnknownLink !== link) {
Hist._lastUnknownLink = link;
pHandleUnknownHash(link, sub);
return;
} else {
Hist._freshLoad();
return;
}
}
const toLoad = listItem.ix;
if (toLoad === undefined) Hist._freshLoad();
else {
Hist.lastLoadedId = listItem.ix;
loadHash(listItem.ix);
document.title = `${listItem.name ? `${listItem.name} - ` : ""}5etools`;
}
}
}
if (typeof loadSubHash === "function" && (sub.length > 0 || forceLoad)) loadSubHash(sub);
if (blankFilterLoad) Hist._freshLoad();
}
static init (initialLoadComplete) {
window.onhashchange = Hist.hashChange;
if (window.location.hash.length) {
Hist.hashChange();
} else {
Hist._freshLoad();
}
if (initialLoadComplete) Hist.initialLoad = false;
}
/**
* Allows the hash to be modified without triggering a hashchange
* @param val
*/
static setSuppressHistory (val) {
Hist.isHistorySuppressed = val;
}
static getSelectedListItem () {
const [link] = Hist.getHashParts();
return Hist.getActiveListItem(link);
}
static getSelectedListElementWithLocation () {
const [link] = Hist.getHashParts();
return Hist.getActiveListItem(link, true);
}
static getHashParts () {
return Hist.util.getHashParts(window.location.hash);
}
static getActiveListItem (link, getIndex) {
const primaryLists = ListUtil.getPrimaryLists();
if (primaryLists && primaryLists.length) {
for (let x = 0; x < primaryLists.length; ++x) {
const list = primaryLists[x];
const foundItemIx = list.items.findIndex(it => it.values.hash === link);
if (~foundItemIx) {
if (getIndex) return {item: list.items[foundItemIx], x: x, y: foundItemIx, list};
return list.items[foundItemIx];
}
}
}
}
static _freshLoad () {
// defer this, in case the list needs to filter first
setTimeout(() => {
const goTo = $("#listcontainer").find(".list a").attr("href");
if (goTo) {
const parts = location.hash.split(HASH_PART_SEP);
const fullHash = `${goTo}${parts.length > 1 ? `${HASH_PART_SEP}${parts.slice(1).join(HASH_PART_SEP)}` : ""}`;
location.replace(fullHash);
}
}, 1);
}
static cleanSetHash (toSet) {
window.location.hash = Hist.util.getCleanHash(toSet);
}
static getHashSource () {
const [link] = Hist.getHashParts();
// by convention, the source is the last hash segment
return link ? link.split(HASH_LIST_SEP).last() : null;
}
static getSubHash (key) {
return Hist.util.getSubHash(window.location.hash, key);
}
/**
* Sets a subhash with the key specified, overwriting any existing.
* @param key Subhash key.
* @param val Subhash value. Passing a nully object removes the k/v pair.
*/
static setSubhash (key, val) {
const nxtHash = Hist.util.setSubhash(window.location.hash, key, val);
Hist.cleanSetHash(nxtHash);
}
static setMainHash (hash) {
const subHashPart = Hist.util.getHashParts(window.location.hash, key, val).slice(1).join(HASH_PART_SEP);
Hist.cleanSetHash([hash, subHashPart].filter(Boolean).join(HASH_PART_SEP));
}
static replaceHistoryHash (hash) {
window.history.replaceState(
{},
document.title,
`${location.origin}${location.pathname}${hash ? `#${hash}` : ""}`,
);
}
}
Hist.lastLoadedLink = null;
Hist._lastUnknownLink = null;
Hist.lastLoadedId = null;
Hist.initialLoad = true;
Hist.isHistorySuppressed = false;
Hist.util = class {
static getCleanHash (hash) {
return hash.replace(/,+/g, ",").replace(/,$/, "").toLowerCase();
}
static getHashParts (location) {
if (location[0] === "#") location = location.slice(1);
return location.toLowerCase().replace(/%27/g, "'").split(HASH_PART_SEP);
}
static getSubHash (location, key) {
const [link, ...sub] = Hist.util.getHashParts(location);
const hKey = `${key}${HASH_SUB_KV_SEP}`;
const part = sub.find(it => it.startsWith(hKey));
if (part) return part.slice(hKey.length);
return null;
}
static setSubhash (location, key, val) {
if (key.endsWith(HASH_SUB_KV_SEP)) key = key.slice(0, -1);
const [link, ...sub] = Hist.util.getHashParts(location);
if (!link) return "";
const hKey = `${key}${HASH_SUB_KV_SEP}`;
const out = [link];
if (sub.length) sub.filter(it => !it.startsWith(hKey)).forEach(it => out.push(it));
if (val != null) out.push(`${hKey}${val}`);
return Hist.util.getCleanHash(out.join(HASH_PART_SEP));
}
};
if (typeof module !== "undefined") {
module.exports = {Hist};
}
|
window.addEventListener('DOMContentLoaded', (event) => {
toggleMenu()
scrollSpy()
})
|
const litmus = require("../lib/litmus");
const logger = require("../src/logger");
const assert = require("assert");
const path = require("path");
litmus.testThat(
"logger.decompressFile should return a string if no second argument is provided",
async (failureHandler, successHandler) => {
let logFileNames = await logger.listLogFilenames(false);
let compressedLog = logFileNames.find(i => i.endsWith(".gz.b64"));
compressedLog = path.join(logger.baseDir, compressedLog);
let logString = await logger.decompressFile(compressedLog);
try {
assert.equal(typeof (logString), "string");
} catch (e) {
failureHandler(e);
return;
}
successHandler();
});
litmus.testThat(
"logger.decompressFile returns a string of json objects separated by newline characters",
async (failureHandler, successHandler) => {
let logFileNames = await logger.listLogFilenames(false);
let compressedLog = logFileNames.find(i => i.endsWith(".gz.b64"));
compressedLog = path.join(logger.baseDir, compressedLog);
let logString = await logger.decompressFile(compressedLog);
let objects = logString.split("\n").filter(i => !!i);
objects = objects.map(i => JSON.parse(i));
try {
objects.forEach(i => assert.equal(typeof (i), "object"));
} catch (e) {
failureHandler(e);
return;
}
successHandler();
});
litmus.testThat(
"logger.listLogFilenames returns an array of strings",
async (failureHandler, successHandler) => {
try {
let logFileNames = await logger.listLogFilenames(false);
assert.ok(Array.isArray(logFileNames));
assert.equal(typeof(logFileNames[0]), "string");
} catch (e) {
failureHandler(e);
return;
}
successHandler();
});
|
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['655',"Tlece.Recruitment.Entities Namespace","topic_0000000000000265.html"],['980',"tlece_InvoiceItem Class","topic_0000000000000398.html"],['984',"Properties","topic_0000000000000398_props--.html"],['993',"StartPeriod Property","topic_00000000000003A0.html"]];
|
import React, { useEffect } from 'react'
import propTypes from 'prop-types'
import { useDispatch } from 'react-redux'
import { addAlert } from '@open-tender/redux'
import {
ModalClose,
ModalHeader,
ModalFooter,
Button,
} from '@open-tender/components-pos'
import { addTender, closeModal } from '../../slices'
import { useCardSwipe } from '../../hooks'
const CreditTender = ({ tender }) => {
const dispatch = useDispatch()
const { code, error: codeError, cancelSwipe } = useCardSwipe(false)
useEffect(() => {
if (codeError) {
dispatch(addAlert(codeError))
dispatch(closeModal())
} else if (code) {
dispatch(addTender({ ...tender, track_data: code }))
dispatch(closeModal())
}
}, [dispatch, tender, code, codeError])
return (
<>
<ModalClose close={cancelSwipe} />
<ModalHeader title="Awaiting credit card payment" />
<ModalFooter>
<Button text="Cancel" onClick={cancelSwipe} color="active" />
</ModalFooter>
</>
)
}
CreditTender.displayName = 'CreditTender'
CreditTender.propTypes = {
tender: propTypes.object,
}
export default CreditTender
|
/*!
* lib/order-lesson-bytime.js
* homeschool-ds (https://github.com/dstegen/homeschool-ds)
* Copyright 2021 Daniel Stegen <info@danielstegen.de>
* Licensed under MIT (https://github.com/dstegen/homeschool-ds/blob/master/LICENSE)
*/
'use strict';
function orderLessonByTime (lessonA, lessonB) {
if ((lessonA.time === '' || lessonA.time === undefined) && lessonB.time > '') {
return 1;
} else if ((lessonB.time === '' || lessonB.time === undefined) && lessonA.time > '') {
return -1;
} else if (lessonA.time > lessonB.time) {
return 1;
} else if (lessonA.time < lessonB.time) {
return -1;
} else {
return 0;
}
}
module.exports = orderLessonByTime;
|
const Discord = require("discord.js");
const client = global.client;
// ----------------------------------------------
// Siteden aldığınız kodları bu kısımada koyabilirsiniz.
// ----------------------------------------------
client.login(global.Ayarlar.Token).catch(err => {console.error("Geçersiz bir token girmişsin.")});
|
import webpackConfig from '../webpack.config.babel'
export default function (config) {
config.set({
browsers: [process.env.TRAVIS ? 'ChromeTravis' : 'Chrome'],
singleRun: true,
frameworks: ['mocha', 'chai'],
files: ['karma.webpack.js'],
preprocessors: {
'karma.webpack.js': ['webpack', 'sourcemap']
},
reporters: ['mocha', 'coverage'],
webpack: {
...webpackConfig,
devtool: 'inline-source-map'
},
webpackServer: {
noInfo: true
},
client: {
mocha: {
timeout: 60000,
retries: 9
}
},
browserNoActivityTimeout: 60000,
coverageReporter: {
dir: 'coverage',
reporters: [
{ type: 'lcov', subdir: '.' }
]
},
customLaunchers: {
ChromeTravis: {
base: 'Chrome',
flags: ['--no-sandbox']
}
}
})
}
|
function sampleFunc () {
console.log("test page for printing generic");
};
|
import React, { Component } from 'react';
import clsx from 'clsx';
import { withStyles, withTheme } from '@material-ui/core/styles';
import IconButton from '@material-ui/core/IconButton';
import Drawer from '@material-ui/core/Drawer';
import Divider from '@material-ui/core/Divider';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
import ChevronLeftIcon from '@material-ui/icons/ChevronLeft';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
import BusinessIcon from '@material-ui/icons/Business';
import DashboardIcon from '@material-ui/icons/Dashboard';
import QueueIcon from '@material-ui/icons/Queue';
import ReceiptIcon from '@material-ui/icons/Receipt';
import RecentActorsIcon from '@material-ui/icons/RecentActors';
import AppsIcon from '@material-ui/icons/Apps';
const drawerWidth = 240;
const useStyles = (theme) => ({
drawer: {
width: drawerWidth,
flexShrink: 0,
whiteSpace: 'nowrap',
},
drawerOpen: {
width: drawerWidth,
transition: theme.transitions.create('width', {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.enteringScreen,
}),
},
drawerClose: {
transition: theme.transitions.create('width', {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.leavingScreen,
}),
overflowX: 'hidden',
width: theme.spacing(7) + 1,
[theme.breakpoints.up('sm')]: {
width: theme.spacing(9) + 1,
},
},
toolbar: {
display: 'flex',
alignItems: 'center',
justifyContent: 'flex-end',
padding: theme.spacing(0, 1),
// necessary for content to be below app bar
...theme.mixins.toolbar,
},
});
class SideMenu extends Component {
constructor(props) {
super(props);
this.toggleDrawer = this.toggleDrawer.bind(this);
this.goTo = this.goTo.bind(this);
this.state = {
open: props.open
}
}
componentDidUpdate(prevProps) {
if (this.props.open !== prevProps.open) {
this.setState({
open: this.props.open
})
}
}
toggleDrawer() {
this.setState({ open: !this.state.opened });
this.props.toggleDrawer();
};
goTo(link) {
this.props.history.push(link);
}
getIcon = (value) => {
switch (value) {
case 'Dashboard':
return <DashboardIcon />;
case 'Invoice':
return <ReceiptIcon />;
case 'Customer':
return <RecentActorsIcon />;
case 'Products':
return <QueueIcon />;
case 'Organization':
return <BusinessIcon />;
default:
return <AppsIcon />;
}
}
listItems = (classes) => (
<div className={clsx(classes.list)}
role="presentation"
// onClick={this.toggleDrawer}
// onKeyDown={this.toggleDrawer}
>
<List>
{['Dashboard', 'Invoice', 'Customer'].map((text, index) => (
<ListItem button key={text} onClick={() => this.goTo(text.toLowerCase())}>
<ListItemIcon>{this.getIcon(text)}</ListItemIcon>
<ListItemText primary={text} />
</ListItem>
))}
</List>
<Divider />
<List>
{['Products', 'Organization'].map((text, index) => (
<ListItem button key={text} onClick={() => this.goTo(text.toLowerCase())}>
<ListItemIcon>{this.getIcon(text)}</ListItemIcon>
<ListItemText primary={text} />
</ListItem>
))}
</List>
</div>
);
render() {
const { classes, theme } = this.props;
return (
<Drawer
variant="permanent"
className={clsx(classes.drawer, {
[classes.drawerOpen]: this.state.open,
[classes.drawerClose]: !this.state.open,
})}
classes={{
paper: clsx({
[classes.drawerOpen]: this.state.open,
[classes.drawerClose]: !this.state.open,
}),
}}
>
<div className={classes.toolbar}>
<IconButton onClick={this.toggleDrawer}>
{theme.direction === 'rtl' ? <ChevronRightIcon /> : <ChevronLeftIcon />}
</IconButton>
</div>
<Divider />
{this.listItems(classes)}
</Drawer>
)
}
}
const sideMenu = withTheme(SideMenu);
export default withStyles(useStyles)(sideMenu);
|
/*jslint this: true, browser: true, long: true, for: true, bitwise: true, unordered: true */
/*global window console demonstrationHelper */
/**
* Follows WebSocket behaviour defined by spec:
* https://html.spec.whatwg.org/multipage/web-sockets.html
*/
(function () {
// Create a helper function to remove some boilerplate code from the example itself.
const demo = demonstrationHelper({
"responseElm": document.getElementById("idResponse"),
"javaScriptElm": document.getElementById("idJavaScript"),
"accessTokenElm": document.getElementById("idBearerToken"),
"retrieveTokenHref": document.getElementById("idHrefRetrieveToken"),
"tokenValidateButton": document.getElementById("idBtnValidate"),
"accountsList": document.getElementById("idCbxAccount"),
"footerElm": document.getElementById("idFooter")
});
// These objects contains the state of the subscriptions, so a reconnect can be processed and health can be monitored.
const optionsChainSubscription = {
"referenceId": "MyOptionsChainEvent",
"isActive": false,
"activityMonitor": null,
"isRecentDataReceived": false
};
let connection;
let snapshot; // The object containing all the data to be updated
/**
* Test if the browser supports the features required for websockets.
* @return {boolean} True when the features are available.
*/
function isWebSocketsSupportedByBrowser() {
return (
Boolean(window.WebSocket) &&
Boolean(window.Int8Array) &&
Boolean(window.Uint8Array) &&
Boolean(window.TextDecoder)
);
}
/**
* This is an example of constructing the websocket connection.
* @return {void}
*/
function createConnection() {
const accessToken = document.getElementById("idBearerToken").value;
const contextId = encodeURIComponent(document.getElementById("idContextId").value);
const streamerUrl = demo.streamerUrl + "?authorization=" + encodeURIComponent("BEARER " + accessToken) + "&contextId=" + contextId;
if (!isWebSocketsSupportedByBrowser()) {
console.error("This browser doesn't support WebSockets.");
throw "This browser doesn't support WebSockets.";
}
if (contextId !== document.getElementById("idContextId").value) {
console.error("Invalid characters in Context ID.");
throw "Invalid characters in Context ID.";
}
try {
connection = new window.WebSocket(streamerUrl);
connection.binaryType = "arraybuffer";
console.log("Connection created with binaryType '" + connection.binaryType + "'. ReadyState: " + connection.readyState + ".");
// Documentation on readyState: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/readyState
// 0=CONNECTING, 1=OPEN, 2=CLOSING, 3=CLOSED
} catch (error) {
console.error("Error creating websocket. " + error);
}
}
/**
* Determine if the option root is an FxBinaryOption (with OneTouch/NoTouch, or Put/Call sides).
* @return {boolean} When true, the AssetType is an FxBinaryOption, otherwise StockOption, StockIndexOption, FuturesOption, or FxVanillaOption
*/
function isFxBinaryOption() {
return snapshot.AssetType === "FxOneTouchOption" || snapshot.AssetType === "FxNoTouchOption";
}
/**
* Display option chain.
* @param {Object} optionsChain The snapshot from the response, or the incoming messages
* @return {void}
*/
function handleOptionsChainEvent(optionsChain) {
// In this example the original snapshot is updated with the new data - you can do smarter than this.
snapshot.LastUpdated = optionsChain.LastUpdated;
try {
if (optionsChain.hasOwnProperty("Expiries")) {
optionsChain.Expiries.forEach(function (expiry) {
const snapshotExpiry = snapshot.Expiries[expiry.Index];
if (expiry.hasOwnProperty("Strikes") && expiry.Strikes !== null) { // Seriously. It can be null (don't ask)
// Don't forget MidStrikePrice
expiry.Strikes.forEach(function (strike) {
const snapshotStrike = snapshotExpiry.Strikes[strike.Index];
if (isFxBinaryOption()) {
// See for the difference https://www.developer.saxo/openapi/learn/options-chain#OptionsChain-fields
if (strike.hasOwnProperty("NoTouch")) {
if (strike.NoTouch.hasOwnProperty("Ask")) {
snapshotStrike.NoTouch.Ask = strike.NoTouch.Ask;
}
}
if (strike.hasOwnProperty("OneTouch")) {
if (strike.OneTouch.hasOwnProperty("Ask")) {
snapshotStrike.OneTouch.Ask = strike.OneTouch.Ask;
}
}
} else {
if (strike.hasOwnProperty("Call")) {
// Don't forget Bid, LastTraded (NetChange), Volume, Low, High - quite some work to make it complete!
if (strike.Call.hasOwnProperty("Ask")) {
snapshotStrike.Call.Ask = strike.Call.Ask;
}
if (strike.Call.hasOwnProperty("AskSize")) {
snapshotStrike.Call.AskSize = strike.Call.AskSize;
}
}
if (strike.hasOwnProperty("Put")) {
if (strike.Put.hasOwnProperty("Ask")) {
snapshotStrike.Put.Ask = strike.Put.Ask;
}
if (strike.Put.hasOwnProperty("AskSize")) {
snapshotStrike.Put.AskSize = strike.Put.AskSize;
}
}
}
});
}
// Keep in mind that when decreasing the subscription to less series, the data can become outdated.
// This can be solved by displaying the LastUpdated timestamp for the shown strike.
});
}
} catch (error) {
// Protect the software for messages with an out-of-scope index.
console.error("Error " + error + " happened in event object " + JSON.stringify(optionsChain, null, 2));
}
}
/**
* This function monitors the data going over the network for the different active subscriptions.
* @param {Object} subscription The subscription to monitor
* @returns {void}
*/
function monitorActivity(subscription) {
if (subscription.isActive) {
if (subscription.isRecentDataReceived) {
console.debug("Subscription " + subscription.referenceId + " is healthy..");
subscription.isRecentDataReceived = false;
} else {
console.error("No recent network activity for subscription " + subscription.referenceId + ". You might want to reconnect.");
}
}
}
/**
* Determine the AssetType of a given OptionRootId.
* @param {number} optionRootId The option root
* @param {Function} callbackOnSuccess This function is called when the request was successful
* @return {void}
*/
function getAssetTypeOfOptionRoot(optionRootId, callbackOnSuccess) {
fetch(
// Don't filter on parameter "TradingStatus=Tradable", because many series have status "NotDefined"
demo.apiUrl + "/ref/v1/instruments/contractoptionspaces/" + optionRootId + "?OptionSpaceSegment=AllDates",
{
"method": "GET",
"headers": {
"Authorization": "Bearer " + document.getElementById("idBearerToken").value
}
}
).then(function (response) {
if (response.ok) {
response.json().then(function (responseJson) {
callbackOnSuccess(responseJson.AssetType); // Can differ (FuturesOption, StockOption, StockIndexOption)
});
} else {
if (response.status === 404) {
// You can verify this using SaxoTraderGO
console.error("This option root is not found. Are options available for this account?");
} else {
demo.processError(response);
}
}
}).catch(function (error) {
console.error(error);
});
}
/**
* Convert the snaphot to a string, to demo how the series matrix might look - you'll probably do this in a much smarter way.
* @return {string} The string respresentation of the options matrix
*/
function displayExpiries() {
const nameOfStrike = (
isFxBinaryOption()
? "Barrier"
: "Strike"
);
let snapshotAsText = "";
snapshot.Expiries.forEach(function (expiry) {
const expiryDate = new Date(expiry.Expiry);
snapshotAsText += "Option series with expiry date " + expiryDate.toLocaleDateString();
snapshotAsText += ":\n";
expiry.Strikes.forEach(function (strike) {
snapshotAsText += " Strike " + (
strike.hasOwnProperty(nameOfStrike)
? strike[nameOfStrike]
: "?"
);
// More prize info is available. Study the response of the subscribe request.
if (isFxBinaryOption()) {
if (Object.keys(strike.NoTouch).length > 0) {
// Ignore empty objects
snapshotAsText += ", noTouch";
if (strike.NoTouch.hasOwnProperty("Ask")) {
snapshotAsText += " with ask " + strike.NoTouch.Ask; // You will use the correct Format.Decimals from the /instrument/details endpoint?
}
}
if (Object.keys(strike.OneTouch).length > 0) {
snapshotAsText += ", oneTouch";
if (strike.OneTouch.hasOwnProperty("Ask")) {
snapshotAsText += " with ask " + strike.OneTouch.Ask;
}
}
} else {
if (Object.keys(strike.Call).length > 0) {
// Ignore empty objects
snapshotAsText += ", call";
if (strike.Call.hasOwnProperty("Ask")) {
snapshotAsText += " with ask " + strike.Call.Ask; // You will use the correct Format.Decimals from the /instrument/details endpoint?
}
if (strike.Call.hasOwnProperty("AskSize")) {
snapshotAsText += " volume " + strike.Call.AskSize;
}
}
if (Object.keys(strike.Put).length > 0) {
snapshotAsText += ", put";
if (strike.Put.hasOwnProperty("Ask")) {
snapshotAsText += " with ask " + strike.Put.Ask;
}
if (strike.Put.hasOwnProperty("AskSize")) {
snapshotAsText += " volume " + strike.Put.AskSize;
}
}
}
snapshotAsText += "\n";
});
});
return snapshotAsText;
}
/**
* The snapshot contains only relevant strikes. But updates might come in for strikes that are not available in the snapshot - just don't display empty strikes.
* @return {void}
*/
function prepareSnapshotForWindowUpdates() {
snapshot.Expiries.forEach(function (expiry) {
const nameOfSide1 = (
isFxBinaryOption()
? "NoTouch"
: "Call"
);
const nameOfSide2 = (
isFxBinaryOption()
? "OneTouch"
: "Put"
);
let i;
if (expiry.hasOwnProperty("Strikes")) {
// Make sure all strikes contain a call/put, or noTouch/oneTouch object:
expiry.Strikes.forEach(function (strike) {
if (!strike.hasOwnProperty(nameOfSide1)) {
strike[nameOfSide1] = {};
}
if (!strike.hasOwnProperty(nameOfSide2)) {
strike[nameOfSide2] = {};
}
});
} else {
expiry.Strikes = [];
// Add empty strikes
for (i = 0; i < expiry.StrikeCount; i += 1) {
expiry.Strikes.push({
[nameOfSide1]: {},
[nameOfSide2]: {}
});
}
}
});
}
/**
* Create an array specifying the number of expiries.
* @return {Array<Object>} The expiries to request
*/
function addExpiries() {
const strikeStartIndex = document.getElementById("idCbxStrikeStart").value;
const expiries = [];
let i;
for (i = 0; i < document.getElementById("idCbxExpiries").value; i += 1) {
// Here you can supply the number of option series with an expiry date to add to the subscription.
// Too many subscriptions lead to a 400 "TooManyStrikesRequested: Too many strikes requested" error.
// You can also play with the StrikeStartIndex, to move the active part to a different StrikeWindowStartIndex.
const expiry = {
"Index": i
};
if (strikeStartIndex !== "ATM") {
// This can differ per expiry, but for the demo, this is done for all expiries.
expiry.StrikeStartIndex = strikeStartIndex;
}
expiries.push(expiry);
}
return expiries;
}
/**
* This is an example of subscribing to an options chain.
* @return {void}
*/
function subscribeOptionsChain() {
function internalSubscribe(assetType) {
const data = {
"ContextId": document.getElementById("idContextId").value,
"ReferenceId": optionsChainSubscription.referenceId,
"Arguments": {
"AccountKey": demo.user.accountKey,
"AssetType": assetType,
"Identifier": optionRootId,
"MaxStrikesPerExpiry": document.getElementById("idCbxMaxStrikesPerExpiry").value, // 100 will be the "All" value
"Expiries": addExpiries()
}
};
if (optionsChainSubscription.isActive) {
// There is an active subscription. Update that one, to spare a DELETE request.
data.ReplaceReferenceId = optionsChainSubscription.referenceId;
}
fetch(
demo.apiUrl + "/trade/v1/optionschain/subscriptions",
{
"method": "POST",
"headers": {
"Authorization": "Bearer " + document.getElementById("idBearerToken").value,
"Content-Type": "application/json; charset=utf-8"
},
"body": JSON.stringify(data)
}
).then(function (response) {
if (response.ok) {
optionsChainSubscription.isRecentDataReceived = true; // Start positive, will be set to 'false' after the next monitor health check.
optionsChainSubscription.isActive = true;
response.json().then(function (responseJson) {
// Monitor connection every "InactivityTimeout" seconds.
if (optionsChainSubscription.activityMonitor === null) {
optionsChainSubscription.activityMonitor = window.setInterval(function () {
monitorActivity(optionsChainSubscription);
}, responseJson.InactivityTimeout * 1000);
}
snapshot = responseJson.Snapshot;
prepareSnapshotForWindowUpdates();
console.log("Subscription for options chain created with readyState " + connection.readyState + " and data: " + JSON.stringify(data, null, 4) + "\n\nResponse: " + displayExpiries());
});
} else {
demo.processError(response);
}
}).catch(function (error) {
console.error(error);
});
}
const optionRootId = document.getElementById("idOptionRootId").value;
const isAssetTypeSuppied = document.getElementById("idCbxAssetType").value !== "-";
if (isAssetTypeSuppied) {
// The request GET /instruments/contractoptionspaces/21 doesn't work for some option types.
internalSubscribe(document.getElementById("idCbxAssetType").value);
} else {
// First, determine the AssetType to be used:
getAssetTypeOfOptionRoot(optionRootId, internalSubscribe);
}
}
/**
* This is used for scrolling the options board, by providing either another set of expiries, or specifying another set of strikes to subscribe to.
* For changing to another instrument, it is recommended to create a new subscription and discard the old. Use the ReplaceReferenceId field, to save a DELETE request.
* @return {void}
*/
function updateSubscription() {
// There is the option to PATCH the active subscription. However, a patch doesn't come with a snapshot.
// Matching incoming data with an old snapshot of a different window, leads to issues. So just update the active subscription by using the ReplaceReferenceId.
subscribeOptionsChain();
}
/**
* Reset an options chain subscription "At The Money".
* @return {void}
*/
function resetSubscription() {
// There is the option to PUT the active subscription to /ResetATM. However, a put doesn't come with a snapshot.
// Matching incoming data with an old snapshot of a different window, leads to issues. So just update the active subscription by using the ReplaceReferenceId.
document.getElementById("idCbxStrikeStart").value = "ATM";
subscribeOptionsChain();
}
/**
* This is an example of unsubscribing to the events.
* @param {Function} callbackOnSuccess Function to invoke on success
* @return {void}
*/
function unsubscribe(callbackOnSuccess) {
/**
* Unsubscribe for the service added to the URL.
* @param {boolean} isSubscriptionActive When not active, skip and invoke callback
* @param {string} urlPath The URL pointing to the service to unsubscribe
* @param {Function} internalCallbackOnSuccess Function to invoke on success
* @return {void}
*/
function removeSubscription(isSubscriptionActive, urlPath, internalCallbackOnSuccess) {
if (isSubscriptionActive) {
fetch(
demo.apiUrl + urlPath,
{
"method": "DELETE",
"headers": {
"Authorization": "Bearer " + document.getElementById("idBearerToken").value
}
}
).then(function (response) {
if (response.ok) {
console.log("Unsubscribed to " + urlPath + ".\nReadyState " + connection.readyState + ".");
internalCallbackOnSuccess();
} else {
demo.processError(response);
}
}).catch(function (error) {
console.error(error);
});
} else {
internalCallbackOnSuccess();
}
}
const contextId = document.getElementById("idContextId").value;
const urlPathOptionsChain = "/trade/v1/optionschain/subscriptions/" + encodeURIComponent(contextId) + "/" + encodeURIComponent(optionsChainSubscription.referenceId);
removeSubscription(optionsChainSubscription.isActive, urlPathOptionsChain, callbackOnSuccess);
}
/**
* Unsubscribe and subscribe again, with the selected/active account.
* @return {void}
*/
function recreateSubscriptions() {
unsubscribe(function () {
if (optionsChainSubscription.isActive) {
subscribeOptionsChain();
}
});
}
/**
* This function initiates the events and contains the processing of new messages.
* @return {void}
*/
function startListener() {
const utf8Decoder = new window.TextDecoder();
/**
* This event is triggered when the socket connection is opened.
* @return {void}
*/
function handleSocketOpen() {
console.log("Streaming connected.");
}
/**
* This event is triggered when the socket connection is closed.
* @param {Object} evt The event containing the reason
* @return {void}
*/
function handleSocketClose(evt) {
// Status codes: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent
if (evt.wasClean === true) {
console.log("Streaming disconnected with code " + evt.code + "."); // Most likely 1000 (Normal Closure), or 1001 (Going Away)
} else {
console.error("Streaming disconnected with code " + evt.code + ".");
if (demo.getSecondsUntilTokenExpiry(document.getElementById("idBearerToken").value) <= 0) {
window.alert("It looks like the socket has been disconnected due to an expired token (error code " + evt.code + ").");
} else if (window.confirm("It looks like the socket has been disconnected, probably due to a network failure (error code " + evt.code + ").\nDo you want to (try to) reconnect?")) {
createConnection();
startListener();
// Ideally you create a setup where the connection is restored automatically, after a second or so.
// You can do this with an increasing wait time, until a maximum of say 10 retries.
recreateSubscriptions();
}
}
}
/**
* This event is triggered when the socket connection enters an error state.
* @param {Object} evt The event containing the reason
* @return {void}
*/
function handleSocketError(evt) {
console.error(evt);
}
/**
* This function processes the heartbeat messages, containing info about system health.
* https://www.developer.saxo/openapi/learn/plain-websocket-streaming#PlainWebSocketStreaming-Controlmessages
* @param {Array<Object>} payload The list of messages
* @return {void}
*/
function handleHeartbeat(payload) {
// Heartbeat messages are sent every 20 seconds. If there is a minute without messages, this is an error.
if (Array.isArray(payload)) {
payload.forEach(function (heartbeatMessages) {
heartbeatMessages.Heartbeats.forEach(function (heartbeat) {
switch (heartbeat.Reason) {
case "SubscriptionTemporarilyDisabled":
case "SubscriptionPermanentlyDisabled":
console.error("Heartbeat event error: " + heartbeat.Reason);
break;
case "NoNewData":
switch (heartbeat.OriginatingReferenceId) {
case optionsChainSubscription.referenceId:
optionsChainSubscription.isRecentDataReceived = true;
break;
}
console.debug("No data, but heartbeat received for " + heartbeat.OriginatingReferenceId + " @ " + new Date().toLocaleTimeString());
break;
default:
console.error("Unknown heartbeat message received: " + JSON.stringify(payload));
}
});
});
} else {
// This might be a TradeLevelChange event
console.log("Received non-array heartbeat notification: " + JSON.stringify(payload, null, 4));
}
}
/**
* Creates a Long from its little endian byte representation (function is part of long.js - https://github.com/dcodeIO/long.js).
* @param {!Array.<number>} bytes Little endian byte representation
* @param {boolean=} unsigned Whether unsigned or not, defaults to signed
* @returns {number} The corresponding Long value
*/
function fromBytesLe(bytes, unsigned) {
const low = (bytes[0] | bytes[1] << 8 | bytes[2] << 16 | bytes[3] << 24) | 0;
const high = (bytes[4] | bytes[5] << 8 | bytes[6] << 16 | bytes[7] << 24) | 0;
const twoPwr16Dbl = 1 << 16;
const twoPwr32Dbl = twoPwr16Dbl * twoPwr16Dbl;
if (unsigned) {
return (high >>> 0) * twoPwr32Dbl + (low >>> 0);
}
return high * twoPwr32Dbl + (low >>> 0);
}
/**
* Parse the incoming messages. Documentation on message format: https://www.developer.saxo/openapi/learn/plain-websocket-streaming#PlainWebSocketStreaming-Receivingmessages
* @param {Object} data The received stream message
* @returns {Array.<Object>} Returns an array with all incoming messages of the frame
*/
function parseMessageFrame(data) {
const message = new DataView(data);
const parsedMessages = [];
let index = 0;
let messageId;
let referenceIdSize;
let referenceIdBuffer;
let referenceId;
let payloadFormat;
let payloadSize;
let payloadBuffer;
let payload;
while (index < data.byteLength) {
/* Message identifier (8 bytes)
* 64-bit little-endian unsigned integer identifying the message.
* The message identifier is used by clients when reconnecting. It may not be a sequence number and no interpretation
* of its meaning should be attempted at the client.
*/
messageId = fromBytesLe(new window.Uint8Array(data, index, 8));
index += 8;
/* Version number (2 bytes)
* Ignored in this example. Get it using 'messageEnvelopeVersion = message.getInt16(index)'.
*/
index += 2;
/* Reference id size 'Srefid' (1 byte)
* The number of characters/bytes in the reference id that follows.
*/
referenceIdSize = message.getInt8(index);
index += 1;
/* Reference id (Srefid bytes)
* ASCII encoded reference id for identifying the subscription associated with the message.
* The reference id identifies the source subscription, or type of control message (like '_heartbeat').
*/
referenceIdBuffer = new window.Int8Array(data, index, referenceIdSize);
referenceId = String.fromCharCode.apply(String, referenceIdBuffer);
index += referenceIdSize;
/* Payload format (1 byte)
* 8-bit unsigned integer identifying the format of the message payload. Currently the following formats are defined:
* 0: The payload is a UTF-8 encoded text string containing JSON.
* 1: The payload is a binary protobuffer message.
* The format is selected when the client sets up a streaming subscription so the streaming connection may deliver a mixture of message format.
* Control messages such as subscription resets are not bound to a specific subscription and are always sent in JSON format.
*/
payloadFormat = message.getUint8(index);
index += 1;
/* Payload size 'Spayload' (4 bytes)
* 64-bit little-endian unsigned integer indicating the size of the message payload.
*/
payloadSize = message.getUint32(index, true);
index += 4;
/* Payload (Spayload bytes)
* Binary message payload with the size indicated by the payload size field.
* The interpretation of the payload depends on the message format field.
*/
payloadBuffer = new window.Uint8Array(data, index, payloadSize);
payload = null;
switch (payloadFormat) {
case 0:
// JSON
try {
payload = JSON.parse(utf8Decoder.decode(payloadBuffer));
} catch (error) {
console.error(error);
}
break;
case 1:
// ProtoBuf is not supported in this example. See the realtime-quotes example for a Protocol Buffers implementation.
console.error("Protocol Buffers are not supported in this example.");
break;
default:
console.error("Unsupported payloadFormat: " + payloadFormat);
}
if (payload !== null) {
parsedMessages.push({
"messageId": messageId,
"referenceId": referenceId,
"payload": payload
});
}
index += payloadSize;
}
return parsedMessages;
}
/**
* New data is received. Read and process the data.
* @param {Object} messageFrame The received message
* @return {void}
*/
function handleSocketMessage(messageFrame) {
const messages = parseMessageFrame(messageFrame.data);
messages.forEach(function (message) {
switch (message.referenceId) {
case optionsChainSubscription.referenceId:
optionsChainSubscription.isRecentDataReceived = true;
handleOptionsChainEvent(message.payload);
demo.displaySourceCode([handleOptionsChainEvent]);
console.log(displayExpiries() + "\n\nStreaming option chain event(s) " + message.messageId + " received: " + JSON.stringify(message.payload, null, 4));
break;
case "_heartbeat":
// https://www.developer.saxo/openapi/learn/plain-websocket-streaming#PlainWebSocketStreaming-Controlmessages
handleHeartbeat(message.payload);
break;
case "_resetsubscriptions":
// https://www.developer.saxo/openapi/learn/plain-websocket-streaming#PlainWebSocketStreaming-Controlmessages
// The server is not able to send messages and client needs to reset subscriptions by recreating them.
console.error("Reset Subscription Control message received! Reset your subscriptions by recreating them.\n\n" + JSON.stringify(message.payload, null, 4));
recreateSubscriptions(); // When the TargetReferenceIds array contains elements, this can be done in a more efficient way, by only resubscribing to the referenced subscriptions.
break;
case "_disconnect":
// https://www.developer.saxo/openapi/learn/plain-websocket-streaming#PlainWebSocketStreaming-Controlmessages
// The server has disconnected the client. This messages requires you to re-authenticate if you wish to continue receiving messages.
console.error("The server has disconnected the client! New login is required.\n\n" + JSON.stringify(message.payload, null, 4));
break;
default:
console.error("No processing implemented for message with reference " + message.referenceId);
}
});
}
connection.onopen = handleSocketOpen;
connection.onclose = handleSocketClose;
connection.onerror = handleSocketError;
connection.onmessage = handleSocketMessage;
console.log("Connection subscribed to events. ReadyState: " + connection.readyState + ".");
}
/**
* This is an example of extending the websocket session, when a token refresh took place.
* @return {void}
*/
function extendSubscription() {
fetch(
demo.apiUrl + "/streamingws/authorize?contextid=" + encodeURIComponent(document.getElementById("idContextId").value),
{
"method": "PUT",
"headers": {
"Authorization": "Bearer " + document.getElementById("idBearerToken").value
}
}
).then(function (response) {
if (response.ok) {
console.log("Subscription extended.");
} else {
demo.processError(response);
}
}).catch(function (error) {
console.error(error);
});
}
/**
* This is an example of unsubscribing, including a reset of the state.
* @return {void}
*/
function unsubscribeAndResetState() {
unsubscribe(function () {
optionsChainSubscription.isActive = false;
});
}
/**
* This is an example of disconnecting.
* @return {void}
*/
function disconnect() {
const NORMAL_CLOSURE = 1000;
connection.close(NORMAL_CLOSURE); // This will trigger the onclose event
// Activity monitoring can be stopped.
window.clearInterval(optionsChainSubscription.activityMonitor);
}
document.getElementById("idContextId").value = "MyApp_" + Date.now(); // Some unique value
demo.setupEvents([
{"evt": "click", "elmId": "idBtnCreateConnection", "func": createConnection, "funcsToDisplay": [createConnection]},
{"evt": "click", "elmId": "idBtnStartListener", "func": startListener, "funcsToDisplay": [startListener]},
{"evt": "click", "elmId": "idBtnSubscribeOptionsChain", "func": subscribeOptionsChain, "funcsToDisplay": [subscribeOptionsChain]},
{"evt": "click", "elmId": "idBtnUpdateSubscription", "func": updateSubscription, "funcsToDisplay": [updateSubscription, subscribeOptionsChain]},
{"evt": "click", "elmId": "idBtnResetSubscription", "func": resetSubscription, "funcsToDisplay": [resetSubscription, subscribeOptionsChain]},
{"evt": "click", "elmId": "idBtnExtendSubscription", "func": extendSubscription, "funcsToDisplay": [extendSubscription]},
{"evt": "click", "elmId": "idBtnUnsubscribe", "func": unsubscribeAndResetState, "funcsToDisplay": [unsubscribeAndResetState]},
{"evt": "click", "elmId": "idBtnDisconnect", "func": disconnect, "funcsToDisplay": [disconnect]}
]);
demo.displayVersion("trade");
}());
|
'use strict';
angular.module('myApp.view1', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view1', {
templateUrl: 'view1/view1.html',
controller: 'View1Ctrl as vm'
});
}])
.controller('View1Ctrl', ['convertService',function(convertService) {
var vm= this;
vm.calculateAmount = calculateAmount;
vm.cantidad = "0";
vm.resultado = "";
function calculateAmount() {
convertService.calculate(vm.cantidad);
vm.resultado = convertService.convertResult();
}
}]);
|
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var prefix = 'fas';
var iconName = 'users';
var width = 640;
var height = 512;
var ligatures = [];
var unicode = 'f0c0';
var svgPathData = 'M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z';
exports.definition = {
prefix: prefix,
iconName: iconName,
icon: [
width,
height,
ligatures,
unicode,
svgPathData
]};
exports.faUsers = exports.definition;
exports.prefix = prefix;
exports.iconName = iconName;
exports.width = width;
exports.height = height;
exports.ligatures = ligatures;
exports.unicode = unicode;
exports.svgPathData = svgPathData;
|
import axios from 'axios';
import { UPLOAD_IMAGE } from '../constants/upload';
/**
* Upload image
*
* @param {Object} image
*/
export function uploadImage(image) {
const data = new FormData();
data.append('image', image);
let config = {
headers: {
'content-type': 'multipart/form-data',
},
};
return dispatch => {
return dispatch({
type: UPLOAD_IMAGE,
payload: axios.post('/upload/image', data, config),
})
.catch((error) => {
if (error instanceof Error) {
console.log(error);
}
});
}
}
|
var BasketModel = (function () {
function BasketModel(attributes) {
if (attributes === void 0) { attributes = null; }
// Items attributes
this.id = 0;
this.items = [];
this.chainId = 0;
this.date = '';
this.storeId = 0;
this.attributes = attributes;
}
Object.defineProperty(BasketModel.prototype, "attributes", {
// set function: set attributes values of basket and
// verify types
set:
// set function: set attributes values of basket and
// verify types
function (attributes) {
for (var k in attributes) {
if (typeof attributes[k] == typeof this[k]) {
this[k] = attributes[k];
}
else {
this[k] = null;
console.log("La variable", k, "no posee el tipo correcto o requerido.");
}
}
},
enumerable: true,
configurable: true
});
return BasketModel;
}());
export { BasketModel };
//# sourceMappingURL=basketModel.js.map
|
import React from 'react';
import Enzyme, { mount, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import createConnector, {
createConnectorWithoutContext,
} from '../createConnector';
import { InstantSearchProvider } from '../context';
Enzyme.configure({ adapter: new Adapter() });
describe('createConnector', () => {
const createFakeState = (props) => ({
widgets: {},
results: {},
resultsFacetValues: {},
searching: false,
searchingForFacetValues: false,
isSearchStalled: false,
metadata: {},
error: {},
...props,
});
const createFakeStore = (props) => ({
getState: () => createFakeState(),
setState() {},
subscribe() {},
...props,
});
const createFakeWidgetManager = (props) => ({
registerWidget() {},
getWidgets() {},
update() {},
...props,
});
const createFakeContext = (props) => ({
onInternalStateUpdate() {},
createHrefForState() {},
onSearchForFacetValues() {},
onSearchStateChange() {},
onSearchParameters() {},
store: createFakeStore(),
widgetsManager: createFakeWidgetManager(),
...props,
});
describe('state', () => {
it('computes provided props', () => {
const getProvidedProps = jest.fn((props) => ({
providedProps: props,
}));
const Fake = () => null;
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps,
})(Fake);
const state = createFakeState();
const props = {
hello: 'there',
};
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
}),
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(getProvidedProps).toHaveBeenCalledTimes(1);
expect(getProvidedProps).toHaveBeenCalledWith(
{ hello: 'there', contextValue: context },
state.widgets,
{
results: state.results,
searching: state.searching,
searchingForFacetValues: state.searchingForFacetValues,
isSearchStalled: state.isSearchStalled,
error: state.error,
},
state.metadata,
state.resultsFacetValues
);
expect(wrapper.find(Fake).props()).toEqual({
hello: 'there',
providedProps: {
hello: 'there',
contextValue: context,
},
});
});
it('computes provided props on props change', () => {
const getProvidedProps = jest.fn((props) => ({
providedProps: props,
}));
const Fake = () => null;
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps,
})(Fake);
const props = {
hello: 'there',
};
const context = createFakeContext();
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(getProvidedProps).toHaveBeenCalledTimes(1);
wrapper.setProps({
hello: 'again',
});
expect(getProvidedProps).toHaveBeenCalledTimes(2);
expect(wrapper.find(Fake).props()).toEqual({
hello: 'again',
providedProps: {
hello: 'again',
contextValue: context,
},
});
});
it('computes provided props with the correct value for `canRender` on props change', () => {
const getProvidedProps = jest.fn((props) => ({
providedProps: props,
}));
const Fake = () => null;
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps,
})(Fake);
const props = {
hello: 'there',
};
const context = createFakeContext();
const wrapper = shallow(<Connected {...props} contextValue={context} />);
// Simulate props change before mount
wrapper.setProps({ hello: 'again' });
expect(wrapper.find(Fake).props()).toEqual({
hello: 'again',
providedProps: {
hello: 'again',
contextValue: context,
},
});
// Simulate mount lifecycle
wrapper.instance().componentDidMount();
// Simulate props change after mount
wrapper.setProps({ hello: 'once again' });
expect(wrapper.find(Fake).props()).toEqual({
hello: 'once again',
providedProps: {
hello: 'once again',
contextValue: context,
},
});
});
it('computes provided props on search state change', () => {
const getProvidedProps = jest.fn((_, state) => state);
const Fake = () => null;
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps,
})(Fake);
const subscribe = jest.fn();
const state = createFakeState({
widgets: {
query: 'hello',
},
});
const props = {
hello: 'there',
};
const context = createFakeContext({
store: createFakeStore({
getState: jest.fn(() => state),
subscribe,
}),
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(getProvidedProps).toHaveBeenCalledTimes(1);
expect(wrapper.find(Fake).props()).toEqual({
hello: 'there',
query: 'hello',
});
// Simulate a search state change
context.store.getState.mockImplementation(() => ({
...state,
widgets: {
query: 'hello World',
},
}));
// Simulate a dispatch on search state change
context.store.subscribe.mock.calls[0][0]();
expect(getProvidedProps).toHaveBeenCalledTimes(2);
expect(wrapper.find(Fake).props()).toEqual({
hello: 'there',
query: 'hello World',
});
});
it('computes provided props with latest props on search state change', () => {
const getProvidedProps = jest.fn((_, state) => state);
const Fake = () => null;
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps,
})(Fake);
const subscribe = jest.fn();
const state = createFakeState({
widgets: {
query: 'hello',
},
});
const props = {
hello: 'there',
};
const context = createFakeContext({
store: createFakeStore({
getState: jest.fn(() => state),
subscribe,
}),
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(wrapper.find(Fake).props()).toEqual({
hello: 'there',
query: 'hello',
});
// Simulate a search state change
context.store.getState.mockImplementation(() => ({
...state,
widgets: {
query: 'hello world',
},
}));
// Simulate a props change
wrapper.setProps({
hello: 'again',
});
// Simulate a dispatch on search state change
context.store.subscribe.mock.calls[0][0]();
expect(wrapper.find(Fake).props()).toEqual({
hello: 'again',
query: 'hello world',
});
});
it('does not compute provided props when props do not change', () => {
const getProvidedProps = jest.fn((props) => ({
providedProps: props,
}));
const Fake = jest.fn(() => null);
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps,
})(Fake);
const props = {
hello: 'again',
another: ['one', 'two'],
};
const context = createFakeContext();
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(getProvidedProps).toHaveBeenCalledTimes(1);
wrapper.setProps({
hello: 'again',
another: ['one', 'two'],
});
expect(getProvidedProps).toHaveBeenCalledTimes(1);
wrapper.setProps({
hello: 'again',
another: ['one', 'two'],
});
expect(getProvidedProps).toHaveBeenCalledTimes(1);
});
it('use shouldComponentUpdate when provided', () => {
const shouldComponentUpdate = jest.fn(() => true);
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: (props) => props,
getMetadata: () => null,
shouldComponentUpdate,
})(() => null);
const props = { hello: 'there' };
const context = createFakeContext();
const wrapper = mount(<Connected {...props} contextValue={context} />);
expect(shouldComponentUpdate).toHaveBeenCalledTimes(0);
wrapper.setProps({ hello: 'here' });
expect(shouldComponentUpdate).toHaveBeenCalledTimes(2);
expect(shouldComponentUpdate).toHaveBeenCalledWith(
{
hello: 'there',
contextValue: context,
},
{
hello: 'here',
contextValue: context,
},
{
providedProps: {
hello: 'there',
contextValue: context,
},
},
{
providedProps: {
hello: 'there',
contextValue: context,
},
}
);
expect(shouldComponentUpdate).toHaveBeenCalledWith(
{
hello: 'here',
contextValue: context,
},
{
hello: 'here',
contextValue: context,
},
{
providedProps: {
hello: 'there',
contextValue: context,
},
},
{
providedProps: {
hello: 'here',
contextValue: context,
},
}
);
});
it('subscribes to the store once mounted', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
})(() => null);
const subscribe = jest.fn();
const context = createFakeContext({
store: createFakeStore({
subscribe,
}),
});
const wrapper = shallow(<Connected contextValue={context} />, {
disableLifecycleMethods: true,
});
expect(subscribe).toHaveBeenCalledTimes(0);
// Simulate didMount
wrapper.instance().componentDidMount();
expect(subscribe).toHaveBeenCalledTimes(1);
});
it('unsubscribes from the store on unmount', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
})(() => null);
const unsubscribe = jest.fn();
const context = createFakeContext({
store: createFakeStore({
subscribe: () => unsubscribe,
}),
});
const wrapper = shallow(<Connected contextValue={context} />);
expect(unsubscribe).toHaveBeenCalledTimes(0);
wrapper.unmount();
expect(unsubscribe).toHaveBeenCalledTimes(1);
});
it('does not throw an error on unmount before mount', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
})(() => null);
const context = createFakeContext({
store: createFakeStore({
subscribe() {
return () => {
// unsubscribe
};
},
}),
});
const wrapper = shallow(<Connected contextValue={context} />, {
disableLifecycleMethods: true,
});
expect(() => wrapper.unmount()).not.toThrow();
});
it('does not throw an error on dispatch after unmount', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
})(() => null);
const unsubscribe = () => {};
const subscribe = jest.fn(() => unsubscribe);
const context = createFakeContext({
store: createFakeStore({
subscribe,
}),
});
const wrapper = shallow(<Connected contextValue={context} />);
expect(() => () => {
wrapper.unmount();
// Simulate a dispatch
subscribe.mock.calls[0][0]();
}).not.toThrow();
});
});
describe('widget', () => {
it('registers itself as a widget with getMetadata', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
})(() => null);
const registerWidget = jest.fn();
const context = createFakeContext({
widgetsManager: createFakeWidgetManager({
registerWidget,
}),
});
const wrapper = shallow(<Connected contextValue={context} />);
expect(registerWidget).toHaveBeenCalledTimes(1);
expect(registerWidget).toHaveBeenCalledWith(wrapper.instance());
});
it('registers itself as a widget with getSearchParameters', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getSearchParameters: () => null,
})(() => null);
const registerWidget = jest.fn();
const context = createFakeContext({
widgetsManager: createFakeWidgetManager({
registerWidget,
}),
});
const wrapper = shallow(<Connected contextValue={context} />);
expect(registerWidget).toHaveBeenCalledTimes(1);
expect(registerWidget).toHaveBeenCalledWith(wrapper.instance());
});
it('registers itself as a widget once mounted', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getSearchParameters: () => null,
})(() => null);
const registerWidget = jest.fn();
const context = createFakeContext({
widgetsManager: createFakeWidgetManager({
registerWidget,
}),
});
const wrapper = shallow(<Connected contextValue={context} />, {
disableLifecycleMethods: true,
});
expect(registerWidget).toHaveBeenCalledTimes(0);
// Simulate didMount
wrapper.instance().componentDidMount();
expect(registerWidget).toHaveBeenCalledTimes(1);
expect(registerWidget).toHaveBeenCalledWith(wrapper.instance());
});
it('does not register itself as a widget without getMetadata nor getSearchParameters', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
})(() => null);
const registerWidget = jest.fn();
const context = createFakeContext({
widgetsManager: createFakeWidgetManager({
registerWidget,
}),
});
shallow(<Connected contextValue={context} />);
expect(registerWidget).not.toHaveBeenCalled();
});
it('calls onSearchParameters on mount with getSearchParameters', () => {
const Connected = createConnectorWithoutContext({
displayName: 'CoolConnector',
getProvidedProps: () => {},
getSearchParameters: () => null,
getMetadata: () => null,
})(() => null);
const onSearchParameters = jest.fn();
const props = {
hello: 'there',
};
const context = createFakeContext({
onSearchParameters,
});
shallow(<Connected {...props} contextValue={context} />);
expect(onSearchParameters).toHaveBeenCalledTimes(1);
expect(onSearchParameters).toHaveBeenCalledWith(
expect.any(Function),
{ ais: context },
{ ...props, contextValue: context },
expect.any(Function)
);
});
it('does not call onSearchParameters on mount without getSearchParameters', () => {
const Connected = createConnectorWithoutContext({
displayName: 'CoolConnector',
getProvidedProps: () => {},
})(() => null);
const onSearchParameters = jest.fn();
const props = {
hello: 'there',
};
const context = createFakeContext({
onSearchParameters,
});
shallow(<Connected {...props} contextValue={context} />);
expect(onSearchParameters).not.toHaveBeenCalled();
});
it('binds getSearchParameters to the connector instance with onSearchParameters', () => {
const getSearchParameters = jest.fn(function () {
return this;
});
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getSearchParameters,
})(() => null);
const onSearchParameters = jest.fn();
const context = createFakeContext({
onSearchParameters,
});
const wrapper = shallow(<Connected contextValue={context} />);
expect(onSearchParameters.mock.calls[0][0]()).toBe(wrapper.instance());
});
it('triggers a widgetManager update on props change', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
})(() => null);
const update = jest.fn();
const props = {
hello: 'there',
};
const context = createFakeContext({
widgetsManager: createFakeWidgetManager({
update,
}),
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(update).toHaveBeenCalledTimes(0);
wrapper.setProps({
hello: 'again',
});
expect(update).toHaveBeenCalledTimes(1);
});
it('does not trigger a widgetManager update when props do not change', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
})(() => null);
const update = jest.fn();
const props = {
hello: 'there',
};
const context = createFakeContext({
widgetsManager: createFakeWidgetManager({
update,
}),
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(update).toHaveBeenCalledTimes(0);
wrapper.setProps({
hello: 'there',
});
expect(update).toHaveBeenCalledTimes(0);
});
it('triggers an onSearchStateChange on props change with transitionState', () => {
const transitionState = jest.fn(function () {
return this.props;
});
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
transitionState,
})(() => null);
const state = createFakeState();
const onSearchStateChange = jest.fn();
const props = {
hello: 'there',
};
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
}),
onSearchStateChange,
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(onSearchStateChange).toHaveBeenCalledTimes(0);
expect(transitionState).toHaveBeenCalledTimes(0);
wrapper.setProps({
hello: 'again',
});
expect(onSearchStateChange).toHaveBeenCalledTimes(1);
expect(onSearchStateChange).toHaveBeenCalledWith({
hello: 'again',
contextValue: context,
});
expect(transitionState).toHaveBeenCalledTimes(1);
expect(transitionState).toHaveBeenCalledWith(
{ hello: 'again', contextValue: context },
state.widgets,
state.widgets
);
});
it('does not trigger an onSearchStateChange on props change without transitionState', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
})(() => null);
const onSearchStateChange = jest.fn();
const props = {
hello: 'there',
};
const context = createFakeContext({
onSearchStateChange,
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(onSearchStateChange).not.toHaveBeenCalled();
wrapper.setProps({
hello: 'again',
});
expect(onSearchStateChange).not.toHaveBeenCalled();
});
it('unregisters itself on unmount', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
})(() => null);
const unregisterWidget = jest.fn();
const context = createFakeContext({
widgetsManager: createFakeWidgetManager({
registerWidget: () => unregisterWidget,
}),
});
const wrapper = shallow(<Connected contextValue={context} />);
expect(unregisterWidget).toHaveBeenCalledTimes(0);
wrapper.unmount();
expect(unregisterWidget).toHaveBeenCalledTimes(1);
});
it('calls onSearchStateChange with cleanUp on unmount', () => {
const cleanUp = jest.fn(function (props, searchState) {
return {
instanceProps: this.props,
providedProps: props,
searchState,
};
});
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
cleanUp,
})(() => null);
const onSearchStateChange = jest.fn();
const setState = jest.fn();
const state = createFakeState({
widgets: {
query: 'hello',
},
});
const props = {
hello: 'there',
};
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
setState,
}),
widgetsManager: createFakeWidgetManager({
registerWidget: () => () => {},
}),
onSearchStateChange,
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(cleanUp).toHaveBeenCalledTimes(0);
expect(onSearchStateChange).toHaveBeenCalledTimes(0);
wrapper.unmount();
expect(cleanUp).toHaveBeenCalledTimes(1);
expect(onSearchStateChange).toHaveBeenCalledTimes(1);
expect(onSearchStateChange).toHaveBeenCalledWith({
providedProps: {
hello: 'there',
contextValue: context,
},
instanceProps: {
hello: 'there',
contextValue: context,
},
searchState: {
query: 'hello',
},
});
});
it('calls onSearchStateChange with cleanUp without empty keys on unmount', () => {
const cleanUp = jest.fn((_, searchState) => searchState);
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
cleanUp,
})(() => null);
const onSearchStateChange = jest.fn();
const setState = jest.fn();
const state = createFakeState({
widgets: {
query: 'hello',
hello: {},
},
});
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
setState,
}),
widgetsManager: createFakeWidgetManager({
registerWidget: () => () => {},
}),
onSearchStateChange,
});
const wrapper = shallow(<Connected contextValue={context} />);
wrapper.unmount();
expect(onSearchStateChange).toHaveBeenCalledWith({
query: 'hello',
});
});
it('does not throw an error on unmount before mount', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata: () => null,
})(() => null);
const unregisterWidget = jest.fn();
const context = createFakeContext({
widgetsManager: createFakeWidgetManager({
registerWidget: () => unregisterWidget,
}),
});
const wrapper = shallow(<Connected contextValue={context} />, {
disableLifecycleMethods: true,
});
const trigger = () => wrapper.unmount();
expect(() => trigger()).not.toThrow();
});
});
describe('getSearchParameters', () => {
it('returns the widget search parameters when getSearchParameters is provided', () => {
const getSearchParameters = function (
searchParameters,
props,
searchState
) {
return {
instanceProps: this.props,
providedProps: props,
searchParameters,
searchState,
};
};
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getSearchParameters,
})(() => null);
const searchParameters = {
query: '',
hitsPerPage: 10,
};
const state = createFakeState({
widgets: {
query: 'hello',
},
});
const props = {
hello: 'there',
};
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
}),
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
const widgetSearchParameters = wrapper
.instance()
.getSearchParameters(searchParameters);
expect(widgetSearchParameters).toEqual({
searchParameters: {
query: '',
hitsPerPage: 10,
},
instanceProps: {
hello: 'there',
contextValue: context,
},
providedProps: {
hello: 'there',
contextValue: context,
},
searchState: {
query: 'hello',
},
});
});
it('returns null when getSearchParameters is not provided', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
})(() => null);
const searchParameters = {
query: '',
hitsPerPage: 10,
};
const context = createFakeContext();
const wrapper = shallow(<Connected contextValue={context} />);
const widgetSearchParamameters = wrapper
.instance()
.getSearchParameters(searchParameters);
expect(widgetSearchParamameters).toBe(null);
});
});
describe('getMetadata', () => {
it('returns the widget metadata when getMetadata is provided', () => {
const getMetadata = function (props, searchState) {
return {
instanceProps: this.props,
providedProps: props,
searchState,
};
};
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
getMetadata,
})(() => null);
const props = {
hello: 'there',
};
const searchState = {
query: 'hello',
};
const context = createFakeContext();
const wrapper = shallow(<Connected {...props} contextValue={context} />);
const widgetMetadata = wrapper.instance().getMetadata(searchState);
expect(widgetMetadata).toEqual({
instanceProps: {
hello: 'there',
contextValue: context,
},
providedProps: {
hello: 'there',
contextValue: context,
},
searchState: {
query: 'hello',
},
});
});
it('returns an empty object when getMetadata is not provided', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
})(() => null);
const searchState = {
query: 'hello',
};
const context = createFakeContext();
const wrapper = shallow(<Connected contextValue={context} />);
const widgetMetadata = wrapper.instance().getMetadata(searchState);
expect(widgetMetadata).toEqual({});
});
});
describe('transitionState', () => {
it('returns the widget transitionState when transitionState is provided', () => {
const transitionState = function (
props,
previousSearchState,
nextSearchState
) {
return {
instanceProps: this.props,
providedProps: props,
previousSearchState,
nextSearchState,
};
};
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
transitionState,
})(() => null);
const props = {
hello: 'there',
};
const previousSearchState = {
query: 'hello',
};
const nextSearchState = {
query: 'hello again',
};
const context = createFakeContext();
const wrapper = shallow(<Connected {...props} contextValue={context} />);
const widgetTransitionState = wrapper
.instance()
.transitionState(previousSearchState, nextSearchState);
expect(widgetTransitionState).toEqual({
instanceProps: {
hello: 'there',
contextValue: context,
},
providedProps: {
hello: 'there',
contextValue: context,
},
previousSearchState: {
query: 'hello',
},
nextSearchState: {
query: 'hello again',
},
});
});
it('returns the given next state when transitionState is not provided', () => {
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
})(() => null);
const props = {
hello: 'there',
};
const previousSearchState = {
query: 'hello',
};
const nextSearchState = {
query: 'hello again',
};
const context = createFakeContext();
const wrapper = shallow(<Connected {...props} contextValue={context} />);
const widgetTransitionState = wrapper
.instance()
.transitionState(previousSearchState, nextSearchState);
expect(widgetTransitionState).toEqual({
query: 'hello again',
});
});
});
describe('refine', () => {
it('passes a refine method to the component', () => {
const refine = (props, searchState, next) => ({
props,
searchState,
next,
});
const Dummy = () => null;
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
refine,
})(Dummy);
const onInternalStateUpdate = jest.fn();
const state = createFakeState({
widgets: {
query: 'hello',
},
});
const props = {
hello: 'there',
};
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
}),
onInternalStateUpdate,
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(onInternalStateUpdate).toHaveBeenCalledTimes(0);
wrapper.find(Dummy).props().refine({ query: 'hello world' });
expect(onInternalStateUpdate).toHaveBeenCalledTimes(1);
expect(onInternalStateUpdate).toHaveBeenCalledWith({
props: {
hello: 'there',
contextValue: context,
},
searchState: {
query: 'hello',
},
next: {
query: 'hello world',
},
});
});
});
describe('createURL', () => {
it('passes a createURL method to the component', () => {
const refine = (props, searchState, next) => ({
props,
searchState,
next,
});
const Dummy = () => null;
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
refine,
})(Dummy);
const createHrefForState = jest.fn();
const state = createFakeState({
widgets: {
query: 'hello',
},
});
const props = {
hello: 'there',
};
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
}),
createHrefForState,
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(createHrefForState).toHaveBeenCalledTimes(0);
wrapper.find(Dummy).props().createURL({ query: 'hello world' });
expect(createHrefForState).toHaveBeenCalledTimes(1);
expect(createHrefForState).toHaveBeenCalledWith({
props: {
hello: 'there',
contextValue: context,
},
searchState: {
query: 'hello',
},
next: {
query: 'hello world',
},
});
});
});
describe('searchForFacetValues', () => {
it('passes a searchForItems method to the component', () => {
const searchForFacetValues = (props, searchState, next) => ({
props,
searchState,
next,
});
const Dummy = () => null;
const Connected = createConnectorWithoutContext({
displayName: 'Connector',
getProvidedProps: () => {},
searchForFacetValues,
})(Dummy);
const onSearchForFacetValues = jest.fn();
const props = {
hello: 'there',
};
const state = createFakeState({
widgets: {
query: 'hello',
},
});
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
}),
onSearchForFacetValues,
});
const wrapper = shallow(<Connected {...props} contextValue={context} />);
expect(onSearchForFacetValues).toHaveBeenCalledTimes(0);
wrapper.find(Dummy).props().searchForItems({
facetName: 'brand',
query: 'apple',
maxFacetHits: 10,
});
expect(onSearchForFacetValues).toHaveBeenCalledTimes(1);
expect(onSearchForFacetValues).toHaveBeenCalledWith({
props: {
hello: 'there',
contextValue: context,
},
searchState: {
query: 'hello',
},
next: {
facetName: 'brand',
query: 'apple',
maxFacetHits: 10,
},
});
});
});
describe('wrapped with InstantSearchProvider', () => {
it('default export reads from context', () => {
const state = createFakeState({
widgets: {
query: 'hello',
},
});
const context = createFakeContext({
store: createFakeStore({
getState: () => state,
}),
});
const Dummy = (props) => JSON.stringify(props, null, 2).replace(/"/g, '');
const Connected = createConnector({
displayName: 'Connector',
getProvidedProps: (props) => ({ providedProps: props }),
})(Dummy);
const props = {
message: 'hello',
};
const wrapper = mount(
<InstantSearchProvider value={context}>
<Connected {...props} />
</InstantSearchProvider>
);
expect(wrapper.text()).toMatchInlineSnapshot(`
"{
message: hello,
providedProps: {
contextValue: {
store: {},
widgetsManager: {}
},
message: hello
}
}"
`);
});
});
});
|
export function up(schema) {
return schema.createTable('entities', table => {
table.increments('id');
table.string('name');
table.string('email');
table.string('phone');
table.string('address');
table.string('image');
table.integer('receiver_id').index();
table.integer('parent_id').index();
table.timestamps();
table.index('created_at');
table.index('updated_at');
});
}
export function down(schema) {
return schema.dropTable('entities');
}
|
/*
TODO:
*/
"use strict"
const assert = require("chai").assert
const sinon = require("sinon")
const config = require("../../config")
// File to be tested.
const UpdateBalances = require("../../src/commands/update-balances")
// Mock data
// const testwallet = require("../mocks/testwallet.json")
// const { bitboxMock } = require("../mocks/bitbox")
const updateBalancesMocks = require("../mocks/update-balance-mocks")
// Inspect utility used for debugging.
const util = require("util")
util.inspect.defaultOptions = {
showHidden: true,
colors: true,
depth: 1
}
// Set default environment variables for unit tests.
if (!process.env.TEST) process.env.TEST = "unit"
describe("#update-balances.js", () => {
// let mockedWallet
// const filename = `${__dirname}/../../wallets/test123.json`
let updateBalances
let sandbox
beforeEach(() => {
updateBalances = new UpdateBalances()
// By default, use the mocking library instead of live calls.
// updateBalances.BITBOX = bitboxMock
// mockedWallet = Object.assign({}, testwallet) // Clone the testwallet
sandbox = sinon.createSandbox()
})
afterEach(() => {
sandbox.restore()
})
describe("#validateFlags", () => {
it("should throw error if name is not supplied.", async () => {
try {
await updateBalances.validateFlags({})
} catch (err) {
assert.include(
err.message,
`You must specify a wallet with the -n flag`,
"Expected error message."
)
}
})
})
// describe("#generateAddresses", () => {
// it("should generate an address accurately.", async () => {
// // updateBalances.BITBOX = new config.BCHLIB({
// // restURL: config.TESTNET_REST
// // })
//
// const addr = await updateBalances.generateAddress(
// updateBalancesMocks.mockWallet,
// 3,
// 1
// )
// //console.log(`addr: ${util.inspect(addr)}`)
//
// assert.isArray(addr)
// assert.equal(addr.length, 1)
// assert.equal(
// addr[0],
// "bchtest:qqkng037s5pjhhk38mkaa3c6grl3uep845evtxvyse"
// )
// })
//
// it("should generate the first 20 addresses", async () => {
// updateBalances.BITBOX = new config.BCHLIB({
// restURL: config.TESTNET_REST
// })
//
// const addr = await updateBalances.generateAddress(
// updateBalancesMocks.mockWallet,
// 0,
// 20
// )
// //console.log(`addr: ${util.inspect(addr)}`)
//
// assert.isArray(addr)
// assert.equal(addr.length, 20)
// assert.equal(addr[0], updateBalancesMocks.mockWallet.rootAddress)
// })
// })
describe("#findSlpUtxos", () => {
it(`should return utxos hydrated with token data`, async () => {
// Mock external calls if this is a unit test.
if (process.env.TEST === "unit") {
sandbox
.stub(updateBalances.BITBOX.Blockbook, "utxo")
.resolves(updateBalancesMocks.mockTokenUtxo)
sandbox
.stub(updateBalances.BITBOX.Util, "tokenUtxoDetails")
.resolves(updateBalancesMocks.mockTokenUtxoDetails)
}
const slpAddr = "simpleledger:qqll3st8xl0k8cgv8dgrrrkntv6hqdn8huq2dqlz4h"
const result = await updateBalances.findSlpUtxos(slpAddr)
//console.log(`result: ${JSON.stringify(result, null, 2)}`)
assert.isArray(result)
assert.hasAnyKeys(result[0], [
"txid",
"vout",
"amount",
"satoshis",
"height",
"confirmations",
"cashAddr",
"slpAddr"
])
})
})
describe("#getSlpUtxos", () => {
it("should throw error if input is not an array", async () => {
try {
const addresses = "bad-data"
await updateBalances.getSlpUtxos(addresses)
assert.equal(true, false, "Unexpected result!")
} catch (err) {
//console.log(`Error: `, err)
assert.include(err.message, "addresses must be an array")
}
})
it("should reject arrays bigger than 20", async () => {
try {
// Generate an array that is bigger than 20 elements.
const addresses = []
for (let i = 0; i < 25; i++) addresses.push(i)
await updateBalances.getSlpUtxos(addresses)
assert.equal(true, false, "Unexpected result!")
} catch (err) {
//console.log(`Error: `, err)
assert.include(
err.message,
"addresses array must be 20 or fewer elements"
)
}
})
it("should return information on any address with UTXO information", async () => {
updateBalances.BITBOX = new config.BCHLIB({
restURL: config.MAINNET_REST
})
// Mock external calls if this is a unit test.
if (process.env.TEST === "unit") {
sandbox
.stub(updateBalances.BITBOX.Util, "balancesForAddress")
.resolves(updateBalancesMocks.mockBalancesForAddress)
sandbox
.stub(updateBalances, "findSlpUtxos")
.resolves(updateBalancesMocks.mockTokenUtxoDetails)
}
const addresses = [
"bitcoincash:qqll3st8xl0k8cgv8dgrrrkntv6hqdn8huv3xm2ztf"
]
const result = await updateBalances.getSlpUtxos(addresses)
//console.log(`result: ${JSON.stringify(result, null, 2)}`)
assert.isArray(result)
assert.hasAnyKeys(result[0], [
"txid",
"vout",
"amount",
"satoshis",
"height",
"confirmations",
"utxoType",
"tokenId",
"tokenTicker",
"tokenName",
"tokenDocumentUrl",
"tokenDocumentHash",
"decimals",
"tokenQty"
])
})
})
describe("#getAddressData", () => {
it("should throw error if index is not supplied", async () => {
try {
await updateBalances.getAddressData(updateBalancesMocks.mockWallet)
assert.equal(true, false, "unexpected result!")
} catch (err) {
//console.log(`err: ${util.inspect(err)}`)
assert.include(err.message, "index must be supplied as a number")
}
})
it("should throw error if limit is not supplied", async () => {
try {
await updateBalances.getAddressData(updateBalancesMocks.mockWallet, 0)
assert.equal(true, false, "unexpected result!")
} catch (err) {
//console.log(`err: ${util.inspect(err)}`)
assert.include(
err.message,
"limit must be supplied as a non-zero number"
)
}
})
it("should throw error if limit is over 20", async () => {
try {
await updateBalances.getAddressData(
updateBalancesMocks.mockWallet,
0,
40
)
assert.equal(true, false, "unexpected result!")
} catch (err) {
//console.log(`err: ${util.inspect(err)}`)
assert.include(err.message, "limit must be 20 or less")
}
})
it("should return an array of address and SLP data", async () => {
// Ensure we're using testnet
updateBalances.BITBOX = new config.BCHLIB({
restURL: config.TESTNET_REST
})
// Mock external calls if this is a unit test.
if (process.env.TEST === "unit") {
sandbox
.stub(updateBalances.BITBOX.Blockbook, "balance")
.resolves(updateBalancesMocks.mockAddressDetails1)
sandbox.stub(updateBalances, "getSlpUtxos").resolves([])
}
const result = await updateBalances.getAddressData(
updateBalancesMocks.mockWallet,
0,
3
)
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
assert.isArray(result.balances)
assert.isArray(result.slpUtxos)
// Ensure balances index the HD wallet index for the address.
assert.property(result.balances[0], "hdIndex")
})
})
describe("#detectBalance", () => {
it("should return true when addresses have balance", () => {
const result = updateBalances.detectBalance(
updateBalancesMocks.mockAddressDetails1
)
//console.log(`result: ${util.inspect(result)}`)
assert.equal(result, true, "Boolean true expected.")
})
it("should return false when addresses have no balance", () => {
const result = updateBalances.detectBalance(
updateBalancesMocks.mockAddressDetails2
)
assert.equal(result, false, "Boolean false expected.")
})
})
describe("#getAllAddressData", () => {
it("should get all address data", async () => {
// Use mocked data if this is a unit test.
if (process.env.TEST === "unit") {
sandbox
.stub(updateBalances, "getAddressData")
.onFirstCall()
.resolves({
balances: updateBalancesMocks.mockAddressDetails1,
slpUtxos: []
})
.onSecondCall()
.resolves({
balances: updateBalancesMocks.mockAddressDetails1,
slpUtxos: []
})
.onThirdCall()
.resolves({
balances: updateBalancesMocks.mockAddressDetails2,
slpUtxos: []
})
}
const result = await updateBalances.getAllAddressData(
updateBalancesMocks.mockWallet
)
//console.log(`result: ${util.inspect(result)}`)
assert.isArray(result.addressData)
assert.isArray(result.slpUtxoData)
})
})
describe("#generateHasBalance", () => {
it("generates a hasBalance array", async () => {
const hasBalance = await updateBalances.generateHasBalance(
updateBalancesMocks.mockAddressDetails1,
updateBalancesMocks.mockWallet
)
//console.log(`hasBalance: ${util.inspect(hasBalance)}`)
assert.isArray(hasBalance, "Expect array of addresses with balances.")
assert.hasAllKeys(hasBalance[0], [
"index",
"balance",
"balanceSat",
"unconfirmedBalance",
"unconfirmedBalanceSat",
"cashAddress"
])
})
})
describe("#sumConfirmedBalances", () => {
it("should aggregate balances", async () => {
const balanceTotal = await updateBalances.sumConfirmedBalances(
updateBalancesMocks.hasBalanceMock
)
// console.log(`balanceTotal: ${balanceTotal}`)
assert.equal(balanceTotal, 0.09977288)
})
})
describe("#updateBalances", () => {
// Only run this test as an integration test.
// DANGER! Due to the mocking used in unit tests, this test will never end.
if (process.env.TEST !== "unit") {
it("should update balances", async () => {
// Use the real library.
const flags = {
name: "test123"
}
const walletInfo = await updateBalances.updateBalances(flags)
//console.log(`walletInfo: ${JSON.stringify(walletInfo, null, 2)}`)
assert.hasAllKeys(walletInfo, [
"network",
"mnemonic",
"balance",
"balanceConfirmed",
"balanceUnconfirmed",
"nextAddress",
"hasBalance",
"rootAddress",
"name",
"derivation",
"SLPUtxos",
"addresses"
])
assert.isArray(
walletInfo.hasBalance,
"Expect array of addresses with balances."
)
})
}
})
describe("#addSLPIndex", () => {
it("should return token UTXOs with index value", () => {
const result = updateBalances.addSLPIndex(
updateBalancesMocks.mockAddressData,
updateBalancesMocks.mockSlpUtxoData
)
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
assert.hasAnyKeys(result[0], ["hdIndex"])
assert.equal(result[0].hdIndex, 9)
})
})
})
|
/*
* Copyright 2008 The Closure Compiler Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview Definitions for W3C's Selectors API.
* This file depends on w3c_dom1.js.
* @see http://www.w3.org/TR/selectors-api2/
*
* @externs
*/
/**
* @param {string} selectors
* @return {Element}
* @override
*/
Document.prototype.querySelector = function(selectors) {};
/**
* @param {string} selectors
* @return {!NodeList}
* @override
*/
Document.prototype.querySelectorAll = function(selectors) {};
/**
* @param {string} selectors
* @return {Element}
* @override
*/
Element.prototype.querySelector = function(selectors) {};
/**
* @param {string} selectors
* @return {!NodeList}
* @override
*/
Element.prototype.querySelectorAll = function(selectors) {};
/**
* @param {string} selectors
* @param {(Node|NodeList)=} refNodes
* @return {boolean}
*/
Element.prototype.matchesSelector = function(selectors, refNodes) {};
/**
* @see https://developer.mozilla.org/en/DOM/Node.mozMatchesSelector
* @param {string} selectors
* @return {boolean}
*/
Element.prototype.mozMatchesSelector = function(selectors) {};
/**
* @see http://developer.apple.com/library/safari/documentation/WebKit/Reference/ElementClassRef/Element/Element.html
* @param {string} selectors
* @return {boolean}
*/
//Element.prototype.webkitMatchesSelector = function(selectors) {};
/**
* @see http://msdn.microsoft.com/en-us/library/ff975201.aspx
* @param {string} selectors
* @return {boolean}
*/
Element.prototype.msMatchesSelector = function(selectors) {};
|
module.exports = {
title: 'GPI Resource',
/**
* @type {boolean} true | false
* @description Whether show the settings right-panel
*/
showSettings: true,
/**
* @type {boolean} true | false
* @description Whether need tagsView
*/
tagsView: true,
/**
* @type {boolean} true | false
* @description Whether fix the header
*/
fixedHeader: false,
/**
* @type {boolean} true | false
* @description Whether show the logo in sidebar
*/
sidebarLogo: true,
/**
* @type {string | array} 'production' | ['production', 'development']
* @description Need show err logs component.
* The default is only used in the production env
* If you want to also use it in dev, you can pass ['production', 'development']
*/
errorLog: 'production'
}
|
const express = require('express')
const User = require('../models/User')
const UserController = require('../controllers/UserController')
const EmployersController = require('../controllers/EmployersContoller')
const CategoriesController = require('../controllers/CategoryController')
const router = express.Router()
router.get('/', (req, res) => {
User.find({}, (err, users) => {
if (err) return
var userMap = {}
users.forEach(function (user) {
userMap[user._id] = user
})
res.send(userMap)
})
})
router.post('/register', UserController.register)
router.post('/login', UserController.login)
router.put('/employers/:id', EmployersController.put)
router.get('/employers/:id', EmployersController.show)
router.put('/categories/:id', CategoriesController.put)
router.get('/categories/:id', CategoriesController.show)
module.exports = router
|
/*
Main entry point for the squeegee server
*/
const express = require('express');
const Cors = require('cors');
const Debug = require('debug');
const http = require('http');
const morgan = require('morgan');
const bodyParser = require('body-parser');
const passport = require('passport');
const io = require('./socketio/io');
const models = require('./models');
const changeUserRouter = require('./routes/changeUser');
const authRouter = require('./routes/auth');
const changeBoardRouter = require('./routes/changeBoard');
const boardInfoRouter = require('./routes/boardInfo');
const app = express();
const debug = Debug('server');
// Configure middleware
require('./config/passport');
app.use(Cors());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(passport.initialize());
app.use(morgan('dev'));
// set up routers
app.use('/changeUser', changeUserRouter);
app.use('/auth', authRouter);
app.use('/changeBoard', changeBoardRouter);
app.use('/boardInfo', boardInfoRouter);
app.use((req, res, next) => {
res.header('Access-Control-Allow-Origin', '*');
res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
next();
});
// Get port from environment and store in Express.
const port = process.env.PORT || '3000';
app.set('port', port);
// Create HTTP server.
const server = http.createServer(app);
io.attach(server);
// Sync models with the database
models.sequelize.sync().then(() => {
// Listen on provided port, on all network interfaces.
server.listen(port);
server.on('listening', () => {
debug(`Listening on http://${server.address().address}:${server.address().port}`);
});
}).catch((error) => {
debug(error, 'Error syncing the database!');
});
|
/**
* rapidJS: Automatic serving, all-implicit-routing, pluggable fullstack scoped
* function modules, un-opinionated templating.
*
* Copyright (c) Thassilo Martin Schiepanski
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const wrapper_1=require("./wrapper"),endpoint=(0,wrapper_1.wrapInterface)(require("./plugin/endpoint").setDefaultEndpoint,"creating a plug-in endpoint",!0),namedEndpoint=(0,wrapper_1.wrapInterface)(require("./plugin/endpoint").setNamedEndpoint,"creating a named plug-in endpoint",!0);module.exports={clientModule:(0,wrapper_1.wrapInterface)(require("./plugin/registry").initClientModule,"initializing a client module",!0),endpoint:endpoint,namedEndpoint:namedEndpoint,setEndpoint:endpoint,setNamedEndpoint:namedEndpoint};
|
import { MatTable, MatTableModule } from '@angular/material';
import { BehaviorSubject } from 'rxjs';
import { debounceTime } from 'rxjs/operators';
import { Injectable, Directive, Input, ViewContainerRef, Host, Self, Optional, NgModule, defineInjectable } from '@angular/core';
import { isEqual } from 'lodash';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @enum {string} */
const MatTableFilter = {
EQUALS: 'EQUALS',
ANYWHERE: 'ANYWHERE',
STARTS_WITH: 'STARTS_WITH',
ENDS_WITH: 'ENDS_WITH',
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class MatTableFilterService {
constructor() { }
/**
* @param {?} exampleEntity
* @param {?} item
* @param {?} filterType
* @param {?} caseSensitive
* @return {?}
*/
filterPredicate(exampleEntity, item, filterType, caseSensitive) {
/** @type {?} */
const exampleEntityObjectKeys = Object.keys(exampleEntity);
for (let i = 0; i < exampleEntityObjectKeys.length; i++) {
/** @type {?} */
const exampleColumn = exampleEntityObjectKeys[i];
/** @type {?} */
const exampleColumnValue = exampleEntity[exampleColumn];
/** @type {?} */
const itemColumnValue = item[exampleColumn];
if (!exampleColumnValue || exampleColumnValue instanceof Array) {
// if example entity's property is undefined/null/empty then it means the caller wants all the data
// also if there is an array property we are skipping
continue;
}
if (itemColumnValue) {
// if example entity has additional columns then search fails
if (this.isAlphaNumeric(itemColumnValue)) {
if (!this.filterPredicateAlphaNumeric(exampleColumnValue, itemColumnValue, filterType, caseSensitive)) {
return false;
}
}
else if (this.isBoolean(itemColumnValue)) {
if (itemColumnValue !== exampleColumnValue) {
return false;
}
}
else {
if (!this.filterPredicate(exampleColumnValue, itemColumnValue, filterType, caseSensitive)) {
// if one of the inner properties returns true, this shouldnt affect the whole item's filtering
// however if it returns false then the item must not be in the list
return false;
}
}
}
else {
return false;
}
}
return true;
}
/**
* @private
* @param {?} exampleColumnValue
* @param {?} itemColumnValue
* @param {?} filterType
* @param {?} caseSensitive
* @return {?}
*/
filterPredicateAlphaNumeric(exampleColumnValue, itemColumnValue, filterType, caseSensitive) {
/** @type {?} */
let exampleString = exampleColumnValue.toString();
/** @type {?} */
let itemString = itemColumnValue.toString();
if (!caseSensitive) {
exampleString = exampleString.toUpperCase();
itemString = itemString.toUpperCase();
}
/** @type {?} */
let result = true;
switch (filterType) {
case MatTableFilter.EQUALS:
if (exampleColumnValue !== itemColumnValue) {
result = false;
}
break;
case MatTableFilter.ANYWHERE:
if (!itemString.includes(exampleString)) {
result = false;
}
break;
case MatTableFilter.STARTS_WITH:
if (!itemString.startsWith(exampleString)) {
result = false;
}
break;
case MatTableFilter.ENDS_WITH:
if (!itemString.endsWith(exampleString)) {
result = false;
}
break;
default:
break;
}
return result;
}
/**
* @private
* @param {?} value
* @return {?}
*/
isAlphaNumeric(value) {
return typeof value === 'string' || typeof value === 'number';
}
/**
* @private
* @param {?} value
* @return {?}
*/
isBoolean(value) {
return typeof value === 'boolean';
}
}
MatTableFilterService.decorators = [
{ type: Injectable, args: [{
providedIn: 'root'
},] }
];
/** @nocollapse */
MatTableFilterService.ctorParameters = () => [];
/** @nocollapse */ MatTableFilterService.ngInjectableDef = defineInjectable({ factory: function MatTableFilterService_Factory() { return new MatTableFilterService(); }, token: MatTableFilterService, providedIn: "root" });
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class MatTableFilterDirective {
/**
* @param {?} _filterService
* @param {?} _injectedTable
* @param {?} _viewContainerRef
*/
constructor(_filterService, _injectedTable, _viewContainerRef) {
this._filterService = _filterService;
this._injectedTable = _injectedTable;
this._viewContainerRef = _viewContainerRef;
this.debounceTime = 400;
this.filterType = MatTableFilter.ANYWHERE;
this.caseSensitive = false;
this.initCdkTable();
this.initDebounceSubject();
}
/**
* @return {?}
*/
ngDoCheck() {
if (this.isExampleEntityChanged()) {
this._oldExampleEntity = this.toPlainJson(this.exampleEntity);
this._exampleEntitySubject.next();
}
}
/**
* @private
* @return {?}
*/
isExampleEntityChanged() {
return !isEqual(this._oldExampleEntity, this.toPlainJson(this.exampleEntity));
}
/**
* @private
* @param {?} object
* @return {?}
*/
toPlainJson(object) {
if (object) {
return JSON.parse(JSON.stringify(object));
}
else {
return undefined;
}
}
/**
* @private
* @return {?}
*/
initCdkTable() {
// tslint:disable-next-line:no-string-literal
/** @type {?} */
const table = this._viewContainerRef['_data'].componentView.component;
if (table) {
this._table = table;
}
else if (this._injectedTable) {
this._table = this._injectedTable;
}
else {
throw new Error('Unsupported Angular version');
}
}
/**
* @private
* @return {?}
*/
initDebounceSubject() {
this._exampleEntitySubject = new BehaviorSubject(null);
this._exampleEntitySubject.pipe(debounceTime(this.debounceTime))
.subscribe((/**
* @param {?} _
* @return {?}
*/
_ => {
this.updateFilterPredicate();
}));
}
/**
* @private
* @return {?}
*/
updateFilterPredicate() {
/** @type {?} */
const matDataSource = this.getMatDataSource();
if (matDataSource) {
/** @type {?} */
const _this = this;
matDataSource.filterPredicate = (/**
* @param {?} data
* @return {?}
*/
(data) => {
return _this._filterService.filterPredicate(_this.exampleEntity, data, _this.filterType, _this.caseSensitive);
});
matDataSource.filter = (/** @type {?} */ (this.exampleEntity));
}
}
/**
* @private
* @return {?}
*/
getMatDataSource() {
/** @type {?} */
const matTable = (/** @type {?} */ (this._table));
return ((/** @type {?} */ (matTable.dataSource)));
}
}
MatTableFilterDirective.decorators = [
{ type: Directive, args: [{
selector: '[matTableFilter]',
exportAs: 'matTableFilter'
},] }
];
/** @nocollapse */
MatTableFilterDirective.ctorParameters = () => [
{ type: MatTableFilterService },
{ type: MatTable, decorators: [{ type: Host }, { type: Self }, { type: Optional }] },
{ type: ViewContainerRef }
];
MatTableFilterDirective.propDecorators = {
exampleEntity: [{ type: Input }],
debounceTime: [{ type: Input }],
filterType: [{ type: Input }],
caseSensitive: [{ type: Input }]
};
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
class MatTableFilterModule {
}
MatTableFilterModule.decorators = [
{ type: NgModule, args: [{
declarations: [MatTableFilterDirective],
imports: [
MatTableModule
],
exports: [MatTableFilterDirective]
},] }
];
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
export { MatTableFilterService, MatTableFilter, MatTableFilterModule, MatTableFilterDirective as ɵa };
//# sourceMappingURL=mat-table-filter.js.map
|
// https://www.codewars.com/kata/582ba36cc1901399a70005fc
function getAverageAge(list) {
return Math.round(list.reduce((acc, coder) => acc + coder.age, 0) / list.length);
}
const { assert } = require('chai');
describe('Tests', () => {
it('test', () => {
// ========== FIXED TEST CASES =========
const list1 = [
{
firstName: 'Harry', lastName: 'K.', country: 'Brazil', continent: 'Americas', age: 19, language: 'Python',
},
];
const list2 = [
{
firstName: 'Kseniya', lastName: 'T.', country: 'Belarus', continent: 'Europe', age: 29, language: 'Ruby',
},
{
firstName: 'Amar', lastName: 'V.', country: 'Bosnia and Herzegovina', continent: 'Europe', age: 32, language: 'Ruby',
},
];
const list3 = [
{
firstName: 'Sofia', lastName: 'P.', country: 'Italy', continent: 'Europe', age: 41, language: 'Clojure',
},
{
firstName: 'Kseniya', lastName: 'T.', country: 'Belarus', continent: 'Europe', age: 29, language: 'JavaScript',
},
{
firstName: 'Jing', lastName: 'X.', country: 'China', continent: 'Asia', age: 39, language: 'Ruby',
},
{
firstName: 'Noa', lastName: 'A.', country: 'Israel', continent: 'Asia', age: 40, language: 'Ruby',
},
{
firstName: 'Andrei', lastName: 'E.', country: 'Romania', continent: 'Europe', age: 59, language: 'C',
},
{
firstName: 'Maria', lastName: 'S.', country: 'Peru', continent: 'Americas', age: 60, language: 'C',
},
{
firstName: 'Lukas', lastName: 'X.', country: 'Croatia', continent: 'Europe', age: 75, language: 'Python',
},
{
firstName: 'Chloe', lastName: 'K.', country: 'Guernsey', continent: 'Europe', age: 88, language: 'Ruby',
},
{
firstName: 'Viktoria', lastName: 'W.', country: 'Bulgaria', continent: 'Europe', age: 98, language: 'PHP',
},
{
firstName: 'Piotr', lastName: 'B.', country: 'Poland', continent: 'Europe', age: 128, language: 'JavaScript',
},
];
console.log('List of developers: ', `${JSON.stringify(list1)}`);
const expected1 = getAverageAgeSolution(list1);
const actual1 = getAverageAge(list1);
assert.deepEqual(actual1, expected1);
console.log('List of developers: ', `${JSON.stringify(list2)}`);
const expected2 = getAverageAgeSolution(list2);
const actual2 = getAverageAge(list2);
assert.deepEqual(actual2, expected2);
console.log('List of developers: ', `${JSON.stringify(list3)}`);
const expected3 = getAverageAgeSolution(list3);
const actual3 = getAverageAge(list3);
assert.deepEqual(actual3, expected3);
// ========== RANDOM TEST CASES =========
// Full list of developers
const listFull = [
{
firstName: 'Noel', lastName: 'O.', country: 'Albania', continent: 'Europe', age: 23, language: 'Python',
},
{
firstName: 'Fatima', lastName: 'A.', country: 'Algeria', continent: 'Africa', age: 25, language: 'JavaScript',
},
{
firstName: 'Laia', lastName: 'P.', country: 'Andorra', continent: 'Europe', age: 55, language: 'Ruby',
},
{
firstName: 'Sofia', lastName: 'I.', country: 'Argentina', continent: 'Americas', age: 35, language: 'Java',
},
{
firstName: 'Nareh', lastName: 'Q.', country: 'Armenia', continent: 'Europe', age: 80, language: 'Clojure',
},
{
firstName: 'Daniel', lastName: 'J.', country: 'Aruba', continent: 'Americas', age: 42, language: 'JavaScript',
},
{
firstName: 'Oliver', lastName: 'Q.', country: 'Australia', continent: 'Oceania', age: 69, language: 'PHP',
},
{
firstName: 'Lukas', lastName: 'R.', country: 'Austria', continent: 'Europe', age: 89, language: 'C',
},
{
firstName: 'Zahra', lastName: 'S.', country: 'Azerbaijan', continent: 'Europe', age: 22, language: 'Java',
},
{
firstName: 'Kseniya', lastName: 'T.', country: 'Belarus', continent: 'Europe', age: 29, language: 'JavaScript',
},
{
firstName: 'Emma', lastName: 'U.', country: 'Belgium', continent: 'Europe', age: 39, language: 'Python',
},
{
firstName: 'Amar', lastName: 'V.', country: 'Bosnia and Herzegovina', continent: 'Europe', age: 32, language: 'Ruby',
},
{
firstName: 'Harry', lastName: 'K.', country: 'Brazil', continent: 'Americas', age: 19, language: 'Python',
},
{
firstName: 'Viktoria', lastName: 'W.', country: 'Bulgaria', continent: 'Europe', age: 98, language: 'PHP',
},
{
firstName: 'Thomas', lastName: 'L.', country: 'Canada', continent: 'Americas', age: 38, language: 'Java',
},
{
firstName: 'Agustín', lastName: 'M.', country: 'Chile', continent: 'Americas', age: 37, language: 'C',
},
{
firstName: 'Jing', lastName: 'X.', country: 'China', continent: 'Asia', age: 39, language: 'Ruby',
},
{
firstName: 'Marian', lastName: 'N.', country: 'Colombia', continent: 'Americas', age: 55, language: 'Python',
},
{
firstName: 'Lukas', lastName: 'X.', country: 'Croatia', continent: 'Europe', age: 75, language: 'Python',
},
{
firstName: 'Maria', lastName: 'Y.', country: 'Cyprus', continent: 'Europe', age: 30, language: 'Java',
},
{
firstName: 'Jakub', lastName: 'Z.', country: 'Czech Republic', continent: 'Europe', age: 42, language: 'Java',
},
{
firstName: 'Sofia', lastName: 'A.', country: 'Denmark', continent: 'Europe', age: 19, language: 'Python',
},
{
firstName: 'Mariam', lastName: 'B.', country: 'Egypt', continent: 'Africa', age: 89, language: 'Python',
},
{
firstName: 'George', lastName: 'B.', country: 'England', continent: 'Europe', age: 21, language: 'C',
},
{
firstName: 'Manuel', lastName: 'C.', country: 'Equatorial Guinea', continent: 'Africa', age: 22, language: 'Ruby',
},
{
firstName: 'Sofia', lastName: 'C.', country: 'Estonia', continent: 'Europe', age: 29, language: 'PHP',
},
{
firstName: 'Liam', lastName: 'D.', country: 'Faroe Islands', continent: 'Europe', age: 28, language: 'Python',
},
{
firstName: 'Ellen', lastName: 'E.', country: 'Finland', continent: 'Europe', age: 55, language: 'Ruby',
},
{
firstName: 'Louise', lastName: 'F.', country: 'France', continent: 'Europe', age: 22, language: 'Java',
},
{
firstName: 'Mariami', lastName: 'G.', country: 'Georgia', continent: 'Europe', age: 29, language: 'Python',
},
{
firstName: 'Mia', lastName: 'H.', country: 'Germany', continent: 'Europe', age: 39, language: 'Ruby',
},
{
firstName: 'Maria', lastName: 'I.', country: 'Greece', continent: 'Europe', age: 32, language: 'C',
},
{
firstName: 'Malik', lastName: 'J.', country: 'Greenland', continent: 'Europe', age: 19, language: 'Python',
},
{
firstName: 'Chloe', lastName: 'K.', country: 'Guernsey', continent: 'Europe', age: 88, language: 'Ruby',
},
{
firstName: 'Stevenson', lastName: 'O.', country: 'Haiti', continent: 'Americas', age: 22, language: 'Ruby',
},
{
firstName: 'Hanna', lastName: 'L.', country: 'Hungary', continent: 'Europe', age: 29, language: 'JavaScript',
},
{
firstName: 'Margret', lastName: 'M.', country: 'Iceland', continent: 'Europe', age: 28, language: 'Java',
},
{
firstName: 'Aadya', lastName: 'Y.', country: 'India', continent: 'Asia', age: 29, language: 'PHP',
},
{
firstName: 'Fatemeh', lastName: 'Z.', country: 'Iran', continent: 'Asia', age: 29, language: 'Java',
},
{
firstName: 'Emily', lastName: 'N.', country: 'Ireland', continent: 'Europe', age: 98, language: 'Ruby',
},
{
firstName: 'Joshua', lastName: 'O.', country: 'Isle of Man', continent: 'Europe', age: 39, language: 'Clojure',
},
{
firstName: 'Noa', lastName: 'A.', country: 'Israel', continent: 'Asia', age: 40, language: 'Ruby',
},
{
firstName: 'Sofia', lastName: 'P.', country: 'Italy', continent: 'Europe', age: 71, language: 'Clojure',
},
{
firstName: 'Jayden', lastName: 'P.', country: 'Jamaica', continent: 'Americas', age: 42, language: 'JavaScript',
},
{
firstName: 'Sou', lastName: 'B.', country: 'Japan', continent: 'Asia', age: 43, language: 'PHP',
},
{
firstName: 'Rimas', lastName: 'C.', country: 'Jordan', continent: 'Asia', age: 44, language: 'Java',
},
{
firstName: 'Yerasyl', lastName: 'D.', country: 'Kazakhstan', continent: 'Asia', age: 22, language: 'Ruby',
},
{
firstName: 'Sofija', lastName: 'Q.', country: 'Latvia', continent: 'Europe', age: 29, language: 'Ruby',
},
{
firstName: 'Aya', lastName: 'D.', country: 'Libya', continent: 'Africa', age: 39, language: 'C',
},
{
firstName: 'Anna', lastName: 'R.', country: 'Liechtenstein', continent: 'Europe', age: 32, language: 'JavaScript',
},
{
firstName: 'Emilija', lastName: 'S.', country: 'Lithuania', continent: 'Europe', age: 19, language: 'Python',
},
{
firstName: 'Gabriel', lastName: 'T.', country: 'Luxembourg', continent: 'Europe', age: 28, language: 'Java',
},
{
firstName: 'Nor', lastName: 'E.', country: 'Malaysia', continent: 'Asia', age: 21, language: 'Clojure',
},
{
firstName: 'Mamadou', lastName: 'E.', country: 'Mali', continent: 'Africa', age: 22, language: 'Python',
},
{
firstName: 'Luke', lastName: 'V.', country: 'Malta', continent: 'Europe', age: 129, language: 'PHP',
},
{
firstName: 'Ximena', lastName: 'Q.', country: 'Mexico', continent: 'Americas', age: 28, language: 'Java',
},
{
firstName: 'Sofia', lastName: 'W.', country: 'Moldova', continent: 'Europe', age: 29, language: 'Ruby',
},
{
firstName: 'Gabriel', lastName: 'X.', country: 'Monaco', continent: 'Europe', age: 79, language: 'PHP',
},
{
firstName: 'Odval', lastName: 'F.', country: 'Mongolia', continent: 'Asia', age: 38, language: 'Python',
},
{
firstName: 'Sara', lastName: 'Y.', country: 'Montenegro', continent: 'Europe', age: 39, language: 'C',
},
{
firstName: 'Mohamed', lastName: 'F.', country: 'Morocco', continent: 'Africa', age: 90, language: 'Ruby',
},
{
firstName: 'Krishna', lastName: 'G.', country: 'Nepal', continent: 'Asia', age: 112, language: 'Java',
},
{
firstName: 'Emma', lastName: 'Z.', country: 'Netherlands', continent: 'Europe', age: 29, language: 'Ruby',
},
{
firstName: 'Nikau', lastName: 'R.', country: 'New Zealand', continent: 'Oceania', age: 39, language: 'Ruby',
},
{
firstName: 'Emily', lastName: 'A.', country: 'Northern Ireland', continent: 'Europe', age: 32, language: 'JavaScript',
},
{
firstName: 'Emma', lastName: 'B.', country: 'Norway', continent: 'Europe', age: 19, language: 'Clojure',
},
{
firstName: 'Fatima', lastName: 'H.', country: 'Pakistan', continent: 'Asia', age: 8, language: 'JavaScript',
},
{
firstName: 'Ramon', lastName: 'R.', country: 'Paraguay', continent: 'Americas', age: 99, language: 'Ruby',
},
{
firstName: 'Maria', lastName: 'S.', country: 'Peru', continent: 'Americas', age: 60, language: 'C',
},
{
firstName: 'Althea', lastName: 'I.', country: 'Philippines', continent: 'Asia', age: 81, language: 'Python',
},
{
firstName: 'Piotr', lastName: 'B.', country: 'Poland', continent: 'Europe', age: 128, language: 'JavaScript',
},
{
firstName: 'Joao', lastName: 'D.', country: 'Portugal', continent: 'Europe', age: 65, language: 'JavaScript',
},
{
firstName: 'Victoria', lastName: 'T.', country: 'Puerto Rico', continent: 'Americas', age: 70, language: 'Python',
},
{
firstName: 'Marija', lastName: 'U.', country: 'Republic of Macedonia', continent: 'Europe', age: 42, language: 'JavaScript',
},
{
firstName: 'Andrei', lastName: 'E.', country: 'Romania', continent: 'Europe', age: 59, language: 'C',
},
{
firstName: 'Alexander', lastName: 'F.', country: 'Russia', continent: 'Europe', age: 89, language: 'Java',
},
{
firstName: 'Fatima', lastName: 'K.', country: 'Saudi Arabia', continent: 'Asia', age: 105, language: 'Clojure',
},
{
firstName: 'Mark', lastName: 'G.', country: 'Scotland', continent: 'Europe', age: 52, language: 'JavaScript',
},
{
firstName: 'Nikola', lastName: 'H.', country: 'Serbia', continent: 'Europe', age: 29, language: 'Python',
},
{
firstName: 'Jakub', lastName: 'I.', country: 'Slovakia', continent: 'Europe', age: 28, language: 'Java',
},
{
firstName: 'Luka', lastName: 'J.', country: 'Slovenia', continent: 'Europe', age: 39, language: 'Clojure',
},
{
firstName: 'Precious', lastName: 'G.', country: 'South Africa', continent: 'Africa', age: 22, language: 'JavaScript',
},
{
firstName: 'Seoyeon', lastName: 'J.', country: 'South Korea', continent: 'Asia', age: 29, language: 'Ruby',
},
{
firstName: 'Hugo', lastName: 'K.', country: 'Spain', continent: 'Europe', age: 39, language: 'Python',
},
{
firstName: 'William', lastName: 'L.', country: 'Sweden', continent: 'Europe', age: 32, language: 'Java',
},
{
firstName: 'Noah', lastName: 'M.', country: 'Switzerland', continent: 'Europe', age: 19, language: 'C',
},
{
firstName: 'Maia', lastName: 'S.', country: 'Tahiti', continent: 'Oceania', age: 28, language: 'Clojure',
},
{
firstName: 'Shufen', lastName: 'L.', country: 'Taiwan', continent: 'Asia', age: 35, language: 'PHP',
},
{
firstName: 'Sumayah', lastName: 'M.', country: 'Tajikistan', continent: 'Asia', age: 30, language: 'Ruby',
},
{
firstName: 'Mehdi', lastName: 'H.', country: 'Tunisia', continent: 'Africa', age: 42, language: 'Python',
},
{
firstName: 'Yusuf', lastName: 'N.', country: 'Turkey', continent: 'Europe', age: 22, language: 'Python',
},
{
firstName: 'Artem', lastName: 'O.', country: 'Ukraine', continent: 'Europe', age: 29, language: 'Java',
},
{
firstName: 'Mohammad', lastName: 'N.', country: 'United Arab Emirates', continent: 'Asia', age: 39, language: 'C',
},
{
firstName: 'Agustin', lastName: 'V.', country: 'Uruguay', continent: 'Americas', age: 19, language: 'JavaScript',
},
{
firstName: 'Sebastian', lastName: 'W.', country: 'Venezuela', continent: 'Americas', age: 8, language: 'Python',
},
{
firstName: 'Oliver', lastName: 'P.', country: 'Wales', continent: 'Europe', age: 69, language: 'JavaScript',
},
];
// Function shuffling the array (in place)
function shuffleArray(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
const temp = array[i];
array[i] = array[j];
array[j] = temp;
}
return array;
}
// Working solution
function getAverageAgeSolution(list) {
return Math.round(list.reduce((accu, curr) => accu + curr.age, 0) / list.length);
}
// Generate random tests using a self-invoking function
(function () {
for (let i = 0; i < 20; i++) {
// Copy the array
let listFullCopy = listFull.slice();
// Shuffle the array
shuffleArray(listFullCopy);
// Shorten the array
listFullCopy = listFullCopy.slice(0, 10);
// Log the input for debugging purposes
console.log(`Random test #${i + 1}, List of developers:
${JSON.stringify(listFullCopy)}`);
// Make an assertion
// const listFullCopyClone = JSON.parse(JSON.stringify(listFullCopy));
const expected = getAverageAgeSolution(listFullCopy);
const actual = getAverageAge(listFullCopy);
assert.deepEqual(actual, expected);
}
}());
});
});
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.registerShape = void 0;
var CustomizeUtils = _interopRequireWildcard(require("../utils/CustomizeUtils"));
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
var DEFAULT_SANKEY_SHAPE = 'sankey';
function interpolationGenerator(a, b) {
var ka = +a;
var kb = b - ka;
return function (t) {
return ka + kb * t;
};
}
function getCurvePath(from, to, curvature) {
var interpolationFunc = interpolationGenerator(from.x, to.x);
var fromCtrlX = interpolationFunc(curvature);
var toCtrlX = interpolationFunc(1 - curvature);
var points = ['C', fromCtrlX, from.y, toCtrlX, to.y, to.x, to.y];
return points;
}
function getEdgePath(points, curvature) {
var path = [['M', points[0].x, points[0].y], ['L', points[1].x, points[1].y]];
var c1 = getCurvePath(points[1], points[3], curvature);
path.push(c1);
path.push(['L', points[3].x, points[3].y]);
path.push(['L', points[2].x, points[2].y]);
var c2 = getCurvePath(points[2], points[0], curvature);
path.push(c2);
path.push(['Z']);
return path;
}
var registerShape = function registerShape() {
CustomizeUtils.registerShape('edge', DEFAULT_SANKEY_SHAPE, {
drawShape: function drawShape(cfg, group) {
var points = cfg.points,
style = cfg.style;
var curvature = style.curvature || 0.5;
var path = this.parsePath(getEdgePath(points, curvature));
var shape = group.addShape('path', {
attrs: {
stroke: 'none',
strokeOpacity: 0,
fill: cfg.color,
opacity: cfg.opacity,
path: path
}
});
return shape;
}
});
};
exports.registerShape = registerShape;
|
const FoodPage = require('../generated_pages/skip_condition_not_set/food-block.page');
const DrinkPage = require('../generated_pages/skip_condition_not_set/drink-block.page');
const SummaryPage = require('../generated_pages/skip_condition_not_set/summary.page');
describe('Skip Conditions - Not Set', function() {
beforeEach('Load the survey', function () {
browser.openQuestionnaire('test_skip_condition_not_set.json');
});
it('Given I do not complete the first page, Then I should see the summary page', function() {
$(FoodPage.submit()).click();
expect(browser.getUrl()).to.contain(SummaryPage.pageName);
});
it('Given I complete the first page, Then I should see the drink page', function() {
$(FoodPage.bacon()).click();
$(FoodPage.submit()).click();
expect(browser.getUrl()).to.contain(DrinkPage.pageName);
});
});
|
import __ from "lodash";
import React from "react";
/**
* 旋转坐标转化
* @param {string} options.rotate 旋转角度
* @param {int} options.x x坐标
* @param {int} options.y y坐标
* @param {int} options.width 宽度
* @param {int} options.height 高度
* @return {string} 旋转坐标的函数
*/
const getTransformMatrix = ({ rotate, x, y, width, height }) => {
if (rotate) {
const centerX = width / 2 + x;
const centerY = height / 2 + y;
return `rotate(${rotate} ${centerX} ${centerY})`;
}
};
/**
* 从对象中获取状态的样式信息
* @param {object} conditionObject 对象里面包括condition字段
* @param {array} conditions 数组对象,里面包含各个condition的配置信息
* @return {array} 返回condition名称所对应的属性信息的数组
*/
const getCondition = (conditionObject, conditions) => {
if ("condition" in conditionObject) {
const { name, ...styles } = __.find(conditions, {
name: conditionObject.condition,
});
return styles;
}
return [];
};
/**
* 获取值,转成整形
* @param {string} value 值
* @return {int}
*/
const getValue = (value) => {
return value ? parseInt(value, 10) : 0;
};
/**
* 判断传入字符是否是一个可执行的函数,
* @param {object} str 传入一个字段
*/
export function IsFunc(str) {
if (__.isFunction(str) || __.isNumber(str) || __.isPlainObject(str) || __.isArray(str)) {
return false;
}
if (str) {
return str.includes("(") || str.includes(")") || str.includes("?");
}
return false;
}
export function IsObject(str) {
return __.isPlainObject(str);
}
/**
* 绑定表达式
* @param {string} expr 表达式
* @param {object} context 上下文
* @return {func} 绑定表达式后返回func
*/
const bindExpr = (expr, context) => {
if (!IsFunc(expr)) {
return expr;
}
return (expr => eval(expr)).bind(context, expr);
};
/**
* 绑定事件对象
* @param {object} options.events 事件对象
* @param {object} context 上下文
*/
export function GetEvents({ events }, context) {
if (events) {
return __.mapValues(events, expr => bindExpr(expr, context));
}
}
/**
* 获取处理绑定
* @param {object} context 上下文
*/
export function GetBinds(context) {
const { binds } = context.props;
if (binds) {
return __.mapValues(binds, attr => {
// 绑定中有conditions这种是数组的对象,需要单独进行处理
if (__.isArray(attr)) {
return attr.map(item => bindExpr(item, context));
} else if (IsObject(attr)) {
return __.mapValues(attr, item => bindExpr(item, context));
} else {
return bindExpr(attr, context);
}
});
}
}
/**
* 计算对象的边界,viewbox
* @param {array} objects 对象数组
*/
export function CalculateObject(objects) {
const data = {};
// 获取对象最大最小XY值,最大值需要加宽高
const maxX = __.maxBy(objects, object => object.styles.x + getValue(object.styles.width));
const maxY = __.maxBy(objects, object => object.styles.y + getValue(object.styles.height));
const minX = __.minBy(objects, object => object.styles.x);
const minY = __.minBy(objects, object => object.styles.y);
data.cellHeight = parseInt(maxY.styles.y, 10) - parseInt(minY.styles.y, 10) + getValue(maxY.styles.height);
data.cellWidth = parseInt(maxX.styles.x, 10) - parseInt(minX.styles.x, 10) + getValue(maxX.styles.width);
data.viewBox = minX.styles.x + " " + minY.styles.y + " " + data.cellWidth + " " + data.cellHeight;
data.x = parseInt(minX.styles.x, 10);
data.y = parseInt(minY.styles.y, 10);
return data;
}
/**
* 获取对象属性,并进行属性合并
* @param {object} options.styles 默认样式
* @param {array} options.conditions 数组
* @param {object} options.binds 绑定对象
* @param {object} bounds 计算过的绑定对象
*/
export function GetObjectAttributes({ styles, conditions, binds }, bounds) {
const conditionStyle = getCondition(styles, conditions);
let allBindStyles = {};
// 如果有计算过的绑定对象传值,则来自运行时,否则则来自设计时
const attrBinds = bounds === undefined ? binds : bounds;
if (attrBinds && "condition" in attrBinds) {
attrBinds.condition.map(condition => {
if (condition && !IsFunc(condition)) {
const { name, ...conditionStyles } = __.find(conditions, {
name: condition,
});
allBindStyles = Object.assign({}, allBindStyles, conditionStyles);
}
});
}
const otherStyles = __.pickBy(attrBinds, attr => !IsFunc(attr));
return {
transform: getTransformMatrix(styles),
...styles,
...conditionStyle,
...allBindStyles,
...otherStyles,
};
}
/**
* 获取菜单信息
* @param {object} context 上下文
* @param {Boolean} isDesigner 是否为设计时
*/
export function GetMenus(context, isDesigner = false) {
const { menus, conditions } = context.props;
if (menus) {
const menuStyles = menus.map(menu => {
return {
styles: getCondition(menu, conditions),
events: isDesigner ? "" : GetEvents(menu, context),
};
});
return menuStyles;
}
}
/**
* 根据类型,动态地创建option选项
* @param {object} types [类型]
* @return {array} option数组
*/
export function createOpt(types) {
// 获得对象的key值
const typesKeys = types ? Object.keys(types) : null;
if (typesKeys && typesKeys.length > 0) {
return typesKeys.map((element, index) => (<option value={element} key={index + 1}>
{types[element]}
</option>));
}
}
|
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
// the ts-eslint recommended ruleset sets the parser so we need to set it back
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
tsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
plugins: ['react', 'react-hooks', '@typescript-eslint', 'prettier'],
rules: {
// ts/js
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-async-promise-executor': 'off',
// typescript
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-this-alias': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
// react
'react/jsx-props-no-spreading': 'off',
'react/jsx-wrap-multilines': 'off',
'react/prop-types': 'off',
'react/forbid-prop-types': 'off',
},
};
|
$(document).ready(function () {
'use strict';
//Bootstrap Select JS Plugin
$('.selectpicker').selectpicker();
//
// gm code here
$("#nav-tab a").click(function () {
$(".main-Box").addClass("hideForce");
$(".tabsHolder .tab-content").addClass("setB");
});
// end gm here
//Tabs remove Jquery
$(".closeTab").click(function () {
$(".tabsHolder .tab-content .tab-pane").removeClass("active show");
$(".tabsHolder .nav .nav-link").removeClass("show active");
$(".main-Box").removeClass("hideForce");
$(".tabsHolder .tab-content").removeClass("setB");
});
// Save Search Added
$(".saveSearch > li > a").click(function () {
$(".saveSearch").toggleClass("searchAdded");
});
// Close Tag Jquery
$(".faClose-icon").click(function (event) {
event.preventDefault();
$(this).parents('li').remove();
});
// Show More Category
$(".showMore").click(function () {
$(this).parent().parent().parent(".categoryHolderMain").addClass("showMoreCat");
});
// Show Less Category
$(".showLess").click(function () {
$(this).parent().parent().parent(".categoryHolderMain").removeClass("showMoreCat");
});
// Show More Filters in Search
$(".showMoreLink").click(function () {
$(this).parent().parent(".checkboxHolder").addClass("showMoreCat");
});
// Show More Filters in Search
$(".showLessLink").click(function () {
$(this).parent().parent(".checkboxHolder").removeClass("showMoreCat");
});
// Advance Search Filters add more
$(".advSearchMore").click(function () {
$(this).parent(".searchTitle").addClass("advSearchMoreHolder");
});
// Advance Search Filters minus
$(".advSearchLess").click(function () {
$(this).parent(".searchTitle").removeClass("advSearchMoreHolder");
});
// waqas
// Show More Category
$(".sh").click(function () {
$(this).parent().parent(".abcMain").addClass("showMoreCat").removeClass("grey");
});
// Show Less Category
$(".sho").click(function () {
//$(".abcMain").removeClass("showMoreCat");
$(this).parent().parent(".abcMain").removeClass("showMoreCat").addClass("grey");
});
// Custom Range Jquery
if (jQuery('.slider-range').length > 0) {
jQuery('.slider-range').slider({
range: true,
min: 0,
max: 50000,
values: [10000, 40000],
create: function () {
var val = "$10,000";
var val2 = "$40,000";
// console.log(val);
jQuery(".amount1").text(val);
jQuery(".amount2").text(val2);
},
slide: function (event, ui) {
var val = "$" + ui.values[0].toLocaleString('us-US');
var val2 = "$" + ui.values[1].toLocaleString('us-US');
// console.log(val);
jQuery(".amount1").text(val);
jQuery(".amount2").text(val2);
var mi = ui.values[0];
var mx = ui.values[1];
filterSystem(mi, mx);
}
});
}
function filterSystem(minPrice, maxPrice) {
jQuery("li.column").hide().filter(function () {
var price = parseInt(jQuery(this).data("price"), 10);
return price >= minPrice && price <= maxPrice;
}).show();
}
// Custom Range Jquery
if (jQuery('.slider-range2').length > 0) {
jQuery('.slider-range2').slider({
range: true,
min: 0,
max: 50000,
values: [10000, 40000],
create: function () {
var val3 = "11,00";
var val4 = "40,000";
// console.log(val);
jQuery(".amount5").text(val3);
jQuery(".amount6").text(val4);
},
slide: function (event, ui) {
var val3 = "" + ui.values[0].toLocaleString('us-US');
var val4 = "" + ui.values[1].toLocaleString('us-US');
// console.log(val);
jQuery(".amount5").text(val3);
jQuery(".amount6").text(val4);
var mi = ui.values[0];
var mx = ui.values[1];
filterSystem(mi, mx);
}
})
}
function filterSystem(minPrice, maxPrice) {
jQuery("li.column").hide().filter(function () {
var price = parseInt(jQuery(this).data("price"), 10);
return price >= minPrice && price <= maxPrice;
}).show();
}
// Custom Range Jquery
$(function () {
if (jQuery('.slider-range-date').length > 0) {
$(".slider-range-date").slider({
range: true,
min: 1990,
max: 2019,
values: [2000, 2015],
slide: function (event, ui) {
// $( ".amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
$(".amount3").val(ui.values[0]);
$(".amount4").val(ui.values[1]);
}
});
// $(".amount" ).val( "$" + $( ".slider-range" ).slider( "values", 0 ) + " - $" + $( ".slider-range" ).slider( "values", 1 ) );
$(".amount3").val($(".slider-range-date").slider("values", 0));
$(".amount4").val($(".slider-range-date").slider("values", 1));
}
});
//********************** gmd start from here ************************************************
$('.count').prop('disabled', true);
$(document).on('click', '.plus', function () {
$('.count').val(parseInt($('.count').val()) + 1);
});
$(document).on('click', '.minus', function () {
$('.count').val(parseInt($('.count').val()) - 1);
if ($('.count').val() == 0) {
$('.count').val(1);
}
});
$('.count2').prop('disabled', true);
$(document).on('click', '.plus2', function () {
$('.count2').val(parseInt($('.count2').val()) + 1);
});
$(document).on('click', '.minus2', function () {
$('.count2').val(parseInt($('.count2').val()) - 1);
if ($('.count2').val() == 0) {
$('.count2').val(1);
}
});
$('#advnce-ser').click(function () {
// $('#togle').toggleClass('hide-section', 777);
//$('#togle').addClass( "hide-section" ).slideToggle('slow');
var icon = $(this).find("i");
icon.toggleClass("fa-plus-circle fa-minus-circle");
})
// ************************ end here ***************************
var window_w = $(window).innerWidth();
$(window).on('load', function () {
/*------------------
Preloder
--------------------*/
if (jQuery('.loader').length > 0) {
$(".loader").fadeOut();
$("#preloder").delay(500).fadeOut("slow");
}
//__portfolio(); // call portfolio function
});
//appends an "active" class to .popup and .popup-content when the "Open" button is clicked
$(".open").on("click", function(){
$(".popup-overlay, .popup-content").addClass("active");
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
//$('html, body').animate({scrollTop: $('.logo-holder').offset().top}, 200);
});
//removes the "active" class to .popup and .popup-content when the "Close" button is clicked
$(".btn_close").on("click", function(){
$(".popup-overlay, .popup-content").removeClass("active");
});
});
|
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { stringify } from '../util';
/**
* Allows to refer to references which are not yet defined.
*
* For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
* DI is declared, but not yet defined. It is also used when the `token` which we use when creating
* a query is not yet defined.
*
* @usageNotes
* ### Example
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
* @experimental
*/
export function forwardRef(forwardRefFn) {
forwardRefFn.__forward_ref__ = forwardRef;
forwardRefFn.toString = function () { return stringify(this()); };
return forwardRefFn;
}
/**
* Lazily retrieves the reference value from a forwardRef.
*
* Acts as the identity function when given a non-forward-ref value.
*
* @usageNotes
* ### Example
*
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
*
* @see `forwardRef`
* @experimental
*/
export function resolveForwardRef(type) {
if (typeof type === 'function' && type.hasOwnProperty('__forward_ref__') &&
type.__forward_ref__ === forwardRef) {
return type();
}
else {
return type;
}
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9yd2FyZF9yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9jb3JlL3NyYy9kaS9mb3J3YXJkX3JlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFHSCxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0sU0FBUyxDQUFDO0FBZWxDOzs7Ozs7Ozs7OztHQVdHO0FBQ0gsTUFBTSxxQkFBcUIsWUFBMEI7SUFDN0MsWUFBYSxDQUFDLGVBQWUsR0FBRyxVQUFVLENBQUM7SUFDM0MsWUFBYSxDQUFDLFFBQVEsR0FBRyxjQUFhLE1BQU0sQ0FBQyxTQUFTLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUN4RSxNQUFNLENBQWtCLFlBQWEsQ0FBQztBQUN4QyxDQUFDO0FBRUQ7Ozs7Ozs7Ozs7OztHQVlHO0FBQ0gsTUFBTSw0QkFBNEIsSUFBUztJQUN6QyxFQUFFLENBQUMsQ0FBQyxPQUFPLElBQUksS0FBSyxVQUFVLElBQUksSUFBSSxDQUFDLGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQztRQUNwRSxJQUFJLENBQUMsZUFBZSxLQUFLLFVBQVUsQ0FBQyxDQUFDLENBQUM7UUFDeEMsTUFBTSxDQUFnQixJQUFLLEVBQUUsQ0FBQztJQUNoQyxDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDTixNQUFNLENBQUMsSUFBSSxDQUFDO0lBQ2QsQ0FBQztBQUNILENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbmltcG9ydCB7VHlwZX0gZnJvbSAnLi4vdHlwZSc7XG5pbXBvcnQge3N0cmluZ2lmeX0gZnJvbSAnLi4vdXRpbCc7XG5cblxuXG4vKipcbiAqIEFuIGludGVyZmFjZSB0aGF0IGEgZnVuY3Rpb24gcGFzc2VkIGludG8ge0BsaW5rIGZvcndhcmRSZWZ9IGhhcyB0byBpbXBsZW1lbnQuXG4gKlxuICogQHVzYWdlTm90ZXNcbiAqICMjIyBFeGFtcGxlXG4gKlxuICoge0BleGFtcGxlIGNvcmUvZGkvdHMvZm9yd2FyZF9yZWYvZm9yd2FyZF9yZWZfc3BlYy50cyByZWdpb249J2ZvcndhcmRfcmVmX2ZuJ31cbiAqIEBleHBlcmltZW50YWxcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBGb3J3YXJkUmVmRm4geyAoKTogYW55OyB9XG5cbi8qKlxuICogQWxsb3dzIHRvIHJlZmVyIHRvIHJlZmVyZW5jZXMgd2hpY2ggYXJlIG5vdCB5ZXQgZGVmaW5lZC5cbiAqXG4gKiBGb3IgaW5zdGFuY2UsIGBmb3J3YXJkUmVmYCBpcyB1c2VkIHdoZW4gdGhlIGB0b2tlbmAgd2hpY2ggd2UgbmVlZCB0byByZWZlciB0byBmb3IgdGhlIHB1cnBvc2VzIG9mXG4gKiBESSBpcyBkZWNsYXJlZCwgYnV0IG5vdCB5ZXQgZGVmaW5lZC4gSXQgaXMgYWxzbyB1c2VkIHdoZW4gdGhlIGB0b2tlbmAgd2hpY2ggd2UgdXNlIHdoZW4gY3JlYXRpbmdcbiAqIGEgcXVlcnkgaXMgbm90IHlldCBkZWZpbmVkLlxuICpcbiAqIEB1c2FnZU5vdGVzXG4gKiAjIyMgRXhhbXBsZVxuICoge0BleGFtcGxlIGNvcmUvZGkvdHMvZm9yd2FyZF9yZWYvZm9yd2FyZF9yZWZfc3BlYy50cyByZWdpb249J2ZvcndhcmRfcmVmJ31cbiAqIEBleHBlcmltZW50YWxcbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGZvcndhcmRSZWYoZm9yd2FyZFJlZkZuOiBGb3J3YXJkUmVmRm4pOiBUeXBlPGFueT4ge1xuICAoPGFueT5mb3J3YXJkUmVmRm4pLl9fZm9yd2FyZF9yZWZfXyA9IGZvcndhcmRSZWY7XG4gICg8YW55PmZvcndhcmRSZWZGbikudG9TdHJpbmcgPSBmdW5jdGlvbigpIHsgcmV0dXJuIHN0cmluZ2lmeSh0aGlzKCkpOyB9O1xuICByZXR1cm4gKDxUeXBlPGFueT4+PGFueT5mb3J3YXJkUmVmRm4pO1xufVxuXG4vKipcbiAqIExhemlseSByZXRyaWV2ZXMgdGhlIHJlZmVyZW5jZSB2YWx1ZSBmcm9tIGEgZm9yd2FyZFJlZi5cbiAqXG4gKiBBY3RzIGFzIHRoZSBpZGVudGl0eSBmdW5jdGlvbiB3aGVuIGdpdmVuIGEgbm9uLWZvcndhcmQtcmVmIHZhbHVlLlxuICpcbiAqIEB1c2FnZU5vdGVzXG4gKiAjIyMgRXhhbXBsZVxuICpcbiAqIHtAZXhhbXBsZSBjb3JlL2RpL3RzL2ZvcndhcmRfcmVmL2ZvcndhcmRfcmVmX3NwZWMudHMgcmVnaW9uPSdyZXNvbHZlX2ZvcndhcmRfcmVmJ31cbiAqXG4gKiBAc2VlIGBmb3J3YXJkUmVmYFxuICogQGV4cGVyaW1lbnRhbFxuICovXG5leHBvcnQgZnVuY3Rpb24gcmVzb2x2ZUZvcndhcmRSZWYodHlwZTogYW55KTogYW55IHtcbiAgaWYgKHR5cGVvZiB0eXBlID09PSAnZnVuY3Rpb24nICYmIHR5cGUuaGFzT3duUHJvcGVydHkoJ19fZm9yd2FyZF9yZWZfXycpICYmXG4gICAgICB0eXBlLl9fZm9yd2FyZF9yZWZfXyA9PT0gZm9yd2FyZFJlZikge1xuICAgIHJldHVybiAoPEZvcndhcmRSZWZGbj50eXBlKSgpO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiB0eXBlO1xuICB9XG59XG4iXX0=
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["pages-myevents-myevents-module"],{
/***/ "./src/app/pages/myevents/myevents.module.ts":
/*!***************************************************!*\
!*** ./src/app/pages/myevents/myevents.module.ts ***!
\***************************************************/
/*! exports provided: MyeventsPageModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyeventsPageModule", function() { return MyeventsPageModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/dist/fesm5.js");
/* harmony import */ var _myevents_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./myevents.page */ "./src/app/pages/myevents/myevents.page.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var routes = [
{
path: '',
component: _myevents_page__WEBPACK_IMPORTED_MODULE_5__["MyeventsPage"]
}
];
var MyeventsPageModule = /** @class */ (function () {
function MyeventsPageModule() {
}
MyeventsPageModule = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
imports: [
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormsModule"],
_ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"],
_angular_router__WEBPACK_IMPORTED_MODULE_3__["RouterModule"].forChild(routes)
],
declarations: [_myevents_page__WEBPACK_IMPORTED_MODULE_5__["MyeventsPage"]]
})
], MyeventsPageModule);
return MyeventsPageModule;
}());
/***/ }),
/***/ "./src/app/pages/myevents/myevents.page.html":
/*!***************************************************!*\
!*** ./src/app/pages/myevents/myevents.page.html ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = "<ion-header>\n <ion-toolbar color=\"primary\">\n <ion-buttons slot=\"start\">\n <ion-menu-button color=\"secondary\"></ion-menu-button>\n </ion-buttons>\n <ion-title>\n <ion-text color=\"light\">\n <ion-text color=\"light\" class=\"fw700\">رویدادهای من</ion-text>\n </ion-text>\n </ion-title>\n </ion-toolbar>\n <ion-toolbar color=\"dark\">\n </ion-toolbar>\n\n\n\n\n</ion-header>\n\n<ion-content padding>\n\n</ion-content>"
/***/ }),
/***/ "./src/app/pages/myevents/myevents.page.scss":
/*!***************************************************!*\
!*** ./src/app/pages/myevents/myevents.page.scss ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = ":host ion-content {\n --background: var(--ion-color-light);\n}\n:host ion-item {\n border-radius: 0;\n border-bottom: 1px dotted var(--ion-color-medium);\n}\n:host ion-card.no-radius {\n border-radius: 0;\n}\n.scrolling-wrapper-flexbox {\n display: flex;\n flex-wrap: initial;\n overflow-x: auto;\n}\n.scrolling-wrapper-flexbox .card {\n flex: 0 0 auto;\n}\ndiv.scrollmenu {\n background-color: #333;\n overflow: auto;\n white-space: nowrap;\n}\ndiv.scrollmenu a {\n display: inline-block;\n color: white;\n text-align: center;\n padding: 100px;\n text-decoration: none;\n}\nimg1 {\n border: 2px solid #BA55D3;\n border-radius: 50%;\n padding: 5px;\n width: 50px;\n background-color: #4B0082;\n box-shadow: 1px 1px 1px 1px yellow;\n}\n.card {\n background: #1E90FF;\n border-radius: 50%;\n display: inline-block;\n height: 50px;\n border: 1px solid #fff;\n padding: 7px;\n margin: 1rem;\n position: relative;\n width: 50px;\n}\n.card-1 {\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);\n transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.card-1:hover {\n box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);\n}\ndiv.scrollmenu a:hover {\n background-color: #777;\n}\n.scrolling-wrapper {\n -webkit-overflow-scrolling: touch;\n}\n.container {\n display: flex;\n overflow-x: auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9taXJ6YS9EZXNrdG9wL1Byb2plY3RzL1BhYXNoby9zcmMvYXBwL3BhZ2VzL215ZXZlbnRzL215ZXZlbnRzLnBhZ2Uuc2NzcyIsInNyYy9hcHAvcGFnZXMvbXlldmVudHMvbXlldmVudHMucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNJO0VBQ0ksb0NBQUE7QUNBUjtBREVJO0VBQ0ksZ0JBQUE7RUFDQSxpREFBQTtBQ0FSO0FER1E7RUFDSSxnQkFBQTtBQ0RaO0FETUE7RUFDSSxhQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtBQ0hKO0FESUk7RUFDSSxjQUFBO0FDRlI7QURNQTtFQUNJLHNCQUFBO0VBQ0EsY0FBQTtFQUNBLG1CQUFBO0FDSEo7QURNQTtFQUNJLHFCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLHFCQUFBO0FDSEo7QURNQTtFQUNJLHlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0EsV0FBQTtFQUNBLHlCQUFBO0VBQ0Esa0NBQUE7QUNISjtBRE1BO0VBQ0ksbUJBQUE7RUFDQSxrQkFBQTtFQUNBLHFCQUFBO0VBQ0EsWUFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7QUNISjtBRE1BO0VBQ0ksd0VBQUE7RUFDQSxxREFBQTtBQ0hKO0FETUE7RUFDSSw0RUFBQTtBQ0hKO0FETUE7RUFDSSxzQkFBQTtBQ0hKO0FETUE7RUFDSSxpQ0FBQTtBQ0hKO0FETUE7RUFDSSxhQUFBO0VBQ0EsZ0JBQUE7QUNISiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL215ZXZlbnRzL215ZXZlbnRzLnBhZ2Uuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIjpob3N0IHtcbiAgICBpb24tY29udGVudCB7XG4gICAgICAgIC0tYmFja2dyb3VuZDogdmFyKC0taW9uLWNvbG9yLWxpZ2h0KTtcbiAgICB9XG4gICAgaW9uLWl0ZW0ge1xuICAgICAgICBib3JkZXItcmFkaXVzOiAwO1xuICAgICAgICBib3JkZXItYm90dG9tOiAxcHggZG90dGVkIHZhcigtLWlvbi1jb2xvci1tZWRpdW0pO1xuICAgIH1cbiAgICBpb24tY2FyZCB7XG4gICAgICAgICYubm8tcmFkaXVzIHtcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDA7XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi5zY3JvbGxpbmctd3JhcHBlci1mbGV4Ym94IHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtd3JhcDogaW5pdGlhbDtcbiAgICBvdmVyZmxvdy14OiBhdXRvO1xuICAgIC5jYXJkIHtcbiAgICAgICAgZmxleDogMCAwIGF1dG87XG4gICAgfVxufVxuXG5kaXYuc2Nyb2xsbWVudSB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzMzMztcbiAgICBvdmVyZmxvdzogYXV0bztcbiAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xufVxuXG5kaXYuc2Nyb2xsbWVudSBhIHtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgY29sb3I6IHdoaXRlO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBwYWRkaW5nOiAxMDBweDtcbiAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG59XG5cbmltZzEge1xuICAgIGJvcmRlcjogMnB4IHNvbGlkICNCQTU1RDM7XG4gICAgYm9yZGVyLXJhZGl1czogNTAlO1xuICAgIHBhZGRpbmc6IDVweDtcbiAgICB3aWR0aDogNTBweDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNEIwMDgyO1xuICAgIGJveC1zaGFkb3c6IDFweCAxcHggMXB4IDFweCB5ZWxsb3c7XG59XG5cbi5jYXJkIHtcbiAgICBiYWNrZ3JvdW5kOiAjMUU5MEZGO1xuICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgaGVpZ2h0OiA1MHB4O1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICNmZmY7XG4gICAgcGFkZGluZzogN3B4O1xuICAgIG1hcmdpbjogMXJlbTtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgd2lkdGg6IDUwcHg7XG59XG5cbi5jYXJkLTEge1xuICAgIGJveC1zaGFkb3c6IDAgMXB4IDNweCByZ2JhKDAsIDAsIDAsIDAuMTIpLCAwIDFweCAycHggcmdiYSgwLCAwLCAwLCAwLjI0KTtcbiAgICB0cmFuc2l0aW9uOiBhbGwgMC4zcyBjdWJpYy1iZXppZXIoLjI1LCAuOCwgLjI1LCAxKTtcbn1cblxuLmNhcmQtMTpob3ZlciB7XG4gICAgYm94LXNoYWRvdzogMCAxNHB4IDI4cHggcmdiYSgwLCAwLCAwLCAwLjI1KSwgMCAxMHB4IDEwcHggcmdiYSgwLCAwLCAwLCAwLjIyKTtcbn1cblxuZGl2LnNjcm9sbG1lbnUgYTpob3ZlciB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzc3Nztcbn1cblxuLnNjcm9sbGluZy13cmFwcGVyIHtcbiAgICAtd2Via2l0LW92ZXJmbG93LXNjcm9sbGluZzogdG91Y2g7XG59XG5cbi5jb250YWluZXIge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgb3ZlcmZsb3cteDogYXV0bztcbn0iLCI6aG9zdCBpb24tY29udGVudCB7XG4gIC0tYmFja2dyb3VuZDogdmFyKC0taW9uLWNvbG9yLWxpZ2h0KTtcbn1cbjpob3N0IGlvbi1pdGVtIHtcbiAgYm9yZGVyLXJhZGl1czogMDtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IGRvdHRlZCB2YXIoLS1pb24tY29sb3ItbWVkaXVtKTtcbn1cbjpob3N0IGlvbi1jYXJkLm5vLXJhZGl1cyB7XG4gIGJvcmRlci1yYWRpdXM6IDA7XG59XG5cbi5zY3JvbGxpbmctd3JhcHBlci1mbGV4Ym94IHtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC13cmFwOiBpbml0aWFsO1xuICBvdmVyZmxvdy14OiBhdXRvO1xufVxuLnNjcm9sbGluZy13cmFwcGVyLWZsZXhib3ggLmNhcmQge1xuICBmbGV4OiAwIDAgYXV0bztcbn1cblxuZGl2LnNjcm9sbG1lbnUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzMzO1xuICBvdmVyZmxvdzogYXV0bztcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbn1cblxuZGl2LnNjcm9sbG1lbnUgYSB7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgY29sb3I6IHdoaXRlO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHBhZGRpbmc6IDEwMHB4O1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG59XG5cbmltZzEge1xuICBib3JkZXI6IDJweCBzb2xpZCAjQkE1NUQzO1xuICBib3JkZXItcmFkaXVzOiA1MCU7XG4gIHBhZGRpbmc6IDVweDtcbiAgd2lkdGg6IDUwcHg7XG4gIGJhY2tncm91bmQtY29sb3I6ICM0QjAwODI7XG4gIGJveC1zaGFkb3c6IDFweCAxcHggMXB4IDFweCB5ZWxsb3c7XG59XG5cbi5jYXJkIHtcbiAgYmFja2dyb3VuZDogIzFFOTBGRjtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIGhlaWdodDogNTBweDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2ZmZjtcbiAgcGFkZGluZzogN3B4O1xuICBtYXJnaW46IDFyZW07XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgd2lkdGg6IDUwcHg7XG59XG5cbi5jYXJkLTEge1xuICBib3gtc2hhZG93OiAwIDFweCAzcHggcmdiYSgwLCAwLCAwLCAwLjEyKSwgMCAxcHggMnB4IHJnYmEoMCwgMCwgMCwgMC4yNCk7XG4gIHRyYW5zaXRpb246IGFsbCAwLjNzIGN1YmljLWJlemllcigwLjI1LCAwLjgsIDAuMjUsIDEpO1xufVxuXG4uY2FyZC0xOmhvdmVyIHtcbiAgYm94LXNoYWRvdzogMCAxNHB4IDI4cHggcmdiYSgwLCAwLCAwLCAwLjI1KSwgMCAxMHB4IDEwcHggcmdiYSgwLCAwLCAwLCAwLjIyKTtcbn1cblxuZGl2LnNjcm9sbG1lbnUgYTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6ICM3Nzc7XG59XG5cbi5zY3JvbGxpbmctd3JhcHBlciB7XG4gIC13ZWJraXQtb3ZlcmZsb3ctc2Nyb2xsaW5nOiB0b3VjaDtcbn1cblxuLmNvbnRhaW5lciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIG92ZXJmbG93LXg6IGF1dG87XG59Il19 */"
/***/ }),
/***/ "./src/app/pages/myevents/myevents.page.ts":
/*!*************************************************!*\
!*** ./src/app/pages/myevents/myevents.page.ts ***!
\*************************************************/
/*! exports provided: MyeventsPage */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyeventsPage", function() { return MyeventsPage; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/dist/fesm5.js");
/* harmony import */ var _services_api_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../services/api.service */ "./src/app/services/api.service.ts");
/* harmony import */ var _services_eventType__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../services/eventType */ "./src/app/services/eventType.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var MyeventsPage = /** @class */ (function () {
function MyeventsPage(navCtrl, menuCtrl, popoverCtrl, alertCtrl, modalCtrl, toastCtrl, apiService) {
this.navCtrl = navCtrl;
this.menuCtrl = menuCtrl;
this.popoverCtrl = popoverCtrl;
this.alertCtrl = alertCtrl;
this.modalCtrl = modalCtrl;
this.toastCtrl = toastCtrl;
this.apiService = apiService;
}
MyeventsPage.prototype.ionViewWillEnter = function () {
console.log(_services_eventType__WEBPACK_IMPORTED_MODULE_3__["eventType"].TODAY.toString());
console.log('ionViewWillEnter');
this.menuCtrl.enable(true);
};
MyeventsPage.prototype.ngOnInit = function () {
};
MyeventsPage.prototype.addNewEvent = function () {
};
MyeventsPage = __decorate([
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
selector: 'app-myevents',
template: __webpack_require__(/*! ./myevents.page.html */ "./src/app/pages/myevents/myevents.page.html"),
styles: [__webpack_require__(/*! ./myevents.page.scss */ "./src/app/pages/myevents/myevents.page.scss")]
}),
__metadata("design:paramtypes", [_ionic_angular__WEBPACK_IMPORTED_MODULE_1__["NavController"],
_ionic_angular__WEBPACK_IMPORTED_MODULE_1__["MenuController"],
_ionic_angular__WEBPACK_IMPORTED_MODULE_1__["PopoverController"],
_ionic_angular__WEBPACK_IMPORTED_MODULE_1__["AlertController"],
_ionic_angular__WEBPACK_IMPORTED_MODULE_1__["ModalController"],
_ionic_angular__WEBPACK_IMPORTED_MODULE_1__["ToastController"],
_services_api_service__WEBPACK_IMPORTED_MODULE_2__["ApiService"]])
], MyeventsPage);
return MyeventsPage;
}());
/***/ })
}]);
//# sourceMappingURL=pages-myevents-myevents-module.js.map
|
import setCookie from './setCookie';
export default function (cookieName) {
setCookie(cookieName, '', {
expires: -1
})
}
|
// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-mocha-reporter'),
require('karma-remap-istanbul'),
require('@angular-devkit/build-angular/plugins/karma')
],
files: [
{pattern: './src/test.ts', watched: false}
],
preprocessors: {
},
mime: {
'text/x-typescript': ['ts', 'tsx']
},
remapIstanbulReporter: {
dir: require('path').join(__dirname, 'coverage'), reports: {
html: 'coverage',
lcovonly: './coverage/coverage.lcov'
}
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly', 'text-summary' ],
fixWebpackSourcePaths: true
},
reporters: config.angularCli && config.angularCli.codeCoverage
? ['mocha', 'karma-remap-istanbul']
: ['mocha'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['ChromeHeadless'],
singleRun: true
});
};
|
/**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from 'react'
import PropTypes from 'prop-types'
import { Helmet } from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
import seoData from '../data/seoData'
function Seo ({ description, lang, meta, keywords, title }) {
return (
<StaticQuery
query={graphql`
query LuciusSeoQuery {
site {
siteMetadata {
title
subTitle
description
keywords
author
}
}
}
`}
render={data => {
const metaDescription =
description || data.site.siteMetadata.description
return (
<Helmet
htmlAttributes={{
lang
}}
title={title}
titleTemplate={`%s | ${data.site.siteMetadata.subTitle}`}
meta={[
{
name: 'description',
content: metaDescription
},
{
property: 'og:title',
content: title
},
{
property: 'og:description',
content: metaDescription
},
{
property: 'og:type',
content: 'website'
},
{
name: 'twitter:card',
content: 'summary'
},
{
name: 'twitter:creator',
content: data.site.siteMetadata.author
},
{
name: 'twitter:title',
content: title
},
{
name: 'twitter:description',
content: metaDescription
}
]
.concat(
keywords.length > 0
? {
name: 'keywords',
content: keywords.join(', ')
}
: []
)
.concat(meta)}
link={[
{ rel: 'shortcut icon', type: 'image/png', href: `${seoData}` }
]}
/>
)
}}
/>
)
}
Seo.defaultProps = {
lang: 'en',
meta: [],
keywords: []
}
Seo.propTypes = {
description: PropTypes.string,
lang: PropTypes.string,
meta: PropTypes.array,
keywords: PropTypes.arrayOf(PropTypes.string),
title: PropTypes.string.isRequired
}
export default Seo
|
const path = require('path');
const sarif = require('../lib/sarif');
const io = require('@actions/io');
const os = require('os');
const tempPath = path.join(__dirname, 'TEMP');
describe('pmd-github-action-sarif', function () {
beforeEach(async function () {
await io.rmRF(tempPath);
await io.mkdirP(tempPath);
})
afterEach(function () {
delete process.env['GITHUB_WORKSPACE'];
})
afterAll(async function () {
await io.rmRF(tempPath);
})
it('can count violations', () => {
const count = sarif.countViolations(path.join(__dirname, 'data', 'pmd-report.sarif'));
expect(count).toBe(1);
})
it('can deal with empty report', () => {
const count = sarif.countViolations(path.join(__dirname, 'data', 'pmd-report-empty.sarif'));
expect(count).toBe(0);
})
it('can deal with no report', () => {
const count = sarif.countViolations(path.join(__dirname, 'data', 'pmd-report-not-existing.sarif'));
expect(count).toBe(0);
})
it('can load report', () => {
const report = sarif.loadReport(path.join(__dirname, 'data', 'pmd-report.sarif'));
expect(report).not.toBe(null);
expect(report.runs[0].tool.driver.name).toBe('PMD');
})
it('can deal with missing report', () => {
const report = sarif.loadReport(path.join(__dirname, 'data', 'pmd-report-not-existing.sarif'));
expect(report).toBe(null);
})
test('relativize can deal with missing report', () => {
const reportPath = path.join(__dirname, 'data', 'pmd-report-not-existing.sarif');
sarif.relativizeReport(reportPath);
})
test('can properly relativize report', async () => {
const isWindows = os.platform() === 'win32';
const reportPath = path.join(tempPath, 'pmd-report.sarif');
await io.cp(path.join(__dirname, 'data', isWindows ? 'pmd-report-win.sarif' : 'pmd-report.sarif'), reportPath);
const reportBefore = sarif.loadReport(reportPath);
const fullPath = isWindows ? 'D:\\a\\pmd-github-action-test\\src\\classes\\UnusedLocalVariableSample.cls' : '/home/andreas/PMD/source/pmd-github-action-test/src/classes/UnusedLocalVariableSample.cls';
expect(reportBefore.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri).toBe(fullPath);
process.env['GITHUB_WORKSPACE'] = isWindows ? 'D:\\a\\pmd-github-action-test' : '/home/andreas/PMD/source/pmd-github-action-test';
sarif.relativizeReport(reportPath);
const reportAfter = sarif.loadReport(reportPath);
expect(path.normalize(reportAfter.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri))
.toBe(path.normalize('src/classes/UnusedLocalVariableSample.cls'));
})
test('can properly relativize already relativized report', async () => {
const reportPath = path.join(tempPath, 'pmd-report.sarif');
await io.cp(path.join(__dirname, 'data', 'pmd-report-relativized.sarif'), reportPath);
const reportBefore = sarif.loadReport(reportPath);
expect(reportBefore.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri).toBe('src/classes/UnusedLocalVariableSample.cls');
process.env['GITHUB_WORKSPACE'] = '/home/andreas/PMD/source/pmd-github-action-test';
sarif.relativizeReport(reportPath);
const reportAfter = sarif.loadReport(reportPath);
expect(reportAfter.runs[0].results[0].locations[0].physicalLocation.artifactLocation.uri).toBe('src/classes/UnusedLocalVariableSample.cls');
})
});
|
const assert = require('assert');
const path = require('path');
const ID_MAIN = path.join(__dirname, 'main.js');
const ID_FOO = path.join(__dirname, 'foo.js');
const ID_NESTED = path.join(__dirname, 'nested', 'nested.js');
const ID_PATH = 'path';
let rendered = false;
module.exports = {
description: 'provides module information on the plugin context',
options: {
external: ['path'],
plugins: {
load(id) {
assert.deepStrictEqual(this.getModuleInfo(id), {
dynamicallyImportedIds: [],
hasModuleSideEffects: true,
id,
importedIds: [],
isEntry: id === ID_MAIN,
isExternal: false
});
},
renderStart() {
rendered = true;
assert.deepStrictEqual(Array.from(this.moduleIds), [ID_MAIN, ID_FOO, ID_PATH, ID_NESTED]);
assert.deepStrictEqual(this.getModuleInfo(ID_MAIN), {
dynamicallyImportedIds: [ID_NESTED, ID_PATH],
hasModuleSideEffects: true,
id: ID_MAIN,
importedIds: [ID_FOO],
isEntry: true,
isExternal: false
});
assert.deepStrictEqual(this.getModuleInfo(ID_FOO), {
dynamicallyImportedIds: [],
hasModuleSideEffects: true,
id: ID_FOO,
importedIds: [ID_PATH],
isEntry: false,
isExternal: false
});
assert.deepStrictEqual(this.getModuleInfo(ID_NESTED), {
dynamicallyImportedIds: [],
hasModuleSideEffects: true,
id: ID_NESTED,
importedIds: [ID_FOO],
isEntry: false,
isExternal: false
});
assert.deepStrictEqual(this.getModuleInfo(ID_PATH), {
dynamicallyImportedIds: [],
hasModuleSideEffects: true,
id: ID_PATH,
importedIds: [],
isEntry: false,
isExternal: true
});
}
}
},
context: {
thePath: 'path'
},
bundle() {
assert.ok(rendered);
}
};
|
import init from '../src/init';
import updateAttributes from '../src/updateAttributes';
jest.mock('../src/init');
describe('Update Attributes', () => {
beforeEach(() => {
// Clear all instances and calls to constructor and all methods:
init.mockClear();
delete process.env.COG_POOL_ID;
});
it('should change user password', async () => {
process.env.COG_POOL_ID = 'pool-id';
const fakeCog = {
adminUpdateUserAttributes: jest.fn().mockReturnValue({
promise: () => Promise.resolve(),
}),
};
init.mockImplementation(() => fakeCog);
const email = 'john@doe.com';
const attributes = {
firstName: 'john',
lastName: 'doe',
};
await updateAttributes({ email, attributes });
expect(init).toBeCalledTimes(1);
expect(fakeCog.adminUpdateUserAttributes).toBeCalledTimes(1);
expect(fakeCog.adminUpdateUserAttributes).toBeCalledWith({
UserPoolId: 'pool-id',
Username: email,
UserAttributes: [
{
Name: 'given_name',
Value: attributes.firstName,
},
{
Name: 'family_name',
Value: attributes.lastName,
},
],
});
});
it('should throw missing pool id', async () => {
const email = 'john@doe.com';
expect.assertions(1);
await expect(updateAttributes({ email })).rejects.toEqual(
new Error('Missing Cognito Pool Id')
);
});
it('should throw missing email', async () => {
process.env.COG_POOL_ID = 'pool-id';
expect.assertions(1);
await expect(updateAttributes({})).rejects.toEqual(
new Error('Missing email')
);
});
it('should throw missing attributes', async () => {
process.env.COG_POOL_ID = 'pool-id';
const email = 'john@doe.com';
expect.assertions(1);
await expect(updateAttributes({ email })).rejects.toEqual(
new Error('Missing attributes')
);
});
it('should throw missing first name', async () => {
process.env.COG_POOL_ID = 'pool-id';
const email = 'john@doe.com';
const attributes = {};
expect.assertions(1);
await expect(updateAttributes({ email, attributes })).rejects.toEqual(
new Error('Missing first name')
);
});
it('should throw missing last name', async () => {
process.env.COG_POOL_ID = 'pool-id';
const email = 'john@doe.com';
const attributes = { firstName: 'john' };
expect.assertions(1);
await expect(updateAttributes({ email, attributes })).rejects.toEqual(
new Error('Missing last name')
);
});
});
|
/* eslint-disable import/prefer-default-export */
/* eslint-disable import/no-extraneous-dependencies */
import 'vtk.js/Sources/favicon';
import JSZip from 'jszip';
import macro from 'vtk.js/Sources/macro';
import HttpDataAccessHelper from 'vtk.js/Sources/IO/Core/DataAccessHelper/HttpDataAccessHelper';
import vtkFullScreenRenderWindow from 'vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow';
import vtkURLExtract from 'vtk.js/Sources/Common/Core/URLExtract';
import vtkOBJReader from 'vtk.js/Sources/IO/Misc/OBJReader';
import vtkMTLReader from 'vtk.js/Sources/IO/Misc/MTLReader';
import vtkMapper from 'vtk.js/Sources/Rendering/Core/Mapper';
import vtkActor from 'vtk.js/Sources/Rendering/Core/Actor';
import style from './OBJViewer.module.css';
const iOS = /iPad|iPhone|iPod/.test(window.navigator.platform);
let autoInit = true;
// Add class to body if iOS device --------------------------------------------
if (iOS) {
document.querySelector('body').classList.add('is-ios-device');
}
function preventDefaults(e) {
e.preventDefault();
e.stopPropagation();
}
function emptyContainer(container) {
while (container.firstChild) {
container.removeChild(container.firstChild);
}
}
function loadZipContent(zipContent, renderWindow, renderer) {
const fileContents = { obj: {}, mtl: {}, img: {} };
const zip = new JSZip();
zip.loadAsync(zipContent).then(() => {
let workLoad = 0;
function done() {
if (workLoad !== 0) {
return;
}
// Attach images to MTLs
Object.keys(fileContents.mtl).forEach((mtlFilePath) => {
const mtlReader = fileContents.mtl[mtlFilePath];
const basePath = mtlFilePath
.split('/')
.filter((v, i, a) => i < a.length - 1)
.join('/');
mtlReader.listImages().forEach((relPath) => {
const key = `${basePath}/${relPath}`;
const imgSRC = fileContents.img[key];
if (imgSRC) {
mtlReader.setImageSrc(relPath, imgSRC);
}
});
});
// Create pipeline from obj
Object.keys(fileContents.obj).forEach((objFilePath) => {
const mtlFilePath = objFilePath.replace(/\.obj$/, '.mtl');
const objReader = fileContents.obj[objFilePath];
const mtlReader = fileContents.mtl[mtlFilePath];
const size = objReader.getNumberOfOutputPorts();
for (let i = 0; i < size; i++) {
const source = objReader.getOutputData(i);
const mapper = vtkMapper.newInstance();
const actor = vtkActor.newInstance();
const name = source.get('name').name;
actor.setMapper(mapper);
mapper.setInputData(source);
renderer.addActor(actor);
if (mtlReader && name) {
mtlReader.applyMaterialToActor(name, actor);
}
}
});
renderer.resetCamera();
renderWindow.render();
// Rerender with hopefully all the textures loaded
setTimeout(renderWindow.render, 500);
}
zip.forEach((relativePath, zipEntry) => {
if (relativePath.match(/\.obj$/i)) {
workLoad++;
zipEntry.async('string').then((txt) => {
const reader = vtkOBJReader.newInstance({ splitMode: 'usemtl' });
reader.parseAsText(txt);
fileContents.obj[relativePath] = reader;
workLoad--;
done();
});
}
if (relativePath.match(/\.mtl$/i)) {
workLoad++;
zipEntry.async('string').then((txt) => {
const reader = vtkMTLReader.newInstance();
reader.parseAsText(txt);
fileContents.mtl[relativePath] = reader;
workLoad--;
done();
});
}
if (relativePath.match(/\.jpg$/i) || relativePath.match(/\.png$/i)) {
workLoad++;
zipEntry.async('base64').then((txt) => {
const ext = relativePath.slice(-3).toLowerCase();
fileContents.img[relativePath] = `data:image/${ext};base64,${txt}`;
workLoad--;
done();
});
}
});
});
}
export function load(container, options) {
autoInit = false;
emptyContainer(container);
const fullScreenRenderer = vtkFullScreenRenderWindow.newInstance({
background: [0, 0, 0],
rootContainer: container,
containerStyle: { height: '100%', width: '100%', position: 'absolute' },
});
const renderer = fullScreenRenderer.getRenderer();
const renderWindow = fullScreenRenderer.getRenderWindow();
if (options.file) {
if (options.ext === 'obj') {
const reader = new FileReader();
reader.onload = function onLoad(e) {
const objReader = vtkOBJReader.newInstance();
objReader.parseAsText(reader.result);
const nbOutputs = objReader.getNumberOfOutputPorts();
for (let idx = 0; idx < nbOutputs; idx++) {
const source = objReader.getOutputData(idx);
const mapper = vtkMapper.newInstance();
const actor = vtkActor.newInstance();
actor.setMapper(mapper);
mapper.setInputData(source);
renderer.addActor(actor);
}
renderer.resetCamera();
renderWindow.render();
};
reader.readAsText(options.file);
} else {
loadZipContent(options.file, renderWindow, renderer);
}
} else if (options.fileURL) {
const progressContainer = document.createElement('div');
progressContainer.setAttribute('class', style.progress);
container.appendChild(progressContainer);
const progressCallback = (progressEvent) => {
if (progressEvent.lengthComputable) {
const percent = Math.floor(
(100 * progressEvent.loaded) / progressEvent.total
);
progressContainer.innerHTML = `Loading ${percent}%`;
} else {
progressContainer.innerHTML = macro.formatBytesToProperUnit(
progressEvent.loaded
);
}
};
HttpDataAccessHelper.fetchBinary(options.fileURL, {
progressCallback,
}).then((content) => {
container.removeChild(progressContainer);
loadZipContent(content, renderWindow, renderer);
});
}
}
export function initLocalFileLoader(container) {
const exampleContainer = document.querySelector('.content');
const rootBody = document.querySelector('body');
const myContainer = container || exampleContainer || rootBody;
if (myContainer !== container) {
myContainer.classList.add(style.fullScreen);
rootBody.style.margin = '0';
rootBody.style.padding = '0';
} else {
rootBody.style.margin = '0';
rootBody.style.padding = '0';
}
const fileContainer = document.createElement('div');
fileContainer.innerHTML = `<div class="${
style.bigFileDrop
}"/><input type="file" accept=".zip,.obj" style="display: none;"/>`;
myContainer.appendChild(fileContainer);
const fileInput = fileContainer.querySelector('input');
function handleFile(e) {
preventDefaults(e);
const dataTransfer = e.dataTransfer;
const files = e.target.files || dataTransfer.files;
if (files.length === 1) {
myContainer.removeChild(fileContainer);
const ext = files[0].name.split('.').slice(-1)[0];
load(myContainer, { file: files[0], ext });
}
}
fileInput.addEventListener('change', handleFile);
fileContainer.addEventListener('drop', handleFile);
fileContainer.addEventListener('click', (e) => fileInput.click());
fileContainer.addEventListener('dragover', preventDefaults);
}
// Look at URL an see if we should load a file
// ?fileURL=https://data.kitware.com/api/v1/item/59cdbb588d777f31ac63de08/download
const userParams = vtkURLExtract.extractURLParameters();
if (userParams.url || userParams.fileURL) {
const exampleContainer = document.querySelector('.content');
const rootBody = document.querySelector('body');
const myContainer = exampleContainer || rootBody;
if (myContainer) {
myContainer.classList.add(style.fullScreen);
rootBody.style.margin = '0';
rootBody.style.padding = '0';
}
load(myContainer, userParams);
}
// Auto setup if no method get called within 100ms
setTimeout(() => {
if (autoInit) {
initLocalFileLoader();
}
}, 100);
|
import React, { useEffect } from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import { logout } from '../../../../../actions';
import { BURGER_BUILDER_ROUTE } from '../../../../routes';
/**
* Logout component
*/
const Logout = (props) => {
const { onLogout } = props;
useEffect(() => {
onLogout();
}, [onLogout]);
return (
<Redirect to={BURGER_BUILDER_ROUTE} />
);
}
const mapDispatchToProps = dispatch => {
return {
onLogout: () => dispatch(logout())
};
};
export default connect(null, mapDispatchToProps)(Logout);
|
/* eslint-disable no-nested-ternary */
import axios from "axios";
const apiAdapter = (url, { start, success, failure }) => () => dispatch => {
dispatch(start());
const secureURL = url.includes("https")
? url
: `${url.slice(0, 4)}s${url.slice(4)}`;
return axios
.get(secureURL)
.then(res => {
dispatch(success(res.data));
return res;
})
.catch(err => {
dispatch(failure(err));
});
};
export const fetchByDateAdapter = (
slide,
date,
type,
{ start, success, failure }
) => () => dispatch => {
dispatch(start());
const url = slide.layerEndpoint;
const secureURL = url.includes("https")
? url
: `${url.slice(0, 4)}s${url.slice(4)}`;
return axios
.get(`${secureURL}${date}`)
.then(res => {
dispatch(
success({
name: slide.label,
data: res.data,
type
})
);
return res;
})
.catch(err => {
dispatch(failure(err));
});
};
export const fetchLayersAdapter = (
layersArr,
{ start, success, failure }
) => () => dispatch => {
dispatch(start());
const fetchLayers = layersArr.map(layerObj => {
const url = layerObj.slide.layerEndpoint;
const isSecureURL = url.includes("https")
? url
: `${url.slice(0, 4)}s${url.slice(4)}`;
return axios.get(isSecureURL);
});
return axios.all(fetchLayers).then(layerDataArr => {
const geoDataURLs = layerDataArr.map((layer, i) => {
return {
url: layer.data.dataEndpoint,
prevData: layersArr[i].geoJSON
};
});
const fetchGeoData = geoDataURLs.map((gd, i, arr) => {
const findMatch = arr.findIndex(d => d.url === gd.url && d.prevData);
return findMatch > -1
? { data: { results: layersArr[findMatch].geoJSON } }
: gd.url && layersArr[i].defaultSlide && !layersArr[i].geoJSON
? axios.get(gd.url)
: {};
});
return axios
.all(fetchGeoData)
.then(geoData => {
const layerAndGeoData = geoData.map((g, i) => {
return {
...g.data,
...layerDataArr[i].data
};
});
dispatch(success(layerAndGeoData));
return geoData;
})
.catch(err => {
dispatch(failure(err));
});
});
};
export default apiAdapter;
|
/*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with the
terms contained in a written agreement between you and Sencha.
If you are unsure which license is appropriate for your use, please contact the sales department
at http://www.sencha.com/contact.
Build date: 2013-05-16 14:36:50 (f9be68accb407158ba2b1be2c226a6ce1f649314)
*/
/**
* This class is the base for all layout types: component and container.
* @protected
*/
Ext.define('Ext.layout.Layout', {
requires: [
'Ext.XTemplate',
'Ext.layout.SizeModel'
],
uses: [ 'Ext.layout.Context' ],
/**
* @property {Boolean} isLayout
* `true` in this class to identify an object as an instantiated Layout, or subclass thereof.
* @readonly
*/
isLayout: true,
initialized: false,
running: false,
autoSizePolicy: {
readsWidth: 1,
readsHeight: 1,
setsWidth: 0,
setsHeight: 0
},
statics: {
layoutsByType: {},
create: function(layout, defaultType) {
var ClassManager = Ext.ClassManager,
layoutsByType = this.layoutsByType,
alias, className, config, layoutClass, type, load;
if (!layout || typeof layout === 'string') {
type = layout || defaultType;
config = {};
} else if (layout.isLayout) {
return layout;
} else {
config = layout;
type = layout.type || defaultType;
}
if (!(layoutClass = layoutsByType[type])) {
alias = 'layout.' + type;
className = ClassManager.getNameByAlias(alias);
// this is needed to support demand loading of the class
if (!className) {
load = true;
}
layoutClass = ClassManager.get(className);
if (load || !layoutClass) {
return ClassManager.instantiateByAlias(alias, config || {});
}
layoutsByType[type] = layoutClass;
}
return new layoutClass(config);
}
},
constructor : function(config) {
var me = this;
me.id = Ext.id(null, me.type + '-');
Ext.apply(me, config);
me.layoutCount = 0;
},
/**
* @property {Boolean} done Used only during a layout run, this value indicates that a
* layout has finished its calculations. This flag is set to true prior to the call to
* {@link #calculate} and should be set to false if this layout has more work to do.
*/
/**
* Called before any calculation cycles to prepare for layout.
*
* This is a write phase and DOM reads should be strictly avoided when overridding
* this method.
*
* @param {Ext.layout.ContextItem} ownerContext The context item for the layout's owner
* component.
* @method beginLayout
*/
beginLayout: Ext.emptyFn,
/**
* Called before any calculation cycles to reset DOM values and prepare for calculation.
*
* This is a write phase and DOM reads should be strictly avoided when overridding
* this method.
*
* @param {Ext.layout.ContextItem} ownerContext The context item for the layout's owner
* component.
* @method beginLayoutCycle
*/
beginLayoutCycle: function (ownerContext) {
var me = this,
context = me.context,
changed;
if (me.lastWidthModel != ownerContext.widthModel) {
if (me.lastWidthModel) {
changed = true;
}
me.lastWidthModel = ownerContext.widthModel;
}
if (me.lastHeightModel != ownerContext.heightModel) {
if (me.lastWidthModel) {
changed = true;
}
me.lastHeightModel = ownerContext.heightModel;
}
if (changed) {
(context = ownerContext.context).clearTriggers(me, false);
context.clearTriggers(me, true);
me.triggerCount = 0;
}
},
/**
* Called to perform the calculations for this layout. This method will be called at
* least once and may be called repeatedly if the {@link #done} property is cleared
* before return to indicate that this layout is not yet done. The {@link #done} property
* is always set to `true` before entering this method.
*
* This is a read phase and DOM writes should be strictly avoided in derived classes.
* Instead, DOM writes need to be written to {@link Ext.layout.ContextItem} objects to
* be flushed at the next opportunity.
*
* @param {Ext.layout.ContextItem} ownerContext The context item for the layout's owner
* component.
* @method calculate
* @abstract
*/
/**
* This method (if implemented) is called at the end of the cycle in which this layout
* completes (by not setting {@link #done} to `false` in {@link #calculate}). It is
* possible for the layout to complete and yet become invalid before the end of the cycle,
* in which case, this method will not be called. It is also possible for this method to
* be called and then later the layout becomes invalidated. This will result in
* {@link #calculate} being called again, followed by another call to this method.
*
* This is a read phase and DOM writes should be strictly avoided in derived classes.
* Instead, DOM writes need to be written to {@link Ext.layout.ContextItem} objects to
* be flushed at the next opportunity.
*
* This method need not be implemented by derived classes and, in fact, should only be
* implemented when needed.
*
* @param {Ext.layout.ContextItem} ownerContext The context item for the layout's owner
* component.
* @method completeLayout
*/
/**
* This method (if implemented) is called after all layouts have completed. In most
* ways this is similar to {@link #completeLayout}. This call can cause this (or any
* layout) to be become invalid (see {@link Ext.layout.Context#invalidate}), but this
* is best avoided. This method is intended to be where final reads are made and so it
* is best to avoid invalidating layouts at this point whenever possible. Even so, this
* method can be used to perform final checks that may require all other layouts to be
* complete and then invalidate some results.
*
* This is a read phase and DOM writes should be strictly avoided in derived classes.
* Instead, DOM writes need to be written to {@link Ext.layout.ContextItem} objects to
* be flushed at the next opportunity.
*
* This method need not be implemented by derived classes and, in fact, should only be
* implemented when needed.
*
* @param {Ext.layout.ContextItem} ownerContext The context item for the layout's owner
* component.
* @method finalizeLayout
*/
/**
* This method is called after all layouts are complete and their calculations flushed
* to the DOM. No further layouts will be run and this method is only called once per
* layout run. The base component layout caches `lastComponentSize`.
*
* This is a write phase and DOM reads should be avoided if possible when overridding
* this method.
*
* This method need not be implemented by derived classes and, in fact, should only be
* implemented when needed.
*
* @param {Ext.layout.ContextItem} ownerContext The context item for the layout's owner
* component.
*/
finishedLayout: function (ownerContext) {
this.lastWidthModel = ownerContext.widthModel;
this.lastHeightModel = ownerContext.heightModel;
this.ownerContext = null;
},
/**
* This method (if implemented) is called after all layouts are finished, and all have
* a `lastComponentSize` cached. No further layouts will be run and this method is only
* called once per layout run. It is the bookend to {@link #beginLayout}.
*
* This is a write phase and DOM reads should be avoided if possible when overridding
* this method. This is the catch-all tail method to a layout and so the rules are more
* relaxed. Even so, for performance reasons, it is best to avoid reading the DOM. If
* a read is necessary, consider implementing a {@link #finalizeLayout} method to do the
* required reads.
*
* This method need not be implemented by derived classes and, in fact, should only be
* implemented when needed.
*
* @param {Ext.layout.ContextItem} ownerContext The context item for the layout's owner
* component.
* @method notifyOwner
*/
redoLayout: Ext.emptyFn,
undoLayout: Ext.emptyFn,
getAnimatePolicy: function() {
return this.animatePolicy;
},
/**
* Returns an object describing how this layout manages the size of the given component.
* This method must be implemented by any layout that manages components.
*
* @param {Ext.Component} item
* @return {Ext.layout.SizePolicy} An object describing the sizing done by the layout
* for this item.
* @protected
*/
getItemSizePolicy: function (item) {
return this.autoSizePolicy;
},
isItemBoxParent: function (itemContext) {
return false;
},
isItemLayoutRoot: function (item) {
var sizeModel = item.getSizeModel(),
width = sizeModel.width,
height = sizeModel.height;
// If this component has never had a layout and some of its dimensions are set by
// its ownerLayout, we cannot be the layoutRoot...
if (!item.componentLayout.lastComponentSize && (width.calculated || height.calculated)) {
return false;
}
// otherwise an ownerCt whose size is not effected by its content is a root
return !width.shrinkWrap && !height.shrinkWrap;
},
isItemShrinkWrap: function (item) {
return item.shrinkWrap;
},
isRunning: function () {
return !!this.ownerContext;
},
//-----------------------------------------------------
/*
* Clears any styles which must be cleared before layout can take place.
* Only DOM WRITES must be performed at this stage.
*
* An entry for the owner's element ID must be created in the layoutContext containing
* a reference to the target which must be sized/positioned/styled by the layout at
* the flush stage:
*
* {
* target: me.owner
* }
*
* Component layouts should iterate through managed Elements,
* pushing an entry for each element:
*
* {
* target: childElement
* }
*/
//-----------------------------------------------------
getItemsRenderTree: function (items, renderCfgs) {
var length = items.length,
i, item, itemConfig, result;
if (length) {
result = [];
for (i = 0; i < length; ++i) {
item = items[i];
// If we are being asked to move an already rendered Component, we must not recalculate its renderTree
// and rerun its render process. The Layout's isValidParent check will ensure that the DOM is moved into place.
if (!item.rendered) {
// If we've already calculated the item's element config, don't calculate it again.
// This may happen if the rendering process mutates the owning Container's items
// collection, and Ext.layout.Container#getRenderTree runs through the collection again.
// Note that the config may be null if a beforerender listener vetoed the operation, so
// we must compare to undefined.
if (renderCfgs && (renderCfgs[item.id] !== undefined)) {
itemConfig = renderCfgs[item.id];
} else {
// Perform layout preprocessing in the bulk render path
this.configureItem(item);
itemConfig = item.getRenderTree();
if (renderCfgs) {
renderCfgs[item.id] = itemConfig;
}
}
// itemConfig mey be null if a beforerender listener vetoed the operation.
if (itemConfig) {
result.push(itemConfig);
}
}
}
}
return result;
},
finishRender: Ext.emptyFn,
finishRenderItems: function (target, items) {
var length = items.length,
i, item;
for (i = 0; i < length; i++) {
item = items[i];
// Only postprocess items which are being rendered. deferredRender may mean that only one has been rendered.
if (item.rendering) {
// Tell the item at which index in the Container it is
item.finishRender(i);
this.afterRenderItem(item);
}
}
},
renderChildren: function () {
var me = this,
items = me.getLayoutItems(),
target = me.getRenderTarget();
me.renderItems(items, target);
},
/**
* Iterates over all passed items, ensuring they are rendered. If the items are already rendered,
* also determines if the items are in the proper place in the dom.
* @protected
*/
renderItems : function(items, target) {
var me = this,
ln = items.length,
i = 0,
item;
if (ln) {
Ext.suspendLayouts();
for (; i < ln; i++) {
item = items[i];
if (item && !item.rendered) {
me.renderItem(item, target, i);
} else if (!me.isValidParent(item, target, i)) {
me.moveItem(item, target, i);
} else {
// still need to configure the item, it may have moved in the container.
me.configureItem(item);
}
}
Ext.resumeLayouts(true);
}
},
/**
* Validates item is in the proper place in the dom.
* @protected
*/
isValidParent : function(item, target, position) {
var itemDom = item.el ? item.el.dom : Ext.getDom(item),
targetDom = (target && target.dom) || target,
parentNode = itemDom.parentNode,
className;
// If it's resizable+wrapped, the position element is the wrapper.
if (parentNode) {
className = parentNode.className;
if (className && className.indexOf(Ext.baseCSSPrefix + 'resizable-wrap') !== -1) {
itemDom = itemDom.parentNode;
}
}
// Test DOM nodes for equality using "===" : http://jsperf.com/dom-equality-test
if (itemDom && targetDom) {
if (typeof position == 'number') {
position = this.getPositionOffset(position);
return itemDom === targetDom.childNodes[position];
}
return itemDom.parentNode === targetDom;
}
return false;
},
getPositionOffset: function(position){
return position;
},
/**
* Called before an item is rendered to allow the layout to configure the item.
* @param {Ext.Component} item The item to be configured
* @protected
*/
configureItem: function(item) {
item.ownerLayout = this;
},
/**
* Renders the given Component into the target Element.
* @param {Ext.Component} item The Component to render
* @param {Ext.dom.Element} target The target Element
* @param {Number} position The position within the target to render the item to
* @private
*/
renderItem : function(item, target, position) {
var me = this;
if (!item.rendered) {
me.configureItem(item);
item.render(target, position);
me.afterRenderItem(item);
}
},
/**
* Moves Component to the provided target instead.
* @private
*/
moveItem : function(item, target, position) {
target = target.dom || target;
if (typeof position == 'number') {
position = target.childNodes[position];
}
target.insertBefore(item.el.dom, position || null);
item.container = Ext.get(target);
this.configureItem(item);
},
/**
* This method is called when a child item changes in some way. By default this calls
* {@link Ext.AbstractComponent#updateLayout} on this layout's owner.
*
* @param {Ext.Component} child The child item that has changed.
* @return {Boolean} True if this layout has handled the content change.
*/
onContentChange: function () {
this.owner.updateLayout();
return true;
},
/**
* A one-time initialization method called just before rendering.
* @protected
*/
initLayout : function() {
this.initialized = true;
},
// @private Sets the layout owner
setOwner : function(owner) {
this.owner = owner;
},
/**
* Returns the set of items to layout (empty by default).
* @protected
*/
getLayoutItems : function() {
return [];
},
onAdd: function (item) {
item.ownerLayout = this;
},
afterRenderItem: Ext.emptyFn,
onRemove : Ext.emptyFn,
onDestroy : Ext.emptyFn,
/**
* Removes layout's itemCls and owning Container's itemCls.
* Clears the managed dimensions flags
* @protected
*/
afterRemove : function(item) {
var me = this,
el = item.el,
owner = me.owner,
removeClasses;
if (item.rendered) {
removeClasses = [].concat(me.itemCls || []);
if (owner.itemCls) {
removeClasses = Ext.Array.push(removeClasses, owner.itemCls);
}
if (removeClasses.length) {
el.removeCls(removeClasses);
}
}
delete item.ownerLayout;
},
/**
* Destroys this layout. This method removes a `targetCls` from the `target`
* element and calls `onDestroy`.
*
* A derived class can override either this method or `onDestroy` but in all
* cases must call the base class versions of these methods to allow the base class to
* perform its cleanup.
*
* This method (or `onDestroy`) are overridden by subclasses most often to purge
* event handlers or remove unmanged DOM nodes.
*
* @protected
*/
destroy : function() {
var me = this,
target;
if (me.targetCls) {
target = me.getTarget();
if (target) {
target.removeCls(me.targetCls);
}
}
me.onDestroy();
},
sortWeightedItems: function (items, reverseProp) {
for (var i = 0, length = items.length; i < length; ++i) {
items[i].$i = i;
}
Ext.Array.sort(items, function (item1, item2) {
var ret = item2.weight - item1.weight;
if (!ret) {
ret = item1.$i - item2.$i;
if (item1[reverseProp]) {
ret = -ret;
}
}
return ret;
});
for (i = 0; i < length; ++i) {
delete items[i].$i;
}
}
}, function () {
var Layout = this;
Layout.prototype.sizeModels = Layout.sizeModels = Ext.layout.SizeModel.sizeModels;
});
|
import { BLOCK_TYPES } from "./EditorSettings";
import StyleButton from "./StyleButton";
import React from "react";
const BlockStyleControls = props => {
const { editorState } = props;
const selection = editorState.getSelection();
const blockType = editorState
.getCurrentContent()
.getBlockForKey(selection.getStartKey())
.getType();
return (
<div className="RichEditor-controls">
{BLOCK_TYPES.map(type => (
<StyleButton
key={type.label}
active={type.style === blockType}
label={type.label}
onToggle={props.onToggle}
style={type.style}
/>
))}
</div>
);
};
export default BlockStyleControls;
|
var construct = function(question,details) {
switch (question.idQ) {
case 2:
question.body = question.persoBody[0] + " " + details.name + " " + question.persoBody[1];
break;
case 7:
question.body = question.persoBody[0] + " " + details.sportBeforeComing + " " + question.persoBody[1];
break;
case 10:
if (details.sportNow=="same") {
question.body = question.persoBody[0] + " " + details.sportBeforeComing + " " + question.persoBody[1];
}
else {
question.body = question.persoBody[0] + " " + details.sportNow + " " + question.persoBody[1];
}
break;
case 11:
if (details.sportNow=="same") {
question.body = question.persoBody[0] + " " + details.sportBeforeComing + " " + question.persoBody[1];
}
else {
question.body = question.persoBody[0] + " " + details.sportNow + " " + question.persoBody[1];
}
break;
case 12:
if (details.sportNow=="same") {
question.body = question.persoBody[0] + " " + details.sportBeforeComing + " " + question.persoBody[1];
}
else {
question.body = question.persoBody[0] + " " + details.sportNow + " " + question.persoBody[1];
}
break;
}
return question;
};
module.exports = construct;
|
var express = require("express"),
router = express.Router(),
passport = require("passport"),
User = require("../models/user"),
middleware = require("../middleware"),
functions = require("../functions");
//
router.get("/admin/:username/dashboard", middleware.isAdminLoggedIn, middleware.isAdminAuthorized, function(req, res) {
res.render("admin/dashboard");
});
module.exports = router;
|
import Uri from "../ThirdParty/Uri.js";
import when from "../ThirdParty/when.js";
import Check from "./Check.js";
import Credit from "./Credit.js";
import defaultValue from "./defaultValue.js";
import defined from "./defined.js";
import Ion from "./Ion.js";
import Resource from "./Resource.js";
import RuntimeError from "./RuntimeError.js";
/**
* A {@link Resource} instance that encapsulates Cesium ion asset access.
* This object is normally not instantiated directly, use {@link IonResource.fromAssetId}.
*
* @alias IonResource
* @constructor
* @augments Resource
*
* @param {Object} endpoint The result of the Cesium ion asset endpoint service.
* @param {Resource} endpointResource The resource used to retreive the endpoint.
*
* @see Ion
* @see IonImageryProvider
* @see createWorldTerrain
* @see https://cesium.com
*/
function IonResource(endpoint, endpointResource) {
//>>includeStart('debug', pragmas.debug);
Check.defined("endpoint", endpoint);
Check.defined("endpointResource", endpointResource);
//>>includeEnd('debug');
let options;
const externalType = endpoint.externalType;
const isExternal = defined(externalType);
if (!isExternal) {
options = {
url: endpoint.url,
retryAttempts: 1,
retryCallback: retryCallback,
};
} else if (
externalType === "3DTILES" ||
externalType === "STK_TERRAIN_SERVER"
) {
// 3D Tiles and STK Terrain Server external assets can still be represented as an IonResource
options = { url: endpoint.options.url };
} else {
//External imagery assets have additional configuration that can't be represented as a Resource
throw new RuntimeError(
"Ion.createResource does not support external imagery assets; use IonImageryProvider instead."
);
}
Resource.call(this, options);
// The asset endpoint data returned from ion.
this._ionEndpoint = endpoint;
this._ionEndpointDomain = isExternal
? undefined
: new Uri(endpoint.url).authority();
// The endpoint resource to fetch when a new token is needed
this._ionEndpointResource = endpointResource;
// The primary IonResource from which an instance is derived
this._ionRoot = undefined;
// Shared promise for endpooint requests amd credits (only ever set on the root request)
this._pendingPromise = undefined;
this._credits = undefined;
this._isExternal = isExternal;
}
if (defined(Object.create)) {
IonResource.prototype = Object.create(Resource.prototype);
IonResource.prototype.constructor = IonResource;
}
/**
* Asynchronously creates an instance.
*
* @param {Number} assetId The Cesium ion asset id.
* @param {Object} [options] An object with the following properties:
* @param {String} [options.accessToken=Ion.defaultAccessToken] The access token to use.
* @param {String|Resource} [options.server=Ion.defaultServer] The resource to the Cesium ion API server.
* @returns {Promise.<IonResource>} A Promise to am instance representing the Cesium ion Asset.
*
* @example
* //Load a Cesium3DTileset with asset ID of 124624234
* viewer.scene.primitives.add(new Cesium.Cesium3DTileset({ url: Cesium.IonResource.fromAssetId(124624234) }));
*
* @example
* //Load a CZML file with asset ID of 10890
* Cesium.IonResource.fromAssetId(10890)
* .then(function (resource) {
* viewer.dataSources.add(Cesium.CzmlDataSource.load(resource));
* });
*/
IonResource.fromAssetId = function (assetId, options) {
const endpointResource = IonResource._createEndpointResource(
assetId,
options
);
return endpointResource.fetchJson().then(function (endpoint) {
return new IonResource(endpoint, endpointResource);
});
};
Object.defineProperties(IonResource.prototype, {
/**
* Gets the credits required for attribution of the asset.
*
* @memberof IonResource.prototype
* @type {Credit[]}
* @readonly
*/
credits: {
get: function () {
// Only we're not the root, return its credits;
if (defined(this._ionRoot)) {
return this._ionRoot.credits;
}
// We are the root
if (defined(this._credits)) {
return this._credits;
}
this._credits = IonResource.getCreditsFromEndpoint(
this._ionEndpoint,
this._ionEndpointResource
);
return this._credits;
},
},
});
/** @private */
IonResource.getCreditsFromEndpoint = function (endpoint, endpointResource) {
const credits = endpoint.attributions.map(Credit.getIonCredit);
const defaultTokenCredit = Ion.getDefaultTokenCredit(
endpointResource.queryParameters.access_token
);
if (defined(defaultTokenCredit)) {
credits.push(Credit.clone(defaultTokenCredit));
}
return credits;
};
/** @inheritdoc */
IonResource.prototype.clone = function (result) {
// We always want to use the root's information because it's the most up-to-date
const ionRoot = defaultValue(this._ionRoot, this);
if (!defined(result)) {
result = new IonResource(
ionRoot._ionEndpoint,
ionRoot._ionEndpointResource
);
}
result = Resource.prototype.clone.call(this, result);
result._ionRoot = ionRoot;
result._isExternal = this._isExternal;
return result;
};
IonResource.prototype.fetchImage = function (options) {
if (!this._isExternal) {
const userOptions = options;
options = {
preferBlob: true,
};
if (defined(userOptions)) {
options.flipY = userOptions.flipY;
options.preferImageBitmap = userOptions.preferImageBitmap;
}
}
return Resource.prototype.fetchImage.call(this, options);
};
IonResource.prototype._makeRequest = function (options) {
// Don't send ion access token to non-ion servers.
if (
this._isExternal ||
new Uri(this.url).authority() !== this._ionEndpointDomain
) {
return Resource.prototype._makeRequest.call(this, options);
}
if (!defined(options.headers)) {
options.headers = {};
}
options.headers.Authorization = `Bearer ${this._ionEndpoint.accessToken}`;
return Resource.prototype._makeRequest.call(this, options);
};
/**
* @private
*/
IonResource._createEndpointResource = function (assetId, options) {
//>>includeStart('debug', pragmas.debug);
Check.defined("assetId", assetId);
//>>includeEnd('debug');
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
let server = defaultValue(options.server, Ion.defaultServer);
const accessToken = defaultValue(options.accessToken, Ion.defaultAccessToken);
server = Resource.createIfNeeded(server);
const resourceOptions = {
url: `v1/assets/${assetId}/endpoint`,
};
if (defined(accessToken)) {
resourceOptions.queryParameters = { access_token: accessToken };
}
return server.getDerivedResource(resourceOptions);
};
function retryCallback(that, error) {
const ionRoot = defaultValue(that._ionRoot, that);
const endpointResource = ionRoot._ionEndpointResource;
// Image is not available in worker threads, so this avoids
// a ReferenceError
const imageDefined = typeof Image !== "undefined";
// We only want to retry in the case of invalid credentials (401) or image
// requests(since Image failures can not provide a status code)
if (
!defined(error) ||
(error.statusCode !== 401 &&
!(imageDefined && error.target instanceof Image))
) {
return when.resolve(false);
}
// We use a shared pending promise for all derived assets, since they share
// a common access_token. If we're already requesting a new token for this
// asset, we wait on the same promise.
if (!defined(ionRoot._pendingPromise)) {
ionRoot._pendingPromise = endpointResource
.fetchJson()
.then(function (newEndpoint) {
//Set the token for root resource so new derived resources automatically pick it up
ionRoot._ionEndpoint = newEndpoint;
return newEndpoint;
})
.always(function (newEndpoint) {
// Pass or fail, we're done with this promise, the next failure should use a new one.
ionRoot._pendingPromise = undefined;
return newEndpoint;
});
}
return ionRoot._pendingPromise.then(function (newEndpoint) {
// Set the new token and endpoint for this resource
that._ionEndpoint = newEndpoint;
return true;
});
}
export default IonResource;
|
import React from "react";
import Svg, { Path } from "react-native-svg";
import PropTypes from "prop-types";
const UilEnvelopeBookmark = props => {
const { color, size, ...otherProps } = props;
return (
<Svg
width={size}
height={size}
viewBox="0 0 24 24"
fill={color}
{...otherProps}
>
<Path d="M21,15.26a1,1,0,0,0-1,1v3a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V9.67l5.88,5.89a3,3,0,0,0,2.1.87,3,3,0,0,0,1.43-.36,1,1,0,0,0,.4-1.36,1,1,0,0,0-1.36-.4,1,1,0,0,1-1.15-.17L5.41,8.26H12a1,1,0,0,0,0-2H5a3,3,0,0,0-3,3v10a3,3,0,0,0,3,3H19a3,3,0,0,0,3-3v-3A1,1,0,0,0,21,15.26Zm0-12H16a1,1,0,0,0-1,1v8a1,1,0,0,0,1.57.82l1.93-1.29,1.91,1.28a1.06,1.06,0,0,0,.59.19,1,1,0,0,0,.41-.09,1,1,0,0,0,.59-.91v-8A1,1,0,0,0,21,3.26Zm-1,7.12-.94-.63a1,1,0,0,0-1.12,0l-.94.63V5.26h3Z" />
</Svg>
);
};
UilEnvelopeBookmark.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
};
UilEnvelopeBookmark.defaultProps = {
color: "currentColor",
size: "24"
};
export default UilEnvelopeBookmark;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.